5de8e6a4bc53e64f5a5083e415f887f0535a8899
[gnulib.git] / ChangeLog
1 2012-01-10  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: fix description in comment
4         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5
6         ignore-value: remove deprecated ignore_ptr function
7         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8         * NEWS: Note this.
9
10 2012-01-09  Jim Meyering  <meyering@redhat.com>
11
12         test-init.sh: avoid a subshell
13         * tests/test-init.sh: Remove protective subshell.
14         Suggested by Bernhard Voelker.  While a subshell is normally
15         required to protect against older shells (Solaris, FreeBSD) that
16         warn about a missing program before performing redirection, the
17         shell-selection tests performed by init.sh probably exclude any
18         offending shell.
19
20 2012-01-08  Bruno Haible  <bruno@clisp.org>
21
22         setlocale tests: Avoid test failure on Solaris 11 2011-11.
23         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
24         variable.
25
26 2012-01-08  Bruno Haible  <bruno@clisp.org>
27
28         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
29         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
30         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
31         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
32         macro.
33         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
34         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35         * lib/spawn_faction_addopen.c: Add workaround implementation if
36         HAVE_WORKING_POSIX_SPAWN.
37         * modules/spawn (Makefile): Substitute
38         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
41         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42         (Depends-on): Update conditions.
43         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44         the Solaris 11 bug.
45
46 2012-01-08  Bruno Haible  <bruno@clisp.org>
47
48         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
49         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
50         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
51         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
52         macro.
53         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
54         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
55         * lib/spawn_faction_adddup2.c: Add workaround implementation if
56         HAVE_WORKING_POSIX_SPAWN.
57         * modules/spawn (Makefile): Substitute
58         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
59         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
60         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
61         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
62         (Depends-on): Update conditions.
63         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
64         the Solaris 11 bug.
65
66 2012-01-08  Bruno Haible  <bruno@clisp.org>
67
68         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
69         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
70         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
71         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
72         HAVE_WORKING_POSIX_SPAWN.
73         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
74         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
75         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
76         * lib/spawn_faction_addclose.c: Add workaround implementation if
77         HAVE_WORKING_POSIX_SPAWN.
78         * modules/spawn (Makefile): Substitute
79         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
80         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
81         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
82         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
83         (Depends-on): Update conditions.
84         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
85         the Solaris 11 bug.
86
87 2012-01-08  Bruno Haible  <bruno@clisp.org>
88
89         doc: Update for Solaris 11 2011-11.
90         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
91         * m4/printf.m4: Update comments.
92
93 2012-01-08  Bruno Haible  <bruno@clisp.org>
94
95         mktime: Avoid compilation error on Solaris 11.
96         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
97
98 2012-01-08  Bruno Haible  <bruno@clisp.org>
99
100         doc: Small fix.
101         * doc/posix-headers/nl_types.texi: Correct platforms list.
102
103 2012-01-08  Simon Josefsson  <simon@josefsson.org>
104
105         Add lgpl-3.0 module.
106         * MODULES.html.sh (Support for building documentation): Add
107         lgpl-3.0.
108         * modules/lgpl-3.0: New file.
109
110 2012-01-08  Jim Meyering  <meyering@redhat.com>
111
112         select.c: indent with spaces, not TABs
113         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
114
115 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
116
117         quotearg: do not use grave accent for left quote
118         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
119         locale_quoting_style.
120         (quotearg_buffer_restyled): Fix example.
121         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
122
123 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
124
125         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
126         Most programs do not have translation catalogs for English and much
127         less separate catalogs for British and American English.  Drop the
128         suggestion to translators about these two, and provide it
129         automatically for Unicode locales.  Like most programs, even those
130         using American English, we use single quotation marks.  This conflicts
131         with the American typographic convention, but works better when you
132         cite the entire error message within double quotes.  It also tries not
133         to clash with established practice and with what non-gnulib programs
134         will usually do.
135         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
136         using an UTF-8 or GB-18030 locale.  The list of other locales with
137         quotes was provided by Bruno Haible.
138         (quotearg_buffer_restyled): Adjust instructions to translators.
139         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
140         text, since this would be wrong when using Unicode.
141         * modules/quotearg: Depend on c-strcaseeq.
142
143 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
144
145         quotearg: fix Wikipedia link
146         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
147
148 2012-01-07  Simon Josefsson  <simon@josefsson.org>
149
150         Fix for mingw with MSVC9.
151         * m4/ld-version-script.m4: Check that compiler rejects version
152         scripts with syntax errors.  Reported by Bruno Haible
153         <bruno@clisp.org>.
154
155 2012-01-06  Bruno Haible  <bruno@clisp.org>
156
157         Talk about "native Windows API", not "Woe32".
158         * lib/accept4.c: Update comments to mention native Windows.
159         * lib/execute.c: Likewise.
160         * lib/fatal-signal.c: Likewise.
161         * lib/localcharset.c: Likewise.
162         * lib/nanosleep.c: Likewise.
163         * lib/nl_langinfo.c: Likewise.
164         * lib/pclose.c: Likewise.
165         * lib/pipe-filter-gi.c: Likewise.
166         * lib/pipe-filter-ii.c: Likewise.
167         * lib/pipe.c: Likewise.
168         * lib/pipe2.c: Likewise.
169         * lib/popen.c: Likewise.
170         * lib/progreloc.c: Likewise.
171         * lib/relocatable.c: Likewise.
172         * lib/sigaction.c: Likewise.
173         * lib/sigprocmask.c: Likewise.
174         * lib/spawn-pipe.h: Likewise.
175         * lib/spawn-pipe.c: Likewise.
176         * lib/spawni.c: Likewise.
177         * lib/stat-time.h: Likewise.
178         * lib/w32spawn.h: Likewise.
179         * tests/test-isatty.c: Likewise.
180         * lib/config.charset: More comments.
181         * doc/gnulib-intro.texi: Mention native Windows.
182         * doc/posix-functions/_Exit_C99.texi: Likewise.
183         * doc/posix-headers/fcntl.texi: Likewise.
184
185 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
186
187         argp: Avoid crash if translator uses % characters in a translation.
188         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
189         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
190
191 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
192
193         doc: C11 and C++11 are now official
194         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
195         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
196         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
197         * modules/stdalign:
198         Replace references to draft C1X to C11, and to draft C++0X to C++11.
199
200 2012-01-06  Bruno Haible  <bruno@clisp.org>
201
202         uc-is-grapheme-break tests: Tweak.
203         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
204         message.
205
206 2012-01-06  Bruno Haible  <bruno@clisp.org>
207
208         test-init.sh: correct the test for diff -u
209         * tests/test-init.sh: Also redirect stdout to /dev/null.
210
211 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
212
213         Use ', not `, for quoting output.
214         * build-aux/announce-gen (usage, sizes, print_news_deltas)
215         (print_changelog_deltas, get_tool_versions, main program):
216         * build-aux/git-version-gen:
217         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
218         * build-aux/move-if-change (help):
219         * build-aux/useless-if-before-free (usage, main program):
220         * check-module (parse_module_file, usage)
221         (find_included_lib_files, check_module):
222         * lib/argmatch.c (main) [TEST]:
223         * lib/argp-help.c (_help):
224         * lib/getopt1.c (main) [TEST]:
225         * lib/git-merge-changelog.c (usage):
226         * lib/xstrtol-error.c (xstrtol_error):
227         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
228         * m4/argz.m4 (gl_FUNC_ARGZ):
229         * m4/bison.m4 (gl_BISON):
230         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
232         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
233         * m4/fpending.m4 (gl_PREREQ_FPENDING):
234         * m4/gc-random.m4 (gl_GC_RANDOM):
235         * m4/intl.m4 (gt_CHECK_DECL):
236         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
238         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
240         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
241         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
242         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
243         * tests/test-dirname.c (main):
244         * tests/test-getpass.c (main):
245         * tests/test-iconvme.c (main):
246         * tests/test-parse-datetime.c (LOG):
247         * tests/test-xstrtoimax.sh:
248         * tests/test-xstrtol.sh:
249         * tests/test-xstrtoll.sh:
250         * tests/test-xstrtoumax.sh:
251         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
252         * top/GNUmakefile (abort-due-to-no-makefile):
253         Quote 'like this', not `like this', as per the recent change to
254         the GNU coding standards.
255
256 2012-01-05  Bruno Haible  <bruno@clisp.org>
257
258         strtoimax: Don't force a replacement on systems where intmax_t is int.
259         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
260         'intmax_t' is not larger than 'int'.
261         Reported by Pádraig Brady <P@draigBrady.com>.
262
263 2012-01-05  Bruno Haible  <bruno@clisp.org>
264
265         doc: Mention NetBSD bugs.
266         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
267         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
268
269 2012-01-05  Bruno Haible  <bruno@clisp.org>
270
271         strtoumax tests: Enhance tests.
272         * tests/test-strtoumax.c (main): Add tests for large values.
273
274 2012-01-05  Bruno Haible  <bruno@clisp.org>
275
276         strtoimax: Work around AIX 5.1 bug.
277         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
278         definition.
279         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
280         Set HAVE_STRTOIMAX.
281         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
282         REPLACE_STRTOIMAX.
283         * modules/inttypes-incomplete (Makefile.am): Substitute
284         REPLACE_STRTOIMAX.
285         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
286         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
287         (Depends-on): Update conditions.
288         * tests/test-strtoimax.c (main): Add tests for large values.
289         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
290
291 2012-01-05  Bruno Haible  <bruno@clisp.org>
292
293         inttypes: Modernize.
294         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
295         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
296         (Makefile.am): Update inttypes.h rule.
297
298 2012-01-05  Jim Meyering  <meyering@redhat.com>
299
300         init.sh: don't waste a subshell just to redirect stderr
301         * tests/init.sh: In testing for diff -u and diff -c, use a
302         stderr-redirecting exec inside `...` rather than a subshell.
303
304         test-init.sh: avoid failure on HP-UX 11.00
305         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
306         resolves to diff -c or cmp.  Reported by Bruno Haible.
307
308 2012-01-05  Bruno Haible  <bruno@clisp.org>
309
310         Tests for module 'strtoull'.
311         * modules/strtoull-tests: New file.
312         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
313
314 2012-01-05  Bruno Haible  <bruno@clisp.org>
315
316         Tests for module 'strtoll'.
317         * modules/strtoll-tests: New file.
318         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
319
320 2012-01-05  Bruno Haible  <bruno@clisp.org>
321
322         Tests for module 'strtoul'.
323         * modules/strtoul-tests: New file.
324         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
325
326 2012-01-05  Bruno Haible  <bruno@clisp.org>
327
328         Tests for module 'strtol'.
329         * modules/strtol-tests: New file.
330         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
331
332 2012-01-04  Jim Meyering  <meyering@redhat.com>
333
334         test-init.sh: accommodate Solaris 5.10's different diff -u output
335         * tests/test-init.sh: Also exempt @@ lines from the comparison
336         of diff output, since Solaris 5.10 and GNU diff formats differ.
337         Reported by Stefano Lattarini.
338
339 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
340
341         test-posixtm: don't assume signed integer wraparound
342         * tests/test-posixtm.c (main): Don't assume wraparound semantics
343         after signed integer overflow.  Inspired by (though it may not
344         fix) Bruno Haible's bug report in
345         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
346
347         Spell out "Windows 9x" and "Windows XP".
348         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
349         "Windows 9x" and "WinXP" with "Windows XP".
350
351 2012-01-04  Jim Meyering  <meyering@redhat.com>
352
353         test-vc-list-files-cvs.sh: remove obsolete comment
354         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
355         double exit.  Now that's all encapsulated via skip_ and Exit.
356
357 2012-01-04  Bruno Haible  <bruno@clisp.org>
358
359         Talk about "native Windows API", not "Win32".
360         * lib/classpath.c: Update comments to mention native Windows.
361         * lib/csharpexec.c: Likewise.
362         * lib/dup2.c: Likewise.
363         * lib/error.c: Likewise.
364         * lib/fcntl.c: Likewise.
365         * lib/filename.h: Likewise.
366         * lib/findprog.c: Likewise.
367         * lib/get-rusage-as.c: Likewise.
368         * lib/get-rusage-data.c: Likewise.
369         * lib/getpagesize.c: Likewise.
370         * lib/javaexec.c: Likewise.
371         * lib/msvc-inval.c: Likewise.
372         * lib/msvc-nothrow.c: Likewise.
373         * lib/nanosleep.c: Likewise.
374         * lib/nonblocking.c: Likewise.
375         * lib/printf-parse.c: Likewise.
376         * lib/setlocale.c: Likewise.
377         * lib/sigaction.c: Likewise.
378         * lib/strerror_r.c: Likewise.
379         * lib/tmpdir.c: Likewise.
380         * lib/vasnprintf.c: Likewise.
381         * lib/w32spawn.h: Likewise.
382         * lib/waitpid.c: Likewise.
383         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
384         * m4/locale-ar.m4: Likewise.
385         * m4/locale-fr.m4: Likewise.
386         * m4/locale-ja.m4: Likewise.
387         * m4/locale-tr.m4: Likewise.
388         * m4/locale-zh.m4: Likewise.
389         * m4/printf.m4: Likewise.
390         * tests/test-cloexec.c: Likewise.
391         * tests/test-copy-acl.sh: Likewise.
392         * tests/test-copy-file.sh: Likewise.
393         * tests/test-file-has-acl.sh: Likewise.
394         * tests/test-set-mode-acl.sh: Likewise.
395         * tests/test-dup-safer.c: Likewise.
396         * tests/test-dup2.c: Likewise.
397         * tests/test-dup3.c: Likewise.
398         * tests/test-fcntl.c: Likewise.
399         * tests/test-nonblocking-pipe.h: Likewise.
400         * tests/test-nonblocking-socket.h: Likewise.
401         * tests/test-pipe.c: Likewise.
402         * tests/test-pipe2.c: Likewise.
403         * tests/test-spawn-pipe-child.c: Likewise.
404         * doc/acl-resources.txt: Likewise.
405         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
406         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
407         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
408         * lib/localcharset.c: Update comments to mention native Windows.
409         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
410         * lib/localename.c: Likewise.
411         * lib/progreloc.c: Likewise.
412         * lib/relocatable.c: Likewise.
413         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
414         (windows_compute_revents): Renamed from win32_compute_revents.
415         (windows_compute_revents_socket): Renamed from
416         win32_compute_revents_socket.
417         * lib/select.c: Update comments to mention native Windows.
418         (windows_poll_handle): Renamed from win32_poll_handle.
419         * m4/threadlib.m4: Update comments to mention native Windows.
420         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
421         --enable-threads=windows instead of --enable-threads=win32. Set
422         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
423         * lib/glthread/lock.h: Update comments to mention native Windows.
424         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
425         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
426         USE_WIN32_THREADS.
427         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
428         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
429         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
430         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
431         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
432         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
433         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
434         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
435         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
436         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
437         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
438         * tests/test-tls.c: Likewise.
439         Rationale:
440         Microsoft renamed the "Win32 API" to "Windows API", as it is available
441         on both 32-bit and 64-bit Windows systems.
442         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
443         line of distinction is between "native Windows" on one side and Unix/
444         POSIX systems on the other side. More details in
445         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
446         Suggested by Paul Eggert.
447
448 2012-01-03  Bruno Haible  <bruno@clisp.org>
449
450         isatty: Support for MSVC 9.
451         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
452         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
453         (_isatty_nothrow): New function.
454         (isatty): Use it instead of _isatty.
455         (IsConsoleHandle): Add comment, from Paolo Bonzini.
456         * lib/poll.c (IsConsoleHandle): Likewise.
457         * lib/select.c (IsConsoleHandle): Likewise.
458         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
459         (gl_PREREQ_ISATTY): New macro.
460         * modules/isatty (Depends-on): Add msvc-inval.
461         (configure.ac): Invoke gl_PREREQ_ISATTY.
462
463 2012-01-03  Jim Meyering  <meyering@redhat.com>
464
465         maint.mk: remove temporary transition aid from over 1.5 years ago
466         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
467         purpose was to aid in the transition (avoiding silent malfunction)
468         from that old name to the new _sc_search_regexp.  This shim was
469         added by commit 219c504b.
470
471         init.sh: do not try to accommodate compare arguments starting with "-"
472         * tests/init.sh (compare_dev_null_): Do not try to accommodate
473         compare arguments that start with "-".  Besides, we do not worry
474         about this when invoking diff or cmp; why start now with sed?
475         Using "--" to separate options from argument would trigger sed
476         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
477         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
478
479 2012-01-02  Bruno Haible  <bruno@clisp.org>
480
481         Enhance tests for module 'isatty'.
482         * modules/isatty-tests (Depends-on): Add pipe-posix.
483         * tests/test-isatty.c: Include <fcntl.h>.
484         (DEV_NULL): New macro.
485         (main): Test the resut of isatty() also on regular files, pipes, and
486         /dev/null.
487
488         New module 'isatty'.
489         * lib/unistd.in.h (isatty): New declaration.
490         * lib/isatty.c: New file, based on an idea of
491         Bastien Roucariès <roucaries.bastien@gmail.com>.
492         * m4/isatty.m4: New file.
493         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
494         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
495         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
496         REPLACE_ISATTY.
497         * modules/isatty: New file.
498         * doc/posix-functions/isatty.texi: Mention the new module.
499         Suggested by Paolo Bonzini.
500
501 2012-01-02  Bruno Haible  <bruno@clisp.org>
502
503         canonicalize: Tweak 2011-12-29 commit.
504         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
505         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
506
507 2012-01-02  Jim Meyering  <meyering@redhat.com>
508
509         gitlog-to-changelog: describe input syntax in --help output
510         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
511
512         gitlog-to-changelog: fix typo in --help: show backslash before email @
513         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
514         in sources, but not in actual output.
515
516 2011-12-30  Jim Meyering  <meyering@redhat.com>
517
518         gitlog-to-changelog: don't malfunction when name contains %-directive
519         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
520         in a name string cause trouble.  E.g., with a user name of "%s",
521         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
522
523 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
524
525         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
526         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
527         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
528         the "  (tiny change)" notation that is appended to the standard
529         ChangeLog "date  name  email" header line.
530
531 2012-01-01  Jim Meyering  <meyering@redhat.com>
532
533         test-framework-sh: init.sh: fix "make dist" failure
534         When using gnulib-tool's --with-tests option and any module that
535         depends on test-framework-sh, "make dist" would fail due to the
536         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
537         in the gltests directory, and not in the gllib/ directory.
538         One way to work around that is to move the EXTRA_DIST += init.sh
539         from the primary module to the -tests one:
540         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
541         * modules/test-framework-sh (Makefile.am): ...not here.
542         Reported by Tom G. Christensen in
543         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
544
545         version-etc: update copyright year reported by --version
546         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
547
548 2011-12-31  Pádraig Brady  <P@draigBrady.com>
549
550         canonicalize: only stat() if required
551         * lib/canonicalize.c (canonicalize_filename_mode):
552         Avoid calling l?stat() when both CAN_MISSING,
553         and CAN_NOLINKS are set, as we neither need
554         to resolve symlinks or test component existence.
555
556 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
557
558         doc: cover st_ino issues once; add OpenVMS etc.
559         * doc/posix-functions/stat.texi (stat):
560         * doc/posix-functions/lstat.texi (lstat):
561         * doc/posix-functions/fstatat.texi (fstatat):
562         * doc/posix-functions/fstat.texi (fstat):
563         Move general 'struct stat' stuff to sys_stat.texi,
564         leaving behind a pointer.
565         * doc/posix-headers/sys_stat.texi (sys/stat.h):
566         Merge duplicate info about 'struct stat' problems into here.
567         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
568         and suggest partial workarounds.
569
570         same-inode: port to OpenVMS
571         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
572         three st_ino values.
573
574 2011-12-30  Pádraig Brady  <P@draigBrady.com>
575
576         canonicalize: fix references to stat() and lstat()
577         * lib/canonicalize.c (canonicalize_filename_mode):
578         Ensure references always resolve to a replacement
579         function if required (even via a macro).
580
581 2011-12-30  Jim Meyering  <meyering@redhat.com>
582
583         gitlog-to-changelog: remove a little duplication
584         * build-aux/gitlog-to-changelog (main): Grep @lines once,
585         rather than twice.
586
587 2011-12-29  Pádraig Brady  <P@draigBrady.com>
588
589         canonicalize: add support for not resolving symlinks
590         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
591         indicate we don't want to follow symlinks.  Also
592         provide CAN_MODE_MASK to aid setting these existing
593         mutually exclusive values.
594         * lib/canonicalize.c (canonicalize_filename_mode):
595         Extract the flags from can_mode parameter, which
596         are currently just used to select between stat()
597         and lstat().  Also ensure that mutually exclusive
598         values are flagged immediately as invalid.
599         * tests/test-canonicalize.c: Verify symlinks are
600         not followed, and that invalid flag combinations
601         are diagnosed.
602
603 2011-12-25  Jim Meyering  <meyering@redhat.com>
604
605         gitlog-to-changelog: do not clump multi-paragraph entries
606         Identical header lines (date,name,email+coauthors) are suppressed,
607         thus putting all entries with those same characteristics under
608         a single header.  However, when a log entry consists of two or
609         more paragraphs, it may not be clear where it starts and ends.
610         This change makes it so that such an entry is always separated
611         from others by a header line, even when that header would
612         otherwise be suppressed.
613         * build-aux/gitlog-to-changelog: Implement the above.
614         Inspired by a related request from Stefano Lattarini in
615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
616
617 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
618
619         announce-gen: fix `cmd' typo in diagnostic
620         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
621         diagnostic: a missing '$' meant that the command was not output.
622
623 2011-12-23  Jim Meyering  <meyering@redhat.com>
624
625         test-framework-sh: distribute init.sh
626         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
627         Otherwise, "make -C gnulib-tests check" (at least in grep) would
628         fail due to the lack of init.sh.
629
630         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
631         * modules/atexit-tests: Rather than listing tests/init.sh,
632         now that there's a module for it, simply depend on that new module.
633         * modules/closein-tests: Likewise.
634         * modules/exclude-tests: Likewise.
635         * modules/getcwd-tests: Likewise.
636         * modules/perror-tests: Likewise.
637         * modules/pread-tests: Likewise.
638         * modules/pwrite-tests: Likewise.
639         * modules/vc-list-files-tests: Likewise.
640         * modules/verify-tests: Likewise.
641         * modules/xalloc-die-tests: Likewise.
642         * modules/xstrtoimax-tests: Likewise.
643         * modules/xstrtol-tests: Likewise.
644         * modules/xstrtoll-tests: Likewise.
645         * modules/xstrtoumax-tests: Likewise.
646         * modules/yesno-tests: Likewise.
647
648 2011-12-22  Jim Meyering  <meyering@redhat.com>
649
650         test-framework-sh: add minimal tests of init.sh's compare function
651         * modules/test-framework-sh-tests: New file.
652         * tests/test-init.sh: New file.
653
654         test-framework-sh: new module
655         * modules/test-framework-sh: New file.
656         * MODULES.html.sh (Support for maintaining and releasing projects):
657         List it.
658
659         init.sh: do not emit simulated diff output to stderr
660         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
661
662 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
663
664         .gitignore: ignore gnulib.dvi and regex.info
665         * doc/.gitignore:add gnulib.dvi and regex.info
666
667 2011-12-22  Jim Meyering  <meyering@redhat.com>
668
669         init.sh: correct previous change
670         * tests/init.sh (compare): My previous change was wrong.
671         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
672
673         init.sh: avoid unwarranted test failure when using "set -e"
674         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
675         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
676         a use like "compare exp out" would get evoke an unconditional failure.
677
678 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
679
680         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
681         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
682         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
683         autoreconf that did not.
684         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
685         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
686
687 2011-12-17  Jim Meyering  <meyering@redhat.com>
688
689         bootstrap: remove some now-unneeded code
690         This script arose back when gnulib-tool was young.
691         Since then, it has seen improvements that render much of this
692         script unnecessary.  In particular, it can now make symlinks
693         to the files it uses.  Also, I no longer see as much value in
694         marking files as read-only via comments.
695         If you relied on the symlink-creation feature of the preceding
696         version of this script, you can get most of that functionality
697         by adding the --symlink option to the definition of
698         gnulib_tool_option_extras in your bootstrap.conf file.
699         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
700         Run autopoint and libtoolize *before* gnulib-tool.
701         After it, run an abbreviated autoreconf, rather than a loop around
702         all tools.
703         (slirp, bt_mark_as_generated): Remove functions.
704
705 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
706
707         ftoastr: fix typo
708         * lib/ftoastr.h: Fix misspelling in comment.
709
710 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
711
712         * top/README-release: fix punctuation.
713
714 2011-12-17  Jim Meyering  <meyering@redhat.com>
715
716         bootstrap: correct the recent buildreq change
717         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
718         had no effect.
719         * build-aux/bootstrap (buildreq): Bracket each search term with
720         "*...*", so that the shell "case" statement works as intended.
721         Add comments.
722
723 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
724
725         build: let bootstrap resort to wget when downloading .po files
726         * build-aux/bootstrap (download_po_files): Fallback to wget when
727         downloading the .po files via rsync fails.  This is necessary to
728         bootstrap from behind a strict firewall.
729
730 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
731
732         stdint: don't assume C++11 when compiling with g++
733         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
735         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
736         work also in C++ before C++11, as that improperly inhibits
737         generating a substitute stdint.h for that case.
738
739 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
740
741         alloca: protect comment from gnulib-tool
742         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
743         that gnulib-tool doesn't think it's a license, and munge it to
744         say "GCC version 3".
745
746 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
747
748         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
749         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
750         $(abs_top_builddir) instead of $(top_builddir).
751
752 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
753
754         strftime-tests: also test nanoseconds
755         * tests/test-strftime.c (T): Add a test of %N.
756
757 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
758
759         inttypes, stdint: add C++11 support
760         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
761         when including inttypes.h and stdint.h.  Support this change to
762         the standard.
763         * doc/posix-headers/inttypes.texi (inttypes.h):
764         * doc/posix-headers/stdint.texi (stdint.h): Document this.
765         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
766         Define if not defined already, for the benefit of pre-C++11 hosts.
767         Define the standard format macros (e.g., PRId8) always.
768         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
769         Likewise, if __cpluspus.  Define the standard constant and limit
770         macros (e.g., INT8_C, INT8_MAX) always.
771         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
772         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
773         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
774         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
775         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
776         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
777         Likewise.
778
779 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
780
781         nonblocking tests: Fix test failure on Linux/PPC.
782         Suggested by Prerna Saxena in
783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
784         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
785         Set to 1100000.
786
787 2011-12-12  Jim Meyering  <meyering@redhat.com>
788
789         argmatch: don't hard-code `' when listing valid option arguments
790         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
791         use the quote function to add quotes.  Use fputs rather than
792         fprintf for the format string with no format directive.
793
794 2011-12-07  Eric Blake  <eblake@redhat.com>
795
796         bootstrap: detect tools required by gnulib-tool
797         * build-aux/bootstrap (buildreq): Provide minimum implicit
798         dependencies.
799         * DEPENDENCIES: Mention patch as a prereq.
800
801 2011-12-04  Bruno Haible  <bruno@clisp.org>
802
803         sethostname: Port to Windows platforms.
804         * lib/sethostname.c: Provide an alternate implementation for Windows
805         platforms.
806         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
807         (main): Skip the test if sethostname() fails with EPERM. On Windows
808         platforms, don't check the result of gethostname().
809
810 2011-12-04  Bruno Haible  <bruno@clisp.org>
811             Jim Meyering  <meyering@redhat.com>
812
813         tests: Avoid spurious error message on platforms without mktemp program.
814         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
815
816 2011-12-04  Bruno Haible  <bruno@clisp.org>
817
818         sethostname: Fix documentation.
819         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
820         "not fixed" section.
821
822 2011-12-03  Bruno Haible  <bruno@clisp.org>
823
824         gnulib-tool: Verify that the License field is present and non-empty.
825         * gnulib-tool (func_get_license_raw): New function, extracted from
826         func_get_license.
827         (func_get_license): Use it. Warn if the module is not a test module and
828         has no license.
829         Suggested by Jim Meyering.
830
831 2011-12-03  Bruno Haible  <bruno@clisp.org>
832
833         sethostname tests: Fix link error on mingw.
834         * tests/test-sethostname1.c: New file, extracted from
835         tests/test-sethostname.c.
836         * tests/test-sethostname2.c: New file, extracted from
837         tests/test-sethostname.c.
838         * tests/test-sethostname.c: Remove file.
839         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
840         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
841         (Depends-on): Add gethostname.
842         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
843         Link the latter with $(GETHOSTNAME_LIB).
844
845         sethostname tests: Fix compilation error on mingw.
846         * tests/test-sethostname.c: Don't include <sys/types.h>.
847         (geteuid): Use a dummy value without uid_t.
848         * modules/sethostname-tests (Depends-on): Remove sys_types.
849
850         sethostname tests: Avoid a gcc warning.
851         * tests/test-sethostname.c (main): Remove an unused variable.
852
853         Tweak last commit.
854         * modules/sethostname-tests (Files): Sort by decreasing importance.
855         (configure.ac): Check for geteuid.
856         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
857         the test when there's nothing to test. Drop an unnecessary cast.
858         Improve an error message. Verify that the final sethostname() call
859         succeeds.
860
861 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
862
863         Add a test suite for the sethostname module.
864         * modules/sethostname-tests: New file.  A test program
865         for the sethostname module.
866         * tests/test-sethostname.c: Likewise.
867
868 2011-12-03  Bruno Haible  <bruno@clisp.org>
869
870         Tweak last commit.
871         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
872         Fix preprocessor directives indentation. Fix typos.
873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
874         * modules/unistd (Makefile): Likewise.
875
876 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
877
878         Integrate the sethostname module into unistd.
879         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
880         into the unistd.h header.
881         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
882         preprocessor directives.
883         * modules/unistd: Setup the Makefile substitutions of the
884         SETHOSTNAME preprocessor directives.
885
886 2011-12-03  Bruno Haible  <bruno@clisp.org>
887
888         Tweak last commit.
889         * lib/sethostname.c: Don't include <string.h>.
890         (sethostname): No need to copy the argument string to the stack. Don't
891         call clearerr. Preserve errno when fprintf failed.
892         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
893         Don't invoke AC_REPLACE_FUNCS.
894         * modules/sethostname (Link): Remove empty section.
895         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
896         failure problem.
897
898 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
899
900         New module 'sethostname'.
901         * lib/sethostname.c (sethostname): New file.  Provide sethostname
902         for systems that lack it.
903         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
904         sethostname declaration and function.
905         * modules/sethostname: New file.  Define the sethostname module.
906
907 2011-12-03  Bruno Haible  <bruno@clisp.org>
908
909         Tweak last commit.
910         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
911
912 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
913
914         Split the HOST_NAME_MAX detection into a separate m4 macro.
915         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
916         macro so it can be used by the pending sethostname module.
917
918 2011-12-03  Bruno Haible  <bruno@clisp.org>
919
920         Fix module descriptions syntax.
921         * modules/argv-iter (License): Fix syntax.
922         * modules/di-set (License): Likewise.
923         * modules/ino-map (License): Likewise.
924         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
925
926 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
927
928         stdalign: port to Clang 3.0
929         Problem reported by Simon Josefsson in
930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
931         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
932         which has <stdalign.h> but which does not define alignof.
933         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
934
935 2011-12-01  Eric Blake  <eblake@redhat.com>
936
937         mktempd: silence dd usage
938         * build-aux/mktempd (rand_bytes): Silence dd.
939
940 2011-11-30  Simon Josefsson  <simon@josefsson.org>
941
942         manywarnings: Don't mention gcc version in docstring.
943         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
944         Jim Meyering <meyering@redhat.com>.
945
946 2011-11-30  Jim Meyering  <meyering@redhat.com>
947
948         hash: mark a few floating point constants with "f" suffix
949         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
950         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
951         floating point constants with "f", since they're destined to be
952         saved/used as "float"s.
953
954 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
955
956         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
957         * tests/test-float.c (test_long_double): Correct and re-enable the
958         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
959
960 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
961
962         Avoid subtracting two pointers that don't point into the same block.
963         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
964         only pointers into the same memory block are subtracted. We cannot
965         assume that sizeof (ptrdiff_t) == sizeof (void *).
966
967 2011-11-29  Eric Blake  <eblake@redhat.com>
968
969         maint.mk: add syntax check for use of compare from init.sh
970         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
971         moved here from coreutils.
972
973         manywarnings: drop -Wunsuffixed-float-constants
974         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
975         '1.0D', which is the only way to silence this warning for 'double'.
976
977 2011-11-29  Jim Meyering  <meyering@redhat.com>
978
979         hash: mark compute_bucket_size with the pure attribute
980         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
981
982         quotearg, propername: correct pragma guard expression
983         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
984         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
985
986 2011-11-28  Jim Meyering  <meyering@redhat.com>
987
988         propername: do not mark proper_name with the const attribute
989         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
990         since it examines data pointed to by its parameter.
991         * lib/propername.c (proper_name): Instead, add a pragma to suppress
992         the suggestion from -Wsuggest-attribute=const.
993
994         propername: mark one more function as const
995         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
996
997 2011-11-27  Jim Meyering  <meyering@redhat.com>
998
999         mark functions with const and pure attributes
1000
1001         Mark functions per suggestions from gcc-4.6 when using these options:
1002         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1003         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1004         Follow these guidelines: when possible, apply the attribute to
1005         an extern declaration, not to its definition.  Apply it to the
1006         definition only when the definition is static.
1007         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1008         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1009         * lib/base64.h (isbase64): Likewise.
1010         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1011         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1012         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1013         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1014         (c_tolower, c_toupper): Likewise.
1015         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1016         * lib/chdir-long.c (find_non_slash): Likewise.
1017         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1018         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1019         * lib/file-type.h (file_type): Likewise.
1020         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1021         * lib/filevercmp.c (verrevcmp): Likewise.
1022         * lib/freadahead.h (freadahead): Likewise.
1023         * lib/fts.c (fts_maxarglen): Likewise.
1024         * lib/hash-pjw.h (hash_pjw): Likewise.
1025         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1026         * lib/hash.c (is_prime, next_prime): Likewise.
1027         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1028         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1029         (hash_table_ok, hash_get_first, hash_string): Likewise.
1030         (compute_bucket_size): Likewise.
1031         * lib/i-ring.h (i_ring_empty): Likewise.
1032         * lib/isnan.c (isnanl): Likewise.
1033         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1034         * lib/memcasecmp.h (memcasecmp): Likewise.
1035         * lib/memchr2.h (memchr2): Likewise.
1036         * lib/memcmp2.h (memcmp2): Likewise.
1037         * lib/parse-datetime.y (lookup_zone): Likewise.
1038         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1039         [!WINDOWS_SOCKETS]: Likewise.
1040         * lib/strnlen1.h (strnlen1): Likewise.
1041         * lib/uniwidth.in.h (uc_width): Likewise.
1042         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1043         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1044         (quoting_options_from_style): Add a comment.
1045         * lib/propername.h (proper_name): Add a comment.
1046
1047 2011-11-27  Bruno Haible  <bruno@clisp.org>
1048
1049         Remove unused macros from !_LIBC code in glibc-borrowed files.
1050         * lib/fnmatch.c (STRCOLL): Remove macro.
1051         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1052         * lib/glob.c (__stat, __readdir64): Remove macros.
1053         * lib/tempname.c (__open64, __xstat64): Remove macros.
1054         Suggested by Paul Eggert.
1055
1056 2011-11-27  Bruno Haible  <bruno@clisp.org>
1057
1058         getcwd: Fix link error on MSVC 9.
1059         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1060
1061 2011-11-27  Bruno Haible  <bruno@clisp.org>
1062
1063         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1064         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1065         HAVE_OPENDIR is 0.
1066         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1067         HAVE_CLOSEDIR is 0.
1068         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1069         is 0.
1070         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1071
1072 2011-11-27  Bruno Haible  <bruno@clisp.org>
1073
1074         getcwd: Fix bug from 2011-08-17.
1075         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1076         platforms that need it.
1077         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1078         code of 4 to be a failure, not a success. This ensures that
1079         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1080
1081 2011-11-27  Bruno Haible  <bruno@clisp.org>
1082
1083         binary-io tests: Avoid test failure on mingw when libtool is used.
1084         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1085         Don't verify the size of t-bin-out1.tmp here.
1086         * tests/test-binary-io.sh: Verify it here.
1087         Reported by Simon Josefsson.
1088
1089 2011-11-26  Bruno Haible  <bruno@clisp.org>
1090
1091         Fix conflict between two instantiations of module 'unistd'.
1092         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1093         ${include_guard_prefix} also in the autoconf snippet.
1094         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1096         GNULIB_UNISTD_H_GETOPT.
1097         * modules/getopt-posix (configure.ac): Set the
1098         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1099         * modules/getopt-gnu (configure.ac): Likewise.
1100         * modules/unistd (Makefile.am): Change the substitution value of
1101         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1102         Reported by Simon Josefsson.
1103
1104 2011-11-25  Bruno Haible  <bruno@clisp.org>
1105
1106         pagealign_alloc: Doc and comments.
1107         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1108         module.
1109         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1110
1111 2011-11-25  Jim Meyering  <meyering@redhat.com>
1112
1113         test-update-copyright.sh: avoid false-positive failure
1114         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1115         around false positive failure on Cygwin/Windows.  The latter was
1116         matching erroneously-created files with names like
1117         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1118
1119 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1120
1121         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1122         * m4/valgrind-tests.m4: Check that the parameters that will be
1123         used works, not just a subset of them.  Reported by Bruno Haible
1124         <bruno@clisp.org>.
1125
1126 2011-11-24  Jim Meyering  <meyering@redhat.com>
1127
1128         test-stdalign.c: comment out long double tests
1129         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1130         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1131         error: '_Alignas' specifiers cannot reduce alignment of \
1132         'static_longdouble_alignas'.
1133
1134 2011-11-22  Jim Meyering  <meyering@redhat.com>
1135
1136         init.sh: make "compare /dev/null FILE" output more readable
1137         * tests/init.sh (compare_): Document the preferred order of arguments.
1138         (emit_diff_u_header_): New function.
1139         (compare_dev_null_): Emit a simulated diff, rather than just the
1140         contents of the unexpected file.  Suggestion from Bruno Haible.
1141
1142 2011-11-21  Jim Meyering  <meyering@redhat.com>
1143             Eric Blake  <eblake@redhat.com>
1144
1145         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1146         * tests/init.sh: Make our compare function slightly more portable.
1147         Reported by Bruno Haible in
1148         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1149
1150 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1151
1152         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1153         before using it, in code that ends up in config.h.
1154
1155 2011-11-20  Bruno Haible  <bruno@clisp.org>
1156
1157         getcwd: Work around getcwd bug on AIX 5..7.
1158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1159         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1160         Use a different value for gl_cv_func_getcwd_path_max. Move the
1161         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1162         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1163         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1164         Define HAVE_MINIMALLY_WORKING_GETCWD.
1165         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1166         where it is not even minimally working, that is, on AIX.
1167         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1168         m4/getcwd-path-max.m4.
1169         (main): Update exit code computation.
1170         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1171         getcwd does not handle long file names.
1172
1173 2011-11-20  Bruno Haible  <bruno@clisp.org>
1174
1175         getcwd: Fix bug from 2009-09-10.
1176         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1177         like "no".
1178
1179 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1180
1181         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1182
1183 2011-11-20  Bruno Haible  <bruno@clisp.org>
1184
1185         fma tests: Avoid shadowing local variables.
1186         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1187         expected.
1188
1189 2011-11-20  Bruno Haible  <bruno@clisp.org>
1190
1191         copysignf tests: Fix.
1192         * tests/test-copysignf.c: Fix signature check.
1193
1194 2011-11-20  Bruno Haible  <bruno@clisp.org>
1195
1196         fma: Remove unused code.
1197         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1198         unused macros.
1199
1200 2011-11-20  Bruno Haible  <bruno@clisp.org>
1201
1202         sethostname: Fix doc about AIX.
1203         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1204         sethostname; it has it.
1205
1206         sethostname: Mention more portability problems.
1207         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1208         problem.
1209         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1210
1211 2011-11-19  Bruno Haible  <bruno@clisp.org>
1212
1213         Depend on module fcntl-h when AT_FDCWD is used.
1214         * modules/utimens (Depends-on): Add fcntl-h.
1215         * modules/areadlinkat (Depends-on): Likewise.
1216         * modules/areadlinkat-with-size (Depends-on): Likewise.
1217         * modules/faccessat (Depends-on): Likewise.
1218         * modules/fchmodat (Depends-on): Likewise.
1219         * modules/fchownat (Depends-on): Likewise.
1220         * modules/getcwd (Depends-on): Likewise.
1221         * modules/mkdirat (Depends-on): Likewise.
1222         * modules/mkfifoat (Depends-on): Likewise.
1223         * modules/readlinkat (Depends-on): Likewise.
1224         * modules/symlinkat (Depends-on): Likewise.
1225         * modules/dup2-tests (Depends-on): Likewise.
1226         * modules/fdutimensat-tests (Depends-on): Likewise.
1227         * modules/futimens-tests (Depends-on): Likewise.
1228
1229 2011-11-19  Bruno Haible  <bruno@clisp.org>
1230
1231         euidaccess: Update a comment.
1232         * lib/euidaccess.c: Update comment about platforms with faccessat.
1233
1234 2011-11-19  Bruno Haible  <bruno@clisp.org>
1235
1236         openat: Fix file list.
1237         * modules/openat (Files): Remove lib/at-func.c.
1238
1239 2011-11-19  Bruno Haible  <bruno@clisp.org>
1240
1241         fstatat: Simplify.
1242         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1243         gnulib should define rpl_fstatat, there is a
1244         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1245
1246 2011-11-19  Bruno Haible  <bruno@clisp.org>
1247
1248         Ensure 'inline' can be used in tests/test-utimens-common.h.
1249         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1250         * modules/futimens-tests (configure.ac): Likewise.
1251         * modules/utimens-tests (configure.ac): Likewise.
1252         * modules/utimensat-tests (configure.ac): Likewise.
1253
1254 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1255
1256         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1257         not hash_insert0.
1258         (hash_insert_if_absent): Doc fix.
1259
1260 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1261
1262         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1263
1264 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         test-getcwd: disambiguate exit status
1267         * tests/test-getcwd.c (test_long_name): Return 0..7.
1268         (main): Exit with an unambiguous exit status.  The old
1269         code yielded a mysterious mixture of two failure codes.
1270
1271         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1272         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1273         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1274         rpl_fstatat or fstatat.  This should fix the other problem
1275         reported by Kai Habel in
1276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1277         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1279         and I reproduced it on a Solaris 8 host we still have in production.
1280
1281 2011-11-18  Jim Meyering  <meyering@redhat.com>
1282
1283         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1284         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1285         Add a sentence to the comment.
1286         (hash_insert0): New function that simply calls hash_insert_if_absent.
1287         * lib/hash.h (hash_insert_if_absent): Declare it.
1288         (hash_insert0): Add deprecation attribute.
1289         (_GL_ATTRIBUTE_DEPRECATED): Define.
1290         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1291         not hash_insert0.
1292         * NEWS: Mention it, even though it's not really an incompatible change.
1293
1294 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1295
1296         openat: avoid compilation failure due to lack of <errno.h> inclusion
1297         * lib/openat.c: Include <errno.h>.
1298
1299 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1300
1301         * modules/getcwd (Depends-on): Add fdopendir.
1302         This fixes one of the two problems reported by Kai Habel in
1303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1304
1305         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1306         stdalign problem reported by Ian Beckwith in
1307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1308         * modules/crypto/gc-arcfour (Depends-on):
1309         Depend conditionally on crypto/arcfour.
1310         * modules/crypto/gc-arctwo (Depends-on):
1311         Depend conditionally on crypto/arctwo.
1312         * modules/crypto/gc-des (Depends-on):
1313         Depend conditionally on crypto/des.
1314         * modules/crypto/gc-hmac-md5 (Depends-on):
1315         Depend conditionally on crypto/hmac-md5.
1316         * modules/crypto/gc-hmac-sha1 (Depends-on):
1317         Depend conditionally on crypto/hmac-sha1.
1318         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1319         * modules/crypto/gc-md4 (Depends-on):
1320         Depend conditionally on crypto/md4.
1321         * modules/crypto/gc-md5 (Depends-on):
1322         Depend conditionally on crypto/md5.
1323         * modules/crypto/gc-rijndael (Depends-on):
1324         Depend conditionally on crypto/rijndael.
1325         * modules/crypto/gc-sha1 (Depends-on):
1326         Depend conditionally on crypto/sha1.
1327         * modules/crypto/gc-arcfour:
1328         * modules/crypto/gc-arctwo:
1329         * modules/crypto/gc-des:
1330         * modules/crypto/gc-hmac-md5:
1331         * modules/crypto/gc-hmac-sha1:
1332         * modules/crypto/gc-md2:
1333         * modules/crypto/gc-md4:
1334         * modules/crypto/gc-md5:
1335         * modules/crypto/gc-rijndael:
1336         * modules/crypto/gc-sha1:
1337         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1338         now that the conditional dependencies do the work for us.
1339
1340 2011-11-17  Jim Meyering  <meyering@redhat.com>
1341
1342         tests: factor st_ctime-comparison out of two headers
1343         * tests/test-utimens-common.h (ctime_compare): Define.
1344         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1345         * tests/test-lutimens.h (test_lutimens): Likewise.
1346         * tests/test-utimens.h (test_utimens): Likewise.
1347
1348         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1349         Invoke the test program via an init.sh-using wrapper.
1350         * tests/test-getcwd.sh: New file.
1351         * modules/getcwd-tests (Files): Add it.
1352         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1353
1354 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1355
1356         gitlog-to-changelog: support multi-author commits.
1357         The FSF cares about keeping track of all authors of patches to its
1358         projects, but Git doesn't provide obvious support for multi-author
1359         changesets. Consensus seems to be forming around the use of extra
1360         Signed-off-by inspired lines in the log message formatted as
1361         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1362         multi-author commits between version control systems.
1363         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1364         log message and output in standard ChangeLog multi-author format.
1365         Reported by Peter Rosin <peda@lysator.liu.se>
1366
1367 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1368             Bruno Haible  <bruno@clisp.org>
1369
1370         Fix some modules' file list.
1371         * modules/fstatat (Files): Add m4/lstat.m4.
1372         * modules/openat (Files): Likewise.
1373         * modules/unlinkat (Files): Likewise.
1374
1375 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1376
1377         maint.mk: fix tight-scope.mk generation in VPATH builds.
1378         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1379         reference with $(srcdir) so that the file is found correctly even
1380         when running `make syntax-check' in a VPATH build.
1381
1382 2011-11-13  Bruno Haible  <bruno@clisp.org>
1383             Jim Meyering  <meyering@redhat.com>
1384
1385         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1386         * tests/init.sh (compare): Remove "No differences encountered" or
1387         synonymous output from the 'diff' program.
1388
1389 2011-11-13  Bruno Haible  <bruno@clisp.org>
1390
1391         Makefile: Tweak indentation.
1392         * Makefile: Use tab as first character in every line that contains rule
1393         commands.
1394
1395 2011-11-13  Bruno Haible  <bruno@clisp.org>
1396
1397         Syntax check for copyright statements.
1398         * check-copyright: New file.
1399         * Makefile (sc_check_copyright): New rule.
1400
1401 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1402
1403         * build-aux/git-version-gen: Add --prefix to configure the tag
1404         match string.
1405
1406 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1407
1408         * build-aux/git-version-gen: Add --help and --version.
1409
1410 2011-11-12  Jim Meyering  <meyering@redhat.com>
1411
1412         revamp the other test-exclude?.sh scripts to use init.sh, too
1413         * tests/test-exclude1.sh: Use init.sh.
1414         * tests/test-exclude2.sh: Likewise.
1415         * tests/test-exclude3.sh: Likewise.
1416         * tests/test-exclude4.sh: Likewise.
1417         * tests/test-exclude5.sh: Likewise.
1418         * tests/test-exclude6.sh: Likewise.
1419         * tests/test-exclude7.sh: Likewise.
1420         * tests/test-exclude8.sh: Likewise.
1421         * modules/exclude-tests (Files): List init.sh.
1422
1423         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1424         These shell scripts ignored failure of the binary test-exclude,
1425         so making the latter return 77 didn't cause them to be skipped.
1426         * tests/test-exclude5.sh: Exit with test-exclude's error status
1427         when that program fails.  Revamp to use init.sh.
1428         * tests/test-exclude2.sh: Likewise.
1429
1430         test-exclude: fix a typo
1431         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1432
1433 2011-11-11  Bruno Haible  <bruno@clisp.org>
1434
1435         obstack: Fix compilation error on MSVC 9.
1436         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1437
1438 2011-11-11  Jim Meyering  <meyering@redhat.com>
1439
1440         test-exclude: skip tests rather than failing on deficient systems
1441         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1442         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1443         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1444         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1445
1446 2011-11-10  Bruno Haible  <bruno@clisp.org>
1447
1448         ptsname_r test: Avoid gcc warning on glibc systems.
1449         * tests/test-ptsname_r.c (null_ptr): New function.
1450         (test_errors): Use it.
1451
1452 2011-11-10  Bruno Haible  <bruno@clisp.org>
1453
1454         ptsname_r: Avoid compilation error on OSF/1 5.1.
1455         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1457         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1458         function is not declared or incompatibly declared.
1459         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1460         * modules/ptsname_r (Depends-on, configure.ac): Update.
1461         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1462
1463 2011-11-10  Bruno Haible  <bruno@clisp.org>
1464
1465         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1466         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1467         When cross-compiling, guess yes on all platforms except AIX.
1468         Reported by Ludovic Courtès <ludo@gnu.org>.
1469
1470 2011-11-09  Bruno Haible  <bruno@clisp.org>
1471
1472         ptsname_r tests: Fix bugs.
1473         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1474         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1475
1476 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1477
1478         fstatat: work with cross-compilation
1479         Problem reported by Ludovic Courtès in
1480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1481         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1482         "cross-compiling" and assume the bug is present.  Replace
1483         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1484         an inverted sense, to be more conservative about our assumptions.
1485         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1486
1487 2011-11-09  Bruno Haible  <bruno@clisp.org>
1488
1489         Improve MODULES.html output.
1490         * modules/mkfifoat (Description): Use the word "function".
1491         * modules/readlinkat (Description): Likewise.
1492         * modules/symlinkat (Description): Likewise.
1493
1494 2011-11-09  Eric Blake  <eblake@redhat.com>
1495
1496         ptsname_r-tests: new test module
1497         * modules/ptsname_r-tests: New module.
1498         * tests/test-ptsname_r.c: New file.
1499
1500         ptsname_r: new module
1501         * modules/ptsname_r: New module.
1502         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1503         * lib/ptsname.c (__ptsname_r): Split...
1504         * lib/ptsname_r.c: ...into new file.
1505         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1506         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1507         * modules/stdlib (Makefile.am): Substitute witnesses.
1508         * lib/stdlib.in.h (ptsname_r): Declare it.
1509         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1510         * MODULES.html.sh (Misc): Likewise.
1511         * modules/ptsname (Depends-on): Alter dependency.
1512         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1513
1514 2011-11-09  Jim Meyering  <meyering@redhat.com>
1515
1516         announce-gen: be more concise when there's only one URL+tarball
1517         * build-aux/announce-gen (get_tool_versions): When you distribute
1518         only one type of tarball, combine the first two "Here are..."
1519         sections and make the key-checking grammar independent of
1520         how many tarballs there are.
1521
1522 2011-11-09  Eric Blake  <eblake@redhat.com>
1523
1524         openpty: provide a stub on mingw
1525         * lib/pty.in.h (includes): Provide forward declarations.
1526         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1527
1528         raise: fix mingw handling of SIGPIPE
1529         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1530
1531 2011-11-08  Bruno Haible  <bruno@clisp.org>
1532
1533         More conditional dependencies.
1534         * modules/faccessat (Depends-on): Add conditions.
1535         * modules/fchmodat (Depends-on): Likewise.
1536         * modules/fchownat (Depends-on): Likewise.
1537         * modules/fstatat (Depends-on): Likewise.
1538         * modules/mkfifoat (Depends-on): Likewise.
1539         * modules/readlinkat (Depends-on): Likewise.
1540         * modules/symlinkat (Depends-on): Likewise.
1541         * modules/unlinkat (Depends-on): Likewise.
1542         * modules/utimensat (Depends-on): Likewise.
1543         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1544         * modules/linkat (Depends-on): Refine the conditions.
1545         * modules/renameat (Depends-on): Likewise.
1546
1547 2011-11-08  Bruno Haible  <bruno@clisp.org>
1548
1549         faccessat: Move AC_LIBOBJ invocation to module description.
1550         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1551         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1552         invocation from here...
1553         * modules/faccessat (configure.ac): ... to here. Invoke
1554         gl_PREREQ_FACCESSAT.
1555
1556 2011-11-08  Bruno Haible  <bruno@clisp.org>
1557
1558         faccessat: Simplify autoconf macro.
1559         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1560         gl_FUNC_EUIDACCESS.
1561
1562 2011-11-08  Bruno Haible  <bruno@clisp.org>
1563
1564         renameat: Fix dependencies.
1565         * modules/renameat (Depends-on): Add stdbool.
1566
1567 2011-11-08  Bruno Haible  <bruno@clisp.org>
1568
1569         mkfifoat: Fix module description.
1570         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1571         not gl_UNISTD_MODULE_INDICATOR.
1572
1573 2011-11-08  Bruno Haible  <bruno@clisp.org>
1574
1575         fstatat: Remove unused dependency.
1576         * modules/fstatat (Depends-on): Remove fstat.
1577
1578 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1579
1580         GNUmakefile: behave when Makefile is missing.
1581         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1582
1583 2011-11-08  Bruno Haible  <bruno@clisp.org>
1584
1585         openat: Conditionalize dependencies.
1586         * lib/openat.c: Reduce the scope of some #includes.
1587         * modules/openat (Depends-on): Add conditions.
1588
1589 2011-11-07  Jim Meyering  <meyering@redhat.com>
1590
1591         maint.mk: extract GPG key ID without using a temporary file
1592         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1593         without using a temporary file.  Based on a suggestion from Werner Koch
1594         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1595
1596 2011-11-07  Eric Blake  <eblake@redhat.com>
1597
1598         grantpt: fix typo
1599         * lib/stdlib.in.h (grantpt): Check correct function.
1600
1601         maint.mk: silence new syntax check
1602         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1603
1604 2011-11-06  Bruno Haible  <bruno@clisp.org>
1605
1606         Doc about floating-point and math API.
1607         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1608         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1609
1610 2011-11-06  Bruno Haible  <bruno@clisp.org>
1611
1612         stdalign tests: Skip the test when compiled by Sun C.
1613         * tests/test-stdalign.c (main): Skip the test on Sun C.
1614
1615 2011-11-06  Bruno Haible  <bruno@clisp.org>
1616
1617         ansi-c++-opt: Complete the 2011-06-05 change.
1618         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1619         does not support namespaces, set the variable to "no", not to ":".
1620
1621 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1622
1623         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1624
1625 2011-11-06  Bruno Haible  <bruno@clisp.org>
1626
1627         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1628         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1629         (minus_zerol) [HP-UX]: New macro.
1630         (unary_minus) [HP-UX]: New function.
1631         (copysignl) [HP-UX]: Use unary_minus function.
1632
1633 2011-11-06  Bruno Haible  <bruno@clisp.org>
1634
1635         ldexp, ldexpf, ldexpl: Enhance tests.
1636         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1637         and tests/test-ldexpl.c.
1638         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1639         LDEXP, MIN_EXP, MAX_EXP): New macros.
1640         Include test-ldexp.h.
1641         (main): Just call test_function.
1642         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1643         infinity.h, nan.h.
1644         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1645         MAX_EXP): New macros.
1646         Include test-ldexp.h.
1647         (x, y): Remove variables.
1648         (main): Just call test_function.
1649         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1650         infinity.h, nan.h.
1651         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1652         MAX_EXP): New macros.
1653         Include test-ldexp.h.
1654         (x, y): Remove variables.
1655         (main): Just call test_function.
1656         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1657         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1658         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1659         (Depends-on): Add isnand-nolibm, signbit, float.
1660         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1661         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1662         (Depends-on): Add isnanf-nolibm, signbit, float.
1663
1664 2011-11-06  Bruno Haible  <bruno@clisp.org>
1665
1666         math tests: Cosmetics.
1667         * tests/test-math-c++.cc: Reorder declarations.
1668
1669 2011-11-05  Bruno Haible  <bruno@clisp.org>
1670
1671         fma*: Simplify test.
1672         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1673         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1674
1675         Tests for module 'fmal'.
1676         * modules/fmal-tests: New file.
1677         * tests/test-fmal1.c: New file.
1678         * tests/test-fmal2.c: New file.
1679
1680         New module 'fmal'.
1681         * lib/math.in.h (fmal): New declaration.
1682         * lib/fmal.c: New file.
1683         * m4/fmal.m4: New file.
1684         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1686         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1687         REPLACE_FMAL.
1688         * modules/fmal: New file.
1689         * doc/posix-functions/fmal.texi: Mention the new module and the various
1690         bugs.
1691
1692         Tests for module 'fmaf'.
1693         * modules/fmaf-tests: New file.
1694         * tests/test-fmaf1.c: New file.
1695         * tests/test-fmaf2.c: New file.
1696
1697         New module 'fmaf'.
1698         * lib/math.in.h (fmaf): New declaration.
1699         * lib/fmaf.c: New file.
1700         * m4/fmaf.m4: New file.
1701         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1703         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1704         REPLACE_FMAF.
1705         * modules/fmaf: New file.
1706         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1707         bugs.
1708
1709         Tests for module 'fma'.
1710         * modules/fma-tests: New file.
1711         * tests/test-fma1.c: New file.
1712         * tests/test-fma1.h: New file.
1713         * tests/test-fma2.c: New file.
1714         * tests/test-fma2.h: New file.
1715
1716         New module 'fma'.
1717         * lib/math.in.h (fma): New declaration.
1718         * lib/fma.c: New file.
1719         * m4/fma.m4: New file.
1720         * m4/fegetround.m4: New file.
1721         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1723         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1724         REPLACE_FMA.
1725         * modules/fma: New file.
1726         * doc/posix-functions/fma.texi: Mention the new module and the various
1727         bugs.
1728
1729         Extend gl_MATHFUNC.
1730         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1731         Support 'void' as argument type.
1732         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1733
1734 2011-11-05  Jim Meyering  <meyering@redhat.com>
1735
1736         maint.mk: also prohibit inclusion of dirent.h without use
1737         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1738
1739 2011-11-05  Bruno Haible  <bruno@clisp.org>
1740
1741         ldexpl tests: Avoid test failure on MSVC 9.
1742         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1743         value. Needed in order to enforce the conversion from a value greater
1744         than LDBL_MAX to Infinity.
1745
1746 2011-11-05  Bruno Haible  <bruno@clisp.org>
1747
1748         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1749         * modules/at-internal: New file, extracted from modules/openat.
1750         * modules/openat-h: New file.
1751         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1752         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1753         * modules/openat (Description): Add reference to POSIX function.
1754         (Files): Remove lib/openat.h, lib/openat-proc.c.
1755         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1756         intprops, unistd.
1757         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1758         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1759         gl_FCNTL_MODULE_INDICATOR.
1760         (Include): Remove unistd.h, openat.h.
1761         * modules/areadlinkat (Files): Add lib/at-func.c.
1762         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1763         openat-die, openat-h, save-cwd.
1764         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1765         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1766         openat-die, openat-h, save-cwd, unistd.
1767         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1768         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1769         openat-h, save-cwd. Remove fcntl-h, openat.
1770         * modules/fchmodat (Files): Remove lib/openat.h.
1771         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1772         openat, stdbool, unistd.
1773         * modules/fchownat (Files): Remove lib/openat.h.
1774         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1775         openat, stdbool, sys_stat.
1776         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1777         lib/openat-proc.c.
1778         (Depends-on): Add at-internal.
1779         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1780         * modules/fstatat (Files): Remove lib/openat.h.
1781         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1782         stdbool, unistd.
1783         * modules/fts (Depends-on): Add openat-h.
1784         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1785         openat.
1786         * modules/mkdirat (Files): Remove lib/openat.h.
1787         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1788         openat, stdbool, sys_stat.
1789         * modules/mkfifoat (Files): Add lib/at-func.c.
1790         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1791         openat-h, save-cwd. Remove fcntl-h, openat.
1792         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1793         * modules/readlinkat (Files): Add lib/at-func.c.
1794         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1795         openat-h, save-cwd. Remove fcntl-h, openat.
1796         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1797         openat.
1798         * modules/selinux-at (Files): Add lib/at-func.c.
1799         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1800         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1801         * modules/symlinkat (Files): Add lib/at-func.c.
1802         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1803         openat-h, save-cwd. Remove fcntl-h, openat.
1804         * modules/unlinkat (Files): Remove lib/openat.h.
1805         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1806         stdbool.
1807         * modules/utimensat (Files): Add lib/at-func.c.
1808         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1809         openat-die, openat-h, save-cwd.
1810         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1811         * modules/fdutimensat-tests (Depends-on): Add openat.
1812         * modules/fstatat-tests (Depends-on): Add openat-h.
1813         * modules/readlinkat-tests (Depends-on): Add openat.
1814         * modules/symlinkat-tests (Depends-on): Add openat.
1815
1816 2011-11-05  Bruno Haible  <bruno@clisp.org>
1817
1818         openat: Include <stdbool.h>.
1819         * lib/openat.c: Include <stdbool.h>.
1820
1821 2011-11-04  Bruno Haible  <bruno@clisp.org>
1822
1823         fchownat, renameat, unlinkat: Fix dependencies.
1824         * modules/fchownat (Depends-on): Add fstatat.
1825         * modules/renameat (Depends-on): Likewise.
1826         * modules/unlinkat (Depends-on): Likewise.
1827
1828 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         openat: remove direct dependency on dirent
1831         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1832         and hasn't been needed ever since fdopendir was split into its own
1833         module on 2009-08-31.
1834         * modules/openat (Depends-on): Remove dirent.
1835
1836 2011-11-04  Bruno Haible  <bruno@clisp.org>
1837
1838         renameat: Optimize code size.
1839         * modules/renameat (configure.ac): Don't compile at-func2.c if
1840         REPLACE_RENAMEAT is 1.
1841
1842 2011-11-04  Bruno Haible  <bruno@clisp.org>
1843
1844         openat tests: Fix file list.
1845         * modules/openat-tests (Files): Add tests/test-open.h.
1846
1847 2011-11-04  Bruno Haible  <bruno@clisp.org>
1848
1849         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1850         * modules/fchmodat (Depends-on): Add openat-die.
1851         * modules/fchownat (Depends-on): Likewise.
1852         * modules/linkat (Depends-on): Likewise.
1853         * modules/renameat (Depends-on): Likewise.
1854         * modules/openat (Depends-on): Add dirent.
1855
1856 2011-11-04  Jim Meyering  <meyering@redhat.com>
1857
1858         at-func*.c: fix comments
1859         * lib/at-func2.c: Correct/improve first-line comment.
1860         * lib/at-func.c: Correct grammar in first-line comment.
1861
1862 2011-11-04  Bruno Haible  <bruno@clisp.org>
1863
1864         New module 'mkdirat', split off from module 'openat'.
1865         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1866         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1867         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1868         * modules/mkdirat: New file, extracted from modules/openat.
1869         * modules/openat (Files): Remove lib/mkdirat.c.
1870         (Depends-on): Remove mkdir.
1871         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1872         (Include): Remove <sys/stat.h>.
1873         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1874         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1875         tests/test-mkdir.h.
1876         (Depends-on): Remove ignore-value.
1877         (Makefile.am): Remove rules for test-mkdirat.
1878         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1879         of module 'openat'.
1880         * NEWS: Mention the change.
1881
1882 2011-11-04  Bruno Haible  <bruno@clisp.org>
1883
1884         closedir: Avoid warning on mingw.
1885         * lib/closedir.c: Include <unistd.h>.
1886
1887 2011-11-04  Bruno Haible  <bruno@clisp.org>
1888
1889         New module 'fstatat', split off from module 'openat'.
1890         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1891         defined.
1892         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1893         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1894         gl_FUNC_FSTATAT.
1895         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1896         * modules/fstatat: New file, extracted from modules/openat.
1897         * modules/openat (Files): Remove lib/fstatat.c.
1898         (Depends-on): Remove lstat.
1899         (configure.ac): Remove AC_LIBOBJ of fstatat.
1900         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1901         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1902         tests/test-lstat.h, tests/test-stat.h.
1903         (Depends-on): Remove getcwd-lgpl.
1904         (Makefile.am): Remove rules for test-fstatat.
1905         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1906         of module 'openat'.
1907         * NEWS: Mention the change.
1908         * modules/getcwd (Depends-on): Add fstatat.
1909         * modules/linkat (Depends-on): Likewise.
1910         * modules/mkfifoat-tests (Depends-on): Likewise.
1911         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1912
1913 2011-11-03  Bruno Haible  <bruno@clisp.org>
1914
1915         New module 'unlinkat', split off from module 'openat'.
1916         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1917         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1918         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1919         * modules/unlinkat: New file, extracted from modules/openat. Correct
1920         the dependency conditions.
1921         * modules/openat (Files): Remove lib/unlinkat.c.
1922         (Depends-on): Remove rmdir, unlink.
1923         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1924         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1925         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1926         tests/test-rmdir.h, tests/test-unlink.h.
1927         (Depends-on): Remove unlinkdir.
1928         (Makefile.am): Remove rules for test-unlinkat.
1929         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1930         of module 'openat'.
1931         * NEWS: Mention the change.
1932         * modules/linkat-tests (Depends-on): Add unlinkat.
1933         * modules/mkfifoat-tests (Depends-on): Likewise.
1934         * modules/readlinkat-tests (Depends-on): Likewise.
1935
1936 2011-11-02  Bruno Haible  <bruno@clisp.org>
1937
1938         New module 'fchmodat', split off from module 'openat'.
1939         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1940         defined.
1941         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1942         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1943         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1944         * modules/fchmodat: New file, extracted from modules/openat.
1945         * modules/openat (Files): Remove lib/fchmodat.c.
1946         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1947         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1948         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1949         (Makefile.am): Remove rules for test-fchmodat.
1950         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1951         of module 'openat'.
1952         * NEWS: Mention the change.
1953
1954 2011-11-02  Jim Meyering  <meyering@redhat.com>
1955
1956         putenv: indent #definition of "environ" to placate cppi
1957         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1958
1959         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1960         Git logs are often treated as immutable, because editing them
1961         changes the SHA1 checksums of all descendants.  Thus, errors in
1962         git logs tend to stay there forever.  However, when we generate
1963         a ChangeLog file -- typically for distribution -- from that git log,
1964         we can actually make corrections in the generated file.  The key
1965         lies in recording in machine-readable/applicable form the desired
1966         corrections.  See --help for description and an example.
1967         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1968         (usage): Describe it; alphabetize option descriptions.
1969         (main): Honor the new option, carefully.
1970
1971 2011-11-01  Jim Meyering  <meyering@redhat.com>
1972
1973         gitlog-to-changelog: avoid an infloop
1974         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1975         that ends up being empty.
1976
1977 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1980         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1981         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1982         contains (possibly-quoted) backslashes.  This should avoid
1983         all-too-common shell bugs if COMPLICATED contains backslashes in
1984         the "wrong" places.  Reported by David Evans in
1985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1986         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1987         because we want ASCII ranges.  Is there some reason we don't use
1988         the C locale everywhere in this script?
1989         (func_module, top level): Avoid unwanted pathname expansion when
1990         $repo_url_prefix or $repo_url_suffix_repl contain shell
1991         metacharacters like '?' and '*'.
1992
1993 2011-11-01  Bruno Haible  <bruno@clisp.org>
1994
1995         fchownat: Improve description.
1996         * modules/fchownat (Description): Add link to function.
1997
1998 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1999
2000         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2001         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2003         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2004
2005 2011-11-01  Bruno Haible  <bruno@clisp.org>
2006
2007         alignof: Avoid collision with stdalign module.
2008         * lib/alignof.h (alignof): Remove macro.
2009         * NEWS: Mention the change.
2010         Reported by Paul Eggert.
2011
2012 2011-11-01  Bruno Haible  <bruno@clisp.org>
2013
2014         New module 'fchownat', split off from module 'openat'.
2015         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2016         defined.
2017         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2018         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2019         invoke gl_FUNC_FCHOWNAT.
2020         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2021         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2022         * modules/fchownat: New file, extracted from modules/openat.
2023         * modules/openat (Files): Remove lib/fchownat.c.
2024         (Depends-on): Remove lchown.
2025         (configure.ac): Remove AC_LIBOBJ of fchownat.
2026         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2027         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2028         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2029         (Depends-on): Remove mgetgroups, usleep, stat-time.
2030         (configure.ac): Remove test for getegid.
2031         (Makefile.am): Remove rules for test-fchownat.
2032         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2033         of module 'openat'.
2034         * NEWS: Mention the change.
2035
2036 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         stdalign: port better to MSVC and to Sun C 5.11
2039         This fixes some of the problems reported by Bruno Haible in
2040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2041         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2042         shortcomings of MSVC and of Sun C 5.11.
2043         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2044         around __declspec arg.
2045         * modules/stdalign-tests (Files): Add tests/macros.h.
2046         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2047         Include macros.h, for ASSERT.
2048         (DECLARE_ALIGNED): Remove.
2049         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2050         to catch bug), and to 1 if not (simplifies the rest of the code).
2051         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2052         (CHECK_AUTO): Remove.
2053         (CHECK_ALIGNED): Check only the alignment of the static vars,
2054         since auto var alignment isn't supported by Sun C 5.11.
2055         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2056         ASSERT failures are easier to diagnose.
2057
2058 2011-10-31  Bruno Haible  <bruno@clisp.org>
2059
2060         doc about some IRIX 5.3 problems.
2061         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2062         on IRIX 5.3.
2063         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2064         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2065         5.3.
2066         * doc/posix-functions/grantpt.texi: Likewise.
2067         * doc/posix-functions/unlockpt.texi: Likewise.
2068         * doc/posix-functions/lgamma.texi: Likewise.
2069         * doc/posix-functions/nextafter.texi: Likewise.
2070         * doc/posix-functions/remainder.texi: Likewise.
2071         * doc/posix-functions/select.texi: Mention misplaced declaration on
2072         IRIX 5.3.
2073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2074
2075 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2076
2077         gitlog-to-changelog: fix git-log invocation.
2078         git-log mishandles date strings before 1970-01-01 UTC, and there is
2079         no use to specify --since=1970-01-01 by default anyway.
2080         * build-aux/gitlog-to-changelog: By default, when no --since option
2081         was given, do not specify explicit --since option to git-log.
2082
2083 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2084
2085         gitlog-to-changelog: new option --append-dot.
2086         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2087         first non-blank line of each commit message terminated with a dot.
2088
2089 2011-10-30  Bruno Haible  <bruno@clisp.org>
2090
2091         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2092         * lib/ffsl.h: Include <config.h>.
2093         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2094
2095 2011-10-30  Jim Meyering  <meyering@redhat.com>
2096
2097         GNUmakefile: reenable "make syntax-check" for most projects
2098         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2099         build-aux variable", "syntax-check" would do nothing but succeed with
2100         the "No version control files detected..." diagnostic (unless you
2101         happened to override _build-aux via cfg.mk).
2102         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2103         to precede inclusion of maint.mk.  Otherwise, these variables would
2104         be used undefined in any project that does not override the default.
2105
2106 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2107
2108         gitlog-to-changelog: treat a message with only blank lines as empty.
2109         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2110         trailing blank lines before the code that issues a warning about an
2111         empty commit message.
2112
2113 2011-10-30  Jim Meyering  <meyering@redhat.com>
2114
2115         test-parse-datetime.c: avoid new DST-related false positive test failure
2116         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2117         based on the time/date we'll convert, not the current time.
2118         Otherwise, the moment we cross a DST boundary like today's in
2119         Europe, (CEST to CET), that offset ends up being one hour off.
2120
2121 2011-10-27  Bruno Haible  <bruno@clisp.org>
2122
2123         fstat: Tweak documentation.
2124         * modules/fstat (Description): More precise description.
2125
2126 2011-10-27  Bruno Haible  <bruno@clisp.org>
2127
2128         Update documentation regarding 'largefile' module.
2129         * doc/posix-functions/fstat.texi: Tweak wording.
2130         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2131         problems with huge directories and/or small ino_t types.
2132         * doc/posix-functions/readdir.texi: Likewise.
2133         * doc/posix-functions/rewinddir.texi: Likewise.
2134
2135 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2136
2137         maint.mk: don't maintain a second build-aux variable.
2138         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2139         depends on GNUmakefile, which already maintains a cfg.mk
2140         overridable $(_build-aux) for projects with a non-standard
2141         build-aux directory location, although without the $(srcdir)
2142         prefix.  Use that variable consistently instead of introducing a
2143         second one.  Adjust all call sites.
2144
2145 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2146
2147         Add stdalign module and use it in other modules.
2148         This is based on a previous proposal by Bruno Haible
2149         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2150
2151         stdalign: new module
2152         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2153         * modules/stdalign: New files.
2154         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2155         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2156
2157         stdalign-tests: new module
2158         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2159
2160         argp: use stdalign
2161         * lib/argp-parse.c: Include <stdalign.h>.
2162         (alignof): Remove.
2163         * modules/argp (Depends-on): Add stdalign.
2164
2165         crypto libraries: use stdalign
2166         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2167         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2168         Do not include <stdlib.h> twice, in md4.c.
2169         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2170         because we are accessing a pointer's bit-pattern, not a size.
2171         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2172         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2173         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2174         * modules/crypto/sha512: Likewise.
2175
2176         sys_socket: use stdalign, not alignof
2177         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2178         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2179
2180 2011-10-27  Bruno Haible  <bruno@clisp.org>
2181
2182         raise test: Avoid a test failure on Linux/MIPS.
2183         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2184         because 99 is a valid signal on Linux/MIPS.
2185
2186 2011-10-27  Bruno Haible  <bruno@clisp.org>
2187
2188         nonblocking tests: Fix test failure on Linux/MIPS.
2189         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2190         Set to 270000.
2191
2192 2011-10-27  Bruno Haible  <bruno@clisp.org>
2193
2194         utimensat: Work around problem on Linux/hppa.
2195         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2196         values.
2197         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2198
2199 2011-10-25  Jim Meyering  <meyering@redhat.com>
2200
2201         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2202         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2203         after symbols like NULL, size_t, etc.
2204         Reported by Alfred M. Szmidt.
2205
2206         maint.mk: exempt ENODATA from a syntax-check rule
2207         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2208         from the sc_prohibit_always-defined_macros syntax-check rule.
2209         Add a comment.  See this for more details:
2210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2211
2212 2011-10-23  Jim Meyering  <meyering@redhat.com>
2213
2214         fts: close parent dir FD before returning from post-traversal fts_read
2215         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2216         unlink A, even though an FD open on A remained.  This is suboptimal
2217         (holding a file descriptor open longer than needed), but otherwise not
2218         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2219         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2220         that represents a real problem: it causes the removal of A to fail
2221         with e.g., "rm: cannot remove `A': Device or resource busy"
2222
2223         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2224         directory file descriptors.  After completing the final, FTS_DP,
2225         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2226         cache, but then proceeded to add a new FD to it via the subsequent
2227         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2228         final file descriptor would be closed only via fts_close's call to
2229         fd_ring_clear.  Now, it is usually closed earlier, via the final
2230         FTS_DP-returning fts_read call.
2231         * lib/fts.c (restore_initial_cwd): New function, converted from
2232         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2233         Update callers.
2234         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2235         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2236
2237 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2238             Bruno Haible  <bruno@clisp.org>
2239             Jim Meyering  <jim@meyering.net>
2240
2241         readme-release: improve safety of release prep instructions.
2242         * README-release: Don't git pull all branches when only master
2243         is needed for the release process.
2244         Run make maintainer-clean before changing trees and merging.
2245         Don't try to run ./configure right after git pull in case files
2246         that influence the bootstrap process have changed, move the
2247         ./configure step to after running ./bootstrap.
2248         Don't bootstrap "one last time"... it's the first time!
2249
2250 2011-10-22  Bruno Haible  <bruno@clisp.org>
2251
2252         errno, strerror-override: Support for MSVC 10.
2253         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2254         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2255         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2256         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2257         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2258         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2259         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2260         Assign values compatible with MSVC 10.
2261         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2262         New macros.
2263         (GNULIB_defined_EWINSOCK): New macro.
2264         * lib/strerror-override.c (strerror_override): Update accordingly.
2265         * lib/strerror-override.h: Likewise.
2266         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2267         longer equal to the corresponding errno value.
2268         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2269
2270 2011-10-22  Bruno Haible  <bruno@clisp.org>
2271
2272         perror: Recognize when test program crashes.
2273         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2274         strerror, set gl_cv_func_perror_works to no.
2275         Reported by Daniel Richard G. <skunk@iskunk.org>.
2276
2277         perror: Fix indentation.
2278         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2279
2280 2011-10-22  Bruno Haible  <bruno@clisp.org>
2281
2282         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2283         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2284         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2285         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2286         functions, not as a macro.
2287         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2288         macros.
2289         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2290         absence of macro.
2291         Suggested by Eric Blake.
2292         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2293
2294 2011-10-21  Bruno Haible  <bruno@clisp.org>
2295
2296         relocatable-prog-wrapper: Don't leave object files behind.
2297         * build-aux/install-reloc: Re-synchronize list of .o files to be
2298         removed with list of compilation units.
2299
2300 2011-10-20  Bruno Haible  <bruno@clisp.org>
2301
2302         openpty, posix_openpt: Remove code duplication.
2303         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2304         * lib/openpty.c: Include <stdlib.h>.
2305         (openpty): Use posix_openpt on all platforms except IRIX.
2306         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2307
2308 2011-10-20  Bruno Haible  <bruno@clisp.org>
2309
2310         unlockpt: Detect invalid argument.
2311         * lib/unlockpt.c: Include <fcntl.h>.
2312         (unlockpt): Check whether fd is valid, using fcntl().
2313         * modules/unlockpt (Depends-on): Add fcntl-h.
2314
2315 2011-10-20  Bruno Haible  <bruno@clisp.org>
2316
2317         openpty: Avoid compilation error on AIX 6.1.
2318         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2319
2320 2011-10-20  Bruno Haible  <bruno@clisp.org>
2321
2322         posix_openpt: Support for OpenBSD.
2323         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2324         (posix_openpt) [OpenBSD]: New code.
2325         * lib/grantpt.c: Include <fcntl.h>.
2326         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2327         * modules/grantpt (Depends-on): Add fcntl-h.
2328
2329 2011-10-20  Bruno Haible  <bruno@clisp.org>
2330
2331         posix_openpt test: Coding style.
2332         * tests/test-posix_openpt.c: Use GNU coding style.
2333
2334 2011-10-20  Bruno Haible  <bruno@clisp.org>
2335
2336         grantpt: Support --avoid=pt_chown.
2337         * modules/grantpt (Files): Add lib/pty-private.h.
2338
2339 2011-10-20  Bruno Haible  <bruno@clisp.org>
2340
2341         posix_openpt: Fix autoconf macro.
2342         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2343         unneeded check for _getpty.
2344
2345 2011-10-20  Bruno Haible  <bruno@clisp.org>
2346
2347         openpty: Update comments.
2348         * lib/openpty.c: Add comments about Minix.
2349
2350 2011-10-19  Eric Blake  <eblake@redhat.com>
2351
2352         openpty: relax license
2353         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2354
2355         pt_chown: use configmake to simplify build
2356         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2357
2358         ptsname and others: relax license
2359         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2360         * modules/unlockpt (License): Likewise.
2361         * modules/pt_chown (License): Likewise.
2362         * modules/ptsname (License): Likewise.
2363         * modules/ttyname_r (License): Likewise.
2364
2365 2011-10-19  Jim Meyering  <meyering@redhat.com>
2366
2367         posix_openpt: remove spurious #endif
2368         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2369
2370 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2371
2372         maint.mk: Respect $(build_aux) in web-manual rule.
2373         * top/maint.mk (web-manual): Find gen-announce script in user's
2374         $(build_aux) directory instead of hard-coding 'build-aux'.
2375
2376 2011-10-19  Bruno Haible  <bruno@clisp.org>
2377
2378         posix_openpt: Fix compilation error.
2379         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2380         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2381         Mention the openpty module as an alternative.
2382
2383 2011-10-19  Bruno Haible  <bruno@clisp.org>
2384
2385         Support for old NeXTstep 3.3 frexp().
2386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2387         execution time of the test to 5 seconds.
2388         Reported by Daniel Richard G. <skunk@iskunk.org>.
2389
2390 2011-10-19  Bruno Haible  <bruno@clisp.org>
2391
2392         Support for old NeXTstep 3.3 sed.
2393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2394         part, use /.../, not \|...|. Escape periods in the header file name.
2395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2396         Reported by Daniel Richard G. <skunk@iskunk.org>.
2397
2398 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2399
2400         Support for old NeXTstep 3.3 gcc.
2401         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2402         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2403         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2404         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2405         * lib/regex.h (_Restrict_arr_): Likewise.
2406         * lib/regex_internal.h (re_token_t): Likewise.
2407         * lib/regexec.c (check_node_accept_bytes): Likewise.
2408         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2409
2410 2011-10-18  Eric Blake  <eblake@redhat.com>
2411
2412         posix_openpt: new module
2413         * modules/posix_openpt: New module.
2414         * m4/posix_openpt.m4: New file.
2415         * lib/posix_openpt.c: Likewise.
2416         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2417         (gl_STDLIB_H_DEFAULTS): Set defaults.
2418         * modules/stdlib (Makefile.am): Substitute macros.
2419         * lib/stdlib.in.h (posix_openpt): Declare.
2420         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2421         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2422         * modules/posix_openpt-tests: New test module.
2423         * tests/test-posix_openpt.c: New test.
2424
2425 2011-10-15  Bruno Haible  <bruno@clisp.org>
2426
2427         xstrtoll: Fix compilation failure.
2428         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2429         from lib/strtol.c.
2430         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2431         some platforms.
2432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2433
2434 2011-10-15  Bruno Haible  <bruno@clisp.org>
2435
2436         vasnprintf: Optimize bit search operation.
2437         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2439         gl_DOUBLE_EXPONENT_LOCATION.
2440         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2441         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2442         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2443         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2444         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2445         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2446         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2447         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2448         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2449
2450 2011-10-15  Bruno Haible  <bruno@clisp.org>
2451
2452         vasnprintf: Fix comments.
2453         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2454
2455 2011-10-14  Bruno Haible  <bruno@clisp.org>
2456
2457         Tests for module 'integer_length_ll'.
2458         * modules/integer_length_ll-tests: New file.
2459         * tests/test-integer_length_ll.c: New file.
2460
2461         New module 'integer_length_ll'.
2462         * lib/integer_length_ll.c: New file.
2463         * modules/integer_length_ll: New file.
2464
2465 2011-10-14  Bruno Haible  <bruno@clisp.org>
2466
2467         Tests for module 'integer_length_l'.
2468         * modules/integer_length_l-tests: New file.
2469         * tests/test-integer_length_l.c: New file.
2470
2471         New module 'integer_length_l'.
2472         * lib/integer_length_l.c: New file.
2473         * modules/integer_length_l: New file.
2474
2475 2011-10-14  Bruno Haible  <bruno@clisp.org>
2476
2477         Tests for module 'integer_length'.
2478         * modules/integer_length-tests: New file.
2479         * tests/test-integer_length.c: New file.
2480
2481         New module 'integer_length'.
2482         * lib/integer_length.h: New file.
2483         * lib/integer_length.c: New file.
2484         * modules/integer_length: New file.
2485
2486 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2487
2488         popen: Fix dependency conditions.
2489         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2490
2491 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2492
2493         perror: Fix autoconf test.
2494         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2495         <stdlib.h> and <string.h>.
2496
2497 2011-10-14  Bruno Haible  <bruno@clisp.org>
2498
2499         ffsl: Optimize on 64-bit platforms.
2500         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2501         unrolling.
2502
2503 2011-10-13  Bruno Haible  <bruno@clisp.org>
2504
2505         ffsl: Optimize on 32-bit platforms.
2506         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2507         use ffs() without a loop.
2508
2509         ffsl, ffsll: Optimize for GCC.
2510         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2511         * lib/ffsl.c (GCC_BUILTIN): New macro.
2512         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2513
2514 2011-10-13  Bruno Haible  <bruno@clisp.org>
2515
2516         ffs, bcopy, memset: Support symbol renaming via config.h.
2517         * lib/ffs.c: Include <config.h>.
2518         * lib/bcopy.c: Likewise.
2519         * lib/memset.c: Likewise.
2520
2521 2011-10-10  Bruno Haible  <bruno@clisp.org>
2522
2523         atanl: Simplify for platforms where 'long double' == 'double'.
2524         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2525         alternative implementation.
2526         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2527         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2528         * modules/atanl (Depends-on): Add atan. Update conditions.
2529
2530 2011-10-10  Bruno Haible  <bruno@clisp.org>
2531
2532         acosl: Simplify for platforms where 'long double' == 'double'.
2533         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2534         alternative implementation.
2535         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2536         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2537         * modules/acosl (Depends-on): Add acos. Update conditions.
2538
2539 2011-10-10  Bruno Haible  <bruno@clisp.org>
2540
2541         asinl: Simplify for platforms where 'long double' == 'double'.
2542         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2543         alternative implementation.
2544         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2545         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2546         * modules/asinl (Depends-on): Add asin. Update conditions.
2547
2548 2011-10-10  Bruno Haible  <bruno@clisp.org>
2549
2550         tanl: Simplify for platforms where 'long double' == 'double'.
2551         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2552         implementation.
2553         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2554         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2555         * modules/tanl (Depends-on): Add tan. Update conditions.
2556         (configure.ac): Don't compile trigl.c if
2557         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2558
2559 2011-10-10  Bruno Haible  <bruno@clisp.org>
2560
2561         cosl: Simplify for platforms where 'long double' == 'double'.
2562         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2563         implementation.
2564         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2565         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2566         * modules/cosl (Depends-on): Add cos. Update conditions.
2567         (configure.ac): Don't compile sincosl.c and trigl.c if
2568         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2569
2570 2011-10-10  Bruno Haible  <bruno@clisp.org>
2571
2572         sinl: Simplify for platforms where 'long double' == 'double'.
2573         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2574         implementation.
2575         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2576         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2577         * modules/sinl (Depends-on): Add sin. Update conditions.
2578         (configure.ac): Don't compile sincosl.c and trigl.c if
2579         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2580
2581 2011-10-10  Bruno Haible  <bruno@clisp.org>
2582
2583         logl: Simplify for platforms where 'long double' == 'double'.
2584         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2585         implementation.
2586         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2587         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2588         * modules/logl (Depends-on): Add log. Update conditions.
2589
2590 2011-10-10  Bruno Haible  <bruno@clisp.org>
2591
2592         expl: Simplify for platforms where 'long double' == 'double'.
2593         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2594         implementation.
2595         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2596         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2597         * modules/expl (Depends-on): Add exp. Update conditions.
2598
2599 2011-10-10  Bruno Haible  <bruno@clisp.org>
2600
2601         sqrtl: Simplify for platforms where 'long double' == 'double'.
2602         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2603         alternative implementation.
2604         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2605         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2606         * modules/sqrtl (Depends-on): Update conditions.
2607
2608 2011-10-10  Bruno Haible  <bruno@clisp.org>
2609
2610         ldexpl: Simplify for platforms where 'long double' == 'double'.
2611         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2612         alternative implementation.
2613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2614         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2615         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2616
2617 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2618
2619         ffsll: set correct witness
2620         * modules/ffsll (configure.ac): Fix typo.
2621
2622 2011-10-10  Bruno Haible  <bruno@clisp.org>
2623
2624         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2625         * lib/printf-frexpl.c: Include <config.h>.
2626         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2627         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2628         second time.
2629         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2630         gl_LONG_DOUBLE_VS_DOUBLE.
2631         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2632         conditions.
2633
2634 2011-10-10  Bruno Haible  <bruno@clisp.org>
2635
2636         frexpl: Simplify for platforms where 'long double' == 'double'.
2637         * lib/frexpl.c: Include <config.h>.
2638         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2639         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2640         time.
2641         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2642         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2643         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2644         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2645         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2646         conditions.
2647
2648 2011-10-10  Jim Meyering  <meyering@redhat.com>
2649
2650         test-renameat: don't leave behind a temporary file
2651         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2652           ERROR: files left in build directory after distclean:
2653           ./gltests/test-renameat.too
2654           make[1]: *** [distcleancheck] Error 1
2655         Reported by Tom G. Christensen.
2656
2657 2011-10-09  Bruno Haible  <bruno@clisp.org>
2658
2659         rint: Determine RINT_LIBM correctly on AIX 7.
2660         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2661         directly, not only through a function pointer. Also accept an optional
2662         4th argument with extra code.
2663         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2664         rintf() call by gcc when optimizing.
2665
2666         mathfunc.m4: Refactor.
2667         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2668         m4 variable.
2669
2670 2011-10-09  Bruno Haible  <bruno@clisp.org>
2671
2672         rintl: Simplify for platforms where 'long double' == 'double'.
2673         * lib/rintl.c: Include <config.h>.
2674         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2675         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2676         time.
2677         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2678         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2679         * modules/rintl (Depends-on): Add rint. Update conditions.
2680
2681 2011-10-09  Bruno Haible  <bruno@clisp.org>
2682
2683         roundl: Simplify for platforms where 'long double' == 'double'.
2684         * lib/roundl.c: Include <config.h>.
2685         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2686         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2687         time.
2688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2689         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2690         * modules/roundl (Depends-on): Add round. Update conditions.
2691
2692 2011-10-09  Bruno Haible  <bruno@clisp.org>
2693
2694         truncl: Simplify for platforms where 'long double' == 'double'.
2695         * lib/truncl.c: Include <config.h>.
2696         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2697         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2698         time.
2699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2700         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2701         * modules/truncl (Depends-on): Add trunc. Update conditions.
2702
2703 2011-10-09  Bruno Haible  <bruno@clisp.org>
2704
2705         ceill: Simplify for platforms where 'long double' == 'double'.
2706         * lib/ceill.c: Include <config.h>.
2707         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2708         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2709         time.
2710         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2711         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2712         * modules/ceill (Depends-on): Add ceil. Update conditions.
2713
2714 2011-10-09  Bruno Haible  <bruno@clisp.org>
2715
2716         floorl: Simplify for platforms where 'long double' == 'double'.
2717         * lib/floorl.c: Include <config.h>.
2718         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2719         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2720         time.
2721         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2722         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2723         * modules/floorl (Depends-on): Add floor. Update conditions.
2724
2725 2011-10-09  Bruno Haible  <bruno@clisp.org>
2726
2727         rint: Fix ordering constraints.
2728         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2729         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2730         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2731
2732 2011-10-09  Bruno Haible  <bruno@clisp.org>
2733
2734         copysignl: Simplify for platforms where 'long double' == 'double'.
2735         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2736         alternative.
2737         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2738         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2739         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2740
2741 2011-10-09  Bruno Haible  <bruno@clisp.org>
2742
2743         Tests for module 'rintl'.
2744         * modules/rintl-tests: New file.
2745         * tests/test-rintl.c: New file.
2746
2747         New module 'rintl'.
2748         * lib/math.in.h (rintl): New declaration.
2749         * lib/rintl.c: New file.
2750         * m4/rintl.m4: New file.
2751         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2753         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2754         * modules/rintl: New file.
2755         * tests/test-math-c++.cc: Check the declaration of rintl.
2756         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2757         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2758         * doc/posix-functions/rintl.texi: Mention the new module.
2759
2760 2011-10-09  Bruno Haible  <bruno@clisp.org>
2761
2762         Tests for module 'rintf'.
2763         * modules/rintf-tests: New file.
2764         * tests/test-rintf.c: New file.
2765
2766         New module 'rintf'.
2767         * lib/math.in.h (rintf): New declaration.
2768         * lib/rintf.c: New file.
2769         * m4/rintf.m4: New file.
2770         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2772         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2773         * modules/rintf: New file.
2774         * tests/test-math-c++.cc: Check the declaration of rintf.
2775         * doc/posix-functions/rintf.texi: Mention the new module.
2776
2777 2011-10-09  Bruno Haible  <bruno@clisp.org>
2778
2779         rint: Support for MSVC.
2780         * lib/math.in.h (rint): New declaration.
2781         * lib/rint.c: New file.
2782         * m4/rint.m4: New file.
2783         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2785         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2786         * modules/rint (Description): Fix.
2787         (Files): Add lib/rint.c, m4/rint.m4.
2788         (Depends-on): Add math.
2789         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2790         gl_MATH_MODULE_INDICATOR.
2791         * tests/test-math-c++.cc: Check the declaration of rint.
2792         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2793         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2794         * doc/posix-functions/rint.texi: Mention the replacement provided by
2795         the module.
2796
2797         rint tests: More tests.
2798         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2799         minus-zero.h, infinity.h, nan.h.
2800         (main): Skip the test if the current rounding mode is not standard. Add
2801         tests for negative numbers, minus zero, infinity, NaN.
2802         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2803         tests/nan.h.
2804         (Depends-on): Add isnand-nolibm.
2805
2806 2011-10-09  Bruno Haible  <bruno@clisp.org>
2807
2808         Tests for module 'copysignl'.
2809         * modules/copysignl-tests: New file.
2810         * tests/test-copysignl.c: New file.
2811
2812         New module 'copysignl'.
2813         * lib/math.in.h (copysignl): New declaration.
2814         * lib/copysignl.c: New file.
2815         * m4/copysignl.m4: New file.
2816         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2818         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2819         HAVE_COPYSIGNL.
2820         * modules/copysignl: New file.
2821         * tests/test-math-c++.cc: Check the declaration of copysignl.
2822         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2823         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2824         * doc/posix-functions/copysignl.texi: Mention the new module.
2825
2826 2011-10-09  Bruno Haible  <bruno@clisp.org>
2827
2828         Tests for module 'copysignf'.
2829         * modules/copysignf-tests: New file.
2830         * tests/test-copysignf.c: New file.
2831
2832         New module 'copysignf'.
2833         * lib/math.in.h (copysignf): New declaration.
2834         * lib/copysignf.c: New file.
2835         * m4/copysignf.m4: New file.
2836         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2838         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2839         HAVE_COPYSIGNF.
2840         * modules/copysignf: New file.
2841         * tests/test-math-c++.cc: Check the declaration of copysignf.
2842         * doc/posix-functions/copysignf.texi: Mention the new module.
2843
2844 2011-10-09  Bruno Haible  <bruno@clisp.org>
2845
2846         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2847         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2848         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2849         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2850         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2851         gl_SIGNAL_H_DEFAULTS.
2852
2853 2011-10-09  Bruno Haible  <bruno@clisp.org>
2854
2855         poll: Make macro safer.
2856         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2857         ac_cv_header_poll_h is not set.
2858
2859 2011-10-09  Bruno Haible  <bruno@clisp.org>
2860
2861         copysign: Provide replacement.
2862         * lib/math.in.h (copysign): New declaration.
2863         * lib/copysign.c: New file.
2864         * m4/copysign.m4: New file.
2865         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2867         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2868         HAVE_COPYSIGN.
2869         * modules/copysign (Description): Clarify.
2870         (Files): Add lib/copysign.c, m4/copysign.m4.
2871         (Depends-on): Add math, signbit.
2872         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2873         gl_MATH_MODULE_INDICATOR.
2874         * tests/test-math-c++.cc: Check the declaration of copysign.
2875         * doc/posix-functions/copysign.texi: Mention the effects of the module
2876         on Minix and MSVC.
2877
2878 2011-10-09  Bruno Haible  <bruno@clisp.org>
2879
2880         isinf: Ensure macro on AIX 5.1.
2881         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2882         macro.
2883         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2884
2885 2011-10-09  Bruno Haible  <bruno@clisp.org>
2886
2887         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2888         * modules/snprintf-posix-tests (configure.ac): Require
2889         gl_LONG_DOUBLE_VS_DOUBLE.
2890         * modules/sprintf-posix-tests (configure.ac): Likewise.
2891         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2892         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2893         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2894         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2895         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2896         tests on platforms where 'long double' is the same as 'double'.
2897         * tests/test-sprintf-posix.h (test_function): Likewise.
2898         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2899         * tests/test-vasprintf-posix.c (test_function): Likewise.
2900
2901         *printf: Fix for platforms where 'long double' == 'double'.
2902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2903         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2904         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2905         * modules/fprintf-posix (Files): Likewise.
2906         * modules/obstack-printf-posix (Files): Likewise.
2907         * modules/snprintf-posix (Files): Likewise.
2908         * modules/sprintf-posix (Files): Likewise.
2909         * modules/vasnprintf (Files): Likewise.
2910         * modules/vasnprintf-posix (Files): Likewise.
2911         * modules/vasprintf-posix (Files): Likewise.
2912         * modules/vdprintf-posix (Files): Likewise.
2913         * modules/vfprintf-posix (Files): Likewise.
2914         * modules/vsnprintf-posix (Files): Likewise.
2915         * modules/vsprintf-posix (Files): Likewise.
2916         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2917         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2918         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2919         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2920         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2921         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2922         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2923
2924         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2925         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2926         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2927         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2928         'long double'.
2929         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2930
2931         isinf: Fix for platforms where 'long double' == 'double'.
2932         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2933         Don't blindly assume 80-bit 'long double'.
2934
2935         isfinite: Fix for platforms where 'long double' == 'double'.
2936         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2937         Don't blindly assume 80-bit 'long double'.
2938
2939         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2940         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2941         * modules/isfinite-tests (configure.ac): Require
2942         gl_LONG_DOUBLE_VS_DOUBLE.
2943         * modules/isinf-tests (configure.ac): Likewise.
2944         * modules/isnan-tests (configure.ac): Likewise.
2945         * modules/isnanl-tests (configure.ac): Likewise.
2946         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2947         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2948         tests on platforms where 'long double' is the same as 'double'.
2949         * tests/test-isinf.c (test_isinfl): Likewise.
2950         * tests/test-isnan.c (test_long_double): Likewise.
2951         * tests/test-isnanl.h (main): Likewise.
2952
2953 2011-10-08  Bruno Haible  <bruno@clisp.org>
2954
2955         Tests for module 'tanhf'.
2956         * modules/tanhf-tests: New file.
2957         * tests/test-tanhf.c: New file.
2958
2959         New module 'tanhf'.
2960         * lib/math.in.h (tanhf): New declaration.
2961         * lib/tanhf.c: New file.
2962         * m4/tanhf.m4: New file.
2963         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2965         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2966         * modules/tanhf: New file.
2967         * tests/test-math-c++.cc: Check the declaration of tanhf.
2968         * doc/posix-functions/tanhf.texi: Mention the new module.
2969
2970         tanh: Use a .m4 file.
2971         * m4/tanh.m4: New file.
2972         * modules/tanh (Files): Add it.
2973         (configure.ac): Just invoke gl_FUNC_TANH.
2974
2975 2011-10-08  Bruno Haible  <bruno@clisp.org>
2976
2977         Tests for module 'coshf'.
2978         * modules/coshf-tests: New file.
2979         * tests/test-coshf.c: New file.
2980
2981         New module 'coshf'.
2982         * lib/math.in.h (coshf): New declaration.
2983         * lib/coshf.c: New file.
2984         * m4/coshf.m4: New file.
2985         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2987         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2988         * modules/coshf: New file.
2989         * tests/test-math-c++.cc: Check the declaration of coshf.
2990         * doc/posix-functions/coshf.texi: Mention the new module.
2991
2992         cosh: Use a .m4 file.
2993         * m4/cosh.m4: New file.
2994         * modules/cosh (Files): Add it.
2995         (configure.ac): Just invoke gl_FUNC_COSH.
2996
2997 2011-10-08  Bruno Haible  <bruno@clisp.org>
2998
2999         Tests for module 'sinhf'.
3000         * modules/sinhf-tests: New file.
3001         * tests/test-sinhf.c: New file.
3002
3003         New module 'sinhf'.
3004         * lib/math.in.h (sinhf): New declaration.
3005         * lib/sinhf.c: New file.
3006         * m4/sinhf.m4: New file.
3007         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3009         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3010         * modules/sinhf: New file.
3011         * tests/test-math-c++.cc: Check the declaration of sinhf.
3012         * doc/posix-functions/sinhf.texi: Mention the new module.
3013
3014         sinh: Use a .m4 file.
3015         * m4/sinh.m4: New file.
3016         * modules/sinh (Files): Add it.
3017         (configure.ac): Just invoke gl_FUNC_SINH.
3018
3019 2011-10-08  Bruno Haible  <bruno@clisp.org>
3020
3021         Tests for module 'atan2f'.
3022         * modules/atan2f-tests: New file.
3023         * tests/test-atan2f.c: New file.
3024
3025         New module 'atan2f'.
3026         * lib/math.in.h (atan2f): New declaration.
3027         * lib/atan2f.c: New file.
3028         * m4/atan2f.m4: New file.
3029         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3031         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3032         * modules/atan2f: New file.
3033         * tests/test-math-c++.cc: Check the declaration of atan2f.
3034         * doc/posix-functions/atan2f.texi: Mention the new module.
3035
3036         atan2: Use a .m4 file.
3037         * m4/atan2.m4: New file.
3038         * modules/atan2 (Files): Add it.
3039         (configure.ac): Just invoke gl_FUNC_ATAN2.
3040
3041 2011-10-08  Bruno Haible  <bruno@clisp.org>
3042
3043         Tests for module 'atanf'.
3044         * modules/atanf-tests: New file.
3045         * tests/test-atanf.c: New file.
3046
3047         New module 'atanf'.
3048         * lib/math.in.h (atanf): New declaration.
3049         * lib/atanf.c: New file.
3050         * m4/atanf.m4: New file.
3051         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3053         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3054         * modules/atanf: New file.
3055         * tests/test-math-c++.cc: Check the declaration of atanf.
3056         * doc/posix-functions/atanf.texi: Mention the new module.
3057
3058         atan: Use a .m4 file.
3059         * m4/atan.m4: New file.
3060         * modules/atan (Files): Add it.
3061         (configure.ac): Just invoke gl_FUNC_ATAN.
3062
3063 2011-10-08  Bruno Haible  <bruno@clisp.org>
3064
3065         Tests for module 'acosf'.
3066         * modules/acosf-tests: New file.
3067         * tests/test-acosf.c: New file.
3068
3069         New module 'acosf'.
3070         * lib/math.in.h (acosf): New declaration.
3071         * lib/acosf.c: New file.
3072         * m4/acosf.m4: New file.
3073         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3075         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3076         * modules/acosf: New file.
3077         * tests/test-math-c++.cc: Check the declaration of acosf.
3078         * doc/posix-functions/acosf.texi: Mention the new module.
3079
3080         acos: Use a .m4 file.
3081         * m4/acos.m4: New file.
3082         * modules/acos (Files): Add it.
3083         (configure.ac): Just invoke gl_FUNC_ACOS.
3084
3085 2011-10-08  Bruno Haible  <bruno@clisp.org>
3086
3087         Tests for module 'asinf'.
3088         * modules/asinf-tests: New file.
3089         * tests/test-asinf.c: New file.
3090
3091         New module 'asinf'.
3092         * lib/math.in.h (asinf): New declaration.
3093         * lib/asinf.c: New file.
3094         * m4/asinf.m4: New file.
3095         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3097         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3098         * modules/asinf: New file.
3099         * tests/test-math-c++.cc: Check the declaration of asinf.
3100         * doc/posix-functions/asinf.texi: Mention the new module.
3101
3102         asin: Use a .m4 file.
3103         * m4/asin.m4: New file.
3104         * modules/asin (Files): Add it.
3105         (configure.ac): Just invoke gl_FUNC_ASIN.
3106
3107 2011-10-08  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'tanf'.
3110         * modules/tanf-tests: New file.
3111         * tests/test-tanf.c: New file.
3112
3113         New module 'tanf'.
3114         * lib/math.in.h (tanf): New declaration.
3115         * lib/tanf.c: New file.
3116         * m4/tanf.m4: New file.
3117         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3119         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3120         * modules/tanf: New file.
3121         * tests/test-math-c++.cc: Check the declaration of tanf.
3122         * doc/posix-functions/tanf.texi: Mention the new module.
3123
3124         tan: Use a .m4 file.
3125         * m4/tan.m4: New file.
3126         * modules/tan (Files): Add it.
3127         (configure.ac): Just invoke gl_FUNC_TAN.
3128
3129 2011-10-08  Bruno Haible  <bruno@clisp.org>
3130
3131         Tests for module 'cosf'.
3132         * modules/cosf-tests: New file.
3133         * tests/test-cosf.c: New file.
3134
3135         New module 'cosf'.
3136         * lib/math.in.h (cosf): New declaration.
3137         * lib/cosf.c: New file.
3138         * m4/cosf.m4: New file.
3139         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3141         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3142         * modules/cosf: New file.
3143         * tests/test-math-c++.cc: Check the declaration of cosf.
3144         * doc/posix-functions/cosf.texi: Mention the new module.
3145
3146         cos: Use a .m4 file.
3147         * m4/cos.m4: New file.
3148         * modules/cos (Files): Add it.
3149         (configure.ac): Just invoke gl_FUNC_COS.
3150
3151 2011-10-08  Bruno Haible  <bruno@clisp.org>
3152
3153         Tests for module 'sinf'.
3154         * modules/sinf-tests: New file.
3155         * tests/test-sinf.c: New file.
3156
3157         New module 'sinf'.
3158         * lib/math.in.h (sinf): New declaration.
3159         * lib/sinf.c: New file.
3160         * m4/sinf.m4: New file.
3161         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3163         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3164         * modules/sinf: New file.
3165         * tests/test-math-c++.cc: Check the declaration of sinf.
3166         * doc/posix-functions/sinf.texi: Mention the new module.
3167
3168         sin: Use a .m4 file.
3169         * m4/sin.m4: New file.
3170         * modules/sin (Files): Add it.
3171         (configure.ac): Just invoke gl_FUNC_SIN.
3172
3173 2011-10-08  Bruno Haible  <bruno@clisp.org>
3174
3175         Tests for module 'powf'.
3176         * modules/powf-tests: New file.
3177         * tests/test-powf.c: New file.
3178
3179         New module 'powf'.
3180         * lib/math.in.h (powf): New declaration.
3181         * lib/powf.c: New file.
3182         * m4/powf.m4: New file.
3183         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3185         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3186         * modules/powf: New file.
3187         * tests/test-math-c++.cc: Check the declaration of powf.
3188         * doc/posix-functions/powf.texi: Mention the new module.
3189
3190         pow: Use a .m4 file.
3191         * m4/pow.m4: New file.
3192         * modules/pow (Files): Add it.
3193         (configure.ac): Just invoke gl_FUNC_POW.
3194
3195 2011-10-08  Bruno Haible  <bruno@clisp.org>
3196
3197         Tests for module 'log10f'.
3198         * modules/log10f-tests: New file.
3199         * tests/test-log10f.c: New file.
3200
3201         New module 'log10f'.
3202         * lib/math.in.h (log10f): New declaration.
3203         * lib/log10f.c: New file.
3204         * m4/log10f.m4: New file.
3205         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3207         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3208         * modules/log10f: New file.
3209         * tests/test-math-c++.cc: Check the declaration of log10f.
3210         * doc/posix-functions/log10f.texi: Mention the new module.
3211
3212         log10: Use a .m4 file.
3213         * m4/log10.m4: New file.
3214         * modules/log10 (Files): Add it.
3215         (configure.ac): Just invoke gl_FUNC_LOG10.
3216
3217 2011-10-08  Bruno Haible  <bruno@clisp.org>
3218
3219         Tests for module 'logf'.
3220         * modules/logf-tests: New file.
3221         * tests/test-logf.c: New file.
3222
3223         New module 'logf'.
3224         * lib/math.in.h (logf): New declaration.
3225         * lib/logf.c: New file.
3226         * m4/logf.m4: New file.
3227         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3229         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3230         * modules/logf: New file.
3231         * tests/test-math-c++.cc: Check the declaration of logf.
3232         * doc/posix-functions/logf.texi: Mention the new module.
3233
3234         log: Use a .m4 file.
3235         * m4/log.m4: New file.
3236         * modules/log (Files): Add it.
3237         (configure.ac): Just invoke gl_FUNC_LOG.
3238
3239 2011-10-08  Bruno Haible  <bruno@clisp.org>
3240
3241         Tests for module 'expf'.
3242         * modules/expf-tests: New file.
3243         * tests/test-expf.c: New file.
3244
3245         New module 'expf'.
3246         * lib/math.in.h (expf): New declaration.
3247         * lib/expf.c: New file.
3248         * m4/expf.m4: New file.
3249         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3251         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3252         * modules/expf: New file.
3253         * tests/test-math-c++.cc: Check the declaration of expf.
3254         * doc/posix-functions/expf.texi: Mention the new module.
3255
3256         exp: Use a .m4 file.
3257         * m4/exp.m4: New file.
3258         * modules/exp (Files): Add it.
3259         (configure.ac): Just invoke gl_FUNC_EXP.
3260
3261 2011-10-08  Bruno Haible  <bruno@clisp.org>
3262
3263         Tests for module 'sqrtf'.
3264         * modules/sqrtf-tests: New file.
3265         * tests/test-sqrtf.c: New file.
3266
3267         New module 'sqrtf'.
3268         * lib/math.in.h (sqrtf): New declaration.
3269         * lib/sqrtf.c: New file.
3270         * m4/sqrtf.m4: New file.
3271         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3273         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3274         * modules/sqrtf: New file.
3275         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3276         * doc/posix-functions/sqrtf.texi: Mention the new module.
3277
3278 2011-10-08  Bruno Haible  <bruno@clisp.org>
3279
3280         Tests: Avoid link failures w.r.t. libintl.
3281         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3282         $(LIBINTL).
3283         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3284         $(LIBINTL).
3285         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3286         against $(LIBINTL).
3287         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3288         $(LIBINTL).
3289         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3290         $(LIBINTL).
3291         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3292
3293 2011-10-08  Bruno Haible  <bruno@clisp.org>
3294
3295         pow tests: Defeat compiler optimizations.
3296         * tests/test-pow.c (main): Assign arguments to x and y before use.
3297
3298 2011-10-08  Bruno Haible  <bruno@clisp.org>
3299
3300         gnulib-tool: Improve last commit.
3301         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3302         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3303         ignore dependencies that are not among the modules list.
3304
3305 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3306
3307         gnulib-tool: don't follow dependencies to avoided modules
3308         This fixes a bug that is related to the previous one.
3309         * gnulib-tool (func_modules_transitive_closure)
3310         (func_emit_autoconf_snippets):
3311         Check whether a dependency is acceptable before using it.
3312         (--extract-dependencies): Report an error if --avoid is also used,
3313         since this combination of options is not yet supported.
3314
3315         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3316         Problem reported by Peter Dyballa in
3317         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3318         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3319         when echoing "$condition".
3320
3321 2011-10-07  Bruno Haible  <bruno@clisp.org>
3322
3323         Fix documentation about math functions on MacOS X.
3324         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3325         MacOS X 10.5.
3326         * doc/posix-functions/fdim.texi: Likewise.
3327         * doc/posix-functions/feclearexcept.texi: Likewise.
3328         * doc/posix-functions/fegetenv.texi: Likewise.
3329         * doc/posix-functions/fegetround.texi: Likewise.
3330         * doc/posix-functions/feholdexcept.texi: Likewise.
3331         * doc/posix-functions/feraiseexcept.texi: Likewise.
3332         * doc/posix-functions/fesetenv.texi: Likewise.
3333         * doc/posix-functions/fesetround.texi: Likewise.
3334         * doc/posix-functions/fetestexcept.texi: Likewise.
3335         * doc/posix-functions/feupdateenv.texi: Likewise.
3336         * doc/posix-functions/fmax.texi: Likewise.
3337         * doc/posix-functions/fmin.texi: Likewise.
3338         * doc/posix-functions/log2.texi: Likewise.
3339         * doc/posix-functions/modff.texi: Likewise.
3340         * doc/posix-functions/nan.texi: Likewise.
3341         * doc/posix-functions/nanf.texi: Likewise.
3342         * doc/posix-functions/nextafterf.texi: Likewise.
3343         * doc/posix-functions/remquo.texi: Likewise.
3344
3345 2011-10-07  Bruno Haible  <bruno@clisp.org>
3346
3347         modff: Drop assumption about library that defines modff.
3348         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3349         AC_CHECK_FUNCS.
3350         * modules/modff (Files): Add m4/mathfunc.m4.
3351
3352 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3353
3354         raise tests: Avoid a GCC warning.
3355         * tests/test-raise.c (handler): Use _Noreturn.
3356
3357 2011-10-07  Bruno Haible  <bruno@clisp.org>
3358
3359         Tests for module 'ldexpf'.
3360         * modules/ldexpf-tests: New file.
3361         * tests/test-ldexpf.c: New file.
3362
3363         New module 'ldexpf'.
3364         * lib/math.in.h (ldexpf): New declaration.
3365         * lib/ldexpf.c: New file.
3366         * m4/ldexpf.m4: New file.
3367         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3369         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3370         * modules/ldexpf: New file.
3371         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3372         * doc/posix-functions/ldexpf.texi: Mention the new module.
3373
3374 2011-10-06  Bruno Haible  <bruno@clisp.org>
3375
3376         frexpf: Work around problems on IRIX and mingw.
3377         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3379         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3380         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3381         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3382         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3383         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3384
3385 2011-10-06  Bruno Haible  <bruno@clisp.org>
3386
3387         fabsf: Drop assumption about library that defines fabsf.
3388         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3389         AC_CHECK_FUNCS.
3390         * modules/fabsf (Files): Add m4/mathfunc.m4.
3391
3392 2011-10-06  Bruno Haible  <bruno@clisp.org>
3393
3394         frexpf: Drop assumption about library that defines frexpf.
3395         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3396         'int *', 'float *', 'long double *', 'float', 'long double'.
3397         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3398         AC_CHECK_FUNCS.
3399         * modules/frexpf (Files): Add m4/mathfunc.m4.
3400
3401         Tests for module 'frexpf'.
3402         * modules/frexpf-tests: New file.
3403         * tests/test-frexpf.c: New file.
3404
3405         New module 'frexpf'.
3406         * lib/math.in.h (frexpf): New declaration.
3407         * lib/frexpf.c: New file.
3408         * m4/frexpf.m4: New file.
3409         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3411         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3412         * modules/frexpf: New file.
3413         * tests/test-math-c++.cc: Check the declaration of frexpf.
3414         * doc/posix-functions/frexpf.texi: Mention the new module.
3415
3416 2011-10-06  Bruno Haible  <bruno@clisp.org>
3417
3418         math: Sort function declarations of math.in.h.
3419         * lib/math.in.h (frexp, logb): Move declarations.
3420
3421 2011-10-05  Bruno Haible  <bruno@clisp.org>
3422
3423         Tests for module 'modff'.
3424         * modules/modff-tests: New file.
3425         * tests/test-modff.c: New file.
3426
3427         New module 'modff'.
3428         * lib/math.in.h (modff): New declaration.
3429         * lib/modff.c: New file.
3430         * m4/modff.m4: New file.
3431         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3433         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3434         * modules/modff: New file.
3435         * tests/test-math-c++.cc: Check the declaration of modff.
3436         * doc/posix-functions/modff.texi: Mention the new module.
3437
3438         modf tests: Make test sharper.
3439         * tests/test-modf.c (main): Strengthen upper bound.
3440
3441         modf: Use a .m4 file.
3442         * m4/modf.m4: New file.
3443         * modules/modf (Files): Add it.
3444         (configure.ac): Just invoke gl_FUNC_MODF.
3445
3446 2011-10-05  Bruno Haible  <bruno@clisp.org>
3447
3448         Tests for module 'fmodf'.
3449         * modules/fmodf-tests: New file.
3450         * tests/test-fmodf.c: New file.
3451
3452         New module 'fmodf'.
3453         * lib/math.in.h (fmodf): New declaration.
3454         * lib/fmodf.c: New file.
3455         * m4/fmodf.m4: New file.
3456         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3458         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3459         * modules/fmodf: New file.
3460         * tests/test-math-c++.cc: Check the declaration of fmodf.
3461         * doc/posix-functions/fmodf.texi: Mention the new module.
3462
3463         fmod: Use a .m4 file.
3464         * m4/fmod.m4: New file.
3465         * modules/fmod (Files): Add it.
3466         (configure.ac): Just invoke gl_FUNC_FMOD.
3467
3468 2011-10-05  Bruno Haible  <bruno@clisp.org>
3469
3470         Tests for module 'fabsf'.
3471         * modules/fabsf-tests: New file.
3472         * tests/test-fabsf.c: New file.
3473
3474         New module 'fabsf'.
3475         * lib/math.in.h (fabsf): New declaration.
3476         * lib/fabsf.c: New file.
3477         * m4/fabsf.m4: New file.
3478         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3480         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3481         * modules/fabsf: New file.
3482         * tests/test-math-c++.cc: Check the declaration of fabsf.
3483         * doc/posix-functions/fabsf.texi: Mention the new module.
3484
3485         fabs: Use a .m4 file.
3486         * m4/fabs.m4: New file.
3487         * modules/fabs (Files): Add it.
3488         (configure.ac): Just invoke gl_FUNC_FABS.
3489
3490 2011-10-05  Jim Meyering  <meyering@redhat.com>
3491
3492         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3493         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3494         ls -lL regression introduced in coreutils-8.12, it does so at the
3495         cost of an additional stat call in the common case.  Besides, now
3496         that the kernel change that prompted commit 95f7c57f has been reverted
3497         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3498         we have no use for commit 95f7c57f, "file-has-acl: use
3499         acl_extended_file_nofollow if available".
3500
3501 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3502
3503         file-has-acl: revert unintended change in behavior of ls -L
3504         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3505         derived from...
3506         (file_has_acl): ...code here.  Call it.
3507         This problem was introduced with 2011-07-22 commit 95f7c57f,
3508         "file-has-acl: use acl_extended_file_nofollow if available".
3509         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3510
3511 2011-10-03  Bruno Haible  <bruno@clisp.org>
3512
3513         poll: Avoid link errors on MSVC.
3514         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3515         * modules/poll (Depends-on): Add sockets.
3516         (Link): New section.
3517         * NEWS: Mention the change.
3518         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3519         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3520         $(LIB_POLL) instead of $(LIBSOCKET).
3521
3522 2011-10-03  Bruno Haible  <bruno@clisp.org>
3523
3524         sys_select tests: Fix link error on MSVC 9.
3525         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3526         with $(LIB_SELECT) instead of $(LIBSOCKET).
3527
3528 2011-10-03  Bruno Haible  <bruno@clisp.org>
3529
3530         sys_select: Fix compilation error on mingw.
3531         * lib/sys_select.in.h: On native Windows, include <io.h>.
3532
3533 2011-10-03  Bruno Haible  <bruno@clisp.org>
3534
3535         wmemset: Support for MSVC.
3536         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3537         whether wmemset() exists.
3538
3539 2011-10-03  Bruno Haible  <bruno@clisp.org>
3540
3541         wmemmove: Support for MSVC.
3542         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3543         whether wmemmove() exists.
3544
3545 2011-10-03  Bruno Haible  <bruno@clisp.org>
3546
3547         wmemcpy: Support for MSVC.
3548         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3549         whether wmemcpy() exists.
3550
3551 2011-10-03  Bruno Haible  <bruno@clisp.org>
3552
3553         wmemcmp: Support for MSVC.
3554         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3555         whether wmemcmp() exists.
3556
3557 2011-10-03  Bruno Haible  <bruno@clisp.org>
3558
3559         wmemchr: Support for MSVC.
3560         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3561         whether wmemchr() exists.
3562
3563 2011-10-03  Bruno Haible  <bruno@clisp.org>
3564
3565         glthread/*, strsignal: Support for MSVC.
3566         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3567         including <winsock.h> on MSVC 9.
3568         * lib/glthread/lock.h: Likewise.
3569         * lib/glthread/thread.h: Likewise.
3570         * lib/glthread/tls.h: Likewise.
3571         * lib/glthread/yield.h: Likewise.
3572         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3573         if HAVE_UNISTD_H is false.
3574         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3575
3576 2011-10-03  Bruno Haible  <bruno@clisp.org>
3577
3578         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3579         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3580         Set to 100000.
3581
3582 2011-10-03  Bruno Haible  <bruno@clisp.org>
3583
3584         acl: Fix specification.
3585         * lib/file-has-acl.c (file_has_acl): Fix specification.
3586
3587 2011-10-03  Bruno Haible  <bruno@clisp.org>
3588
3589         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3590         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3591         (compute_curr_prefix, shared_library_fullname,
3592         find_shared_library_fullname, get_shared_library_fullname, relocate):
3593         Use it together with PIC && INSTALLDIR.
3594         Reported by <jojelino@gmail.com>
3595         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3596
3597 2011-10-01  Jim Meyering  <meyering@redhat.com>
3598
3599         maint.mk: adjust a release-related rule not to require use of gzip
3600         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3601         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3602         projects that build only .tar.xz files.  Also fix an erroneous test.
3603
3604         test-linkat: don't leave behind a temporary file
3605         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3606         Otherwise, coreutils' "make distcheck" would fail with this:
3607           Only in /c/cu/tests/torture/coreutils/test/\
3608             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3609           make[2]: *** [my-distcheck] Error 1
3610
3611         float, math: add omitted file
3612         * lib/itold.c: Add file, required for yesterday's float change.
3613
3614 2011-10-01  Bruno Haible  <bruno@clisp.org>
3615
3616         isinf: Fix for OpenBSD/x86.
3617         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3618         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3619         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3620
3621 2011-10-01  Bruno Haible  <bruno@clisp.org>
3622
3623         isfinite: Fix syntax error in configure test.
3624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3625
3626         isfinite: Fix typo.
3627         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3628         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3629
3630 2011-10-01  Bruno Haible  <bruno@clisp.org>
3631
3632         nonblocking tests: Fix test failure on Linux/IA-64.
3633         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3634         Set to 270000.
3635
3636 2011-10-01  Bruno Haible  <bruno@clisp.org>
3637
3638         mkfifoat tests: Fix a test failure on mingw.
3639         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3640         with error ENOSYS.
3641
3642 2011-09-30  Bruno Haible  <bruno@clisp.org>
3643
3644         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3645         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3646         'long double'. Set REPLACE_ITOLD.
3647         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3648         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3649         * lib/itold.c: New file.
3650         * modules/float (Files): Add lib/itold.c.
3651         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3652         (Makefile.am): Substitute REPLACE_ITOLD.
3653         * modules/math (Depends-on): Add float.
3654         (Makefile.am): Substitute REPLACE_ITOLD.
3655         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3656         * doc/posix-headers/math.texi: Likewise.
3657         * doc/posix-functions/logl.texi: Likewise.
3658
3659 2011-09-30  Bruno Haible  <bruno@clisp.org>
3660
3661         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3662         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3663         Set to 140000.
3664
3665 2011-09-30  Bruno Haible  <bruno@clisp.org>
3666
3667         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3668         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3669         invocation, say "right after AC_PROG_CC_STDC", not "right after
3670         AC_PROG_CC".
3671         Reported by Gary V. Vaughan <gary@gnu.org>.
3672
3673 2011-09-30  Bruno Haible  <bruno@clisp.org>
3674
3675         Centralize C99 requirement.
3676         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3677         * modules/stdarg (configure.ac-early): Invoke it instead of
3678         AC_PROG_CC_STDC.
3679         Reported by Gary V. Vaughan and Paul Eggert.
3680
3681 2011-09-29  Bruno Haible  <bruno@clisp.org>
3682
3683         float: Fix LDBL_MAX value on Linux/PowerPC.
3684         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3685         on Linux/PowerPC.
3686         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3687         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3688         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3689         platform.
3690         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3691
3692 2011-09-29  Bruno Haible  <bruno@clisp.org>
3693
3694         doc: Improve doc about gl_EARLY.
3695         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3696         AC_PROG_CC_STDC invocation.
3697         Reported by Gary V. Vaughan <gary@gnu.org>.
3698
3699 2011-09-28  Bruno Haible  <bruno@clisp.org>
3700
3701         fgetc, fputc, fread, fwrite tests: Fix link error.
3702         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3703         on non-MSVC platforms.
3704         * tests/test-fputc.c (main): Likewise.
3705         * tests/test-fread.c (main): Likewise.
3706         * tests/test-fwrite.c (main): Likewise.
3707         Reported by Jim Meyering.
3708
3709 2011-09-27  Bruno Haible  <bruno@clisp.org>
3710
3711         fputc, fwrite tests: Avoid test failure on MSVC.
3712         * tests/test-fgetc.c: Include msvc-inval.h.
3713         (main): Invoke gl_msvc_inval_ensure_handler.
3714         * tests/test-fputc.c: Include msvc-inval.h.
3715         (main): Invoke gl_msvc_inval_ensure_handler.
3716         * tests/test-fread.c: Include msvc-inval.h.
3717         (main): Invoke gl_msvc_inval_ensure_handler.
3718         * tests/test-fwrite.c: Include msvc-inval.h.
3719         (main): Invoke gl_msvc_inval_ensure_handler.
3720         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3721         * modules/fputc-tests (Depends-on): Likewise.
3722         * modules/fread-tests (Depends-on): Likewise.
3723         * modules/fwrite-tests (Depends-on): Likewise.
3724
3725 2011-09-27  Bruno Haible  <bruno@clisp.org>
3726
3727         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3728         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3729         (raise): Remove older, duplicated declaration.
3730         (_gl_raise_SIGPIPE): New declaration.
3731         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3732         (rpl_raise): Remove function.
3733         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3734         a gnulib-defined SIGPIPE here.
3735         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3736         'sigprocmask' has detected missing signal-blocking and the module
3737         'sigpipe' is enabled.
3738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3739
3740 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3741
3742         base64-tests: avoid memory leak
3743         * tests/test-base64.c (main): Plug memory leak.
3744
3745         base32: new module
3746         * modules/base32: New module.
3747         * lib/base32.c: New file.
3748         * lib/base32.h: Likewise.
3749         * m4/base32.m4: Likewise.
3750         * modules/base32-tests: New test.
3751         * tests/test-base32.c: Likewise.
3752         * MODULES.html.sh (Misc): Mention it.
3753
3754 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3755
3756         gnulib: use more-standard license notice wording
3757         * gnulib-tool (func_emit_copyright_notice): When emitting a
3758         license notice into a file, use the standard wording as suggested
3759         by the current information for GNU maintainers, except say "file"
3760         rather than "program".  The new wording gives a license version
3761         number, which addresses an issue raised by Glenn Morris in
3762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3763         * m4/onceonly.m4: Use that same wording here, too.
3764
3765         dup2: minor simplification
3766         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3767         as lib/dup2.c no longer uses 'inline'.
3768
3769 2011-09-25  Bruno Haible  <bruno@clisp.org>
3770
3771         strings: Fix compilation error on MSVC.
3772         * lib/strings.in.h: Include <stddef.h> for size_t.
3773
3774 2011-09-25  Bruno Haible  <bruno@clisp.org>
3775
3776         fflush et al.: Document limitation on MSVC.
3777         * doc/posix-functions/fflush.texi: Document possible crash in handling
3778         mode other than DEFAULT_HANDLING.
3779         * doc/posix-functions/fgetc.texi: Likewise.
3780         * doc/posix-functions/fputc.texi: Likewise.
3781         * doc/posix-functions/fread.texi: Likewise.
3782         * doc/posix-functions/fwrite.texi: Likewise.
3783
3784 2011-09-25  Bruno Haible  <bruno@clisp.org>
3785
3786         msvc-inval: Allow three invalid parameter handling modes.
3787         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3788         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3789         macros.
3790         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3791         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3792         SANE_LIBRARY_HANDLING as a no-op.
3793         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3794         <stdlib.h>.
3795         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3796
3797 2011-09-25  Bruno Haible  <bruno@clisp.org>
3798
3799         msvc-inval: Make handler multithread-safe.
3800         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3801         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3802         declarations.
3803         (gl_msvc_inval_current): New declaration.
3804         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3805         Operate on the structure returned by gl_msvc_inval_current().
3806         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3807         Remove varaiables.
3808         (tls_index, tls_initialized): New variables.
3809         (not_per_thread): New variable.
3810         (gl_msvc_inval_current): New function.
3811         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3812         returned by gl_msvc_inval_current().
3813
3814 2011-09-25  Bruno Haible  <bruno@clisp.org>
3815
3816         msvc-inval: Install handler globally.
3817         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3818         !_MSC_VER.
3819         (gl_msvc_invalid_parameter_handler): Remove declaration.
3820         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3821         declarations.
3822         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3823         Install the handler globally, don't uninstall it.
3824         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3825         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3826         currently valid, call RaiseException instead.
3827         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3828         for !_MSC_VER.
3829
3830 2011-09-25  Bruno Haible  <bruno@clisp.org>
3831
3832         strerror_r-posix: Fix for MSVC 9.
3833         * lib/strerror_r.c (local_snprintf): New function.
3834         (snprintf): Define to local_snprintf, not to _snprintf.
3835
3836 2011-09-25  Bruno Haible  <bruno@clisp.org>
3837
3838         ftruncate: Support for MSVC 9.
3839         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3840         (chsize_nothrow): New function.
3841         (chsize): Redefine as a macro.
3842         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3843         * modules/ftruncate (Depends-on): Add msvc-inval.
3844
3845 2011-09-25  Bruno Haible  <bruno@clisp.org>
3846
3847         New module 'fstat'.
3848         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3849         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3850         * lib/fchdir.c (rpl_fstat): Remove function.
3851         * m4/fstat.m4: New file.
3852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3854         declared.
3855         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3856         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3857         * modules/fstat: New file.
3858         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3859         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3860         is set.
3861         * doc/posix-functions/fstat.texi: Mention the new module and the
3862         problem on MSVC.
3863         * NEWS: Mention the change.
3864         * modules/acl (Depends-on): Add fstat.
3865         * modules/chdir-safer (Depends-on): Likewise.
3866         * modules/chown (Depends-on): Likewise.
3867         * modules/copy-file (Depends-on): Likewise.
3868         * modules/fchdir (Depends-on): Likewise.
3869         * modules/fdopendir (Depends-on): Likewise.
3870         * modules/fopen (Depends-on): Likewise.
3871         * modules/fts (Depends-on): Likewise.
3872         * modules/getcwd (Depends-on): Likewise.
3873         * modules/isapipe (Depends-on): Likewise.
3874         * modules/linkat (Depends-on): Likewise.
3875         * modules/lseek (Depends-on): Likewise.
3876         * modules/mkdir-p (Depends-on): Likewise.
3877         * modules/open (Depends-on): Likewise.
3878         * modules/openat (Depends-on): Likewise.
3879         * modules/read-file (Depends-on): Likewise.
3880         * modules/renameat (Depends-on): Likewise.
3881         * modules/utimens (Depends-on): Likewise.
3882
3883 2011-09-25  Bruno Haible  <bruno@clisp.org>
3884
3885         linkat: Fix compilation on MSVC 9.
3886         * lib/linkat.c: Don't include <stdint.h>.
3887
3888 2011-09-25  Bruno Haible  <bruno@clisp.org>
3889
3890         fclose: Support for MSVC 9.
3891         * lib/fclose.c: Include msvc-inval.h.
3892         (fclose_nothrow): New function.
3893         (rpl_fclose): Use it.
3894         * modules/fclose (Depends-on): Add msvc-inval.
3895         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3896
3897 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3898
3899         dup2: minor simplifications
3900         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3901         that it's a performance win.
3902         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3903         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3904
3905 2011-09-24  Jim Meyering  <meyering@redhat.com>
3906
3907         test-futimens: avoid a warning from gcc -Wshadow
3908         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3909         to avoid a shadowing warning.
3910
3911 2011-09-24  Bruno Haible  <bruno@clisp.org>
3912
3913         fdopen: Support for MSVC 9.
3914         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3915         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3916         * lib/fdopen.c: Include msvc-inval.h.
3917         (fdopen_nothrow): New function.
3918         (rpl_fdopen): Use it.
3919         * modules/fdopen (Depends-on): Add msvc-inval.
3920         * modules/fclose-tests (Depends-on): Add fdopen.
3921         * modules/fflush-tests (Depends-on): Likewise.
3922         * modules/fgetc-tests (Depends-on): Likewise.
3923         * modules/fputc-tests (Depends-on): Likewise.
3924         * modules/fread-tests (Depends-on): Likewise.
3925         * modules/freopen-tests (Depends-on): Likewise.
3926         * modules/fseeko-tests (Depends-on): Likewise.
3927         * modules/ftello-tests (Depends-on): Likewise.
3928         * modules/fwrite-tests  (Depends-on): Likewise.
3929         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3930
3931 2011-09-24  Bruno Haible  <bruno@clisp.org>
3932
3933         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3934         * modules/fgetc-tests (Depends-on): Add unistd.
3935         * modules/fputc-tests (Depends-on): Likewise.
3936         * modules/fread-tests (Depends-on): Likewise.
3937         * modules/fwrite-tests (Depends-on): Likewise.
3938
3939 2011-09-24  Bruno Haible  <bruno@clisp.org>
3940
3941         dup: Simplify autoconf test.
3942         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3943         on gl_MSVC_INVAL's result.
3944
3945 2011-09-24  Bruno Haible  <bruno@clisp.org>
3946
3947         Tests for function fwrite().
3948         * modules/fwrite-tests: New file.
3949         * tests/test-fwrite.c: New file.
3950         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3951
3952         Tests for function fread().
3953         * modules/fread-tests: New file.
3954         * tests/test-fread.c: New file.
3955         * modules/stdio-tests (Depends-on): Add fread-tests.
3956
3957         Activate fputc tests.
3958         * modules/stdio-tests (Depends-on): Add fputc-tests.
3959
3960         Enhance fgetc, fputc tests.
3961         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3962         * tests/test-fputc.c (main): Likewise.
3963
3964 2011-09-24  Bruno Haible  <bruno@clisp.org>
3965
3966         write: Support for MSVC 9.
3967         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3968         is not 1.
3969         * lib/write.c (write_nothrow): New function.
3970         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3971         not 1. Use write_nothrow.
3972         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3973         invalid parameter handler.
3974         (gl_PREREQ_WRITE): New macro.
3975         * modules/write (Depends-on): Add msvc-inval.
3976         (configure.ac): Invoke gl_PREREQ_WRITE.
3977         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3978
3979 2011-09-24  Bruno Haible  <bruno@clisp.org>
3980
3981         read: Fix last commit.
3982         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3983
3984 2011-09-24  Bruno Haible  <bruno@clisp.org>
3985
3986         dup2: Fix last commit.
3987         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3988         (rpl_dup2): Disable fcntl workaround on native Windows.
3989
3990         sigprocmask: Make code safer.
3991         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3992         section that changes macro definitions for this compilation unit.
3993
3994 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         dup2: clarify by coalescing Windows-specific material
3997         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3998         "msvc-nothrow.h"' to the Windows-specific section, so that the
3999         Emacs source need not contain these include files.
4000         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4001         Windows-specific fixes into this function rather than just the
4002         nothrow fix, as this shortens and clarifies the code.  Always
4003         define as a function, as that's a bit cleaner than having it be
4004         sometimes a function and sometimes a macro.
4005         (rpl_dup2): Move the Windows-specific stuff out of here and into
4006         ms_windows_dup2.  Don't protect the Haiku-related fix with
4007         "#if !defined __linux__", as the same code also works around
4008         a Linux kernel bug, and it doesn't add any system calls on any
4009         platform.  Add comment about FreeBSD 6.1.
4010
4011         sigprocmask: move #include directive
4012         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4013         Windows-specific section, so that the Emacs source need not
4014         contain msvc-inval.h.
4015
4016 2011-09-23  Bruno Haible  <bruno@clisp.org>
4017
4018         read: Support for MSVC 9.
4019         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4020         is not 1.
4021         * lib/read.c (read_nothrow): New function.
4022         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4023         read_nothrow.
4024         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4025         invalid parameter handler.
4026         (gl_PREREQ_READ): New macro.
4027         * modules/read (Depends-on): Add msvc-inval.
4028         (configure.ac): Invoke gl_PREREQ_READ.
4029         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4030
4031 2011-09-23  Bruno Haible  <bruno@clisp.org>
4032
4033         close: Support for MSVC 9.
4034         * lib/close.c: Include <errno.h>, msvc-inval.h.
4035         (close_nothrow): New function.
4036         (rpl_close): Use it.
4037         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4038         invalid parameter handler.
4039         * modules/close (Depends-on): Add msvc-inval.
4040         * modules/dup2-tests (Depends-on): Add close.
4041         * modules/dup3-tests (Depends-on): Likewise.
4042         * modules/fcntl-tests (Depends-on): Likewise.
4043         * modules/spawn-pipe-tests (Depends-on): Likewise.
4044         * modules/unistd-safer-tests (Depends-on): Likewise.
4045         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4046
4047 2011-09-23  Bruno Haible  <bruno@clisp.org>
4048
4049         New module 'dup'.
4050         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4051         Allow replacement.
4052         * lib/dup.c: New file.
4053         * lib/fchdir.c (rpl_dup): Remove function.
4054         * m4/dup.m4: New file.
4055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4056         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4057         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4058         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4059         * modules/dup: New file.
4060         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4061         'dup' module is in use.
4062         * modules/fdopendir (Depends-on): Add dup.
4063         * modules/fdutimensat-tests (Depends-on): Likewise.
4064         * modules/fts (Depends-on): Likewise.
4065         * modules/futimens-tests (Depends-on): Likewise.
4066         * modules/posix_spawnp-tests (Depends-on): Likewise.
4067         * modules/unistd-safer-tests (Depends-on): Likewise.
4068         * modules/utimens-tests (Depends-on): Likewise.
4069         * doc/posix-functions/dup.texi: Mention the new module and the problem
4070         on MSVC.
4071
4072 2011-09-23  Bruno Haible  <bruno@clisp.org>
4073
4074         getdtablesize: Support for MSVC 9.
4075         * lib/getdtablesize.c: Include msvc-inval.h.
4076         (_setmaxstdio_nothrow): New function.
4077         (_setmaxstdio): Redefine it.
4078         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4079         * modules/getdtablesize (Depends-on): Add msvc-inval.
4080         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4081
4082 2011-09-23  Bruno Haible  <bruno@clisp.org>
4083
4084         signal-h: Rename from signal.
4085         * modules/signal-h: Renamed from modules/signal.
4086         * modules/pthread_sigmask (Depends-on): Update.
4087         * modules/raise (Depends-on): Likewise.
4088         * modules/sigaction (Depends-on): Likewise.
4089         * modules/sigpipe (Depends-on): Likewise.
4090         * modules/sigprocmask (Depends-on): Likewise.
4091         * modules/sys_select (Depends-on): Likewise.
4092         * modules/signal-h-tests: Renamed from modules/signal-tests.
4093         (Files, Depends-on, Makefile.am): Update.
4094         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4095         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4096         (Files, Makefile.am): Update.
4097         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4098         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4099         * modules/signal: New placeholder file.
4100         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4101         * doc/posix-headers/signal.texi: Update.
4102         * NEWS: Mention the change.
4103
4104 2011-09-23  Bruno Haible  <bruno@clisp.org>
4105
4106         sigprocmask: Avoid crashes through signal() on MSVC 9.
4107         * lib/sigprocmask.c: Include msvc-inval.h.
4108         (signal_nothrow): New function.
4109         (signal): Redefine it.
4110         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4111         * modules/sigprocmask (Depends-on): Add msvc-inval.
4112         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4113
4114 2011-09-23  Bruno Haible  <bruno@clisp.org>
4115
4116         Tests for module 'raise'.
4117         * modules/raise-tests: New file.
4118         * tests/test-raise.c: New file.
4119
4120         raise: Support for MSVC.
4121         * lib/signal.in.h (raise): New declaration.
4122         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4123         for native Windows platforms.
4124         * m4/raise.m4: New file.
4125         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4126         HAVE_RAISE, REPLACE_RAISE.
4127         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4128         REPLACE_RAISE.
4129         * modules/raise (Status, Notice): Remove fields.
4130         (Files): Add m4/raise.m4.
4131         (Depends-on): Add signal, msvc-inval.
4132         (configure.ac): Use the common idioms.
4133         (Maintainer): Add me.
4134         * tests/test-signal-c++.cc: Check the signature of raise.
4135         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4136
4137 2011-09-23  Bruno Haible  <bruno@clisp.org>
4138
4139         pipe2: Fix compilation on pre-C99 compilers.
4140         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4141
4142 2011-09-23  Bruno Haible  <bruno@clisp.org>
4143
4144         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4145         * lib/msvc-nothrow.h: New file.
4146         * lib/msvc-nothrow.c: New file.
4147         * m4/msvc-nothrow.m4: New file.
4148         * modules/msvc-nothrow: New file.
4149         * lib/dup2.c: Include msvc-nothrow.h.
4150         (rpl_dup2): No need to protect _get_osfhandle call here.
4151         * lib/accept4.c: Include msvc-nothrow.h.
4152         * lib/error.c: Likewise.
4153         * lib/fcntl.c: Likewise.
4154         * lib/lseek.c: Likewise.
4155         * lib/nonblocking.c: Likewise.
4156         * lib/poll.c: Likewise.
4157         * lib/read.c: Likewise.
4158         * lib/select.c: Likewise.
4159         * lib/sockets.h: Likewise.
4160         * lib/sockets.c: Likewise.
4161         * lib/stdio-read.c: Likewise.
4162         * lib/stdio-write.c: Likewise.
4163         * lib/write.c: Likewise.
4164         * lib/w32sock.h: Likewise.
4165         * lib/w32spawn.h: Likewise.
4166         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4167         * lib/fsync.c: Likewise.
4168         * lib/isapipe.c: Likewise.
4169         * modules/dup2 (Depends-on): Add msvc-nothrow.
4170         * modules/accept4 (Depends-on): Likewise.
4171         * modules/error (Depends-on): Likewise.
4172         * modules/fcntl (Depends-on): Likewise.
4173         * modules/lseek (Depends-on): Likewise.
4174         * modules/nonblocking (Depends-on): Likewise.
4175         * modules/poll (Depends-on): Likewise.
4176         * modules/read (Depends-on): Likewise.
4177         * modules/select (Depends-on): Likewise.
4178         * modules/sockets (Depends-on): Likewise.
4179         * modules/sigpipe (Depends-on): Likewise.
4180         * modules/write (Depends-on): Likewise.
4181         * modules/accept (Depends-on): Likewise.
4182         * modules/bind (Depends-on): Likewise.
4183         * modules/connect (Depends-on): Likewise.
4184         * modules/gethostname (Depends-on): Likewise.
4185         * modules/getpeername (Depends-on): Likewise.
4186         * modules/getsockname (Depends-on): Likewise.
4187         * modules/getsockopt (Depends-on): Likewise.
4188         * modules/ioctl (Depends-on): Likewise.
4189         * modules/listen (Depends-on): Likewise.
4190         * modules/recv (Depends-on): Likewise.
4191         * modules/recvfrom (Depends-on): Likewise.
4192         * modules/send (Depends-on): Likewise.
4193         * modules/sendto (Depends-on): Likewise.
4194         * modules/setsockopt (Depends-on): Likewise.
4195         * modules/shutdown (Depends-on): Likewise.
4196         * modules/socket (Depends-on): Likewise.
4197         * modules/execute (Depends-on): Likewise.
4198         * modules/spawn-pipe (Depends-on): Likewise.
4199         * modules/flock (Depends-on): Likewise.
4200         * modules/fsync (Depends-on): Likewise.
4201         * modules/isapipe (Depends-on): Likewise.
4202         * tests/test-cloexec.c: Include msvc-nothrow.h.
4203         * tests/test-dup-safer.c: Likewise.
4204         * tests/test-dup2.c: Likewise.
4205         * tests/test-dup3.c: Likewise.
4206         * tests/test-fcntl.c: Likewise.
4207         * tests/test-pipe.c: Likewise.
4208         * tests/test-pipe2.c: Likewise.
4209         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4210         * modules/unistd-safer-tests (Depends-on): Likewise.
4211         * modules/dup2-tests (Depends-on): Likewise.
4212         * modules/dup3-tests (Depends-on): Likewise.
4213         * modules/fcntl-tests (Depends-on): Likewise.
4214         * modules/pipe-posix-tests (Depends-on): Likewise.
4215         * modules/pipe2-tests (Depends-on): Likewise.
4216
4217 2011-09-23  Bruno Haible  <bruno@clisp.org>
4218
4219         dup2: Make code more maintainable.
4220         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4221         (rpl_dup2): Use it.
4222         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4223         * modules/dup2 (configure.ac): Invoke it.
4224         Reported by Paul Eggert.
4225
4226 2011-09-23  Bruno Haible  <bruno@clisp.org>
4227
4228         msvc-inval: Fix compilation error.
4229         * lib/msvc-inval.h: Include <excpt.h>.
4230
4231 2011-09-23  Bruno Haible  <bruno@clisp.org>
4232
4233         mkdir: Tweak for MSVC 9.
4234         * lib/sys_stat.in.h: Update comments.
4235         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4236
4237         Tests for module 'chdir'.
4238         * modules/chdir-tests: New file.
4239         * tests/test-chdir.c: New file.
4240
4241         New module 'chdir'.
4242         * modules/chdir: New file.
4243         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4244         (chdir): New declaration.
4245         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4246         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4247         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4248         * tests/test-unistd-c++.cc: Check signature of chdir.
4249         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4250         * modules/chdir-long (Depends-on): Add chdir.
4251         * modules/fchdir (Depends-on): Likewise.
4252         * modules/rename (Depends-on): Likewise.
4253         * modules/savewd (Depends-on): Likewise.
4254
4255         rmdir: Support for mingw, MSVC 9.
4256         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4257         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4258
4259         getcwd: Tweak for MSVC 9.
4260         * lib/unistd.in.h: Update comments.
4261         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4262
4263 2011-09-22  Bruno Haible  <bruno@clisp.org>
4264
4265         strerror_r-posix: Avoid a link error on MSVC.
4266         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4267         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4268
4269 2011-09-22  Bruno Haible  <bruno@clisp.org>
4270
4271         select: Avoid link errors on MSVC.
4272         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4273         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4274         * modules/pselect (Link): Likewise.
4275         * NEWS: Mention the change.
4276         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4277         test-select-stdin against $(LIB_SELECT).
4278         * modules/pselect-tests (Makefile.am): Link test-pselect against
4279         $(LIB_SELECT).
4280
4281 2011-09-22  Bruno Haible  <bruno@clisp.org>
4282
4283         select: Avoid compilation error on MSVC.
4284         * lib/select.c: Don't include <stdbool.h>.
4285
4286 2011-09-21  Bruno Haible  <bruno@clisp.org>
4287
4288         Consolidate all uses of PATH_MAX in *.m4 files.
4289         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4290         macros.
4291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4292         and gl_PATHMAX_SNIPPET.
4293         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4295         * modules/chdir-long (Files): Add m4/pathmax.m4.
4296         * modules/getcwd (Files): Likewise.
4297
4298 2011-09-21  Bruno Haible  <bruno@clisp.org>
4299
4300         ftruncate: Un-deprecate, concentrate on Win32 support.
4301         * modules/ftruncate (Status, Notice): Remove sections.
4302         (Depends-on): Add largefile.
4303         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4304         non-mingw platforms.
4305         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4306         include <io.h>.
4307         * modules/perror-tests (Depends-on): Add ftruncate.
4308         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4309         'ftruncate' module.
4310
4311 2011-09-21  Bruno Haible  <bruno@clisp.org>
4312
4313         Add dependencies to new dirent related modules.
4314         * modules/opendir (Depends-on): Add closedir.
4315         * modules/getcwd (Depends-on): Add opendir, closedir.
4316         * modules/dirent-safer-tests (Depends-on): Likewise.
4317         * modules/fdopendir-tests (Depends-on): Likewise.
4318         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4319         * modules/renameat-tests (Depends-on): Likewise.
4320
4321 2011-09-21  Bruno Haible  <bruno@clisp.org>
4322
4323         opendir: Avoid compilation error on mingw.
4324         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4325         * modules/opendir (Depends-on): Add unistd.
4326
4327 2011-09-21  Bruno Haible  <bruno@clisp.org>
4328
4329         ftruncate tests: Avoid a test failure on mingw.
4330         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4331
4332 2011-09-21  Bruno Haible  <bruno@clisp.org>
4333
4334         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4335         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4336         native Windows.
4337
4338 2011-09-21  Bruno Haible  <bruno@clisp.org>
4339
4340         New module 'fdopen'.
4341         * lib/stdio.in.h (fdopen): New declaration.
4342         * lib/fdopen.c: New file.
4343         * m4/fdopen.m4: New file.
4344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4345         REPLACE_FDOPEN.
4346         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4347         REPLACE_FDOPEN.
4348         * modules/fdopen: New file.
4349         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4350         * tests/test-stdio-c++.cc: Check signature of fdopen.
4351         * doc/posix-functions/fdopen.texi: Mention the new module.
4352
4353 2011-09-21  Bruno Haible  <bruno@clisp.org>
4354
4355         unlockpt tests: Avoid test failure on NetBSD 5.1.
4356         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4357         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4358
4359 2011-09-21  Bruno Haible  <bruno@clisp.org>
4360
4361         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4362         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4363         * tests/test-getlogin_r.c (main): Likewise.
4364
4365 2011-09-20  Bruno Haible  <bruno@clisp.org>
4366
4367         time tests: Don't require pid_t.
4368         * doc/posix-headers/time.texi: Revert last change.
4369         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4370         * tests/test-time.c: Comment out the check for pid_t.
4371
4372 2011-09-20  Bruno Haible  <bruno@clisp.org>
4373
4374         fsync tests: Avoid a test failure on mingw.
4375         * tests/test-fsync.c (main): Allow a failure with EIO.
4376
4377 2011-09-20  Bruno Haible  <bruno@clisp.org>
4378
4379         euidaccess: Update comments.
4380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4381
4382 2011-09-20  Bruno Haible  <bruno@clisp.org>
4383
4384         Ensure EBADF returns for socket functions on mingw.
4385         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4386         descriptor is invalid.
4387         * lib/bind.c (rpl_bind): Likewise.
4388         * lib/connect.c (rpl_connect): Likewise.
4389         * lib/getpeername.c (rpl_getpeername): Likewise.
4390         * lib/getsockname.c (rpl_getsockname): Likewise.
4391         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4392         * lib/listen.c (rpl_listen): Likewise.
4393         * lib/recv.c (rpl_recv): Likewise.
4394         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4395         * lib/send.c (rpl_send): Likewise.
4396         * lib/sendto.c (rpl_sendto): Likewise.
4397         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4398         * lib/shutdown.c (rpl_shutdown): Likewise.
4399
4400 2011-09-20  Bruno Haible  <bruno@clisp.org>
4401
4402         select tests: EBADF tests.
4403         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4404         test_bad_fd): New functions.
4405         (test_function): Invoke also test_bad_fd.
4406
4407 2011-09-20  Bruno Haible  <bruno@clisp.org>
4408
4409         Tests for module 'posix_spawn_file_actions_addopen.
4410         * modules/posix_spawn_file_actions_addopen-tests: New file.
4411         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4412
4413         Tests for module 'posix_spawn_file_actions_adddup2'.
4414         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4415         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4416
4417         Tests for module 'posix_spawn_file_actions_addclose'.
4418         * modules/posix_spawn_file_actions_addclose-tests: New file.
4419         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4420
4421 2011-09-20  Bruno Haible  <bruno@clisp.org>
4422
4423         Tests for module 'unlockpt'.
4424         * modules/unlockpt-tests: New file.
4425         * tests/test-unlockpt.c: New file.
4426         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4427
4428         Tests for module 'grantpt'.
4429         * modules/grantpt-tests: New file.
4430         * tests/test-grantpt.c: New file.
4431         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4432
4433 2011-09-20  Bruno Haible  <bruno@clisp.org>
4434
4435         freopen tests: EBADF tests.
4436         * tests/test-freopen.c: Include errno.h, unistd.h.
4437         (main): Add tests for EBADF, commented out for the moment.
4438
4439         fclose tests: EBADF tests.
4440         * tests/test-fclose.c (main): Add tests for EBADF.
4441
4442         fflush tests: EBADF tests.
4443         * tests/test-fflush.c: Include errno.h, macros.h.
4444         (main): Add tests for EBADF.
4445
4446         ftello tests: EBADF tests.
4447         * tests/test-ftello4.sh: New file.
4448         * tests/test-ftello4.c: New file.
4449         * modules/ftello-tests (Files): Add them.
4450         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4451
4452         fseeko tests: EBADF tests.
4453         * tests/test-fseeko4.sh: New file.
4454         * tests/test-fseeko4.c: New file.
4455         * modules/fseeko-tests (Files): Add them.
4456         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4457
4458         Tests for function fputc().
4459         * modules/fputc-tests: New file.
4460         * tests/test-fputc.c: New file.
4461         * modules/stdio-tests (Depends-on): Add fputc-tests.
4462
4463         Tests for function fgetc().
4464         * modules/fgetc-tests: New file.
4465         * tests/test-fgetc.c: New file.
4466         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4467
4468         Tests for function fdopen().
4469         * modules/fdopen-tests: New file.
4470         * tests/test-fdopen.c: New file.
4471         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4472
4473         Tests for module 'vdprintf'.
4474         * modules/vdprintf-tests: New file.
4475         * tests/test-vdprintf.c: New file.
4476
4477         Tests for module 'dprintf'.
4478         * modules/dprintf-tests: New file.
4479         * tests/test-dprintf.c: New file.
4480
4481 2011-09-20  Bruno Haible  <bruno@clisp.org>
4482
4483         Tests for module 'ioctl'.
4484         * modules/ioctl-tests: New file.
4485         * tests/test-ioctl.c: New file.
4486
4487 2011-09-20  Bruno Haible  <bruno@clisp.org>
4488
4489         fcntl tests: EBADF tests.
4490         * tests/test-fcntl.c (main): Add more tests for EBADF.
4491
4492 2011-09-20  Bruno Haible  <bruno@clisp.org>
4493
4494         utimensat tests: EBADF tests.
4495         * tests/test-utimensat.c (main): Add tests for EBADF.
4496
4497         renameat tests: EBADF tests.
4498         * tests/test-renameat.c (main): Add tests for EBADF.
4499
4500         mkfifoat tests: EBADF tests.
4501         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4502
4503         readlinkat tests: EBADF tests.
4504         * tests/test-readlinkat.c (main): Add tests for EBADF.
4505
4506         symlinkat tests: EBADF tests.
4507         * tests/test-symlinkat.c (main): Add tests for EBADF.
4508
4509         linkat tests: EBADF tests.
4510         * tests/test-linkat.c (main): Add tests for EBADF.
4511
4512         Tests for module 'faccessat'.
4513         * modules/faccessat-tests: New file.
4514         * tests/test-faccessat.c: New file.
4515
4516         fdopendir tests: EBADF tests.
4517         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4518
4519         openat tests: EBADF tests.
4520         * tests/test-fchownat.c (main): Add tests for EBADF.
4521         * tests/test-fstatat.c (main): Likewise.
4522         * tests/test-mkdirat.c (main): Likewise.
4523         * tests/test-openat.c (main): Likewise.
4524         * tests/test-unlinkat.c (main): Likewise.
4525         * tests/test-fchmodat.c: New file.
4526         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4527         (Makefile.am): Also run 'test-fchmodat'.
4528
4529 2011-09-20  Bruno Haible  <bruno@clisp.org>
4530
4531         utimens, futimens, fdutimensat tests: EBADF tests.
4532         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4533
4534         Tests for function fstat().
4535         * modules/fstat-tests: New file.
4536         * tests/test-fstat.c: New file.
4537         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4538
4539 2011-09-20  Bruno Haible  <bruno@clisp.org>
4540
4541         test-ttyname_r tests: EBADF tests.
4542         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4543
4544         Tests for module 'isatty'.
4545         * modules/isatty-tests: New file.
4546         * tests/test-isatty.c: New file.
4547
4548         Tests for module 'write'.
4549         * modules/write-tests: New file.
4550         * tests/test-write.c: New file.
4551
4552         Tests for module 'read'.
4553         * modules/read-tests: New file.
4554         * tests/test-read.c: New file.
4555
4556         pwrite tests: EBADF tests.
4557         * tests/test-pwrite.c (main): Add tests for EBADF.
4558
4559         pread tests: EBADF tests.
4560         * tests/test-pread.c (main): Add tests for EBADF.
4561
4562         lseek tests: EBADF tests.
4563         * tests/test-lseek.c (main): Add more tests for EBADF.
4564
4565         Tests for module 'ftruncate'.
4566         * modules/ftruncate-tests: New file.
4567         * tests/test-ftruncate.sh: New file.
4568         * tests/test-ftruncate.c: New file.
4569
4570         fsync tests: EBADF tests.
4571         * tests/test-fsync.c (main): Add more tests for EBADF.
4572
4573         fdatasync tests: EBADF tests.
4574         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4575
4576         Tests for module 'fchown'.
4577         * modules/fchown-tests: New file.
4578         * tests/test-fchown.c: New file.
4579
4580         Tests for module 'fchmod'.
4581         * modules/fchmod-tests: New file.
4582         * tests/test-fchmod.c: New file.
4583
4584         fchdir tests: EBADF tests.
4585         * tests/test-fchdir.c (main): Add more tests for EBADF.
4586
4587         dup2 tests: EBADF tests.
4588         * tests/test-dup2.c (main): Add more tests for EBADF.
4589
4590         Tests for module 'dup'.
4591         * modules/dup-tests: New file.
4592         * tests/test-dup.c: New file.
4593
4594         Tests for module 'close'.
4595         * modules/close-tests: New file.
4596         * tests/test-close.c: New file.
4597
4598 2011-09-20  Bruno Haible  <bruno@clisp.org>
4599
4600         Tests for module 'shutdown'.
4601         * modules/shutdown-tests: New file.
4602         * tests/test-shutdown.c: New file.
4603
4604         Tests for module 'setsockopt'.
4605         * modules/setsockopt-tests: New file.
4606         * tests/test-setsockopt.c: New file.
4607
4608         Tests for module 'sendto'.
4609         * modules/sendto-tests: New file.
4610         * tests/test-sendto.c: New file.
4611
4612         Tests for module 'send'.
4613         * modules/send-tests: New file.
4614         * tests/test-send.c: New file.
4615
4616         Tests for module 'recvfrom'.
4617         * modules/recvfrom-tests: New file.
4618         * tests/test-recvfrom.c: New file.
4619
4620         Tests for module 'recv'.
4621         * modules/recv-tests: New file.
4622         * tests/test-recv.c: New file.
4623
4624         Tests for module 'listen'.
4625         * modules/listen-tests: New file.
4626         * tests/test-listen.c: New file.
4627
4628         Tests for module 'getsockopt'.
4629         * modules/getsockopt-tests: New file.
4630         * tests/test-getsockopt.c: New file.
4631
4632         Tests for module 'getsockname'.
4633         * modules/getsockname-tests: New file.
4634         * tests/test-getsockname.c: New file.
4635
4636         Tests for module 'getpeername'.
4637         * modules/getpeername-tests: New file.
4638         * tests/test-getpeername.c: New file.
4639
4640         Tests for module 'connect'.
4641         * modules/connect-tests: New file.
4642         * tests/test-connect.c: New file.
4643
4644         Tests for module 'bind'.
4645         * modules/bind-tests: New file.
4646         * tests/test-bind.c: New file.
4647
4648         accept4 tests: Fix for native Windows.
4649         * tests/test-accept4.c: Include sockets.h.
4650         (main): Invoke gl_sockets_startup.
4651         * modules/accept4-tests (Depends-on): Add sockets.
4652
4653         accept tests: Fix for native Windows.
4654         * tests/test-accept.c: Include sockets.h.
4655         (main): Invoke gl_sockets_startup.
4656         * modules/accept-tests (Depends-on): Add sockets.
4657
4658 2011-09-19  Bruno Haible  <bruno@clisp.org>
4659
4660         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4661         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4662         do...while(0).
4663         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4664         Suggested by Paul Eggert.
4665
4666 2011-09-19  Bruno Haible  <bruno@clisp.org>
4667
4668         sched: Ensure pid_t is defined.
4669         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4670         not define pid_t.
4671         * lib/sched.in.h: Include <sys/types.h>.
4672         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4674
4675 2011-09-19  Bruno Haible  <bruno@clisp.org>
4676
4677         msvc-inval: Ensure the entire expansion is a single statement.
4678         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4679         of braces.
4680
4681 2011-09-19  Jim Meyering  <meyering@redhat.com>
4682
4683         tests: use printf, not echo in init.sh's warn_ function
4684         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4685         misbehave when given strings containing a backslash or starting
4686         with e.g., -n.  James Youngman suggested setting IFS.
4687
4688 2011-09-19  Eric Blake  <eblake@redhat.com>
4689
4690         futimens: enhance test
4691         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4692         closed non-negative fd.
4693
4694         date: accept 'hence' as opposite of 'ago'
4695         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4696         * tests/test-parse-datetime.c (main): Enhance test.
4697         Suggested by Jesse Wilson.
4698
4699 2011-09-19  Jim Meyering  <meyering@redhat.com>
4700
4701         getcwd: don't fail in a deep directory on a system without openat
4702         Before this change, getcwd would fail when called from a directory
4703         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4704         the non-openat implementation used "..", "../..", "../../..", etc.
4705         to access ancestor directories.  With too many, that string would
4706         be longer than PATH_MAX.
4707         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4708         using gnulib's openat replacement.
4709         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4710         we're using the replacement function.
4711
4712 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4713
4714         maint.mk: avoid warnings from perl about missing files
4715         * top/maint.mk (def_sym_regex): Ignore files listed in
4716         $(gl_other_headers_) that do not exist, say because a project
4717         does not use a corresponding module.
4718
4719 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4720
4721         stat: use pathmax.h only if needed
4722         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4723         This is better for Emacs, which does not have a mingw port and
4724         therefore can avoid the pathmax module.
4725
4726         utimens: remove dependency on dup2
4727         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4728         to work around the Linux kernel bug.
4729         * modules/utimens (Depends-on): Remove dup2.
4730
4731 2011-09-18  Bruno Haible  <bruno@clisp.org>
4732
4733         inet_ntop, inet_pton: Look for it also in libresolv.
4734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4735         libnsl, search for it in libresolv.
4736         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4737         Needed on Solaris 7.
4738
4739 2011-09-18  Bruno Haible  <bruno@clisp.org>
4740
4741         accept, accept4 tests: Avoid link error on Solaris.
4742         * modules/accept-tests (Makefile.am): Link test-accept against
4743         $(LIBSOCKET).
4744         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4745         $(LIBSOCKET).
4746
4747         accept4: Avoid link error on Solaris.
4748         * modules/accept4 (Link): New section.
4749
4750         socket functions: Avoid link errors on Solaris.
4751         * modules/accept (Depends-on): Add socketlib.
4752         (Link): New section.
4753         * modules/bind (Depends-on): Add socketlib.
4754         (Link): New section.
4755         * modules/connect (Depends-on): Add socketlib.
4756         (Link): New section.
4757         * modules/getpeername (Depends-on): Add socketlib.
4758         (Link): New section.
4759         * modules/getsockname (Depends-on): Add socketlib.
4760         (Link): New section.
4761         * modules/getsockopt (Depends-on): Add socketlib.
4762         (Link): New section.
4763         * modules/listen (Depends-on): Add socketlib.
4764         (Link): New section.
4765         * modules/recv (Depends-on): Add socketlib.
4766         (Link): New section.
4767         * modules/recvfrom (Depends-on): Add socketlib.
4768         (Link): New section.
4769         * modules/send (Depends-on): Add socketlib.
4770         (Link): New section.
4771         * modules/sendto (Depends-on): Add socketlib.
4772         (Link): New section.
4773         * modules/setsockopt (Depends-on): Add socketlib.
4774         (Link): New section.
4775         * modules/shutdown (Depends-on): Add socketlib.
4776         (Link): New section.
4777         * modules/socket (Depends-on): Add socketlib.
4778         (Link): New section.
4779
4780 2011-09-18  Bruno Haible  <bruno@clisp.org>
4781
4782         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4783         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4784         than 5 seconds.
4785         * modules/ptsname-tests (configure.ac): Test for alarm.
4786
4787 2011-09-18  Bruno Haible  <bruno@clisp.org>
4788
4789         posix_spawn_file_actions_add*: Fix module dependencies.
4790         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4791         posix_spawn_file_actions_init.
4792         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4793         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4794
4795 2011-09-18  Bruno Haible  <bruno@clisp.org>
4796
4797         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4798         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4799         * tests/test-renameat.c (main): Likewise.
4800
4801 2011-09-18  Bruno Haible  <bruno@clisp.org>
4802
4803         Tests for module 'accept4'.
4804         * modules/accept4-tests: New file.
4805         * tests/test-accept4.c: New file.
4806
4807 2011-09-18  Bruno Haible  <bruno@clisp.org>
4808
4809         Tests for module 'accept'.
4810         * modules/accept-tests: New file.
4811         * tests/test-accept.c: New file.
4812
4813 2011-09-18  Bruno Haible  <bruno@clisp.org>
4814
4815         dup2: Support for MSVC.
4816         * lib/dup2.c: Include msvc-inval.h.
4817         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4818         _get_osfhandle calls.
4819         * modules/dup2 (Depends-on): Add msvc-inval.
4820         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4821
4822         New module 'msvc-inval'.
4823         * lib/msvc-inval.h: New file.
4824         * lib/msvc-inval.c: New file.
4825         * m4/msvc-inval.m4: New file.
4826         * modules/msvc-inval: New file.
4827
4828 2011-09-17  Bruno Haible  <bruno@clisp.org>
4829
4830         Tests for module 'pclose'.
4831         * modules/pclose-tests: New file.
4832
4833         New module 'pclose'.
4834         * lib/stdio.in.h (pclose): New declaration.
4835         * lib/pclose.c: New file.
4836         * m4/pclose.m4: New file.
4837         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4838         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4839         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4840         * modules/pclose: New file.
4841         * modules/popen-tests (Depends-on): Add pclose.
4842         * modules/popen-safer-tests (Depends-on): Likewise.
4843         * doc/posix-functions/pclose.texi: Mention the new module.
4844
4845 2011-09-17  Bruno Haible  <bruno@clisp.org>
4846
4847         popen: Support for MSVC.
4848         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4849         * lib/popen.c (popen): Provide alternate definition for native Windows.
4850         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4852         * modules/popen (Depends-on, configure.ac): Update condition.
4853         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4854         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4855         fixed.
4856
4857 2011-09-17  Bruno Haible  <bruno@clisp.org>
4858
4859         isnanl, isnand, isnanf: Work around MSVC bug.
4860         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4861
4862 2011-09-17  Bruno Haible  <bruno@clisp.org>
4863
4864         sys_socket tests: Fix recent mistake.
4865         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4866
4867 2011-09-17  Bruno Haible  <bruno@clisp.org>
4868
4869         putenv: Support for MSVC.
4870         * modules/putenv (Depends-on): Add environ.
4871         * lib/putenv.c (environ): Disable declaration.
4872         * lib/unistd.in.h: Update comment.
4873
4874 2011-09-17  Bruno Haible  <bruno@clisp.org>
4875
4876         math: Avoid macro redefinition warnings on MSVC.
4877         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4878         Undefine before redefining.
4879
4880 2011-09-17  Bruno Haible  <bruno@clisp.org>
4881
4882         doc: Mention functions which are declared as macros.
4883         * doc/posix-functions/*[fl].texi: Mention that some functions are
4884         defined as macros with arguments only.
4885
4886 2011-09-17  Bruno Haible  <bruno@clisp.org>
4887
4888         Add dependencies to new dirent related modules.
4889         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4890         * modules/fts (Depends-on): Likewise.
4891         * modules/glob (Depends-on): Likewise.
4892         * modules/savedir (Depends-on): Likewise.
4893         * modules/scandir (Depends-on): Likewise.
4894         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4895         * modules/fdopendir (Depends-on): Add opendir.
4896
4897 2011-09-17  Bruno Haible  <bruno@clisp.org>
4898
4899         inet_pton: Support for MSVC on Windows Vista or newer.
4900         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4901         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4902         HAVE_DECL_INET_PTON is defined.
4903         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4904         On platforms with <winsock2.h>, test whether inet_pton is declared in
4905         <ws2tcpip.h>. If so, arrange to replace it.
4906         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4907         REPLACE_INET_PTON.
4908         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4909         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4910         (Depends-on, configure.ac): Update condition.
4911         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4912
4913 2011-09-17  Bruno Haible  <bruno@clisp.org>
4914
4915         inet_ntop: Support for MSVC on Windows Vista or newer.
4916         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4917         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4918         HAVE_DECL_INET_NTOP is defined.
4919         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4920         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4921         <ws2tcpip.h>. If so, arrange to replace it.
4922         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4923         REPLACE_INET_NTOP.
4924         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4925         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4926         (Depends-on, configure.ac): Update condition.
4927         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4928
4929 2011-09-16  Eric Blake  <eblake@redhat.com>
4930
4931         test-fsync: yet another enhancement
4932         * tests/test-fsync.c (main): Also test behavior on read-only text
4933         file.
4934
4935 2011-09-16  Bruno Haible  <bruno@clisp.org>
4936
4937         Enhance fsync, fdatasync tests.
4938         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4939         * tests/test-fdatasync.c (main): Likewise.
4940
4941 2011-09-16  Bruno Haible  <bruno@clisp.org>
4942
4943         Support for MSVC compiler: Ensure mode_t gets defined.
4944         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4945         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4947         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4948         * tests/test-fcntl-h.c: Check that mode_t is defined.
4949         * tests/test-sys_stat.c: Likewise.
4950         * tests/test-sys_types.c: Likewise.
4951         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4952         * doc/posix-headers/sys_stat.texi: Likewise.
4953         * doc/posix-headers/sys_types.texi: Likewise.
4954
4955 2011-09-16  Bruno Haible  <bruno@clisp.org>
4956
4957         sys_stat: Support for MSVC.
4958         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4959         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4960         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4961         MSVC.
4962
4963 2011-09-16  Bruno Haible  <bruno@clisp.org>
4964
4965         Support for MSVC compiler: Ensure off_t gets defined.
4966         * lib/unistd.in.h: Include <sys/types.h>.
4967         * tests/test-fcntl-h.c: Check that off_t is defined.
4968         * tests/test-sys_stat.c: Likewise.
4969         * tests/test-sys_types.c: Likewise.
4970
4971 2011-09-16  Eric Blake  <eblake@redhat.com>
4972
4973         fdatasync: port to Solaris
4974         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4975         * modules/fdatasync (Link): Document it.
4976         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4977
4978         fdatasync: port to MacOS X 10.7
4979         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4980         declared.
4981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4982         * modules/unistd (Makefile.am): Substitute it.
4983         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4984         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4985
4986         fdatasync: minor improvements
4987         * modules/fdatasync (Depends-on): Add condition for fsync.
4988         * lib/fdatasync.c (fdatasync): Add comment.
4989         * tests/test-unistd-c++.cc: Test fdatasync.
4990
4991         unistd: update refs to newer POSIX
4992         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4993         Suggested by Bruno Haible.
4994
4995         fdatasync: new module
4996         * modules/fsync (Description): Document difference to fdatasync.
4997         * modules/fdatasync: New module.
4998         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4999         * lib/fdatasync.c (fdatasync): Likewise.
5000         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5001         defaults.
5002         * modules/unistd (Makefile.am): Set witnesses.
5003         * lib/unistd.in.h (fdatasync): Declare.
5004         * MODULES.html.sh: Document it.
5005         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5006         * modules/fdatasync-tests: New test.
5007         * tests/test-fdatasync.c: Likewise.
5008
5009 2011-09-16  Eric Blake  <eblake@redhat.com>
5010
5011         test-fsync: enhance tests
5012         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5013         * tests/test-fsync.c (main): Enhance test.
5014
5015 2011-09-15  Bruno Haible  <bruno@clisp.org>
5016
5017         Support for MSVC compiler: Ensure ssize_t gets defined.
5018         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5019         * doc/posix-headers/stdio.texi: Likewise.
5020         * modules/stdio (Depends-on): Add ssize_t.
5021         * modules/sys_socket (Depends-on): Likewise.
5022         * modules/sys_types (Depends-on): Likewise.
5023         * modules/sys_uio (Depends-on): Likewise.
5024         * modules/unistd (Depends-on): Likewise.
5025         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5026         * tests/test-sys_types.c: Check that ssize_t is defined.
5027
5028 2011-09-14  Bruno Haible  <bruno@clisp.org>
5029
5030         Avoid using #, the m4 comment starter character, near brackets.
5031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5032         delimiter character in sed expressions.
5033         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5034         Suggested by Eric Blake.
5035
5036         Properly quote AC_CHECK_DECLS' 4th argument.
5037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5038         argument.
5039         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5040         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5041         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5042         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5043         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5044         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5046         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5047         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5049         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5050         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5051         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5052         * m4/isinf.m4 (gl_ISINF): Likewise.
5053         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5054         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5055         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5056         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5059         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5060         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5061         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5062         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5063         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5064         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5066         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5068         Reported by Eric Blake.
5069
5070         Properly quote AC_CHECK_DECL's 4th argument.
5071         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5072         argument.
5073         * m4/argp.m4 (gl_ARGP): Likewise.
5074         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5075         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5076         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5077         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5078         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5079         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5081         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5083         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5084         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5085         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5086         Reported by Eric Blake.
5087
5088 2011-09-14  Eric Blake  <eblake@redhat.com>
5089
5090         opendir: avoid compile warning
5091         * lib/opendir.c (includes): Always include errno.h.
5092         Reported by Tatsuro MATSUOKA.
5093
5094 2011-09-14  Jim Meyering  <meyering@redhat.com>
5095
5096         maint.mk: sc_tight_scope: propagate failure from sub-make
5097         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5098         Reported by Martin von Gagern.
5099
5100 2011-09-13  Bruno Haible  <bruno@clisp.org>
5101
5102         tempname: Support for MSVC.
5103         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5104         MSVC.
5105         * modules/tempname (Depends-on): Add fcntl-h.
5106
5107 2011-09-13  Bruno Haible  <bruno@clisp.org>
5108
5109         sys_time: Support for MSVC.
5110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5111         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5112         include <winsock2.h>.
5113         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5114         function declarations that collide with POSIX.
5115         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5116         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5117
5118 2011-09-13  Bruno Haible  <bruno@clisp.org>
5119
5120         stat: Support for MSVC.
5121         * lib/stat.c: Include pathmax.h.
5122         * modules/stat (Depends-on): Add pathmax.
5123
5124         pathmax: Support for native Windows.
5125         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5126
5127 2011-09-12  Bruno Haible  <bruno@clisp.org>
5128
5129         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5130         * lib/dirent.in.h (struct dirent): New type.
5131         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5132         DT_WHT): New macros.
5133         (DIR): New type.
5134         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5135         (readdir, rewinddir): New declarations.
5136         * lib/dirent-private.h: New file.
5137         * lib/opendir.c: New file.
5138         * lib/readdir.c: New file.
5139         * lib/rewinddir.c: New file.
5140         * lib/closedir.c: New file.
5141         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5142         * m4/opendir.m4: New file.
5143         * m4/readdir.m4: New file.
5144         * m4/rewinddir.m4: New file.
5145         * m4/closedir.m4: New file.
5146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5147         REPLACE_CLOSEDIR here.
5148         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5149         readdir, rewinddir are declared.
5150         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5151         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5152         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5153         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5154         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5155         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5156         * modules/opendir: New file.
5157         * modules/readdir: New file.
5158         * modules/rewinddir: New file.
5159         * modules/closedir: New file.
5160         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5161         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5162         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5163         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5164         * NEWS: Mention the 'fchdir' change.
5165
5166 2011-09-11  Bruno Haible  <bruno@clisp.org>
5167
5168         asm-underscore.m4: Support for MSVC.
5169         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5170         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5171
5172 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5173
5174         Doc about crypt functions.
5175         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5176         needing for _GNU_SOURCE to get crypt.
5177         * doc/posix-functions/encrypt.texi: Likewise.
5178         * doc/posix-functions/setkey.texi: Likewise.
5179
5180 2011-09-11  Bruno Haible  <bruno@clisp.org>
5181
5182         doc: Update regarding MSVC 9.
5183         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5184         tested".
5185         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5186         * doc/posix-headers/*.texi: Likewise.
5187         * doc/pastposix-functions/*.texi: Likewise.
5188         * doc/glibc-functions/*.texi: Likewise.
5189         * doc/glibc-headers/*.texi: Likewise.
5190
5191 2011-09-11  Bruno Haible  <bruno@clisp.org>
5192
5193         unistd et al.: Don't assume <unistd.h> exists.
5194         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5195         does not exist.
5196         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5197         exist. But include <stdlib.h>.
5198         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5199         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5200         symlink() does not exist.
5201         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5202         include <io.h> instead.
5203         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5205         include <direct.h> instead.
5206         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5207         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5208         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5209         <io.h> instead.
5210         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5211         correctly if the system does not have hard links.
5212         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5213         <direct.h> instead.
5214         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5215         it when looking for function declarations.
5216         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5217         <direct.h> and <io.h> instead.
5218         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5219
5220 2011-09-11  Bruno Haible  <bruno@clisp.org>
5221
5222         strcase: Support for MSVC.
5223         * modules/strcase (Status, Notice): Remove obsoletion mark.
5224         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5225         * doc/posix-functions/strncasecmp.texi: Likewise.
5226
5227         strings: Don't assume <strings.h> exists.
5228         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5229         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5230         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5231         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5232
5233 2011-09-11  Bruno Haible  <bruno@clisp.org>
5234
5235         dirent: Don't assume <dirent.h> exists.
5236         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5237         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5238         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5239         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5240
5241 2011-09-11  Bruno Haible  <bruno@clisp.org>
5242
5243         Fix wint_t on MSVC.
5244         * lib/wchar.in.h (wint_t): On MSVC, override it.
5245         * lib/wctype.in.h (wint_t): Likewise.
5246         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5247         MSVC.
5248         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5249         * doc/posix-headers/wctype.texi: Likewise.
5250
5251 2011-09-11  Bruno Haible  <bruno@clisp.org>
5252
5253         sys_types: Fix typo.
5254         * lib/sys_types.in.h: Fix typo in comment.
5255         Reported by Paul Eggert.
5256
5257         Support for MSVC compiler: Ensure size_t gets defined.
5258         * modules/strings (Depends-on): Add 'sys_types'.
5259         * modules/sys_uio (Depends-on): Likewise.
5260         * lib/sys_uio.in.h: Update comment.
5261
5262         C++ tests for module 'sys_types'.
5263         * modules/sys_types-c++-tests: New file.
5264         * tests/test-sys_types-c++.cc: New file.
5265
5266         Tests for module 'sys_types'.
5267         * modules/sys_types-tests: New file.
5268         * tests/test-sys_types.c: New file.
5269
5270         New module 'sys_types'.
5271         * lib/sys_types.in.h: New file.
5272         * m4/sys_types_h.m4: New file.
5273         * modules/sys_types: New file.
5274         * doc/posix-headers/sys_types.texi: Mention the new module and the
5275         size_t problem on MSVC 9.
5276
5277 2011-09-11  Bruno Haible  <bruno@clisp.org>
5278
5279         Support for MSVC compiler: Avoid division by a literal 0.
5280         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5282         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5283         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5284         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5285         * tests/infinity.h: New file.
5286         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5287         on MSVC.
5288         * tests/test-ceilf1.c: Include infinity.h.
5289         (main): Use Infinityf.
5290         * tests/test-ceil1.c: Include infinity.h.
5291         (main): Use Infinityd.
5292         * tests/test-ceill.c: Include infinity.h.
5293         (main): Use Infinityl.
5294         * tests/test-dprintf-posix.c: Include infinity.h.
5295         (test_function): Use Infinityd.
5296         * tests/test-floorf1.c: Include infinity.h.
5297         (main): Use Infinityf.
5298         * tests/test-floor1.c: Include infinity.h.
5299         (main): Use Infinityd.
5300         * tests/test-floorl.c: Include infinity.h.
5301         (main): Use Infinityl.
5302         * tests/test-fprintf-posix.c: Include infinity.h.
5303         (test_function): Use Infinityd.
5304         * tests/test-frexp.c: Include infinity.h.
5305         (main): Use Infinityd.
5306         * tests/test-frexpl.c: Include infinity.h.
5307         (main): Use Infinityl.
5308         * tests/test-isfinite.c: Include infinity.h.
5309         (test_isfinitef): Use Infinityf.
5310         (test_isfinited): Use Infinityd.
5311         (test_isfinitel): Use Infinityl.
5312         * tests/test-isinf.c: Include infinity.h.
5313         (test_isinff): Use Infinityf.
5314         (test_isinfd): Use Infinityd.
5315         (test_isinfl): Use Infinityl.
5316         * tests/test-isnan.c: Include infinity.h.
5317         (test_float): Use Infinityf.
5318         (test_double): Use Infinityd.
5319         (test_long_double): Use Infinityl.
5320         * tests/test-isnanf.h: Include infinity.h.
5321         (main): Use Infinityf.
5322         * tests/test-isnand.h: Include infinity.h.
5323         (main): Use Infinityd.
5324         * tests/test-isnanl.h: Include infinity.h.
5325         (main): Use Infinityl.
5326         * tests/test-ldexpl.c: Include infinity.h.
5327         (main): Use Infinityl.
5328         * tests/test-printf-posix.h: Include infinity.h.
5329         (test_function): Use Infinityd.
5330         * tests/test-roundf1.c: Include infinity.h.
5331         (main): Use Infinityf.
5332         * tests/test-round1.c: Include infinity.h.
5333         (main): Use Infinityd.
5334         * tests/test-roundl.c: Include infinity.h.
5335         (main): Use Infinityl.
5336         * tests/test-signbit.c: Include infinity.h.
5337         (test_signbitf): Use Infinityf.
5338         (test_signbitd): Use Infinityd.
5339         (test_signbitl): Use Infinityl.
5340         * tests/test-snprintf-posix.h: Include infinity.h.
5341         (test_function): Use Infinityd, Infinityl.
5342         * tests/test-sprintf-posix.h: Include infinity.h.
5343         (test_function): Use Infinityd, Infinityl.
5344         * tests/test-truncf1.c: Include infinity.h.
5345         (main): Use Infinityf.
5346         * tests/test-trunc1.c: Include infinity.h.
5347         (main): Use Infinityd.
5348         * tests/test-truncl.c: Include infinity.h.
5349         (main): Use Infinityl.
5350         * tests/test-vasnprintf-posix.c: Include infinity.h.
5351         (test_function): Use Infinityd, Infinityl.
5352         * tests/test-vasprintf-posix.c: Include infinity.h.
5353         (test_function): Use Infinityd, Infinityl.
5354         * modules/ceilf-tests (Files): Add tests/infinity.h.
5355         * modules/ceil-tests (Files): Likewise.
5356         * modules/ceill-tests (Files): Likewise.
5357         * modules/dprintf-posix-tests (Files): Likewise.
5358         * modules/floorf-tests (Files): Likewise.
5359         * modules/floor-tests (Files): Likewise.
5360         * modules/floorl-tests (Files): Likewise.
5361         * modules/fprintf-posix-tests (Files): Likewise.
5362         * modules/frexp-tests (Files): Likewise.
5363         * modules/frexp-nolibm-tests (Files): Likewise.
5364         * modules/frexpl-tests (Files): Likewise.
5365         * modules/frexpl-nolibm-tests (Files): Likewise.
5366         * modules/isfinite-tests (Files): Likewise.
5367         * modules/isinf-tests (Files): Likewise.
5368         * modules/isnan-tests (Files): Likewise.
5369         * modules/isnanf-tests (Files): Likewise.
5370         * modules/isnanf-nolibm-tests (Files): Likewise.
5371         * modules/isnand-tests (Files): Likewise.
5372         * modules/isnand-nolibm-tests (Files): Likewise.
5373         * modules/isnanl-tests (Files): Likewise.
5374         * modules/isnanl-nolibm-tests (Files): Likewise.
5375         * modules/ldexpl-tests (Files): Likewise.
5376         * modules/printf-posix-tests (Files): Likewise.
5377         * modules/roundf-tests (Files): Likewise.
5378         * modules/round-tests (Files): Likewise.
5379         * modules/roundl-tests (Files): Likewise.
5380         * modules/signbit-tests (Files): Likewise.
5381         * modules/snprintf-posix-tests (Files): Likewise.
5382         * modules/sprintf-posix-tests (Files): Likewise.
5383         * modules/truncf-tests (Files): Likewise.
5384         * modules/trunc-tests (Files): Likewise.
5385         * modules/truncl-tests (Files): Likewise.
5386         * modules/vasnprintf-posix-tests (Files): Likewise.
5387         * modules/vasprintf-posix-tests (Files): Likewise.
5388         * modules/vdprintf-posix-tests (Files): Likewise.
5389         * modules/vfprintf-posix-tests (Files): Likewise.
5390         * modules/vprintf-posix-tests (Files): Likewise.
5391         * modules/vsnprintf-posix-tests (Files): Likewise.
5392         * modules/vsprintf-posix-tests (Files): Likewise.
5393         * modules/xprintf-posix-tests (Files): Likewise.
5394
5395 2011-09-11  Bruno Haible  <bruno@clisp.org>
5396
5397         Ensure pid_t gets defined.
5398         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5399         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5400         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5401         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5403         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5404         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5405         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5406         * tests/test-fcntl-h.c: Check that pid_t is defined.
5407         * tests/test-sched.c: Likewise.
5408         * tests/test-termios.c: Likewise.
5409         * tests/test-time.c: Likewise.
5410         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5411         * doc/posix-headers/signal.texi: Likewise.
5412         * doc/posix-headers/sys_types.texi: Likewise.
5413         * doc/posix-headers/time.texi: Likewise.
5414
5415 2011-09-11  Bruno Haible  <bruno@clisp.org>
5416
5417         acl: Fix compilation on Solaris 10 (older version).
5418         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5419         of ACE_EVERYONE.
5420         * lib/set-mode-acl.c (qset_acl): Likewise.
5421         Reported by Christian Jullien <eligis@orange.fr>.
5422
5423 2011-09-10  Bruno Haible  <bruno@clisp.org>
5424
5425         iconv, unsetenv: Add support for MSVC compiler.
5426         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5427         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5428
5429 2011-09-10  Bruno Haible  <bruno@clisp.org>
5430
5431         *printf: Add support for MSVC compiler.
5432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5433         handles the exception caused by the %n directive. When cross-compiling,
5434         guess no on native Windows.
5435         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5436         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5437         emulate it through vsnprintf.
5438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5439         * doc/posix-functions/dprintf.texi: Update documentation regarding
5440         MSVC 9.
5441         * doc/posix-functions/fprintf.texi: Likewise.
5442         * doc/posix-functions/printf.texi: Likewise.
5443         * doc/posix-functions/snprintf.texi: Likewise.
5444         * doc/posix-functions/sprintf.texi: Likewise.
5445         * doc/posix-functions/swprintf.texi: Likewise.
5446         * doc/posix-functions/vdprintf.texi: Likewise.
5447         * doc/posix-functions/vfprintf.texi: Likewise.
5448         * doc/posix-functions/vprintf.texi: Likewise.
5449         * doc/posix-functions/vsnprintf.texi: Likewise.
5450         * doc/posix-functions/vsprintf.texi: Likewise.
5451         * doc/glibc-functions/asprintf.texi: Likewise.
5452         * doc/glibc-functions/obstack_printf.texi: Likewise.
5453         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5454         * doc/glibc-functions/vasprintf.texi: Likewise.
5455
5456 2011-09-10  Bruno Haible  <bruno@clisp.org>
5457
5458         nocrash: Add support for native Windows.
5459         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5460
5461 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5462             Bruno Haible  <bruno@clisp.org>
5463
5464         absolute-header, include-next: Add support for MSVC compiler.
5465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5466         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5467         directory separator in #line directives.
5468         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5469         recognize also backslash as directory separator in #line directives.
5470
5471 2011-09-08  Jim Meyering  <meyering@redhat.com>
5472
5473         maint.mk: mark the post-release commit log with "maint: " prefix
5474         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5475         one-line commit-log summary.
5476
5477 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5478             Bruno Haible  <bruno@clisp.org>
5479
5480         Doc about crypt functions.
5481         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5482         systems.
5483         * doc/posix-functions/encrypt.texi: Likewise.
5484         * doc/posix-functions/setkey.texi: Likewise.
5485
5486 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5487
5488         * lib/gc.h: Fix copyright header.
5489
5490 2011-09-07  Bruno Haible  <bruno@clisp.org>
5491
5492         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5493         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5494         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5495
5496 2011-09-07  Bruno Haible  <bruno@clisp.org>
5497
5498         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5499         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5500         * lib/freopen.c: Likewise.
5501         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5502         * lib/lstat.c: Likewise.
5503         * lib/stat.c: Likewise.
5504         * lib/open.c: Use different syntax for include of <fcntl.h>.
5505         * lib/openat.c: Include fcntl.h again, explicitly.
5506
5507 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5508
5509         parse-datetime: document the newly accepted format
5510         * doc/parse-datetime.texi (Combined date and time of day items):
5511         New section.
5512
5513 2011-09-06  Bruno Haible  <bruno@clisp.org>
5514
5515         acl: Fix a test failure on newer Solaris 10 with ZFS.
5516         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5517         ENOSYS as no ACL.
5518         Reported by Jim Meyering.
5519
5520 2011-09-06  Bruno Haible  <bruno@clisp.org>
5521
5522         acl: Update for AIX >= 5.3 with NFS.
5523         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5524         ENOSYS as no ACL.
5525
5526         acl: Fix a test failure on AIX >= 5.3 with NFS.
5527         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5528         as no ACL.
5529
5530 2011-09-06  Bruno Haible  <bruno@clisp.org>
5531
5532         acl: Fix a test failure on IRIX 6.5 with NFS.
5533         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5534         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5535         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5536         * lib/copy-acl.c (qcopy_acl): Likewise.
5537
5538 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5539
5540         openat: port to AIX 7.1 with large files
5541         AIX 7.1 does a "#define openat open64at" if large files are in use,
5542         so we can't simply #undef openat.  Use the orig_openat trick (similar
5543         to orig_open in lib/open.c) to work around the problem.  Problem
5544         reported by Kevin Brott for GNU tar, in the thread containing
5545         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5546         * lib/openat.c (__need_system_fcntl_h): Define first.
5547         Include <fcntl.h> and <sys/types.h> before undefining.
5548         (orig_openat) [HAVE_OPENAT]: New inline function.
5549         (openat) [HAVE_OPENAT]: Do not undef.
5550         (rpl_openat): Use orig_openat, not openat.
5551
5552 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5553             Bruno Haible  <bruno@clisp.org>
5554
5555         acl: Avoid errors on NonStop Kernel.
5556         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5557         ENOTSUP errors.
5558
5559 2011-09-05  Bruno Haible  <bruno@clisp.org>
5560
5561         acl: Clean up Solaris code.
5562         * lib/acl-internal.h: Remove no-op #if.
5563         * lib/file-has-acl.c: Likewise.
5564         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5565         * lib/copy-acl.c (qcopy_acl): Likewise.
5566
5567 2011-09-05  Bruno Haible  <bruno@clisp.org>
5568
5569         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5570         binaries built on the original Solaris 10.
5571         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5572         trivial.
5573
5574 2011-09-05  Bruno Haible  <bruno@clisp.org>
5575
5576         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5577         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5578         10.
5579         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5580         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5581         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5582         instead of acl_get, facl_get, acl_set, facl_set.
5583
5584 2011-09-05  Bruno Haible  <bruno@clisp.org>
5585
5586         copy-file: Try unit tests on more file systems.
5587         * tests/test-copy-file-1.sh: New file.
5588         * tests/test-copy-file-2.sh: New file.
5589         * modules/copy-file-tests (Files): Add them.
5590         (Makefile.am): Add them to TESTS.
5591
5592         acl: Try unit tests on more file systems.
5593         * tests/test-file-has-acl-1.sh: New file.
5594         * tests/test-file-has-acl-2.sh: New file.
5595         * tests/test-set-mode-acl-1.sh: New file.
5596         * tests/test-set-mode-acl-2.sh: New file.
5597         * tests/test-copy-acl-1.sh: New file.
5598         * tests/test-copy-acl-2.sh: New file.
5599         * modules/acl-tests (Files): Add them.
5600         (Makefile.am): Add them to TESTS.
5601
5602 2011-09-04  Bruno Haible  <bruno@clisp.org>
5603
5604         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5605         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5606         10.
5607         (OLD_ALLOW, OLD_DENY): New macros.
5608         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5609         ACE_ACCESS_ALLOWED_ACE_TYPE.
5610         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5611         ACE_ACCESS_DENIED_ACE_TYPE.
5612         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5613         (NEW_ACE_EXECUTE): Fix value.
5614         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5615         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5616         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5617         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5618         NEW_ACE_SYNCHRONIZE): New macros.
5619         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5620         instead of acl_fromtext, acl_set, facl_set.
5621         Fixes a coreutils/tests/cp/perm failure.
5622
5623 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5624
5625         openat: test for fstatat (..., 0) bug
5626         Further testing with tar suggests that fstatat (..., 0)
5627         does not work in general, on AIX 7.1; see
5628         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5629         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5630         replacement fstatat (which is what older AIX releases were using
5631         anyway).
5632         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5633         use is now changed to orig_fstatat.  This was probably the right
5634         thing to do anyway.
5635         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5636         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5637         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5638         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5639         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5640         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5641         if the bug is found.
5642
5643         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5644         This tests for another fstatat bug on AIX 7.1:
5645         fstatat (AT_FDCWD, ..., 0) does not work.  See
5646         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5647         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5648         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5649         (rpl_fstatat): Adjust so that it works around either (or both)
5650         bugs if present.
5651         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5652
5653 2011-09-03  Karl Berry  <karl@gnu.org>
5654
5655         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5656         in index entries.
5657
5658 2011-09-02  Bruno Haible  <bruno@clisp.org>
5659
5660         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5661         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5662         values of AR, ARFLAGS, RANLIB.
5663         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5664
5665 2011-09-02  Bruno Haible  <bruno@clisp.org>
5666
5667         Find 'ar' program that fits with --host argument.
5668         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5669
5670 2011-09-02  Bruno Haible  <bruno@clisp.org>
5671
5672         tests: init.sh: Support any non-GNU diff.
5673         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5674         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5675         Solaris 8.
5676
5677 2011-09-02  Bruno Haible  <bruno@clisp.org>
5678
5679         tests: init.sh: work also with any non-GNU diff that supports -u
5680         * tests/init.sh: Relax check for diff -u support.
5681         Rather than checking for GNU diff via --version, simply check
5682         for support for -u itself.  Useful at least on OpenBSD 4.9,
5683         AIX 7.1, IRIX 6.5, and Solaris 10.
5684
5685 2011-09-01  Bruno Haible  <bruno@clisp.org>
5686
5687         strtoimax, strtoumax: Document problem on HP-UX 11.
5688         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5689         * doc/posix-functions/strtoumax.texi: Likewise.
5690
5691 2011-09-01  Bruno Haible  <bruno@clisp.org>
5692
5693         strtoumax: Avoid link error on OSF/1 with DTK cc.
5694         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5695         defined as a function.
5696         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5697         strtoumax is defined, not whether it is declared.
5698
5699 2011-09-01  Bruno Haible  <bruno@clisp.org>
5700
5701         strtoimax: Avoid link error on OSF/1 with DTK cc.
5702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5703         defined as a function.
5704         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5705         strtoimax is defined, not whether it is declared.
5706
5707 2011-09-01  Bruno Haible  <bruno@clisp.org>
5708
5709         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5710         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5711         as a function.
5712         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5713         whether it is declared.
5714
5715 2011-09-01  Bruno Haible  <bruno@clisp.org>
5716
5717         imaxabs: Avoid link error on OSF/1 with DTK cc.
5718         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5719         as a function.
5720         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5721         whether it is declared.
5722
5723 2011-09-01  Bruno Haible  <bruno@clisp.org>
5724
5725         Tests for module 'strtoumax'.
5726         * modules/strtoumax-tests: New file.
5727         * tests/test-strtoumax.c: New file.
5728
5729         Tests for module 'strtoimax'.
5730         * modules/strtoimax-tests: New file.
5731         * tests/test-strtoimax.c: New file.
5732
5733         Tests for module 'imaxdiv'.
5734         * modules/imaxdiv-tests: New file.
5735         * tests/test-imaxdiv.c: New file.
5736
5737         Tests for module 'imaxabs'.
5738         * modules/imaxabs-tests: New file.
5739         * tests/test-imaxabs.c: New file.
5740
5741 2011-09-01  Bruno Haible  <bruno@clisp.org>
5742
5743         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5745         pthread_create.
5746
5747 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5748
5749         openat: work around AIX 7.1 fstatat issue
5750         This should fix the problem that was not properly fixed
5751         in the previous change, dated 2011-08-30.
5752         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5753         __need_system_stat_h defined.
5754         (orig_fstatat) [HAVE_FSTATAT]: New function.
5755         (rpl_fstatat): Go back to the old way of doing things,
5756         except call orig_fstatat instead of fstatat.
5757         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5758         Remove unnecessary check whether fstatat fills in st_size etc.
5759
5760 2011-09-01  Bruno Haible  <bruno@clisp.org>
5761
5762         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5763         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5764         just include the system's header.
5765
5766 2011-08-31  Jim Meyering  <meyering@redhat.com>
5767
5768         tests: avoid spurious assertion failure in test-float.c on ppc64
5769         * tests/test-float.c (test_long_double): Comment out an assertion,
5770         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5771         with gcc-4.4.4.
5772
5773         maint: indent with spaces, not TABs
5774         I need to get in the habit of running gnulib's "make check".
5775         Both of these would have been caught.
5776         * m4/largefile.m4: Indent with spaces, not TABs.
5777         * lib/parse-datetime.y (iso_8601_time): Likewise.
5778         Spotted by Pádraig Brady.
5779
5780         test-parse-datetime.c: accommodate a relatively strict gcc warning
5781         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5782         to avoid a warning from gcc's -Werror=missing-declarations.
5783         Insert a few spaces-before-funcall-parenthesis.
5784
5785 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5786
5787         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5788         The parser now accepts ISO 8601 date-time strings with "T" as the
5789         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5790         with a space between the date and time strings.  Now it also parses
5791         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5792         variants like "2004-02-29T16:21:42.333-07:00"
5793         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5794         of day representation using the 'T' separator character.
5795         * doc/parse-datetime.texi (General date syntax): replace use of
5796         deprecated --iso-8601 option with --rfc-3339 in example of date
5797         command output formats that can be parsed.
5798         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5799         lib/parse-datetime.y.
5800         (gmt_offset): New function.
5801         (main): Add additional test cases to validate ISO8601 extended
5802         date and time of day parsing.
5803
5804 2011-08-31  Bruno Haible  <bruno@clisp.org>
5805
5806         freopen: Documentation.
5807         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5808         name.
5809         Reported by Claudio Bley <claudio.bley@gmail.com>.
5810
5811 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5812
5813         freopen: Don't crash if the filename argument is NULL.
5814         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5815         NULL.
5816
5817 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5818
5819         openat: work around AIX 7.1 fstatat bug
5820         Problem reported by Kevin Brott for GNU tar, in the thread containing
5821         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5822         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5823         FSTATAT_ST_SIZE_ETC_BROKEN.
5824         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5825         rpl_fstatat.
5826         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5827         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5828         AC_CHECK_FUNCS_ONCE for fstatat.
5829         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5830         fchmodat, mkdirat, openat and unlinkat.
5831
5832 2011-08-30  Bruno Haible  <bruno@clisp.org>
5833
5834         Avoid endless recursions if config.h includes some header files.
5835         * lib/fopen.c (__need_FILE): Define already before including config.h.
5836         * lib/freopen.c (__need_FILE): Likewise.
5837         * lib/open.c (__need_system_fcntl_h): Likewise.
5838         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5839         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5840         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5841
5842 2011-08-25  Karl Berry  <karl@gnu.org>
5843
5844         * config/srclist.txt (ylwrap): new try.
5845         * build-aux/ylwrap: new file.
5846
5847 2011-08-23  Bruno Haible  <bruno@clisp.org>
5848
5849         tmpdir: Use a good default directory on native Windows.
5850         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5851         (P_tmpdir): Default to _P_tmpdir on native Windows.
5852         (path_search): On native Windows, try the value returned by GetTempPath
5853         before trying P_tmpdir.
5854         * modules/tmpdir (Depends-on): Add pathmax.
5855         Suggested by John Darrington <john@darrington.wattle.id.au>.
5856
5857 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5858
5859         doc: fix typo in README-release
5860         * top/README-release: Capitalize first word of a sentence.
5861
5862 2011-08-19  Jim Meyering  <meyering@redhat.com>
5863
5864         fts: do not exhaust memory when processing million-entry directories
5865         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5866         directory would require about 256*N bytes of memory.  Thus, it was
5867         easy to construct a directory too large to be processed by any of
5868         those tools.  With this change, fts' maximum memory utilization is
5869         now limited to around 30MB.
5870         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5871         (fts_read): When we've processed the final entry (i.e., when
5872         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5873         using the parent entry to read any remaining entries.  Dispatch
5874         depending on what fts_build returns:
5875         - NULL+stop, aka failure: stop
5876         - NULL otherwise: move up in the dir hierarchy
5877         - non-NULL: handle this new entry
5878         (fts_build): Declare and use new local, continue_readdir.
5879         Prepare to be called from fts_read, when the entries
5880         from a partially-read directory have just been exhausted.
5881         In that case, we'll skip the opendir and instead use the parent's
5882         fts_dirp and derive dir_fd from that.
5883         Finally, in the readdir loop, if we read max_entries entries,
5884         exit the loop ensuring *not* to call closedir.  This is required
5885         so that fts_dirp can be reused on a subsequent call.
5886         Prompted by Ben England's report of memory exhaustion in find
5887         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5888
5889         maint: fts: move decl of `dp' down into while loop; split a long line
5890         * lib/fts.c (fts_build): No semantic change.
5891
5892         fts: add/use new struct member, fts_dirp
5893         We are about to use this to manage any directory with
5894         too many entries to read all of them into memory at once.
5895         To do that, we'll need to save the DIR* pointer in each
5896         affected FTSENT struct.
5897         * lib/fts_.h: Include <dirent.h>.
5898         (struct FTSENT) [fts_dirp]: New member.
5899         * lib/fts.c (closedir_and_clear): Define.
5900         Use it in place of closedir so that we are sure to
5901         clear the new fts_dirp member when done with it.
5902         (fts_alloc): Initialize the new member.
5903         (fts_lfree): Free, if needed.
5904
5905         maint: fts: give __opendir2 a new parameter and rename
5906         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5907         than surreptitiously using sole caller's "dir_fd".
5908         (fts_opendir): Rename from __opendir2.
5909
5910         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5911         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5912
5913         maint: fts.c: correct off-by-one indentation
5914         * lib/fts.c (fts_build): Correct indentation, change style
5915         of a couple of block comments, and bracing style.
5916
5917         maint: fts.c: move __opendir2 #define "up" out of function body
5918         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5919
5920         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5921         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5922         out for a long time and besides was useful only on BSD systems.
5923
5924 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5925
5926         regex: port to Stratus OpenVOS
5927         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5928         define to empty, rather than attempting nonportable optimizations.
5929         Problem reported by Paul Green in:
5930         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5931         and fix suggested by Eric Blake in:
5932         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5933
5934 2011-08-17  Eric Blake  <eblake@redhat.com>
5935
5936         getcwd: fix test failures on mingw
5937         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5938         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5939         test if long directory cannot be created, and allow mingw errno.
5940
5941         getcwd-lgpl: fix m4 to match relaxed test for BSD
5942         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5943         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5944         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5945         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5946         signature problem.
5947
5948         getcwd: fix compilation on mingw64
5949         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5950         getcwd.
5951         Reported by Marc-André Lureau.
5952
5953         pipe2: silence compiler warning
5954         * lib/pipe2.c (pipe2): Hide label if it is not used.
5955
5956 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5957
5958         relocatable-prog: fix link error
5959         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5960         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5961         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5962         into modules/relocatable-lib without noticing that
5963         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5964         also needs to build relocatable.c.
5965
5966 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5970         shell code: it contained a 'break' that was not in a loop.
5971         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5972         via a shell-language loop; this may have been true in old Autoconf
5973         versions, but it's not true in Autoconf 2.68.  I found this bug
5974         when testing coreutils git on Solaris 8, whose shell complains
5975         about the syntax error.
5976
5977 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5978
5979         * lib/base64.c: Fix comment to reference RFC 4648.
5980         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5981         <gvtulder@gmail.com>.
5982
5983 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5984
5985         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5986
5987         po/Makefile.in.in: fix make -q problem
5988         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5989         rule, since there's no file named 'check-macro-version' and its
5990         use as a file breaks make -q.
5991         (all): Don't depend on check-macro-version.
5992         (CHECK_MACRO_VERSION): New macro.
5993         (stamp-po): Use it.
5994
5995         configmake: fix make -q problem
5996         * modules/configmake (configmake.h): Update configmake.h's time stamp
5997         even if the file does not change.  Otherwise, 'make -q' fails.
5998         Problem reported by Simon Josefsson in
5999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6000
6001 2011-08-11  Jim Meyering  <meyering@redhat.com>
6002
6003         git-version-gen: correct the advice in a comment
6004         * build-aux/git-version-gen: Correct comment.
6005         Don't recommend to list .tarball-version in .gitignore.
6006
6007 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         base64: fix off-by-one buffer size bug
6010         Problem and (trivial) fix reported by Gijs van Tulder in
6011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6012         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6013         * tests/test-base64.c (main): Catch the bug.
6014
6015 2011-08-10  Eric Blake  <eblake@redhat.com>
6016
6017         closein: correct comments
6018         * lib/closein.c (close_stdin): Improve comments.
6019
6020 2011-08-09  Bruno Haible  <bruno@clisp.org>
6021
6022         More tests for 'fseeko'.
6023         * tests/test-fseeko3.c: New file, from Eric Blake.
6024         * tests/test-fseeko3.sh: New file.
6025         * modules/fseeko-tests (Files): Add them.
6026         (TESTS): Add test-fseeko3.sh.
6027         (check_PROGRAMS): Add test-fseeko3.
6028
6029 2011-08-09  Eric Blake  <eblake@redhat.com>
6030
6031         fseeko: remove unneeded hack
6032         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6033
6034         fseeko: fix bug on glibc
6035         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6036         Reported by John W. Eaton.
6037
6038 2011-08-08  Bruno Haible  <bruno@clisp.org>
6039
6040         unictype/base: Fix interoperability with preinstalled libunistring.
6041         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6042         Reported by Simon Josefsson.
6043
6044 2011-08-08  Bruno Haible  <bruno@clisp.org>
6045
6046         iswblank: Detect declaration correctly.
6047         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6048         AC_CHECK_DECLS invocation.
6049
6050 2011-08-08  Bruno Haible  <bruno@clisp.org>
6051
6052         tcgetsid: Detect declaration correctly.
6053         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6054         AC_CHECK_DECLS invocation.
6055         Reported by Simon Josefsson.
6056
6057 2011-08-08  Eric Blake  <eblake@redhat.com>
6058
6059         largefile: fix typo that regressed large file support
6060         * modules/largefile (configure.ac-early): Fix section name.
6061
6062 2011-08-06  Karl Berry  <karl@gnu.org>
6063
6064         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6065         a separate module.
6066
6067 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6068
6069         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6070         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6071         get prototype for free.
6072
6073 2011-08-04  Bruno Haible  <bruno@clisp.org>
6074
6075         Tests for module 'pathmax'.
6076         * modules/pathmax-tests: New file.
6077         * tests/test-pathmax.c: New file.
6078
6079         canonicalize-lgpl: Support larger filenames on the Hurd.
6080         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6081         Reported by Paul Eggert.
6082
6083         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6084         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6085         * lib/chdir-long.h: Include pathmax.h.
6086         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6087         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6088         (PATH_MAX): Remove code that is done by pathmax.h.
6089         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6090         * lib/tmpfile.c: Add a comment.
6091         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6092         * modules/chdir-long (Depends-on): Add pathmax.
6093         * modules/getcwd (Depends-on): Add pathmax.
6094         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6095         is not defined.
6096         * doc/posix-headers/limits.texi: Mention the pathmax module.
6097         * NEWS: Mention the change.
6098
6099 2011-08-02  Bruno Haible  <bruno@clisp.org>
6100
6101         pthread_sigmask: Actually use results of gl_THREADLIB.
6102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6103         gl_THREADLIB, not gl_[]THREADLIB.
6104         Reported by Eric Blake.
6105
6106 2011-08-02  Jim Meyering  <meyering@redhat.com>
6107
6108         maint.mk: relax the default _gl_TS_function_match regexp
6109         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6110         space between function name and "(" in an "extern" declaration.
6111         That would fail to match a decl with no space there: extern void foo();
6112
6113 2011-07-31  Iain Nicol  <iain@thenicols.net>
6114
6115         git-version-gen: document that EXTRA_DIST must include .version
6116         * build-aux/git-version-gen: In the how-to-use comment, document
6117         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6118         will fail when run from an unpacked distribution tarball.
6119
6120 2011-08-01  Bruno Haible  <bruno@clisp.org>
6121
6122         wctype-h: Fix last change.
6123         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6124         REPLACE_TOWLOWER to 0.
6125         Reported by Sam Steingold <sds@gnu.org>.
6126
6127 2011-07-31  Bruno Haible  <bruno@clisp.org>
6128
6129         frexpl: Update autoconf test.
6130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6131         according to changes of 2011-06-20.
6132
6133 2011-07-31  Bruno Haible  <bruno@clisp.org>
6134
6135         sys_utsname: Add support for Minix.
6136         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6137         <sys/utsname.h>.
6138         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6139         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6140
6141 2011-07-31  Bruno Haible  <bruno@clisp.org>
6142
6143         strings: Add support for Minix.
6144         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6145         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6146         * doc/posix-headers/strings.texi: Document the Minix problem.
6147
6148 2011-07-31  Bruno Haible  <bruno@clisp.org>
6149
6150         wctype-h: Add support for Minix.
6151         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6152         REPLACE_TOWLOWER.
6153         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6154         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6155         REPLACE_ISWCNTRL.
6156
6157 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6160         This is a performance improvement for 64-bit hosts: it causes the
6161         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6162
6163 2011-07-31  Bruno Haible  <bruno@clisp.org>
6164
6165         stdioext: Add support for Minix.
6166         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6167         * lib/fpurge.c (fpurge): Likewise.
6168         * lib/freadahead.c (freadahead): Likewise.
6169         * lib/freadable.c (freadable): Likewise.
6170         * lib/freading.c (freading): Likewise.
6171         * lib/freadptr.c (freadptr): Likewise.
6172         * lib/freadseek.c (freadptrinc): Likewise.
6173         * lib/fseeko.c (rpl_fseeko): Likewise.
6174         * lib/fseterr.c (fseterr): Likewise.
6175         * lib/fwritable.c (fwritable): Likewise.
6176         * lib/fwriting.c (fwriting): Likewise.
6177         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6178         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6179
6180 2011-07-31  Bruno Haible  <bruno@clisp.org>
6181
6182         errno: Port to Minix.
6183         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6184         ECONNABORTED are defined.
6185         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6186         GNULIB_defined_ECONNABORTED): New macros.
6187         * lib/strerror-override.h (strerror_override): Test also
6188         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6189         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6190         ECONNABORTED.
6191         * doc/posix-headers/errno.texi: Mention the Minix problem.
6192
6193 2011-07-31  Bruno Haible  <bruno@clisp.org>
6194
6195         Work around declaration collisions on Minix.
6196         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6197         defined, set REPLACE_MBSINIT.
6198         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6199         defined, set REPLACE_MBRTOWC.
6200         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6201         set REPLACE_MBRLEN.
6202         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6203         defined, set REPLACE_MBSRTOWCS.
6204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6205         defined, set REPLACE_WCRTOMB.
6206         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6207         defined, set REPLACE_WCSRTOMBS.
6208
6209 2011-07-31  Bruno Haible  <bruno@clisp.org>
6210
6211         Add support for Minix with ACK compiler.
6212         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6213         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6214         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6215
6216 2011-07-31  Bruno Haible  <bruno@clisp.org>
6217
6218         Documentation about Minix.
6219         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6220         * doc/glibc-headers/*.texi: Likewise.
6221         * doc/posix-functions/*.texi: Likewise.
6222         * doc/glibc-functions/*.texi: Likewise.
6223
6224 2011-07-31  Bruno Haible  <bruno@clisp.org>
6225
6226         snippet/warn-on-use: Fix indentation.
6227         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6228
6229 2011-07-25  Jim Meyering  <meyering@redhat.com>
6230
6231         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6232         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6233         commands.
6234
6235 2011-07-27  Jim Meyering  <meyering@redhat.com>
6236
6237         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6238         * top/maint.mk (gl_extract_significant_defines_): Now that
6239         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6240         gnulib/lib/signal.in.h, and now that we recommend to
6241         define-if-undefined those two symbols in application code,
6242         we must filter them out of the "significant" list.
6243         This avoids a "make syntax-check" failure in coreutils.
6244
6245 2011-07-26  Eric Blake  <eblake@redhat.com>
6246
6247         warnings: add comments about previous patch
6248         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6249         * m4/include_next.m4: Likewise.
6250         * m4/warn-on-use.m4: Likewise.
6251         * m4/warnings.m4: Likewise, and simplify use.
6252         Suggested by Stefano Lattarini.
6253
6254         include-next, warnings: support older autoconf
6255         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6256         AS_VAR_PUSHDEF in a way that works with older autoconf.
6257         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6258         Reported by Daniel P. Berrange.
6259
6260 2011-07-25  Bruno Haible  <bruno@clisp.org>
6261
6262         fseek, ftell: Fix doc.
6263         * doc/posix-functions/fseek.texi: Reword statement about
6264         AC_SYS_LARGEFILE.
6265         * doc/posix-functions/ftell.texi: Likewise.
6266
6267 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6268             Bruno Haible  <bruno@clisp.org>
6269
6270         Add dependencies to the 'largefile' module.
6271         * modules/fopen (Depends-on): Add 'largefile'.
6272         * modules/freopen (Depends-on): Likewise.
6273         * modules/fseeko (Depends-on): Likewise.
6274         * modules/ftello (Depends-on): Likewise.
6275         * modules/glob (Depends-on): Likewise.
6276         * modules/lseek (Depends-on): Likewise.
6277         * modules/lstat (Depends-on): Likewise.
6278         * modules/mkostemp (Depends-on): Likewise.
6279         * modules/mkostemps (Depends-on): Likewise.
6280         * modules/mkstemp (Depends-on): Likewise.
6281         * modules/mkstemps (Depends-on): Likewise.
6282         * modules/open (Depends-on): Likewise.
6283         * modules/openat (Depends-on): Likewise.
6284         * modules/pread (Depends-on): Likewise.
6285         * modules/pwrite (Depends-on): Likewise.
6286         * modules/scandir (Depends-on): Likewise.
6287         * modules/stat (Depends-on): Likewise.
6288         * modules/tmpfile (Depends-on): Likewise.
6289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6290         since the containing module now depends on the largefile module.
6291         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6292         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6293         off_t is fixed by gnulib.
6294         * doc/posix-functions/freopen.texi: Likewise.
6295         * doc/posix-functions/fseeko.texi: Likewise.
6296         * doc/posix-functions/fstatat.texi: Likewise.
6297         * doc/posix-functions/ftello.texi: Likewise.
6298         * doc/posix-functions/glob.texi: Likewise.
6299         * doc/posix-functions/lseek.texi: Likewise.
6300         * doc/posix-functions/lstat.texi: Likewise.
6301         * doc/posix-functions/mkstemp.texi: Likewise.
6302         * doc/posix-functions/open.texi: Likewise.
6303         * doc/posix-functions/openat.texi: Likewise.
6304         * doc/posix-functions/pread.texi: Likewise.
6305         * doc/posix-functions/pwrite.texi: Likewise.
6306         * doc/posix-functions/scandir.texi: Likewise.
6307         * doc/posix-functions/stat.texi: Likewise.
6308         * doc/posix-functions/tmpfile.texi: Likewise.
6309         * doc/glibc-functions/mkostemp.texi: Likewise.
6310         * doc/glibc-functions/mkostemps.texi: Likewise.
6311         * doc/glibc-functions/mkstemps.texi: Likewise.
6312
6313 2011-07-25  Bruno Haible  <bruno@clisp.org>
6314
6315         fcntl: Move AC_LIBOBJ invocation to module description.
6316         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6317         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6318
6319         fcntl: Remove call-in from fchdir.m4.
6320         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6322
6323         dup3: Remove potential call-in from fchdir.m4.
6324         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6326
6327         dup2: Move AC_LIBOBJ invocation to module description.
6328         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6329         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6330         Don't invoke AC_LIBOBJ.
6331         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6332
6333         dup2: Remove call-in from fchdir.m4.
6334         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6336
6337         fclose: Move AC_LIBOBJ invocation to module description.
6338         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6339         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6340         to 1.
6341         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6342
6343         fclose: Remove call-in from close.m4.
6344         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6345         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6346
6347         close: Move AC_LIBOBJ invocation to module description.
6348         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6349         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6350         1.
6351         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6352
6353         close: Remove call-in from fchdir.m4.
6354         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6356
6357         open: Move AC_LIBOBJ invocation to module description.
6358         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6359         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6360         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6361
6362         open: Remove call-in from fchdir.m4.
6363         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6365
6366         fchdir: Start to remove gl_REPLACE_* idiom.
6367         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6368         (gl_FUNC_FCHDIR): Invoke it.
6369
6370 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6371
6372         * lib/ftell.c (ftell): Comment out cast.
6373
6374         close: use gl_REPLACE_FCLOSE only if defined
6375         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6376         is defined.  The close module doesn't depend on the fclose module
6377         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6379         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6380
6381 2011-07-24  Jim Meyering  <meyering@redhat.com>
6382
6383         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6384         * tests/test-select.h (test_function): Declare as "static".
6385
6386 2011-07-24  Bruno Haible  <bruno@clisp.org>
6387
6388         doc: Mention the effects of AC_SYS_LARGEFILE.
6389         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6390         on this function.
6391         * doc/posix-functions/aio_error.texi: Likewise.
6392         * doc/posix-functions/aio_fsync.texi: Likewise.
6393         * doc/posix-functions/aio_read.texi: Likewise.
6394         * doc/posix-functions/aio_return.texi: Likewise.
6395         * doc/posix-functions/aio_suspend.texi: Likewise.
6396         * doc/posix-functions/aio_write.texi: Likewise.
6397         * doc/posix-functions/fgetpos.texi: Likewise.
6398         * doc/posix-functions/fopen.texi: Likewise.
6399         * doc/posix-functions/freopen.texi: Likewise.
6400         * doc/posix-functions/fsetpos.texi: Likewise.
6401         * doc/posix-functions/fstatvfs.texi: Likewise.
6402         * doc/posix-functions/ftruncate.texi: Likewise.
6403         * doc/posix-functions/ftw.texi: Likewise.
6404         * doc/posix-functions/getrlimit.texi: Likewise.
6405         * doc/posix-functions/glob.texi: Likewise.
6406         * doc/posix-functions/lio_listio.texi: Likewise.
6407         * doc/posix-functions/lockf.texi: Likewise.
6408         * doc/posix-functions/mkstemp.texi: Likewise.
6409         * doc/posix-functions/mmap.texi: Likewise.
6410         * doc/posix-functions/nftw.texi: Likewise.
6411         * doc/posix-functions/openat.texi: Likewise.
6412         * doc/posix-functions/opendir.texi: Likewise.
6413         * doc/posix-functions/posix_fadvise.texi: Likewise.
6414         * doc/posix-functions/posix_fallocate.texi: Likewise.
6415         * doc/posix-functions/pread.texi: Likewise.
6416         * doc/posix-functions/pwrite.texi: Likewise.
6417         * doc/posix-functions/readdir.texi: Likewise.
6418         * doc/posix-functions/readdir_r.texi: Likewise.
6419         * doc/posix-functions/rewinddir.texi: Likewise.
6420         * doc/posix-functions/scandir.texi: Likewise.
6421         * doc/posix-functions/seekdir.texi: Likewise.
6422         * doc/posix-functions/setrlimit.texi: Likewise.
6423         * doc/posix-functions/statvfs.texi: Likewise.
6424         * doc/posix-functions/telldir.texi: Likewise.
6425         * doc/posix-functions/tmpfile.texi: Likewise.
6426         * doc/posix-functions/truncate.texi: Likewise.
6427         * doc/glibc-functions/fallocate.texi: Likewise.
6428         * doc/glibc-functions/fstatfs.texi: Likewise.
6429         * doc/glibc-functions/fts_children.texi: Likewise.
6430         * doc/glibc-functions/fts_read.texi: Likewise.
6431         * doc/glibc-functions/getdirentries.texi: Likewise.
6432         * doc/glibc-functions/mkostemp.texi: Likewise.
6433         * doc/glibc-functions/mkostemps.texi: Likewise.
6434         * doc/glibc-functions/mkstemps.texi: Likewise.
6435         * doc/glibc-functions/preadv.texi: Likewise.
6436         * doc/glibc-functions/pwritev.texi: Likewise.
6437         * doc/glibc-functions/sendfile.texi: Likewise.
6438         * doc/glibc-functions/statfs.texi: Likewise.
6439
6440 2011-07-24  Bruno Haible  <bruno@clisp.org>
6441
6442         doc: Fix typo.
6443         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6444
6445 2011-07-24  Bruno Haible  <bruno@clisp.org>
6446
6447         doc: Mention fsusage.
6448         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6449
6450 2011-07-24  Bruno Haible  <bruno@clisp.org>
6451
6452         doc: Mention new glibc headers and functions.
6453         * doc/glibc-headers/gshadow.texi: New file.
6454         * doc/glibc-functions/endsgent.texi: New file.
6455         * doc/glibc-functions/fgetsgent.texi: New file.
6456         * doc/glibc-functions/fgetsgent_r.texi: New file.
6457         * doc/glibc-functions/getsgent.texi: New file.
6458         * doc/glibc-functions/getsgent_r.texi: New file.
6459         * doc/glibc-functions/getsgnam.texi: New file.
6460         * doc/glibc-functions/getsgnam_r.texi: New file.
6461         * doc/glibc-functions/putsgent.texi: New file.
6462         * doc/glibc-functions/setsgent.texi: New file.
6463         * doc/glibc-functions/sgetsgent.texi: New file.
6464         * doc/glibc-functions/sgetsgent_r.texi: New file.
6465         * doc/glibc-functions/malloc_info.texi: New file.
6466         * doc/glibc-functions/preadv.texi: New file.
6467         * doc/glibc-functions/pwritev.texi: New file.
6468         * doc/glibc-functions/register_printf_modifier.texi: New file.
6469         * doc/glibc-functions/register_printf_specifier.texi: New file.
6470         * doc/glibc-functions/register_printf_type.texi: New file.
6471         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6472         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6473         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6474         * doc/glibc-functions/pthread_getname_np.texi: New file.
6475         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6476         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6477         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6478         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6479         * doc/glibc-functions/pthread_setname_np.texi: New file.
6480         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6481         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6482         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6483         * doc/glibc-functions/qsort_r.texi: New file.
6484         * doc/glibc-functions/quick_exit.texi: New file.
6485         * doc/glibc-functions/syncfs.texi: New file.
6486         * doc/gnulib.texi: Include them.
6487         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6488         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6489         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6490         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6491         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6492         * doc/glibc-functions/execvpe.texi: Likewise.
6493
6494 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6495
6496         ftell: don't include <unistd.h>
6497         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6498         guaranteed to define off_t, and the ftell module depends on the
6499         stdio module.
6500
6501         ftell: do not assume wraparound signed arithmetic
6502         * lib/ftell.c: Include <limits.h>.
6503         (ftell): Don't assume wraparound signed arithmetic.
6504
6505 2011-07-24  Bruno Haible  <bruno@clisp.org>
6506
6507         close: No longer depend on module 'fclose'.
6508         * modules/close (Depends-on): Remove fclose.
6509         * NEWS: Mention the change.
6510         Suggested by Sam Steingold <sds@gnu.org>.
6511
6512 2011-07-24  Bruno Haible  <bruno@clisp.org>
6513
6514         fsusage: Enable large volume support on AIX >= 5.2.
6515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6516         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6517         instead of STAT_STATVFS.
6518         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6519
6520         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6522         f_blocks field only on MacOS X.
6523
6524         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6526         * modules/fsusage (Depends-on): Add largefile.
6527
6528 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6529
6530         * README: Modernize discussion of signed integers.
6531         Assuming overflow wraparound is no longer safe.
6532         Mention ones' complement and signed magnitude.
6533
6534 2011-07-22  Bruno Haible  <bruno@clisp.org>
6535
6536         select tests, pselect tests: Refactor.
6537         * tests/test-select.h: New file, extracted from tests/test-select.c.
6538         (select_fn): New type.
6539         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6540         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6541         test_pipe): Add my_select argument.
6542         (test_function): Renamed from main. Add my_select argument.
6543         * tests/test-select.c: Move most code to tests/test-select.h. Include
6544         test-select.h.
6545         * modules/select-tests (Files): Add tests/test-select.h.
6546         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6547         (my_select, main): New functions.
6548         * modules/pselect-tests (Files): Add tests/test-select.h,
6549         tests/macros.h, tests/signature.h.
6550         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6551         (configure.ac): Check for <sys/wait.h>.
6552
6553 2011-07-22  Bruno Haible  <bruno@clisp.org>
6554
6555         sys_select tests: Check the signature of FD_*.
6556         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6557         signature tests from here...
6558         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6559         here.
6560         * modules/sys_select-tests (Files): Add tests/signature.h.
6561
6562 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6563
6564         largefile: new module, replacing large-inode
6565         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6566         * MODULES.html.sh: Add largefile, remove large-inode.
6567         * modules/largefile, m4/largefile.m4: New files.
6568         * modules/large-inode, m4/large-inode.m4: Remove.
6569
6570         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6572         implementations that use only 32 bits to count blocks.
6573         On typical hosts with 1024-byte blocks, this fails with file
6574         systems as small as 4 TiB.  Problem reported by Herb Wartens
6575         <http://debbugs.gnu.org/9140> and this should also fix a similar
6576         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6577
6578         large-inode: New module
6579         * MODULES.html.sh: Add it.
6580         * modules/large-inode, m4/large-inode.m4: New files.
6581
6582         extensions: Enable extensions on MacOS X 10.5 and later.
6583         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6584
6585 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6586
6587         file-has-acl: use acl_extended_file_nofollow if available
6588         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6589         (acl_extended_file): New macro.
6590         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6591         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6592
6593 2011-07-21  Bruno Haible  <bruno@clisp.org>
6594
6595         Declare system functions in a way that works with C++.
6596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6597         declare fdopendir as extern "C".
6598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6599         declare frexpl as extern "C".
6600         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6601         declare gai_strerror as extern "C".
6602         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6603         programs, declare gai_strerror as extern "C".
6604         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6605         declare getlogin_r as extern "C".
6606         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6607         as extern "C".
6608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6609         declare ldexpl as extern "C".
6610         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6611         as extern "C".
6612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6613         program, declare getmntinfo as extern "C".
6614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6615         stpncpy as extern "C".
6616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6617         program, declare __xpg_strerror_r as extern "C".
6618         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6619         strndup as extern "C".
6620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6621         declare memset and bzero as extern "C".
6622         Reported by Sam Steingold <sds@gnu.org>.
6623
6624 2011-07-12  Jim Meyering  <meyering@redhat.com>
6625
6626         maint.mk: prohibit inclusion of "verify.h" without use
6627         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6628
6629 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6630
6631         timer-time: A new module to check for timer_settime()
6632         * m4/timer_time.m4: Check for the posix function.
6633         * modules/timer-time: Add the new module.
6634         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6635         Mention it.
6636
6637 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6638             Bruno Haible  <bruno@clisp.org>
6639
6640         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6641         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6642         not defined, assume POSIX threads and look for pthread_sigmask in
6643         $LIBS, without changing $CPPFLAGS.
6644
6645 2011-07-19  Bruno Haible  <bruno@clisp.org>
6646
6647         strstr: Update cross-compilation guess.
6648         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6649         CPUs, guess no, in view of glibc
6650         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6651         Suggested by Eric Blake. Reported by Reuben Thomas.
6652
6653 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6654
6655         getopt-gnu: suppress core dumps from detection code
6656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6657         to suppress core dumps that may well occur on glibc systems.
6658         * modules/getopt-gnu: Depend on nocrash.
6659
6660 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         pthread_sigmask: ensure usleep is declared
6663         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6664         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6665
6666 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6667
6668         doc: Document NonStop portability issues.
6669         * doc/posix-functions/sigaction.texi (sigaction):
6670         * doc/posix-headers/signal.texi (signal.h):
6671         Document NonStop.  See Joachim Schmitz in
6672         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6673
6674 2011-07-15  Bruno Haible  <bruno@clisp.org>
6675
6676         ffsl, ffsll: Avoid unportable behaviour.
6677         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6678
6679 2011-07-15  Bruno Haible  <bruno@clisp.org>
6680
6681         ffs: More tests.
6682         * tests/test-ffs.c (NBITS): New macro.
6683         (main): Add more tests.
6684         * tests/test-ffsl.c (NBITS): New macro.
6685         (main): Add more tests.
6686         * tests/test-ffsll.c (NBITS): New macro.
6687         (main): Add more tests.
6688
6689 2011-07-15  Eric Blake  <eblake@redhat.com>
6690
6691         ffsl, ffsll: new modules
6692         * modules/ffsl: New file.
6693         * modules/ffsll: Likewise.
6694         * m4/ffsl.m4: Likewise.
6695         * m4/ffsll.m4: Likewise.
6696         * lib/ffsl.c: Likewise.
6697         * lib/ffsl.h: Likewise.
6698         * lib/ffsll.c: Likewise.
6699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6700         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6701         * modules/string (Makefile.am): Substitute witnesses.
6702         * lib/strings.in.h (ffsl, ffsll): Declare.
6703         * modules/ffsl-tests: New test file.
6704         * modules/ffsll-tests: Likewise.
6705         * tests/test-ffsl.c: Likewise.
6706         * tests/test-ffsll.c: Likewise.
6707         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6708         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6709         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6710
6711         ffs: fix m4 prerequisite
6712         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6713
6714         ffs: avoid undefined behavior
6715         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6716         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6717         Reported by Bruno Haible.
6718
6719 2011-07-12  Bruno Haible  <bruno@clisp.org>
6720
6721         pthread_sigmask: Rely on module 'threadlib'.
6722         * modules/pthread_sigmask (Depends-on): Add threadlib.
6723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6724         is defined.
6725
6726 2011-07-12  Bruno Haible  <bruno@clisp.org>
6727
6728         regex: Depend on module 'strcase'.
6729         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6730
6731 2011-07-12  Jim Meyering  <meyering@redhat.com>
6732
6733         warn-on-use: fix typo in file name
6734         * modules/snippet/warn-on-use (Files): Correct file name:
6735         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6736
6737 2011-07-12  Bruno Haible  <bruno@clisp.org>
6738
6739         strings: Document module.
6740         * doc/posix-headers/strings.texi: Mention module 'strings'.
6741
6742 2011-07-12  Bruno Haible  <bruno@clisp.org>
6743
6744         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6745         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6746         (Files, Makefile.am): Update.
6747         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6748         * modules/stdlib (Depends-on): Update.
6749
6750 2011-07-12  Bruno Haible  <bruno@clisp.org>
6751
6752         * NEWS: Mention the changes.
6753
6754         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6755         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6756         (Files, Makefile.am): Update.
6757         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6758         * modules/arpa_inet (Depends-on): Update.
6759         * modules/ctype (Depends-on): Update.
6760         * modules/dirent (Depends-on): Update.
6761         * modules/fcntl-h (Depends-on): Update.
6762         * modules/glob (Depends-on): Update.
6763         * modules/iconv-h (Depends-on): Update.
6764         * modules/inttypes-incomplete (Depends-on): Update.
6765         * modules/langinfo (Depends-on): Update.
6766         * modules/locale (Depends-on): Update.
6767         * modules/math (Depends-on): Update.
6768         * modules/netdb (Depends-on): Update.
6769         * modules/poll-h (Depends-on): Update.
6770         * modules/pty (Depends-on): Update.
6771         * modules/search (Depends-on): Update.
6772         * modules/signal (Depends-on): Update.
6773         * modules/spawn (Depends-on): Update.
6774         * modules/stdio (Depends-on): Update.
6775         * modules/stdlib (Depends-on): Update.
6776         * modules/string (Depends-on): Update.
6777         * modules/strings (Depends-on): Update.
6778         * modules/sys_file (Depends-on): Update.
6779         * modules/sys_ioctl (Depends-on): Update.
6780         * modules/sys_select (Depends-on): Update.
6781         * modules/sys_socket (Depends-on): Update.
6782         * modules/sys_stat (Depends-on): Update.
6783         * modules/sys_time (Depends-on): Update.
6784         * modules/sys_times (Depends-on): Update.
6785         * modules/sys_utsname (Depends-on): Update.
6786         * modules/sys_wait (Depends-on): Update.
6787         * modules/termios (Depends-on): Update.
6788         * modules/time (Depends-on): Update.
6789         * modules/unistd (Depends-on): Update.
6790         * modules/wchar (Depends-on): Update.
6791         * modules/wctype-h (Depends-on): Update.
6792         * MODULES.html.sh (Support for building libraries and executables):
6793         Update.
6794
6795         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6796         * modules/snippet/unused-parameter: Renamed from
6797         modules/unused-parameter.
6798         (Files, Makefile.am): Update.
6799         * build-aux/snippet/unused-parameter.h: Renamed from
6800         build-aux/unused-parameter.h.
6801         * modules/selinux-h (Depends-on): Update.
6802         * modules/unistr/base (Depends-on): Update.
6803         * MODULES.html.sh (Core language properties): Update.
6804
6805         Rename module 'link-warning' to 'snippet/link-warning'.
6806         * modules/snippet/link-warning: Renamed from modules/link-warning.
6807         (Files, Makefile.am): Update.
6808         * build-aux/snippet/link-warning.h: Renamed from
6809         build-aux/link-warning.h.
6810         * MODULES.html.sh (Support for building libraries and executables):
6811         Update.
6812
6813         Rename module 'c++defs' to 'snippet/c++defs'.
6814         * modules/snippet/c++defs: Renamed from modules/c++defs.
6815         (Files, Makefile.am): Update.
6816         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6817         * modules/arpa_inet (Depends-on): Update.
6818         * modules/ctype (Depends-on): Update.
6819         * modules/dirent (Depends-on): Update.
6820         * modules/fcntl-h (Depends-on): Update.
6821         * modules/glob (Depends-on): Update.
6822         * modules/iconv-h (Depends-on): Update.
6823         * modules/langinfo (Depends-on): Update.
6824         * modules/locale (Depends-on): Update.
6825         * modules/math (Depends-on): Update.
6826         * modules/netdb (Depends-on): Update.
6827         * modules/poll-h (Depends-on): Update.
6828         * modules/pty (Depends-on): Update.
6829         * modules/search (Depends-on): Update.
6830         * modules/signal (Depends-on): Update.
6831         * modules/spawn (Depends-on): Update.
6832         * modules/stdio (Depends-on): Update.
6833         * modules/stdlib (Depends-on): Update.
6834         * modules/string (Depends-on): Update.
6835         * modules/strings (Depends-on): Update.
6836         * modules/sys_ioctl (Depends-on): Update.
6837         * modules/sys_select (Depends-on): Update.
6838         * modules/sys_socket (Depends-on): Update.
6839         * modules/sys_stat (Depends-on): Update.
6840         * modules/sys_time (Depends-on): Update.
6841         * modules/sys_wait (Depends-on): Update.
6842         * modules/termios (Depends-on): Update.
6843         * modules/time (Depends-on): Update.
6844         * modules/unistd (Depends-on): Update.
6845         * modules/wchar (Depends-on): Update.
6846         * modules/wctype-h (Depends-on): Update.
6847
6848         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6849         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6850         (Files, Makefile.am): Update.
6851         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6852         * modules/argv-iter (Depends-on): Update.
6853         * modules/arpa_inet (Depends-on): Update.
6854         * modules/dirent (Depends-on): Update.
6855         * modules/fcntl-h (Depends-on): Update.
6856         * modules/fnmatch (Depends-on): Update.
6857         * modules/getopt-posix (Depends-on): Update.
6858         * modules/glob (Depends-on): Update.
6859         * modules/iconv-h (Depends-on): Update.
6860         * modules/inttypes-incomplete (Depends-on): Update.
6861         * modules/locale (Depends-on): Update.
6862         * modules/math (Depends-on): Update.
6863         * modules/netdb (Depends-on): Update.
6864         * modules/search (Depends-on): Update.
6865         * modules/signal (Depends-on): Update.
6866         * modules/spawn (Depends-on): Update.
6867         * modules/stdio (Depends-on): Update.
6868         * modules/stdlib (Depends-on): Update.
6869         * modules/string (Depends-on): Update.
6870         * modules/strings (Depends-on): Update.
6871         * modules/sys_socket (Depends-on): Update.
6872         * modules/sys_stat (Depends-on): Update.
6873         * modules/sys_time (Depends-on): Update.
6874         * modules/sys_times (Depends-on): Update.
6875         * modules/sys_utsname (Depends-on): Update.
6876         * modules/time (Depends-on): Update.
6877         * modules/unistd (Depends-on): Update.
6878         * modules/wchar (Depends-on): Update.
6879         * MODULES.html.sh (Support for building libraries and executables):
6880         Update.
6881
6882 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6883
6884         Improvements on _Noreturn and related modules.
6885
6886         modules/_Exit-tests: test _Noreturn too
6887         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6888         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6889         (main): Use them.
6890
6891         stdnoreturn, stdnoreturn-tests: remove modules
6892         They're not needed here and a bit premature for use elsewhere.  See
6893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6894         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6895         * tests/test-stdnoreturn.c: Remove files.
6896         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6897         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6898         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6899         and using noreturn.
6900         * modules/openat, modules/sigpipe-die, modules/xalloc:
6901         * modules/xmemdup0, modules/xstrtol:
6902         Remove dependency on stdnoreturn.
6903
6904         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6905         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6906         Reparenthesize to avoid GCC warning.
6907         Support Microsoft's syntax.
6908         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6909
6910         _Noreturn-tests: remove module
6911         * modules/_Noreturn-tests: Remove.
6912         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6913         * tests/test-_Noreturn.c: Remove.
6914         * tests/test-stdnoreturn.c: Merge from the old
6915         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6916
6917 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6918
6919         _Noreturn, stdnoreturn, and related modules.
6920
6921         * top/maint.mk: Adjust to new noreturn support.
6922         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6923         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6924
6925         xalloc: use stdnoreturn.h
6926         * lib/xalloc.h: Include <stdnoreturn.h>.
6927         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6928         * modules/xalloc (Depends-on): Add stdnoreturn.
6929
6930         xstrtol: use stdnoreturn.h
6931         * lib/xstrtol.h: Include <stdnoreturn.h>.
6932         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6933         * modules/xstrtol (Depends-on): Add stdnoreturn.
6934
6935         xmemdup0: use stdnoreturn.h
6936         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6937         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6938         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6939
6940         sigpipe-die: use stdnoreturn.h
6941         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6942         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6943         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6944
6945         openat: use stdnoreturn.h
6946         * lib/openat.h: Include <stdnoreturn.h>.
6947         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6948         * modules/openat (Depends-on): Add stdnoreturn.
6949
6950         * lib/openat-die.c (openat_save_fail): Modernize comment.
6951
6952         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6953
6954         * lib/glthread/thread.h: Modernize comment.
6955
6956         obstack: use _Noreturn
6957         * lib/obstack.c (__attribute__): Remove macro.
6958         (print_and_abort): Use _Noreturn.
6959
6960         c-stack: use _Noreturn
6961         * lib/c-stack.c (die, overflow_handler, segv_handler):
6962         Use _Noreturn rather than __attribute__((noreturn)).
6963
6964         argmatch-tests, exclude_tests: use _Noreturn
6965         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6966         Remove.
6967         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6968
6969         stdlib: use _Noreturn
6970         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6971         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6972         * modules/stdlib (Depends-on): Add _Noreturn.
6973         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6974
6975         stdnoreturn-tests: new module
6976         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6977
6978         stdnoreturn: new module
6979         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6980         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6981
6982         _Noreturn-tests: new module
6983         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6984
6985         _Noreturn: new module
6986         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6987         New section, mentioning it.
6988         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6989
6990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6991
6992 2011-07-11  Eric Blake  <eblake@redhat.com>
6993
6994         ffs: new module
6995         * modules/ffs: New file.
6996         * m4/ffs.m4: Likewise.
6997         * lib/ffs.c: Likewise.
6998         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6999         * modules/strings (Makefile.am): Substitute witness.
7000         (Depends-on): Add c++defs.
7001         * lib/strings.in.h (ffs): Declare.
7002         * modules/ffs-tests: New test file.
7003         * tests/test-ffs.c: Test new module.
7004         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7005         * doc/posix-functions/ffs.texi (ffs): Likewise.
7006
7007         regex: avoid compiler warning
7008         * lib/regex.c (includes): Include <strings.h>, for use of
7009         strcasecmp in regcomp.c.
7010         Reported by Joachim Schmitz.
7011
7012 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7013
7014         stdint: respect system's intmax_t if INTMAX_MAX
7015         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7016         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7017         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7018         long but int64_t is long long, and where we will clash with the
7019         system intmax_t if we override it.  See
7020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7021         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7022         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7023         similarly for UINTMAX_C.
7024
7025 2011-07-08  Bruno Haible  <bruno@clisp.org>
7026
7027         pthread_sigmask tests: Avoid a compiler warning.
7028         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7029         non-zero.
7030
7031         sigprocmask tests: A better way to avoid a compiler warning.
7032         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7033         (main): Complain if system() returns non-zero.
7034         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7035
7036 2011-07-08  Bruno Haible  <bruno@clisp.org>
7037
7038         pthread_sigmask: Work around IRIX bug.
7039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7040         bug.
7041         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7042         there may be unblocked pending signals.
7043         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7044
7045 2011-07-08  Bruno Haible  <bruno@clisp.org>
7046
7047         pthread_sigmask: Work around Cygwin bug.
7048         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7049         bug.
7050         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7051         the system's pthread_sigmask function.
7052         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7053
7054 2011-07-08  Bruno Haible  <bruno@clisp.org>
7055
7056         pthread_sigmask: Work around bug in single-threaded implementation.
7057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7058         FreeBSD, HP-UX, Solaris bug.
7059         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7060         * lib/pthread_sigmask.c: Include <stddef.h>.
7061         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7062         the system's pthread_sigmask function.
7063         * modules/pthread_sigmask (configure.ac): Invoke
7064         gl_PREREQ_PTHREAD_SIGMASK.
7065         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7066         HP-UX, Solaris.
7067
7068 2011-07-08  Eric Blake  <eblake@redhat.com>
7069
7070         test-sigprocmask: avoid compiler warning
7071         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7072         * tests/test-sigprocmask.c (main): Use it to silence warning.
7073         Reported by Jim Meyering.
7074
7075         test-snprintf: avoid compiler warning
7076         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7077         * tests/test-vsnprintf.c (main): Likewise.
7078         Reported by Jim Meyering.
7079
7080 2011-07-08  Bruno Haible  <bruno@clisp.org>
7081
7082         Tests for module 'pthread_sigmask'.
7083         * modules/pthread_sigmask-tests: New file.
7084         * tests/test-pthread_sigmask1.c: New file, based on
7085         tests/test-sigprocmask.c.
7086         * tests/test-pthread_sigmask2.c: New file.
7087
7088 2011-07-08  Jim Meyering  <meyering@redhat.com>
7089
7090         test-getopt.h: avoid warning about an unused variable
7091         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7092
7093 2011-07-07  Jim Meyering  <meyering@redhat.com>
7094
7095         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7096         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7097         now that it no longer contains leading TABs.
7098         Remove unused "url=FIXME" statement.
7099
7100 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7101
7102         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7104         When gl_THREADLIB is not in use, assume that the POSIX sematics
7105         are desired.  This is better for Emacs, which uses POSIX semantics
7106         on GNUish and/or POSIXish platforms, and does not use threads at
7107         all otherwise.
7108
7109         pthread_sigmask: fix typo when testing for libraries
7110         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7111         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7112
7113 2011-07-08  Eric Blake  <eblake@redhat.com>
7114
7115         fts: introduce FTS_NOATIME
7116         * lib/fts_.h (FTS_NOATIME): New bit flag.
7117         (FTS_OPTIONMASK): Adjust.
7118         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7119         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7120
7121 2011-07-08  Bruno Haible  <bruno@clisp.org>
7122
7123         Tests for module 'thread'.
7124         * modules/thread-tests: New file.
7125         * tests/test-thread_self.c: New file.
7126         * tests/test-thread_create.cc: New file.
7127
7128 2011-07-08  Bruno Haible  <bruno@clisp.org>
7129
7130         thread: Avoid gcc warnings when using gl_thread_self().
7131         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7132         'void *'.
7133         (gl_thread_self_pointer): Update.
7134
7135 2011-07-07  Bruno Haible  <bruno@clisp.org>
7136
7137         signal-c++-tests: Check declaration of pthread_sigmask.
7138         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7139         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7140         $(LIB_PTHREAD_SIGMASK).
7141
7142 2011-07-07  Bruno Haible  <bruno@clisp.org>
7143
7144         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7145         * lib/signal.in.h (pthread_sigmask): Override if
7146         REPLACE_PTHREAD_SIGMASK is 1.
7147         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7148         REPLACE_PTHREAD_SIGMASK.
7149         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7150         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7151         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7152         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7153         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7154
7155 2011-07-07  Bruno Haible  <bruno@clisp.org>
7156
7157         pthread_sigmask: Ensure declaration in <signal.h>.
7158         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7159         include <pthread.h>.
7160         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7161         problem.
7162
7163 2011-07-07  Bruno Haible  <bruno@clisp.org>
7164
7165         pthread_sigmask: Document the module.
7166         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7167
7168 2011-07-07  Bruno Haible  <bruno@clisp.org>
7169
7170         pthread_sigmask: Follow gnulib conventions.
7171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7172         gl_PTHREAD_SIGMASK.
7173         * modules/pthread_sigmask (configure.ac): Update.
7174
7175 2011-07-07  Bruno Haible  <bruno@clisp.org>
7176
7177         pthread_sigmask: Make declaration C++ safe.
7178         * lib/signal.in.h: In two special conditions, just do an #include_next.
7179         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7180         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7182         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7183         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7184         not REPLACE_PTHREAD_MASK.
7185         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7186         not REPLACE_PTHREAD_MASK.
7187         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7188
7189 2011-07-07  Bruno Haible  <bruno@clisp.org>
7190
7191         pthread_sigmask: Fix return value.
7192         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7193         * lib/pthread_sigmask.c: New file.
7194         * modules/pthread_sigmask (Files): Add it.
7195         (configure.ac): Invoke AC_LIBOBJ.
7196
7197 2011-07-07  Eric Blake  <eblake@redhat.com>
7198
7199         getopt: more portable argv creation
7200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7201         const, use char arrays rather than strings.
7202         Suggested by Paul Eggert.
7203
7204 2011-07-07  Bruno Haible  <bruno@clisp.org>
7205
7206         Tests for module 'sigprocmask'.
7207         * modules/sigprocmask-tests: New file.
7208         * tests/test-sigprocmask.c: New file.
7209
7210 2011-07-07  Bruno Haible  <bruno@clisp.org>
7211
7212         float tests: Tweak.
7213         * tests/test-float.c (main): Tweak skip message.
7214
7215 2011-07-07  Eric Blake  <eblake@redhat.com>
7216
7217         getopt: avoid compiler warning during configure
7218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7219         assigning string literals to non-const pointer.
7220
7221         getopt-gnu: avoid crash in glibc getopt
7222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7223         * tests/test-getopt.h (test_getopt): Enhance test.
7224         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7225         * doc/posix-functions/getopt.texi (getopt): Document it.
7226         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7228         Likewise.
7229
7230 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7231
7232         getopt: handle W; without long options in getopt [BZ #12922]
7233         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7234         but no long options are defined, just return 'W'.
7235
7236 2011-07-07  Bruno Haible  <bruno@clisp.org>
7237
7238         Avoid literal tabs.
7239         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7240         variable containing a tab instead of a literal tab.
7241         Reported by Jim Meyering.
7242
7243 2011-07-07  Bruno Haible  <bruno@clisp.org>
7244
7245         Comments.
7246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7247
7248 2011-07-06  Bruno Haible  <bruno@clisp.org>
7249
7250         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7251         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7252         <winsock2.h>.
7253         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7254         lib/sys_socket.in.h.
7255         (close, gethostname): Hide declarations from <winsock2.h>.
7256         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7257         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7258         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7259         (select): Don't override if gnulib's <sys/select.h> was already
7260         included.
7261         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7262         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7263         setsockopt, shutdown, select): Tweak indentation.
7264
7265 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7266
7267         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7268         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7269         in an application that does not use the sys_select module.
7270
7271 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7272
7273         poll: do not return 0 on timeout=-1
7274         * lib/poll.c: Loop with yield if no events occured
7275
7276 2011-07-06  Eric Blake  <eblake@redhat.com>
7277
7278         pthread_sigmask: always replace when not using pthread
7279         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7280         replacement when using some threading other than pthread.  Fix
7281         logic bug.
7282
7283 2011-07-06  Bruno Haible  <bruno@clisp.org>
7284
7285         Comments.
7286         * m4/printf.m4: Update comments about mingw.
7287
7288 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7289
7290         sys_select: define sigset_t more portably
7291         * lib/sys_select.in.h: Always include <sys/types.h>, since
7292         we now need sigset_t and mingw defines it there.
7293         Include <signal.h> before split inclusion guard, to avoid
7294         mishaps on Solaris, whose <signal.h> eventually includes us.
7295         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7296         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7297         which come from ...
7298         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7299         gl_CHECK_TYPE_SIGSET_T.
7300         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7301         does the real work.
7302         * modules/sys_select (Depends-on): Add 'signal'.
7303
7304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7305         Suggested by Bruno Haible.
7306
7307         pselect: Use pthread_sigmask, not sigprocmask.
7308         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7309         multithreaded apps better than sigprocmask does.
7310         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7311         sigprocmask directly.
7312
7313 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7314
7315         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7316         Don't #undef,  since we don't need any underlying pselect.
7317         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7318         (Depends-on): Add select.
7319         (Link): Add $(LIBSOCKET).
7320         These changes suggested by Bruno Haible.
7321
7322         pselect: document better
7323         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7324         * doc/posix-functions/pselect.texi (pselect): Document new module.
7325
7326         pthread_sigmask: new module
7327         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7328         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7329         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7330         This is done only as a macro; I don't know how well that'll
7331         work for C++.  Move <sys/types.h> include before the include_next,
7332         to avoid mishap on Solaris.
7333         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7334         * modules/signal (Makefile.am): Substitute the check's results.
7335         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7336
7337         test-pselect: new module
7338         * modules/pselect-tests, tests/test-pselect.c: New files.
7339         * tests/test-select.c, tests/test-sys_select-c++.cc:
7340         If TEST_PSELECT is defined, test pselect instead of testing select.
7341
7342         * tests/test-sys_select.c (sigset_t): Test for it, too.
7343         Suggested by Bruno Haible.
7344
7345 2011-07-05  Eric Blake  <eblake@redhat.com>
7346
7347         snprintf: guarantee %1$d, for libintl
7348         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7349         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7350         * doc/posix-functions/snprintf.texi (snprintf): Update.
7351         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7352         * tests/test-snprintf.c (main): Enhance test.
7353         * tests/test-vsnprintf.c (main): Likewise.
7354
7355 2011-07-05  Jim Meyering  <meyering@redhat.com>
7356
7357         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7358         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7359         per Bruno's request, to accommodate this idiom (no space after "#")
7360         even when the function is inside an #if block:
7361         char *
7362         gets (char *s)
7363         #undef gets
7364         {
7365           ...
7366         }
7367
7368 2011-07-04  Jim Meyering  <meyering@redhat.com>
7369
7370         maint: indent with spaces, not TABs, and add a rule to check this
7371         * tests/test-userspec.c: Indent with spaces, not TABs.
7372         * tests/test-argp.c: Likewise.
7373         * tests/test-c-stack2.sh: Likewise.
7374         * tests/test-parse-duration.sh: Likewise
7375         * m4/strtod.m4: Likewise.
7376         * m4/alloca.m4: Likewise.
7377         * m4/pselect.m4: Likewise.
7378         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7379
7380 2011-07-03  Jim Meyering  <meyering@redhat.com>
7381
7382         maint.mk: correct omissions in prohibit_argmatch_without_use check
7383         This rule would mistakenly report that argmatch.h is included without
7384         use even when both the argmatch and invalid_arg macro were used.
7385         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7386         of argmatch and invalid_arg.
7387
7388 2011-07-03  Bruno Haible  <bruno@clisp.org>
7389
7390         Comments about EINTR.
7391         * lib/safe-read.h: Explain the purpose of this module.
7392         * lib/safe-write.h: Likewise.
7393         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7394         module.
7395         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7396         module.
7397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7398
7399 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7400
7401         xnanosleep: Rewrite to use new dtotimespec module.
7402         It has the conversion code that used to be in xnanosleep.
7403         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7404         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7405         (TIME_T_MAX): Remove.
7406         (xnanosleep): Rewrite in terms of dtotimespec.
7407         * modules/xnanosleep (Depends-on): Add dtotimespec.
7408         Remove intprops, stdbool.
7409
7410         timespec-add, timespec-sub: new modules
7411         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7412         * lib/timespec-add.c, lib/timespec-sub.c:
7413         * modules/timespec-add, modules/timespec-sub: New files.
7414
7415         dtotimespec: new module
7416         * lib/timespec.h (dtotimespec): New decl.
7417         * lib/dtotimespec.c, modules/dtotimespec: New files.
7418
7419         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7420
7421         pselect: new module
7422         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7423         (pselect): New decls.
7424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7425         since the standard pselect decl uses 'restrict'.
7426         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7427         HAVE_PSELECT, REPLACE_PSELECT.
7428         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7429         HAVE_PSELECT, REPLACE_PSELECT.
7430         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7431
7432         sys_select: don't depend on sys_socket
7433         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7435         This fix works on GNU and GNU-like platforms, but has not been tested
7436         on native Windows.
7437         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7439         gl_HEADER_SYS_SOCKET.
7440         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7441         gl_PREREQ_SYS_H_WINSOCK2.
7442
7443 2011-06-29  Eric Blake  <eblake@redhat.com>
7444
7445         pipe2: fix C89 compile problem
7446         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7447         Reported by Bruno Haible.
7448
7449         pipe, pipe2: don't corrupt fd on error
7450         * lib/pipe.c (pipe): Leave fd unchanged on error.
7451         * lib/pipe2.c (pipe2): Likewise.
7452         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7453         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7454
7455 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7456
7457         mmap-anon: do not use regular expressions inadvertently
7458         * m4/mmap-anon.m4: Remove trailing period from strings sought
7459         in the output.
7460
7461 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         nanosleep: fix integer overflow problem
7464         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7465         arithmetic wraps around on overflow.
7466
7467         nanosleep: simplify carrying
7468         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7469         first call to the underyling nanosleep, not for the last one.
7470         This doesn't fix any bugs, but it simplifies the computation of
7471         the remaining delay.  Found while auditing integer overflow issues.
7472
7473         dup2: remove test for existence of fcntl
7474         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7475         "#if HAVE_FCNTL", in the configure-time test program.
7476         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7477         and therefore speeds up "configure" a bit.  Found while
7478         adding the dup2 module to Emacs.
7479
7480 2011-06-24  Eric Blake  <eblake@redhat.com>
7481
7482         maint.mk: enhance useless header checks
7483         * top/maint.mk (_sc_header_without_use): Check both include
7484         styles.
7485         (sc_prohibit_assert_without_use)
7486         (sc_prohibit_close_stream_without_use)
7487         (sc_prohibit_getopt_without_use)
7488         (sc_prohibit_quotearg_without_use)
7489         (sc_prohibit_quote_without_use)
7490         (sc_prohibit_long_options_without_use)
7491         (sc_prohibit_inttostr_without_use)
7492         (sc_prohibit_ignore_value_without_use)
7493         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7494         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7495         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7496         (sc_prohibit_hash_pjw_without_use)
7497         (sc_prohibit_safe_read_without_use)
7498         (sc_prohibit_argmatch_without_use)
7499         (sc_prohibit_canonicalize_without_use)
7500         (sc_prohibit_root_dev_ino_without_use)
7501         (sc_prohibit_openat_without_use)
7502         (sc_prohibit_c_ctype_without_use)
7503         (sc_prohibit_signal_without_use)
7504         (sc_prohibit_stdio--_without_use)
7505         (sc_prohibit_stdio-safer_without_use)
7506         (sc_prohibit_strings_without_use)
7507         (sc_prohibit_intprops_without_use)
7508         (sc_prohibit_stddef_without_use)
7509         (sc_prohibit_xfreopen_without_use): Update clients.
7510
7511 2011-06-24  Jim Meyering  <meyering@redhat.com>
7512
7513         syntax-check: keep one maint.mk rule in sync with its header
7514         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7515         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7516         I prefer to avoid temporary files here, so use <(...), but that
7517         is not supported by /bin/sh, so...
7518         (SHELL): Define to /bin/bash.
7519
7520 2011-06-24  Eric Blake  <eblake@redhat.com>
7521
7522         maint.mk: update sc_prohibit_intprops_without_use
7523         * top/maint.mk (_intprops_names): Match recent changes.
7524
7525 2011-06-24  Bruno Haible  <bruno@clisp.org>
7526
7527         strerror-override: No-op tweak.
7528         * lib/strerror-override.h (strerror_override): Reorder conditions,
7529         for consistency with lib/strerror-override.c.
7530
7531 2011-06-23  Eric Blake  <eblake@redhat.com>
7532
7533         maint.mk: test further PATH_MAX issues
7534         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7535         (sc_prohibit_path_max_allocation): ...and also test alloca.
7536         Suggested by Jim Meyering.
7537
7538 2011-06-22  Eric Blake  <eblake@redhat.com>
7539
7540         maint.mk: add syntax-check to avoid char[PATH_MAX]
7541         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7542
7543         stat: be robust to PATH_MAX definition
7544         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7545         * modules/stat (Depends-on): Add verify.
7546
7547         link: work around IRIX bug
7548         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7549         * lib/link.c (rpl_link): Work around it.
7550         * tests/test-link.h (test_link): Enhance test.
7551         * doc/posix-functions/link.texi (link): Document the bug.
7552
7553         getopt: silence clang warning
7554         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7555         dereference.
7556         Reported by Gustavo Martin Domato.
7557
7558 2011-06-22  Jim Meyering  <meyering@redhat.com>
7559
7560         bootstrap: do not insert a blank line into each .gitignore file
7561         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7562
7563 2011-06-21  Eric Blake  <eblake@redhat.com>
7564
7565         perror: test for output mismatch
7566         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7567         perror on IRIX.
7568
7569         strerror_r: fix OpenBSD behavior on out-of-range
7570         * lib/strerror_r.c (strerror_r): Always use maximal string.
7571         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7572
7573         strerror_r: fix OpenBSD behavior on 0
7574         * lib/strerror-override.c (strerror_override): Also override 0
7575         when needed.
7576         * lib/strerror-override.h (strerror_override): Likewise.
7577         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7578         earlier.
7579         * lib/strerror_r.c (strerror_r): Likewise.
7580         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7581         behavior...
7582         (gl_FUNC_STRERROR_0): ...into new macro.
7583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7584         is overridden.
7585         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7586         * modules/strerror-override (Files): Add strerror.m4.
7587         (configure.ac): Also provide override for 0 when needed.
7588         * doc/posix-functions/strerror.texi (strerror): Document this.
7589         * doc/posix-functions/perror.texi (perror): Likewise.
7590
7591         perror: adjust array size
7592         * modules/perror (Depends-on): Add strerror-override.
7593         * lib/perror.c (perror): Use it to avoid magic number.
7594
7595         strerror-override: reduce size
7596         * lib/strerror-override.c (strerror_override): Use fewer lines.
7597
7598 2011-06-20  Bruno Haible  <bruno@clisp.org>
7599
7600         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7601         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7602
7603 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7604
7605         alloca: port to compilers that can optimize like GCC 4.6.0
7606         * lib/alloca.c (find_stack_direction): New signature, taken from
7607         Autoconf git.  This works with GCC 4.6.0.  This code should never
7608         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7609         be used with other compilers that optimize as well as GCC 4.6.0 does.
7610         (alloca): Adjust to new signature.
7611         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7612         New macro, which patches Autoconf in a similar way.
7613
7614         c-stack: stop worrying about stack direction
7615         * lib/c-stack.c (find_stack_direction): Remove.
7616         (segv_handler): Don't worry about stack direction growth, as it's
7617         too much of a pain to configure this correctly, given how compilers
7618         are optimizing-away our stack-growth detection code.  Instead, assume
7619         that any access to just before or just after the stack is OK.
7620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7621         Don't require AC_FUNC_ALLOCA; no longer needed.
7622
7623 2011-06-20  Eric Blake  <eblake@redhat.com>
7624
7625         test-stat: don't allocate PATH_MAX bytes
7626         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7627         PATH_MAX-sized buffer.
7628         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7629         * modules/stat-tests (Depends-on): Likewise.
7630         * tests/test-fstatat.c (includes): Drop pathmax.h.
7631         * tests/test-stat.c (includes): Likewise.
7632         Reported by Bruno Haible.
7633
7634 2011-06-20  Bruno Haible  <bruno@clisp.org>
7635
7636         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7637         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7638         * lib/float.c: New file.
7639         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7640         REPLACE_FLOAT_LDBL.
7641         * modules/float (Files): Add lib/float.c.
7642         (configure.ac): Invoke AC_LIBOBJ.
7643         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7644
7645 2011-06-20  Bruno Haible  <bruno@clisp.org>
7646
7647         Tests for module 'float'.
7648         * modules/float-tests: New file.
7649         * tests/test-float.c: New file.
7650
7651 2011-06-19  Bruno Haible  <bruno@clisp.org>
7652
7653         isinf: Coding style.
7654         * lib/isinf.c: Use GNU coding style.
7655
7656 2011-06-19  Bruno Haible  <bruno@clisp.org>
7657
7658         linkat test: Avoid test failure on AIX 7.1.
7659         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7660         * tests/test-link.h (test_link): Likewise.
7661
7662 2011-06-19  Bruno Haible  <bruno@clisp.org>
7663
7664         pread test: Avoid test failure on OpenBSD 4.9.
7665         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7666
7667 2011-06-19  Bruno Haible  <bruno@clisp.org>
7668
7669         sprintf-posix: Fix test failure on AIX 7.1.
7670         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7671         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7672         on AIX.
7673         * doc/posix-functions/fprintf.texi: Likewise.
7674         * doc/posix-functions/printf.texi: Likewise.
7675         * doc/posix-functions/snprintf.texi: Likewise.
7676         * doc/posix-functions/sprintf.texi: Likewise.
7677         * doc/posix-functions/vdprintf.texi: Likewise.
7678         * doc/posix-functions/vfprintf.texi: Likewise.
7679         * doc/posix-functions/vprintf.texi: Likewise.
7680         * doc/posix-functions/vsnprintf.texi: Likewise.
7681         * doc/posix-functions/vsprintf.texi: Likewise.
7682
7683 2011-06-19  Bruno Haible  <bruno@clisp.org>
7684
7685         roundl-ieee: Fix test failure on AIX 7.1.
7686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7687         * doc/posix-functions/roundl.texi: Mention problem with negative
7688         arguments.
7689
7690 2011-06-19  Bruno Haible  <bruno@clisp.org>
7691
7692         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7693         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7694         * doc/posix-functions/round.texi: Mention problem with negative
7695         arguments.
7696         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7697
7698 2011-06-19  Bruno Haible  <bruno@clisp.org>
7699
7700         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7702         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7703         * doc/posix-functions/roundf.texi: Mention problem with negative
7704         arguments.
7705         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7706
7707 2011-06-19  Bruno Haible  <bruno@clisp.org>
7708
7709         ceilf-ieee: Work around bug on MacOS X 10.5.
7710         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7711
7712         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7713         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7714         IEEE compliant, avoid compiler optimizations.
7715         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7716         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7717         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7718         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7719         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7720         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7721         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7723         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7724         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7725
7726 2011-06-19  Bruno Haible  <bruno@clisp.org>
7727
7728         ceilf-ieee: Work around bug on AIX 7.1.
7729         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7730         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7731
7732 2011-06-19  Bruno Haible  <bruno@clisp.org>
7733
7734         ceil-ieee: Work around bug on AIX 7.1.
7735         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7736         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7737
7738 2011-06-18  Bruno Haible  <bruno@clisp.org>
7739
7740         fsync test: Avoid test failure on MacOS X and AIX.
7741         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7742         EINVAL.
7743
7744 2011-06-18  Bruno Haible  <bruno@clisp.org>
7745
7746         openat, fdopendir tests: Fix link errors.
7747         * modules/openat-tests (Depends-on): Add progname.
7748         * modules/fdopendir-tests (Depends-on): Likewise.
7749         * tests/test-fchownat.c: Include progname.h.
7750         (main): Call set_program_name.
7751         * tests/test-fstatat.c: Include progname.h.
7752         (main): Call set_program_name.
7753         * tests/test-mkdirat.c: Include progname.h.
7754         (main): Call set_program_name.
7755         * tests/test-openat.c: Include progname.h.
7756         (main): Call set_program_name.
7757         * tests/test-unlinkat.c: Include progname.h.
7758         (main): Call set_program_name.
7759         * tests/test-fdopendir.c: Include progname.h.
7760         (main): Call set_program_name.
7761
7762 2011-06-18  Bruno Haible  <bruno@clisp.org>
7763
7764         Doc update.
7765         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7766         HP-UX.
7767         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7768
7769 2011-06-18  Bruno Haible  <bruno@clisp.org>
7770
7771         getcwd tests: Avoid compilation error on HP-UX 11.31.
7772         * modules/getcwd-tests (Depends-on): Add pathmax.
7773         * tests/test-getcwd.c: Include pathmax.h.
7774
7775 2011-06-18  Bruno Haible  <bruno@clisp.org>
7776
7777         isfinite, isinf: Fix link error on AIX 6 and 7.
7778         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7779         needed, also test the macro with a 'float' argument.
7780         * m4/isinf.m4 (gl_ISINF): Likewise.
7781
7782 2011-06-18  Bruno Haible  <bruno@clisp.org>
7783
7784         getloadavg: Don't clobber LIBS. Regression from previous commit.
7785         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7786         AC_CHECK_LIB from here...
7787         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7788         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7789         gl_func_getloadavg_done.
7790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7791
7792 2011-06-18  Bruno Haible  <bruno@clisp.org>
7793
7794         clean-temp: Improve documentation.
7795         * lib/clean-temp.h: Explain better how to use this module.
7796         Reported by John Darrington <john@darrington.wattle.id.au>.
7797
7798 2011-06-17  Bruno Haible  <bruno@clisp.org>
7799
7800         pread, pwrite: Avoid cc warning on AIX.
7801         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7802         (pwrite): Likewise.
7803
7804 2011-06-17  Bruno Haible  <bruno@clisp.org>
7805
7806         spawn-pipe tests: Fix link error.
7807         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7809
7810 2011-06-17  Bruno Haible  <bruno@clisp.org>
7811
7812         Tests: Remove unnecessary dependency.
7813         * modules/canonicalize-tests (Depends-on): Remove progname.
7814         * modules/chown-tests (Depends-on): Likewise.
7815         * modules/dirname-tests (Depends-on): Likewise.
7816         * modules/fdopendir-tests (Depends-on): Likewise.
7817         * modules/fdutimensat-tests (Depends-on): Likewise.
7818         * modules/hash-tests (Depends-on): Likewise.
7819         * modules/lchown-tests (Depends-on): Likewise.
7820         * modules/linkat-tests (Depends-on): Likewise.
7821         * modules/renameat-tests (Depends-on): Likewise.
7822         * modules/spawn-pipe-tests (Depends-on): Likewise.
7823         * modules/utimensat-tests (Depends-on): Likewise.
7824
7825 2011-06-17  Bruno Haible  <bruno@clisp.org>
7826
7827         spawn-pipe tests: Fix link error.
7828         * tests/test-spawn-pipe-child.c: Undefine fflush.
7829
7830 2011-06-17  Bruno Haible  <bruno@clisp.org>
7831
7832         Fix tests link errors.
7833         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7834         * modules/chown-tests (Makefile.am): Don't link test-chown with
7835         LIBINTL.
7836         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7837         LIBINTL.
7838         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7839         LIBINTL.
7840         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7841         LIBINTL.
7842
7843 2011-06-16  Bruno Haible  <bruno@clisp.org>
7844
7845         crypto/gc-sha1: Fix recent regression.
7846         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7847         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7848
7849         crypto/gc-md5: Fix recent regression.
7850         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7851
7852         crypto/gc-md4: Fix recent regression.
7853         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7854         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7855
7856         crypto/gc-arctwo: Fix recent regression.
7857         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7858         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7859
7860         crypto/gc-rijndael: Fix recent regression.
7861         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7862         (configure.ac): Invoke AC_LIBOBJ here.
7863         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7865
7866         crypto/gc-hmac-sha1: Fix recent regression.
7867         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7868         (configure.ac): Invoke AC_LIBOBJ here.
7869         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7871
7872         crypto/gc-hmac-md5: Fix recent regression.
7873         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7874         (configure.ac): Invoke AC_LIBOBJ here.
7875         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7877
7878         crypto/gc-des: Fix recent regression.
7879         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7880         (configure.ac): Invoke AC_LIBOBJ here.
7881         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7883
7884         crypto/gc-arcfour: Fix recent regression.
7885         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7886         (configure.ac): Invoke AC_LIBOBJ here.
7887         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7889
7890 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7891
7892         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7893         After the 2011-05-21 change, this macro requires
7894         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7895         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7896
7897 2011-06-16  Bruno Haible  <bruno@clisp.org>
7898
7899         fprintftime: Move AC_LIBOBJ invocations to module description.
7900         * m4/fprintftime.m4: Remove file.
7901         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7902         (configure.ac): Remove gl_FPRINTFTIME call.
7903         (Makefile.am): Augment lib_SOURCES.
7904         Reported by Jim Meyering.
7905
7906 2011-06-16  Bruno Haible  <bruno@clisp.org>
7907
7908         tmpfile-safer: Finish 2011-05-23 commit.
7909         * m4/stdio-safer.m4: Really remove file.
7910         Reported by Jim Meyering.
7911
7912 2011-06-16  Bruno Haible  <bruno@clisp.org>
7913
7914         syntax-check: Fix typo.
7915         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7916         printf-posix.m4.
7917         Reported by Jim Meyering.
7918
7919 2011-06-13  Jim Meyering  <meyering@redhat.com>
7920
7921         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7922         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7923
7924 2011-05-23  Bruno Haible  <bruno@clisp.org>
7925
7926         yesno: Move AC_LIBOBJ invocations to module description.
7927         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7928         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7929
7930 2011-05-23  Bruno Haible  <bruno@clisp.org>
7931
7932         xstrtol: Move AC_LIBOBJ invocations to module description.
7933         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7934         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7935
7936 2011-05-23  Bruno Haible  <bruno@clisp.org>
7937
7938         xstrtold: Move AC_LIBOBJ invocations to module description.
7939         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7940         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7941
7942 2011-05-23  Bruno Haible  <bruno@clisp.org>
7943
7944         xstrtod: Move AC_LIBOBJ invocations to module description.
7945         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7946         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7947
7948 2011-05-23  Bruno Haible  <bruno@clisp.org>
7949
7950         xnanosleep: Move AC_LIBOBJ invocations to module description.
7951         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7952         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7953
7954 2011-05-23  Bruno Haible  <bruno@clisp.org>
7955
7956         xgetcwd: Move AC_LIBOBJ invocations to module description.
7957         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7958         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7959
7960 2011-05-23  Bruno Haible  <bruno@clisp.org>
7961
7962         xalloc: Move AC_LIBOBJ invocations to module description.
7963         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7964         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7965
7966 2011-05-23  Bruno Haible  <bruno@clisp.org>
7967
7968         write-any-file: Move AC_LIBOBJ invocations to module description.
7969         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7970         invocation.
7971         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7972
7973 2011-05-23  Bruno Haible  <bruno@clisp.org>
7974
7975         utimens: Move AC_LIBOBJ invocations to module description.
7976         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7977         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7978
7979 2011-05-23  Bruno Haible  <bruno@clisp.org>
7980
7981         utimecmp: Move AC_LIBOBJ invocations to module description.
7982         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7983         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7984
7985 2011-05-23  Bruno Haible  <bruno@clisp.org>
7986
7987         userspec: Move AC_LIBOBJ invocations to module description.
7988         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7989         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7990
7991 2011-05-23  Bruno Haible  <bruno@clisp.org>
7992
7993         unlinkdir: Move AC_LIBOBJ invocations to module description.
7994         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7995         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7996
7997 2011-05-23  Bruno Haible  <bruno@clisp.org>
7998
7999         unistd-safer: Move AC_LIBOBJ invocations to module description.
8000         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8001         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8002
8003 2011-05-23  Bruno Haible  <bruno@clisp.org>
8004
8005         tempname: Move AC_LIBOBJ invocations to module description.
8006         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8007         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8008
8009 2011-05-23  Bruno Haible  <bruno@clisp.org>
8010
8011         strftime: Move AC_LIBOBJ invocations to module description.
8012         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8013         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8014
8015 2011-05-23  Bruno Haible  <bruno@clisp.org>
8016
8017         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8018         * m4/stdlib-safer.m4: Remove file.
8019         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8020         (configure.ac): Remove gl_STDLIB_SAFER call.
8021         (Makefile.am): Augment lib_SOURCES.
8022
8023 2011-05-23  Bruno Haible  <bruno@clisp.org>
8024
8025         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8026         * m4/stdio-safer.m4: Remove file.
8027         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8028         (configure.ac): Remove gl_TMPFILE_SAFER call.
8029         (Makefile.am): Augment lib_SOURCES.
8030
8031 2011-05-23  Bruno Haible  <bruno@clisp.org>
8032
8033         popen-safer: Move AC_LIBOBJ invocations to module description.
8034         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8035         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8036         (configure.ac): Remove gl_POPEN_SAFER call.
8037         (Makefile.am): Augment lib_SOURCES.
8038
8039 2011-05-23  Bruno Haible  <bruno@clisp.org>
8040
8041         freopen-safer: Move AC_LIBOBJ invocations to module description.
8042         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8043         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8044         (configure.ac): Remove gl_FREOPEN_SAFER call.
8045         (Makefile.am): Augment lib_SOURCES.
8046
8047 2011-05-23  Bruno Haible  <bruno@clisp.org>
8048
8049         fopen-safer: Move AC_LIBOBJ invocations to module description.
8050         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8051         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8052         (configure.ac): Remove gl_FOPEN_SAFER call.
8053         (Makefile.am): Augment lib_SOURCES.
8054
8055 2011-05-23  Bruno Haible  <bruno@clisp.org>
8056
8057         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8058         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8059         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8060
8061 2011-05-23  Bruno Haible  <bruno@clisp.org>
8062
8063         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8064         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8065         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8066
8067 2011-05-23  Bruno Haible  <bruno@clisp.org>
8068
8069         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8070         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8071         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8072
8073 2011-05-23  Bruno Haible  <bruno@clisp.org>
8074
8075         settime: Move AC_LIBOBJ invocations to module description.
8076         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8077         * modules/settime (Makefile.am): Augment lib_SOURCES.
8078
8079 2011-05-23  Bruno Haible  <bruno@clisp.org>
8080
8081         savedir: Move AC_LIBOBJ invocations to module description.
8082         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8083         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8084
8085 2011-05-23  Bruno Haible  <bruno@clisp.org>
8086
8087         save-cwd: Move AC_LIBOBJ invocations to module description.
8088         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8089         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8090
8091 2011-05-23  Bruno Haible  <bruno@clisp.org>
8092
8093         same: Move AC_LIBOBJ invocations to module description.
8094         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8095         * modules/same (Makefile.am): Augment lib_SOURCES.
8096
8097 2011-05-23  Bruno Haible  <bruno@clisp.org>
8098
8099         safe-write: Move AC_LIBOBJ invocations to module description.
8100         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8101         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8102         instead of gl_SAFE_WRITE.
8103         (Makefile.am): Augment lib_SOURCES.
8104
8105 2011-05-23  Bruno Haible  <bruno@clisp.org>
8106
8107         safe-read: Move AC_LIBOBJ invocations to module description.
8108         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8109         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8110         of gl_SAFE_READ.
8111         (Makefile.am): Augment lib_SOURCES.
8112
8113 2011-05-23  Bruno Haible  <bruno@clisp.org>
8114
8115         safe-alloc: Move AC_LIBOBJ invocations to module description.
8116         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8117         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8118
8119 2011-05-23  Bruno Haible  <bruno@clisp.org>
8120
8121         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8122         * m4/rijndael.m4: Remove file.
8123         * modules/crypto/rijndael (Files): Remove it.
8124         (configure.ac): Remove gl_RIJNDAEL call.
8125         (Makefile.am): Augment lib_SOURCES.
8126
8127 2011-05-23  Bruno Haible  <bruno@clisp.org>
8128
8129         readtokens: Move AC_LIBOBJ invocations to module description.
8130         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8131         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8132
8133 2011-05-23  Bruno Haible  <bruno@clisp.org>
8134
8135         read-file: Move AC_LIBOBJ invocations to module description.
8136         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8137         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8138         of gl_FUNC_READ_FILE.
8139         (Makefile.am): Augment lib_SOURCES.
8140
8141 2011-05-23  Bruno Haible  <bruno@clisp.org>
8142
8143         quotearg: Move AC_LIBOBJ invocations to module description.
8144         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8145         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8146
8147 2011-05-23  Bruno Haible  <bruno@clisp.org>
8148
8149         quote: Move AC_LIBOBJ invocations to module description.
8150         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8151         * modules/quote (Makefile.am): Augment lib_SOURCES.
8152
8153 2011-05-23  Bruno Haible  <bruno@clisp.org>
8154
8155         posixver: Move AC_LIBOBJ invocations to module description.
8156         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8157         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8158
8159 2011-05-23  Bruno Haible  <bruno@clisp.org>
8160
8161         posixtm: Move AC_LIBOBJ invocations to module description.
8162         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8163         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8164
8165 2011-05-23  Bruno Haible  <bruno@clisp.org>
8166
8167         physmem: Move AC_LIBOBJ invocations to module description.
8168         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8169         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8170
8171 2011-05-23  Bruno Haible  <bruno@clisp.org>
8172
8173         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8174         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8175         invocation.
8176         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8177
8178 2011-05-23  Bruno Haible  <bruno@clisp.org>
8179
8180         mpsort: Move AC_LIBOBJ invocations to module description.
8181         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8182         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8183
8184 2011-05-23  Bruno Haible  <bruno@clisp.org>
8185
8186         modechange: Move AC_LIBOBJ invocations to module description.
8187         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8188         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8189
8190 2011-05-23  Bruno Haible  <bruno@clisp.org>
8191
8192         mkdir-p: Move AC_LIBOBJ invocations to module description.
8193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8194         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8195
8196 2011-05-23  Bruno Haible  <bruno@clisp.org>
8197
8198         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8199         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8200         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8201
8202 2011-05-23  Bruno Haible  <bruno@clisp.org>
8203
8204         mgetgroups: Move AC_LIBOBJ invocations to module description.
8205         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8206         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8207
8208 2011-05-23  Bruno Haible  <bruno@clisp.org>
8209
8210         memxor: Move AC_LIBOBJ invocations to module description.
8211         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8212         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8213
8214 2011-05-23  Bruno Haible  <bruno@clisp.org>
8215
8216         memcoll: Move AC_LIBOBJ invocations to module description.
8217         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8218         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8219
8220 2011-05-23  Bruno Haible  <bruno@clisp.org>
8221
8222         memcasecmp: Move AC_LIBOBJ invocations to module description.
8223         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8224         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8225
8226 2011-05-23  Bruno Haible  <bruno@clisp.org>
8227
8228         crypto/md5: Move AC_LIBOBJ invocations to module description.
8229         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8230         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8231
8232 2011-05-23  Bruno Haible  <bruno@clisp.org>
8233
8234         crypto/md4: Move AC_LIBOBJ invocations to module description.
8235         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8236         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8237
8238 2011-05-23  Bruno Haible  <bruno@clisp.org>
8239
8240         crypto/md2: Move AC_LIBOBJ invocations to module description.
8241         * m4/md2.m4: Remove file.
8242         * modules/crypto/md2 (Files): Remove it.
8243         (configure.ac): Remove gl_MD2 call.
8244         (Makefile.am): Augment lib_SOURCES.
8245
8246 2011-05-23  Bruno Haible  <bruno@clisp.org>
8247
8248         long-options: Move AC_LIBOBJ invocations to module description.
8249         * m4/long-options.m4: Remove file.
8250         * modules/long-options (Files): Remove it.
8251         (configure.ac): Remove gl_LONG_OPTIONS call.
8252         (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         i-ring: Move AC_LIBOBJ invocations to module description.
8257         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8258         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8259
8260 2011-05-23  Bruno Haible  <bruno@clisp.org>
8261
8262         idcache: Move AC_LIBOBJ invocations to module description.
8263         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8264         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8265
8266 2011-05-23  Bruno Haible  <bruno@clisp.org>
8267
8268         human: Move AC_LIBOBJ invocations to module description.
8269         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8270         * modules/human (Makefile.am): Augment lib_SOURCES.
8271
8272 2011-05-23  Bruno Haible  <bruno@clisp.org>
8273
8274         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8275         * m4/hmac-sha1.m4: Remove file.
8276         * modules/crypto/hmac-sha1 (Files): Remove it.
8277         (configure.ac): Remove gl_HMAC_SHA1 call.
8278         (Makefile.am): Augment lib_SOURCES.
8279
8280 2011-05-23  Bruno Haible  <bruno@clisp.org>
8281
8282         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8283         * m4/hmac-md5.m4: Remove file.
8284         * modules/crypto/hmac-md5 (Files): Remove it.
8285         (configure.ac): Remove gl_HMAC_MD5 call.
8286         (Makefile.am): Augment lib_SOURCES.
8287
8288 2011-05-23  Bruno Haible  <bruno@clisp.org>
8289
8290         hash: Move AC_LIBOBJ invocations to module description.
8291         * m4/hash.m4: Remove file.
8292         * modules/hash (Files): Remove it.
8293         (configure.ac): Remove gl_HASH call.
8294         (Makefile.am): Augment lib_SOURCES.
8295
8296 2011-05-23  Bruno Haible  <bruno@clisp.org>
8297
8298         hard-locale: Move AC_LIBOBJ invocations to module description.
8299         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8300         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8301
8302 2011-05-23  Bruno Haible  <bruno@clisp.org>
8303
8304         getugroups: Move AC_LIBOBJ invocations to module description.
8305         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8306         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8307
8308 2011-05-23  Bruno Haible  <bruno@clisp.org>
8309
8310         gettime: Move AC_LIBOBJ invocations to module description.
8311         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8312         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8313
8314 2011-05-23  Bruno Haible  <bruno@clisp.org>
8315
8316         getndelim2: Move AC_LIBOBJ invocations to module description.
8317         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8318         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8319
8320 2011-05-23  Bruno Haible  <bruno@clisp.org>
8321
8322         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8323         * m4/gc-pbkdf2-sha1.m4: Remove file.
8324         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8325         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8326         (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         fts: Move AC_LIBOBJ invocations to module description.
8331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8332         * modules/fts (configure.ac): ... to here.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         file-type: Move AC_LIBOBJ invocations to module description.
8337         * m4/file-type.m4: Remove file.
8338         * modules/file-type (Files): Remove it.
8339         (configure.ac): Remove gl_FILE_TYPE call.
8340         (Makefile.am): Augment lib_SOURCES.
8341
8342 2011-05-23  Bruno Haible  <bruno@clisp.org>
8343
8344         filenamecat*: Respect rules for use of AC_LIBOBJ.
8345         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8346         Remove AC_LIBOBJ invocation.
8347         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8348         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8349
8350 2011-05-23  Bruno Haible  <bruno@clisp.org>
8351
8352         filemode: Move AC_LIBOBJ invocations to module description.
8353         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8354         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8355
8356 2011-05-23  Bruno Haible  <bruno@clisp.org>
8357
8358         openat-safer: Move AC_LIBOBJ invocations to module description.
8359         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8360         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8361
8362 2011-05-23  Bruno Haible  <bruno@clisp.org>
8363
8364         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8366         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8367
8368 2011-05-23  Bruno Haible  <bruno@clisp.org>
8369
8370         exclude: Move AC_LIBOBJ invocations to module description.
8371         * m4/exclude.m4: Remove file.
8372         * modules/exclude (Files): Remove it.
8373         (configure.ac): Remove gl_EXCLUDE call.
8374         (Makefile.am): Augment lib_SOURCES.
8375
8376 2011-05-23  Bruno Haible  <bruno@clisp.org>
8377
8378         dirname*: Respect rules for use of AC_LIBOBJ.
8379         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8380         invocations.
8381         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8382         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8383
8384 2011-05-23  Bruno Haible  <bruno@clisp.org>
8385
8386         dirent-safer: Move AC_LIBOBJ invocations to module description.
8387         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8388         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8389
8390 2011-05-23  Bruno Haible  <bruno@clisp.org>
8391
8392         crypto/des: Move AC_LIBOBJ invocations to module description.
8393         * m4/des.m4: Remove file.
8394         * modules/crypto/des (Files): Remove it.
8395         (configure.ac): Remove gl_DES call.
8396         (Makefile.am): Augment lib_SOURCES.
8397
8398 2011-05-23  Bruno Haible  <bruno@clisp.org>
8399
8400         cycle-check: Move AC_LIBOBJ invocations to module description.
8401         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8402         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8403
8404 2011-05-23  Bruno Haible  <bruno@clisp.org>
8405
8406         c-strtold: Move AC_LIBOBJ invocations to module description.
8407         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8408         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8409
8410 2011-05-23  Bruno Haible  <bruno@clisp.org>
8411
8412         c-strtod: Move AC_LIBOBJ invocations to module description.
8413         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8414         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8415
8416 2011-05-23  Bruno Haible  <bruno@clisp.org>
8417
8418         crc: Move AC_LIBOBJ invocations to module description.
8419         * m4/crc.m4: Remove file.
8420         * modules/crc (Files): Remove it.
8421         (configure.ac): Remove gl_CRC call.
8422         (Makefile.am): Augment lib_SOURCES.
8423
8424 2011-05-23  Bruno Haible  <bruno@clisp.org>
8425
8426         close-stream: Move AC_LIBOBJ invocations to module description.
8427         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8428         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8429
8430 2011-05-23  Bruno Haible  <bruno@clisp.org>
8431
8432         closeout: Move AC_LIBOBJ invocations to module description.
8433         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8434         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8435
8436 2011-05-23  Bruno Haible  <bruno@clisp.org>
8437
8438         closein: Move AC_LIBOBJ invocations to module description.
8439         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8440         * modules/closein (Makefile.am): Augment lib_SOURCES.
8441
8442 2011-05-23  Bruno Haible  <bruno@clisp.org>
8443
8444         cloexec: Move AC_LIBOBJ invocations to module description.
8445         * m4/cloexec.m4: Remove file.
8446         * modules/cloexec (Files): Remove it.
8447         (configure.ac): Remove gl_CLOEXEC call.
8448         (Makefile.am): Augment lib_SOURCES.
8449
8450 2011-05-23  Bruno Haible  <bruno@clisp.org>
8451
8452         check-version: Move AC_LIBOBJ invocations to module description.
8453         * m4/check-version.m4: Remove file.
8454         * modules/check-version (Files): Remove it.
8455         (configure.ac): Remove gl_CHECK_VERSION call.
8456         (Makefile.am): Augment lib_SOURCES.
8457
8458 2011-05-23  Bruno Haible  <bruno@clisp.org>
8459
8460         chdir-safer: Move AC_LIBOBJ invocations to module description.
8461         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8462         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8463
8464 2011-05-23  Bruno Haible  <bruno@clisp.org>
8465
8466         canonicalize: Move AC_LIBOBJ invocations to module description.
8467         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8468         AC_LIBOBJ invocation.
8469         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8470
8471 2011-05-23  Bruno Haible  <bruno@clisp.org>
8472
8473         canon-host: Move AC_LIBOBJ invocations to module description.
8474         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8475         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8476         instead of gl_CANON_HOST.
8477         (Makefile.am): Augment lib_SOURCES.
8478
8479 2011-05-23  Bruno Haible  <bruno@clisp.org>
8480
8481         backupfile: Move AC_LIBOBJ invocations to module description.
8482         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8483         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8484
8485 2011-05-23  Bruno Haible  <bruno@clisp.org>
8486
8487         argmatch: Move AC_LIBOBJ invocations to module description.
8488         * m4/argmatch.m4: Remove file.
8489         * modules/argmatch (Files): Remove it.
8490         (configure.ac): Remove gl_ARGMATCH call.
8491         (Makefile.am): Augment lib_SOURCES.
8492
8493 2011-05-23  Bruno Haible  <bruno@clisp.org>
8494
8495         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8496         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8497         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8498
8499 2011-05-23  Bruno Haible  <bruno@clisp.org>
8500
8501         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8502         * m4/arcfour.m4: Remove file.
8503         * modules/crypto/arcfour (Files): Remove it.
8504         (configure.ac): Remove gl_ARCFOUR call.
8505         (Makefile.am): Augment lib_SOURCES.
8506
8507 2011-05-22  Bruno Haible  <bruno@clisp.org>
8508
8509         write: Move AC_LIBOBJ invocations to module description.
8510         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8511         * modules/write (configure.ac): ... to here.
8512
8513 2011-05-22  Bruno Haible  <bruno@clisp.org>
8514
8515         wmemset: Move AC_LIBOBJ invocations to module description.
8516         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8517         here...
8518         * modules/wmemset (configure.ac): ... to here.
8519
8520 2011-05-22  Bruno Haible  <bruno@clisp.org>
8521
8522         wmemmove: Move AC_LIBOBJ invocations to module description.
8523         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8524         here...
8525         * modules/wmemmove (configure.ac): ... to here.
8526
8527 2011-05-22  Bruno Haible  <bruno@clisp.org>
8528
8529         wmemcpy: Move AC_LIBOBJ invocations to module description.
8530         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8531         here...
8532         * modules/wmemcpy (configure.ac): ... to here.
8533
8534 2011-05-22  Bruno Haible  <bruno@clisp.org>
8535
8536         wmemcmp: Move AC_LIBOBJ invocations to module description.
8537         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8538         here...
8539         * modules/wmemcmp (configure.ac): ... to here.
8540
8541 2011-05-22  Bruno Haible  <bruno@clisp.org>
8542
8543         wmemchr: Move AC_LIBOBJ invocations to module description.
8544         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8545         here...
8546         * modules/wmemchr (configure.ac): ... to here.
8547
8548 2011-05-22  Bruno Haible  <bruno@clisp.org>
8549
8550         wcswidth: Move AC_LIBOBJ invocations to module description.
8551         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8552         here...
8553         * modules/wcswidth (configure.ac): ... to here.
8554
8555 2011-05-22  Bruno Haible  <bruno@clisp.org>
8556
8557         wcwidth: Respect rules for use of AC_LIBOBJ.
8558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8559         invocation from here...
8560         * modules/wcwidth (configure.ac): ... to here.
8561         (Depends-on): Update conditions.
8562
8563 2011-05-22  Bruno Haible  <bruno@clisp.org>
8564
8565         wctype: Move AC_LIBOBJ invocations to module description.
8566         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8567         invocation from here...
8568         * modules/wctype (configure.ac): ... to here.
8569         (Depends-on): Update conditions.
8570
8571 2011-05-22  Bruno Haible  <bruno@clisp.org>
8572
8573         wctrans: Move AC_LIBOBJ invocations to module description.
8574         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8575         invocation from here...
8576         * modules/wctrans (configure.ac): ... to here.
8577
8578 2011-05-22  Bruno Haible  <bruno@clisp.org>
8579
8580         wctomb: Move AC_LIBOBJ invocations to module description.
8581         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8582         invocations from here...
8583         * modules/wctomb (configure.ac): ... to here.
8584
8585 2011-05-22  Bruno Haible  <bruno@clisp.org>
8586
8587         wctob: Move AC_LIBOBJ invocations to module description.
8588         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8589         gl_PREREQ_WCTOB invocations from here...
8590         * modules/wctob (configure.ac): ... to here.
8591         (Depends-on): Update conditions.
8592
8593 2011-05-22  Bruno Haible  <bruno@clisp.org>
8594
8595         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8596         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8597         here...
8598         * modules/wcsxfrm (configure.ac): ... to here.
8599
8600 2011-05-22  Bruno Haible  <bruno@clisp.org>
8601
8602         wcstok: Move AC_LIBOBJ invocations to module description.
8603         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8604         * modules/wcstok (configure.ac): ... to here.
8605
8606 2011-05-22  Bruno Haible  <bruno@clisp.org>
8607
8608         wcsstr: Move AC_LIBOBJ invocations to module description.
8609         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8610         * modules/wcsstr (configure.ac): ... to here.
8611
8612 2011-05-22  Bruno Haible  <bruno@clisp.org>
8613
8614         wcsspn: Move AC_LIBOBJ invocations to module description.
8615         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8616         * modules/wcsspn (configure.ac): ... to here.
8617
8618 2011-05-22  Bruno Haible  <bruno@clisp.org>
8619
8620         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8621         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8622         gl_PREREQ_WCSRTOMBS invocations from here...
8623         * modules/wcsrtombs (configure.ac): ... to here.
8624
8625 2011-05-22  Bruno Haible  <bruno@clisp.org>
8626
8627         wcsrchr: Move AC_LIBOBJ invocations to module description.
8628         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8629         here...
8630         * modules/wcsrchr (configure.ac): ... to here.
8631
8632 2011-05-22  Bruno Haible  <bruno@clisp.org>
8633
8634         wcspbrk: Move AC_LIBOBJ invocations to module description.
8635         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8636         here...
8637         * modules/wcspbrk (configure.ac): ... to here.
8638
8639 2011-05-22  Bruno Haible  <bruno@clisp.org>
8640
8641         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8642         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8643         gl_PREREQ_WCSNRTOMBS invocations from here...
8644         * modules/wcsnrtombs (configure.ac): ... to here.
8645
8646 2011-05-22  Bruno Haible  <bruno@clisp.org>
8647
8648         wcsnlen: Move AC_LIBOBJ invocations to module description.
8649         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8650         here...
8651         * modules/wcsnlen (configure.ac): ... to here.
8652
8653 2011-05-22  Bruno Haible  <bruno@clisp.org>
8654
8655         wcsncpy: Move AC_LIBOBJ invocations to module description.
8656         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8657         here...
8658         * modules/wcsncpy (configure.ac): ... to here.
8659
8660 2011-05-22  Bruno Haible  <bruno@clisp.org>
8661
8662         wcsncmp: Move AC_LIBOBJ invocations to module description.
8663         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8664         here...
8665         * modules/wcsncmp (configure.ac): ... to here.
8666
8667 2011-05-22  Bruno Haible  <bruno@clisp.org>
8668
8669         wcsncat: Move AC_LIBOBJ invocations to module description.
8670         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8671         here...
8672         * modules/wcsncat (configure.ac): ... to here.
8673
8674 2011-05-22  Bruno Haible  <bruno@clisp.org>
8675
8676         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8677         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8678         from here...
8679         * modules/wcsncasecmp (configure.ac): ... to here.
8680
8681 2011-05-22  Bruno Haible  <bruno@clisp.org>
8682
8683         wcslen: Move AC_LIBOBJ invocations to module description.
8684         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8685         * modules/wcslen (configure.ac): ... to here.
8686
8687 2011-05-22  Bruno Haible  <bruno@clisp.org>
8688
8689         wcsdup: Move AC_LIBOBJ invocations to module description.
8690         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8691         * modules/wcsdup (configure.ac): ... to here.
8692
8693 2011-05-22  Bruno Haible  <bruno@clisp.org>
8694
8695         wcscspn: Move AC_LIBOBJ invocations to module description.
8696         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8697         here...
8698         * modules/wcscspn (configure.ac): ... to here.
8699
8700 2011-05-22  Bruno Haible  <bruno@clisp.org>
8701
8702         wcscpy: Move AC_LIBOBJ invocations to module description.
8703         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8704         * modules/wcscpy (configure.ac): ... to here.
8705
8706 2011-05-22  Bruno Haible  <bruno@clisp.org>
8707
8708         wcscoll: Move AC_LIBOBJ invocations to module description.
8709         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8710         here...
8711         * modules/wcscoll (configure.ac): ... to here.
8712
8713 2011-05-22  Bruno Haible  <bruno@clisp.org>
8714
8715         wcscmp: Move AC_LIBOBJ invocations to module description.
8716         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8717         * modules/wcscmp (configure.ac): ... to here.
8718
8719 2011-05-22  Bruno Haible  <bruno@clisp.org>
8720
8721         wcschr: Move AC_LIBOBJ invocations to module description.
8722         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8723         * modules/wcschr (configure.ac): ... to here.
8724
8725 2011-05-22  Bruno Haible  <bruno@clisp.org>
8726
8727         wcscat: Move AC_LIBOBJ invocations to module description.
8728         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8729         * modules/wcscat (configure.ac): ... to here.
8730
8731 2011-05-22  Bruno Haible  <bruno@clisp.org>
8732
8733         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8734         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8735         here...
8736         * modules/wcscasecmp (configure.ac): ... to here.
8737
8738 2011-05-22  Bruno Haible  <bruno@clisp.org>
8739
8740         wcrtomb: Move AC_LIBOBJ invocations to module description.
8741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8742         invocations from here...
8743         * modules/wcrtomb (configure.ac): ... to here.
8744
8745 2011-05-22  Bruno Haible  <bruno@clisp.org>
8746
8747         wcpncpy: Move AC_LIBOBJ invocations to module description.
8748         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8749         here...
8750         * modules/wcpncpy (configure.ac): ... to here.
8751
8752 2011-05-22  Bruno Haible  <bruno@clisp.org>
8753
8754         wcpcpy: Move AC_LIBOBJ invocations to module description.
8755         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8756         * modules/wcpcpy (configure.ac): ... to here.
8757
8758 2011-05-22  Bruno Haible  <bruno@clisp.org>
8759
8760         waitpid: Move AC_LIBOBJ invocations to module description.
8761         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8762         invocation from here...
8763         * modules/waitpid (configure.ac): ... to here.
8764
8765 2011-05-22  Bruno Haible  <bruno@clisp.org>
8766
8767         utimensat: Move AC_LIBOBJ invocations to module description.
8768         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8769         here...
8770         * modules/utimensat (configure.ac): ... to here.
8771
8772 2011-05-22  Bruno Haible  <bruno@clisp.org>
8773
8774         usleep: Move AC_LIBOBJ invocations to module description.
8775         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8776         here...
8777         * modules/usleep (configure.ac): ... to here.
8778
8779 2011-05-22  Bruno Haible  <bruno@clisp.org>
8780
8781         unlockpt: Move AC_LIBOBJ invocations to module description.
8782         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8783         gl_PREREQ_UNLOCKPT invocations from here...
8784         * modules/unlockpt (configure.ac): ... to here.
8785
8786 2011-05-22  Bruno Haible  <bruno@clisp.org>
8787
8788         unlink: Respect rules for use of AC_LIBOBJ.
8789         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8790         * modules/unlink (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         uname: Move AC_LIBOBJ invocations to module description.
8795         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8797         here...
8798         * modules/uname (configure.ac): ... to here.
8799
8800 2011-05-22  Bruno Haible  <bruno@clisp.org>
8801
8802         ttyname_r: Move AC_LIBOBJ invocations to module description.
8803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8804         gl_PREREQ_TTYNAME_R invocations from here...
8805         * modules/ttyname_r (configure.ac): ... to here.
8806
8807 2011-05-22  Bruno Haible  <bruno@clisp.org>
8808
8809         tsearch: Move AC_LIBOBJ invocations to module description.
8810         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8811         invocations from here...
8812         * modules/tsearch (configure.ac): ... to here.
8813
8814 2011-05-22  Bruno Haible  <bruno@clisp.org>
8815
8816         towctrans: Move AC_LIBOBJ invocations to module description.
8817         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8818         AC_LIBOBJ invocation from here...
8819         * modules/towctrans (configure.ac): ... to here.
8820
8821 2011-05-22  Bruno Haible  <bruno@clisp.org>
8822
8823         tmpfile: Move AC_LIBOBJ invocations to module description.
8824         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8825         invocations from here...
8826         * modules/tmpfile (configure.ac): ... to here.
8827
8828 2011-05-22  Bruno Haible  <bruno@clisp.org>
8829
8830         times: Move AC_LIBOBJ invocations to module description.
8831         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8832         * modules/times (configure.ac): ... to here.
8833
8834 2011-05-22  Bruno Haible  <bruno@clisp.org>
8835
8836         time_r: Move AC_LIBOBJ invocations to module description.
8837         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8838         invocations from here...
8839         * modules/time_r (configure.ac): ... to here.
8840
8841 2011-05-22  Bruno Haible  <bruno@clisp.org>
8842
8843         timegm: Move AC_LIBOBJ invocations to module description.
8844         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8845         invocations from here...
8846         * modules/timegm (configure.ac): ... to here.
8847
8848 2011-05-22  Bruno Haible  <bruno@clisp.org>
8849
8850         tcgetsid: Move AC_LIBOBJ invocations to module description.
8851         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8852         and gl_PREREQ_TCGETSID invocations from here...
8853         * modules/tcgetsid (configure.ac): ... to here.
8854         (Depends-on): Update conditions.
8855
8856 2011-05-22  Bruno Haible  <bruno@clisp.org>
8857
8858         symlinkat: Move AC_LIBOBJ invocations to module description.
8859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8860         here...
8861         * modules/symlinkat (configure.ac): ... to here.
8862
8863 2011-05-22  Bruno Haible  <bruno@clisp.org>
8864
8865         symlink: Move AC_LIBOBJ invocations to module description.
8866         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8867         here...
8868         * modules/symlink (configure.ac): ... to here.
8869
8870 2011-05-22  Bruno Haible  <bruno@clisp.org>
8871
8872         strverscmp: Move AC_LIBOBJ invocations to module description.
8873         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8875         from here...
8876         * modules/strverscmp (configure.ac): ... to here.
8877
8878 2011-05-22  Bruno Haible  <bruno@clisp.org>
8879
8880         strtok_r: Move AC_LIBOBJ invocations to module description.
8881         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8882         and gl_PREREQ_STRTOK_R invocations from here...
8883         * modules/strtok_r (configure.ac): ... to here.
8884         (Depends-on): Update conditions.
8885
8886 2011-05-22  Bruno Haible  <bruno@clisp.org>
8887
8888         strtoumax: Move AC_LIBOBJ invocations to module description.
8889         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8891         from here...
8892         * modules/strtoumax (configure.ac): ... to here.
8893
8894 2011-05-22  Bruno Haible  <bruno@clisp.org>
8895
8896         strtoimax: Move AC_LIBOBJ invocations to module description.
8897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8899         from here...
8900         * modules/strtoimax (configure.ac): ... to here.
8901
8902 2011-05-22  Bruno Haible  <bruno@clisp.org>
8903
8904         strtoull: Move AC_LIBOBJ invocations to module description.
8905         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8907         from here...
8908         * modules/strtoull (configure.ac): ... to here.
8909
8910 2011-05-22  Bruno Haible  <bruno@clisp.org>
8911
8912         strtoll: Move AC_LIBOBJ invocations to module description.
8913         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8915         here...
8916         * modules/strtoll (configure.ac): ... to here.
8917
8918 2011-05-22  Bruno Haible  <bruno@clisp.org>
8919
8920         strtoul: Move AC_LIBOBJ invocations to module description.
8921         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8922         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8923         * modules/strtoul (configure.ac): ... to here.
8924
8925 2011-05-22  Bruno Haible  <bruno@clisp.org>
8926
8927         strtol: Move AC_LIBOBJ invocations to module description.
8928         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8929         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8930         * modules/strtol (configure.ac): ... to here.
8931
8932 2011-05-22  Bruno Haible  <bruno@clisp.org>
8933
8934         strtod: Move AC_LIBOBJ invocations to module description.
8935         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8936         invocations from here...
8937         * modules/strtod (configure.ac): ... to here.
8938
8939 2011-05-22  Bruno Haible  <bruno@clisp.org>
8940
8941         strstr*: Move AC_LIBOBJ invocations to module description.
8942         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8943         invocations from here...
8944         * modules/strstr-simple (configure.ac): ... to here.
8945         * modules/strstr (configure.ac): ... and here.
8946
8947 2011-05-22  Bruno Haible  <bruno@clisp.org>
8948
8949         strsignal: Move AC_LIBOBJ invocations to module description.
8950         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8951         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8952         * modules/strsignal (configure.ac): ... to here.
8953         (Depends-on): Update conditions.
8954
8955 2011-05-22  Bruno Haible  <bruno@clisp.org>
8956
8957         strsep: Move AC_LIBOBJ invocations to module description.
8958         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8960         here...
8961         * modules/strsep (configure.ac): ... to here.
8962
8963 2011-05-22  Bruno Haible  <bruno@clisp.org>
8964
8965         strptime: Move AC_LIBOBJ invocations to module description.
8966         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8967         gl_PREREQ_STRPTIME invocations from here...
8968         * modules/strptime (configure.ac): ... to here.
8969
8970 2011-05-22  Bruno Haible  <bruno@clisp.org>
8971
8972         strpbrk: Move AC_LIBOBJ invocations to module description.
8973         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8975         here...
8976         * modules/strpbrk (configure.ac): ... to here.
8977
8978 2011-05-22  Bruno Haible  <bruno@clisp.org>
8979
8980         strnlen: Move AC_LIBOBJ invocations to module description.
8981         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8982         invocations from here...
8983         * modules/strnlen (configure.ac): ... to here.
8984
8985 2011-05-22  Bruno Haible  <bruno@clisp.org>
8986
8987         strndup: Move AC_LIBOBJ invocations to module description.
8988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8989         invocations from here...
8990         * modules/strndup (configure.ac): ... to here.
8991         (Depends-on): Update conditions.
8992
8993 2011-05-22  Bruno Haible  <bruno@clisp.org>
8994
8995         strncat: Move AC_LIBOBJ invocations to module description.
8996         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8997         invocations from here...
8998         * modules/strncat (configure.ac): ... to here.
8999
9000 2011-05-22  Bruno Haible  <bruno@clisp.org>
9001
9002         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9003         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9004         invocations from here...
9005         * modules/strdup (configure.ac): ... to here.
9006         * modules/strdup-posix (configure.ac): ... and here.
9007
9008 2011-05-22  Bruno Haible  <bruno@clisp.org>
9009
9010         strcspn: Move AC_LIBOBJ invocations to module description.
9011         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9013         here...
9014         * modules/strcspn (configure.ac): ... to here.
9015
9016 2011-05-22  Bruno Haible  <bruno@clisp.org>
9017
9018         strchrnul: Move AC_LIBOBJ invocations to module description.
9019         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9020         gl_PREREQ_STRCHRNUL invocations from here...
9021         * modules/strchrnul (configure.ac): ... to here.
9022
9023 2011-05-22  Bruno Haible  <bruno@clisp.org>
9024
9025         strcasestr*: Move AC_LIBOBJ invocations to module description.
9026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9027         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9028         * modules/strcasestr-simple (configure.ac): ... to here.
9029         * modules/strcasestr (configure.ac): ... and here.
9030
9031 2011-05-22  Bruno Haible  <bruno@clisp.org>
9032
9033         strcase: Move AC_LIBOBJ invocations to module description.
9034         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9035         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9036         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9037         gl_PREREQ_STRNCASECMP invocations from here...
9038         * modules/strcase (configure.ac): ... to here.
9039
9040 2011-05-22  Bruno Haible  <bruno@clisp.org>
9041
9042         stpncpy: Move AC_LIBOBJ invocations to module description.
9043         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9044         here...
9045         * modules/stpncpy (configure.ac): ... to here.
9046
9047 2011-05-22  Bruno Haible  <bruno@clisp.org>
9048
9049         stpcpy: Move AC_LIBOBJ invocations to module description.
9050         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9052         here...
9053         * modules/stpcpy (configure.ac): ... to here.
9054
9055 2011-05-21  Bruno Haible  <bruno@clisp.org>
9056
9057         stat: Move AC_LIBOBJ invocations to module description.
9058         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9059         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9060         here...
9061         * modules/stat (configure.ac): ... to here.
9062
9063 2011-05-21  Bruno Haible  <bruno@clisp.org>
9064
9065         sleep: Move AC_LIBOBJ invocations to module description.
9066         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9067         * modules/sleep (configure.ac): ... to here.
9068
9069 2011-05-21  Bruno Haible  <bruno@clisp.org>
9070
9071         signbit: Move AC_LIBOBJ invocations to module description.
9072         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9073         * modules/signbit (configure.ac): ... to here.
9074
9075 2011-05-21  Bruno Haible  <bruno@clisp.org>
9076
9077         sigprocmask: Move AC_LIBOBJ invocations to module description.
9078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9079         gl_PREREQ_SIGPROMASK invocations from here...
9080         * modules/sigprocmask (configure.ac): ... to here.
9081
9082 2011-05-21  Bruno Haible  <bruno@clisp.org>
9083
9084         sigaction: Move AC_LIBOBJ invocations to module description.
9085         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9086         gl_PREREQ_SIGACTION invocations from here...
9087         * modules/sigaction (configure.ac): ... to here.
9088
9089 2011-05-21  Bruno Haible  <bruno@clisp.org>
9090
9091         sig2str: Move AC_LIBOBJ invocations to module description.
9092         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9094         here...
9095         * modules/sig2str (configure.ac): ... to here.
9096
9097 2011-05-21  Bruno Haible  <bruno@clisp.org>
9098
9099         setlocale: Move AC_LIBOBJ invocations to module description.
9100         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9101         gl_PREREQ_SETLOCALE invocations from here...
9102         * modules/setlocale (configure.ac): ... to here.
9103
9104 2011-05-21  Bruno Haible  <bruno@clisp.org>
9105
9106         unsetenv: Move AC_LIBOBJ invocations to module description.
9107         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9108         and gl_PREREQ_UNSETENV invocations from here...
9109         * modules/unsetenv (configure.ac): ... to here.
9110         (Depends-on): Update.
9111
9112 2011-05-21  Bruno Haible  <bruno@clisp.org>
9113
9114         setenv: Move AC_LIBOBJ invocations to module description.
9115         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9116         here...
9117         * modules/setenv (configure.ac): ... to here.
9118
9119 2011-05-21  Bruno Haible  <bruno@clisp.org>
9120
9121         selinux-h: Move AC_LIBOBJ invocations to module description.
9122         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9123         AC_LIBOBJ invocation from here...
9124         * modules/selinux-h (configure.ac): ... to here.
9125
9126 2011-05-21  Bruno Haible  <bruno@clisp.org>
9127
9128         select: Respect rules for use of AC_LIBOBJ.
9129         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9130         here...
9131         * modules/select (configure.ac): ... to here.
9132
9133 2011-05-21  Bruno Haible  <bruno@clisp.org>
9134
9135         scandir: Move AC_LIBOBJ invocations to module description.
9136         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9137         invocations from here...
9138         * modules/scandir (configure.ac): ... to here.
9139
9140 2011-05-21  Bruno Haible  <bruno@clisp.org>
9141
9142         rpmatch: Move AC_LIBOBJ invocations to module description.
9143         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9145         here...
9146         * modules/rpmatch (configure.ac): ... to here.
9147
9148 2011-05-21  Bruno Haible  <bruno@clisp.org>
9149
9150         rmdir: Respect rules for use of AC_LIBOBJ.
9151         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9152         * modules/rmdir (configure.ac): ... to here.
9153
9154 2011-05-21  Bruno Haible  <bruno@clisp.org>
9155
9156         renameat: Move AC_LIBOBJ invocations to module description.
9157         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9158         here...
9159         * modules/renameat (configure.ac): ... to here.
9160
9161 2011-05-21  Bruno Haible  <bruno@clisp.org>
9162
9163         rename: Respect rules for use of AC_LIBOBJ.
9164         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9165         here...
9166         * modules/rename (configure.ac): ... to here.
9167
9168 2011-05-21  Bruno Haible  <bruno@clisp.org>
9169
9170         remove: Move AC_LIBOBJ invocations to module description.
9171         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9172         here...
9173         * modules/remove (configure.ac): ... to here.
9174
9175 2011-05-21  Bruno Haible  <bruno@clisp.org>
9176
9177         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9178         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9179         macro.
9180         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9181         * modules/relocatable-lib (configure.ac): ... to here.
9182         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9183         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9184
9185 2011-05-21  Bruno Haible  <bruno@clisp.org>
9186
9187         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9188         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9189         here...
9190         * modules/relocatable-prog (configure.ac): ... to here.
9191
9192 2011-05-21  Bruno Haible  <bruno@clisp.org>
9193
9194         regex: Move AC_LIBOBJ invocations to module description.
9195         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9196         invocations from here...
9197         * modules/regex (configure.ac): ... to here.
9198
9199 2011-05-21  Bruno Haible  <bruno@clisp.org>
9200
9201         realloc-*: Move AC_LIBOBJ invocations to module description.
9202         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9203         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9204         AC_LIBOBJ invocations from here...
9205         * modules/realloc-gnu (configure.ac): ... to here.
9206         * modules/realloc-posix (configure.ac): ... and here.
9207
9208 2011-05-21  Bruno Haible  <bruno@clisp.org>
9209
9210         readutmp: Move AC_LIBOBJ invocations to module description.
9211         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9212         * modules/readutmp (configure.ac): ... to here.
9213
9214 2011-05-21  Bruno Haible  <bruno@clisp.org>
9215
9216         readlinkat: Move AC_LIBOBJ invocations to module description.
9217         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9218         here...
9219         * modules/readlinkat (configure.ac): ... to here.
9220
9221 2011-05-21  Bruno Haible  <bruno@clisp.org>
9222
9223         readlink: Move AC_LIBOBJ invocations to module description.
9224         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9225         gl_PREREQ_READLINK invocations from here...
9226         * modules/readlink (configure.ac): ... to here.
9227
9228 2011-05-21  Bruno Haible  <bruno@clisp.org>
9229
9230         readline: Move AC_LIBOBJ invocations to module description.
9231         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9232         gl_PREREQ_READLINE invocations from here...
9233         * modules/readline (configure.ac): ... to here.
9234
9235 2011-05-21  Bruno Haible  <bruno@clisp.org>
9236
9237         read: Move AC_LIBOBJ invocations to module description.
9238         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9239         * modules/read (configure.ac): ... to here.
9240
9241 2011-05-21  Bruno Haible  <bruno@clisp.org>
9242
9243         rawmemchr: Move AC_LIBOBJ invocations to module description.
9244         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9246         from here...
9247         * modules/rawmemchr (configure.ac): ... to here.
9248
9249 2011-05-21  Bruno Haible  <bruno@clisp.org>
9250
9251         random_r: Move AC_LIBOBJ invocations to module description.
9252         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9253         gl_PREREQ_RANDOM_R invocations from here...
9254         * modules/random_r (configure.ac): ... to here.
9255
9256 2011-05-21  Bruno Haible  <bruno@clisp.org>
9257
9258         pwrite: Move AC_LIBOBJ invocations to module description.
9259         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9260         * modules/pwrite (configure.ac): ... to here.
9261
9262 2011-05-21  Bruno Haible  <bruno@clisp.org>
9263
9264         putenv: Move AC_LIBOBJ invocations to module description.
9265         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9266         * modules/putenv (configure.ac): ... to here.
9267
9268 2011-05-21  Bruno Haible  <bruno@clisp.org>
9269
9270         login_tty: Move AC_LIBOBJ invocations to module description.
9271         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9272         * modules/login_tty (configure.ac): ... to here.
9273
9274 2011-05-21  Bruno Haible  <bruno@clisp.org>
9275
9276         openpty: Move AC_LIBOBJ invocations to module description.
9277         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9278         * modules/openpty (configure.ac): ... to here.
9279
9280 2011-05-21  Bruno Haible  <bruno@clisp.org>
9281
9282         forkpty: Move AC_LIBOBJ invocations to module description.
9283         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9284         * modules/forkpty (configure.ac): ... to here.
9285
9286 2011-05-21  Bruno Haible  <bruno@clisp.org>
9287
9288         ptsname: Move AC_LIBOBJ invocations to module description.
9289         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9290         invocations from here...
9291         * modules/ptsname (configure.ac): ... to here.
9292
9293 2011-05-21  Bruno Haible  <bruno@clisp.org>
9294
9295         pread: Move AC_LIBOBJ invocations to module description.
9296         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9297         * modules/pread (configure.ac): ... to here.
9298
9299 2011-05-21  Bruno Haible  <bruno@clisp.org>
9300
9301         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9302         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9303         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9304         * modules/posix_spawn (configure.ac): ... to here.
9305         * modules/posix_spawnp (configure.ac): ... and here.
9306
9307 2011-05-21  Bruno Haible  <bruno@clisp.org>
9308
9309         popen: Move AC_LIBOBJ invocations to module description.
9310         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9311         invocations from here...
9312         * modules/popen (configure.ac): ... to here.
9313
9314 2011-05-21  Bruno Haible  <bruno@clisp.org>
9315
9316         poll: Move AC_LIBOBJ invocations to module description.
9317         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9318         invocations from here...
9319         * modules/poll (configure.ac): ... to here.
9320
9321 2011-05-21  Bruno Haible  <bruno@clisp.org>
9322
9323         pipe-posix: Move AC_LIBOBJ invocations to module description.
9324         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9325         * modules/pipe-posix (configure.ac): ... to here.
9326
9327 2011-05-21  Bruno Haible  <bruno@clisp.org>
9328
9329         openat: Respect rules for use of AC_LIBOBJ.
9330         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9331         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9332         * modules/openat (configure.ac): ... to here.
9333
9334 2011-05-21  Bruno Haible  <bruno@clisp.org>
9335
9336         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9337         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9338         invocation from here...
9339         * modules/obstack-printf (configure.ac): ... to here.
9340         * modules/obstack-printf-posix (configure.ac): ... and here.
9341
9342 2011-05-21  Bruno Haible  <bruno@clisp.org>
9343
9344         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9345         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9346         from here...
9347         * modules/nl_langinfo (configure.ac): ... to here.
9348
9349 2011-05-21  Bruno Haible  <bruno@clisp.org>
9350
9351         nanosleep: Move AC_LIBOBJ invocations to module description.
9352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9353         gl_PREREQ_NANOSLEEP invocations from here...
9354         * modules/nanosleep (configure.ac): ... to here.
9355
9356 2011-05-21  Bruno Haible  <bruno@clisp.org>
9357
9358         mountlist: Move AC_LIBOBJ invocations to module description.
9359         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9360         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9361         * modules/mountlist (configure.ac): ... to here.
9362
9363 2011-05-21  Bruno Haible  <bruno@clisp.org>
9364
9365         mktime: Respect rules for use of AC_LIBOBJ.
9366         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9367         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9368         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9369         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9370         * modules/mktime (configure.ac): ... to here.
9371         * modules/mktime-internal (configure.ac): ... and here.
9372         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9373
9374 2011-05-21  Bruno Haible  <bruno@clisp.org>
9375
9376         mkstemps: Move AC_LIBOBJ invocations to module description.
9377         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9378         here...
9379         * modules/mkstemps (configure.ac): ... to here.
9380
9381 2011-05-21  Bruno Haible  <bruno@clisp.org>
9382
9383         mkstemp: Move AC_LIBOBJ invocations to module description.
9384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9385         gl_PREREQ_MKSTEMP invocations from here...
9386         * modules/mkstemp (configure.ac): ... to here.
9387
9388 2011-05-21  Bruno Haible  <bruno@clisp.org>
9389
9390         mkostemps: Move AC_LIBOBJ invocations to module description.
9391         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9392         here...
9393         * modules/mkostemps (configure.ac): ... to here.
9394
9395 2011-05-21  Bruno Haible  <bruno@clisp.org>
9396
9397         mkostemp: Move AC_LIBOBJ invocations to module description.
9398         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9399         gl_PREREQ_MKOSTEMP invocations from here...
9400         * modules/mkostemp (configure.ac): ... to here.
9401
9402 2011-05-21  Bruno Haible  <bruno@clisp.org>
9403
9404         mknod: Move AC_LIBOBJ invocations to module description.
9405         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9406         * modules/mknod (configure.ac): ... to here.
9407
9408 2011-05-21  Bruno Haible  <bruno@clisp.org>
9409
9410         mkfifoat: Move AC_LIBOBJ invocations to module description.
9411         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9412         here...
9413         * modules/mkfifoat (configure.ac): ... to here.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         mkfifo: Respect rules for use of AC_LIBOBJ.
9418         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9419         here...
9420         * modules/mkfifo (configure.ac): ... to here.
9421
9422 2011-05-21  Bruno Haible  <bruno@clisp.org>
9423
9424         mkdtemp: Move AC_LIBOBJ invocations to module description.
9425         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9426         invocations from here...
9427         * modules/mkdtemp (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         mkdir: Move AC_LIBOBJ invocations to module description.
9432         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9433         * modules/mkdir (configure.ac): ... to here.
9434
9435 2011-05-21  Bruno Haible  <bruno@clisp.org>
9436
9437         memset: Move AC_LIBOBJ invocations to module description.
9438         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9440         here...
9441         * modules/memset (configure.ac): ... to here.
9442
9443 2011-05-21  Bruno Haible  <bruno@clisp.org>
9444
9445         memrchr: Move AC_LIBOBJ invocations to module description.
9446         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9448         here...
9449         * modules/memrchr (configure.ac): ... to here.
9450
9451 2011-05-21  Bruno Haible  <bruno@clisp.org>
9452
9453         mempcpy: Move AC_LIBOBJ invocations to module description.
9454         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9456         here...
9457         * modules/mempcpy (configure.ac): ... to here.
9458
9459 2011-05-21  Bruno Haible  <bruno@clisp.org>
9460
9461         memmove: Move AC_LIBOBJ invocations to module description.
9462         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9464         here...
9465         * modules/memmove (configure.ac): ... to here.
9466
9467 2011-05-21  Bruno Haible  <bruno@clisp.org>
9468
9469         memmem*: Move AC_LIBOBJ invocations to module description.
9470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9471         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9472         here...
9473         (gl_FUNC_MEMMEM): ... and here...
9474         * modules/memmem-simple (configure.ac): ... to here.
9475         * modules/memmem (configure.ac): ... and here.
9476
9477 2011-05-21  Bruno Haible  <bruno@clisp.org>
9478
9479         memcpy: Move AC_LIBOBJ invocations to module description.
9480         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9482         here...
9483         * modules/memcpy (configure.ac): ... to here.
9484
9485 2011-05-21  Bruno Haible  <bruno@clisp.org>
9486
9487         memcmp: Simplify autoconf macro.
9488         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9489         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9490         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9491
9492 2011-05-21  Bruno Haible  <bruno@clisp.org>
9493
9494         memcmp: Move AC_LIBOBJ invocations to module description.
9495         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9496         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9497         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9498         * modules/memcmp (configure.ac): ... to here.
9499         (Depends-on): Update conditions.
9500
9501 2011-05-21  Bruno Haible  <bruno@clisp.org>
9502
9503         memchr: Respect rules for use of AC_LIBOBJ.
9504         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9505         invocations from here...
9506         * modules/memchr (configure.ac): ... to here.
9507
9508 2011-05-21  Bruno Haible  <bruno@clisp.org>
9509
9510         mbtowc: Move AC_LIBOBJ invocations to module description.
9511         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9512         invocations from here...
9513         * modules/mbtowc (configure.ac): ... to here.
9514
9515 2011-05-21  Bruno Haible  <bruno@clisp.org>
9516
9517         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9518         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9519         gl_PREREQ_MBSRTOWCS invocations from here...
9520         * modules/mbsrtowcs (configure.ac): ... to here.
9521
9522 2011-05-21  Bruno Haible  <bruno@clisp.org>
9523
9524         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9525         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9526         gl_PREREQ_MBSNRTOWCS invocations from here...
9527         * modules/mbsnrtowcs (configure.ac): ... to here.
9528
9529 2011-05-21  Bruno Haible  <bruno@clisp.org>
9530
9531         mbsinit: Move AC_LIBOBJ invocations to module description.
9532         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9533         invocations from here...
9534         * modules/mbsinit (configure.ac): ... to here.
9535
9536 2011-05-21  Bruno Haible  <bruno@clisp.org>
9537
9538         mbrlen: Move AC_LIBOBJ invocations to module description.
9539         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9540         invocations from here...
9541         * modules/mbrlen (configure.ac): ... to here.
9542
9543 2011-05-21  Bruno Haible  <bruno@clisp.org>
9544
9545         mbrtowc: Respect rules for use of AC_LIBOBJ.
9546         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9547         invocations from here...
9548         * modules/mbrtowc (configure.ac): ... to here.
9549
9550 2011-05-21  Bruno Haible  <bruno@clisp.org>
9551
9552         malloc-*: Move AC_LIBOBJ invocations to module description.
9553         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9554         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9555         AC_LIBOBJ invocations from here...
9556         * modules/malloc-gnu (configure.ac): ... to here.
9557         * modules/malloc-posix (configure.ac): ... and here.
9558
9559 2011-05-21  Bruno Haible  <bruno@clisp.org>
9560
9561         lstat, openat: Respect rules for use of AC_LIBOBJ.
9562         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9563         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9564         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9565         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9566         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9567         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9568         here.
9569         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9570
9571 2011-05-21  Bruno Haible  <bruno@clisp.org>
9572
9573         lseek: Move AC_LIBOBJ invocations to module description.
9574         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9575         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9576         * modules/lseek (configure.ac): ... to here.
9577
9578 2011-05-21  Bruno Haible  <bruno@clisp.org>
9579
9580         linkat: Move AC_LIBOBJ invocations to module description.
9581         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9582         here...
9583         * modules/linkat (configure.ac): ... to here.
9584
9585 2011-05-21  Bruno Haible  <bruno@clisp.org>
9586
9587         link: Respect rules for use of AC_LIBOBJ.
9588         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9589         * modules/link (configure.ac): ... to here.
9590
9591 2011-05-21  Bruno Haible  <bruno@clisp.org>
9592
9593         lchown: Move AC_LIBOBJ invocations to module description.
9594         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9595         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9596         * modules/lchown (configure.ac): ... to here.
9597
9598 2011-05-21  Bruno Haible  <bruno@clisp.org>
9599
9600         iswctype: Move AC_LIBOBJ invocations to module description.
9601         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9602         here...
9603         * modules/iswctype (configure.ac): ... to here.
9604
9605 2011-05-21  Bruno Haible  <bruno@clisp.org>
9606
9607         iswblank: Move AC_LIBOBJ invocations to module description.
9608         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9609         here...
9610         * modules/iswblank (configure.ac): ... to here.
9611
9612 2011-05-21  Bruno Haible  <bruno@clisp.org>
9613
9614         atanl: Move AC_LIBOBJ invocations to module description.
9615         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9616         * modules/atanl (configure.ac): ... to here.
9617
9618 2011-05-21  Bruno Haible  <bruno@clisp.org>
9619
9620         acosl: Move AC_LIBOBJ invocations to module description.
9621         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9622         * modules/acosl (configure.ac): ... to here.
9623
9624 2011-05-21  Bruno Haible  <bruno@clisp.org>
9625
9626         asinl: Respect rules for use of AC_LIBOBJ.
9627         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9628         * modules/asinl (configure.ac): ... to here.
9629
9630 2011-05-21  Bruno Haible  <bruno@clisp.org>
9631
9632         tanl: Move AC_LIBOBJ invocations to module description.
9633         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9634         * modules/tanl (configure.ac): ... to here.
9635
9636 2011-05-21  Bruno Haible  <bruno@clisp.org>
9637
9638         cosl: Move AC_LIBOBJ invocations to module description.
9639         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9640         * modules/cosl (configure.ac): ... to here.
9641
9642 2011-05-21  Bruno Haible  <bruno@clisp.org>
9643
9644         sinl: Move AC_LIBOBJ invocations to module description.
9645         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9646         * modules/sinl (configure.ac): ... to here.
9647
9648 2011-05-21  Bruno Haible  <bruno@clisp.org>
9649
9650         logl: Move AC_LIBOBJ invocations to module description.
9651         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9652         * modules/logl (configure.ac): ... to here.
9653
9654 2011-05-21  Bruno Haible  <bruno@clisp.org>
9655
9656         expl: Move AC_LIBOBJ invocations to module description.
9657         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9658         * modules/expl (configure.ac): ... to here.
9659
9660 2011-05-21  Bruno Haible  <bruno@clisp.org>
9661
9662         roundl: Move AC_LIBOBJ invocations to module description.
9663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9664         * modules/roundl (configure.ac): ... to here.
9665
9666 2011-05-21  Bruno Haible  <bruno@clisp.org>
9667
9668         round: Move AC_LIBOBJ invocations to module description.
9669         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9670         * modules/round (configure.ac): ... to here.
9671
9672 2011-05-21  Bruno Haible  <bruno@clisp.org>
9673
9674         roundf: Move AC_LIBOBJ invocations to module description.
9675         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9676         * modules/roundf (configure.ac): ... to here.
9677
9678 2011-05-21  Bruno Haible  <bruno@clisp.org>
9679
9680         truncl: Move AC_LIBOBJ invocations to module description.
9681         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9682         * modules/truncl (configure.ac): ... to here.
9683
9684 2011-05-21  Bruno Haible  <bruno@clisp.org>
9685
9686         trunc: Move AC_LIBOBJ invocations to module description.
9687         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9688         * modules/trunc (configure.ac): ... to here.
9689
9690 2011-05-21  Bruno Haible  <bruno@clisp.org>
9691
9692         truncf: Move AC_LIBOBJ invocations to module description.
9693         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9694         * modules/truncf (configure.ac): ... to here.
9695
9696 2011-05-21  Bruno Haible  <bruno@clisp.org>
9697
9698         ceill: Move AC_LIBOBJ invocations to module description.
9699         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9700         * modules/ceill (configure.ac): ... to here.
9701
9702 2011-05-21  Bruno Haible  <bruno@clisp.org>
9703
9704         ceil: Move AC_LIBOBJ invocations to module description.
9705         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9706         * modules/ceil (configure.ac): ... to here.
9707
9708 2011-05-21  Bruno Haible  <bruno@clisp.org>
9709
9710         ceilf: Move AC_LIBOBJ invocations to module description.
9711         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9712         * modules/ceilf (configure.ac): ... to here.
9713
9714 2011-05-21  Bruno Haible  <bruno@clisp.org>
9715
9716         floorl: Respect rules for use of AC_LIBOBJ.
9717         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9718         * modules/floorl (configure.ac): ... to here.
9719
9720 2011-05-21  Bruno Haible  <bruno@clisp.org>
9721
9722         floor: Respect rules for use of AC_LIBOBJ.
9723         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9724         * modules/floor (configure.ac): ... to here.
9725
9726 2011-05-21  Bruno Haible  <bruno@clisp.org>
9727
9728         floorf: Move AC_LIBOBJ invocations to module description.
9729         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9730         * modules/floorf (configure.ac): ... to here.
9731
9732 2011-05-20  Bruno Haible  <bruno@clisp.org>
9733
9734         sqrtl: Respect rules for use of AC_LIBOBJ.
9735         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9736         * modules/sqrtl (configure.ac): ... to here.
9737
9738 2011-05-20  Bruno Haible  <bruno@clisp.org>
9739
9740         ldexpl: Respect rules for use of AC_LIBOBJ.
9741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9742         * modules/ldexpl (configure.ac): ... to here.
9743
9744 2011-05-20  Bruno Haible  <bruno@clisp.org>
9745
9746         frexpl*: Respect rules for use of AC_LIBOBJ.
9747         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9748         invocation from here...
9749         * modules/frexpl (configure.ac): ... to here.
9750         * modules/frexpl-nolibm (configure.ac): ... and here.
9751
9752 2011-05-20  Bruno Haible  <bruno@clisp.org>
9753
9754         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9755         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9756         invocation from here...
9757         * modules/frexp (configure.ac): ... to here.
9758         * modules/frexp-nolibm (configure.ac): ... and here.
9759
9760 2011-05-20  Bruno Haible  <bruno@clisp.org>
9761
9762         isnan: Respect rules for use of AC_LIBOBJ.
9763         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9764         invocations here.
9765         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9766         REPLACE_ISNAN.
9767         * modules/isnand (configure.ac): Likewise.
9768         * modules/isnanl (configure.ac): Likewise.
9769
9770 2011-05-20  Bruno Haible  <bruno@clisp.org>
9771
9772         isnanl*: Respect rules for use of AC_LIBOBJ.
9773         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9774         invocation from here...
9775         * modules/isnanl (configure.ac): ... to here.
9776         * modules/isnanl-nolibm (configure.ac): ... and here.
9777
9778 2011-05-20  Bruno Haible  <bruno@clisp.org>
9779
9780         isnand*: Move AC_LIBOBJ invocations to module description.
9781         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9782         invocation from here...
9783         * modules/isnand (configure.ac): ... to here.
9784         * modules/isnand-nolibm (configure.ac): ... and here.
9785
9786 2011-05-20  Bruno Haible  <bruno@clisp.org>
9787
9788         isnanf*: Move AC_LIBOBJ invocations to module description.
9789         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9790         invocation from here...
9791         * modules/isnanf (configure.ac): ... to here.
9792         * modules/isnanf-nolibm (configure.ac): ... and here.
9793
9794 2011-05-20  Bruno Haible  <bruno@clisp.org>
9795
9796         isnan*: Separate the AC_LIBOBJ invocations.
9797         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9798         AC_LIBOBJ invocation.
9799         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9800         here.
9801         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9802         AC_LIBOBJ invocation.
9803         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9804         here.
9805         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9806         AC_LIBOBJ invocation.
9807         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9808         here.
9809         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9810
9811 2011-05-08  Bruno Haible  <bruno@clisp.org>
9812
9813         isinf: Move AC_LIBOBJ invocations to module description.
9814         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9815         * modules/isinf (configure.ac): ... to here.
9816
9817 2011-05-08  Bruno Haible  <bruno@clisp.org>
9818
9819         isfinite: Move AC_LIBOBJ invocations to module description.
9820         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9821         * modules/isfinite (configure.ac): ... to here.
9822
9823 2011-05-08  Bruno Haible  <bruno@clisp.org>
9824
9825         isblank: Move AC_LIBOBJ invocations to module description.
9826         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9827         here...
9828         * modules/isblank (configure.ac): ... to here.
9829
9830 2011-05-08  Bruno Haible  <bruno@clisp.org>
9831
9832         isapipe: Move AC_LIBOBJ invocations to module description.
9833         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9834         gl_PREREQ_ISAPIPE invocations from here...
9835         * modules/isapipe (configure.ac): ... to here.
9836         (Depends-on): Update condition.
9837
9838 2011-05-08  Bruno Haible  <bruno@clisp.org>
9839
9840         ioctl: Move AC_LIBOBJ invocations to module description.
9841         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9842         invocations from here...
9843         * modules/ioctl (configure.ac): ... to here.
9844         (Depends-on): Update condition.
9845
9846 2011-05-08  Bruno Haible  <bruno@clisp.org>
9847
9848         imaxdiv: Move AC_LIBOBJ invocations to module description.
9849         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9850         invocations from here...
9851         * modules/imaxdiv (configure.ac): ... to here.
9852
9853 2011-05-08  Bruno Haible  <bruno@clisp.org>
9854
9855         imaxabs: Move AC_LIBOBJ invocations to module description.
9856         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9857         invocations from here...
9858         * modules/imaxabs (configure.ac): ... to here.
9859
9860 2011-05-08  Bruno Haible  <bruno@clisp.org>
9861
9862         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9864         AC_LIBOBJ invocations from here...
9865         * modules/getaddrinfo (configure.ac): ... to here.
9866         (Depends-on): Add conditions.
9867
9868 2011-05-08  Bruno Haible  <bruno@clisp.org>
9869
9870         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9871         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9872         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9873         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9874         (gl_PREREQ_INET_PTON): ... from here.
9875         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9876         gl_PREREQ_INET_PTON here.
9877         (Depends-on): Update condition.
9878
9879 2011-05-08  Bruno Haible  <bruno@clisp.org>
9880
9881         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9882         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9883         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9884         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9885         (gl_PREREQ_INET_NTOP): ... from here.
9886         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9887         gl_PREREQ_INET_NTOP here.
9888         (Depends-on): Update condition.
9889
9890 2011-05-08  Bruno Haible  <bruno@clisp.org>
9891
9892         iconv_open: Move AC_LIBOBJ invocations to module description.
9893         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9894         AC_LIBOBJ invocations from here...
9895         * modules/iconv_open (configure.ac): ... to here.
9896
9897 2011-05-08  Bruno Haible  <bruno@clisp.org>
9898
9899         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9900         If module 'iconv_open' is among the main modules and module
9901         'iconv_open-utf' is among the tests dependencies, then
9902         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9903         return the special iconv_t values. Therefore iconv() and iconv_close()
9904         must support these special iconv_t values, already in lib, not only in
9905         tests.
9906         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9908         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9909         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9910         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9911         (Depends-on): Add the dependencies of iconv_open-utf.
9912         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9913         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9914         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9915
9916 2011-05-08  Bruno Haible  <bruno@clisp.org>
9917
9918         group-member: Move AC_LIBOBJ invocations to module description.
9919         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9920         gl_PREREQ_GROUP_MEMBER invocations from here...
9921         * modules/group-member (configure.ac): ... to here.
9922
9923 2011-05-08  Bruno Haible  <bruno@clisp.org>
9924
9925         grantpt: Move AC_LIBOBJ invocations to module description.
9926         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9927         invocations from here...
9928         * modules/grantpt (configure.ac): ... to here.
9929
9930 2011-05-08  Bruno Haible  <bruno@clisp.org>
9931
9932         glob: Move AC_LIBOBJ invocations to module description.
9933         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9934         from here...
9935         * modules/glob (configure.ac): ... to here.
9936
9937 2011-05-08  Bruno Haible  <bruno@clisp.org>
9938
9939         getusershell: Move AC_LIBOBJ invocations to module description.
9940         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9941         Move AC_LIBOBJ invocation from here...
9942         * modules/getusershell (configure.ac): ... to here.
9943         (Depends-on): Update condition.
9944
9945 2011-05-08  Bruno Haible  <bruno@clisp.org>
9946
9947         gettimeofday: Move AC_LIBOBJ invocations to module description.
9948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9949         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9950         gl_PREREQ_GETTIMEOFDAY invocations from here...
9951         * modules/gettimeofday (configure.ac): ... to here.
9952
9953 2011-05-08  Bruno Haible  <bruno@clisp.org>
9954
9955         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9956         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9957         just gl_FUNC_TZSET.
9958         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9959         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9960         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9961         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9962
9963 2011-05-08  Bruno Haible  <bruno@clisp.org>
9964
9965         getsubopt: Move AC_LIBOBJ invocations to module description.
9966         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9967         gl_PREREQ_GETSUBOPT invocations from here...
9968         * modules/getsubopt (configure.ac): ... to here.
9969
9970 2011-05-08  Bruno Haible  <bruno@clisp.org>
9971
9972         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9973         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9974         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9975         * modules/getpass-gnu (configure.ac): ... to here.
9976
9977 2011-05-08  Bruno Haible  <bruno@clisp.org>
9978
9979         getpass: Move AC_LIBOBJ invocations to module description.
9980         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9981         gl_PREREQ_GETPASS invocations from here...
9982         * modules/getpass (configure.ac): ... to here.
9983
9984 2011-05-08  Bruno Haible  <bruno@clisp.org>
9985
9986         getpagesize: Move AC_LIBOBJ invocations to module description.
9987         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9988         from here...
9989         * modules/getpagesize (configure.ac): ... to here.
9990
9991 2011-05-08  Bruno Haible  <bruno@clisp.org>
9992
9993         getopt: Move AC_LIBOBJ invocations to module description.
9994         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9995         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9996         invocations from here...
9997         * modules/getopt-gnu (configure.ac): ... to here.
9998         * modules/getopt-posix (configure.ac): ... and here.
9999         (Depends-on): Update condition.
10000
10001 2011-05-08  Bruno Haible  <bruno@clisp.org>
10002
10003         getopt, argp: Respect rules for use of AC_LIBOBJ.
10004         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10005         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10006         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10007         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10008
10009 2011-05-08  Bruno Haible  <bruno@clisp.org>
10010
10011         getlogin_r: Move AC_LIBOBJ invocations to module description.
10012         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10013         gl_PREREQ_GETLOGIN_R invocations from here...
10014         * modules/getlogin_r (configure.ac): ... to here.
10015
10016 2011-05-08  Bruno Haible  <bruno@clisp.org>
10017
10018         getlogin: Move AC_LIBOBJ invocations to module description.
10019         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10020         here...
10021         * modules/getlogin (configure.ac): ... to here.
10022
10023 2011-05-08  Bruno Haible  <bruno@clisp.org>
10024
10025         getloadavg: Move AC_LIBOBJ invocations to module description.
10026         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10027         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10028         * modules/getloadavg (configure.ac): ... to here.
10029
10030 2011-05-08  Bruno Haible  <bruno@clisp.org>
10031
10032         gethrxtime: Move AC_LIBOBJ invocations to module description.
10033         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10034         LIB_GETHRXTIME from here...
10035         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10036         invocations from here...
10037         * modules/gethrxtime (configure.ac): ... to here.
10038
10039 2011-05-08  Bruno Haible  <bruno@clisp.org>
10040
10041         gethostname: Move AC_LIBOBJ invocations to module description.
10042         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10043         gl_PREREQ_GETHOSTNAME invocations from here...
10044         * modules/gethostname (configure.ac): ... to here.
10045
10046 2011-05-08  Bruno Haible  <bruno@clisp.org>
10047
10048         getgroups: Move AC_LIBOBJ invocations to module description.
10049         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10050         here...
10051         * modules/getgroups (configure.ac): ... to here.
10052
10053 2011-05-08  Bruno Haible  <bruno@clisp.org>
10054
10055         getdtablesize: Move AC_LIBOBJ invocations to module description.
10056         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10057         invocation from here...
10058         * modules/getdtablesize (configure.ac): ... to here.
10059
10060 2011-05-08  Bruno Haible  <bruno@clisp.org>
10061
10062         getdomainname: Move AC_LIBOBJ invocations to module description.
10063         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10064         gl_PREREQ_GETDOMAINNAME invocations from here...
10065         * modules/getdomainname (configure.ac): ... to here.
10066
10067 2011-05-08  Bruno Haible  <bruno@clisp.org>
10068
10069         getline: Move AC_LIBOBJ invocations to module description.
10070         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10071         invocations from here...
10072         * modules/getline (configure.ac): ... to here.
10073
10074 2011-05-08  Bruno Haible  <bruno@clisp.org>
10075
10076         getline: Simplify.
10077         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10078         It's already handled through the module dependency.
10079
10080 2011-05-08  Bruno Haible  <bruno@clisp.org>
10081
10082         getdelim: Move AC_LIBOBJ invocations to module description.
10083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10084         and gl_PREREQ_GETDELIM invocations from here...
10085         * modules/getdelim (configure.ac): ... to here.
10086         (Depends-on): Fix condition.
10087
10088 2011-05-08  Bruno Haible  <bruno@clisp.org>
10089
10090         getcwd: Move AC_LIBOBJ invocations to module description.
10091         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10092         invocations from here...
10093         * modules/getcwd (configure.ac): ... to here.
10094
10095 2011-05-08  Bruno Haible  <bruno@clisp.org>
10096
10097         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10098         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10099         here...
10100         * modules/getcwd-lgpl (configure.ac): ... to here.
10101
10102 2011-05-07  Bruno Haible  <bruno@clisp.org>
10103
10104         crypto/gc: Move AC_LIBOBJ invocations to module description.
10105         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10106         * modules/crypto/gc (configure.ac): ... to here.
10107
10108 2011-05-07  Bruno Haible  <bruno@clisp.org>
10109
10110         fwriting: Move AC_LIBOBJ invocations to module description.
10111         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10112         here...
10113         * modules/fwriting (configure.ac): ... to here.
10114
10115 2011-05-07  Bruno Haible  <bruno@clisp.org>
10116
10117         fwritable: Move AC_LIBOBJ invocations to module description.
10118         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10119         here...
10120         * modules/fwritable (configure.ac): ... to here.
10121
10122 2011-05-07  Bruno Haible  <bruno@clisp.org>
10123
10124         futimens: Move AC_LIBOBJ invocations to module description.
10125         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10126         here...
10127         * modules/futimens (configure.ac): ... to here.
10128
10129 2011-05-07  Bruno Haible  <bruno@clisp.org>
10130
10131         ftruncate: Move AC_LIBOBJ invocations to module description.
10132         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10133         gl_PREREQ_FTRUNCATE invocations from here...
10134         * modules/ftruncate (configure.ac): ... to here.
10135
10136 2011-05-07  Bruno Haible  <bruno@clisp.org>
10137
10138         fsync: Move AC_LIBOBJ invocations to module description.
10139         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10140         invocations from here...
10141         * modules/fsync (configure.ac): ... to here.
10142
10143 2011-05-07  Bruno Haible  <bruno@clisp.org>
10144
10145         fsusage: Move AC_LIBOBJ invocations to module description.
10146         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10147         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10148         * modules/fsusage (configure.ac): ... to here.
10149
10150 2011-05-07  Bruno Haible  <bruno@clisp.org>
10151
10152         freopen: Move AC_LIBOBJ invocations to module description.
10153         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10154         invocations from here...
10155         * modules/freopen (configure.ac): ... to here.
10156
10157 2011-05-07  Bruno Haible  <bruno@clisp.org>
10158
10159         free: Move AC_LIBOBJ invocations to module description.
10160         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10161         invocations from here...
10162         * modules/free (configure.ac): ... to here.
10163
10164 2011-05-07  Bruno Haible  <bruno@clisp.org>
10165
10166         freadable: Move AC_LIBOBJ invocations to module description.
10167         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10168         here...
10169         * modules/freadable (configure.ac): ... to here.
10170
10171 2011-05-07  Bruno Haible  <bruno@clisp.org>
10172
10173         fpurge: Move AC_LIBOBJ invocations to module description.
10174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10175         invocations from here...
10176         * modules/fpurge (configure.ac): ... to here.
10177
10178 2011-05-07  Bruno Haible  <bruno@clisp.org>
10179
10180         fpending: Move AC_LIBOBJ invocations to module description.
10181         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10182         gl_FUNC_FPENDING.
10183         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10184         invocations from here...
10185         * modules/fpending (configure.ac): ... to here.
10186
10187 2011-05-07  Bruno Haible  <bruno@clisp.org>
10188
10189         fopen: Move AC_LIBOBJ invocations to module description.
10190         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10191         invocations from here...
10192         * modules/fopen (configure.ac): ... to here.
10193
10194 2011-05-07  Bruno Haible  <bruno@clisp.org>
10195
10196         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10197         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10198         gl_FUNC_FNMATCH_POSIX.
10199         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10200         invocations from here...
10201         * modules/fnmatch (configure.ac): ... to here.
10202         * modules/fnmatch-gnu (configure.ac): ... and here.
10203
10204 2011-05-07  Bruno Haible  <bruno@clisp.org>
10205
10206         flock: Move AC_LIBOBJ invocations to module description.
10207         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10208         invocations from here...
10209         * modules/flock (configure.ac): ... to here.
10210
10211 2011-05-07  Bruno Haible  <bruno@clisp.org>
10212
10213         fileblocks: Move AC_LIBOBJ invocations to module description.
10214         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10215         gl_PREREQ_FILEBLOCKS invocations from here...
10216         * modules/fileblocks (configure.ac): ... to here.
10217
10218 2011-05-06  Bruno Haible  <bruno@clisp.org>
10219
10220         fflush: Move AC_LIBOBJ invocations to module description.
10221         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10222         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10223         invocations from here...
10224         * modules/fflush (configure.ac): ... to here.
10225
10226 2011-05-06  Bruno Haible  <bruno@clisp.org>
10227
10228         fdopendir: Move AC_LIBOBJ invocations to module description.
10229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10230         here...
10231         * modules/fdopendir (configure.ac): ... to here.
10232         (Depends-on): Improve conditions.
10233
10234 2011-05-06  Bruno Haible  <bruno@clisp.org>
10235
10236         _Exit: Move AC_LIBOBJ invocations to module description.
10237         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10238         invocations from here...
10239         * modules/_Exit (configure.ac): ... to here.
10240
10241 2011-05-21  Bruno Haible  <bruno@clisp.org>
10242
10243         euidaccess: Respect rules for use of AC_LIBOBJ.
10244         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10246         from here...
10247         * modules/euidaccess (configure.ac): ... to here.
10248
10249 2011-05-06  Bruno Haible  <bruno@clisp.org>
10250
10251         error: Move AC_LIBOBJ invocations to module description.
10252         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10253         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10254         invocations from here...
10255         * modules/error (configure.ac): ... to here.
10256
10257 2011-05-06  Bruno Haible  <bruno@clisp.org>
10258
10259         duplocale: Move AC_LIBOBJ invocations to module description.
10260         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10261         gl_PREREQ_DUPLOCALE invocations from here...
10262         * modules/duplocale (configure.ac): ... to here.
10263
10264 2011-05-05  Bruno Haible  <bruno@clisp.org>
10265
10266         dirfd: Move AC_LIBOBJ invocations to module description.
10267         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10268         gl_FUNC_DIRFD.
10269         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10270         here...
10271         * modules/dirfd (configure.ac): ... to here.
10272         (Depends-on): Fix condition.
10273
10274 2011-05-05  Bruno Haible  <bruno@clisp.org>
10275
10276         chown: Respect rules for use of AC_LIBOBJ.
10277         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10278         * modules/chown (configure.ac): ... to here.
10279
10280 2011-05-05  Bruno Haible  <bruno@clisp.org>
10281
10282         chdir-long: Move AC_LIBOBJ invocations to module description.
10283         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10284         gl_PREREQ_CHDIR_LONG invocations from here...
10285         * modules/chdir-long (configure.ac): ... to here.
10286
10287 2011-05-05  Bruno Haible  <bruno@clisp.org>
10288
10289         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10290         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10291         from here...
10292         * modules/canonicalize-lgpl (configure.ac): ... to here.
10293
10294 2011-05-05  Bruno Haible  <bruno@clisp.org>
10295
10296         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10297         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10298         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10299         REPLACE_CALLOC.
10300         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10301         * modules/calloc-gnu (configure.ac): Likewise.
10302
10303 2011-05-05  Bruno Haible  <bruno@clisp.org>
10304
10305         btowc: Move AC_LIBOBJ invocations to module description.
10306         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10307         invocations from here...
10308         * modules/btowc (configure.ac): ... to here.
10309
10310 2011-05-21  Bruno Haible  <bruno@clisp.org>
10311
10312         atexit: Move AC_LIBOBJ invocations to module description.
10313         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10314         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10315         here...
10316         * modules/atexit (configure.ac): ... to here.
10317
10318 2011-05-05  Bruno Haible  <bruno@clisp.org>
10319
10320         atoll: Move AC_LIBOBJ invocations to module description.
10321         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10322         invocations from here...
10323         * modules/atoll (configure.ac): ... to here.
10324
10325 2011-05-05  Bruno Haible  <bruno@clisp.org>
10326
10327         argz: Move AC_LIBOBJ invocations to module description.
10328         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10329         * modules/argz (configure.ac): ... to here.
10330
10331 2011-05-05  Bruno Haible  <bruno@clisp.org>
10332
10333         alphasort: Move AC_LIBOBJ invocations to module description.
10334         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10335         gl_PREREQ_ALPHASORT invocations from here...
10336         * modules/alphasort (configure.ac): ... to here.
10337
10338 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10339
10340         verify: new macro verify_expr; verify_true deprecated
10341         * NEWS: Mention this.
10342         * doc/verify.texi (Compile-time Assertions): Document this.
10343         * lib/verify.h (verify_true): Deprecate.
10344         (verify_expr): New macro.
10345         * tests/test-verify.c (function): Test verify_expr.
10346
10347 2011-06-14  Jim Meyering  <meyering@redhat.com>
10348
10349         init.sh: give more portable redirection-related advice in a comment
10350         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10351         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10352         for lots of discussion.  Stefano Lattarini suggested the solution
10353         of putting "9>&2" after the command.  Reported by Bruno Haible.
10354
10355 2011-06-13  Bruno Haible  <bruno@clisp.org>
10356
10357         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10359         'none'.
10360
10361 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10362
10363         ftoastr: use strtof only if HAVE_STRTOF
10364         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10366         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10367         * modules/ftoastr (configure.ac): Check for strtof.
10368
10369 2011-06-13  Bruno Haible  <bruno@clisp.org>
10370
10371         gnulib-tool: Addendum to 2011-06-08 commit.
10372         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10373         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10374
10375 2011-06-13  Bruno Haible  <bruno@clisp.org>
10376
10377         fseeko: Provide a non-inline replacement of fseek().
10378         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10379         * modules/fseeko (Depends-on): Add fseek.
10380         * modules/fseek (License): Change to LGPLv2+.
10381
10382 2011-06-13  Bruno Haible  <bruno@clisp.org>
10383
10384         ftello: Provide a non-inline replacement of ftell().
10385         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10386         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10387         not have ftello() (such as on mingw).
10388         * modules/ftello (Depends-on): Add ftell.
10389         * modules/ftell (License): Change to LGPLv2+.
10390
10391 2011-05-07  Bruno Haible  <bruno@clisp.org>
10392
10393         ftell: Move AC_LIBOBJ invocations to module description.
10394         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10395         * modules/ftell (configure.ac): ... to here.
10396
10397 2011-05-07  Bruno Haible  <bruno@clisp.org>
10398
10399         ftello: Respect rules for use of AC_LIBOBJ.
10400         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10401         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10402         here...
10403         * modules/ftello (configure.ac): ... to here.
10404
10405 2011-05-07  Bruno Haible  <bruno@clisp.org>
10406
10407         fseeko: Simplify.
10408         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10409         (gl_FUNC_FSEEKO): Inline it here.
10410
10411 2011-05-07  Bruno Haible  <bruno@clisp.org>
10412
10413         fseek: Move AC_LIBOBJ invocations to module description.
10414         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10415         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10416         * modules/fseek (configure.ac): ... to here.
10417
10418 2011-05-07  Bruno Haible  <bruno@clisp.org>
10419
10420         fseek: Respect rules for use of AC_LIBOBJ.
10421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10422         here...
10423         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10424
10425 2011-05-07  Bruno Haible  <bruno@clisp.org>
10426
10427         fseeko: Respect rules for use of AC_LIBOBJ.
10428         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10429         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10430         here...
10431         * modules/fseeko (configure.ac): ... to here.
10432
10433 2011-06-13  Bruno Haible  <bruno@clisp.org>
10434
10435         gnulib-tool: Allow comments in the 'Depends-on' section.
10436         * doc/gnulib.texi (Module description): Mention comment syntax in the
10437         Depends-on section.
10438         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10439
10440 2011-06-13  Bruno Haible  <bruno@clisp.org>
10441
10442         file-set.h: guard __attibute__ use, now that it's not always defined
10443         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10444         versions that support it.  This fixes a coreutils build failure with
10445         the vendor cc on HP-UX 11.31.
10446
10447 2011-06-12  Bruno Haible  <bruno@clisp.org>
10448
10449         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10450         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10451         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10452         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10453         (acl, aclsort): New declarations.
10454         (aclv_nontrivial): New declaration.
10455         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10456         (file_has_acl): Read also the second kind of HP-UX ACLs.
10457         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10458         kind of HP-UX ACLs if the first kind fails.
10459         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10460         second kind of HP-UX ACLs.
10461         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10462         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10463         agree.
10464         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10465         hpuxjfs.
10466         Handle hpuxjfs.
10467         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10468         hpuxjfs.
10469         Handle hpuxjfs.
10470         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10471         (func_test_same_acls): Use both lsacl and getacl.
10472         Handle hpuxjfs.
10473         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10474         (func_test_same_acls): Use both lsacl and getacl.
10475         Handle hpuxjfs.
10476
10477 2011-06-12  Bruno Haible  <bruno@clisp.org>
10478
10479         acl: Complete the 2010-08-10 fix.
10480         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10481         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10482         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10483         explicitly.
10484         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10485         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10486
10487 2011-06-12  Bruno Haible  <bruno@clisp.org>
10488
10489         spawn-pipe tests: Comments.
10490         * tests/test-spawn-pipe-child.c (main): Update comment.
10491         Reported by James Youngman <jay@gnu.org>.
10492
10493 2011-06-11  James Youngman  <jay@gnu.org>
10494
10495         New module 'stat-size'.
10496         * modules/stat-size: New module.  Provides macros for accessing
10497         file size information in instances of struct stat.  Depends on the
10498         fileblocks module because it calls st_blocks.
10499         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10500         * doc/gnulib.texi: Include stat-size.texi.
10501         * doc/stat-size.texi: Documentation for this module.
10502         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10503         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10504         AC_STRUCT_ST_BLOCKS.
10505
10506 2011-06-09  Bruno Haible  <bruno@clisp.org>
10507
10508         thread: Support pthreads-win32.
10509         * lib/glthread/thread.h (gl_thread_self): Define differently on
10510         pthreads-win32.
10511         (gl_null_thread): New declaration.
10512         (gl_thread_self_pointer): New macro.
10513         * lib/glthread/thread.c (gl_null_thread): New constant.
10514         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10515         gl_thread_self.
10516         * tests/test-tls.c: Likewise.
10517         Suggested by Paul Eggert. Reported by Eric Blake.
10518
10519 2011-06-09  Bruno Haible  <bruno@clisp.org>
10520
10521         thread: Fix confusion between NULL and 0.
10522         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10523         Reported by Paul Eggert.
10524
10525 2011-06-09  Bruno Haible  <bruno@clisp.org>
10526
10527         spawn-pipe tests: Avoid test failure on HP-UX 11.
10528         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10529         is closed.
10530
10531 2011-06-09  Bruno Haible  <bruno@clisp.org>
10532
10533         acl tests: Fix compilation error on HP-UX 11.
10534         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10535
10536 2011-06-09  Bruno Haible  <bruno@clisp.org>
10537
10538         rmdir: Avoid test failure on HP-UX 10.20.
10539         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10540         EEXIST.
10541
10542 2011-06-08  Eric Blake  <eblake@redhat.com>
10543
10544         perror: fix test on mingw
10545         * modules/perror-tests (Depends-on): Add dup2.
10546
10547         strerror_r-posix: fix on MacOS
10548         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10550         logic bug.
10551         * lib/strerror_r.c (strerror_r): Fix the bug.
10552         * lib/strerror.c (strerror): Likewise.
10553         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10554         problem.
10555         * doc/posix-functions/strerror.texi (strerror): Likewise.
10556         * doc/posix-functions/perror.texi (perror): Likewise.
10557         * tests/test-strerror.c (main): Enhance test.
10558         * tests/test-strerror_r.c (main): Likewise.
10559
10560 2011-06-08  Bruno Haible  <bruno@clisp.org>
10561
10562         gnulib-tool: Better isolation between different gnulib-tool invocations.
10563         * gnulib-tool: New option --witness-c-macro.
10564         (witness_c_macro): New variable.
10565         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10566         AM_CPPFLAGS define it as a C macro.
10567         (func_emit_tests_Makefile_am): Likewise.
10568         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10569         read it from there.
10570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10571         m4_define, not AC_DEFUN.
10572         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10573         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10574         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10575         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10576         s|...|...|, to substitute the values of the GNULIB_* module indicator
10577         variables.
10578         * modules/dirent (Makefile.am): Likewise.
10579         * modules/fcntl-h (Makefile.am): Likewise.
10580         * modules/iconv-h (Makefile.am): Likewise.
10581         * modules/langinfo (Makefile.am): Likewise.
10582         * modules/locale (Makefile.am): Likewise.
10583         * modules/math (Makefile.am): Likewise.
10584         * modules/netdb (Makefile.am): Likewise.
10585         * modules/poll-h (Makefile.am): Likewise.
10586         * modules/pty (Makefile.am): Likewise.
10587         * modules/search (Makefile.am): Likewise.
10588         * modules/signal (Makefile.am): Likewise.
10589         * modules/spawn (Makefile.am): Likewise.
10590         * modules/stdio (Makefile.am): Likewise.
10591         * modules/stdlib (Makefile.am): Likewise.
10592         * modules/string (Makefile.am): Likewise.
10593         * modules/sys_ioctl (Makefile.am): Likewise.
10594         * modules/sys_select (Makefile.am): Likewise.
10595         * modules/sys_socket (Makefile.am): Likewise.
10596         * modules/sys_stat (Makefile.am): Likewise.
10597         * modules/sys_times (Makefile.am): Likewise.
10598         * modules/sys_utsname (Makefile.am): Likewise.
10599         * modules/sys_wait (Makefile.am): Likewise.
10600         * modules/termios (Makefile.am): Likewise.
10601         * modules/time (Makefile.am): Likewise.
10602         * modules/unistd (Makefile.am): Likewise.
10603         * modules/wchar (Makefile.am): Likewise.
10604
10605 2011-06-08  Eric Blake  <eblake@redhat.com>
10606
10607         strerror: simplify replacement
10608         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10609         * modules/strerror (configure.ac): No prereqs needed here...
10610         * modules/strerror-override (configure.ac): ...but this needs it.
10611         (Files): Add file for needed prereq macro.
10612
10613 2011-06-08  Bruno Haible  <bruno@clisp.org>
10614
10615         strerror_r-posix: Tweaks.
10616         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10617         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10618         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10619         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10620         (gl_FUNC_STRERROR_R): ... to here.
10621         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10622
10623 2011-06-07  Eric Blake  <eblake@redhat.com>
10624
10625         perror: document fixed bugs
10626         * doc/posix-functions/perror.texi (perror): Document recent
10627         patches.
10628
10629 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10630
10631         stat-time: get_stat_birthtime failure is better-defined
10632         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10633         return a timestamp whose tv_sec and tv_nsec values are both -1.
10634         Previously, the spec said only that the tv_nsec value was negative.
10635         This upward-compatible change simplifies GNU tar a bit.
10636
10637 2011-06-07  Eric Blake  <eblake@redhat.com>
10638
10639         strerror_r-posix: work around cygwin 1.7.9
10640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10641         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10642         bug without replacing strerror_r.
10643         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10644         strerror_r is buggy, but without requiring strerror_r compilation.
10645         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10646
10647         test-perror: relax test to ignore cygwin bug
10648         * tests/test-perror2.c (main): Relax test on requiring detection
10649         of stream errors, and use unbuffered stream.
10650         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10651         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10652         * doc/posix-functions/fputc.texi (fputc): Likewise.
10653         * doc/posix-functions/fputs.texi (fputs): Likewise.
10654         * doc/posix-functions/fputws.texi (fputws): Likewise.
10655         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10656         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10657         * doc/posix-functions/getopt.texi (getopt): Likewise.
10658         * doc/posix-functions/perror.texi (perror): Likewise.
10659         * doc/posix-functions/printf.texi (printf): Likewise.
10660         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10661         * doc/posix-functions/psignal.texi (psignal): Likewise.
10662         * doc/posix-functions/putc.texi (putc): Likewise.
10663         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10664         Likewise.
10665         * doc/posix-functions/putchar.texi (putchar): Likewise.
10666         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10667         Likewise.
10668         * doc/posix-functions/puts.texi (puts): Likewise.
10669         * doc/posix-functions/putwc.texi (putwc): Likewise.
10670         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10671         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10672         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10673         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10674         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10675         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10676         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10677         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10678
10679 2011-05-22  Bruno Haible  <bruno@clisp.org>
10680
10681         strerror: Move AC_LIBOBJ invocations to module description.
10682         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10683         gl_PREREQ_STRERROR invocations from here...
10684         * modules/strerror (configure.ac): ... to here.
10685
10686 2011-05-21  Bruno Haible  <bruno@clisp.org>
10687
10688         perror: Use common idiom.
10689         * modules/perror (configure.ac): Reorder statements.
10690
10691 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10692
10693         tests: fix usage message in 'mktempd_'
10694         * tests/init.sh (mktempd_): In the usage message, use literal
10695         'mktempd_', not '$ME' (which is even undefined), as the name of
10696         the subroutine.
10697
10698 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10699
10700         tests init: new function 'fatal_', for hard errors
10701         Before this patch, the only way offered by tests/init.sh to
10702         properly signal a hard error was the `framework_failure_'
10703         function.  But the error message issued by that function,
10704         as its name would suggest, refers to a set-up failure in the
10705         testsuite, while hard errors can obviously also be due to
10706         other reasons.  The best way to fix this inconsistency is to
10707         introduce a new function with a more general error message.
10708         * tests/init.sh (fatal_): New function.
10709
10710 2011-06-06  Eric Blake  <eblake@redhat.com>
10711
10712         canonicalize-lgpl: use common idiom
10713         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10714         over newer POSIX -Rf.
10715         Reported by Bruno Haible.
10716
10717         canonicalize-lgpl: work around AIX realpath bug
10718         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10719         * doc/posix-functions/realpath.texi (realpath): Document it.
10720         Reported by Bruno Haible.
10721
10722         strerror: work around FreeBSD bug
10723         * lib/strerror.c (strerror): Special case 0.
10724         Reported by Bruno Haible.
10725
10726         strerror-override: avoid bloating errno module
10727         * modules/errno (Files, configure.ac): Move replacement strings...
10728         * modules/strerror-override: ...to new module.
10729         * modules/strerror (Depends-on): Add strerror-override.
10730         * modules/strerror_r-posix (Depends-on): Likewise.
10731         * MODULES.html.sh: Document new module.
10732         Reported by Bruno Haible.
10733
10734 2011-06-06  Bruno Haible  <bruno@clisp.org>
10735
10736         spawn-pipe tests: Rename program.
10737         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10738         * tests/test-spawn-pipe-child.c: Update comment.
10739         * tests/test-spawn-pipe.sh: Update.
10740         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10741
10742         spawn-pipe tests: Link the child program only against libc.
10743         * tests/test-spawn-pipe-child.c: New file, extracted from
10744         tests/test-spawn-pipe.c.
10745         (main): Expect only one argument.
10746         (is_open): New function, copied from tests/test-pipe.c.
10747         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10748         (child_main): Remove function.
10749         (test_pipe): Pass only one argument to the child program.
10750         (main): Remove child process code. Expect the child program's name as
10751         first argument.
10752         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10753         argument.
10754         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10755         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10756         test-spawn-pipe-child against no libraries.
10757
10758 2011-06-06  Bruno Haible  <bruno@clisp.org>
10759
10760         careadlinkat: Avoid mismatch between ssize_t and int.
10761         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10762         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10763
10764 2011-06-06  Jim Meyering  <meyering@redhat.com>
10765
10766         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10767         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10768         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10769
10770 2011-06-05  Bruno Haible  <bruno@clisp.org>
10771
10772         ansi-c++-opt: Interoperability with libtool.
10773         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10774         set the variable to "no", not to ":".
10775         * NEWS: Mention the change.
10776
10777 2011-06-05  Bruno Haible  <bruno@clisp.org>
10778
10779         acl: Fix test failure on AIX 7.
10780         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10781         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10782
10783 2011-06-05  Bruno Haible  <bruno@clisp.org>
10784
10785         pipe-filter-ii: Fix test failure on AIX and IRIX.
10786         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10787         with EAGAIN, retry with a smaller buffer size.
10788
10789 2011-06-05  Bruno Haible  <bruno@clisp.org>
10790
10791         localename: Fix link dependencies.
10792         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10793         * modules/localename-tests (Makefile.am): Link test-localename with
10794         $(LIBTHREAD).
10795
10796 2011-06-05  Bruno Haible  <bruno@clisp.org>
10797
10798         error: Avoid gcc warning.
10799         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10800
10801 2011-06-05  Bruno Haible  <bruno@clisp.org>
10802
10803         unsetenv: Avoid gcc warning.
10804         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10805
10806 2011-06-05  Bruno Haible  <bruno@clisp.org>
10807
10808         setenv: Avoid gcc warning.
10809         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10810
10811 2011-06-05  Bruno Haible  <bruno@clisp.org>
10812
10813         sys_select: Ensure memset is declared also on AIX 7.
10814         * lib/sys_select.in.h: Include <string.h> also on AIX.
10815         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10816         self-contained also on AIX 7.1.
10817
10818 2011-06-04  Jim Meyering  <meyering@redhat.com>
10819
10820         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10821         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10822         function name, "error".
10823         (_gl_translatable_diag_func_re): New configurable variable.
10824
10825 2011-06-04  Bruno Haible  <bruno@clisp.org>
10826
10827         getopt: Avoid gcc warning.
10828         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10829
10830 2011-06-04  Bruno Haible  <bruno@clisp.org>
10831
10832         strerror_r: Fix comments.
10833         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10834         commit.
10835
10836 2011-06-04  Bruno Haible  <bruno@clisp.org>
10837
10838         perror: Fix compilation error.
10839         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10840         Undefine fprintf, not sprintf.
10841         * modules/perror (Depends-on): Remove intprops, verify.
10842
10843 2011-06-04  Bruno Haible  <bruno@clisp.org>
10844
10845         setlocale: Enable replacement on Cygwin 1.5.
10846         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10847         Cygwin 1.5.x.
10848         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10849         LC_CTYPE category also exists on Cygwin 1.5.x.
10850
10851 2011-06-04  Bruno Haible  <bruno@clisp.org>
10852
10853         strerror-override: Don't disable symbol renamings.
10854         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10855         * lib/strerror-override.c: Include config.h.
10856         (strerror_override): Don't undefine.
10857
10858 2011-06-03  Bruno Haible  <bruno@clisp.org>
10859
10860         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10861         * lib/localename.h: Update copyright header.
10862         * lib/localename.c: Likewise.
10863         * lib/relocatable.h: Likewise.
10864         * lib/relocatable.c: Likewise.
10865
10866 2011-06-02  Bruno Haible  <bruno@clisp.org>
10867
10868         doc: Fix a module name.
10869         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10870
10871 2011-06-02  Bruno Haible  <bruno@clisp.org>
10872
10873         pipe2: Remove dependency on 'nonblocking' module.
10874         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10875         O_NONBLOCK is defined by gnulib.
10876         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10877         is zero.
10878         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10879         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10880         defined by gnulib.
10881         (get_nonblocking_flag): New function.
10882         (main): Test O_NONBLOCK flag only if it is nonzero.
10883         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10884
10885 2011-06-03  Jim Meyering  <meyering@redhat.com>
10886
10887         maint: three new prohibit-header-without-use rules
10888         Prohibit use of cloexec.h, posixver.h, same.h without use.
10889         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10890         (sc_prohibit_posixver_without_use): Likewise.
10891         (sc_prohibit_same_without_use): Likewise.
10892
10893 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         allocator: 'die' routine is now given requested size
10896         * lib/allocator.h (struct allocator.die): New size arg.
10897         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10898         If the actual problem is an ssize_t limitation, not a size_t or
10899         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10900
10901 2011-06-01  Eric Blake  <eblake@redhat.com>
10902
10903         strerror: drop strerror_r dependency
10904         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10905         * lib/strerror-override.c (strerror_override): ...to new file.
10906         * lib/strerror-override.h: Add prototype.
10907         * lib/strerror-impl.h: Delete.
10908         * lib/strerror.c (strerror): New implementation.
10909         * modules/errno (Files): Add new files.
10910         (configure.ac): Compile new file as appropriate.
10911         * modules/strerror (Files): Drop unused file.
10912         (Depends-on): Drop strerror_r-posix.
10913         * MODULES.html.sh: Document strerror_r-posix.
10914         Requested by Sam Steingold.
10915
10916         perror: call strerror_r directly
10917         * modules/perror (Files): Drop strerror-impl.h.
10918         * lib/perror.c (perror): Use our own stack buffer, rather than
10919         calling a wrapper that uses static storage.
10920         * doc/posix-functions/perror.texi (perror): Document a limitation
10921         of our replacement.
10922
10923         strerror_r: fix includes for FreeBSD
10924         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10925         since we use abort on some platforms.
10926         Reported by Matthias Bolte.
10927
10928 2011-05-31  Bruno Haible  <bruno@clisp.org>
10929
10930         Fix link errors in tests: openat-die uses gettext-h.
10931         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10932         against $(LIBINTL).
10933         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10934         against $(LIBINTL).
10935         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10936         $(LIBINTL).
10937         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10938         against $(LIBINTL).
10939         * modules/linkat-tests (Makefile.am): Link test-linkat against
10940         $(LIBINTL).
10941         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10942         $(LIBINTL).
10943         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10944         against $(LIBINTL).
10945         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10946         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10947         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10948         $(LIBINTL).
10949         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10950         $(LIBINTL).
10951         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10952         $(LIBINTL).
10953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10954
10955 2011-05-31  Bruno Haible  <bruno@clisp.org>
10956
10957         Fix link errors in tests: wait-process uses gettext-h.
10958         * modules/nonblocking-pipe-tests (Makefile.am): Set
10959         test_nonblocking_pipe_main_LDADD.
10960         * modules/nonblocking-socket-tests (Makefile.am): Link
10961         test-nonblocking-socket-main against $(LIBINTL).
10962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10963
10964 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         assert-h: work around 'verify' incompatibility
10967         * lib/verify.h: Use @...@ directives, not ifdef.
10968         * modules/assert-h (assert.h): Implement the directives.
10969         (assert.h): Substitute the symbol-prefix more consistently.
10970
10971 2011-05-29  Jim Meyering  <meyering@redhat.com>
10972
10973         trim: remove three superfluous assignments
10974         * lib/trim.c (trim2): Remove three superfluous assignments
10975         and correct brace positioning.
10976
10977 2011-05-29  Bruno Haible  <bruno@clisp.org>
10978
10979         wctype-h: Avoid namespace pollution on Solaris 2.6.
10980         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10981         identifiers.
10982         * doc/posix-headers/wctype.texi: Mention the problem.
10983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10984
10985 2011-05-28  Jim Meyering  <meyering@redhat.com>
10986
10987         parse-datetime.y: accommodate -Wstrict-overflow
10988         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10989         placate -Wstrict-overflow.
10990
10991         trim: avoid a warning from -O2 -Wstrict-overflow
10992         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10993
10994 2011-05-29  Bruno Haible  <bruno@clisp.org>
10995
10996         gnulib-tool: Fix bug in yesterday's commit.
10997         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10998         twice.
10999
11000 2011-05-29  Bruno Haible  <bruno@clisp.org>
11001
11002         Allow multiple gnulib generated include files to be combined.
11003         * gnulib-tool (func_compute_include_guard_prefix): New function.
11004         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11005         ${gl_include_guard_prefix} references.
11006         (func_import, func_create_testdir): Invoke
11007         func_compute_include_guard_prefix.
11008         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11009         * lib/ctype.in.h: Likewise.
11010         * lib/dirent.in.h: Likewise.
11011         * lib/errno.in.h: Likewise.
11012         * lib/fcntl.in.h: Likewise.
11013         * lib/float.in.h: Likewise.
11014         * lib/getopt.in.h: Likewise.
11015         * lib/iconv.in.h: Likewise.
11016         * lib/langinfo.in.h: Likewise.
11017         * lib/locale.in.h: Likewise.
11018         * lib/math.in.h: Likewise.
11019         * lib/netdb.in.h: Likewise.
11020         * lib/netinet_in.in.h: Likewise.
11021         * lib/poll.in.h: Likewise.
11022         * lib/pthread.in.h: Likewise.
11023         * lib/pty.in.h: Likewise.
11024         * lib/sched.in.h: Likewise.
11025         * lib/se-selinux.in.h: Likewise.
11026         * lib/search.in.h: Likewise.
11027         * lib/signal.in.h: Likewise.
11028         * lib/spawn.in.h: Likewise.
11029         * lib/stdarg.in.h: Likewise.
11030         * lib/stddef.in.h: Likewise.
11031         * lib/stdint.in.h: Likewise.
11032         * lib/stdio.in.h: Likewise.
11033         * lib/stdlib.in.h: Likewise.
11034         * lib/string.in.h: Likewise.
11035         * lib/strings.in.h: Likewise.
11036         * lib/sys_file.in.h: Likewise.
11037         * lib/sys_ioctl.in.h: Likewise.
11038         * lib/sys_select.in.h: Likewise.
11039         * lib/sys_socket.in.h: Likewise.
11040         * lib/sys_stat.in.h: Likewise.
11041         * lib/sys_time.in.h: Likewise.
11042         * lib/sys_times.in.h: Likewise.
11043         * lib/sys_uio.in.h: Likewise.
11044         * lib/sys_utsname.in.h: Likewise.
11045         * lib/sys_wait.in.h: Likewise.
11046         * lib/sysexits.in.h: Likewise.
11047         * lib/termios.in.h: Likewise.
11048         * lib/time.in.h: Likewise.
11049         * lib/unistd.in.h: Likewise.
11050         * lib/wchar.in.h: Likewise.
11051         * lib/wctype.in.h: Likewise.
11052         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11053         * modules/ctype (Makefile.am): Likewise.
11054         * modules/dirent (Makefile.am): Likewise.
11055         * modules/errno (Makefile.am): Likewise.
11056         * modules/fcntl-h (Makefile.am): Likewise.
11057         * modules/float (Makefile.am): Likewise.
11058         * modules/getopt-posix (Makefile.am): Likewise.
11059         * modules/iconv-h (Makefile.am): Likewise.
11060         * modules/langinfo (Makefile.am): Likewise.
11061         * modules/locale (Makefile.am): Likewise.
11062         * modules/math (Makefile.am): Likewise.
11063         * modules/netdb (Makefile.am): Likewise.
11064         * modules/netinet_in (Makefile.am): Likewise.
11065         * modules/poll-h (Makefile.am): Likewise.
11066         * modules/pthread (Makefile.am): Likewise.
11067         * modules/pty (Makefile.am): Likewise.
11068         * modules/sched (Makefile.am): Likewise.
11069         * modules/search (Makefile.am): Likewise.
11070         * modules/selinux-h (Makefile.am): Likewise.
11071         * modules/signal (Makefile.am): Likewise.
11072         * modules/spawn (Makefile.am): Likewise.
11073         * modules/stdarg (Makefile.am): Likewise.
11074         * modules/stddef (Makefile.am): Likewise.
11075         * modules/stdint (Makefile.am): Likewise.
11076         * modules/stdio (Makefile.am): Likewise.
11077         * modules/stdlib (Makefile.am): Likewise.
11078         * modules/string (Makefile.am): Likewise.
11079         * modules/strings (Makefile.am): Likewise.
11080         * modules/sys_file (Makefile.am): Likewise.
11081         * modules/sys_ioctl (Makefile.am): Likewise.
11082         * modules/sys_select (Makefile.am): Likewise.
11083         * modules/sys_socket (Makefile.am): Likewise.
11084         * modules/sys_stat (Makefile.am): Likewise.
11085         * modules/sys_time (Makefile.am): Likewise.
11086         * modules/sys_times (Makefile.am): Likewise.
11087         * modules/sys_uio (Makefile.am): Likewise.
11088         * modules/sys_utsname (Makefile.am): Likewise.
11089         * modules/sys_wait (Makefile.am): Likewise.
11090         * modules/sysexits (Makefile.am): Likewise.
11091         * modules/termios (Makefile.am): Likewise.
11092         * modules/time (Makefile.am): Likewise.
11093         * modules/unistd (Makefile.am): Likewise.
11094         * modules/wchar (Makefile.am): Likewise.
11095         * modules/wctype-h (Makefile.am): Likewise.
11096         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11097
11098 2011-05-29  Bruno Haible  <bruno@clisp.org>
11099
11100         assert-h: Allow multiple gnulib generated replacements to coexist.
11101         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11102
11103 2011-05-29  Bruno Haible  <bruno@clisp.org>
11104
11105         argp: Allow coexistence with strerror_r-posix module.
11106         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11107         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11108         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11109         not the glibc signature.
11110
11111 2011-05-28  Bruno Haible  <bruno@clisp.org>
11112
11113         gnulib-tool: Alternative structure of testdirs, similar to --import.
11114         * gnulib-tool: New option --single-configure.
11115         (func_usage): Document it.
11116         (single_configure): New variable.
11117         (func_modules_transitive_closure_separately,
11118         func_modules_transitive_closure_separately,
11119         func_determine_use_libtests, func_modules_add_dummy_separately,
11120         func_modules_to_filelist_separately): New functions, extracted from
11121         func_import.
11122         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11123         (func_import): Use the new functions.
11124         (func_create_testdir): Set final_modules. Handle $single_configure =
11125         true case.
11126
11127 2011-05-28  Bruno Haible  <bruno@clisp.org>
11128
11129         getloadavg: Remove an unreliable safety check.
11130         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11131         getloadavg.c is in place.
11132         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11133         Reported by Sam Steingold <sds@gnu.org>.
11134
11135 2011-05-28  Bruno Haible  <bruno@clisp.org>
11136
11137         doc: Cleanup yet another file produced by texinfo.tex.
11138         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11139
11140 2011-05-28  Bruno Haible  <bruno@clisp.org>
11141
11142         Finish the conditional dependencies mechanism.
11143         * gnulib-tool: New option --no-conditional-dependencies.
11144         (func_usage): Document it. Don't mark --conditional-dependencies as
11145         experimental.
11146         (cond_dependencies): The possible values can now be true, false, empty.
11147         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11148         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11149         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11150
11151 2011-05-28  Bruno Haible  <bruno@clisp.org>
11152
11153         doc: Use a recent texinfo.tex.
11154         * doc/Makefile (tex_opts): New variable.
11155         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11156
11157 2011-05-28  Jim Meyering  <meyering@redhat.com>
11158
11159         intprops.h: adjust comment to match code change
11160         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11161         only once, it *may* have side effects.  Also fix an unrelated typo.
11162         (_GL_INT_SIGNED): Likewise.
11163
11164 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11165
11166         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11167
11168 2011-05-26  Bruno Haible  <bruno@clisp.org>
11169
11170         mbsrchr: Avoid collision with system function on Interix.
11171         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11172         Reported by Markus Duft <mduft@gentoo.org>.
11173
11174 2011-05-15  James Youngman  <jay@gnu.org>
11175
11176         getopt: for ambiguous options, enumerate the possibilities.
11177         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11178         the ambiguous options when an ambiguous prefix is given. This was
11179         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11180         glibc change was
11181         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11182
11183 2011-05-25  Eric Blake  <eblake@redhat.com>
11184
11185         getcwd: work around mingw bug
11186         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11187         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11188         Reported by Matthias Bolte.
11189
11190 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         test-intprops: disable -Wtype-limits diagnostics
11193         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11194         diagnostics.  Otherwise, the integer overflow macros generate many
11195         diagnostics.  Reported by Jim Meyering in
11196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11197
11198         intprops: shorten, to pacify gcc -Woverlength-strings
11199         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11200         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11201         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11202         likely to run afoul of C compiler limits for string constant lengths.
11203         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11204
11205 2011-05-24  Eric Blake  <eblake@redhat.com>
11206
11207         docs: document recently fixed glibc printf bug
11208         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11209         * doc/posix-functions/printf.texi (printf): Likewise.
11210         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11211         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11212
11213         closein-tests: convert to init.sh
11214         * modules/closein-tests (Files): Add init.sh
11215         * tests/test-closein.sh Use it.
11216
11217         yesno-tests: convert to init.sh
11218         * modules/yesno-tests (Files): Add init.sh.
11219         * tests/test-yesno.sh: Use it.
11220
11221         atexit-tests: ensure reliable exit status
11222         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11223         Reported by Bruno Haible.
11224
11225 2011-05-24  Bruno Haible  <bruno@clisp.org>
11226
11227         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11229         gl_PREREQ_STRERROR_R invocations from here...
11230         * modules/strerror_r-posix (configure.ac): ... to here.
11231
11232 2011-05-24  Eric Blake  <eblake@redhat.com>
11233
11234         strerror_r: fix missing header
11235         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11236
11237         strerror_r: fix AIX test failures
11238         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11239         ERANGE failure.
11240
11241         strerror_r: fix Solaris test failures
11242         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11243         failures.
11244         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11245
11246         strerror_r: enforce POSIX recommendations
11247         * lib/strerror_r.c (safe_copy): New helper method.
11248         (strerror_r): Guarantee a non-empty string.
11249         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11250         recent POSIX rulings and to match our strerror guarantees.
11251         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11252
11253 2011-05-24  Jim Meyering  <meyering@redhat.com>
11254
11255         test-perror2.c: avoid warning about unused variable
11256         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11257
11258 2011-05-24  Eric Blake  <eblake@redhat.com>
11259
11260         perror: avoid spurious test failure on HP-UX
11261         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11262
11263         tests: fix logic bug in init.sh
11264         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11265         shell.
11266
11267 2011-05-24  Jim Meyering  <meyering@redhat.com>
11268
11269         utimensat: do not reference an out-of-scope buffer
11270         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11271         declared in an inner scope, yet "times" would be dereferenced outside
11272         the scope in which "ts" was valid.
11273         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11274         of ts[2] "out/up", so that the use of aliased "times" (via
11275         "times = ts;") does not end up referencing an out-of-scope "ts"
11276
11277         opendir-safer.c: don't clobber errno; don't close negative FD
11278         * lib/opendir-safer.c (opendir_safer):
11279         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11280         file descriptor, and more importantly, don't clobber the
11281         offending errno value with EINVAL.  Before, upon failure
11282         of dup_safer, we would pass the negative file descriptor to
11283         fdopendir, which would clobber errno.
11284
11285 2011-05-23  Bruno Haible  <bruno@clisp.org>
11286
11287         idcache: Fix module description.
11288         * modules/idcache (Include): Set to "idcache.h".
11289
11290 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11291
11292         gnulib-tool: fix portability problem with MacOS sed
11293         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11294         before the "}".  Problem reported by Leo in
11295         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11296         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11297         sed_extract_condition1, sed_extract_condition2.
11298
11299 2011-05-23  Bruno Haible  <bruno@clisp.org>
11300
11301         hash: Simplify autoconf macro.
11302         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11303
11304 2011-05-23  Bruno Haible  <bruno@clisp.org>
11305
11306         getugroups: Fix module description.
11307         * modules/getugroups (Include): Set to "getugroups.h".
11308
11309 2011-05-23  Bruno Haible  <bruno@clisp.org>
11310
11311         linkat: Simplify autoconf macro.
11312         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11313
11314 2011-05-23  Bruno Haible  <bruno@clisp.org>
11315             Eric Blake  <eblake@redhat.com>
11316
11317         linkat, renameat: Update dependencies.
11318         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11319         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11320         symlinkat.
11321
11322 2011-05-23  Jim Meyering  <meyering@redhat.com>
11323
11324         maint.mk: more tight_scope improvements
11325         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11326         (_gl_TS_headers): Define only in if-0'd block.
11327         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11328         sometimes we must *not* use it.  Adjust uses accordingly.
11329         (sc_tight_scope): Use much simpler grep-based test to determine
11330         whether we skip this rule.
11331
11332         maint.mk: generalize/improve the tight-scope rule
11333         * top/maint.mk: Emit a warning when the test is skipped.
11334         (_gl_TS_dir): Add $(srcdir)/ prefix.
11335         (_gl_TS_function_match): Simplify, rather than trying
11336         to enumerate common types.  Otherwise, it would fail to match an
11337         "extern unsigned char const *" declaration in idutils.
11338         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11339         a way to support use of that type of macro.
11340         (_gl_TS_var_match): Simplify regexp.
11341         (_gl_TS_obj_files): New configurable variable.
11342         (_gl_TS_headers): Likewise.
11343
11344 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11345
11346         verify: fix bug when gnulib <assert.h> is also included
11347         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11348         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11349         Perhaps there's a better way, but this fixes the immediate problem.
11350         Problem reported by Bruno Haible in
11351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11352
11353 2011-05-22  Bruno Haible  <bruno@clisp.org>
11354
11355         xgetcwd: Simplify autoconf macro.
11356         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11357
11358 2011-05-22  Bruno Haible  <bruno@clisp.org>
11359
11360         New module 'mktime-internal'.
11361         * modules/mktime-internal: New file.
11362         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11363         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11364         mktime_internal as a C macro if libc has __mktime_internal.
11365         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11366         conditions.
11367         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11368
11369 2011-05-22  Bruno Haible  <bruno@clisp.org>
11370
11371         timegm: Correct mktime replacement statements.
11372         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11373         defining mktime as a C macro. This completes a 2009-07-28 commit.
11374
11375 2011-05-22  Bruno Haible  <bruno@clisp.org>
11376
11377         timegm: Simplify autoconf macro.
11378         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11379
11380 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         clock-time: change to LGPLv2+.
11383         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11384         BSD-like but we have no mark for that; this is good enough for now.
11385
11386 2011-05-21  Bruno Haible  <bruno@clisp.org>
11387
11388         strerror_r: Fix comments.
11389         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11390
11391 2011-05-21  Bruno Haible  <bruno@clisp.org>
11392
11393         relocatable-prog-wrapper: Fix possible link error.
11394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11395         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11396         (gl_FUNC_SETENV): ... to here.
11397         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11398         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11399
11400 2011-05-21  Bruno Haible  <bruno@clisp.org>
11401
11402         relocatable-prog-wrapper: Assume strerror() exists.
11403         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11404         m4/strerror.m4.
11405         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11406         * lib/relocwrapper.c: Remove mention of strerror module.
11407         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11409         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11410         C macro.
11411
11412 2011-05-21  Bruno Haible  <bruno@clisp.org>
11413
11414         select: Simplify replacement idiom.
11415         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11416         Win32 platforms.
11417         * lib/sys_select.in.h (select): Simplify accordingly.
11418         * modules/select (Depends-on): Likewise.
11419
11420 2011-05-21  Bruno Haible  <bruno@clisp.org>
11421
11422         mkdir-p: Simplify autoconf macro.
11423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11424         gl_FUNC_LCHOWN.
11425
11426 2011-05-21  Eric Blake  <eblake@redhat.com>
11427
11428         strerror_r: avoid clobbering strerror on cygwin
11429         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11430         fall back instead to sys_errlist.
11431         * modules/strerror (configure.ac): Add witness.
11432         * tests/test-strerror_r.c (main): Enhance test.
11433         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11434         * tests/test-perror2.c (main): Free memory before exit.
11435
11436 2011-05-21  Bruno Haible  <bruno@clisp.org>
11437
11438         mkdtemp: Use gnulib naming conventions.
11439         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11440         * modules/mkdtemp (configure.ac): Update.
11441
11442 2011-05-20  Eric Blake  <eblake@redhat.com>
11443
11444         strerror_r: avoid corrupting errno on Solaris
11445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11446         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11447
11448         strerror_r: avoid compiler warning
11449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11450
11451         strerror_r: simplify AIX code
11452         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11453
11454         test-perror: avoid spurious failure on FreeBSD
11455         * modules/perror-tests (Depends-on): Add strerror, now that
11456         strerror_r no longer pulls it in.
11457
11458 2011-05-20  Bruno Haible  <bruno@clisp.org>
11459
11460         strerror_r-posix: Remove unused dependencies.
11461         * modules/strerror_r-posix (Depends-on): Remove strerror.
11462         Reported by Eric Blake.
11463
11464 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11465
11466         intprops: remove assumption about A|B representation
11467         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11468         is a valid integer if both A and B are.  Although this is true for
11469         all known practical hosts, the C standard doesn't guarantee it,
11470         and the code need not assume it.  Also, this change may work around
11471         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11473
11474 2011-05-20  Eric Blake  <eblake@redhat.com>
11475
11476         perror: work around FreeBSD bug
11477         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11478         is broken.  Move AC_LIBOBJ...
11479         * modules/perror (configure.ac): Here.
11480         * doc/posix-functions/perror.texi (perror): Document this.
11481         * tests/test-perror2.c (main): Enhance test.
11482
11483         test-perror: check for strerror interactions
11484         * tests/macros.h (STREQ): Add macro.
11485         * modules/perror-tests (Files): Add second test.
11486         * tests/test-perror2.c (main): New file.
11487         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11488
11489         test-perror: rewrite to use init script
11490         * modules/perror-tests (Files): Add init.sh.
11491         * tests/test-perror.sh: Use temporary directory.
11492
11493 2011-05-20  Jim Meyering  <meyering@redhat.com>
11494
11495         maint: replace misused "a" with "an"
11496         * doc/intprops.texi: "a integer"
11497         * doc/regex.texi: "a explanation"
11498         * lib/alignof.h: "a object"
11499         * lib/argmatch.h: "a explanation"
11500         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11501         * lib/stdint.in.h: "a integer"
11502         * lib/userspec.c: "a owner"
11503         * doc/gnulib.texi: Fix "a idea", and reword.
11504
11505 2011-05-19  Jim Meyering  <meyering@redhat.com>
11506
11507         maint: correct misuse of "a" and "an"
11508         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11509         * lib/argp-help.c: "an docum...": s/an/a/
11510         * lib/argp-parse.c: "An vector": s/An/A/
11511         * lib/execute.c: "an native": s/an/a/
11512         * lib/spawn-pipe.c: Likewise.
11513         * lib/gc.h: "an Gc_rc": s/an/a/
11514         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11515         * lib/fts.c: "an stat.st_dev": s/an/a/
11516
11517 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         intprops-tests: work around HP-UX 11.23 cc bug with constants
11520         * tests/test-intprops.c (VERIFY): New macro.
11521         (main): Use it, instead of verify, to work around the compiler bug; see
11522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11523
11524         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11525         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11526         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11527         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11528         (_GL_REMAINDER_OVERFLOW): Use it.
11529
11530         intprops-tests: revert unsigned part of previous change
11531         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11532         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11533         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11535
11536 2011-05-19  Bruno Haible  <bruno@clisp.org>
11537
11538         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11539         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11540         strerror_r() returned without filling the buffer.
11541         Reported by Eric Blake.
11542
11543 2011-05-19  Eric Blake  <eblake@redhat.com>
11544
11545         strerror_r: guarantee unchanged errno
11546         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11547         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11548         failure.
11549         * tests/test-strerror_r.c (main): Enhance test.
11550
11551 2011-05-19  Bruno Haible  <bruno@clisp.org>
11552
11553         strerror_r: Reorder #if blocks.
11554         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11555         for consistency with the previous commit.
11556
11557 2011-05-19  Bruno Haible  <bruno@clisp.org>
11558
11559         perror: Avoid clobbering the strerror buffer when possible.
11560         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11561         * lib/strerror.c: Include it.
11562         * modules/strerror (Files): Add lib/strerror-impl.h.
11563         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11564         (my_strerror): New function, defined through lib/strerror-impl.h.
11565         (perror): Use it instead of strerror.
11566         * modules/perror (Files): Add lib/strerror-impl.h.
11567         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11568
11569 2011-05-19  Eric Blake  <eblake@redhat.com>
11570
11571         strerror_r: fix on newer cygwin
11572         * lib/strerror_r.c (strerror_r): Cygwin now has
11573         __xpg_strerror_r, use it.
11574
11575 2011-05-19  Bruno Haible  <bruno@clisp.org>
11576
11577         strerror_r: Avoid clobbering the strerror buffer when possible.
11578         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11579         (sys_nerr, sys_errlist): New declarations.
11580         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11581         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11582         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11583
11584 2011-05-19  Bruno Haible  <bruno@clisp.org>
11585
11586         strerror_r: Fix test failure on mingw.
11587         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11588         EXTEND_STRERROR_R.
11589         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11590         macros from errno.in.h instead.
11591
11592 2011-05-19  Eric Blake  <eblake@redhat.com>
11593
11594         strerror: relax test for Solaris
11595         * tests/test-strerror.c (main): Permit Solaris behavior.
11596         * tests/test-strerror_r.c (main): Likewise.
11597
11598         strerror: enforce POSIX ruling on strerror(0)
11599         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11600         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11601         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11602         * doc/posix-functions/strerror.texi (strerror): Document it.
11603         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11604         * tests/test-strerror.c (main): Strengthen test.
11605         * tests/test-strerror_r.c (main): Likewise.
11606
11607 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11608
11609         intprop-tests: port to older and more-pedantic compilers
11610         * modules/intprops-tests (Files): Add tests/macros.h.
11611         * tests/test-intprops.c: Include macros.h.
11612         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11613         it's no longer documented to expand to an integer constant expression.
11614         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11615         argument is floating point, as it's no longer documented to expand
11616         to an integer constant expression in that case.
11617         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11618         compiler bugs reported by Bruno Haible.  See
11619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11620         (U0, U1): New constants, to work around the same bugs.  Also,
11621         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11622
11623         intprops: work around C compiler bugs
11624         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11625         bug in Sun C 5.11 2010/08/13 and other compilers; see
11626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11627
11628         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11629         * doc/intprops.texi (Integer Type Determination): Fix
11630         documentation for TYPE_IS_INTEGER: it returns an constant
11631         expression, not an integer constant expression.  Fix doc for
11632         TYPE_SIGNED: it returns an integer constant expression only if its
11633         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11634         hardly worth documented that way....)
11635
11636 2011-05-18  Bruno Haible  <bruno@clisp.org>
11637
11638         strerror_r: Avoid clobbering the strerror buffer when possible.
11639         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11640         Handle gnulib defined errno values here. When strerror() returns NULL
11641         or an empty string, return EINVAL.
11642         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11643         gnulib defined errno values here.
11644         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11645
11646 2011-05-18  Eric Blake  <eblake@redhat.com>
11647
11648         fnmatch: avoid compiler warning
11649         * lib/fnmatch_loop.c (FCT): Use correct type.
11650         Reported by Matthias Bolte.
11651
11652 2011-05-13  Jim Meyering  <meyering@redhat.com>
11653
11654         maint.mk: three new prohibit_<HDR>_without_use rules
11655         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11656         (sc_prohibit_stdio-safer_without_use): Likewise.
11657         (sc_prohibit_xfreopen_without_use): Likewise.
11658
11659 2011-05-17  Jim Meyering  <meyering@redhat.com>
11660
11661         announce-gen: fail if the NEWS delta is empty
11662         If there's nothing noteworthy in NEWS, then either you forgot
11663         or you shouldn't be releasing.
11664         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11665
11666 2011-05-17  Pádraig Brady <P@draigBrady.com>
11667
11668         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11669         reserved symbols starting with double underscore from the check.
11670
11671 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         intprops: add doc
11674         * doc/intprops.texi: New file, documenting intprops.
11675         * doc/gnulib.texi (Particular Modules): Include it.
11676
11677         verify: add doc to gnulib manual and fix example
11678         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11679         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11680         (Compile-time Assertions): Fix example so it can't overflow.
11681
11682 2011-05-17  Jim Meyering  <meyering@redhat.com>
11683
11684         warnings.m4: don't usurp save_CPPFLAGS variable name
11685         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11686
11687         doc: fix typo
11688         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11689
11690 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11691             Bruno Haible  <bruno@clisp.org>
11692
11693         doc: Tweak recent change.
11694         * README (Portability guidelines): Tweak new text.
11695         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11696         Interix 6.1.
11697
11698 2011-05-16  Eric Blake  <eblake@redhat.com>
11699
11700         inttypes: avoid autoconf warning
11701         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11702         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11703
11704 2011-05-16  Sam Steingold <sds@gnu.org>
11705         and Eric Blake  <eblake@redhat.com>
11706
11707         vc-list-files: accept multiple directory operands
11708         * build-aux/vc-list-files: Iterate over all remaining operands.
11709
11710 2011-05-16  Bruno Haible  <bruno@clisp.org>
11711
11712         Fix confusion regarding deprecated modules.
11713         * modules/calloc (Status, Notice): Mark module as deprecated, not
11714         obsolete.
11715         * modules/fnmatch-posix (Status, Notice): Likewise.
11716         * modules/getdate (Status, Notice): Likewise.
11717         * modules/getopt (Status, Notice): Likewise.
11718         * modules/malloc (Status, Notice): Likewise.
11719         * modules/pipe (Status, Notice): Likewise.
11720         * modules/realloc (Status, Notice): Likewise.
11721         * modules/rename-dest-slash (Status, Notice): Likewise.
11722         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11723         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11724         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11725         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11726         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11727
11728 2011-05-16  Bruno Haible  <bruno@clisp.org>
11729
11730         doc: List the target platforms.
11731         * doc/gnulib-intro.texi (Target Platforms): New section.
11732         * doc/gnulib.texi (Introduction): Update menu.
11733         * README (Portability guidelines): Refer to the new section. Update
11734         statement about oldest supported environment. Remove rationale why
11735         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11736         unportable C89 function.
11737         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11738         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11739
11740 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11741
11742         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11743
11744 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         intprops-tests: new module
11747         * modules/intprops-tests, tests/test-intprops.c: New files.
11748
11749         intprops: add safe, portable integer overflow checking
11750         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11751         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11752         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11753         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11754         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11755         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11756         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11757         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11758         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11759         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11760         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11761
11762 2011-05-12  James Youngman  <jay@gnu.org>
11763
11764         Add a test for glibc's Bugzilla bug #12378.
11765         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11766         doesn't allow the literal matching of a lone "[" (which is
11767         required by POSIX).
11768         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11769
11770 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11771
11772         Sync glibc change fixing Bugzilla bug #12378.
11773         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11774         beginning and fall back to matching as normal character if the
11775         string ends before the matching ']' is found.  This is what POSIX
11776         requires.
11777
11778 2011-05-13  Eric Blake  <eblake@redhat.com>
11779
11780         getcwd-lgpl: relax test for FreeBSD
11781         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11782         issue.
11783         * tests/test-getcwd-lgpl.c (main): Relax test.
11784         Reported by Matthias Bolte.
11785
11786 2011-05-11  Eric Blake  <eblake@redhat.com>
11787
11788         test-fflush: silence compiler warning
11789         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11790
11791 2011-05-11  Bruno Haible  <bruno@clisp.org>
11792
11793         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11794         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11795         * modules/canonicalize (Depends-on): Add 'nocrash'.
11796         * modules/canonicalize-lgpl (Depends-on): Likewise.
11797         * doc/posix-functions/realpath.texi: Update platforms list.
11798         Reported by Ryan Schmidt <ryandesign@macports.org>.
11799
11800 2011-05-11  Bruno Haible  <bruno@clisp.org>
11801
11802         group-member: Declare function in <unistd.h>.
11803         * lib/unistd.in.h (group_member): New declaration.
11804         * lib/group-member.h: Remove file.
11805         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11806         * tests/test-unistd-c++.cc: Check signature of group_member.
11807         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11808         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11809         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11810         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11811         HAVE_GROUP_MEMBER.
11812         * modules/group-member (Files): Remove lib/group-member.h.
11813         (Depends-on): Add unistd. Specify conditions.
11814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11815         (Include): Change to <unistd.h>.
11816         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11817         HAVE_GROUP_MEMBER.
11818         * NEWS: Mention the change.
11819         * lib/euidaccess.c: Don't include group-member.h.
11820
11821 2011-05-11  Bruno Haible  <bruno@clisp.org>
11822
11823         group-member: Document module.
11824         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11825         module.
11826
11827 2011-05-11  Bruno Haible  <bruno@clisp.org>
11828
11829         fclose: Fix mistake earlier today.
11830         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11831
11832 2011-05-11  Eric Blake  <eblake@redhat.com>
11833
11834         fclose: preserve fflush errors
11835         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11836         Reported by Jim Meyering.
11837
11838         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11839         * build-aux/bootstrap (check_versions): When no specific version
11840         is required, merely check that the app produces an exit status
11841         that indicates its existence.
11842
11843         maint.mk: drop redundant check
11844         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11845         the same but better.
11846
11847 2011-05-11  Bruno Haible  <bruno@clisp.org>
11848
11849         fclose: Fix possible link error.
11850         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11851         unregister_shadow_fd. Improve comments.
11852         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11853         Eric Blake.
11854
11855 2011-05-11  Jim Meyering  <meyering@redhat.com>
11856
11857         maint.mk: improve "can not" detection and generalize rule name
11858         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11859         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11860         Use the same technique as in sc_prohibit_doubled_word, so that
11861         we recognize "can not" also when the words are separated by a newline.
11862         Suggested by Eric Blake.
11863         (perl_filename_lineno_text_): Define.  Factored out of...
11864         (prohibit_doubled_word_): ...here.  Use the new definition.
11865         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11866         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11867         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11868
11869 2011-05-10  Eric Blake  <eblake@redhat.com>
11870
11871         fclose: avoid double close race when possible
11872         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11873         all but WINDOWS_SOCKETS.
11874
11875 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11876
11877         openat: correct new comment
11878         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11879
11880 2011-05-10  Jim Meyering  <meyering@redhat.com>
11881
11882         openat: add comments
11883         * lib/openat-proc.c (openat_proc_name): Add comments,
11884         mostly from Eric Blake.
11885
11886 2011-05-09  Eric Blake  <eblake@redhat.com>
11887
11888         openat: reduce syscalls in first probe of /proc
11889         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11890         be a directory.  Simplify the probe for .. bugs.
11891         * modules/openat (Depends-on): Drop same-inode.
11892         Reported by Bastien ROUCARIES.
11893
11894 2011-05-09  Jim Meyering  <meyering@redhat.com>
11895
11896         maint.mk: change semantics/name of tight_scope variables
11897         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11898         Rename variables to align with semantics that make them more useful.
11899
11900         maint.mk: tweak new rule's name not to impinge
11901         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11902         (sc_tight_scope): Use new rule name rather than $@-0.
11903
11904         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11905         * top/maint.mk (sc_tight_scope): New rule.
11906         (sc_tight_scope-0): New rule, ifdef'd out.
11907         (_gl_TS_dir): Default.
11908         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11909         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11910
11911 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11912
11913         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11914         Haible <bruno@clisp.org>.
11915
11916 2011-05-08  Bruno Haible  <bruno@clisp.org>
11917
11918         Comments.
11919         * m4/isnanf.m4: Add comment.
11920         * m4/isnanl.m4: Likewise.
11921
11922 2011-05-08  Bruno Haible  <bruno@clisp.org>
11923
11924         glob: Remove obsolete macro.
11925         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11926
11927 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11928
11929         intprops: Sun C 5.11 supports __typeof__
11930         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11931         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11932         which is new.
11933         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11934
11935         intprops: switch to usual gnulib indenting and naming
11936         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11937         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11938
11939         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11940
11941 2011-05-08  Jim Meyering  <meyering@redhat.com>
11942
11943         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11944         * top/maint.mk (release-prep): Use make's --no-print-directory
11945         option when generating the announcement.  This eliminates the
11946         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11947         generated announcement template.
11948
11949 2011-05-08  Bruno Haible  <bruno@clisp.org>
11950
11951         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11952         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11953         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11954
11955 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         ignore-value, verify: Omit include files from lib_SOURCES.
11958         * modules/ignore-value, modules/verify (Makefile.am):
11959         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11960         that leads Automake to duplicate use of am__objects_... variables
11961         in Makefile.in.  See
11962         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11963
11964 2011-05-07  Bruno Haible  <bruno@clisp.org>
11965
11966         fclose: Simplify autoconf macro.
11967         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11968         defined.
11969
11970 2011-05-07  Bruno Haible  <bruno@clisp.org>
11971
11972         canonicalize-lgpl: Fix autoconf macro ordering bug.
11973         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11974         gl_STDLIB_H_DEFAULTS.
11975
11976 2011-05-06  Eric Blake  <eblake@redhat.com>
11977
11978         maintainer-makefile: make sc_po_check easier to tune
11979         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11980         to probe for strings, such as an alternate location for gnulib.
11981
11982         fclose: guarantee behavior on seekable stdin
11983         * modules/fclose (Depends-on): Add fflush.
11984         * doc/posix-functions/fclose.texi (fclose): Document this.
11985         * tests/test-fclose.c (main): Make test for this unconditional.
11986
11987 2011-05-06  Bruno Haible  <bruno@clisp.org>
11988
11989         fflush, fpurge: Relicense under LGPLv2+.
11990         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11991         * modules/fpurge (License): Likewise.
11992         With permission from Eric Blake and Jim Meyering.
11993         Suggested by Eric Blake.
11994
11995 2011-05-06  Karl Berry  <karl@gnu.org>
11996
11997         * MODULES.html.sh (func_all_modules): remove exit.
11998
11999 2011-05-06  Jim Meyering  <meyering@redhat.com>
12000
12001         maint.mk: use info-gnu@ as the default only for a stable release
12002         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12003         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12004         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12006
12007 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12008
12009         assert-h: new module, which supports C1X-style static_assert
12010         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12011         * lib/verify.h: Revamp so that this can be copied into assert.h,
12012         while retaining the ability to use it standalone as before.
12013         Rename private identifiers so as not to encroach on the
12014         standard C namespace, since this is now used by assert.h.
12015         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12016         the old verify_true.
12017         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12018         the old verify_true.  Use _GL_VERIFY_TYPE.
12019         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12020         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12021         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12022         defined when this file is copied into the replacement assert.h.
12023         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12024         and _Static_assert is not built in.
12025         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12026         defined, and use the new macros mentioned above.
12027         * doc/posix-headers/assert.texi: Document this.
12028
12029 2011-05-05  Bruno Haible  <bruno@clisp.org>
12030
12031         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12032         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12033         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12034         gl_REPLACE_FCLOSE here.
12035         * modules/fflush (Depends-on): Remove fclose.
12036         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12037         combination with module 'fclose'.
12038
12039 2011-05-05  Bruno Haible  <bruno@clisp.org>
12040
12041         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12042         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12043         gl_FUNC_FFLUSH.
12044         (gl_FUNC_FFLUSH): Use it.
12045         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12047         gl_REPLACE_FSEEKO here.
12048
12049 2011-05-05  Bruno Haible  <bruno@clisp.org>
12050
12051         tzset: Relicense under LGPL.
12052         * modules/tzset (License): Change to LGPL.
12053         No agreement needed; it's a no-op.
12054
12055         strtoimax, strtoumax: Relicense under LGPL.
12056         * modules/strtoimax (License): Change to LGPL.
12057         * modules/strtoumax (License): Likewise.
12058         With permission from Jim Meyering, Paul Eggert:
12059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12061
12062         getgroups: Relicense under LGPL.
12063         * modules/getgroups (License): Change to LGPL.
12064         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12068
12069         nanosleep: Relicense under LGPL.
12070         * modules/nanosleep (License): Change to LGPL.
12071         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12072         Haible:
12073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12077
12078         futimens: Relicense under LGPL.
12079         * modules/futimens (License): Change to LGPL.
12080         With permission from Eric Blake:
12081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12082
12083         fflush: Relicense under LGPL.
12084         * modules/fflush (License): Change to LGPL.
12085         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12089
12090         tmpfile: Relicense under LGPL.
12091         * modules/tmpfile (License): Change to LGPL.
12092         With permission from Ben Pfaff:
12093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12094
12095         isfinite: Relicense under LGPL.
12096         * modules/isfinite (License): Change to LGPL.
12097         With permission from Ben Pfaff, Bruno Haible:
12098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12100
12101         acosl..tanl: Relicense under LGPL.
12102         * modules/acosl (License): Change to LGPL.
12103         * modules/asinl (License): Likewise.
12104         * modules/atanl (License): Likewise.
12105         * modules/cosl (License): Likewise.
12106         * modules/expl (License): Likewise.
12107         * modules/logl (License): Likewise.
12108         * modules/sinl (License): Likewise.
12109         * modules/sqrtl (License): Likewise.
12110         * modules/tanl (License): Likewise.
12111         Source code originally from glibc and Paolo Bonzini. Agreements:
12112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12114
12115 2011-05-05  Bruno Haible  <bruno@clisp.org>
12116
12117         signal: Define sighandler_t.
12118         * lib/signal.in.h (sighandler_t): New type.
12119         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12120         whether sighandler_t is defined.
12121         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12122         * modules/signal (Depends-on): Add extensions.
12123         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12124         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12125         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12126
12127 2011-05-05  Eric Blake  <eblake@redhat.com>
12128
12129         maint: remove useless REPLACE_*_H macros
12130         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12131         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12132         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12133         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12134         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12135         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12136         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12137         * m4/btowc.m4: Update callers.
12138         * m4/dirfd.m4: Likewise.
12139         * m4/duplocale.m4: Likewise.
12140         * m4/fchdir.m4: Likewise.
12141         * m4/fdopendir.m4: Likewise.
12142         * m4/inet_ntop.m4: Likewise.
12143         * m4/inet_pton.m4: Likewise.
12144         * m4/ioctl.m4: Likewise.
12145         * m4/mbrlen.m4: Likewise.
12146         * m4/mbrtowc.m4: Likewise.
12147         * m4/mbsinit.m4: Likewise.
12148         * m4/mbsnrtowcs.m4: Likewise.
12149         * m4/mbsrtowcs.m4: Likewise.
12150         * m4/poll.m4: Likewise.
12151         * m4/setlocale.m4: Likewise.
12152         * m4/wcrtomb.m4: Likewise.
12153         * m4/wcsnrtombs.m4: Likewise.
12154         * m4/wcsrtombs.m4: Likewise.
12155         * m4/wctob.m4: Likewise.
12156         * m4/wcwidth.m4: Likewise.
12157         * modules/posix_spawn: Likewise.
12158         * modules/posix_spawn_file_actions_addclose: Likewise.
12159         * modules/posix_spawn_file_actions_adddup2: Likewise.
12160         * modules/posix_spawn_file_actions_addopen: Likewise.
12161         * modules/posix_spawn_file_actions_destroy: Likewise.
12162         * modules/posix_spawn_file_actions_init: Likewise.
12163         * modules/posix_spawnattr_destroy: Likewise.
12164         * modules/posix_spawnattr_getflags: Likewise.
12165         * modules/posix_spawnattr_getpgroup: Likewise.
12166         * modules/posix_spawnattr_getschedparam: Likewise.
12167         * modules/posix_spawnattr_getschedpolicy: Likewise.
12168         * modules/posix_spawnattr_getsigdefault: Likewise.
12169         * modules/posix_spawnattr_getsigmask: Likewise.
12170         * modules/posix_spawnattr_init: Likewise.
12171         * modules/posix_spawnattr_setflags: Likewise.
12172         * modules/posix_spawnattr_setpgroup: Likewise.
12173         * modules/posix_spawnattr_setschedparam: Likewise.
12174         * modules/posix_spawnattr_setschedpolicy: Likewise.
12175         * modules/posix_spawnattr_setsigdefault: Likewise.
12176         * modules/posix_spawnattr_setsigmask: Likewise.
12177         * modules/posix_spawnp: Likewise.
12178
12179 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12180
12181         Add option to do-release-commit-and-tag to specify branch.
12182         * build-aux/do-release-commit-and-tag: Add --branch.
12183
12184 2011-05-03  Bruno Haible  <bruno@clisp.org>
12185
12186         Avoid unnecessary compilation units, through conditional dependencies.
12187         * modules/accept (Depends-on): Add conditions to the dependencies.
12188         * modules/acosl (Depends-on): Likewise.
12189         * modules/argz (Depends-on): Likewise.
12190         * modules/asinl (Depends-on): Likewise.
12191         * modules/atanl (Depends-on): Likewise.
12192         * modules/atoll (Depends-on): Likewise.
12193         * modules/bind (Depends-on): Likewise.
12194         * modules/btowc (Depends-on): Likewise.
12195         * modules/canonicalize-lgpl (Depends-on): Likewise.
12196         * modules/ceil (Depends-on): Likewise.
12197         * modules/ceilf (Depends-on): Likewise.
12198         * modules/ceill (Depends-on): Likewise.
12199         * modules/chdir-long (Depends-on): Likewise.
12200         * modules/chown (Depends-on): Likewise.
12201         * modules/close (Depends-on): Likewise.
12202         * modules/connect (Depends-on): Likewise.
12203         * modules/cosl (Depends-on): Likewise.
12204         * modules/dirfd (Depends-on): Likewise.
12205         * modules/dprintf (Depends-on): Likewise.
12206         * modules/dprintf-posix (Depends-on): Likewise.
12207         * modules/error (Depends-on): Likewise.
12208         * modules/euidaccess (Depends-on): Likewise.
12209         * modules/expl (Depends-on): Likewise.
12210         * modules/faccessat (Depends-on): Likewise.
12211         * modules/fchdir (Depends-on): Likewise.
12212         * modules/fclose (Depends-on): Likewise.
12213         * modules/fcntl (Depends-on): Likewise.
12214         * modules/fdopendir (Depends-on): Likewise.
12215         * modules/fflush (Depends-on): Likewise.
12216         * modules/floor (Depends-on): Likewise.
12217         * modules/floorf (Depends-on): Likewise.
12218         * modules/floorl (Depends-on): Likewise.
12219         * modules/fnmatch (Depends-on): Likewise.
12220         * modules/fopen (Depends-on): Likewise.
12221         * modules/fprintf-posix (Depends-on): Likewise.
12222         * modules/frexp (Depends-on): Likewise.
12223         * modules/frexp-nolibm (Depends-on): Likewise.
12224         * modules/frexpl (Depends-on): Likewise.
12225         * modules/frexpl-nolibm (Depends-on): Likewise.
12226         * modules/fseek (Depends-on): Likewise.
12227         * modules/fsusage (Depends-on): Likewise.
12228         * modules/ftell (Depends-on): Likewise.
12229         * modules/ftello (Depends-on): Likewise.
12230         * modules/futimens (Depends-on): Likewise.
12231         * modules/getcwd (Depends-on): Likewise.
12232         * modules/getcwd-lgpl (Depends-on): Likewise.
12233         * modules/getdelim (Depends-on): Likewise.
12234         * modules/getdomainname (Depends-on): Likewise.
12235         * modules/getgroups (Depends-on): Likewise.
12236         * modules/gethostname (Depends-on): Likewise.
12237         * modules/getline (Depends-on): Likewise.
12238         * modules/getlogin_r (Depends-on): Likewise.
12239         * modules/getopt-posix (Depends-on): Likewise.
12240         * modules/getpeername (Depends-on): Likewise.
12241         * modules/getsockname (Depends-on): Likewise.
12242         * modules/getsockopt (Depends-on): Likewise.
12243         * modules/getsubopt (Depends-on): Likewise.
12244         * modules/getusershell (Depends-on): Likewise.
12245         * modules/glob (Depends-on): Likewise.
12246         * modules/grantpt (Depends-on): Likewise.
12247         * modules/iconv_open (Depends-on): Likewise.
12248         * modules/iconv_open-utf (Depends-on): Likewise.
12249         * modules/inet_ntop (Depends-on): Likewise.
12250         * modules/inet_pton (Depends-on): Likewise.
12251         * modules/ioctl (Depends-on): Likewise.
12252         * modules/isapipe (Depends-on): Likewise.
12253         * modules/isfinite (Depends-on): Likewise.
12254         * modules/isinf (Depends-on): Likewise.
12255         * modules/lchown (Depends-on): Likewise.
12256         * modules/ldexpl (Depends-on): Likewise.
12257         * modules/link (Depends-on): Likewise.
12258         * modules/linkat (Depends-on): Likewise.
12259         * modules/listen (Depends-on): Likewise.
12260         * modules/logl (Depends-on): Likewise.
12261         * modules/lstat (Depends-on): Likewise.
12262         * modules/mbrlen (Depends-on): Likewise.
12263         * modules/mbrtowc (Depends-on): Likewise.
12264         * modules/mbsinit (Depends-on): Likewise.
12265         * modules/mbsnrtowcs (Depends-on): Likewise.
12266         * modules/mbsrtowcs (Depends-on): Likewise.
12267         * modules/mbtowc (Depends-on): Likewise.
12268         * modules/memcmp (Depends-on): Likewise.
12269         * modules/mkdir (Depends-on): Likewise.
12270         * modules/mkdtemp (Depends-on): Likewise.
12271         * modules/mkfifo (Depends-on): Likewise.
12272         * modules/mkfifoat (Depends-on): Likewise.
12273         * modules/mknod (Depends-on): Likewise.
12274         * modules/mkostemp (Depends-on): Likewise.
12275         * modules/mkostemps (Depends-on): Likewise.
12276         * modules/mkstemp (Depends-on): Likewise.
12277         * modules/mkstemps (Depends-on): Likewise.
12278         * modules/mktime (Depends-on): Likewise.
12279         * modules/nanosleep (Depends-on): Likewise.
12280         * modules/open (Depends-on): Likewise.
12281         * modules/openat (Depends-on): Likewise.
12282         * modules/perror (Depends-on): Likewise.
12283         * modules/poll (Depends-on): Likewise.
12284         * modules/popen (Depends-on): Likewise.
12285         * modules/posix_spawn (Depends-on): Likewise.
12286         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12287         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12288         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12289         * modules/posix_spawnp (Depends-on): Likewise.
12290         * modules/pread (Depends-on): Likewise.
12291         * modules/printf-posix (Depends-on): Likewise.
12292         * modules/ptsname (Depends-on): Likewise.
12293         * modules/putenv (Depends-on): Likewise.
12294         * modules/pwrite (Depends-on): Likewise.
12295         * modules/readline (Depends-on): Likewise.
12296         * modules/readlink (Depends-on): Likewise.
12297         * modules/readlinkat (Depends-on): Likewise.
12298         * modules/recv (Depends-on): Likewise.
12299         * modules/recvfrom (Depends-on): Likewise.
12300         * modules/regex (Depends-on): Likewise.
12301         * modules/remove (Depends-on): Likewise.
12302         * modules/rename (Depends-on): Likewise.
12303         * modules/renameat (Depends-on): Likewise.
12304         * modules/rmdir (Depends-on): Likewise.
12305         * modules/round (Depends-on): Likewise.
12306         * modules/roundf (Depends-on): Likewise.
12307         * modules/roundl (Depends-on): Likewise.
12308         * modules/rpmatch (Depends-on): Likewise.
12309         * modules/select (Depends-on): Likewise.
12310         * modules/send (Depends-on): Likewise.
12311         * modules/sendto (Depends-on): Likewise.
12312         * modules/setenv (Depends-on): Likewise.
12313         * modules/setlocale (Depends-on): Likewise.
12314         * modules/setsockopt (Depends-on): Likewise.
12315         * modules/shutdown (Depends-on): Likewise.
12316         * modules/sigaction (Depends-on): Likewise.
12317         * modules/signbit (Depends-on): Likewise.
12318         * modules/sigprocmask (Depends-on): Likewise.
12319         * modules/sinl (Depends-on): Likewise.
12320         * modules/sleep (Depends-on): Likewise.
12321         * modules/snprintf (Depends-on): Likewise.
12322         * modules/snprintf-posix (Depends-on): Likewise.
12323         * modules/socket (Depends-on): Likewise.
12324         * modules/sprintf-posix (Depends-on): Likewise.
12325         * modules/sqrtl (Depends-on): Likewise.
12326         * modules/stat (Depends-on): Likewise.
12327         * modules/strchrnul (Depends-on): Likewise.
12328         * modules/strdup-posix (Depends-on): Likewise.
12329         * modules/strerror (Depends-on): Likewise.
12330         * modules/strerror_r-posix (Depends-on): Likewise.
12331         * modules/strndup (Depends-on): Likewise.
12332         * modules/strnlen (Depends-on): Likewise.
12333         * modules/strptime (Depends-on): Likewise.
12334         * modules/strsep (Depends-on): Likewise.
12335         * modules/strsignal (Depends-on): Likewise.
12336         * modules/strstr-simple (Depends-on): Likewise.
12337         * modules/strtod (Depends-on): Likewise.
12338         * modules/strtoimax (Depends-on): Likewise.
12339         * modules/strtok_r (Depends-on): Likewise.
12340         * modules/strtoumax (Depends-on): Likewise.
12341         * modules/symlink (Depends-on): Likewise.
12342         * modules/symlinkat (Depends-on): Likewise.
12343         * modules/tanl (Depends-on): Likewise.
12344         * modules/tcgetsid (Depends-on): Likewise.
12345         * modules/tmpfile (Depends-on): Likewise.
12346         * modules/trunc (Depends-on): Likewise.
12347         * modules/truncf (Depends-on): Likewise.
12348         * modules/truncl (Depends-on): Likewise.
12349         * modules/uname (Depends-on): Likewise.
12350         * modules/unlink (Depends-on): Likewise.
12351         * modules/unlockpt (Depends-on): Likewise.
12352         * modules/unsetenv (Depends-on): Likewise.
12353         * modules/usleep (Depends-on): Likewise.
12354         * modules/utimensat (Depends-on): Likewise.
12355         * modules/vasprintf (Depends-on): Likewise.
12356         * modules/vdprintf (Depends-on): Likewise.
12357         * modules/vdprintf-posix (Depends-on): Likewise.
12358         * modules/vfprintf-posix (Depends-on): Likewise.
12359         * modules/vprintf-posix (Depends-on): Likewise.
12360         * modules/vsnprintf (Depends-on): Likewise.
12361         * modules/vsnprintf-posix (Depends-on): Likewise.
12362         * modules/vsprintf-posix (Depends-on): Likewise.
12363         * modules/wcrtomb (Depends-on): Likewise.
12364         * modules/wcscasecmp (Depends-on): Likewise.
12365         * modules/wcscspn (Depends-on): Likewise.
12366         * modules/wcsdup (Depends-on): Likewise.
12367         * modules/wcsncasecmp (Depends-on): Likewise.
12368         * modules/wcsnrtombs (Depends-on): Likewise.
12369         * modules/wcspbrk (Depends-on): Likewise.
12370         * modules/wcsrtombs (Depends-on): Likewise.
12371         * modules/wcsspn (Depends-on): Likewise.
12372         * modules/wcsstr (Depends-on): Likewise.
12373         * modules/wcstok (Depends-on): Likewise.
12374         * modules/wcswidth (Depends-on): Likewise.
12375         * modules/wctob (Depends-on): Likewise.
12376         * modules/wctomb (Depends-on): Likewise.
12377         * modules/wctype (Depends-on): Likewise.
12378         * modules/wcwidth (Depends-on): Likewise.
12379         * modules/write (Depends-on): Likewise.
12380
12381 2011-05-03  Bruno Haible  <bruno@clisp.org>
12382
12383         Support for conditional dependencies.
12384         * doc/gnulib.texi (Module description): Document the syntax of
12385         conditional dependencies.
12386         * gnulib-tool: New option --conditional-dependencies.
12387         (func_usage): Document it.
12388         (cond_dependencies): New variable.
12389         (func_get_automake_snippet_conditional,
12390         func_get_automake_snippet_unconditional): New functions, extracted from
12391         func_get_automake_snippet.
12392         (func_get_automake_snippet): Use them.
12393         (sed_first_32_chars): New variable.
12394         (func_module_shellfunc_name): New function.
12395         (func_module_shellvar_name): New function.
12396         (func_module_conditional_name): New function.
12397         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12398         func_cond_module_condition): New functions.
12399         (func_modules_transitive_closure): Add support for conditional
12400         dependencies.
12401         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12402         conditional automake snippet in an automake conditional.
12403         (func_emit_autoconf_snippets): Emit shell functions that contain the
12404         code for conditional modules.
12405         (func_import, func_create_testdir): Update specification.
12406
12407 2011-05-03  Eric Blake  <eblake@redhat.com>
12408
12409         test-getaddrinfo: report error information
12410         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12411
12412 2011-05-03  Jim Meyering  <meyering@redhat.com>
12413
12414         bootstrap: avoid build failure when $GZIP is set
12415         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12416         program name.  If defined at all, it is supposed to list gzip options.
12417         Reported by Alan Curry in http://debbugs.gnu.org/8609
12418
12419 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12420
12421         readme-release: new module with release instructions
12422         * modules/readme-release: New module.
12423         * top/README-release: New file, from coreutils, grep, diffutils.
12424         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12425
12426 2011-05-02  Eric Blake  <eblake@redhat.com>
12427
12428         fflush: also replace fclose when fixing fflush
12429         * modules/fflush (Depends-on): Add fclose.
12430         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12431         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12432         memstreams with no backing fd.
12433         * doc/posix-functions/fclose.texi (fclose): Document the use of
12434         fflush module to fix the bug.
12435         * tests/test-fclose.c (main): Relax test when fclose is used in
12436         isolation.
12437
12438         fclose: add some tests
12439         * modules/fclose-tests: New test module.
12440         * tests/test-fclose.c: New file.
12441         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12442
12443         fclose: reduced dependencies
12444         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12445         simpler lseek.
12446         * lib/fclose.c (rpl_fclose): Likewise.
12447         Reported by Simon Josefsson.
12448
12449         exit: drop remaining clients
12450         * modules/argmatch (Depends-on): Replace exit with stdlib.
12451         * modules/copy-file (Depends-on): Likewise.
12452         * modules/execute (Depends-on): Likewise.
12453         * modules/exitfail (Depends-on): Likewise.
12454         * modules/obstack (Depends-on): Likewise.
12455         * modules/pagealign_alloc (Depends-on): Likewise.
12456         * modules/pipe-filter-gi (Depends-on): Likewise.
12457         * modules/pipe-filter-ii (Depends-on): Likewise.
12458         * modules/savewd (Depends-on): Likewise.
12459         * modules/spawn-pipe (Depends-on): Likewise.
12460         * modules/wait-process (Depends-on): Likewise.
12461         * modules/xsetenv (Depends-on): Likewise.
12462         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12463         * modules/git-merge-changelog (Depends-on): Likewise.
12464         * modules/long-options (Depends-on): Likewise.
12465         * modules/pt_chown (Depends-on): Likewise.
12466         * modules/sysexits (Depends-on): Likewise.
12467
12468         freading: relax license from LGPLv3+ to LGPLv2+
12469         * modules/freading (License): Relax LGPL version.
12470
12471 2011-05-02  Bruno Haible  <bruno@clisp.org>
12472
12473         fchdir: Remove unused dependencies.
12474         * modules/fchdir (Depends-on): Remove include_next.
12475
12476 2011-05-02  Bruno Haible  <bruno@clisp.org>
12477
12478         gnulib-tool: Refactor.
12479         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12480         from func_emit_autoconf_snippets.
12481         (func_emit_autoconf_snippets): Use it.
12482
12483 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12484
12485         * NEWS: Document removal of 'exit'.
12486         * modules/exit: Remove file.
12487
12488 2011-05-01  Bruno Haible  <bruno@clisp.org>
12489
12490         Update DEPENDENCIES.
12491         * DEPENDENCIES (gettext): Recommend the newest release.
12492         Reported by Simon Josefsson.
12493
12494 2011-05-01  Bruno Haible  <bruno@clisp.org>
12495
12496         gnulib-tool: Reduce code duplication.
12497         * gnulib-tool (func_emit_autoconf_snippets): New function.
12498         (func_import, func_create_testdir): Use it.
12499
12500 2011-04-30  Eric Blake  <eblake@redhat.com>
12501
12502         fclose: don't fail on non-seekable input stream
12503         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12504         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12505         since fflush is allowed to fail in that case.
12506
12507 2011-04-30  Bruno Haible  <bruno@clisp.org>
12508
12509         dup3: cleanup
12510         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12511
12512 2011-04-30  Bruno Haible  <bruno@clisp.org>
12513
12514         netdb: Make it work in C++ mode.
12515         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12516         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12517         module.
12518         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12519         gl_MODULE_INDICATOR_FOR_TESTS.
12520         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12521         * modules/netdb-c++-tests: New file.
12522         * tests/test-netdb-c++.cc: New file.
12523
12524 2011-04-30  Bruno Haible  <bruno@clisp.org>
12525
12526         New modules 'vfscanf', 'vscanf'.
12527         * modules/vfscanf: New file.
12528         * modules/vscanf: New file.
12529         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12530         here.
12531         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12532         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12533
12534 2011-04-30  Bruno Haible  <bruno@clisp.org>
12535
12536         passfd: Add comments.
12537         * lib/passfd.c: Add comments about platforms.
12538
12539 2011-04-30  Bruno Haible  <bruno@clisp.org>
12540
12541         sys_uio: Make <sys/uio.h> self-contained.
12542         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12543         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12544
12545 2011-04-30  Bruno Haible  <bruno@clisp.org>
12546
12547         sys_socket: Ensure 'struct iovec' definition.
12548         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12549         <sys/socket.h>.
12550         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12551
12552 2011-04-30  Bruno Haible  <bruno@clisp.org>
12553
12554         sys_uio: Protect definition of 'struct iovec'.
12555         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12556         it as a C struct.
12557
12558 2011-04-30  Bruno Haible  <bruno@clisp.org>
12559
12560         manywarnings: fix indentation
12561         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12562
12563 2011-04-30  Pádraig Brady <P@draigBrady.com>
12564
12565         manywarnings: add -Wno-missing-field-initializers if needed.
12566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12567         option if it's needed to allow initialization with { 0, }
12568
12569 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12570
12571         announce-gen: cosmetic improvement
12572         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12573
12574 2011-04-29  Jim Meyering  <meyering@redhat.com>
12575
12576         vc-list-files: indent with spaces, not TABs
12577         * build-aux/vc-list-files: Convert leading TABs to spaces,
12578         to match the style of most other files in gnulib.
12579
12580         announce-gen: indent with spaces, not TABs
12581         * build-aux/announce-gen: Convert all TABs to spaces, to match
12582         the style of most other files in gnulib.
12583
12584 2011-04-29  Eric Blake  <eblake@redhat.com>
12585
12586         quotearg: avoid uninitialized variable use
12587         * lib/quotearg.c (quoting_options_from_style): Initialize
12588         remaining fields, and ensure that custom styles are only used via
12589         quoting_options rather than quoting_style.
12590
12591 2011-04-29  Jim Meyering  <meyering@redhat.com>
12592
12593         maint.mk: remove unused VC-tag variable
12594         * top/maint.mk (VC-tag): Remove unused variable.
12595
12596 2011-04-29  Bruno Haible  <bruno@clisp.org>
12597
12598         netdb: fix gai_strerror replacements
12599         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12600         * modules/netdb: Substitute it.
12601
12602 2011-04-29  Jim Meyering  <meyering@redhat.com>
12603
12604         test-getcwd.c: avoid new set-but-not-used warning
12605         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12606         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12607         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12608         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12609
12610         test-hash.c: avoid a new shadowing warning
12611         * tests/test-hash.c (main): Don't shadow "dup".
12612
12613 2011-04-28  Eric Blake  <eblake@redhat.com>
12614
12615         getaddrinfo: fix gai_strerror signature
12616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12617         and work around mingw with UNICODE defined.
12618         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12619         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12620         * modules/netdb (Makefile.am): Substitute it.
12621         * lib/netdb.in.h (gai_strerror): Declare replacement.
12622         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12623         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12624         the fix.
12625
12626         getsockopt: avoid compiler warning
12627         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12628         Reported by Matthias Bolte.
12629
12630         tests: drop unused link dependency
12631         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12632         * modules/dirent-safer-tests (Makefile.am): Likewise.
12633         * modules/fdopendir-tests (Makefile.am): Likewise.
12634         * modules/mkfifoat-tests (Makefile.am): Likewise.
12635         * modules/openat-safer-tests (Makefile.am): Likewise.
12636         * modules/openat-tests (Makefile.am): Likewise.
12637         * modules/readlinkat-tests (Makefile.am): Likewise.
12638         * modules/symlinkat-tests (Makefile.am): Likewise.
12639         * modules/linkat-tests (Makefile.am): Likewise.
12640         (Depends-on): Switch to filenamecat-lgpl.
12641         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12642         LIBINTL.
12643         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12644         * tests/test-linkat.c (main): Don't require xalloc.
12645
12646         hash, mgetgroups: drop xalloc dependency
12647         * lib/hash.c (includes): Adjust includes.
12648         * lib/mgetgroups.c (includes): Likewise.
12649         (xgetgroups): Move...
12650         * lib/xgetgroups.c: ...to new file.
12651         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12652         * modules/xgetgroups: New file, split from...
12653         * modules/mgetgroups: ...here.
12654         (Depends-on): Add xalloc-oversized.
12655         * modules/hash (Depends-on): Likewise.
12656         * modules/hash-tests (Depends-on): Drop xalloc.
12657         (test_hash_LDADD): Drop unused library.
12658         * tests/test-hash.c (main): Break xalloc dependency.
12659         (includes): Drop unused include.
12660
12661         xalloc-oversized: new module
12662         * modules/xalloc-oversized: New module.
12663         * modules/xalloc (Depends-on): Add it.
12664         * lib/xalloc.h (xalloc_oversized): Move...
12665         * lib/xalloc-oversized.h: ...into new file.
12666
12667         utimecmp: drop dependency on xmalloc
12668         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12669         due to memory pressure.
12670         * modules/utimecmp (Depends-on): Drop xalloc.
12671
12672 2011-04-27  Eric Blake  <eblake@redhat.com>
12673
12674         getcwd: fix mingw bugs
12675         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12676         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12677         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12678
12679 2011-04-27  Bruno Haible  <bruno@clisp.org>
12680
12681         mkstemps: Ensure declaration on MacOS X 10.5.
12682         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12683         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12684         MacOS X.
12685
12686 2011-04-27  Bruno Haible  <bruno@clisp.org>
12687
12688         mkstemp: More documentation.
12689         * doc/posix-functions/mkstemp.texi: Document header file problem on
12690         MacOS X.
12691
12692 2011-04-27  Bruno Haible  <bruno@clisp.org>
12693
12694         mkstemp: Tweak configure message when cross-compiling.
12695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12696         result as a guess.
12697
12698 2011-04-27  Bruno Haible  <bruno@clisp.org>
12699
12700         clean-temp: Clarify what it does.
12701         * lib/clean-temp.h: Add more comments.
12702         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12703         module.
12704         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12705         * doc/glibc-functions/mkstemps.texi: Likewise.
12706         * doc/glibc-functions/mkostemps.texi: Likewise.
12707
12708 2011-04-27  Eric Blake  <eblake@redhat.com>
12709
12710         fchdir: avoid extra chdir and fix test
12711         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12712         getcwd-lgpl.
12713         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12714         have to be canonical.
12715         (canonicalize_file_name): Drop unused macro.
12716         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12717
12718         filenamecat-lgpl: fix licence
12719         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12720         when it was first created.
12721
12722         linkat, renameat: add missing dependency
12723         * modules/linkat (Depends-on): Require getcwd-lgpl.
12724         * modules/renameat (Depends-on): Likewise.
12725
12726         tests: reduce dependencies
12727         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12728         * tests/test-renameat.c (main): Likewise.
12729         * modules/linkat-tests (Depends-on): Relax dependency.
12730         * modules/renameat-tests (Depends-on): Likewise.
12731         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12732         dependency explicit.
12733
12734         save-cwd: reduce default dependency
12735         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12736         * lib/save-cwd.c: Update comments.
12737         * NEWS: Document the semantic change.
12738
12739         getcwd: enhance tests
12740         * tests/test-getcwd-lgpl.c: New file, taken from...
12741         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12742         repeat long path stress tests from m4 probe.
12743         * modules/getcwd-lgpl-tests: New module.
12744         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12745         * m4/getcwd-abort-bug.m4: Update comment.
12746         * m4/getcwd-path-max.m4: Likewise.
12747
12748         getcwd-lgpl: new module
12749         * modules/getcwd-lgpl: New module.
12750         * lib/getcwd-lgpl.c: New file.
12751         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12752         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12753         * modules/getcwd (configure.ac): Set C witness.
12754         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12755
12756         getcwd: tweak comments
12757         * m4/getcwd-abort-bug.m4: Fix comments.
12758         * m4/getcwd-path-max.m4: Likewise.
12759         * m4/getcwd.m4: Likewise.
12760
12761 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12762         and Eric Blake  <eblake@redhat.com>
12763
12764         mkstemp: replace if system version uses wrong permissions
12765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12766         read/write mode bits set in file created by mkstemp.
12767         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12768
12769 2011-04-27  Eric Blake  <eblake@redhat.com>
12770
12771         passfd: avoid compiler warning
12772         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12773         Reported by Laine Stump.
12774
12775 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12776
12777         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12778         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12779
12780 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12781         and Eric Blake  <eblake@redhat.com>
12782
12783         mkstemp: mention clean-temp module
12784         * lib/mkstemp.c: Add comment.
12785         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12786
12787 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         inttypes: also provide default values for 32-bit tests
12790         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12791         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12792
12793 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12794
12795         strtoumax: remove dependency on strtoimax
12796         This is like the strtoull change of yesterday.
12797         * modules/strtoumax (Files): Add lib/strtoimax.c.
12798         (Depends-on): Remove strtoimax and add verify.
12799
12800         inttypes-incomplete: new module
12801         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12802         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12803         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12804         of gl_INTTYPES_H.
12805         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12806         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12807         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12808         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12809         * modules/strtoumax, modules/xstrtol (Depends-on):
12810         Depend on inttypes-incomplete, not inttypes.
12811         * modules/inttypes-incomplete: New module, containing the contents
12812         of the old modules/inttypes module, except that the Files: section
12813         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12814         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12815         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12816         (Depends-on): Depend only on inttypes-incomplete.
12817         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12818
12819         inttypes: omit now-redundant strtoimax and strtoumax work
12820         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12821         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12822
12823         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12824         This supports apps that need pointers to strtoimax and strtoumax,
12825         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12826         nonexistent functions.  See
12827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12828         et seq.
12829         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12830         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12831         a macro.
12832         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12833
12834 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12835
12836         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12837
12838 2011-04-25  Bruno Haible  <bruno@clisp.org>
12839
12840         strtol, strtoul: Mark modules as obsolete.
12841         * modules/strtol (Status, Notice): New sections.
12842         * modules/strtoul (Status, Notice): New sections.
12843
12844 2011-04-25  Bruno Haible  <bruno@clisp.org>
12845
12846         strtod: Remove check for strtod, unless supporting old platforms.
12847         * modules/strtod-obsolete: New file.
12848         * m4/strtod-obsolete.m4: New file.
12849         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12850         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12851         * modules/strtod (Depends-on): Add strtod-obsolete.
12852         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12853
12854 2011-04-25  Bruno Haible  <bruno@clisp.org>
12855
12856         strcase: Make module obsolete.
12857         * modules/strcase (Status, Notice): New sections.
12858
12859 2011-04-25  Bruno Haible  <bruno@clisp.org>
12860
12861         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12862         * modules/dup2-obsolete: New file.
12863         * m4/dup2-obsolete.m4: New file.
12864         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12865         gl_FUNC_DUP2_OBSOLETE is not also defined.
12866         * modules/dup2 (Depends-on): Add dup2-obsolete.
12867         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12868
12869 2011-04-25  Bruno Haible  <bruno@clisp.org>
12870
12871         strnlen: Avoid memchr related link error on old obsolete platforms.
12872         * modules/memchr-obsolete: New file.
12873         * m4/memchr-obsolete.m4: New file.
12874         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12875         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12876         * modules/memchr (Depends-on): Add memchr-obsolete.
12877         * modules/strnlen (Depends-on): Likewise.
12878         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12879
12880 2011-04-25  Jim Meyering  <meyering@redhat.com>
12881
12882         maint.mk: makefile_at_at_check extend and clean up
12883         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12884         in addition to */Makefile.am.
12885         Exempt legitimate uses of @VAR@ notation, e.g.,
12886         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12887         Remove obsolete coreutils-specific comment.
12888         Prompted by discussion here:
12889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12890
12891 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12892
12893         strtoul: remove dependency on strtol
12894         This is so that 'configure' need not check for strtol merely because
12895         the application needs strtoul.
12896         * modules/strtoul (Files): Add lib/strtol.c.
12897         (Depends-on): Remove strtol.
12898
12899         strtoull: remove dependency on strtoul
12900         This is like the strtoll change.
12901         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12902         (Depends-on): Remove strtoul.
12903
12904         strtoll: remove dependency on strtol
12905         This is so that 'configure' need not check for strtol merely because
12906         the application needs strtoll.
12907         * modules/strtoll (Files): Add lib/strtol.c.
12908         (Depends-on): Remove strtol.
12909
12910 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12911
12912         inttypes: Move some configure check to module 'imaxdiv'.
12913         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12914         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12915         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12916
12917 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12918
12919         inttypes: Move some configure check to module 'imaxabs'.
12920         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12921         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12922         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12923
12924 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12925
12926         inttypes: Remove configure tests that are not needed since 2009-12-31.
12927         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12928         gl_cv_header_working_inttypes_h.
12929
12930 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12931
12932         * modules/strnlen (Depends-on): Remove memchr.
12933         The strnlen implementation doesn't need the memchr module's fixes; see
12934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12935
12936         strtol: remove dependency on wchar
12937         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12938         * modules/strtol (Depends-on): Remove wchar.
12939
12940 2011-04-21  Eric Blake  <eblake@redhat.com>
12941
12942         passfd: fix test regression on Linux
12943         * modules/passfd-tests (configure.ac): Correct socketpair check.
12944
12945         passfd: speed up configure and drop unused code
12946         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12947         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12948         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12949         Instead of probing at configure for unix_scm_rights_bsd44_way,
12950         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12951         check to a struct member probe.
12952         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12953         (sendfd, recvfd): Update preprocessor checks.
12954         * modules/passfd (Files): Reflect rename, and drop unused file.
12955         (Depends-on): Drop unused dependency.
12956
12957         passfd: allow compilation on mingw
12958         * modules/sys_socket (Depends-on): Add sys_uio.
12959         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12960         iovec and a minimal struct msghdr.
12961         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12962         * tests/test-sys_socket.c (main): Enhance test.
12963         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12964         guaranteed to provide what we need.
12965         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12966         * modules/passfd-tests (Depends-on): Add sys_wait.
12967         * tests/test-passfd.c (main): Skip test on mingw, for now.
12968         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12969         partial 'struct msghdr' implementation.
12970
12971         sys_uio: new module
12972         * modules/sys_uio: New module.
12973         * modules/sys_uio-tests: Likewise.
12974         * lib/sys_uio.in.h: New file.
12975         * m4/sys_uio_h.m4: Likewise.
12976         * tests/test-sys_uio.c: Likewise.
12977         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12978         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12979
12980 2011-04-20  Jim Meyering  <meyering@redhat.com>
12981
12982         useless-if-before-free: avoid false-positive
12983         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12984         disjunct so that it too requires a terminating ";".  Without that,
12985         this script would identify as useless one statement from gcc that
12986         was not:
12987           if (aligned_ptr)
12988             free (((void **) aligned_ptr) [-1]);
12989
12990 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12991
12992         doc: update users.txt.
12993         * users.txt: Add barcode.
12994
12995 2011-04-19  Bruno Haible  <bruno@clisp.org>
12996
12997         ioctl: Remove link dependency on native Windows.
12998         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12999         (gl_close_fn, gl_ioctl_fn): New types.
13000         (struct fd_hook): Renamed from struct close_hook. Change type of
13001         private_close_fn field. Add private_ioctl_fn field.
13002         (close_hook_fn): Add parameter for primary close method.
13003         (execute_close_hooks, execute_all_close_hooks): Likewise.
13004         (ioctl_hook_fn): New type.
13005         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13006         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13007         argument.
13008         (unregister_fd_hook): Renamed from unregister_close_hook.
13009         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13010         Don't include <unistd.h>.
13011         (close): Remove undef.
13012         (anchor): Update.
13013         (execute_close_hooks): Add argument for primary close method.
13014         (execute_all_close_hooks): Likewise.
13015         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13016         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13017         argument. Allow each argument to be NULL.
13018         (unregister_fd_hook): Renamed from unregister_close_hook.
13019         * lib/close.c (rpl_close): Pass 'close' function pointer to
13020         execute_all_close_hooks.
13021         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13022         (primary_ioctl): New function.
13023         (ioctl): Don't call ioctlsocket here. Instead, call
13024         execute_all_ioctl_hooks.
13025         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13026         close method.
13027         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13028         (fd_sockets_hook): Renamed from close_sockets_hook.
13029         (gl_sockets_startup, gl_sockets_cleanup): Update.
13030         * modules/fd-hook: Renamed from modules/close-hook. Update.
13031         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13032         * modules/sockets (Depends-on): Likewise.
13033         * modules/ioctl (Depends-on): Add fd-hook.
13034         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13035         GNULIB_SOCKET.
13036
13037 2011-04-19  Bruno Haible  <bruno@clisp.org>
13038
13039         Move the support of O_NONBLOCK in open() to the 'open' module.
13040         * modules/nonblocking (Depends-on): Remove 'open'.
13041         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13042         gl_cv_have_open_O_NONBLOCK.
13043         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13044         O_NONBLOCK support.
13045         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13046
13047 2011-04-17  Bruno Haible  <bruno@clisp.org>
13048
13049         pipe2: Simplify code.
13050         * lib/pipe2.c (pipe2): Reduce code duplication.
13051
13052 2011-04-17  Bruno Haible  <bruno@clisp.org>
13053
13054         nonblocking: Add comment.
13055         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13056
13057 2011-04-17  Bruno Haible  <bruno@clisp.org>
13058
13059         nonblocking: Add tests for sockets.
13060         * tests/test-nonblocking-socket.sh: New file.
13061         * tests/test-nonblocking-socket-main.c: New file.
13062         * tests/test-nonblocking-socket-child.c: New file.
13063         * tests/test-nonblocking-socket.h: New file.
13064         * tests/socket-server.h: New file.
13065         * tests/socket-client.h: New file.
13066         * modules/nonblocking-socket-tests: New file.
13067         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13068
13069 2011-04-17  Bruno Haible  <bruno@clisp.org>
13070
13071         nonblocking: Add tests for pipes.
13072         * tests/test-nonblocking-pipe.sh: New file.
13073         * tests/test-nonblocking-pipe-main.c: New file.
13074         * tests/test-nonblocking-pipe-child.c: New file.
13075         * tests/test-nonblocking-pipe.h: New file.
13076         * tests/test-nonblocking-writer.h: New file.
13077         * tests/test-nonblocking-reader.h: New file.
13078         * tests/test-nonblocking-misc.h: New file.
13079         * modules/nonblocking-pipe-tests: New file.
13080         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13081
13082 2011-04-16  Bruno Haible  <bruno@clisp.org>
13083
13084         gettext: Clarify the needed programmer actions.
13085         * modules/gettext (Notice): New field.
13086         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13087
13088 2011-04-16  Bruno Haible  <bruno@clisp.org>
13089
13090         strchrnul: Tweak last commit.
13091         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13092         bug.
13093         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13094         as in _GL_FUNCDECL_SYS.
13095         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13096         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13097
13098 2011-04-15  Eric Blake  <eblake@redhat.com>
13099
13100         strchrnul: work around cygwin bug
13101         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13104         * modules/string (Makefile.am): Substitute it.
13105         * lib/string.in.h (strchrnul): Use it.
13106
13107 2011-04-15  Bruno Haible  <bruno@clisp.org>
13108
13109         Don't require lib/stdio-write.c when only module 'stdio' is used.
13110         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13111         invocation.
13112         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13113
13114 2011-04-14  Bruno Haible  <bruno@clisp.org>
13115
13116         Support non-blocking pipe I/O in read() on native Windows.
13117         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13118         (read): New declaration.
13119         * lib/read.c: New file.
13120         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13121         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13122         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13123         vscanf): New declarations.
13124         * lib/stdio-read.c: New file.
13125         * m4/read.m4: New file.
13126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13127         REPLACE_READ.
13128         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13129         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13130         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13131         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13132         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13133         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13134         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13135         * modules/read: New file.
13136         * modules/nonblocking (Files): Add lib/stdio-read.c.
13137         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13138         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13139         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13140         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13141         * modules/pread (Depends-on): Add read.
13142         * modules/safe-read (Depends-on): Likewise.
13143         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13144         gets, scanf, vfscanf, vscanf): Verify signatures.
13145         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13146         problem with non-blocking pipes.
13147         * doc/posix-functions/fgetc.texi: Likewise.
13148         * doc/posix-functions/fgets.texi: Likewise.
13149         * doc/posix-functions/fread.texi: Likewise.
13150         * doc/posix-functions/fscanf.texi: Likewise.
13151         * doc/posix-functions/getc.texi: Likewise.
13152         * doc/posix-functions/getchar.texi: Likewise.
13153         * doc/posix-functions/gets.texi: Likewise.
13154         * doc/posix-functions/scanf.texi: Likewise.
13155         * doc/posix-functions/vfscanf.texi: Likewise.
13156         * doc/posix-functions/vscanf.texi: Likewise.
13157
13158 2011-04-14  Bruno Haible  <bruno@clisp.org>
13159
13160         Support non-blocking pipe I/O in write() on native Windows.
13161         * lib/write.c (rpl_write): Split a write request that failed merely
13162         because the byte count was larger than the pipe buffer's size.
13163         * doc/posix-functions/write.texi: Mention the problem with large byte
13164         counts.
13165
13166 2011-04-14  Bruno Haible  <bruno@clisp.org>
13167
13168         wchar: Ensure that wchar_t gets defined on uClibc.
13169         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13170         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13171
13172 2011-04-13  Bruno Haible  <bruno@clisp.org>
13173
13174         safe-write, full-read: Avoid unnecessary compilation units.
13175         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13176         (Depends-on): Remove safe-read. Add ssize_t.
13177         * modules/full-read (Files): Add lib/full-write.c.
13178         (Depends-on): Add full-write.
13179
13180 2011-04-13  Bruno Haible  <bruno@clisp.org>
13181
13182         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13183         * modules/pwrite (Depends-on): Add 'write'.
13184
13185 2011-04-13  Bruno Haible  <bruno@clisp.org>
13186
13187         Support non-blocking pipe I/O in write() on native Windows.
13188         * lib/unistd.in.h (write): Enable replacement also if
13189         GNULIB_UNISTD_H_NONBLOCKING is 1.
13190         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13191         (rpl_write): When failing to write on a non-blocking pipe, change
13192         errno from ENOSPC to EAGAIN.
13193         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13194         putchar, puts, vfprintf, vprintf): Enable replacement also if
13195         GNULIB_STDIO_H_NONBLOCKING is 1.
13196         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13197         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13198         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13199         CALL_WITH_SIGPIPE_EMULATION.
13200         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13201         * m4/nonblocking.m4: New file.
13202         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13203         for non-blocking I/O support.
13204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13205         GNULIB_UNISTD_H_NONBLOCKING.
13206         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13207         required for non-blocking I/O support.
13208         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13209         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13210         lib/stdio-write.c, m4/asm-underscore.m4.
13211         (Depends-on): Add stdio, unistd.
13212         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13213         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13214         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13215         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13216         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13217         problem with non-blocking pipes.
13218         * doc/posix-functions/fputc.texi: Likewise.
13219         * doc/posix-functions/fputs.texi: Likewise.
13220         * doc/posix-functions/fwrite.texi: Likewise.
13221         * doc/posix-functions/printf.texi: Likewise.
13222         * doc/posix-functions/putc.texi: Likewise.
13223         * doc/posix-functions/putchar.texi: Likewise.
13224         * doc/posix-functions/puts.texi: Likewise.
13225         * doc/posix-functions/vfprintf.texi: Likewise.
13226         * doc/posix-functions/vprintf.texi: Likewise.
13227         * doc/posix-functions/write.texi: Likewise.
13228
13229 2011-04-10  Jim Meyering  <meyering@redhat.com>
13230
13231         maint.mk: prohibit doubled words
13232         Detect them also when they're separated by a newline.
13233         There are 3 ways to customize it:
13234           - disable the test on a per file basis, as usual with rules using
13235             $(VC_LIST_EXCEPT)
13236           - replace the default doubled-word-selecting regexp (affects all files)
13237           - ignore a particular file-vs-doubled-word match
13238         I nearly used that last one to ignore the "is is" match in
13239         coreutils' NEWS file, since the text was "ls -is is ..."
13240         To do that, I would have added this line to cfg.mk:
13241           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13242         but it would have ignored any "is is" match in NEWS.
13243         Low probability, but still...
13244         Instead, I changed the text, slightly:
13245           -  ls -is is now consistent with ls -lis in ignoring values returned
13246           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13247         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13248         (prohibit_doubled_word_): Define.
13249         (sc_prohibit_doubled_word): New rule.
13250         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13251
13252 2011-04-10  Jim Meyering  <meyering@redhat.com>
13253
13254         maint: fix doubled-word typo in comment
13255         * m4/gethostname.m4: s/is is/it is/
13256         * m4/getdomainname.m4: Likewise.
13257
13258 2011-04-10  Jim Meyering  <meyering@redhat.com>
13259
13260         maint: remove doubled word: s/it it/it/
13261         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13262
13263 2011-04-10  Jim Meyering  <meyering@redhat.com>
13264
13265         maint.mk: remove useless semicolon and backslash
13266         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13267         semicolon and backslash.
13268
13269 2011-04-10  Bruno Haible  <bruno@clisp.org>
13270
13271         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13272         * modules/stdint-tests (Depends-on): Add wchar.
13273
13274 2011-04-10  Jim Meyering  <meyering@redhat.com>
13275
13276         maint: remove doubled words in comments, e.g., s/a a/a/
13277         * lib/strptime.c (day_of_the_week): s/the the/the/
13278         * tests/test-chown.h (test_chown): s/a a/a/
13279
13280         test-chown.h: correct a cast
13281         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13282         when the destination is a stat.st_gid.
13283
13284 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13285
13286         getaddrinfo: Fix test for sa_len member.
13287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13288         include <sys/types.h> before <sys/socket.h>.
13289
13290 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13291
13292         maint: change "can not" to "cannot"
13293         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13294         boundaries.
13295
13296 2011-04-09  Jim Meyering  <meyering@redhat.com>
13297
13298         maint: change "a a" to "a"
13299         * tests/test-lchown.h (test_lchown): s/a a/a/
13300
13301         maint.mk: prohibit \<the the\>
13302         * top/maint.mk (sc_prohibit_the_the): New rule.
13303
13304         maint: fix "the the" in comment
13305         * lib/count-one-bits.h: s/the the/the/
13306
13307         maint: change "can not" to "cannot"
13308         But do not change the occurrences in maintain.texi or in
13309         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13310         * doc/gnulib-tool.texi: s/can not/cannot/
13311         * doc/posix-functions/accept.texi (accept): Likewise.
13312         * doc/posix-functions/socket.texi (socket): Likewise.
13313         * lib/mbrtowc.c: Likewise.
13314
13315         maint.mk: prohibit use of "can not"
13316         * top/maint.mk (sc_prohibit_can_not): New rule.
13317         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13318
13319 2011-04-09  Bruno Haible  <bruno@clisp.org>
13320
13321         careadlinkat: Guard against misuse of careadlinkatcwd.
13322         * lib/careadlinkat.c: Include <stdlib.h>.
13323         (careadlinkatcwd): Check that the fd argument is as expected.
13324
13325 2011-04-09  Bruno Haible  <bruno@clisp.org>
13326
13327         careadlinkat: Use common coding style.
13328         * lib/careadlinkat.c: Move gnulib includes after system includes.
13329
13330 2011-04-09  Bruno Haible  <bruno@clisp.org>
13331
13332         careadlinkat: Clarify specification.
13333         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13334         (careadlinkatcwd): Add comment.
13335         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13336
13337 2011-04-09  Bruno Haible  <bruno@clisp.org>
13338
13339         areadlinkat: Avoid link error on many platforms.
13340         * modules/areadlinkat (Depends-on): Add areadlink.
13341
13342 2011-04-09  Bruno Haible  <bruno@clisp.org>
13343
13344         allocator, careadlinkat: Fix double-inclusion guard.
13345         * lib/allocator.h: Fix double-inclusion guard.
13346         * lib/careadlinkat.h: Likewise.
13347
13348 2011-04-09  Bruno Haible  <bruno@clisp.org>
13349
13350         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13351         * lib/relocwrapper.c: Update dependencies hierarchy.
13352         * build-aux/install-reloc: Update list of files to be compiled.
13353         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13354         lib/allocator.[hc].
13355
13356 2011-04-08  Eric Blake  <eblake@redhat.com>
13357
13358         strftime: silence gnulib-tool warning
13359         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13360
13361 2011-04-08  Bruno Haible  <bruno@clisp.org>
13362
13363         verify: Fix syntax error with GCC 4.6 in C++ mode.
13364         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13365         (HAVE_STATIC_ASSERT): New macro.
13366         (verify_true, verify): Use 'static_assert' if it is supported and
13367         '_Static_assert' is not supported.
13368
13369 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         allocator: New module.
13372         * modules/allocator, lib/allocator.c: New files.
13373         * lib/allocator.h (stdlib_allocator): New decl.
13374         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13375         Remove.  Do not include <stdlib.h>.
13376         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13377         * modules/careadlinkat (Files): Remove lib/allocator.h.
13378         (Depends-on): Add allocator.
13379
13380         stdlib: let modules use system malloc, realloc
13381         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13382         if !_GL_USE_STDLIB_ALLOC.
13383         (malloc, realloc): Limit this change to a smaller scope.
13384
13385         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13386         (malloc, realloc): Don't #undef; no longer needed.
13387         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13388         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13389         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13390         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13391         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13392         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13393         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13394         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13395
13396         careadlinkat: rename members to avoid problem
13397         * lib/allocator.h (struct allocator): Rename members from
13398         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13399         and realloc are #define'd.  Reported by Eric Blake in
13400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13401         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13402
13403 2011-04-08  Eric Blake  <eblake@redhat.com>
13404
13405         nonblocking: reduce dependency
13406         * tests/test-nonblocking.c: Only test sockets when in use.
13407         * modules/nonblocking-tests (Depends-on): Drop socket.
13408         (Makefile.am): Link even if sockets are not present.
13409         * modules/pipe2-tests (Makefile.am): Likewise.
13410         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13411
13412         pipe2: fix O_NONBLOCK support on mingw
13413         * modules/pipe2 (Depends-on): Add nonblocking.
13414         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13415         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13416         * tests/test-nonblocking.c (main): Likewise.
13417         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13418
13419         fcntl-h: fix O_ACCMODE on cygwin
13420         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13421         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13422
13423         pipe-filter: drop O_NONBLOCK workarounds
13424         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13425         * modules/pipe-filter-ii (Depends-on): Likewise.
13426         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13427
13428         nonblocking: provide O_NONBLOCK for mingw
13429         * modules/nonblocking (Depends-on): Add open.
13430         (configure.ac): Set new witness macro.
13431         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13432         * modules/fcntl-h (Makefile.am): Substitute it.
13433         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13434         nonblocking module is in use.
13435         * lib/nonblocking.c: Adjust portability test.
13436         * lib/open.c (open): Don't let native open see gnulib flag.
13437         * tests/test-fcntl-h.c (main): Enhance test.
13438         * tests/test-open.h (test_open): Likewise.
13439         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13440
13441         careadlinkat: fix compilation error on mingw
13442         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13443         within struct allocator.
13444
13445 2011-04-06  Eric Blake  <eblake@redhat.com>
13446
13447         binary-io: relicense under LGPLv2+
13448         * modules/binary-io (License): Relax to LGPLv2+.
13449         Requested for libvirt, and required by pipe2.
13450
13451 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13452
13453         verify: use _Static_assert if available
13454         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13455         (verify_true, verify): Use it if available.  This generates better
13456         diagnostics with GCC 4.6.0 and later.
13457
13458 2011-04-05  Bruno Haible  <bruno@clisp.org>
13459
13460         Remove leftover generated .h files after config.status changed.
13461
13462         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13463         GL_GENERATE_ALLOCA_H.
13464         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13465         GL_GENERATE_ALLOCA_H evaluates to false.
13466
13467         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13468         GL_GENERATE_ARGZ_H.
13469         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13470         evaluates to false.
13471
13472         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13473         GL_GENERATE_BYTESWAP_H.
13474         * modules/byteswap (Makefile.am): Remove byteswap.h if
13475         GL_GENERATE_BYTESWAP_H evaluates to false.
13476
13477         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13478         GL_GENERATE_ERRNO_H.
13479         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13480         evaluates to false.
13481
13482         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13483         GL_GENERATE_FLOAT_H.
13484         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13485         evaluates to false.
13486
13487         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13488         GL_GENERATE_FNMATCH_H.
13489         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13490         GL_GENERATE_FNMATCH_H evaluates to false.
13491
13492         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13493         GL_GENERATE_GLOB_H.
13494         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13495         evaluates to false.
13496
13497         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13498         automake conditional GL_GENERATE_ICONV_H.
13499         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13500         evaluates to false.
13501
13502         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13503         GL_GENERATE_NETINET_IN_H.
13504         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13505         GL_GENERATE_NETINET_IN_H evaluates to false.
13506
13507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13508         conditional GL_GENERATE_PTHREAD_H.
13509         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13510         * modules/pthread (Makefile.am): Remove pthread.h if
13511         GL_GENERATE_PTHREAD_H evaluates to false.
13512
13513         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13514         GL_GENERATE_SCHED_H.
13515         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13516         evaluates to false.
13517
13518         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13519         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13520         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13521         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13522
13523         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13524         GL_GENERATE_STDARG_H.
13525         * modules/stdarg (Makefile.am): Remove stdarg.h if
13526         GL_GENERATE_STDARG_H evaluates to false.
13527
13528         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13529         GL_GENERATE_STDBOOL_H.
13530         * modules/stdbool (Makefile.am): Remove stdbool.h if
13531         GL_GENERATE_STDBOOL_H evaluates to false.
13532
13533         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13534         conditional GL_GENERATE_STDDEF_H.
13535         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13536         * modules/stddef (Makefile.am): Remove stddef.h if
13537         GL_GENERATE_STDDEF_H evaluates to false.
13538
13539         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13540         GL_GENERATE_STDINT_H.
13541         * modules/stdint (Makefile.am): Remove stdint.h if
13542         GL_GENERATE_STDINT_H evaluates to false.
13543
13544         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13545         GL_GENERATE_SYSEXITS_H.
13546         * modules/sysexits (Makefile.am): Remove sysexits.h if
13547         GL_GENERATE_SYSEXITS_H evaluates to false.
13548
13549         Reported by Karl Berry and Ralf Wildenhues.
13550
13551 2011-04-05  Bruno Haible  <bruno@clisp.org>
13552
13553         Ensure to rebuild generated .h files when config.status has changed.
13554         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13555         config.status.
13556         * modules/ctype (Makefile.am): Likewise.
13557         * modules/dirent (Makefile.am): Likewise.
13558         * modules/errno (Makefile.am): Likewise.
13559         * modules/fcntl-h (Makefile.am): Likewise.
13560         * modules/float (Makefile.am): Likewise.
13561         * modules/getopt-posix (Makefile.am): Likewise.
13562         * modules/glob (Makefile.am): Likewise.
13563         * modules/iconv-h (Makefile.am): Likewise.
13564         * modules/inttypes (Makefile.am): Likewise.
13565         * modules/langinfo (Makefile.am): Likewise.
13566         * modules/locale (Makefile.am): Likewise.
13567         * modules/math (Makefile.am): Likewise.
13568         * modules/netdb (Makefile.am): Likewise.
13569         * modules/netinet_in (Makefile.am): Likewise.
13570         * modules/poll-h (Makefile.am): Likewise.
13571         * modules/pthread (Makefile.am): Likewise.
13572         * modules/pty (Makefile.am): Likewise.
13573         * modules/sched (Makefile.am): Likewise.
13574         * modules/search (Makefile.am): Likewise.
13575         * modules/selinux-h (Makefile.am): Likewise.
13576         * modules/signal (Makefile.am): Likewise.
13577         * modules/spawn (Makefile.am): Likewise.
13578         * modules/stdarg (Makefile.am): Likewise.
13579         * modules/stdbool (Makefile.am): Likewise.
13580         * modules/stddef (Makefile.am): Likewise.
13581         * modules/stdint (Makefile.am): Likewise.
13582         * modules/stdio (Makefile.am): Likewise.
13583         * modules/stdlib (Makefile.am): Likewise.
13584         * modules/string (Makefile.am): Likewise.
13585         * modules/strings (Makefile.am): Likewise.
13586         * modules/sys_file (Makefile.am): Likewise.
13587         * modules/sys_ioctl (Makefile.am): Likewise.
13588         * modules/sys_select (Makefile.am): Likewise.
13589         * modules/sys_socket (Makefile.am): Likewise.
13590         * modules/sys_stat (Makefile.am): Likewise.
13591         * modules/sys_time (Makefile.am): Likewise.
13592         * modules/sys_times (Makefile.am): Likewise.
13593         * modules/sys_utsname (Makefile.am): Likewise.
13594         * modules/sys_wait (Makefile.am): Likewise.
13595         * modules/sysexits (Makefile.am): Likewise.
13596         * modules/termios (Makefile.am): Likewise.
13597         * modules/time (Makefile.am): Likewise.
13598         * modules/unistd (Makefile.am): Likewise.
13599         * modules/wchar (Makefile.am): Likewise.
13600         * modules/wctype-h (Makefile.am): Likewise.
13601         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13602
13603 2011-04-05  Bruno Haible  <bruno@clisp.org>
13604
13605         pipe2: Relicense under LGPLv2+.
13606         * modules/pipe2 (License): Change to LGPLv2+.
13607         Requested by Eric Blake, for libvirt.
13608
13609 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13610
13611         bootstrap: compute gnulib_extra_files after updating build_aux
13612         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13613         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13614
13615 2011-04-05  Eric Blake  <eblake@redhat.com>
13616
13617         bootstrap: preserve git whitelist item sorting
13618         * build-aux/bootstrap (sort_patterns): New function.
13619         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13620
13621 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13622
13623         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13624         sc_space_tab check.
13625
13626 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13627
13628         areadlink, areadlinkat: rewrite in terms of careadlinkat
13629         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13630         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13631         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13632         (malloc, realloc): Remove #undefs.
13633         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13634         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13635         readlink, ssize_t, stdint, unistd.
13636         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13637         areadlink, stdint.
13638
13639         careadlinkat: new module
13640         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13641         * modules/careadlinkat: New files, written by me with
13642         a review and feedback from Ben Pfaff in
13643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13644
13645 2011-04-01  Bruno Haible  <bruno@clisp.org>
13646
13647         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13648         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13649         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13650         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13651         Reported by Bruce Korb <bruce.korb@gmail.com>.
13652
13653 2011-04-01  Bruno Haible  <bruno@clisp.org>
13654
13655         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13656         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13657         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13658         * modules/wcpcpy (Depends-on): Add extensions.
13659         * modules/wcpncpy (Depends-on): Likewise.
13660         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13661         systems.
13662         * doc/posix-functions/wcpncpy.texi: Likewise.
13663         * doc/posix-functions/wcwidth.texi: Likewise.
13664
13665 2011-03-31  Eric Blake  <eblake@redhat.com>
13666
13667         nonblocking: fix mingw test failures
13668         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13669         non-blocking flag on regular file.
13670         (get_nonblocking_flag): Set errno on invalid fd.
13671         * tests/test-nonblocking.c (main): Avoid test failure on
13672         directories if fchdir is not active.
13673         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13674
13675 2011-03-31  Bruno Haible  <bruno@clisp.org>
13676
13677         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13678         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13679         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13680         Reported by Simon Josefsson <simon@josefsson.org>.
13681
13682 2011-03-31  Bruno Haible  <bruno@clisp.org>
13683         and Eric Blake  <eblake@redhat.com>
13684
13685         nonblocking: new module
13686         * modules/nonblocking: New module.
13687         * modules/nonblocking-tests: Likewise.
13688         * lib/nonblocking.h: New file.
13689         * lib/nonblocking.c: Likewise.
13690         * tests/test-nonblocking.c: New test.
13691         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13692
13693 2011-03-30  Bruno Haible  <bruno@clisp.org>
13694
13695         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13696         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13697         instead of 'printf' format for GCC >= 4.4.
13698         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13699         (fprintf, printf, vfprintf, vprintf): Declare with
13700         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13701         the system's vfprintf() function.
13702         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13703
13704 2011-03-30  Eric Blake  <eblake@redhat.com>
13705
13706         passfd: fix scoping bug
13707         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13708         before sendmsg/recvmsg.
13709
13710         passfd: standardize coding conventions
13711         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13712         can be learned at compile time.
13713         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13714         ifdefs.
13715         (sendfd, recvfd): Follow gnulib code conventions.
13716
13717         passfd: fix incorrect sendmsg arguments
13718         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13719         incorrect msg_controllen value.
13720         * modules/passfd-tests (Depends-on): Check for alarm.
13721         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13722         Reported by Bastien ROUCARIES.
13723
13724 2011-03-30  Bruno Haible  <bruno@clisp.org>
13725
13726         c-strcasestr: Relicense under LGPLv2+.
13727         * modules/c-strcasestr (License): Change to LGPLv2+.
13728         Requested by Eric Blake, for libvirt.
13729
13730 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13731
13732         * users.txt: Add libidn2.  Fix libtasn1 link.
13733
13734 2011-03-30  Jim Meyering  <meyering@redhat.com>
13735
13736         tests: readlink* ("",... fails with EINVAL on newer kernels
13737         readlink and readlinkat have typically failed with ENOENT for
13738         the invalid, empty file name,  "".  However, with the advent
13739         of linux-2.6.39, they fail with EINVAL.
13740         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13741         when operating on the empty file name.
13742         * tests/test-readlink.h (test_readlink): Likewise.
13743
13744 2011-03-29  Bruno Haible  <bruno@clisp.org>
13745
13746         Relicense some modules under LGPLv2+, for libidn2.
13747         * modules/array-mergesort (License): Change to LGPLv2+.
13748         * modules/c-strcaseeq (License): Likewise.
13749         * modules/striconveh (License): Likewise.
13750         * modules/striconveha (License): Likewise.
13751         * modules/uniconv/base (License): Likewise.
13752         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13753         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13754         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13755         * modules/unictype/base (License): Likewise.
13756         * modules/unictype/bidiclass-of (License): Likewise.
13757         * modules/unictype/category-M (License): Likewise.
13758         * modules/unictype/category-none (License): Likewise.
13759         * modules/unictype/category-of (License): Likewise.
13760         * modules/unictype/category-test (License): Likewise.
13761         * modules/unictype/category-test-withtable (License): Likewise.
13762         * modules/unictype/combining-class (License): Likewise.
13763         * modules/unictype/joiningtype-of (License): Likewise.
13764         * modules/unictype/scripts (License): Likewise.
13765         * modules/uninorm/base (License): Likewise.
13766         * modules/uninorm/canonical-decomposition (License): Likewise.
13767         * modules/uninorm/composition (License): Likewise.
13768         * modules/uninorm/decompose-internal (License): Likewise.
13769         * modules/uninorm/decomposition-table (License): Likewise.
13770         * modules/uninorm/nfc (License): Likewise.
13771         * modules/uninorm/nfd (License): Likewise.
13772         * modules/uninorm/u32-normalize (License): Likewise.
13773         * modules/unistr/base (License): Likewise.
13774         * modules/unistr/u32-cpy (License): Likewise.
13775         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13776         * modules/unistr/u32-to-u8 (License): Likewise.
13777         * modules/unistr/u32-uctomb (License): Likewise.
13778         * modules/unistr/u8-check (License): Likewise.
13779         * modules/unistr/u8-mblen (License): Likewise.
13780         * modules/unistr/u8-mbtouc (License): Likewise.
13781         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13782         * modules/unistr/u8-mbtoucr (License): Likewise.
13783         * modules/unistr/u8-prev (License): Likewise.
13784         * modules/unistr/u8-strlen (License): Likewise.
13785         * modules/unistr/u8-to-u32 (License): Likewise.
13786         * modules/unistr/u8-uctomb (License): Likewise.
13787         * modules/unitypes (License): Likewise.
13788         Requested by Simon Josefsson.
13789
13790 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13791
13792         lib-symbol-visibility: Add a notice.
13793         * modules/lib-symbol-visibility (Notice): New field.
13794
13795 2011-03-29  Bruno Haible  <bruno@clisp.org>
13796
13797         getaddrinfo: Doc fix.
13798         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13799         section "fixed in Gnulib".
13800
13801 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13802
13803         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13804         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13805
13806 2011-03-26  Bruno Haible  <bruno@clisp.org>
13807
13808         unictype/property-byname: Reduce the number of load-time relocations.
13809         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13810         (UC_PROPERTY_INDEX_*): New enumeration values.
13811         (uc_property_byname): Convert an index from the lookup table to an
13812         uc_property_t.
13813         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13814         values.
13815
13816 2011-03-26  Bruno Haible  <bruno@clisp.org>
13817
13818         unictype/property-byname: Allow omitted word separators and aliases.
13819         * lib/unictype/pr_byname.gperf: Add property names without word
13820         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13821         for 'space'.
13822
13823 2011-03-26  Bruno Haible  <bruno@clisp.org>
13824
13825         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13826         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13827         also hyphens to space.
13828         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13829         without spaces.
13830         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13831
13832 2011-03-26  Bruno Haible  <bruno@clisp.org>
13833
13834         unictype/joiningtype-byname: Recognize long names as well.
13835         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13836         a long name.
13837         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13838         unictype/joiningtype_byname.h.
13839         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13840         * lib/unictype/joiningtype_byname.gperf: New file.
13841         * modules/unictype/joiningtype-byname (Files): Add
13842         lib/unictype/joiningtype_byname.gperf.
13843         (Depends-on): Add gperf.
13844         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13845         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13846         long names.
13847
13848         Tests for module 'unictype/joiningtype-longname'.
13849         * modules/unictype/joiningtype-longname-tests: New file.
13850         * tests/unictype/test-joiningtype_longname.c: New file.
13851
13852         New module 'unictype/joiningtype-longname'.
13853         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13854         * lib/unictype/joiningtype_longname.c: New file.
13855         * modules/unictype/joiningtype-longname: New file.
13856         * modules/unictype/joiningtype-all (Depends-on): Add
13857         unictype/joiningtype-longname.
13858
13859 2011-03-26  Bruno Haible  <bruno@clisp.org>
13860
13861         unictype/bidiclass-byname: Recognize long names as well.
13862         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13863         name.
13864         * lib/unictype/bidi_byname.c: Include <string.h>,
13865         unictype/bidi_byname.h.
13866         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13867         * lib/unictype/bidi_byname.gperf: New file.
13868         * modules/unictype/bidiclass-byname (Files): Add
13869         lib/unictype/bidi_byname.gperf.
13870         (Depends-on): Add gperf.
13871         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13872         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13873         long names.
13874
13875         Tests for module 'unictype/bidiclass-longname'.
13876         * modules/unictype/bidiclass-longname-tests: New file.
13877         * tests/unictype/test-bidi_longname.c: New file.
13878
13879         New module 'unictype/bidiclass-longname'.
13880         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13881         * lib/unictype/bidi_longname.c: New file.
13882         * modules/unictype/bidiclass-longname: New file.
13883         * modules/unictype/bidiclass-all (Depends-on): Add
13884         unictype/bidiclass-longname.
13885
13886 2011-03-26  Bruno Haible  <bruno@clisp.org>
13887
13888         unictype/bidi*: Rename modules.
13889         * modules/unictype/bidiclass-all: Renamed from
13890         modules/unictype/bidicategory-all.
13891         * modules/unictype/bidiclass-name: Renamed from
13892         modules/unictype/bidiclass-name.
13893         (Description): Update.
13894         * modules/unictype/bidiclass-name-tests: Renamed from
13895         modules/unictype/bidicategory-name-tests.
13896         * modules/unictype/bidiclass-byname: Renamed from
13897         modules/unictype/bidicategory-byname.
13898         (Description): Update.
13899         * modules/unictype/bidiclass-byname-tests: Renamed from
13900         modules/unictype/bidicategory-byname-tests.
13901         * modules/unictype/bidiclass-of: Renamed from
13902         modules/unictype/bidicategory-of.
13903         (Description): Update.
13904         * modules/unictype/bidiclass-of-tests: Renamed from
13905         modules/unictype/bidicategory-of-tests.
13906         * modules/unictype/bidiclass-test: Renamed from
13907         modules/unictype/bidicategory-test.
13908         (Description): Update.
13909         * modules/unictype/bidiclass-test-tests: Renamed from
13910         modules/unictype/bidicategory-test-tests.
13911         * modules/unictype/bidicategory-all: New file, a simple redirection.
13912         * modules/unictype/bidicategory-name: Likewise.
13913         * modules/unictype/bidicategory-byname: Likewise.
13914         * modules/unictype/bidicategory-of: Likewise.
13915         * modules/unictype/bidicategory-test: Likewise.
13916         * modules/unictype/property-bidi-* (Dependencies): Update.
13917         * lib/unictype/bidi_*.c: Update comment.
13918
13919 2011-03-26  Bruno Haible  <bruno@clisp.org>
13920
13921         unictype/bidi*: Rename functions, part 2.
13922         * modules/unictype/bidicategory-name (configure.ac): Update required
13923         libunistring version.
13924         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13925
13926 2011-03-25  Bruno Haible  <bruno@clisp.org>
13927
13928         New module 'unictype/combining-class-all'.
13929         * modules/unictype/combining-class-all: New file.
13930
13931         Tests for module 'unictype/combining-class-byname'.
13932         * modules/unictype/combining-class-byname-tests: New file.
13933         * tests/unictype/test-combiningclass_byname.c: New file.
13934
13935         New module 'unictype/combining-class-byname'.
13936         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13937         * lib/unictype/combiningclass_byname.c: New file.
13938         * lib/unictype/combiningclass_byname.gperf: New file.
13939         * modules/unictype/combining-class-byname: New file.
13940
13941         Tests for module 'unictype/combining-class-longname'.
13942         * modules/unictype/combining-class-longname-tests: New file.
13943         * tests/unictype/test-combiningclass_longname.c: New file.
13944
13945         New module 'unictype/combining-class-longname'.
13946         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13947         * lib/unictype/combiningclass_longname.c: New file.
13948         * modules/unictype/combining-class-longname: New file.
13949
13950         Tests for module 'unictype/combining-class-name'.
13951         * modules/unictype/combining-class-name-tests: New file.
13952         * tests/unictype/test-combiningclass_name.c: New file.
13953
13954         New module 'unictype/combining-class-name'.
13955         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13956         * lib/unictype/combiningclass_name.c: New file.
13957         * modules/unictype/combining-class-name: New file.
13958
13959 2011-03-25  Bruno Haible  <bruno@clisp.org>
13960
13961         unictype/combining-class: Rename source files.
13962         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13963         of unictype/combining.h.
13964         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13965         Update.
13966         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13967         * modules/unictype/combining-class (Description): Fix.
13968         (Files, Makefile.am): Update.
13969         * tests/unictype/test-combiningclass.c: Renamed from
13970         tests/unictype/test-combining.c.
13971         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13972
13973 2011-03-25  Bruno Haible  <bruno@clisp.org>
13974
13975         unictype: Update list of canonical combining classes.
13976         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13977
13978 2011-03-25  Bruno Haible  <bruno@clisp.org>
13979
13980         unictype/category-byname: Recognize long names as well.
13981         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13982         a long name.
13983         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13984         unictype/categ_byname.h.
13985         (UC_CATEGORY_INDEX_*): New enumeration values.
13986         (uc_general_category_byname): Use uc_general_category_lookup and
13987         convert from index to value.
13988         * lib/unictype/categ_byname.gperf: New file.
13989         * modules/unictype/category-byname (Files): Add
13990         lib/unictype/categ_byname.gperf.
13991         (Depends-on): Add gperf.
13992         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13993         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13994         long names.
13995
13996         Tests for module 'unictype/category-longname'.
13997         * modules/unictype/category-longname-tests: New file.
13998         * tests/unictype/test-categ_longname.c: New file.
13999
14000         New module 'unictype/category-longname'.
14001         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14002         * lib/unictype/categ_longname.c: New file.
14003         * modules/unictype/category-longname: New file.
14004         * modules/unictype/category-all (Depends-on): Add it.
14005
14006 2011-03-25  Bruno Haible  <bruno@clisp.org>
14007
14008         Tests for module 'unictype/category-LC'.
14009         * modules/unictype/category-LC-tests: New file.
14010         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14011
14012         New module 'unictype/category-LC'.
14013         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14014         (UC_CATEGORY_LC): New declaration.
14015         (UC_CASED_LETTER): New macro.
14016         * lib/gen-uni-tables.c (is_category_LC): New function.
14017         (output_categories): Also handle category LC.
14018         (UC_CATEGORY_MASK_LC): New enumeration value.
14019         (general_category_byname): Also handle category LC.
14020         * lib/unictype/categ_LC.c: New file.
14021         * lib/unictype/categ_LC.h: New file, automatically generated.
14022         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14023         category LC.
14024         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14025         * modules/unictype/category-LC: New file.
14026         * modules/unictype/category-byname (Depends-on): Add
14027         unictype/category-LC.
14028         * modules/unictype/category-all (Depends-on): Likewise.
14029
14030 2011-03-25  Eric Blake  <eblake@redhat.com>
14031
14032         xmalloc: revert yesterday's regression
14033         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14034         realloc's underlying behavior (allowing allocation of zero-size
14035         objects, especially if malloc-gnu is also in use).
14036
14037 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14038
14039         maint.mk: add missing version to VC-tag
14040         * top/maint.mk: git tag was missing actual tag name; add it.
14041
14042         valgrind: do leak checking, and exit with code 1 on error (not 0)
14043         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14044         to VALGRIND.
14045
14046 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14047
14048         posix-modules: say what it does.
14049         * posix-modules: Add a line to the --help output saying what it does.
14050
14051 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14052
14053         xmalloc: Do not leak if underlying realloc is C99 compatible.
14054         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14055         This avoids a leak on C99-based systems.  See
14056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14057
14058 2011-03-24  Eric Blake  <eblake@redhat.com>
14059
14060         realloc: document portability problem
14061         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14062         passing 0 size to realloc.
14063
14064 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14065
14066         doc: update users.txt
14067         * users.txt: Add cvsps, tmpwatch
14068
14069 2011-03-23  Matt Rice  <ratmice@gmail.com>
14070
14071         doc: update users.txt
14072         * users.txt: Add gdb.
14073
14074 2011-03-23  Jim Meyering  <meyering@redhat.com>
14075
14076         doc: update users.txt
14077         Looking through matches up to the following URL (there are still
14078         several more pages), I found several projects that use gnulib:
14079         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14080         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14081         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14082
14083 2011-03-22  Bruno Haible  <bruno@clisp.org>
14084
14085         unictype/bidi*: Rename functions.
14086         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14087         uc_bidi_class, uc_is_bidi_class): New declarations.
14088         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14089         uc_bidi_category_byname.
14090         (uc_bidi_category_byname): New function.
14091         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14092         u_bidi_category_name.
14093         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14094         (uc_bidi_category_name): New function.
14095         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14096         uc_bidi_category.
14097         (uc_bidi_category): New function.
14098         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14099         uc_is_bidi_category. Invoke uc_bidi_class.
14100         (uc_is_bidi_category): New function.
14101         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14102         instead of uc_bidi_category_byname.
14103         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14104         instead of uc_bidi_category_name.
14105         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14106         uc_bidi_category.
14107         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14108         instead of uc_is_bidi_category.
14109
14110 2011-03-21  Bruno Haible  <bruno@clisp.org>
14111
14112         New module 'unictype/joininggroup-all'.
14113         * modules/unictype/joininggroup-all: New file.
14114
14115         Tests for module 'unictype/joininggroup-of'.
14116         * modules/unictype/joininggroup-of-tests: New file.
14117         * tests/unictype/test-joininggroup_of.c: New file.
14118         * tests/unictype/test-joininggroup_of.h: New file, automatically
14119         generated by gen-uni-tables.
14120
14121         New module 'unictype/joininggroup-of'.
14122         * modules/unictype/joininggroup-of: New file.
14123         * lib/unictype/joininggroup_of.c: New file.
14124         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14125         gen-uni-tables.
14126
14127         Tests for module 'unictype/joininggroup-byname'.
14128         * modules/unictype/joininggroup-byname-tests: New file.
14129         * tests/unictype/test-joininggroup_byname.c: New file.
14130
14131         New module 'unictype/joininggroup-byname'.
14132         * modules/unictype/joininggroup-byname: New file.
14133         * lib/unictype/joininggroup_byname.c: New file.
14134         * lib/unictype/joininggroup_byname.gperf: New file.
14135
14136         Tests for module 'unictype/joininggroup-name'.
14137         * modules/unictype/joininggroup-name-tests: New file.
14138         * tests/unictype/test-joininggroup_name.c: New file.
14139
14140         New module 'unictype/joininggroup-name'.
14141         * modules/unictype/joininggroup-name: New file.
14142         * lib/unictype/joininggroup_name.c: New file.
14143         * lib/unictype/joininggroup_name.h: New file.
14144
14145         New module 'unictype/joiningtype-all'.
14146         * modules/unictype/joiningtype-all: New file.
14147
14148         Tests for module 'unictype/joiningtype-of'.
14149         * modules/unictype/joiningtype-of-tests: New file.
14150         * tests/unictype/test-joiningtype_of.c: New file.
14151         * tests/unictype/test-joiningtype_of.h: New file, automatically
14152         generated by gen-uni-tables.
14153
14154         New module 'unictype/joiningtype-of'.
14155         * modules/unictype/joiningtype-of: New file.
14156         * lib/unictype/joiningtype_of.c: New file.
14157         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14158         gen-uni-tables.
14159
14160         Tests for module 'unictype/joiningtype-byname'.
14161         * modules/unictype/joiningtype-byname-tests: New file.
14162         * tests/unictype/test-joiningtype_byname.c: New file.
14163
14164         New module 'unictype/joiningtype-byname'.
14165         * modules/unictype/joiningtype-byname: New file.
14166         * lib/unictype/joiningtype_byname.c: New file.
14167
14168         Tests for module 'unictype/joiningtype-name'.
14169         * modules/unictype/joiningtype-name-tests: New file.
14170         * tests/unictype/test-joiningtype_name.c: New file.
14171
14172         New module 'unictype/joiningtype-name'.
14173         * modules/unictype/joiningtype-name: New file.
14174         * lib/unictype/joiningtype_name.c: New file.
14175
14176         unictype: Add support for Arabic shaping properties.
14177         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14178         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14179         declarations.
14180         (UC_JOINING_GROUP_*): New enumeration values.
14181         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14182         declarations.
14183         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14184         (unicode_joining_type): New variable.
14185         (UC_JOINING_GROUP_*): New enumeration values.
14186         (unicode_joining_group): New variable.
14187         (fill_arabicshaping, joining_type_as_c_identifier,
14188         output_joining_type_test, output_joining_type,
14189         joining_group_as_c_identifier, output_joining_group_test,
14190         output_joining_group): New functions.
14191         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14192         fill_arabicshaping and output_joining_type_test, output_joining_type,
14193         output_joining_group_test, output_joining_group.
14194         Reported by Simon Josefsson.
14195
14196 2011-03-21  Jim Meyering  <meyering@redhat.com>
14197
14198         strftime: fix a bug in yesterday's change
14199         * lib/strftime.c (add): Accommodate width's initial value of -1.
14200         Otherwise, nstrftime would copy uninitialized data into
14201         the result buffer.
14202
14203 2011-03-21  Jim Meyering  <meyering@redhat.com>
14204
14205         tests: add strftime-tests module
14206         * tests/test-strftime.c: New file.
14207         * modules/strftime-tests: New module.
14208
14209 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         strftime: don't assume a byte count fits in 'int'
14212         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14213         found this problem by static analysis, using gcc -Wstrict-overflow
14214         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14215         on an integer overflow having undefined behavior, but it turns out
14216         that the argument is a size, which might not fit in 'int' anyway,
14217
14218 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14219
14220         stdio: don't require ignore_value around fwrite
14221
14222         This patch works around libc bug 11959
14223         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14224         Without this patch, applications must often write
14225         ignore_value (fwrite (...)) even though the ignore_value is
14226         not helpful here.  It's common to write many objects, using
14227         fwrite/printf/etc., and then use ferror to detect output error.
14228
14229         I considered making this patch optional, but decided against it,
14230         because libc is obviously being inconsistent here: there is no
14231         reason libc should insist that user code must inspect fwrite
14232         return's value without also insisting that it inspect printf's,
14233         putchar's, etc.  If user code wants to have a strict style where
14234         all these functions' values are checked (so that ferror need not
14235         be checked), we could add support for that style in a new gnulib
14236         module, but in the meantime it's better to be consistent and to
14237         support common usage.
14238
14239         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14240         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14241         that we are compiling in checking mode, and if not C++, and
14242         if not already wrapping fwrite for some other reason.
14243         (fwrite): #define to rpl_fwrite if the latter is defined.
14244
14245 2011-03-20  Bruno Haible  <bruno@clisp.org>
14246
14247         verror: Fix compilation error introduced on 2011-02-13.
14248         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14249         instead of __attribute__.
14250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14251
14252 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14253             Bruno Haible  <bruno@clisp.org>
14254
14255         socklen: do not depend on sys_socket
14256         While trying to modify Emacs to use gnulib's socklen module,
14257         I discovered a circular dependency: socklen depends on sys_socket
14258         and vice versa.  Emacs can use socklen, but it does not need
14259         sys_socket because it has its own substitute for sys/socket.h.
14260         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14261         gl_TYPE_SOCKLEN_T.
14262         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14263         gl_PREREQ_SYS_H_SOCKET.
14264         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14265         gl_PREREQ_SYS_H_SOCKET.
14266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14267         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14268         * modules/socklen (Depends-on): Do not depend on sys_socket.
14269         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14270
14271 2011-03-20  Jim Meyering  <meyering@redhat.com>
14272
14273         maint.mk: sort file names *after* new transformation
14274         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14275         prefix would have led to an unwarranted failure in GNU parted.
14276         Sort after that transformation.
14277
14278 2011-03-19  Jim Meyering  <meyering@redhat.com>
14279
14280         maint.mk: fix po-file syntax-check rule
14281         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14282         Patch by Bruno Haible.
14283
14284 2011-03-19  Bruno Haible  <bruno@clisp.org>
14285
14286         socklen: Update comment.
14287         * m4/socklen.m4: Update comment about platforms.
14288
14289 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14290             Bruno Haible  <bruno@clisp.org>
14291
14292         inet_ntop, inet_pton: Simplify.
14293         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14294         documented to provide socklen_t and we already depend on sys_socket.
14295         * modules/inet_pton (Depends-on): Likewise.
14296         * lib/arpa_inet.in.h: Adjust comment.
14297
14298 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14299             Bruno Haible  <bruno@clisp.org>
14300
14301         netdb: Simplify.
14302         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14303         documented to provide socklen_t and we already depend on sys_socket.
14304         * lib/netdb.in.h: Adjust comment.
14305
14306 2011-03-19  Bruno Haible  <bruno@clisp.org>
14307
14308         sys_socket, netdb: Document problem with socklen_t.
14309         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14310         platforms.
14311         * doc/posix-headers/netdb.texi: Likewise.
14312
14313 2011-03-18  Eric Blake  <eblake@redhat.com>
14314
14315         maint.mk: let po check work in VPATH build
14316         * top/maint.mk (po_file): Allow cfg.mk override.
14317         (sc_po_check): Allow VPATH use.
14318         Reported by Jiri Denemark.
14319
14320 2011-03-16  Jim Meyering  <meyering@redhat.com>
14321
14322         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14323         Before, you would have had to create one .x-sc_ file per rule in order
14324         to exempt offending files.  Now, you may instead use a Make variable --
14325         usually defined in cfg.mk -- whose name identifies the affected rule.
14326         * top/maint.mk (_sc_excl): Define.
14327         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14328         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14329
14330 2011-03-13  Bruno Haible  <bruno@clisp.org>
14331
14332         ignore-value tests: Avoid warnings.
14333         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14334         empty for gcc < 3.4.
14335
14336 2011-03-13  Bruno Haible  <bruno@clisp.org>
14337
14338         passfd: Fix link error on Solaris.
14339         * modules/passfd (Description): Correct.
14340         (Depends-on): Add socketlib.
14341         (Link): New section.
14342         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14343
14344 2011-03-13  Bruno Haible  <bruno@clisp.org>
14345
14346         passfd: Fix link error on AIX 5.2.
14347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14348
14349 2011-03-13  Bruno Haible  <bruno@clisp.org>
14350
14351         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14352         * lib/sys_socket.in.h: Include <stddef.h>.
14353         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14354         CMSG_FIRSTHDR. Remove unused variable.
14355
14356 2011-03-13  Bruno Haible  <bruno@clisp.org>
14357
14358         passfd: Fix compilation error on OpenBSD.
14359         * lib/passfd.c: Include <sys/uio.h>.
14360
14361 2011-03-13  Bruno Haible  <bruno@clisp.org>
14362
14363         passfd test: Fix warnings.
14364         * tests/test-passfd.c: Include <sys/wait.h>.
14365         (main): Fix typo.
14366
14367 2011-03-13  Bruno Haible  <bruno@clisp.org>
14368
14369         passfd module, part 4, tweaks.
14370         * tests/test-passfd.c: Reorder includes.
14371         (main): Fix perror and printf calls.
14372
14373 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14374
14375         passfd module, part 4.
14376         * modules/passfd-tests: New file.
14377         * tests/test-passfd.c: New file.
14378
14379 2011-03-13  Jim Meyering  <meyering@redhat.com>
14380
14381         Makefile: rely on GNU make; derive syntax-check rule names
14382         Rather than requiring that each sc_ rule be listed as a dependent
14383         of "check", use features of GNU make to derive the list.
14384         * Makefile (syntax-check-rules): Define.
14385         (check): Depend on the new variable, not the hard-coded list.
14386
14387 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14388             Bruno Haible  <bruno@clisp.org>
14389
14390         passfd module, part 3.
14391         * lib/passfd.h (recvfd): Add a flags argument.
14392         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14393         (recvfd): Add a flags argument.
14394         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14395         exists.
14396         * modules/passfd (Depends-on): Add cloexec.
14397         Suggested by Eric Blake.
14398
14399 2011-03-13  Bruno Haible  <bruno@clisp.org>
14400
14401         passfd module, part 2, tweaks.
14402         * modules/passfd (Files): Reorder.
14403         (Depends-on): Remove errno.
14404         (Include): Remove <sys/socket.h>, <sys/un.h>.
14405         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14406         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14407         specification header. Include <sys/socket.h> always. Don't include
14408         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14409         (sendfd): Clarify that it sets errno when it fails.
14410         (recvfd): Fix specification.
14411
14412 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14413
14414         passfd module, part 2.
14415         * modules/passfd: New file.
14416         * lib/passfd.h: New file.
14417         * lib/passfd.c: New file.
14418
14419 2011-03-12  Bruno Haible  <bruno@clisp.org>
14420
14421         wcswidth, mbswidth: Avoid integer overflow.
14422         * lib/wcswidth.c: Include <limits.h>.
14423         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14424         * lib/mbswidth.c: Include <limits.h>.
14425         (mbsnwidth): Avoid 'int' overflow.
14426         Reported by Jim Meyering.
14427
14428 2011-03-12  Bruno Haible  <bruno@clisp.org>
14429
14430         futimens, utimensat: Avoid endless recursion on Solaris 10.
14431         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14432         Solaris.
14433         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14434         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14435
14436 2011-03-11  Jim Meyering  <meyering@redhat.com>
14437
14438         maint.mk: relax a regexp to accommodate other formatting styles
14439         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14440         between "ngettext" and the following "(".
14441
14442 2011-03-11  Pádraig Brady <P@draigBrady.com>
14443
14444         maint.mk: suppress a false positive warning
14445         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14446         diagnostics are marked with ngettext.
14447
14448 2011-03-10  Eric Blake  <eblake@redhat.com>
14449
14450         wchar: add explicit dependencies, for Tru64
14451         * modules/mbmemcasecoll (Depends-on): Add wchar.
14452         * modules/mbtowc (Depends-on): Likewise.
14453         * modules/vasnprintf (Depends-on): Likewise.
14454         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14455         * modules/wctomb (Depends-on): Likewise.
14456         Reported by Peter O'Gorman.
14457
14458 2011-03-08  Bruno Haible  <bruno@clisp.org>
14459
14460         passfd module, part 1, tweaks.
14461         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14462         Improve indentation. Improve AC_MSG_CHECKING messages.
14463         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14464         gl_SOCKET_FAMILIES.
14465
14466 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14467
14468         passfd module, part 1.
14469         * m4/afunix.m4: New file.
14470         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14471         sockets.
14472
14473 2011-03-08  Bruno Haible  <bruno@clisp.org>
14474
14475         regex-quote: New API.
14476         * lib/regex-quote.h: Include <stdbool.h>.
14477         (struct regex_quote_spec): New type.
14478         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14479         New declarations.
14480         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14481         'const struct regex_quote_spec *' argument.
14482         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14483         (pcre_special): New constant.
14484         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14485         New functions.
14486         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14487         'const struct regex_quote_spec *' argument.
14488         * modules/regex-quote (Depends-on): Add stdbool.
14489         * tests/test-regex-quote.c (check): Update for new API. Add test for
14490         anchored results.
14491         * NEWS: Mention the API change.
14492         Reported by Reuben Thomas and Eric Blake.
14493
14494 2011-03-06  Bruno Haible  <bruno@clisp.org>
14495
14496         regex-quote: Fix creation of POSIX extended regular expressions.
14497         * lib/regex-quote.c (ere_special): Add grouping and alternation
14498         operators.
14499
14500 2011-03-05  Bruno Haible  <bruno@clisp.org>
14501
14502         doc: Improve doc regarding autopoint vs. gnulib.
14503         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14504         disable autopoint while running autoreconf.
14505         Suggested by Ralf Wildenhues.
14506
14507 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14508
14509         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14510         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14511
14512 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14513
14514         parse-duration: remove xalloc.h dependency
14515         * lib/parse-duration.c (parse_period): handle NULL return from
14516         strdup instead of calling xstrdup().
14517         * modules/parse-duration: remove "xalloc" dependency
14518
14519 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14520
14521         bootstrap: honor m4_base when running aclocal
14522         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14523
14524 2011-03-02  Jim Meyering  <meyering@redhat.com>
14525
14526         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14527         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14528         on request from Matt Booth.
14529
14530 2011-03-01  Eric Blake  <eblake@redhat.com>
14531
14532         test-link: work on Hurd
14533         * tests/test-link.h (test_link): Hurd rejects linking directories
14534         with EISDIR instead of the POSIX-mandated EPERM.
14535
14536 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         stdio: simplify by moving files to printf-posix, sigpipe
14539         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14540         since this symbol is needed only if printf is replaced.
14541         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14542         Require gl_ASM_SYMBOL_PREFIX.
14543         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14544         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14545         (Depends-on): Add 'raise'.
14546         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14547         * modules/stdio (Files): Remove lib/stdio-write.c,
14548         m4/asm-underscore.m4.
14549         (Depends-on): Remove 'raise'.
14550
14551         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14552         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14553         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14554         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14555
14556 2011-02-28  Bruno Haible  <bruno@clisp.org>
14557
14558         localcharset: Assume ANSI C behaviour of free().
14559         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14560         calling free().
14561         Suggested by Simon Josefsson <simon@josefsson.org>.
14562
14563 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14564             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14565             Bruno Haible  <bruno@clisp.org>  (tiny change)
14566
14567         On Cygwin, use /proc file system instead of win32 API.
14568         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14569         Win32 file names.
14570         (DllMain): Simplify by removing Cygwin specific code.
14571         (find_shared_library_fullname): Use Linux specific implementation also
14572         for Cygwin.
14573         (get_shared_library_fullname): Update accordingly.
14574         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14575         Win32 file names.
14576         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14577         Cygwin specific code.
14578
14579 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14580             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14581
14582         Fix OpenMP flag detection for various Fortran compilers.
14583         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14584         OpenMP-conditional compilation construct, to force compile
14585         failure with missing OpenMP flag.
14586         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14587
14588 2011-02-25  Eric Blake  <eblake@redhat.com>
14589
14590         strstr: expand test coverage
14591         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14592         compilation.
14593         * tests/test-memmem.c (main): Duplicate tests.
14594         * tests/test-strcasestr.c (main): Likewise.
14595         * tests/test-c-strcasestr.c (main): Likewise.
14596
14597 2011-02-25  Jim Meyering  <meyering@redhat.com>
14598
14599         maint.mk: detect missing-NL-at-EOF, too
14600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14601         it also detects when a file lacks a newline at EOF.
14602         (require_exactly_one_NL_at_EOF_): Renamed from
14603         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14604         since people may well have .x-sc_... file names tied to the
14605         existing name.  Suggested by Eric Blake.
14606
14607 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14608
14609         dirname: move m4/dos.m4 functionality into lib/dosname.h
14610
14611         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14612         extracts symbols from it, puts them into config.h; but it's much
14613         easier to use the symbols directly.  filename.h already does this,
14614         but it disagrees with dos.m4 in some respects.  This patch
14615         introduces a different include file dosname.h that packages up
14616         dos.m4, and then later we can work on merging filename.h and
14617         dosname.h.  Applications that need only the easy-to-configure
14618         symbols should consider including dosname.h rather than dirname.h.
14619         * NEWS: Mention incompatible changes.
14620         * m4/dos.m4: Remove.
14621         * lib/dosname.h, modules/dosname: New files.
14622         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14623         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14624         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14625         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14626         Include dosname.h, not dirname.h.
14627         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14628         Include dosname.h, for definitions of symbols like ISSLASH
14629         that used to be in config.h.
14630         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14633         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14634         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14635         * modules/rmdir (Files): Likewise.
14636         * modules/stat (Files): Likewise.
14637         * modules/unlink (Files): Likewise.
14638         * modules/dirname-lgpl (Depends-on): Add dosname.
14639         * modules/lstat (Depends-on): Likewise.
14640         * modules/openat (Depends-on): Likewise.
14641         * modules/rmdir (Depends-on): Likewise.
14642         * modules/savewd (Depends-on): Likewise.
14643         * modules/stat (Depends-on): Likewise.
14644         * modules/unlink (Depends-on): Likewise.
14645         * modules/openat (Depends-on): Remove dirname-lgpl.
14646         * modules/savewd (Depends-on): Likewise.
14647         * tests/test-dirname.c: Do not use removed symbols like
14648         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14649         the remaining symbols, e.g., ISSLASH ('\\').
14650
14651 2011-02-25  Eric Blake  <eblake@redhat.com>
14652
14653         strstr: revert patches that introduced bug and pessimization
14654         * lib/str-two-way.h: Add another reference.
14655         (two_way_short_needle, two_way_long_needle): Revert changes from
14656         2011-02-24; they pessimize search speed.
14657         (critical_factorization): Partially revert changes from
14658         2010-06-22; they violate the requirement that the left half of the
14659         needle be smaller than the period of the needle.
14660
14661 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         filenamecat: remove unnecessary dependency on dirname-lgpl
14664         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14665         is no direct dependency, just an indirect one via filenamecat-lgpl.
14666
14667         remove: remove unnecessary use of m4/dos.m4
14668         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14669         * modules/remove (FILES): Remove m4/dos.m4.
14670
14671         * lib/openat-proc.c: Don't include dirname.h; not needed.
14672
14673         backupfile: remove unnecessary use of m4/dos.m4
14674         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14675         of its symbols are used by the backupfile code.  backupfile.c does
14676         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14677         for the rare case of programs that want all their backup file
14678         names to live within 8+3 limits, and dos.m4 doesn't address that.
14679         * modules/backupfile (Files): Remove m4/dos.m4.
14680
14681 2011-02-24  Jim Meyering  <meyering@redhat.com>
14682
14683         strstr: fix a bug whereby strstr would mistakenly return NULL
14684         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14685         in period calculation.
14686         (two_way_long_needle): Likewise.
14687         The original problem was reported by Mike Stump in
14688         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14689         Ralf Wildenhues provided the short needle and haystack.
14690         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14691         Add a more involved test to trigger the bug in two_way_long_needle.
14692
14693 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14694
14695         gnulib-tool: remove use of bold display in help screen
14696         * gnulib-tool (func_usage): Do not use bold display anymore in the
14697         help screen.  That was just meant to be a temporary emphasis for a
14698         backward-incompatible change.
14699
14700 2011-02-23  Bruno Haible  <bruno@clisp.org>
14701
14702         Fix misindentation of preprocessor directives.
14703         * lib/argp-namefrob.h: Reindent preprocessor directives.
14704         * lib/getopt_int.h (struct _getopt_data): Likewise.
14705         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14706         * lib/vasnprintf.c (decode_long_double): Likewise.
14707         * tests/test-argmatch.c: Insert blank lines, for clarity.
14708         * tests/test-exclude.c: Likewise.
14709
14710 2011-02-22  Bruno Haible  <bruno@clisp.org>
14711
14712         ioctl: Fix for MacOS X in 64-bit mode.
14713         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14714         value.
14715         Suggested by Eric Blake.
14716         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14717
14718 2011-02-22  Jim Meyering  <meyering@redhat.com>
14719
14720         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14721         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14722         in lib/.
14723
14724 2011-02-22  Eric Blake  <eblake@redhat.com>
14725
14726         maint: avoid any CDPATH issue
14727         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14728
14729         maint: adjust cpp indentation for my modules, as well
14730         * Makefile (sc_cpp_indent_check): Add my name.
14731         * lib/fbufmode.c: Filter through cppi.
14732         * lib/fpurge.c: Likewise.
14733         * lib/freadable.c: Likewise.
14734         * lib/freading.c: Likewise.
14735         * lib/fwritable.c: Likewise.
14736         * lib/fwriting.c: Likewise.
14737         * lib/sigaction.c: Likewise.
14738
14739 2011-02-22  Jim Meyering  <meyering@redhat.com>
14740
14741         maint: adjust cpp indentation to reflect nesting depth
14742         I.e., in a block of code that begins with an unnested "#if",
14743         put one space between the "#" in column 1 and following token.
14744         For example,
14745         -#include <sys/vfs.h>
14746         +# include <sys/vfs.h>
14747         Do this only in .c files that are part of a module I maintain.
14748         * lib/linkat.c: Filter through cppi.
14749         * lib/nanosleep.c: Likewise.
14750         * lib/openat.c: Likewise.
14751         * lib/openat-die.c: Likewise.
14752         * lib/dup3.c: Likewise.
14753         * lib/fchownat.c: Likewise.
14754         * lib/flock.c: Likewise.
14755         * lib/fsync.c: Likewise.
14756         * lib/fts.c: Likewise.
14757         * lib/getpass.c: Likewise.
14758         * lib/gettimeofday.c: Likewise.
14759         * lib/userspec.c: Likewise.
14760         * Makefile (sc_cpp_indent_check): New rule, to check this.
14761
14762 2011-02-22  Bruno Haible  <bruno@clisp.org>
14763
14764         New module 'wctomb'.
14765         * lib/stdlib.in.h (wctomb): New declaration.
14766         * lib/wctomb.c: New file.
14767         * lib/wctomb-impl.h: New file.
14768         * m4/wctomb.m4: New file.
14769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14770         REPLACE_WCTOMB.
14771         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14772         REPLACE_WCTOMB.
14773         * modules/wctomb: New file.
14774         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14775         * doc/posix-functions/wctomb.texi: Mention the new module.
14776         * modules/wctob (Depends-on): Add wctomb.
14777
14778 2011-02-22  Bruno Haible  <bruno@clisp.org>
14779
14780         New module 'mbtowc'.
14781         * lib/stdlib.in.h (mbtowc): New declaration.
14782         * lib/mbtowc.c: New file.
14783         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14784         * m4/mbtowc.m4: New file.
14785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14786         REPLACE_MBTOWC.
14787         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14788         REPLACE_MBTOWC.
14789         * modules/mbtowc: New file.
14790         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14791         * doc/posix-functions/mbtowc.texi: Mention the new module.
14792         * modules/btowc (Depends-on): Add mbtowc.
14793
14794 2011-02-22  Bruno Haible  <bruno@clisp.org>
14795
14796         wcrtomb: Add more tests for native Windows platforms.
14797         * tests/test-wcrtomb-w32-1.sh: New file.
14798         * tests/test-wcrtomb-w32-2.sh: New file.
14799         * tests/test-wcrtomb-w32-3.sh: New file.
14800         * tests/test-wcrtomb-w32-4.sh: New file.
14801         * tests/test-wcrtomb-w32-5.sh: New file.
14802         * tests/test-wcrtomb-w32.c: New file.
14803         * modules/wcrtomb-tests (Files): Add them.
14804         (Makefile.am): Arrange to run these tests.
14805         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14806         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14807
14808 2011-02-20  Bruno Haible  <bruno@clisp.org>
14809
14810         wcrtomb: Enhance test.
14811         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14812
14813 2011-02-20  Bruno Haible  <bruno@clisp.org>
14814
14815         mbrtowc: Tiny optimization.
14816         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14817
14818 2011-02-20  Jim Meyering  <meyering@redhat.com>
14819
14820         test-exclude.c: remove unmatched #endif
14821         * tests/test-exclude.c: Remove stray #endif, left over from
14822         the change of a week ago.
14823
14824 2011-02-19  Jim Meyering  <meyering@redhat.com>
14825
14826         git-version-gen: skip "-dirty" check when appropriate
14827         * build-aux/git-version-gen: Don't run any git commands when the
14828         version string comes from .tarball-version.  Prior to this, we
14829         would run git update-index --refresh even from a just-unpacked
14830         tarball directory, and that could affect a .git/ directory in a
14831         parent of the build directory.  Reported by Mike Frysinger.
14832
14833 2011-02-19  Bruno Haible  <bruno@clisp.org>
14834
14835         unictype/property-byname: Reduce the size of the 'data' segment.
14836         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14837
14838 2011-02-19  Bruno Haible  <bruno@clisp.org>
14839
14840         unictype/scripts: Reduce the size of the 'data' segment.
14841         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14842         '%pic'.
14843         * lib/unictype/scripts_byname.gperf: Regenerated.
14844
14845 2011-02-19  Bruno Haible  <bruno@clisp.org>
14846
14847         stdint: Update documentation.
14848         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14849
14850 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         stdint: omit redundant check for wchar.h
14853         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14854         always tests whether wchar.h exists, so remove the now-redundant test.
14855
14856 2011-02-18  Bruno Haible  <bruno@clisp.org>
14857
14858         stdint: Cut dependency to module 'wchar'.
14859         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14860         include the necessary prerequisites.
14861         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14862         * modules/stdint (Depends-on): Remove wchar.
14863         (Makefile.am): Substitute HAVE_WCHAR_H.
14864         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14865
14866 2011-02-18  Eric Blake  <eblake@redhat.com>
14867
14868         longlong: skip, rather than fail, on cross-compilation
14869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14870         when cross-compiling; regression from 2011-02-16.
14871
14872 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14873
14874         * NEWS: Mention 2011-02-08 change to stdlib.
14875
14876 2011-02-17  Bruno Haible  <bruno@clisp.org>
14877
14878         getloadavg: Add comments about platforms.
14879         * m4/getloadavg.m4: Add comment.
14880         * lib/getloadavg.c: Likewise.
14881
14882 2011-02-17  Bruno Haible  <bruno@clisp.org>
14883
14884         getloadavg: Fix link error on Solaris 2.6.
14885         * modules/getloadavg (Link): New section.
14886         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14887         linking test-getloadavg.
14888         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14889         getloadavg.
14890
14891 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14894         It was 'int', but this doesn't match the IRIX 6.5 manual.
14895         Suggested by Bruno Haible in
14896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14897
14898 2011-02-17  Bruno Haible  <bruno@clisp.org>
14899
14900         havelib: Fix comments.
14901         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14902         change.
14903
14904 2011-02-17  Bruno Haible  <bruno@clisp.org>
14905
14906         havelib: Update config.rpath.
14907         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14908
14909 2011-02-17  Bruno Haible  <bruno@clisp.org>
14910
14911         getloadavg test: Add some plausibility checks.
14912         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14913         is improbable.
14914
14915 2011-02-16  Eric Blake  <eblake@redhat.com>
14916
14917         maintainer-makefile: make syntax-check a no-op from tarballs
14918         * top/maint.mk (no-vc-detected): New rule.
14919         (local-checks-available): Use it to avoid hanging if someone tries
14920         'make syntax-check' from a tarball.  Also append to any non-syntax
14921         checks already defined in cfg.mk.
14922
14923 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14924
14925         longlong: tune, particularly for common case of c99
14926
14927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14928         or running anything if c99, or if unsigned long long int does not
14929         work.  In either case, we know the answer without further tests.
14930         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14931         it at most once, and use its results for both long long int and
14932         unsigned long long int.  This is more likely to be efficient in
14933         the common case where the program wants to check for both long
14934         long int and unsigned long long int.
14935         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14936         since the answer is already known.
14937
14938 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14939
14940         getloadavg: set errno
14941         * lib/getloadavg.c: Set errno when returning -1.  If no other
14942         error number looks appropriate, set it to ENOSYS if the getloadavg
14943         looks like it can't possibly ever work, ENOTSUP otherwise.
14944         Suggested by Bruno Haible in
14945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14946
14947         getloadavg: trim unused parts and speed up 'configure'
14948         * NEWS: Document this.
14949         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14950         always compiled if getloadavg is absent.
14951         Move test code to ...
14952         * tests/test-getloadavg.c: New file, containing previous
14953         contents of test from lib/getloadavg.c.  It also contains
14954         suggestions by Bruno Haible in
14955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14956         * modules/getloadavg-tests: New file.
14957         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14958         Do tests in the same order as they're needed for getloadavg.c.
14959         Omit setgid-related tests that generate symbols KMEM_GROUP,
14960         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14961         Do only the tests that are needed to see whether the system has
14962         getloadavg, moving the other tests into ...
14963         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14964         NLIST_NAME_UNION; nobody should be using it.  Do not define
14965         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14966         relevant, as the user of this module shouldn't care how getloadavg
14967         is implemented.
14968
14969         getloadavg: omit unused var
14970         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14971
14972 2011-02-15  Jim Meyering  <meyering@redhat.com>
14973
14974         doc: update users.txt
14975         * users.txt: Update iwhd's URL.
14976
14977 2011-02-13  Bruno Haible  <bruno@clisp.org>
14978
14979         Consistent macro naming for macros that use GCC __attribute__.
14980         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14981         _ATTRIBUTE_NONNULL_.
14982         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14983         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14984         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14985         ATTRIBUTE_DEPRECATED.
14986         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14987         ATTRIBUTE_NORETURN.
14988         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14989         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14990         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14991         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14992         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14993         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14994         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14995         ATTRIBUTE_SENTINEL.
14996         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14997         ATTRIBUTE_RETURN_CHECK.
14998         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14999         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15000         ATTRIBUTE_NORETURN.
15001         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15002         Reported by Paul Eggert.
15003
15004 2011-02-13  Bruno Haible  <bruno@clisp.org>
15005
15006         Don't interfere with a program's definition of __attribute__.
15007         * lib/argp.h (__attribute__): Remove definition.
15008         (_GL_ATTRIBUTE_FORMAT): New macro.
15009         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15010         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15011         (_GL_ATTRIBUTE_FORMAT): New macro.
15012         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15013         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15014         GCC 3 or newer.
15015         * lib/error.h (__attribute__): Remove definition.
15016         (_GL_ATTRIBUTE_FORMAT): New macro.
15017         (error, error_at_line): Use it.
15018         * lib/hash.h (__attribute__): Remove definition.
15019         (ATTRIBUTE_WUR): Update definition. Define always.
15020         * lib/openat.h (__attribute__): Remove definition.
15021         (ATTRIBUTE_NORETURN): Update definition. Define always.
15022         * lib/sigpipe-die.h (__attribute__): Remove definition.
15023         (ATTRIBUTE_NORETURN): Update definition. Define always.
15024         * lib/vasnprintf.h (__attribute__): Remove definition.
15025         (_GL_ATTRIBUTE_FORMAT): New macro.
15026         (asnprintf, vasnprintf): Use it.
15027         * lib/xalloc.h (__attribute__): Remove definition.
15028         (ATTRIBUTE_NORETURN): Update definition. Define always.
15029         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15030         * lib/xmemdup0.h (__attribute__): Remove definition.
15031         (ATTRIBUTE_NORETURN): Update definition. Define always.
15032         * lib/xprintf.h (__attribute__): Remove definition.
15033         (_GL_ATTRIBUTE_FORMAT): New macro.
15034         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15035         * lib/xstrtol.h (__attribute__): Remove definition.
15036         (ATTRIBUTE_NORETURN): Update definition. Define always.
15037         * lib/xvasprintf.h (__attribute__): Remove definition.
15038         (_GL_ATTRIBUTE_FORMAT): New macro.
15039         (xasprintf, xvasprintf): Use it.
15040         * tests/test-argmatch.c (__attribute__): Remove definition.
15041         (ATTRIBUTE_NORETURN): Update definition. Define always.
15042         * tests/test-exclude.c (__attribute__): Remove definition.
15043         (ATTRIBUTE_NORETURN): Update definition. Define always.
15044         Reported by Paul Eggert.
15045
15046 2011-02-13  Bruno Haible  <bruno@clisp.org>
15047
15048         mbrtowc: Add more tests for native Windows platforms.
15049         * tests/test-mbrtowc-w32-1.sh: New file.
15050         * tests/test-mbrtowc-w32-2.sh: New file.
15051         * tests/test-mbrtowc-w32-3.sh: New file.
15052         * tests/test-mbrtowc-w32-4.sh: New file.
15053         * tests/test-mbrtowc-w32-5.sh: New file.
15054         * tests/test-mbrtowc-w32.c: New file.
15055         * modules/mbrtowc-tests (Files): Add them.
15056         (Makefile.am): Arrange to run these tests.
15057         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15058         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15059
15060 2011-02-13  Bruno Haible  <bruno@clisp.org>
15061
15062         mbrtowc: Work around native Windows bug.
15063         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15064         guess when no suitable locale for testing was found.
15065         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15066
15067 2011-02-13  Bruno Haible  <bruno@clisp.org>
15068
15069         mbsinit: Work around mingw bug.
15070         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15071         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15072         Windows.
15073         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15074
15075 2011-02-13  Bruno Haible  <bruno@clisp.org>
15076
15077         mbsinit: Don't crash for a NULL argument.
15078         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15079         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15080
15081 2011-02-13  Bruno Haible  <bruno@clisp.org>
15082
15083         Don't interfere with a program's definition of __attribute__.
15084         * lib/stdio.in.h (__attribute__): Remove definition.
15085         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15086         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15087         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15088         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15089         * lib/string.in.h (__attribute__): Remove definition.
15090         Reported by Paul Eggert.
15091
15092 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15093
15094         stdlib: don't get in the way of non-GCC __attribute__
15095         See thread starting at
15096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15097         Revert previous stdlib change, installing the following instead:
15098         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15099         to get in the way of a non-GCC compiler that supports __attribute__.
15100         (_GL_ATTRIBUTE_RETURN): New macro.
15101         (_Exit): Use it instead of __attribute__.
15102
15103 2011-02-12  Bruno Haible  <bruno@clisp.org>
15104
15105         quotearg test: Avoid test failure on mingw.
15106         * tests/test-quotearg.sh: Convert the locale identifier from native
15107         Windows syntax to Unix syntax.
15108
15109 2011-02-12  Bruno Haible  <bruno@clisp.org>
15110
15111         setlocale: Prefer gnulib's override over libintl's override.
15112         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15113         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15114         GNULIB_defined_setlocale is set.
15115
15116 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         stdlib: support non-GCC __attribute__
15119
15120         Fix a serious and tricky problem encountered when attempting to
15121         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15122         5.5, but it crashed due to memory corruption on Solaris 10 with
15123         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15124         bits that are otherwise zero.  This tagging is optional inside
15125         Emacs but is preferred and is used when __attribute__ ((__aligned
15126         (8))) works, as it does with both recent-enough GCC and with Sun C
15127         5.11.  However, Sun C 5.11 is not GCC and does not #define
15128         __GNUC__ and __GNUC_MINOR__.
15129
15130         When I added the getloadavg module to Emacs, it brought in
15131         stdlib.in.h, which contained this fragment:
15132
15133            #ifndef __attribute__
15134            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15135            #  define __attribute__(Spec)   /* empty */
15136            # endif
15137            #endif
15138
15139         When files that include <stdlib.h> were compiled with Sun C 5.11,
15140         the above code disabled __attribute__ ((__aligned (8))), which
15141         caused variables to not be properly aligned, which eventually led
15142         to the pointer corruption mentioned above.  (This was a bit hard
15143         to diagnose, unfortunately.)
15144
15145         Several "#define __attribute__(X) /* empty */" code snippets need
15146         to be eradicated from Gnulib to work with non-GCC compilers that
15147         support __attribute__.  The Autoconf way to do this is to test for
15148         each kind of attribute that we want support for, and selectively
15149         enable that in source code.
15150
15151         Fix this problem just for stdlib.h, by adding a test for the
15152         __noreturn__ attribute, and change stdlib.in.h to use that test
15153         when needed.  This technique can be easily generalized to the
15154         other *.in.h files and attributes, and a similar technique can be
15155         used for *.h and *.c files.  This patch is enough to solve the
15156         problem for Emacs + getloadavg, and I thought I'd publish it for
15157         feedback before undertaking further, similar fixes in other
15158         modules.
15159
15160         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15161         because it's not needed for stdlib.h.  It merely substitutes the
15162         value directly into stdlib.h.  We may well need to #define it, or
15163         similar symbols, for other modules, but it's nice to also have an
15164         option to not #define it for applications like Emacs that do not
15165         need it.
15166
15167         * lib/stdlib.in.h (__attribute__): Do not #define.
15168         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15169         be defined only if the _Exit module is also used.
15170         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15172         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15173         platforms.
15174         * modules/_Exit (Files): Add m4/attribute.m4.
15175         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15176         * m4/attribute.m4: New file.
15177
15178 2011-02-12  Bruno Haible  <bruno@clisp.org>
15179
15180         wcsrtombs: Work around bug on native Windows.
15181         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15182         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15183         instead of len.
15184         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15185
15186 2011-02-12  Bruno Haible  <bruno@clisp.org>
15187
15188         mbsrtowcs: Work around bug on native Windows.
15189         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15190         against mingw bug.
15191         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15192
15193 2011-02-12  Bruno Haible  <bruno@clisp.org>
15194
15195         Avoid setlocale bugs in tests.
15196         * modules/btowc (Dependencies): Add setlocale.
15197         * modules/c-strcase (Dependencies): Likewise.
15198         * modules/mbmemcasecmp (Dependencies): Likewise.
15199         * modules/mbmemcasecoll (Dependencies): Likewise.
15200         * modules/mbrtowc (Dependencies): Likewise.
15201         * modules/mbscasecmp (Dependencies): Likewise.
15202         * modules/mbscasestr (Dependencies): Likewise.
15203         * modules/mbschr (Dependencies): Likewise.
15204         * modules/mbscspn (Dependencies): Likewise.
15205         * modules/mbsinit (Dependencies): Likewise.
15206         * modules/mbsncasecmp (Dependencies): Likewise.
15207         * modules/mbsnrtowcs (Dependencies): Likewise.
15208         * modules/mbspbrk (Dependencies): Likewise.
15209         * modules/mbspcasecmp (Dependencies): Likewise.
15210         * modules/mbsrchr (Dependencies): Likewise.
15211         * modules/mbsrtowcs (Dependencies): Likewise.
15212         * modules/mbsspn (Dependencies): Likewise.
15213         * modules/mbsstr (Dependencies): Likewise.
15214         * modules/nl_langinfo (Dependencies): Likewise.
15215         * modules/quotearg (Dependencies): Likewise.
15216         * modules/unicase/locale-language (Dependencies): Likewise.
15217         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15218         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15219         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15220         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15221         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15222         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15223         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15224         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15225         * modules/vasnprintf-posix (Dependencies): Likewise.
15226         * modules/wcrtomb (Dependencies): Likewise.
15227         * modules/wcsnrtombs (Dependencies): Likewise.
15228         * modules/wcsrtombs (Dependencies): Likewise.
15229
15230 2011-02-12  Bruno Haible  <bruno@clisp.org>
15231
15232         setlocale: Workaround native Windows bug.
15233         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15234         succeeds but sets LC_CTYPE to "C", report a failure.
15235         * tests/test-setlocale2.sh: New file.
15236         * tests/test-setlocale2.c: New file.
15237         * modules/setlocale-tests (Files): Add the new files.
15238         (Makefile.am): Enable test-setlocale2.sh test.
15239         * doc/posix-functions/setlocale.texi: Mention workaround.
15240
15241 2011-02-11  Bruno Haible  <bruno@clisp.org>
15242
15243         Tests for module 'setlocale'.
15244         * modules/setlocale-tests: New file.
15245         * tests/test-setlocale1.sh: New file.
15246         * tests/test-setlocale1.c: New file.
15247
15248         New module 'setlocale'.
15249         * lib/locale.in.h (setlocale): New declaration.
15250         * lib/setlocale.c: New file, based on
15251         gettext/gettext-runtime/intl/setlocale.c.
15252         * m4/setlocale.m4: New file.
15253         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15254         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15255         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15256         REPLACE_SETLOCALE.
15257         * modules/setlocale: New file.
15258         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15259         * doc/posix-functions/setlocale.texi: Mention the new module.
15260
15261 2011-02-11  Bruno Haible  <bruno@clisp.org>
15262
15263         Prepare for locale dependent tests on mingw.
15264         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15265         because it has the wrong locale encoding.
15266         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15267         French_France.1252 instead of "fr".
15268         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15269         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15270         because it has the wrong locale encoding.
15271         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15272         native Windows, try Turkish_Turkey.65001.
15273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15274         Chinese_China.54936.
15275
15276         Prepare for locale dependent tests on mingw.
15277         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15278         differently.
15279         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15280         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15281         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15283
15284 2011-02-11  Eric Blake  <eblake@redhat.com>
15285
15286         strptime: avoid compiler warnings
15287         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15288         compiler warnings about dead code.
15289         Reported by Daniel P. Berrange.
15290
15291 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15292
15293         doc: update users.txt
15294         * users.txt: Add rcs.
15295
15296 2011-02-10  John W. Eaton  <jwe@gnu.org>
15297
15298         doc: update users.txt
15299         * users.txt: Add octave.
15300
15301 2011-02-10  Jim Meyering  <meyering@redhat.com>
15302
15303         doc: update users.txt
15304         * users.txt: Add iwhd.
15305
15306 2011-02-09  Bruno Haible  <bruno@clisp.org>
15307
15308         gnulib-tool: Make copyright notice adjustment more robust.
15309         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15310         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15311         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15312         License".
15313         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15314
15315 2011-02-06  Bruno Haible  <bruno@clisp.org>
15316
15317         New module 'towctrans'.
15318         * modules/towctrans: New file.
15319         * lib/wctype.in.h (towctrans): New declaration.
15320         * lib/towctrans.c: New file.
15321         * lib/towctrans-impl.h: New file.
15322         * m4/towctrans.m4: New file.
15323         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15324         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15325         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15326         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15327         * doc/posix-functions/towctrans.texi: Mention the new module.
15328
15329 2011-02-06  Bruno Haible  <bruno@clisp.org>
15330
15331         New module 'wctrans'.
15332         * modules/wctrans: New file.
15333         * lib/wctype.in.h (wctrans): New declaration.
15334         * lib/wctrans.c: New file.
15335         * lib/wctrans-impl.h: New file.
15336         * m4/wctrans.m4: New file.
15337         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15338         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15339         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15340         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15341         * doc/posix-functions/wctrans.texi: Mention the new module.
15342
15343 2011-02-06  Bruno Haible  <bruno@clisp.org>
15344
15345         New module 'iswctype'.
15346         * modules/iswctype: New file.
15347         * lib/wctype.in.h (iswctype): New declaration.
15348         * lib/iswctype.c: New file.
15349         * lib/iswctype-impl.h: New file.
15350         * m4/iswctype.m4: New file.
15351         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15352         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15353         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15354         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15355         * doc/posix-functions/iswctype.texi: Mention the new module and the
15356         HP-UX 11.00 problem.
15357
15358 2011-02-06  Bruno Haible  <bruno@clisp.org>
15359
15360         New module 'wctype'.
15361         * modules/wctype: Change to represent the wctype() substitute.
15362         * lib/wctype.in.h (wctype): New declaration.
15363         * lib/wctype.c: New file.
15364         * lib/wctype-impl.h: New file.
15365         * m4/wctype.m4: New file.
15366         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15367         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15368         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15369         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15370         * doc/posix-functions/wctype.texi: Mention the new module and the
15371         HP-UX 11.00 problem.
15372
15373 2011-02-06  Bruno Haible  <bruno@clisp.org>
15374
15375         wctype-h: Ensure wctype_t and wctrans_t are defined.
15376         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15377         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15378         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15379         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15380         HAVE_WCTRANS_T.
15381         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15382
15383 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15384
15385         flock: fix license typo
15386
15387         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15388         omitted.
15389
15390 2011-02-08  Bruno Haible  <bruno@clisp.org>
15391
15392         Split large sed scripts, for HP-UX sed.
15393         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15394         to avoid HP-UX limit of 99 commands, in the near future.
15395         * modules/stdlib (Makefile.am): Likewise.
15396         * modules/unistd (Makefile.am): Likewise.
15397         * modules/wchar (Makefile.am): Likewise.
15398         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15399         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15401
15402 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15403             Bruno Haible  <bruno@clisp.org>
15404
15405         stdlib: improve random_r modularization
15406         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15407         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15408         you also need the random_r module to get this material right.
15409         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15410         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15411         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15412
15413 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15414
15415         stdlib: don't depend on stdint
15416         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15417         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15418         be independent of whether stdint.h is needed.
15419         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15420         here, instead of ...
15421         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15422         struct random_data should be using the random_r module, not just
15423         the stdlib module (which wouldn't make sense: what package needs
15424         just struct random_data without also needing random_r?).
15425         * modules/stdlib (Depends-on): Remove stdint.
15426
15427         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15428         See the thread rooted at
15429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15430         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15431         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15432         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15433         __VMS)); previously it was always included (via fcntl--.h).
15434         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15435         hand; this is good enough for load averages.  Also, do not use
15436         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15437         flags directly if available and don't bother otherwise.  (Packages
15438         that need the extra reliability should use the modules that define
15439         these flags on older platforms that lack them.)
15440         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15441         fcntl-safer.
15442
15443 2011-02-08  Jim Meyering  <meyering@redhat.com>
15444
15445         di-set.h, ino-map.h: add multiple-inclusion guard
15446         Technically, the guard is required only for ino-map.h, due to its
15447         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15448         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15449         * lib/ino-map.h: Likewise.
15450
15451 2011-02-06  Bruno Haible  <bruno@clisp.org>
15452
15453         iswblank: Ensure declaration on glibc systems.
15454         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15455         * modules/iswblank (Dependencies): Add 'extensions'.
15456         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15457
15458 2011-02-06  Bruno Haible  <bruno@clisp.org>
15459
15460         New module 'iswblank'.
15461         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15462         * modules/iswblank: New file.
15463         * modules/wctype-h (Files): Remove lib/iswblank.c.
15464         (Makefile.am): Substitute GNULIB_ISWBLANK.
15465         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15466         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15467         (gl_WCTYPE_H_DEFAULTS): New macro.
15468         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15469         * modules/iswblank-tests: New file.
15470         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15471         * tests/test-wctype-h.c (main): Remove iswblank tests.
15472         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15473         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15474         of 'wctype-h'.
15475         * NEWS: Mention the change.
15476         * modules/mbchar (Depends-on): Add iswblank.
15477
15478 2011-02-08  Bruno Haible  <bruno@clisp.org>
15479
15480         di-set tests: Refactor.
15481         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15482         unnecessary includes.
15483         (ASSERT): Remove macro.
15484         (main): Make C90 compliant by avoiding variable declaration after
15485         statement.
15486         * modules/di-set-tests (Files): Add tests/macros.h.
15487
15488 2011-02-08  Bruno Haible  <bruno@clisp.org>
15489
15490         ino-map tests: Refactor.
15491         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15492         unnecessary includes.
15493         (ASSERT): Remove macro.
15494         (main): Make C90 compliant by avoiding variable declaration after
15495         statement.
15496         * modules/ino-map-tests (Files): Add tests/macros.h.
15497
15498 2011-02-08  Jim Meyering  <meyering@redhat.com>
15499
15500         di-set: add "const" to a cast
15501         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15502         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15503
15504 2011-02-06  Bruno Haible  <bruno@clisp.org>
15505
15506         Rename module 'wctype' to 'wctype-h'.
15507         * modules/wctype-h: Renamed from modules/wctype.
15508         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15509         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15510         (Files, Depends-on, Makefile.am): Update.
15511         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15512         (Files, Makefile.am): Update.
15513         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15514         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15515         * doc/posix-headers/wctype.texi: Update.
15516         * doc/posix-functions/iswalnum.texi: Update.
15517         * doc/posix-functions/iswalpha.texi: Update.
15518         * doc/posix-functions/iswblank.texi: Update.
15519         * doc/posix-functions/iswcntrl.texi: Update.
15520         * doc/posix-functions/iswdigit.texi: Update.
15521         * doc/posix-functions/iswgraph.texi: Update.
15522         * doc/posix-functions/iswlower.texi: Update.
15523         * doc/posix-functions/iswprint.texi: Update.
15524         * doc/posix-functions/iswpunct.texi: Update.
15525         * doc/posix-functions/iswspace.texi: Update.
15526         * doc/posix-functions/iswupper.texi: Update.
15527         * doc/posix-functions/iswxdigit.texi: Update.
15528         * doc/posix-functions/towlower.texi: Update.
15529         * doc/posix-functions/towupper.texi: Update.
15530         * NEWS: Mention the change.
15531         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15532         * modules/mbchar (Dependencies): Likewise.
15533         * modules/mbswidth (Dependencies): Likewise.
15534         * modules/quotearg (Dependencies): Likewise.
15535         * modules/regex (Dependencies): Likewise.
15536         * modules/wcscasecmp (Dependencies): Likewise.
15537         * modules/wcsncasecmp (Dependencies): Likewise.
15538         * modules/wcwidth (Dependencies): Likewise.
15539
15540 2011-02-06  Bruno Haible  <bruno@clisp.org>
15541
15542         New module 'wcswidth'.
15543         * modules/wcswidth: New file.
15544         * lib/wchar.in.h (wcswidth): New declaration.
15545         * lib/wcswidth.c: New file.
15546         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15547         * m4/wcswidth.m4: New file.
15548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15550         REPLACE_WCSWIDTH.
15551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15552         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15553         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15554         * doc/posix-functions/wcswidth.texi: Mention the new module.
15555
15556 2011-02-06  Bruno Haible  <bruno@clisp.org>
15557
15558         New module 'wcstok'.
15559         * modules/wcstok: New file.
15560         * lib/wchar.in.h (wcstok): New declaration.
15561         * lib/wcstok.c: New file.
15562         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15563         * m4/wcstok.m4: New file.
15564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15567         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15568         * doc/posix-functions/wcstok.texi: Mention the new module.
15569
15570 2011-02-06  Bruno Haible  <bruno@clisp.org>
15571
15572         New module 'wcsstr'.
15573         * modules/wcsstr: New file.
15574         * lib/wchar.in.h (wcsstr): New declaration.
15575         * lib/wcsstr.c: New file.
15576         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15577         * m4/wcsstr.m4: New file.
15578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15581         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15582         * doc/posix-functions/wcsstr.texi: Mention the new module.
15583
15584 2011-02-06  Bruno Haible  <bruno@clisp.org>
15585
15586         New module 'wcspbrk'.
15587         * modules/wcspbrk: New file.
15588         * lib/wchar.in.h (wcspbrk): New declaration.
15589         * lib/wcspbrk.c: New file.
15590         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15591         * m4/wcspbrk.m4: New file.
15592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15595         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15596         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15597
15598 2011-02-06  Bruno Haible  <bruno@clisp.org>
15599
15600         New module 'wcsspn'.
15601         * modules/wcsspn: New file.
15602         * lib/wchar.in.h (wcsspn): New declaration.
15603         * lib/wcsspn.c: New file.
15604         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15605         * m4/wcsspn.m4: New file.
15606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15609         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15610         * doc/posix-functions/wcsspn.texi: Mention the new module.
15611
15612 2011-02-06  Bruno Haible  <bruno@clisp.org>
15613
15614         New module 'wcscspn'.
15615         * modules/wcscspn: New file.
15616         * lib/wchar.in.h (wcscspn): New declaration.
15617         * lib/wcscspn.c: New file.
15618         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15619         * m4/wcscspn.m4: New file.
15620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15623         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15624         * doc/posix-functions/wcscspn.texi: Mention the new module.
15625
15626 2011-02-06  Bruno Haible  <bruno@clisp.org>
15627
15628         New module 'wcsrchr'.
15629         * modules/wcsrchr: New file.
15630         * lib/wchar.in.h (wcsrchr): New declaration.
15631         * lib/wcsrchr.c: New file.
15632         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15633         * m4/wcsrchr.m4: New file.
15634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15637         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15638         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15639
15640 2011-02-06  Bruno Haible  <bruno@clisp.org>
15641
15642         New module 'wcschr'.
15643         * modules/wcschr: New file.
15644         * lib/wchar.in.h (wcschr): New declaration.
15645         * lib/wcschr.c: New file.
15646         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15647         * m4/wcschr.m4: New file.
15648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15651         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15652         * doc/posix-functions/wcschr.texi: Mention the new module.
15653
15654 2011-02-06  Bruno Haible  <bruno@clisp.org>
15655
15656         New module 'wcsdup'.
15657         * modules/wcsdup: New file.
15658         * lib/wchar.in.h (wcsdup): New declaration.
15659         * lib/wcsdup.c: New file.
15660         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15661         * m4/wcsdup.m4: New file.
15662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15665         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15666         * doc/posix-functions/wcsdup.texi: Mention the new module.
15667
15668 2011-02-06  Bruno Haible  <bruno@clisp.org>
15669
15670         New module 'wcsxfrm'.
15671         * modules/wcsxfrm: New file.
15672         * lib/wchar.in.h (wcsxfrm): New declaration.
15673         * lib/wcsxfrm.c: New file.
15674         * lib/wcsxfrm-impl.h: New file.
15675         * m4/wcsxfrm.m4: New file.
15676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15679         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15680         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15681
15682 2011-02-06  Bruno Haible  <bruno@clisp.org>
15683
15684         New module 'wcscoll'.
15685         * modules/wcscoll: New file.
15686         * lib/wchar.in.h (wcscoll): New declaration.
15687         * lib/wcscoll.c: New file.
15688         * lib/wcscoll-impl.h: New file.
15689         * m4/wcscoll.m4: New file.
15690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15693         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15694         * doc/posix-functions/wcscoll.texi: Mention the new module.
15695
15696 2011-02-06  Bruno Haible  <bruno@clisp.org>
15697
15698         New module 'wcsncasecmp'.
15699         * modules/wcsncasecmp: New file.
15700         * lib/wchar.in.h (wcsncasecmp): New declaration.
15701         * lib/wcsncasecmp.c: New file.
15702         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15703         * m4/wcsncasecmp.m4: New file.
15704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15707         HAVE_WCSNCASECMP.
15708         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15709         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15710
15711 2011-02-06  Bruno Haible  <bruno@clisp.org>
15712
15713         New module 'wcscasecmp'.
15714         * modules/wcscasecmp: New file.
15715         * lib/wchar.in.h (wcscasecmp): New declaration.
15716         * lib/wcscasecmp.c: New file.
15717         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15718         * m4/wcscasecmp.m4: New file.
15719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15722         HAVE_WCSCASECMP.
15723         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15724         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15725
15726 2011-02-05  Bruno Haible  <bruno@clisp.org>
15727
15728         New module 'wcsncmp'.
15729         * modules/wcsncmp: New file.
15730         * lib/wchar.in.h (wcsncmp): New declaration.
15731         * lib/wcsncmp.c: New file.
15732         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15733         * m4/wcsncmp.m4: New file.
15734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15737         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15738         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15739
15740 2011-02-05  Bruno Haible  <bruno@clisp.org>
15741
15742         New module 'wcscmp'.
15743         * modules/wcscmp: New file.
15744         * lib/wchar.in.h (wcscmp): New declaration.
15745         * lib/wcscmp.c: New file.
15746         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15747         * m4/wcscmp.m4: New file.
15748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15751         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15752         * doc/posix-functions/wcscmp.texi: Mention the new module.
15753
15754 2011-02-05  Bruno Haible  <bruno@clisp.org>
15755
15756         New module 'wcsncat'.
15757         * modules/wcsncat: New file.
15758         * lib/wchar.in.h (wcsncat): New declaration.
15759         * lib/wcsncat.c: New file.
15760         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15761         * m4/wcsncat.m4: New file.
15762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15765         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15766         * doc/posix-functions/wcsncat.texi: Mention the new module.
15767
15768 2011-02-05  Bruno Haible  <bruno@clisp.org>
15769
15770         New module 'wcscat'.
15771         * modules/wcscat: New file.
15772         * lib/wchar.in.h (wcscat): New declaration.
15773         * lib/wcscat.c: New file.
15774         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15775         * m4/wcscat.m4: New file.
15776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15779         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15780         * doc/posix-functions/wcscat.texi: Mention the new module.
15781
15782 2011-02-05  Bruno Haible  <bruno@clisp.org>
15783
15784         New module 'wcpncpy'.
15785         * modules/wcpncpy: New file.
15786         * lib/wchar.in.h (wcpncpy): New declaration.
15787         * lib/wcpncpy.c: New file.
15788         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15789         * m4/wcpncpy.m4: New file.
15790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15792         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15793         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15794         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15795
15796 2011-02-05  Bruno Haible  <bruno@clisp.org>
15797
15798         New module 'wcsncpy'.
15799         * modules/wcsncpy: New file.
15800         * lib/wchar.in.h (wcsncpy): New declaration.
15801         * lib/wcsncpy.c: New file.
15802         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15803         * m4/wcsncpy.m4: New file.
15804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15807         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15808         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15809
15810 2011-02-05  Bruno Haible  <bruno@clisp.org>
15811
15812         New module 'wcpcpy'.
15813         * modules/wcpcpy: New file.
15814         * lib/wchar.in.h (wcpcpy): New declaration.
15815         * lib/wcpcpy.c: New file.
15816         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15817         * m4/wcpcpy.m4: New file.
15818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15820         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15821         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15822         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15823
15824 2011-02-05  Bruno Haible  <bruno@clisp.org>
15825
15826         New module 'wcscpy'.
15827         * modules/wcscpy: New file.
15828         * lib/wchar.in.h (wcscpy): New declaration.
15829         * lib/wcscpy.c: New file.
15830         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15831         * m4/wcscpy.m4: New file.
15832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15835         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15836         * doc/posix-functions/wcscpy.texi: Mention the new module.
15837
15838 2011-02-05  Bruno Haible  <bruno@clisp.org>
15839
15840         New module 'wcsnlen'.
15841         * modules/wcsnlen: New file.
15842         * lib/wchar.in.h (wcsnlen): New declaration.
15843         * lib/wcsnlen.c: New file.
15844         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15845         * m4/wcsnlen.m4: New file.
15846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15849         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15850         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15851
15852 2011-02-05  Bruno Haible  <bruno@clisp.org>
15853
15854         New module 'wcslen'.
15855         * modules/wcslen: New file.
15856         * lib/wchar.in.h (wcslen): New declaration.
15857         * lib/wcslen.c: New file.
15858         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15859         * m4/wcslen.m4: New file.
15860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15863         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15864         * doc/posix-functions/wcslen.texi: Mention the new module.
15865
15866 2011-02-05  Bruno Haible  <bruno@clisp.org>
15867
15868         New module 'wmemset'.
15869         * modules/wmemset: New file.
15870         * lib/wchar.in.h (wmemset): New declaration.
15871         * lib/wmemset.c: New file.
15872         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15873         * m4/wmemset.m4: New file.
15874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15876         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15877         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15878         * doc/posix-functions/wmemset.texi: Mention the new module.
15879
15880 2011-02-05  Bruno Haible  <bruno@clisp.org>
15881
15882         New module 'wmemmove'.
15883         * modules/wmemmove: New file.
15884         * lib/wchar.in.h (wmemmove): New declaration.
15885         * lib/wmemmove.c: New file.
15886         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15887         * m4/wmemmove.m4: New file.
15888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15890         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15891         HAVE_WMEMMOVE.
15892         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15893         * doc/posix-functions/wmemmove.texi: Mention the new module.
15894
15895 2011-02-05  Bruno Haible  <bruno@clisp.org>
15896
15897         New module 'wmemcpy'.
15898         * modules/wmemcpy: New file.
15899         * lib/wchar.in.h (wmemcpy): New declaration.
15900         * lib/wmemcpy.c: New file.
15901         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15902         * m4/wmemcpy.m4: New file.
15903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15905         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15906         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15907         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15908
15909 2011-02-05  Bruno Haible  <bruno@clisp.org>
15910
15911         New module 'wmemcmp'.
15912         * modules/wmemcmp: New file.
15913         * lib/wchar.in.h (wmemcmp): New declaration.
15914         * lib/wmemcmp.c: New file.
15915         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15916         * m4/wmemcmp.m4: New file.
15917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15920         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15921         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15922
15923 2011-02-07  Jim Meyering  <meyering@redhat.com>
15924
15925         di-set, ino-map: new modules, from coreutils
15926         * lib/di-set.c: New file.
15927         * lib/di-set.h: Likewise.
15928         * lib/ino-map.c: Likewise.
15929         * lib/ino-map.h: Likewise.
15930         * modules/di-set: Likewise.
15931         * modules/di-set-tests: Likewise.
15932         * modules/ino-map: Likewise.
15933         * modules/ino-map-tests: Likewise.
15934         * tests/test-di-set.c: Likewise.
15935         * tests/test-ino-map.c: Likewise.
15936
15937 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         getloadavg: merge minor changes from Emacs
15940
15941         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15942         (getloadavg): Use memset, not bzero.
15943
15944         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15945         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15946         clash (bug#86).
15947
15948 2010-11-14  Bruno Haible  <bruno@clisp.org>
15949
15950         Allow multiple gnulib generated replacements to coexist.
15951         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15952         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15953         * lib/langinfo.in.h (nl_item): Likewise.
15954         * lib/math.in.h (_NaN, NAN): Likewise.
15955         * lib/netdb.in.h (struct addrinfo): Likewise.
15956         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15957         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15958         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15959         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15960         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15961         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15962         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15963         pthread_mutexattr_init, pthread_mutexattr_settype,
15964         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15965         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15966         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15967         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15968         * lib/sched.in.h (struct sched_param): Likewise.
15969         * lib/se-selinux.in.h (security_class_t, security_context_t,
15970         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15971         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15972         lsetfilecon, fsetfilecon, security_check_context,
15973         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15974         Likewise.
15975         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15976         Likewise.
15977         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15978         _gl_function_taking_int_returning_void_t, union sigval,
15979         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15980         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15981         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15982         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15983         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15984         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15985         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15986         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15987         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15988         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15989         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15990         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15991         socklen_t, rpl_fd_isset): Likewise.
15992         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15993         * lib/sys_time.in.h (struct timeval): Likewise.
15994         * lib/sys_times.in.h (struct tms): Likewise.
15995         * lib/sys_utsname.in.h (struct utsname):
15996         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15997         * lib/unistd.in.h (getpagesize): Likewise.
15998         * lib/wchar.in.h (mbstate_t): Likewise.
15999         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16000         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16001         towlower, towupper): Likewise.
16002         Reported by Sam Steingold <sds@gnu.org>.
16003
16004 2011-02-05  Eric Blake  <eblake@redhat.com>
16005
16006         unsetenv: work around Haiku issues
16007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16008         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16009
16010 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16011
16012         libposix: avoid calling error() within libposix
16013         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16014         is defined.
16015
16016 2011-02-05  Eric Blake  <eblake@redhat.com>
16017
16018         strerror_r-posix: port to cygwin
16019         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16020         implementation.
16021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16022         * tests/test-strerror_r.c (main): Fix test.
16023         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16024         issue.
16025
16026 2011-02-05  Bruno Haible  <bruno@clisp.org>
16027
16028         New module 'wmemchr'.
16029         * modules/wmemchr: New file.
16030         * lib/wchar.in.h (wmemchr): New declaration.
16031         * lib/wmemchr.c: New file.
16032         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16033         * m4/wmemchr.m4: New file.
16034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16036         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16037         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16038         * doc/posix-functions/wmemchr.texi: Mention the new module.
16039
16040 2011-02-04  Eric Blake  <eblake@redhat.com>
16041
16042         fdopendir: detect FreeBSD bug
16043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16044         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16045
16046 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         stdbool: do not define HAVE_STDBOOL_H
16049         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16050         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16051         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16052         imported from the latest Autoconf git.  It was motivated by Emacs,
16053         which uses gnulib but does not need HAVE_STDBOOL_H.
16054
16055 2011-02-04  Bruno Haible  <bruno@clisp.org>
16056
16057         wcsnrtombs: Prepare for new module wwcsnrtombs.
16058         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16059         * lib/wcsnrtombs.c: Include it.
16060         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16061
16062         wcsrtombs: Prepare for new module wwcsrtombs.
16063         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16064         * lib/wcsrtombs.c: Include it.
16065         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16066
16067         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16068         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16069         * lib/mbsnrtowcs.c: Include it.
16070         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16071
16072         mbsrtowcs: Prepare for new module mbsrtowwcs.
16073         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16074         * lib/mbsrtowcs.c: Include it.
16075         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16076
16077 2011-02-04  Bruno Haible  <bruno@clisp.org>
16078
16079         vasnprintf: Reduce use of malloc for small format strings.
16080         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16081         (arguments): Add room for the first 7 arguments.
16082         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16083         (char_directives, u8_directives, u16_directives, u32_directives): Add
16084         room for the first 7 directives.
16085         * lib/printf-parse.c: Include <string.h>.
16086         (PRINTF_PARSE): Change memory handling code so that it uses the first
16087         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16088         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16089         Reported by Pádraig Brady <P@draigbrady.com>.
16090
16091 2011-01-31  Eric Blake  <eblake@redhat.com>
16092
16093         dup2: work around Haiku bug
16094         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16095         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16096         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16097         * tests/test-dup2.c (main): Enhance test.
16098
16099 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16100
16101         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16102         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16103         declared by eglibc 2.11.2.
16104         * lib/stdio.in.h: Likewise.
16105
16106 2011-01-31  Eric Blake  <eblake@redhat.com>
16107
16108         ignore-value: add missing test dependency
16109         * tests/test-ignore-value.c: Revert previous change; stdio.h
16110         provides off_t.
16111         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16112
16113 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16114
16115         mktime: clarify long_int width checking
16116         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16117         the top level, to make it clearer that the assumption about
16118         long_int width is being checked.  See
16119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16120
16121 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16122
16123         ignore-value: Fix self-test.
16124         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16125
16126 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         TYPE_MAXIMUM: avoid theoretically undefined behavior
16129         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16130         negative number, which the C Standard says has undefined behavior.
16131         In practice this is not a problem, but might as well do it by the book.
16132         Reported by Rich Felker and Eric Blake; see
16133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16134         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16135         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16137         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16138         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16139         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16140
16141         mktime: #undef mktime before #defining it
16142         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16143
16144         mktime: systematically normalize tm_isdst comparisons
16145         * lib/mktime.c (isdst_differ): New function.
16146         (__mktime_internal): Use it systematically for all isdst comparisons.
16147         This completes the fix for libc BZ #6723, and removes the need for
16148         normalizing tm_isdst.  See
16149         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16150         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16151
16152         mktime: fix some integer overflow issues and sidestep the rest
16153
16154         This was prompted by a bug report by Benjamin Lindner for MinGW
16155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16156         His bug is due to signed integer overflow (0 - INT_MIN), and I
16157         I scanned through mktime.c looking for other integer overflow
16158         problems, fixing all the bugs I found.
16159
16160         Although the C Standard says the resulting code is still not safe
16161         in the presence of integer overflow, in practice it should be good
16162         enough for all real-world two's-complement implementations, except
16163         for debugging environments that deliberately trap on integer
16164         overflow (e.g., gcc -ftrapv).
16165
16166         * lib/mktime.c (WRAPV): New macro.
16167         (SHR): Also check that long_int and time_t shift right in the
16168         usual way, before using the fast-but-unportable method.
16169         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16170         used.  The code already assumed two's complement, so there's
16171         no need to test for alternatives.  All uses removed.
16172         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16173         the C standard.  Problem reported by Rich Felker in
16174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16175         (twos_complement_arithmetic): Also check long_int and time_t.
16176         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16177         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16178         (__mktime_internal): Avoid integer overflow with unary subtraction
16179         in two instances where -1 - X is an adequate replacement for -X,
16180         since the calculations are approximate.
16181
16182 2011-01-29  Eric Blake  <eblake@redhat.com>
16183
16184         mktime: avoid infinite loop
16185         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16186         type; behavior is still undefined but portable to all known targets.
16187         Reported by Rich Felker.
16188
16189 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16190
16191         rename, unlink, same-inode: Relicense.
16192         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16193         * modules/unlink (License): Likewise.
16194         * modules/same-inode (License): Likewise.
16195
16196 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16197
16198         mktime: avoid problems on NetBSD 5 / i386
16199         * lib/mktime.c (long_int): New type.  This works around a problem
16200         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16201         but time_t is 64 bits, and where I expect the existing code is
16202         wrong in some cases.
16203         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16204         (ydhms_diff): Bring back the compile-time check for wide-enough
16205         year and yday.
16206
16207         mktime: fix misspelling in comment
16208         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16209         This merges all recent glibc changes of importance.
16210
16211 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16212
16213         move-if-change: cope with concurrent mv of identical file.
16214         * build-aux/move-if-change (CMPPROG): Accept environment
16215         variable as an override for `cmp'.
16216         (usage): Document CMPPROG.
16217         Adjust comparison to drop stdout.  Cope with failure of mv if
16218         the target file exists and is identical to the source, for
16219         parallel builds.
16220         Report from H.J. Lu against binutils in PR binutils/12283.
16221
16222 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16223
16224         * users.txt: Mention sharutils.
16225
16226 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16227
16228         * users.txt: Mention OATH Toolkit.
16229
16230 2011-01-27  Bruno Haible  <bruno@clisp.org>
16231
16232         Prepare for supporting FreeBSD 10.
16233         * build-aux/config.libpath: Remove handling of freebsd1*.
16234
16235 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16236
16237         Prepare for supporting FreeBSD 10.
16238         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16239         match FreeBSD 10.0.
16240
16241 2011-01-27  Bruno Haible  <bruno@clisp.org>
16242
16243         vma-iter, get-rusage-as: Add OpenBSD support.
16244         * modules/vma-iter (configure.ac): Test for mquery.
16245         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16246         * lib/vma-iter.c: Include <sys/mman.h>.
16247         (vma_iterate): Add an implementation based on mquery().
16248         * lib/resource-ext.h (get_rusage_as): Update comments.
16249         * lib/get-rusage-as.c: Likewise.
16250         * lib/get-rusage-data.c: Likewise.
16251
16252 2011-01-26  Karl Berry  <karl@gnu.org>
16253
16254         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16255         variables to make it easier to override the makeinfo program used.
16256
16257 2011-01-26  Eric Blake  <eblake@redhat.com>
16258
16259         fcntl: work around Haiku F_DUPFD bugs
16260         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16261         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16262         cloexec bit on duplication.
16263         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16264
16265 2011-01-26  Bruno Haible  <bruno@clisp.org>
16266
16267         Enable memory leak tests on AIX.
16268         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16269         * tests/test-fprintf-posix3.c (main): Likewise.
16270
16271 2011-01-26  Bruno Haible  <bruno@clisp.org>
16272
16273         Tests for module 'get-rusage-data'.
16274         * modules/get-rusage-data-tests: New file.
16275         * tests/test-get-rusage-data.c: New file.
16276
16277         New module 'get-rusage-data'.
16278         * lib/resource-ext.h (get_rusage_data): New declaration.
16279         * lib/get-rusage-data.c: New file.
16280         * modules/get-rusage-data: New file.
16281
16282 2011-01-25  Bruno Haible  <bruno@clisp.org>
16283
16284         get-rusage-as: Allow for easier testing.
16285         * lib/resource-ext.h (get_rusage_as): Add comment.
16286         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16287         (main): New function for interactive testing.
16288
16289 2011-01-25  Bruno Haible  <bruno@clisp.org>
16290
16291         vma-iter: Treat Haiku like BeOS.
16292         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16293         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16294
16295 2011-01-25  Eric Blake  <eblake@redhat.com>
16296
16297         c-stack: fix regression on cygwin when libsigsegv is present
16298         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16299
16300 2011-01-24  Bruno Haible  <bruno@clisp.org>
16301
16302         vma-iter: Avoid empty intervals.
16303         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16304         on an empty interval.
16305
16306 2011-01-24  Jim Meyering  <meyering@redhat.com>
16307
16308         u64: remove unnecessary #include
16309         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16310
16311 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16314         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16315
16316 2011-01-23  Bruno Haible  <bruno@clisp.org>
16317
16318         New module 'vma-iter'.
16319         * lib/vma-iter.h: New file.
16320         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16321         * modules/vma-iter: New file.
16322         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16323         for get_rusage_as_via_iterator.
16324         (vma_iterate_callback): New function.
16325         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16326         * modules/get-rusage-as (Depends-on): Add vma-iter.
16327
16328 2011-01-23  Bruno Haible  <bruno@clisp.org>
16329
16330         uninorm: Tweak includes.
16331         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16332         Reported by Jim Meyering.
16333
16334 2011-01-23  Bruno Haible  <bruno@clisp.org>
16335
16336         get-rusage-as: Improve on NetBSD.
16337         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16338         /proc, like on FreeBSD.
16339
16340 2011-01-23  Jim Meyering  <meyering@redhat.com>
16341
16342         xreadlink.h: remove unnecessary #include
16343         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16344
16345         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16346         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16347
16348 2011-01-23  Bruno Haible  <bruno@clisp.org>
16349
16350         get-rusage-as: Fix bug.
16351         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16352         original limit when aborting the first loop.
16353
16354 2011-01-23  Bruno Haible  <bruno@clisp.org>
16355
16356         wctype: Ensure valid C syntax.
16357         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16358         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16359
16360 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16361
16362         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16364         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16365         as they are needed only for configure's test case.
16366         This removes two unnecessary symbols from config.h.
16367
16368         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16369         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16371         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16372         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16373         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16375         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16376         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16377         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16378         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16382         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16383         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16384         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16385         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16386
16387 2011-01-21  Eric Blake  <eblake@redhat.com>
16388
16389         maintainer-makefile: work with older git for submodule check
16390         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16391         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16392         Reported by Matthias Bolte.
16393
16394         bootstrap: minor portability fixes
16395         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16396         (usage): Omit leading capital and trailing . on help phrases, per
16397         GNU Coding Standards.
16398         (check_versions, top level): Prefix messages with script name.
16399
16400 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16401
16402         bootstrap: support --no-git option
16403         * build-aux/bootstrap: Add --no-git option, to be used when
16404         --gnulib-srcdir points to the exact desired checkout.
16405
16406 2011-01-21  Eric Blake  <eblake@redhat.com>
16407
16408         strerror_r-posix: work with glibc 2.13
16409         * lib/strerror_r.c (strerror_r): Fix return type.
16410
16411 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16412             Bruno Haible  <bruno@clisp.org>
16413
16414         uN_strstr: New unit tests.
16415         * modules/unistr/u8-strstr-tests: New file.
16416         * modules/unistr/u16-strstr-tests: New file.
16417         * modules/unistr/u32-strstr-tests: New file.
16418         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16419         * tests/unistr/test-u8-strstr.c: New file.
16420         * tests/unistr/test-u16-strstr.c: New file.
16421         * tests/unistr/test-u32-strstr.c: New file.
16422
16423 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16424             Bruno Haible  <bruno@clisp.org>
16425
16426         Make uN_strstr functions O(n) worst-case.
16427         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16428         16-bit and 32-bit unit cases, use the unibyte algorithm from
16429         lib/mbsstr.c.
16430         * lib/unistr/u8-strstr.c: Include <string.h>.
16431         (UNIT_IS_UINT8_T): New macro.
16432         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16433         (U_STRLEN, U_STRNLEN): New macros.
16434         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16435         (U_STRLEN, U_STRNLEN): New macros.
16436         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16437         (configure.ac): Update required libunistring version.
16438         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16439         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16440         malloca.
16441         (configure.ac): Update required libunistring version.
16442         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16443         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16444         malloca.
16445         (configure.ac): Update required libunistring version.
16446
16447 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16448             Bruno Haible  <bruno@clisp.org>
16449
16450         Prepare for faster uN_strstr functions.
16451         * lib/str-kmp.h: Support definable UNITs.
16452         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16453         needle_len argument.
16454         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16455         * lib/mbscasestr.c (mbscasestr): Likewise.
16456
16457 2011-01-21  Pádraig Brady <P@draigBrady.com>
16458
16459         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16460         * tests/test-malloca.c (main): Unset the environment variable
16461         to greatly speed up the test.
16462         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16463         * modules/malloca-tests: Depend on unsetenv.
16464
16465 2011-01-21  Pádraig Brady <P@draigBrady.com>
16466
16467         ignore-value: remove stdint dependency
16468         * lib/ignore-value.h: Remove <stdint.h>
16469         * modules/ignore-value: Remove stdint dependency.
16470
16471 2011-01-21  Jim Meyering  <meyering@redhat.com>
16472
16473         maint.mk: adjust variable name to be consistent with other gl_ vars
16474         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16475         to be lower case.
16476
16477 2011-01-20  Jim Meyering  <meyering@redhat.com>
16478
16479         maint.mk: make "check" depend on public-submodule-commit by default
16480         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16481
16482 2011-01-20  Bruno Haible  <bruno@clisp.org>
16483
16484         mbfile, mbiter: Complete change from 2008-12-21.
16485         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16486         * m4/mbiter.m4 (gl_MBITER): Likewise.
16487
16488 2011-01-20  Jim Meyering  <meyering@redhat.com>
16489
16490         init.sh: insert space between each function name and "()"
16491         * tests/init.sh: Make it a little easier to see that a function's
16492         name is "warn_", and not "warn" when looking at the first part of
16493         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16494
16495 2011-01-20  Jim Meyering  <meyering@redhat.com>
16496
16497         mountlist: clean up code formatting
16498         * lib/mountlist.c (read_file_system_list): Split a long line,
16499         correct bracing style, use NULL in place of "(struct statfs *)0",
16500         don't parenthesize return value, add spaces around "=" and after
16501         ";-in-for-stmt".
16502
16503 2011-01-14  Markus Duft <mduft@gentoo.org>
16504
16505         mountlist: add support for Interix
16506         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16507         Apply statvfs to all entries of /dev/fs.
16508         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16509         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16510
16511 2011-01-20  Jim Meyering  <meyering@redhat.com>
16512
16513         maint.mk: improve the public-submodule-commit rule
16514         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16515         to suppress printing of its commands... unless V=1.
16516         Add git submodule's --quiet option to suppress printing of e.g.,
16517         "Entering gnulib" output.
16518         "cd" into $(srcdir) before running git submodule.
16519
16520 2011-01-20  Bruno Haible  <bruno@clisp.org>
16521
16522         include_next: Fix bug introduced on 2011-01-18.
16523         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16524         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16525         ac_cv_header_... variable if the second argument is not 'check'.
16526         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16527         gl_NEXT_HEADERS_INTERNAL.
16528
16529 2011-01-20  Bruno Haible  <bruno@clisp.org>
16530
16531         Allow the user to avoid the GNULIB_TEST_* macros.
16532         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16533         Suggested by Paul Eggert.
16534
16535 2011-01-14  Jim Meyering  <meyering@redhat.com>
16536
16537         bootstrap: avoid failure when there is no .gitmodules file
16538         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16539         has been assigned to, even when its value is the empty string.
16540         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16541         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16542         Reported by John W. Eaton <jwe@gnu.org>.
16543
16544 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         assume <ctype.h>, ..., <time.h> exist
16547         For years gnulib has been assuming the existence of the headers
16548         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16549         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16550         them, since they don't appear to be needed.
16551         * README (Portability guidelines): Document this.
16552         * lib/flock.c: Assume <fcntl.h> exists.
16553         * lib/regex_internal.h: Assume <locale.h> exists.
16554         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16556         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16557         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16558         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16559         * m4/regex.m4 (gl_REGEX): Likewise.
16560         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16561         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16562         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16563         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16564         * tests/test-argp.c: Likewise.
16565         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16566
16567         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16568         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16569         AA_APPLE_UNIVERSAL_BUILD.  See
16570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16571         * NEWS: Document this.
16572
16573 2011-01-19  Eric Blake  <eblake@redhat.com>
16574
16575         c-stack: assume stack overflow if SA_SIGINFO unsupported
16576         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16577         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16578         sigaction will work.
16579         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16580         behavior match Linux.
16581         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16582
16583         stdbool-tests: accomodate Haiku
16584         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16585
16586         binary-io: fix O_TEXT on Haiku
16587         * modules/binary-io (Depends-on): Add fcntl-h.
16588         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16589         than blindly undefining O_TEXT.
16590         Reported by Scott McCreary.
16591
16592 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16593
16594         include_next: do not check for standard headers like stddef.h
16595
16596         I found this problem when modifying Emacs to use gnulib.
16597         I noticed that it added HAVE_STDDEF_H to config.h, even though
16598         gnulib always assumes <stddef.h> exists as per README and this
16599         symbol is unnecessary.
16600         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16601         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16602         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16603         faster for headers like stddef.h that are known to exist.
16604         (gl_CHECK_NEXT_HEADERS): Use it.
16605         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16606         rather than gl_CHECK_NEXT_HEADERS.
16607         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16608         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16609
16610 2011-01-18  Eric Blake  <eblake@redhat.com>
16611
16612         ansi-c++-opt: skip C++ dependency style if C++ is unused
16613         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16614         tests when we know C++ compilation is not desired.
16615         Reported by Scott McCreary.
16616
16617 2011-01-18  Bruno Haible  <bruno@clisp.org>
16618
16619         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16620         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16621         (main): Perform test also when getrlimit and setrlimit don't exist or
16622         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16623         limiting the address space size using setrlimit, compare the address
16624         space size before and after the the test.
16625         * tests/test-dprintf-posix2.c: Likewise.
16626         * tests/test-fprintf-posix3.sh: Update skip messages.
16627         * tests/test-dprintf-posix2.sh: Likewise.
16628         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16629         * modules/dprintf-posix-tests (Depends-on): Likewise.
16630         Reported by Bruce Korb <bkorb@gnu.org> and
16631         Gary V. Vaughan <gary@gnu.org>.
16632
16633 2011-01-18  Bruno Haible  <bruno@clisp.org>
16634
16635         get-rusage-as: Improvement for Cygwin.
16636         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16637         areas that are merely reserved.
16638
16639 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16640
16641         strftime: remove dependencies on multibyte modules
16642
16643         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16644         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16645         only if __osf__ is defined, and I suspect OSF doesn't need these
16646         other modules.  If my guess is wrong, we'll need to come up with a
16647         variant of strftime that doesn't need the multibyte modules.
16648
16649         I discovered this problem when attempting modify Emacs to use the
16650         strftime module.  With the previous gnulib, this caused Emacs to
16651         need 31 new files, ranging from lib/config.charset to
16652         m4/wint_t.m4.  This was overkill and I expect would be offputting
16653         to the Emacs maintainers.  After this change, only 6 new files are
16654         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16655         stdbool.m4, and tm_gmtoff.m4.
16656
16657         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16658         Suggested by Bruno Haible in
16659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16661         and do not check for wchar.h.
16662         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16663         (Depends-on): Remove mbrlen, mbsinit, wchar.
16664
16665 2011-01-18  Bruno Haible  <bruno@clisp.org>
16666
16667         Tests for module 'get-rusage-as'.
16668         * modules/get-rusage-as-tests: New file.
16669         * tests/test-get-rusage-as.c: New file.
16670
16671         New module 'get-rusage-as'.
16672         * modules/get-rusage-as: New file.
16673         * lib/resource-ext.h: New file.
16674         * lib/get-rusage-as.c: New file.
16675
16676 2011-01-17  Eric Blake  <eblake@redhat.com>
16677
16678         sigaction: relax license from LGPLv3+ to LGPLv2+
16679         * modules/sigaction (License): Relax to LGPLv2+.
16680
16681 2011-01-14  Bruno Haible  <bruno@clisp.org>
16682
16683         filemode: Make function declarations usable in C++ mode.
16684         * lib/filemode.h: Enclose function declarations in extern "C" block.
16685         Reported by John W. Eaton <jwe@gnu.org>.
16686
16687 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16688
16689         save-cwd: no longer include "xgetcwd.h"
16690         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16691         This avoids a compilation failure in projects that use save-cwd
16692         without also using the xgetcwd module.
16693
16694 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16697         This is so that a program like Emacs, which needs only dtoastr,
16698         does not have to bother with distributing and compiling ftoastr
16699         and ldtoastr.
16700         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16701         * modules/dtoastr, modules/ldtoastr: New files.
16702         * modules/ftoastr: Now works just for 'float'.
16703         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16704         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16705         dtoastr.c, ldtoastr.c.
16706
16707 2011-01-11  Jim Meyering  <meyering@redhat.com>
16708
16709         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16710         There is no need to work around the lack of the fchdir function,
16711         since gnulib can now provide a replacement when required.
16712         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16713         * modules/save-cwd (Depends-on): Add fchdir.
16714
16715 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16716
16717         openat, save-cwd: avoid xmalloc
16718
16719         This removes a direct (but undocumented) dependency of openat on
16720         xalloc, along with an indirect dependency via save-cwd.  It also
16721         removes a dependency of save-cwd on xgetcwd, and thereby
16722         indirectly on xalloc.  This change causes the openat substitute
16723         to fall back on save_cwd when memory is tight, and for save_cwd to
16724         fail instead of dying when memory is tight, but that's good enough.
16725         Problem and initial idea for fix reported by Bastien Roucaries in
16726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16727
16728         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16729         xalloc.h (for xmalloc).
16730         (openat_proc_name): Use malloc, not xmalloc.
16731         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16732         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16733
16734         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16735         This avoids heap allocation for file names whose lengths are in
16736         the range 512..1023, with the upper bound increasing to at most
16737         4031 depending on the platform's PATH_MAX.  (We do not want
16738         pathmax.h here as it might supply a non-constant PATH_MAX.)
16739         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16740         Perhaps they should be moved to malloca.h?
16741         (OPENAT_BUFFER_SIZE): Use them.
16742
16743 2011-01-10  Bruno Haible  <bruno@clisp.org>
16744
16745         doc: Update users.txt.
16746         * users.txt: Add recutils.
16747
16748 2011-01-09  Karl Berry  <karl@gnu.org>
16749
16750         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16751
16752         * doc/configmake.texi: New file.
16753         * doc/gnulib.texi: Include it.
16754         * modules/configmake: Move documentation from here.
16755
16756 2011-01-09  Bruno Haible  <bruno@clisp.org>
16757
16758         Update to Unicode 6.0.0.
16759         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16760         (get_lbp): Update for Unicode 6.0.0.
16761         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16762         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16763         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16764         U+11001, U+11038..U+11046. Remove U+06DE.
16765         (uc_width): Fix bounds of planes.
16766         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16767         lib/uniwidth/width.c.
16768         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16769         trailing whitespace removed.
16770         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16771         without comments, but with the original copyright notice.
16772         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16773         * lib/unicase/ignorable.h: Likewise.
16774         * lib/unicase/tocasefold.h: Likewise.
16775         * lib/unicase/tolower.h: Likewise.
16776         * lib/unicase/totitle.h: Likewise.
16777         * lib/unicase/toupper.h: Likewise.
16778         * lib/unictype/bidi_of.h: Likewise.
16779         * lib/unictype/blocks.h: Likewise.
16780         * lib/unictype/categ_C.h: Likewise.
16781         * lib/unictype/categ_Cn.h: Likewise.
16782         * lib/unictype/categ_L.h: Likewise.
16783         * lib/unictype/categ_Ll.h: Likewise.
16784         * lib/unictype/categ_Lm.h: Likewise.
16785         * lib/unictype/categ_Lo.h: Likewise.
16786         * lib/unictype/categ_Lu.h: Likewise.
16787         * lib/unictype/categ_M.h: Likewise.
16788         * lib/unictype/categ_Mc.h: Likewise.
16789         * lib/unictype/categ_Me.h: Likewise.
16790         * lib/unictype/categ_Mn.h: Likewise.
16791         * lib/unictype/categ_N.h: Likewise.
16792         * lib/unictype/categ_Nd.h: Likewise.
16793         * lib/unictype/categ_No.h: Likewise.
16794         * lib/unictype/categ_P.h: Likewise.
16795         * lib/unictype/categ_Po.h: Likewise.
16796         * lib/unictype/categ_S.h: Likewise.
16797         * lib/unictype/categ_Sc.h: Likewise.
16798         * lib/unictype/categ_Sk.h: Likewise.
16799         * lib/unictype/categ_Sm.h: Likewise.
16800         * lib/unictype/categ_So.h: Likewise.
16801         * lib/unictype/categ_of.h: Likewise.
16802         * lib/unictype/combining.h: Likewise.
16803         * lib/unictype/ctype_alnum.h: Likewise.
16804         * lib/unictype/ctype_alpha.h: Likewise.
16805         * lib/unictype/ctype_graph.h: Likewise.
16806         * lib/unictype/ctype_lower.h: Likewise.
16807         * lib/unictype/ctype_print.h: Likewise.
16808         * lib/unictype/ctype_punct.h: Likewise.
16809         * lib/unictype/ctype_upper.h: Likewise.
16810         * lib/unictype/decdigit.h: Likewise.
16811         * lib/unictype/digit.h: Likewise.
16812         * lib/unictype/numeric.h: Likewise.
16813         * lib/unictype/pr_alphabetic.h: Likewise.
16814         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16815         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16816         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16817         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16818         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16819         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16820         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16821         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16822         * lib/unictype/pr_case_ignorable.h: Likewise.
16823         * lib/unictype/pr_cased.h: Likewise.
16824         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16825         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16826         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16827         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16828         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16829         * lib/unictype/pr_combining.h: Likewise.
16830         * lib/unictype/pr_composite.h: Likewise.
16831         * lib/unictype/pr_currency_symbol.h: Likewise.
16832         * lib/unictype/pr_decimal_digit.h: Likewise.
16833         * lib/unictype/pr_deprecated.h: Likewise.
16834         * lib/unictype/pr_format_control.h: Likewise.
16835         * lib/unictype/pr_grapheme_base.h: Likewise.
16836         * lib/unictype/pr_grapheme_extend.h: Likewise.
16837         * lib/unictype/pr_grapheme_link.h: Likewise.
16838         * lib/unictype/pr_id_continue.h: Likewise.
16839         * lib/unictype/pr_id_start.h: Likewise.
16840         * lib/unictype/pr_ideographic.h: Likewise.
16841         * lib/unictype/pr_lowercase.h: Likewise.
16842         * lib/unictype/pr_math.h: Likewise.
16843         * lib/unictype/pr_numeric.h: Likewise.
16844         * lib/unictype/pr_other_alphabetic.h: Likewise.
16845         * lib/unictype/pr_other_id_continue.h: Likewise.
16846         * lib/unictype/pr_other_math.h: Likewise.
16847         * lib/unictype/pr_punctuation.h: Likewise.
16848         * lib/unictype/pr_sentence_terminal.h: Likewise.
16849         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16850         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16851         * lib/unictype/pr_unified_ideograph.h: Likewise.
16852         * lib/unictype/pr_uppercase.h: Likewise.
16853         * lib/unictype/pr_xid_continue.h: Likewise.
16854         * lib/unictype/pr_xid_start.h: Likewise.
16855         * lib/unictype/scripts.h: Likewise.
16856         * lib/unictype/scripts_byname.gperf: Likewise.
16857         * lib/unictype/sy_java_ident.h: Likewise.
16858         * lib/unigbrk/gbrkprop.h: Likewise.
16859         * lib/unilbrk/lbrkprop1.h: Likewise.
16860         * lib/unilbrk/lbrkprop2.h: Likewise.
16861         * lib/uninorm/decomposition-table2.h: Likewise.
16862         * lib/uniwbrk/wbrkprop.h: Likewise.
16863         * tests/unicase/test-cased.c: Likewise.
16864         * tests/unicase/test-ignorable.c: Likewise.
16865         * tests/unicase/test-uc_tolower.c: Likewise.
16866         * tests/unicase/test-uc_totitle.c: Likewise.
16867         * tests/unicase/test-uc_toupper.c: Likewise.
16868         * tests/unictype/test-categ_C.c: Likewise.
16869         * tests/unictype/test-categ_Cn.c: Likewise.
16870         * tests/unictype/test-categ_L.c: Likewise.
16871         * tests/unictype/test-categ_Ll.c: Likewise.
16872         * tests/unictype/test-categ_Lm.c: Likewise.
16873         * tests/unictype/test-categ_Lo.c: Likewise.
16874         * tests/unictype/test-categ_Lu.c: Likewise.
16875         * tests/unictype/test-categ_M.c: Likewise.
16876         * tests/unictype/test-categ_Mc.c: Likewise.
16877         * tests/unictype/test-categ_Me.c: Likewise.
16878         * tests/unictype/test-categ_Mn.c: Likewise.
16879         * tests/unictype/test-categ_N.c: Likewise.
16880         * tests/unictype/test-categ_Nd.c: Likewise.
16881         * tests/unictype/test-categ_No.c: Likewise.
16882         * tests/unictype/test-categ_P.c: Likewise.
16883         * tests/unictype/test-categ_Po.c: Likewise.
16884         * tests/unictype/test-categ_S.c: Likewise.
16885         * tests/unictype/test-categ_Sc.c: Likewise.
16886         * tests/unictype/test-categ_Sk.c: Likewise.
16887         * tests/unictype/test-categ_Sm.c: Likewise.
16888         * tests/unictype/test-categ_So.c: Likewise.
16889         * tests/unictype/test-ctype_alnum.c: Likewise.
16890         * tests/unictype/test-ctype_alpha.c: Likewise.
16891         * tests/unictype/test-ctype_graph.c: Likewise.
16892         * tests/unictype/test-ctype_lower.c: Likewise.
16893         * tests/unictype/test-ctype_print.c: Likewise.
16894         * tests/unictype/test-ctype_punct.c: Likewise.
16895         * tests/unictype/test-ctype_upper.c: Likewise.
16896         * tests/unictype/test-decdigit.h: Likewise.
16897         * tests/unictype/test-digit.h: Likewise.
16898         * tests/unictype/test-numeric.h: Likewise.
16899         * tests/unictype/test-pr_alphabetic.c: Likewise.
16900         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16901         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16902         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16903         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16904         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16905         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16906         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16907         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16908         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16909         * tests/unictype/test-pr_cased.c: Likewise.
16910         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16911         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16912         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16913         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16914         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16915         * tests/unictype/test-pr_combining.c: Likewise.
16916         * tests/unictype/test-pr_composite.c: Likewise.
16917         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16918         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16919         * tests/unictype/test-pr_deprecated.c: Likewise.
16920         * tests/unictype/test-pr_format_control.c: Likewise.
16921         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16922         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16923         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16924         * tests/unictype/test-pr_id_continue.c: Likewise.
16925         * tests/unictype/test-pr_id_start.c: Likewise.
16926         * tests/unictype/test-pr_ideographic.c: Likewise.
16927         * tests/unictype/test-pr_lowercase.c: Likewise.
16928         * tests/unictype/test-pr_math.c: Likewise.
16929         * tests/unictype/test-pr_numeric.c: Likewise.
16930         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16931         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16932         * tests/unictype/test-pr_other_math.c: Likewise.
16933         * tests/unictype/test-pr_punctuation.c: Likewise.
16934         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16935         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16936         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16937         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16938         * tests/unictype/test-pr_uppercase.c: Likewise.
16939         * tests/unictype/test-pr_xid_continue.c: Likewise.
16940         * tests/unictype/test-pr_xid_start.c: Likewise.
16941         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16942         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16943         changes.
16944         * lib/unictype/categ_Cc.h: Likewise.
16945         * lib/unictype/categ_Cf.h: Likewise.
16946         * lib/unictype/categ_Co.h: Likewise.
16947         * lib/unictype/categ_Cs.h: Likewise.
16948         * lib/unictype/categ_Lt.h: Likewise.
16949         * lib/unictype/categ_Nl.h: Likewise.
16950         * lib/unictype/categ_Pc.h: Likewise.
16951         * lib/unictype/categ_Pd.h: Likewise.
16952         * lib/unictype/categ_Pe.h: Likewise.
16953         * lib/unictype/categ_Pf.h: Likewise.
16954         * lib/unictype/categ_Pi.h: Likewise.
16955         * lib/unictype/categ_Ps.h: Likewise.
16956         * lib/unictype/categ_Z.h: Likewise.
16957         * lib/unictype/categ_Zl.h: Likewise.
16958         * lib/unictype/categ_Zp.h: Likewise.
16959         * lib/unictype/categ_Zs.h: Likewise.
16960         * lib/unictype/ctype_blank.h: Likewise.
16961         * lib/unictype/ctype_cntrl.h: Likewise.
16962         * lib/unictype/ctype_digit.h: Likewise.
16963         * lib/unictype/ctype_space.h: Likewise.
16964         * lib/unictype/ctype_xdigit.h: Likewise.
16965         * lib/unictype/mirror.h: Likewise.
16966         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16967         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16968         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16969         * lib/unictype/pr_bidi_control.h: Likewise.
16970         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16971         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16972         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16973         * lib/unictype/pr_bidi_pdf.h: Likewise.
16974         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16975         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16976         * lib/unictype/pr_dash.h: Likewise.
16977         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16978         * lib/unictype/pr_diacritic.h: Likewise.
16979         * lib/unictype/pr_extender.h: Likewise.
16980         * lib/unictype/pr_hex_digit.h: Likewise.
16981         * lib/unictype/pr_hyphen.h: Likewise.
16982         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16983         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16984         * lib/unictype/pr_ignorable_control.h: Likewise.
16985         * lib/unictype/pr_iso_control.h: Likewise.
16986         * lib/unictype/pr_join_control.h: Likewise.
16987         * lib/unictype/pr_left_of_pair.h: Likewise.
16988         * lib/unictype/pr_line_separator.h: Likewise.
16989         * lib/unictype/pr_logical_order_exception.h: Likewise.
16990         * lib/unictype/pr_non_break.h: Likewise.
16991         * lib/unictype/pr_not_a_character.h: Likewise.
16992         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16993         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16994         * lib/unictype/pr_other_id_start.h: Likewise.
16995         * lib/unictype/pr_other_lowercase.h: Likewise.
16996         * lib/unictype/pr_other_uppercase.h: Likewise.
16997         * lib/unictype/pr_paired_punctuation.h: Likewise.
16998         * lib/unictype/pr_paragraph_separator.h: Likewise.
16999         * lib/unictype/pr_pattern_syntax.h: Likewise.
17000         * lib/unictype/pr_pattern_white_space.h: Likewise.
17001         * lib/unictype/pr_private_use.h: Likewise.
17002         * lib/unictype/pr_quotation_mark.h: Likewise.
17003         * lib/unictype/pr_radical.h: Likewise.
17004         * lib/unictype/pr_soft_dotted.h: Likewise.
17005         * lib/unictype/pr_space.h: Likewise.
17006         * lib/unictype/pr_titlecase.h: Likewise.
17007         * lib/unictype/pr_variation_selector.h: Likewise.
17008         * lib/unictype/pr_white_space.h: Likewise.
17009         * lib/unictype/pr_zero_width.h: Likewise.
17010         * lib/unictype/sy_c_ident.h: Likewise.
17011         * lib/unictype/sy_c_whitespace.h: Likewise.
17012         * lib/unictype/sy_java_whitespace.h: Likewise.
17013         * lib/uninorm/composition-table.gperf: Likewise.
17014         * lib/uninorm/decomposition-table1.h: Likewise.
17015         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17016         LB8.
17017         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17018         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17019         * modules/unictype/*: Bump version number of expected libunistring
17020         version.
17021
17022 2011-01-09  Bruno Haible  <bruno@clisp.org>
17023
17024         Update to Unicode 5.2.0.
17025         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17026         trailing whitespace removed.
17027
17028 2011-01-09  Bruno Haible  <bruno@clisp.org>
17029
17030         New Unicode character properties, from Unicode 5.2.0.
17031         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17032         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17033         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17034         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17035         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17036         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17037         uc_is_property_cased, uc_is_property_case_ignorable,
17038         uc_is_property_changes_when_lowercased,
17039         uc_is_property_changes_when_uppercased,
17040         uc_is_property_changes_when_titlecased,
17041         uc_is_property_changes_when_casefolded,
17042         uc_is_property_changes_when_casemapped): New declarations.
17043         * lib/unictype/pr_byname.gperf: Add the new properties.
17044         * modules/unictype/property-byname (Depends-on): Depend on the new
17045         properties modules.
17046         * modules/unictype/property-all (Depends-on): Likewise.
17047         * MODULES.html.sh (Unicode string functions): Add
17048         unictype/property-case-ignorable, unictype/property-cased,
17049         unictype/property-changes-when-casefolded,
17050         unictype/property-changes-when-casemapped,
17051         unictype/property-changes-when-lowercased,
17052         unictype/property-changes-when-titlecased,
17053         unictype/property-changes-when-uppercased.
17054
17055         New module 'unictype/property-changes-when-casemapped'.
17056         * modules/unictype/property-changes-when-casemapped: New file.
17057         * lib/unictype/pr_changes_when_casemapped.c: New file.
17058         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17059         generated by gen-uni-tables.
17060         * modules/unictype/property-changes-when-casemapped-tests: New file.
17061         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17062         automatically generated by gen-uni-tables.
17063
17064         New module 'unictype/property-changes-when-casefolded'.
17065         * modules/unictype/property-changes-when-casefolded: New file.
17066         * lib/unictype/pr_changes_when_casefolded.c: New file.
17067         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17068         generated by gen-uni-tables.
17069         * modules/unictype/property-changes-when-casefolded-tests: New file.
17070         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17071         automatically generated by gen-uni-tables.
17072
17073         New module 'unictype/property-changes-when-titlecased'.
17074         * modules/unictype/property-changes-when-titlecased: New file.
17075         * lib/unictype/pr_changes_when_titlecased.c: New file.
17076         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17077         generated by gen-uni-tables.
17078         * modules/unictype/property-changes-when-titlecased-tests: New file.
17079         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17080         automatically generated by gen-uni-tables.
17081
17082         New module 'unictype/property-changes-when-uppercased'.
17083         * modules/unictype/property-changes-when-uppercased: New file.
17084         * lib/unictype/pr_changes_when_uppercased.c: New file.
17085         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17086         generated by gen-uni-tables.
17087         * modules/unictype/property-changes-when-uppercased-tests: New file.
17088         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17089         automatically generated by gen-uni-tables.
17090
17091         New module 'unictype/property-changes-when-lowercased'.
17092         * modules/unictype/property-changes-when-lowercased: New file.
17093         * lib/unictype/pr_changes_when_lowercased.c: New file.
17094         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17095         generated by gen-uni-tables.
17096         * modules/unictype/property-changes-when-lowercased-tests: New file.
17097         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17098         automatically generated by gen-uni-tables.
17099
17100         New module 'unictype/property-case-ignorable'.
17101         * modules/unictype/property-case-ignorable: New file.
17102         * lib/unictype/pr_case_ignorable.c: New file.
17103         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17104         by gen-uni-tables.
17105         * modules/unictype/property-case-ignorable-tests: New file.
17106         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17107         generated by gen-uni-tables.
17108
17109         New module 'unictype/property-cased'.
17110         * modules/unictype/property-cased: New file.
17111         * lib/unictype/pr_cased.c: New file.
17112         * lib/unictype/pr_cased.h: New file, automatically generated by
17113         gen-uni-tables.
17114         * modules/unictype/property-cased-tests: New file.
17115         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17116         gen-uni-tables.
17117
17118 2011-01-09  Bruno Haible  <bruno@clisp.org>
17119
17120         Update to Unicode 5.2.0.
17121         * lib/gen-uni-tables.c (output_predicate, output_category,
17122         output_combclass, output_bidi_category, output_decimal_digit_test,
17123         output_decimal_digit, output_digit_test, output_digit,
17124         output_numeric_test, output_numeric, output_mirror, output_scripts,
17125         output_scripts_byname, output_blocks, output_ident_category): Fix
17126         comment header.
17127         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17128         get_wbp.
17129         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17130         items.
17131         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17132         Changes_When_Lowercased, Changes_When_Uppercased,
17133         Changes_When_Titlecased, Changes_When_Casefolded,
17134         Changes_When_Casemapped.
17135         (is_property_alphabetic, is_property_default_ignorable_code_point):
17136         Update for Unicode 5.2.0.
17137         (is_property_cased, is_property_case_ignorable,
17138         is_property_changes_when_lowercased,
17139         is_property_changes_when_uppercased,
17140         is_property_changes_when_titlecased,
17141         is_property_changes_when_casefolded,
17142         is_property_changes_when_casemapped): New functions.
17143         (output_properties): Output also the properties cased, case_ignorable,
17144         changes_when_lowercased, changes_when_uppercased,
17145         changes_when_titlecased, changes_when_casefolded,
17146         changes_when_casemapped.
17147         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17148         Unicode TR#11 revision 17 -> 19.
17149         (LBP_CP): New enumeration value.
17150         (LBP_*): Adjust values accordingly.
17151         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17152         TR#14 revision 22 -> 24.
17153         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17154         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17155         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17156         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17157         is_WBP_MIDLETTER.
17158         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17159         the code1 and code2 of each composition rule.
17160         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17161         * lib/unicase/ignorable.h: Likewise.
17162         * lib/unicase/tocasefold.h: Likewise.
17163         * lib/unicase/tolower.h: Likewise.
17164         * lib/unicase/totitle.h: Likewise.
17165         * lib/unicase/toupper.h: Likewise.
17166         * lib/unictype/bidi_of.h: Likewise.
17167         * lib/unictype/blocks.h: Likewise.
17168         * lib/unictype/categ_C.h: Likewise.
17169         * lib/unictype/categ_Cf.h: Likewise.
17170         * lib/unictype/categ_Cn.h: Likewise.
17171         * lib/unictype/categ_L.h: Likewise.
17172         * lib/unictype/categ_Ll.h: Likewise.
17173         * lib/unictype/categ_Lm.h: Likewise.
17174         * lib/unictype/categ_Lo.h: Likewise.
17175         * lib/unictype/categ_Lu.h: Likewise.
17176         * lib/unictype/categ_M.h: Likewise.
17177         * lib/unictype/categ_Mc.h: Likewise.
17178         * lib/unictype/categ_Mn.h: Likewise.
17179         * lib/unictype/categ_N.h: Likewise.
17180         * lib/unictype/categ_Nd.h: Likewise.
17181         * lib/unictype/categ_Nl.h: Likewise.
17182         * lib/unictype/categ_No.h: Likewise.
17183         * lib/unictype/categ_P.h: Likewise.
17184         * lib/unictype/categ_Pd.h: Likewise.
17185         * lib/unictype/categ_Po.h: Likewise.
17186         * lib/unictype/categ_S.h: Likewise.
17187         * lib/unictype/categ_Sc.h: Likewise.
17188         * lib/unictype/categ_So.h: Likewise.
17189         * lib/unictype/categ_of.h: Likewise.
17190         * lib/unictype/combining.h: Likewise.
17191         * lib/unictype/ctype_alnum.h: Likewise.
17192         * lib/unictype/ctype_alpha.h: Likewise.
17193         * lib/unictype/ctype_graph.h: Likewise.
17194         * lib/unictype/ctype_lower.h: Likewise.
17195         * lib/unictype/ctype_print.h: Likewise.
17196         * lib/unictype/ctype_punct.h: Likewise.
17197         * lib/unictype/ctype_upper.h: Likewise.
17198         * lib/unictype/decdigit.h: Likewise.
17199         * lib/unictype/digit.h: Likewise.
17200         * lib/unictype/numeric.h: Likewise.
17201         * lib/unictype/pr_alphabetic.h: Likewise.
17202         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17203         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17204         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17205         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17206         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17207         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17208         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17209         * lib/unictype/pr_combining.h: Likewise.
17210         * lib/unictype/pr_composite.h: Likewise.
17211         * lib/unictype/pr_currency_symbol.h: Likewise.
17212         * lib/unictype/pr_dash.h: Likewise.
17213         * lib/unictype/pr_decimal_digit.h: Likewise.
17214         * lib/unictype/pr_deprecated.h: Likewise.
17215         * lib/unictype/pr_diacritic.h: Likewise.
17216         * lib/unictype/pr_extender.h: Likewise.
17217         * lib/unictype/pr_grapheme_base.h: Likewise.
17218         * lib/unictype/pr_grapheme_extend.h: Likewise.
17219         * lib/unictype/pr_grapheme_link.h: Likewise.
17220         * lib/unictype/pr_id_continue.h: Likewise.
17221         * lib/unictype/pr_id_start.h: Likewise.
17222         * lib/unictype/pr_ideographic.h: Likewise.
17223         * lib/unictype/pr_ignorable_control.h: Likewise.
17224         * lib/unictype/pr_logical_order_exception.h: Likewise.
17225         * lib/unictype/pr_lowercase.h: Likewise.
17226         * lib/unictype/pr_numeric.h: Likewise.
17227         * lib/unictype/pr_other_alphabetic.h: Likewise.
17228         * lib/unictype/pr_punctuation.h: Likewise.
17229         * lib/unictype/pr_sentence_terminal.h: Likewise.
17230         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17231         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17232         * lib/unictype/pr_unified_ideograph.h: Likewise.
17233         * lib/unictype/pr_uppercase.h: Likewise.
17234         * lib/unictype/pr_xid_continue.h: Likewise.
17235         * lib/unictype/pr_xid_start.h: Likewise.
17236         * lib/unictype/pr_zero_width.h: Likewise.
17237         * lib/unictype/scripts.h: Likewise.
17238         * lib/unictype/scripts_byname.gperf: Likewise.
17239         * lib/unictype/sy_java_ident.h: Likewise.
17240         * lib/unigbrk/gbrkprop.h: Likewise.
17241         * lib/unilbrk/lbrkprop1.h: Likewise.
17242         * lib/unilbrk/lbrkprop2.h: Likewise.
17243         * lib/unilbrk/lbrktables.h: Likewise.
17244         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17245         LBP_CP. Implement rule LB30.
17246         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17247         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17248         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17249         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17250         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17251         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17252         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17253         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17254         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17255         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17256         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17257         bits instead of 16 bits in the code1 and code2 of each composition
17258         rule.
17259         (uc_composition): Update for Unicode 5.2.0.
17260         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17261         * lib/uninorm/decomposition-table2.h: Likewise.
17262         * lib/uniwbrk/wbrkprop.h: Likewise.
17263         * tests/unicase/test-cased.c: Likewise.
17264         * tests/unicase/test-ignorable.c: Likewise.
17265         * tests/unicase/test-uc_tolower.c: Likewise.
17266         * tests/unicase/test-uc_totitle.c: Likewise.
17267         * tests/unicase/test-uc_toupper.c: Likewise.
17268         * tests/unictype/test-categ_C.c: Likewise.
17269         * tests/unictype/test-categ_Cf.c: Likewise.
17270         * tests/unictype/test-categ_Cn.c: Likewise.
17271         * tests/unictype/test-categ_L.c: Likewise.
17272         * tests/unictype/test-categ_Ll.c: Likewise.
17273         * tests/unictype/test-categ_Lm.c: Likewise.
17274         * tests/unictype/test-categ_Lo.c: Likewise.
17275         * tests/unictype/test-categ_Lu.c: Likewise.
17276         * tests/unictype/test-categ_M.c: Likewise.
17277         * tests/unictype/test-categ_Mc.c: Likewise.
17278         * tests/unictype/test-categ_Mn.c: Likewise.
17279         * tests/unictype/test-categ_N.c: Likewise.
17280         * tests/unictype/test-categ_Nd.c: Likewise.
17281         * tests/unictype/test-categ_Nl.c: Likewise.
17282         * tests/unictype/test-categ_No.c: Likewise.
17283         * tests/unictype/test-categ_P.c: Likewise.
17284         * tests/unictype/test-categ_Pd.c: Likewise.
17285         * tests/unictype/test-categ_Po.c: Likewise.
17286         * tests/unictype/test-categ_S.c: Likewise.
17287         * tests/unictype/test-categ_Sc.c: Likewise.
17288         * tests/unictype/test-categ_So.c: Likewise.
17289         * tests/unictype/test-ctype_alnum.c: Likewise.
17290         * tests/unictype/test-ctype_alpha.c: Likewise.
17291         * tests/unictype/test-ctype_graph.c: Likewise.
17292         * tests/unictype/test-ctype_lower.c: Likewise.
17293         * tests/unictype/test-ctype_print.c: Likewise.
17294         * tests/unictype/test-ctype_punct.c: Likewise.
17295         * tests/unictype/test-ctype_upper.c: Likewise.
17296         * tests/unictype/test-decdigit.h: Likewise.
17297         * tests/unictype/test-digit.h: Likewise.
17298         * tests/unictype/test-numeric.h: Likewise.
17299         * tests/unictype/test-pr_alphabetic.c: Likewise.
17300         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17301         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17302         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17303         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17304         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17305         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17306         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17307         * tests/unictype/test-pr_combining.c: Likewise.
17308         * tests/unictype/test-pr_composite.c: Likewise.
17309         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17310         * tests/unictype/test-pr_dash.c: Likewise.
17311         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17312         * tests/unictype/test-pr_deprecated.c: Likewise.
17313         * tests/unictype/test-pr_diacritic.c: Likewise.
17314         * tests/unictype/test-pr_extender.c: Likewise.
17315         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17316         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17317         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17318         * tests/unictype/test-pr_id_continue.c: Likewise.
17319         * tests/unictype/test-pr_id_start.c: Likewise.
17320         * tests/unictype/test-pr_ideographic.c: Likewise.
17321         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17322         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17323         * tests/unictype/test-pr_lowercase.c: Likewise.
17324         * tests/unictype/test-pr_numeric.c: Likewise.
17325         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17326         * tests/unictype/test-pr_punctuation.c: Likewise.
17327         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17328         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17329         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17330         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17331         * tests/unictype/test-pr_uppercase.c: Likewise.
17332         * tests/unictype/test-pr_xid_continue.c: Likewise.
17333         * tests/unictype/test-pr_xid_start.c: Likewise.
17334         * tests/unictype/test-pr_zero_width.c: Likewise.
17335         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17336         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17337         changed behaviour: line breaking is now disallowed between a letter
17338         or '=' and '('.
17339         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17340         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17341         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17342         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17343         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17344         lib/uniwidth/width.c.
17345         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17346         without comments, but with the original copyright notice.
17347         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17348         changes.
17349         * lib/unictype/categ_Cc.h: Likewise.
17350         * lib/unictype/categ_Co.h: Likewise.
17351         * lib/unictype/categ_Cs.h: Likewise.
17352         * lib/unictype/categ_Lt.h: Likewise.
17353         * lib/unictype/categ_Me.h: Likewise.
17354         * lib/unictype/categ_Pc.h: Likewise.
17355         * lib/unictype/categ_Pe.h: Likewise.
17356         * lib/unictype/categ_Pf.h: Likewise.
17357         * lib/unictype/categ_Pi.h: Likewise.
17358         * lib/unictype/categ_Ps.h: Likewise.
17359         * lib/unictype/categ_Sk.h: Likewise.
17360         * lib/unictype/categ_Sm.h: Likewise.
17361         * lib/unictype/categ_Z.h: Likewise.
17362         * lib/unictype/categ_Zl.h: Likewise.
17363         * lib/unictype/categ_Zp.h: Likewise.
17364         * lib/unictype/categ_Zs.h: Likewise.
17365         * lib/unictype/ctype_blank.h: Likewise.
17366         * lib/unictype/ctype_cntrl.h: Likewise.
17367         * lib/unictype/ctype_digit.h: Likewise.
17368         * lib/unictype/ctype_space.h: Likewise.
17369         * lib/unictype/ctype_xdigit.h: Likewise.
17370         * lib/unictype/mirror.h: Likewise.
17371         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17372         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17373         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17374         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17375         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17376         * lib/unictype/pr_bidi_control.h: Likewise.
17377         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17378         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17379         * lib/unictype/pr_bidi_pdf.h: Likewise.
17380         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17381         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17382         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17383         * lib/unictype/pr_format_control.h: Likewise.
17384         * lib/unictype/pr_hex_digit.h: Likewise.
17385         * lib/unictype/pr_hyphen.h: Likewise.
17386         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17387         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17388         * lib/unictype/pr_iso_control.h: Likewise.
17389         * lib/unictype/pr_join_control.h: Likewise.
17390         * lib/unictype/pr_left_of_pair.h: Likewise.
17391         * lib/unictype/pr_line_separator.h: Likewise.
17392         * lib/unictype/pr_math.h: Likewise.
17393         * lib/unictype/pr_non_break.h: Likewise.
17394         * lib/unictype/pr_not_a_character.h: Likewise.
17395         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17396         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17397         * lib/unictype/pr_other_id_continue.h: Likewise.
17398         * lib/unictype/pr_other_id_start.h: Likewise.
17399         * lib/unictype/pr_other_lowercase.h: Likewise.
17400         * lib/unictype/pr_other_math.h: Likewise.
17401         * lib/unictype/pr_other_uppercase.h: Likewise.
17402         * lib/unictype/pr_paired_punctuation.h: Likewise.
17403         * lib/unictype/pr_paragraph_separator.h: Likewise.
17404         * lib/unictype/pr_pattern_syntax.h: Likewise.
17405         * lib/unictype/pr_pattern_white_space.h: Likewise.
17406         * lib/unictype/pr_private_use.h: Likewise.
17407         * lib/unictype/pr_quotation_mark.h: Likewise.
17408         * lib/unictype/pr_radical.h: Likewise.
17409         * lib/unictype/pr_soft_dotted.h: Likewise.
17410         * lib/unictype/pr_space.h: Likewise.
17411         * lib/unictype/pr_titlecase.h: Likewise.
17412         * lib/unictype/pr_variation_selector.h: Likewise.
17413         * lib/unictype/pr_white_space.h: Likewise.
17414         * lib/unictype/sy_c_ident.h: Likewise.
17415         * lib/unictype/sy_c_whitespace.h: Likewise.
17416         * lib/unictype/sy_java_whitespace.h: Likewise.
17417         * modules/uni*/*: Bump version number of expected libunistring version.
17418         Reported by Simon Josefsson.
17419
17420 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17421
17422         useless-if-before-free: fix typo in --help and make the internal,
17423         automatic version date update process work once again.
17424         --help output contained a NUL character instead of the
17425         backslash-zero that was intended.  Also, the "must lie within
17426         the first 8 lines" line is on line 9, and hence not getting
17427         automatically updated.
17428         * build-aux/useless-if-before-free: Fix the former by adding a
17429         backslash, and the latter by condensing the three lines of what-it-does
17430         to a single line, leaving one line of slack for the future.
17431
17432 2011-01-09  Bruno Haible  <bruno@clisp.org>
17433
17434         uniwidth/width: Fix width of U+1D173..U+1D17A.
17435         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17436         symbolic_width, output_width_property_test): New functions.
17437         (main): Invoke output_nonspacing_property, output_width_property_test.
17438         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17439         U+1D173..U+1D17A.
17440         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17441         1.
17442         * modules/uniwidth/*: Bump version number of expected libunistring
17443         version.
17444         * modules/unilbrk/*: Likewise.
17445
17446 2011-01-08  Bruno Haible  <bruno@clisp.org>
17447
17448         uninorm tests: Preserve copyright of Unicode data file.
17449         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17450         Mention modifications.
17451
17452 2011-01-08  Bruno Haible  <bruno@clisp.org>
17453
17454         gen-uni-tables: Prepare for Unicode 5.2.0.
17455         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17456         (debug_output_lbp, output_lbp): Update.
17457
17458 2011-01-08  Bruno Haible  <bruno@clisp.org>
17459
17460         unilbrk: Clarify gen-uni-tables.c code.
17461         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17462         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17463         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17464
17465 2011-01-07  Bruno Haible  <bruno@clisp.org>
17466
17467         strtod: Restore errno when successfully parsing Infinity or NaN.
17468         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17469         restore the original errno.
17470
17471 2011-01-07  Bruno Haible  <bruno@clisp.org>
17472
17473         remove test: Avoid failure on HP-UX 11.
17474         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17475
17476 2011-01-07  Bruno Haible  <bruno@clisp.org>
17477
17478         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17479         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17480         error code.
17481
17482 2011-01-07  Pádraig Brady <P@draigBrady.com>
17483
17484         ignore-value: fixup comments, and add Eric Blake
17485         as an author since he rewrote the macros.
17486         * lib/ignore-value.h (ignore_value):  State that
17487         we now support aggregates.  Also specify exactly
17488         when the GCC warn_unused_result feature was added.
17489
17490 2011-01-06  Eric Blake  <eblake@redhat.com>
17491
17492         ignore-value: support aggregate types
17493         * lib/ignore-value.h (ignore_value): Provide separate gcc
17494         definition.
17495         * modules/ignore-value-tests: New test module.
17496         * tests/test-ignore-value.c: New test.
17497
17498         maint.mk: improve sc_prohibit_strcmp regex
17499         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17500         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17501         definition of STRNEQ.
17502
17503         signal: work around Haiku issue with SIGBUS
17504         * lib/siglist.h: Add comment.
17505         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17506         strsignal's favoring of SIGSEGV.
17507         * tests/test-signal.c (main): Avoid test failure.
17508         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17509         Reported by Scott McCreary.
17510
17511         maint.mk: add pre-release check to ensure submodule commits are public
17512         * top/maint.mk (public-submodule-commit): New rule.
17513         (submodule-checks): New variable.
17514         (alpha beta stable): Depend on the variable.
17515
17516 2011-01-05  Pádraig Brady <P@draigBrady.com>
17517         and Jim Meyering  <meyering@redhat.com>
17518
17519         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17520         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17521         (ATTRIBUTE_DEPRECATED): Define.
17522         (_ignore_case): New function.
17523         (ignore_value): New macro, to replace the old function.
17524         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17525         * modules/ignore-value (Depends-on): Add stdint.
17526
17527 2011-01-04  Eric Blake  <eblake@redhat.com>
17528
17529         doc: regenerate INSTALL
17530         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17531         @firstparagraphindent support, now that autoconf dropped it.
17532         (INSTALL_PRELUDE): Reinstate old macro.
17533         * doc/install.texi: Resync from autoconf.
17534         * doc/INSTALL: Reflect recent autoconf update.
17535         * doc/INSTALL.ISO: Likewise.
17536         * doc/INSTALL.UTF-8: Likewise.
17537         Reported by Karl Berry.
17538
17539 2011-01-04  Bruce Korb  <address@hidden>
17540
17541         git-version-gen: avoid a sub-shell
17542         * build-aux/git-version-gen: Redirect stderr in `...` via
17543         "exec 2>...", rather than via an added sub-shell.
17544
17545 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17546
17547         git-version-gen: use (...) rather than sh -c '...'
17548         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17549         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17550
17551 2011-01-03  Jim Meyering  <meyering@redhat.com>
17552
17553         git-version-gen: convert leading TABs to spaces
17554         * build-aux/git-version-gen: Expand leading TABs.
17555
17556         git-version-gen: handle failed "git rev-list"
17557         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17558         from git and proceeding as if it had succeeded but printed no SHA1
17559         checksums, suppress the diagnostic and handle the failure.
17560         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17561
17562         git-version-gen: include command name in one more diagnostic
17563         * build-aux/git-version-gen: When the required .tarball-version file
17564         was missing or unreadable, you might see the diagnostic from "cat",
17565         but no trace of the name of the invoking script.  Now, you still see
17566         the diagnostic from cat, but also get one from "git-version-gen: ".
17567         Inspired by a patch from Bruce Korb.
17568
17569         update-copyright: adjust test to match changed code
17570         * tests/test-update-copyright.sh: Change test's expected output
17571         to match new actual output.
17572
17573 2011-01-02  Bruno Haible  <bruno@clisp.org>
17574
17575         getlogin_r: Avoid test failure on HP-UX 11.
17576         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17577         ERANGE when the second argument is zero.
17578         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17579         portability problem.
17580
17581 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17582
17583         * build-aux/update-copyright: doc Simon's changes
17584
17585 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17586
17587         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17588         environment variable.
17589
17590 2011-01-02  Bruno Haible  <bruno@clisp.org>
17591
17592         unigbrk: Avoid gcc warnings.
17593         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17594         unused variable.
17595         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17596         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17597         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17598         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17599         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17600         Change type of first argument to 'const char *'.
17601         (main): Remove unused variable.
17602         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17603         type of first argument to 'const char *'.
17604         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17605         Likewise.
17606         (main): Change type of variable 's'.
17607         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17608         to 'int'.
17609
17610 2011-01-02  Bruno Haible  <bruno@clisp.org>
17611
17612         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17613         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17614         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17615         bug.
17616         * lib/pwrite.c: Undo 2010-12-31 patch.
17617         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17618
17619 2011-01-02  Bruno Haible  <bruno@clisp.org>
17620
17621         pread: Fix test whether it works.
17622         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17623
17624 2011-01-02  Bruno Haible  <bruno@clisp.org>
17625
17626         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17627         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17628         ends in "6". Don't require a specific month name. Try also the locale
17629         names found on HP-UX 11 and Solaris 7.
17630
17631 2011-01-02  Bruno Haible  <bruno@clisp.org>
17632
17633         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17634         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17635         C linkage.
17636         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17637
17638 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17639
17640         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17641         for consistency, since the "cluster" term is not used elsewhere.
17642         * lib/unigbrk.in.h: Update name.
17643         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17644         * lib/unigbrk/u16-grapheme-next.c: Update name.
17645         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17646         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17647         * lib/unigbrk/u32-grapheme-next.c: Update name.
17648         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17649         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17650         * lib/unigbrk/u8-grapheme-next.c: Update name.
17651         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17652         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17653         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17654         Suggested by Bruno Haible.
17655
17656 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17657
17658         Remove module 'u8-grapheme-len' as too redundant with
17659         'u8-grapheme-next'.
17660         * modules/unigbrk/u8-grapheme-len: Delete file.
17661         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17662         * lib/unigbrk.in.h: Remove prototype for deleted function.
17663         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17664         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17665
17666         Remove module 'u16-grapheme-len' as too redundant with
17667         'u16-grapheme-next'.
17668         * modules/unigbrk/u16-grapheme-len: Delete file.
17669         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17670         * lib/unigbrk.in.h: Remove prototype for deleted function.
17671         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17672         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17673
17674         Remove module 'u32-grapheme-len' as too redundant with
17675         'u32-grapheme-next'.
17676         * modules/unigbrk/u32-grapheme-len: Delete file.
17677         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17678         * lib/unigbrk.in.h: Remove prototype for deleted function.
17679         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17680         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17681
17682         Suggested by Bruno Haible.
17683
17684 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17685
17686         * unigbrk.in.h: Fix typo: "ben" => "been".
17687         Reported by Bruno Haible.
17688
17689 2011-01-01  Jim Meyering  <meyering@redhat.com>
17690
17691         maint: update almost all copyright ranges to include 2011
17692         Run the new "make update-copyright" rule.
17693
17694 2011-01-01  Jim Meyering  <meyering@redhat.com>
17695
17696         maint: update-copyright: exempt doc/INSTALL*
17697         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17698         since they are generated.  Suggested by Bruno Haible.
17699
17700 2011-01-01  Jim Meyering  <meyering@redhat.com>
17701
17702         maint: refine the update-copyright rule
17703         * Makefile (update-copyright): Also exclude any file that includes
17704         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17705         code that merely generates the comment.
17706
17707 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17708
17709         New module 'u8-grapheme-len'.
17710         * modules/unigbrk/u8-grapheme-len: New file.
17711         * modules/unigbrk/u8-grapheme-len-tests: New file.
17712         * lib/unigbrk.in.h: Add prototype for new function.
17713         * lib/unigbrk/u8-grapheme-len.c: New file.
17714         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17715
17716         New module 'u16-grapheme-len'.
17717         * modules/unigbrk/u16-grapheme-len: New file.
17718         * modules/unigbrk/u16-grapheme-len-tests: New file.
17719         * lib/unigbrk.in.h: Add prototype for new function.
17720         * lib/unigbrk/u16-grapheme-len.c: New file.
17721         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17722
17723         New module 'u32-grapheme-len'.
17724         * modules/unigbrk/u32-grapheme-len: New file.
17725         * modules/unigbrk/u32-grapheme-len-tests: New file.
17726         * lib/unigbrk.in.h: Add prototype for new function.
17727         * lib/unigbrk/u32-grapheme-len.c: New file.
17728         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17729
17730         New module 'u8-grapheme-next'.
17731         * modules/unigbrk/u8-grapheme-next: New file.
17732         * modules/unigbrk/u8-grapheme-next-tests: New file.
17733         * lib/unigbrk.in.h: Add prototype for new function.
17734         * lib/unigbrk/u8-grapheme-next.c: New file.
17735         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17736
17737         New module 'u16-grapheme-next'.
17738         * modules/unigbrk/u16-grapheme-next: New file.
17739         * modules/unigbrk/u16-grapheme-next-tests: New file.
17740         * lib/unigbrk.in.h: Add prototype for new function.
17741         * lib/unigbrk/u16-grapheme-next.c: New file.
17742         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17743
17744         New module 'u32-grapheme-next'.
17745         * modules/unigbrk/u32-grapheme-next: New file.
17746         * modules/unigbrk/u32-grapheme-next-tests: New file.
17747         * lib/unigbrk.in.h: Add prototype for new function.
17748         * lib/unigbrk/u32-grapheme-next.c: New file.
17749         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17750
17751         New module 'u8-grapheme-prev'.
17752         * modules/unigbrk/u8-grapheme-prev: New file.
17753         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17754         * lib/unigbrk.in.h: Add prototype for new function.
17755         * lib/unigbrk/u8-grapheme-prev.c: New file.
17756         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17757
17758         New module 'u16-grapheme-prev'.
17759         * modules/unigbrk/u16-grapheme-prev: New file.
17760         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17761         * lib/unigbrk.in.h: Add prototype for new function.
17762         * lib/unigbrk/u16-grapheme-prev.c: New file.
17763         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17764
17765         New module 'u32-grapheme-prev'.
17766         * modules/unigbrk/u32-grapheme-prev: New file.
17767         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17768         * lib/unigbrk.in.h: Add prototype for new function.
17769         * lib/unigbrk/u32-grapheme-prev.c: New file.
17770         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17771
17772         New module 'u8-grapheme-breaks'.
17773         * modules/unigbrk/u8-grapheme-breaks: New file.
17774         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17775         * lib/unigbrk.in.h: Add prototype for new function.
17776         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17777         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17778
17779         New module 'u16-grapheme-breaks'.
17780         * modules/unigbrk/u16-grapheme-breaks: New file.
17781         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17782         * lib/unigbrk.in.h: Add prototype for new function.
17783         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17784         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17785
17786         New module 'u32-grapheme-breaks'.
17787         * modules/unigbrk/u32-grapheme-breaks: New file.
17788         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17789         * lib/unigbrk.in.h: Add prototype for new function.
17790         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17791         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17792
17793         New module 'ulc-grapheme-breaks'.
17794         * modules/unigbrk/ulc-grapheme-breaks: New file.
17795         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17796         * m4/locale-ar.m4: New file.
17797         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17798         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17799         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17800
17801 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17802
17803         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17804         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17805         modified how this file was generated before I initially submitted
17806         the module, but failed to regenerate it.  This meant that several
17807         of the level2 entries were wrong.
17808         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17809         Remove the division-by-2 that is folded into the table now that
17810         gbrkprop.h has been regenerated properly.  Now -1 entries are
17811         handled correctly.
17812
17813         New module 'unigbrk/uc-gbrk-prop-tests'.
17814         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17815         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17816         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17817         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17818
17819 2011-01-01  Bruno Haible  <bruno@clisp.org>
17820
17821         Avoid use of hexadecimal escapes.
17822         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17823         instead of hexadecimal escapes.
17824
17825 2011-01-01  Jim Meyering  <meyering@redhat.com>
17826
17827         maint: new rule to update copyright year ranges
17828         * Makefile (update-copyright): New rule.
17829
17830         maint: indent with TABs in Makefile
17831         * Makefile: Expand leading sequences of spaces to TABs
17832
17833         version-etc: update the copyright year it reports
17834         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17835
17836 2010-12-31  Bruno Haible  <bruno@clisp.org>
17837
17838         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17839         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17840         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17841         zero.
17842
17843 2010-12-31  Bruno Haible  <bruno@clisp.org>
17844
17845         pwrite: Work around HP-UX 11.11 bug.
17846         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17847         works and set REPLACE_PWRITE if not.
17848         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17849         function.
17850         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17851
17852 2010-12-31  Bruno Haible  <bruno@clisp.org>
17853
17854         pread: Work around HP-UX 11 bugs.
17855         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17856         and set REPLACE_PREAD if not.
17857         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17858
17859 2010-12-31  Eric Blake  <eblake@redhat.com>
17860
17861         nl_langinfo: fix YESEXPR on Irix 6.5
17862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17863         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17864         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17865         it.
17866
17867 2010-12-31  Bruno Haible  <bruno@clisp.org>
17868
17869         iconv: Document HP-UX 11 bug.
17870         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17871
17872 2010-12-31  Bruno Haible  <bruno@clisp.org>
17873
17874         ldexpl: Fix link error on HP-UX 11.
17875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17876         LDEXPL_LIBM, using $ISNANL_LIBM.
17877
17878 2010-12-31  Eric Blake  <eblake@redhat.com>
17879
17880         ftello: avoid compilation failure with SunStudio c89
17881         * lib/ftello.c (ftello): Use lseek, not llseek.
17882
17883         tests: avoid failing coreutils tests on cygwin
17884         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17885         (create_exe_shims_): Return 0 when skipping.
17886
17887 2010-12-31  Bruno Haible  <bruno@clisp.org>
17888
17889         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17890         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17891
17892 2010-12-31  Bruno Haible  <bruno@clisp.org>
17893
17894         waitpid: Fix link error in C++ mode.
17895         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17896
17897 2010-12-31  Bruno Haible  <bruno@clisp.org>
17898
17899         isnan: Use GCC built-ins when possible.
17900         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17901         __builtin_isnan.
17902         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17903         (isnan): Define using GCC built-ins for GCC >= 4.0.
17904
17905 2010-12-31  Bruno Haible  <bruno@clisp.org>
17906
17907         isnand: Fix mistake.
17908         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17909         __builtin_isnand.
17910
17911 2010-12-31  Bruno Haible  <bruno@clisp.org>
17912
17913         open: Avoid C++ error on HP-UX 11.
17914         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17915
17916 2010-12-31  Bruno Haible  <bruno@clisp.org>
17917
17918         time_r: Add missing declarations on HP-UX 11.
17919         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17920         instead of HAVE_LOCALTIME_R.
17921         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17922         HAVE_LOCALTIME_R always.
17923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17924         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17925         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17926         HAVE_LOCALTIME_R.
17927         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17928         * doc/posix-functions/localtime_r.texi: Likewise.
17929
17930 2010-12-29  Eric Blake  <eblake@redhat.com>
17931
17932         mountlist: tweak previous commit
17933         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17934         Reported by Paul Eggert.
17935
17936         mountlist: fix local drive detection on cygwin
17937         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17938         that works for cygwin.
17939
17940 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17941
17942         ftoastr, snprintf: ftoastr + snprintf module
17943         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17944         since the snprintf module now should be good enough here.
17945         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17946         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17947         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17948         GNULIB_SNPRINTF only for the test directory, and the latter
17949         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17950         seems to suffice by itself.
17951
17952 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17953
17954         alloca: one step towards thread-safety
17955         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17956         need for a static variable.  All callers changed.  This does not
17957         make the alloca replacement thread-safe, but it's one step.
17958
17959         tests: minor indenting change
17960         * tests/init.sh: Sync from coreutils housekeeping patch
17961         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17962         to keep lines within 80 columns.
17963
17964 2010-12-28  Jim Meyering  <meyering@redhat.com>
17965
17966         regex: don't infloop on persistent failing calloc
17967         * lib/regexec.c (build_trtable): Return failure indication upon
17968         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17969         In glibc, this was fixed for version 2.13:
17970         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17971
17972 2010-12-28  Bruno Haible  <bruno@clisp.org>
17973             Paul Eggert <eggert@cs.ucla.edu>
17974
17975         linkat: Make implementation robust against system behaviour variations.
17976         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17977         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17978         way, and to -2 if it needs a generic runtime test.
17979         * lib/linkat.c (solaris_optimized_link_immediate,
17980         solaris_optimized_link_follow): New functions.
17981         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17982         (check_same_link): Use it.
17983
17984 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17985
17986         New module 'unigbrk/base'.
17987         * modules/unigbrk/base: New file.
17988         * lib/unigbrk.in.h: New file.
17989
17990         New module 'unigbrk/uc-gbrk-prop'.
17991         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17992         * modules/unigbrk/uc-gbrk-prop: New file.
17993         * lib/unigbrk/gbrkprop.h: New file.
17994         * lib/unigbrk/uc-gbrk-prop.c: New file.
17995
17996         New module 'unigbrk/uc-is-grapheme-break'.
17997         * modules/unigbrk/uc-is-grapheme-break: New file.
17998         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17999         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18000         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18001         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18002         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18003
18004         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18005
18006 2010-12-27  Bruno Haible  <bruno@clisp.org>
18007
18008         linkat test: Avoid failure on Solaris 11 2010-11.
18009         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18010
18011 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18012
18013         utimens: work around glibc rounding bug on more platforms
18014         * lib/utimens.c (fdutimens): Work around rounding bug even if
18015         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18017
18018 2010-12-27  Bruno Haible  <bruno@clisp.org>
18019
18020         select tests: Improve comments.
18021         * tests/test-select.c (do_select): Add comments.
18022
18023 2010-12-27  Bruno Haible  <bruno@clisp.org>
18024
18025         select tests: Safer way of handling timeout.
18026         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18027         at every invocation.
18028
18029 2010-12-27  Bruno Haible  <bruno@clisp.org>
18030
18031         select tests: Use 'bool' where appropriate.
18032         * tests/test-select.c (connect_to_socket): Change argument type to
18033         'bool'.
18034
18035 2010-12-27  Bruno Haible  <bruno@clisp.org>
18036
18037         select tests: Use existing modules.
18038         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18039         (configure.ac): Don't test for unistd.h.
18040         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18041         declared in <unistd.h>.
18042
18043 2010-12-27  Bruno Haible  <bruno@clisp.org>
18044
18045         mbrtowc: Work around a Solaris 7 bug.
18046         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18047         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18048         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18049         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18050         MBRTOWC_NULL_ARG1_BUG.
18051         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18052         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18053         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18054         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18055
18056 2010-12-27  Jim Meyering  <meyering@redhat.com>
18057
18058         read-file.c: tweak syntax
18059         * lib/read-file.c (fread_file): Remove space after "*" in function
18060         definitions.
18061
18062 2010-12-27  Bruno Haible  <bruno@clisp.org>
18063
18064         times test: Avoid gcc warnings on OSF/1.
18065         * tests/test-times.c (main): Cast printf arguments from clock_t to
18066         'long int'.
18067
18068 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18069
18070         utimens: work around glibc rounding bug on older Linux kernels
18071         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18072         on Linux with a glibc whose utimes might not work, then work
18073         around a longstanding glibc bug involving rounding rather than
18074         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18076
18077 2010-12-26  Bruno Haible  <bruno@clisp.org>
18078
18079         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18080         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18081         _GL_CXXALIAS_SYS.
18082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18083
18084 2010-12-26  Bruno Haible  <bruno@clisp.org>
18085
18086         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18087         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18089         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18090         looking for the declaration.
18091         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18092         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18093         problem.
18094         * doc/posix-functions/inet_pton.texi: Likewise.
18095
18096 2010-12-26  Bruno Haible  <bruno@clisp.org>
18097
18098         arpa_inet: Use the common idioms with C++ support.
18099         * lib/arpa_inet.in.h: Include c++defs.h.
18100         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18101         support.
18102         * modules/arpa_inet (Depends-on): Add c++defs.
18103         (Makefile.am): Substitute the contents of c++defs.h.
18104         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18105         * modules/arpa_inet-c++-tests: New file.
18106         * tests/test-arpa_inet-c++.cc: New file.
18107
18108 2010-12-25  Bruno Haible  <bruno@clisp.org>
18109
18110         Fix more C++ link errors on Solaris 8.
18111         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18112         $(LIB_EACCESS).
18113         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18114         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18115         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18116         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18117         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18118
18119 2010-12-25  Bruno Haible  <bruno@clisp.org>
18120
18121         printf-posix: Fix link error when a non-GCC compiler is used.
18122         * lib/stdio.in.h (printf): When not using GCC, override printf
18123         correctly.
18124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18125
18126 2010-12-25  Bruno Haible  <bruno@clisp.org>
18127
18128         strerror_r-posix: Update doc.
18129         * doc/posix-functions/strerror_r.texi: Update doc about the return
18130         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18131
18132 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18133
18134         utimens: simplify the logic of the previous change
18135         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18136         This should not affect whether the test succeeds or fails.
18137
18138         utimens: configure better on hosts with NFS clock skew
18139         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18140         uses the clock of the local host.  It might use the clock of the
18141         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18143
18144 2010-12-25  Bruno Haible  <bruno@clisp.org>
18145
18146         ptsname test: Avoid failure on Solaris.
18147         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18148         open a pseudo-terminal; don't use BSD-style ptys.
18149         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18150
18151 2010-12-25  Bruno Haible  <bruno@clisp.org>
18152
18153         ptsname: Avoid ERANGE failure on some systems.
18154         * lib/ptsname.c (buffer): Increase size.
18155
18156 2010-12-25  Bruno Haible  <bruno@clisp.org>
18157
18158         rename, renameat: Avoid test failures at NFS mounted locations.
18159         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18160         so that subsequent mkdir calls succeed.
18161
18162 2010-12-25  Bruno Haible  <bruno@clisp.org>
18163
18164         iswblank: Fix C++ link error on Solaris 8.
18165         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18166         _GL_FUNCDECL_SYS.
18167
18168 2010-12-25  Bruno Haible  <bruno@clisp.org>
18169
18170         unistd: Fix C++ link error on Solaris 8.
18171         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18172
18173 2010-12-25  Bruno Haible  <bruno@clisp.org>
18174
18175         readlink doc: Mention an old glibc bug.
18176         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18177
18178 2010-12-25  Bruno Haible  <bruno@clisp.org>
18179
18180         fcntl-h: Fix for use of C++ on glibc systems.
18181         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18182         also on glibc systems in C++ mode.
18183         Reported by Gary V. Vaughan <gary@gnu.org>.
18184
18185 2010-12-25  Bruno Haible  <bruno@clisp.org>
18186
18187         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18188         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18189
18190 2010-12-25  Bruno Haible  <bruno@clisp.org>
18191
18192         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18193         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18194         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18195         test whether truncl works according to ISO C 99 with IEC 60559.
18196         * m4/truncl-ieee.m4: New file.
18197         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18198         m4/signbit.m4.
18199         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18200
18201 2010-12-25  Bruno Haible  <bruno@clisp.org>
18202
18203         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18204         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18205         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18206         test whether ceill works according to ISO C 99 with IEC 60559.
18207         * m4/ceill-ieee.m4: New file.
18208         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18209         m4/signbit.m4.
18210         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18211
18212 2010-12-25  Bruno Haible  <bruno@clisp.org>
18213
18214         Ensure all prerequisites of <wchar.h> are included.
18215         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18216         before <wchar.h>.
18217         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18218         gl_MBRLEN_NUL_RETVAL): Likewise.
18219         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18220         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18221         AC_FUNC_MBRTOWC): Likewise.
18222         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18223         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18224         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18225         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18226         Likewise.
18227         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18228         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18229         (gl_WCHAR_H): Improve comments.
18230         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18231
18232 2010-12-25  Bruno Haible  <bruno@clisp.org>
18233
18234         strtok_r: Fix C syntax error in autoconf macro.
18235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18236         characters in test program.
18237
18238 2010-12-24  Bruno Haible  <bruno@clisp.org>
18239
18240         ceil, trunc, round: Fix gcc warnings.
18241         * lib/ceil.c (MIN): Undefine before redefining.
18242         * lib/trunc.c (MIN): Likewise.
18243         * lib/round.c (MIN): Likewise.
18244         Include <math.h> first.
18245
18246 2010-12-24  Bruno Haible  <bruno@clisp.org>
18247
18248         select tests: Avoid failures on OSF/1 5.1.
18249         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18250         failure of closing the last socket; it may fail with ECONNRESET.
18251
18252 2010-12-24  Eric Blake  <eblake@redhat.com>
18253
18254         stdint: avoid HP-UX 10.20 preprocessor bug
18255         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18256         than #if.
18257         * tests/test-floor2.c (main): Likewise.
18258         Reported by Peter O'Gorman.
18259
18260         pipe: make obsoletion transition easier
18261         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18262         * modules/pipe (Files): Include revived file.
18263         (Include): Drop reference, to mirror getdate's behavior.
18264
18265 2010-12-24  Bruno Haible  <bruno@clisp.org>
18266
18267         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18268         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18269         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18270         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18271
18272 2010-12-24  Bruno Haible  <bruno@clisp.org>
18273
18274         gethostname: Ensure declaration on NonStop Kernel.
18275         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18276         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18277
18278 2010-12-24  Bruno Haible  <bruno@clisp.org>
18279
18280         sys_select: Ensure all necessary types on NonStop Kernel.
18281         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18282         include <sys/time.h>.
18283         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18284         NonStop Kernel.
18285         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18286
18287 2010-12-24  Bruno Haible  <bruno@clisp.org>
18288
18289         sys_select: Remove unneeded include.
18290         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18291         have <sys/select.h>.
18292
18293 2010-12-24  Bruno Haible  <bruno@clisp.org>
18294
18295         gethostname: Provide a fallback for HOST_NAME_MAX.
18296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18297         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18298         instead.
18299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18300
18301 2010-12-24  Bruno Haible  <bruno@clisp.org>
18302
18303         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18304         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18305         (SA_RESTART): Likewise.
18306         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18307
18308 2010-12-24  Bruno Haible  <bruno@clisp.org>
18309
18310         signal: Define NSIG.
18311         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18312         * tests/test-signal.c (nsig): New variable.
18313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18314
18315 2010-12-24  Bruno Haible  <bruno@clisp.org>
18316
18317         rename, renameat: Avoid test failures on OSF/1 5.1.
18318         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18319         alternative error codes.
18320         * tests/test-renameat.c (main): Likewise.
18321
18322 2010-12-24  Bruno Haible  <bruno@clisp.org>
18323
18324         *printf: Detect large precisions bug on Solaris 10/SPARC.
18325         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18326         by Paul Eggert.
18327         * tests/test-snprintf-posix.h (test_function): Add this test code here
18328         too.
18329         * tests/test-sprintf-posix.h (test_function): Likewise.
18330         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18331         * tests/test-vasprintf-posix.c (test_function): Likewise.
18332         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18333         around by gnulib.
18334         * doc/posix-functions/printf.texi: Likewise.
18335         * doc/posix-functions/snprintf.texi: Likewise.
18336         * doc/posix-functions/sprintf.texi: Likewise.
18337         * doc/posix-functions/vfprintf.texi: Likewise.
18338         * doc/posix-functions/vprintf.texi: Likewise.
18339         * doc/posix-functions/vsnprintf.texi: Likewise.
18340         * doc/posix-functions/vsprintf.texi: Likewise.
18341         * doc/posix-functions/dprintf.texi: Undo last commit.
18342         * doc/posix-functions/vdprintf.texi: Likewise.
18343
18344 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         tests: port test-fdutimensat.c to Solaris 8
18347         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18348         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18349         On Solaris 8, it fails with errno == ENOSYS, because there is no
18350         futimens (so it can't use the fd), and there is no lutimens (so it
18351         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18352
18353         vsnprintf: make more consistent with snprintf; doc fixes
18354
18355         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18356         the byte count return problem was promoted from the snprintf-posix
18357         to the snprintf module.
18358         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18359         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18360         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18361         * tests/test-snprintf.c (main): Check the byte count returned.
18362         * tests/test-vsnprintf.c (main): Likewise.
18363
18364 2010-12-23  Eric Blake  <eblake@redhat.com>
18365
18366         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18367         * modules/sigpipe (License): Relax license.
18368
18369 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18370
18371         doc: document Solaris printf bug with large float precisions
18372         * doc/posix-functions/dprintf.texi (dprintf):
18373         * doc/posix-functions/fprintf.texi (fprintf):
18374         * doc/posix-functions/printf.texi (printf):
18375         * doc/posix-functions/snprintf.texi (snprintf):
18376         * doc/posix-functions/sprintf.texi (sprintf):
18377         * doc/posix-functions/vdprintf.texi (vdprintf):
18378         * doc/posix-functions/vfprintf.texi (vfprintf):
18379         * doc/posix-functions/vprintf.texi (vprintf):
18380         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18381         * doc/posix-functions/vsprintf.texi (vsprintf):
18382         Mention that these functions mishandle large floating point
18383         precisions on Solaris 10.  The same bug is also present in Solaris
18384         8, and I assume earlier.  This causes "cd gnulib-tests; make
18385         check" to fail on Solaris 8 (and I assume, later) when building
18386         the latest coreutils, in test-vasprintf-posix's call to
18387         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18388         the wide flavors (e.g., wprintf) so this patch just updates the
18389         documentation for the narrow ones.
18390
18391         test-posixtm.c: add two tests
18392         * tests/test-posixtm.c: Add two tests, to highlight the
18393         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18394         around this bug; this is merely to document it.
18395
18396 2010-12-22  Bruno Haible  <bruno@clisp.org>
18397
18398         getlogin_r: Work around portability problem on OSF/1.
18399         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18400         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18401         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18402         test for a truncated result.
18403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18404         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18405         * modules/getlogin_r (Depends-on): Add memchr.
18406         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18407
18408 2010-12-22  Bruno Haible  <bruno@clisp.org>
18409
18410         ptsname: Avoid test failure on OSF/1 5.1.
18411         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18412         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18413         (same_slave): New function.
18414         (main): Use it to compare ptsname's result with the expected file name.
18415
18416 2010-12-22  Bruno Haible  <bruno@clisp.org>
18417
18418         Port extended stdio modules to HP NonStop Kernel.
18419         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18420         macros.
18421         * lib/fbufmode.c: Update comments.
18422         * lib/fflush.c: Likewise.
18423         * lib/fpurge.c: Likewise.
18424         * lib/freadable.c: Likewise.
18425         * lib/freadahead.c: Likewise.
18426         * lib/freading.c: Likewise.
18427         * lib/freadptr.c: Likewise.
18428         * lib/freadseek.c: Likewise.
18429         * lib/fseeko.c: Likewise.
18430         * lib/fseterr.c: Likewise.
18431         * lib/fwritable.c: Likewise.
18432         * lib/fwriting.c: Likewise.
18433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18434
18435 2010-12-22  Bruno Haible  <bruno@clisp.org>
18436
18437         ttyname_r: Work around bug on OSF/1 5.1.
18438         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18440         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18441         present.
18442         * lib/ttyname_r.c (ttyname_r): Update comments.
18443
18444 2010-12-22  Bruno Haible  <bruno@clisp.org>
18445
18446         round: Implement result sign according to IEEE 754.
18447         * lib/round.c (MIN, MINUS_ZERO): New macros.
18448         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18449         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18450         * tests/test-round-ieee.c (main): Likewise.
18451         * tests/test-roundl-ieee.c (main): Likewise.
18452
18453         trunc: Implement result sign according to IEEE 754.
18454         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18455         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18456         * tests/test-trunc2.c: Include minus-zero.h.
18457         (MINUS_ZERO): New macro.
18458         (trunc_reference): Keep in sync with lib/trunc.c.
18459         * tests/test-truncf2.c: Include minus-zero.h.
18460         (MINUS_ZERO): New macro.
18461         (truncf_reference): Keep in sync with lib/trunc.c.
18462         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18463         * tests/test-trunc-ieee.c (main): Likewise.
18464         * tests/test-truncl-ieee.c (main): Likewise.
18465
18466         ceil: Implement result sign according to IEEE 754.
18467         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18468         (FUNC): Return -0.0 for -1 < x < 0.
18469         * tests/test-ceil2.c: Include minus-zero.h.
18470         (MINUS_ZERO): New macro.
18471         (ceil_reference): Keep in sync with lib/ceil.c.
18472         * tests/test-ceilf2.c: Include minus-zero.h.
18473         (MINUS_ZERO): New macro.
18474         (ceilf_reference): Keep in sync with lib/ceil.c.
18475         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18476         * tests/test-ceil-ieee.c (main): Likewise.
18477         * tests/test-ceill-ieee.c (main): Likewise.
18478
18479         floor: Implement result sign according to IEEE 754.
18480         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18481         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18482         * tests/test-floorf2.c (floorf_reference): Likewise.
18483         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18484         * tests/test-floor-ieee.c (main): Likewise.
18485         * tests/test-floorl-ieee.c (main): Likewise.
18486
18487 2010-12-22  Bruno Haible  <bruno@clisp.org>
18488
18489         getaddrinfo: Update doc.
18490         * doc/posix-functions/gai_strerror.texi: Return type is also different
18491         on AIX and HP-UX.
18492
18493 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18494
18495         getaddrinfo, inet_ntop: Update doc for Solaris.
18496         * doc/posix-functions/gai_strerror.texi: Return type is also an
18497         issue on Solaris 9 and earlier.
18498         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18499         on Solaris 10 and earlier.
18500
18501 2010-12-21  Bruno Haible  <bruno@clisp.org>
18502
18503         New module 'roundl-ieee'.
18504         * modules/roundl-ieee: New file.
18505         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18506         test whether roundl works according to ISO C 99 with IEC 60559.
18507         * m4/roundl-ieee.m4: New file.
18508         * modules/roundl-ieee-tests: New file.
18509         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18510         * tests/test-roundl.c (main): Remove signbit tests.
18511         * modules/roundl-tests (Depends-on): Remove signbit.
18512         * doc/posix-functions/roundl.texi: Mention the new module.
18513
18514 2010-12-21  Bruno Haible  <bruno@clisp.org>
18515
18516         New module 'truncl-ieee'.
18517         * modules/truncl-ieee: New file.
18518         * modules/truncl-ieee-tests: New file.
18519         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18520         * tests/test-truncl.c (main): Remove signbit tests.
18521         * modules/truncl-tests (Depends-on): Remove signbit.
18522         * doc/posix-functions/truncl.texi: Mention the new module.
18523
18524 2010-12-21  Bruno Haible  <bruno@clisp.org>
18525
18526         New module 'ceill-ieee'.
18527         * modules/ceill-ieee: New file.
18528         * modules/ceill-ieee-tests: New file.
18529         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18530         * tests/test-ceill.c (main): Remove signbit tests.
18531         * modules/ceill-tests (Depends-on): Remove signbit.
18532         * doc/posix-functions/ceill.texi: Mention the new module.
18533
18534 2010-12-21  Bruno Haible  <bruno@clisp.org>
18535
18536         New module 'floorl-ieee'.
18537         * modules/floorl-ieee: New file.
18538         * modules/floorl-ieee-tests: New file.
18539         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18540         * tests/test-floorl.c (main): Remove signbit tests.
18541         * modules/floorl-tests (Depends-on): Remove signbit.
18542         * doc/posix-functions/floorl.texi: Mention the new module.
18543
18544 2010-12-21  Bruno Haible  <bruno@clisp.org>
18545
18546         New module 'round-ieee'.
18547         * modules/round-ieee: New file.
18548         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18549         whether round works according to ISO C 99 with IEC 60559.
18550         * m4/round-ieee.m4: New file.
18551         * modules/round-ieee-tests: New file.
18552         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18553         * tests/test-round1.c (main): Remove signbit tests.
18554         * modules/round-tests (Depends-on): Remove 'signbit'.
18555         * doc/posix-functions/round.texi: Mention the new module.
18556
18557 2010-12-21  Bruno Haible  <bruno@clisp.org>
18558
18559         New module 'trunc-ieee'.
18560         * modules/trunc-ieee: New file.
18561         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18562         whether trunc works according to ISO C 99 with IEC 60559.
18563         * m4/trunc-ieee.m4: New file.
18564         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18566         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18567         * modules/trunc-ieee-tests: New file.
18568         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18569         * tests/test-trunc1.c (main): Remove signbit tests.
18570         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18571         * doc/posix-functions/trunc.texi: Mention the new module.
18572
18573 2010-12-21  Bruno Haible  <bruno@clisp.org>
18574
18575         New module 'ceil-ieee'.
18576         * modules/ceil-ieee: New file.
18577         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18578         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18579         ISO C 99 with IEC 60559.
18580         * m4/ceil-ieee.m4: New file.
18581         * modules/ceil (Files): Add lib/ceil.c.
18582         (Depends-on): Add 'float'.
18583         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18584         * lib/math.in.h (ceil): New declaration.
18585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18586         REPLACE_CEIL.
18587         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18588         * modules/ceil-ieee-tests: New file.
18589         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18590         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18591         * doc/posix-functions/ceil.texi: Mention the new module.
18592
18593 2010-12-21  Bruno Haible  <bruno@clisp.org>
18594
18595         New module 'floor-ieee'.
18596         * modules/floor-ieee: New file.
18597         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18598         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18599         ISO C 99 with IEC 60559.
18600         * m4/floor-ieee.m4: New file.
18601         * modules/floor (Files): Add lib/floor.c.
18602         (Depends-on): Add 'float'.
18603         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18604         * lib/math.in.h (floor): New declaration.
18605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18606         REPLACE_FLOOR.
18607         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18608         * modules/floor-ieee-tests: New file.
18609         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18610         * tests/test-math-c++.cc: Check the signature of 'floor'.
18611         * doc/posix-functions/floor.texi: Mention the new module.
18612
18613 2010-12-21  Bruno Haible  <bruno@clisp.org>
18614
18615         New module 'roundf-ieee'.
18616         * modules/roundf-ieee: New file.
18617         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18618         test whether roundf works according to ISO C 99 with IEC 60559.
18619         * m4/roundf-ieee.m4: New file.
18620         * modules/roundf-ieee-tests: New file.
18621         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18622         * tests/test-roundf1.c (main): Remove signbit tests.
18623         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18624         * doc/posix-functions/roundf.texi: Mention the new module.
18625
18626 2010-12-21  Bruno Haible  <bruno@clisp.org>
18627
18628         New module 'truncf-ieee'.
18629         * modules/truncf-ieee: New file.
18630         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18631         test whether truncf works according to ISO C 99 with IEC 60559.
18632         * m4/truncf-ieee.m4: New file.
18633         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18635         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18636         * modules/truncf-ieee-tests: New file.
18637         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18638         * tests/test-truncf1.c (main): Remove signbit tests.
18639         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18640         * doc/posix-functions/truncf.texi: Mention the new module.
18641
18642 2010-12-21  Bruno Haible  <bruno@clisp.org>
18643
18644         New module 'ceilf-ieee'.
18645         * modules/ceilf-ieee: New file.
18646         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18647         test whether ceilf works according to ISO C 99 with IEC 60559.
18648         * m4/ceilf-ieee.m4: New file.
18649         * modules/ceilf-ieee-tests: New file.
18650         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18651         * tests/test-ceilf1.c (main): Remove signbit tests.
18652         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18653         * doc/posix-functions/ceilf.texi: Mention the new module.
18654
18655 2010-12-21  Bruno Haible  <bruno@clisp.org>
18656
18657         New module 'floorf-ieee'.
18658         * modules/floorf-ieee: New file.
18659         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18660         test whether floorf works according to ISO C 99 with IEC 60559.
18661         * m4/floorf-ieee.m4: New file.
18662         * modules/floorf-ieee-tests: New file.
18663         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18664         * tests/test-floorf1.c (main): Remove signbit tests.
18665         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18666         * doc/posix-functions/floorf.texi: Mention the new module.
18667
18668 2010-12-21  Bruno Haible  <bruno@clisp.org>
18669
18670         Support for minus zero in autoconf macros.
18671         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18672         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18673         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18674         * tests/minus-zero.h: Update comments.
18675
18676 2010-12-21  Bruno Haible  <bruno@clisp.org>
18677
18678         Tests for module 'ceil'.
18679         * modules/ceil-tests: New file.
18680         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18681         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18682
18683 2010-12-21  Bruno Haible  <bruno@clisp.org>
18684
18685         Tests for module 'floor'.
18686         * modules/floor-tests: New file.
18687         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18688         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18689
18690 2010-12-21  Bruno Haible  <bruno@clisp.org>
18691
18692         math: Fix indentation.
18693         * lib/math.in.h (floorf): Fix indentation.
18694
18695 2010-12-21  Bruno Haible  <bruno@clisp.org>
18696
18697         Fix cross-compilation guesses on Solaris.
18698         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18699         not match "solaris2.10".
18700         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18701         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18702         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18703
18704 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18705
18706         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18707         This fixes a problem observed with the latest coreutils snapshot
18708         that caused a test to fail on Solaris 8.  src/csplit.c's call
18709         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18710         earlier, instead of returning the number of bytes that would have
18711         been generated; this causes csplit to incorrectly report memory
18712         exhaustion.
18713         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18714         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18715         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18716         comments to match.
18717         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18718         Fix typo in matching older versions of Solaris: "solaris2.10"
18719         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18720         only for guessing while cross-compiling.
18721         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18722
18723 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18724
18725         ftoastr: fix comment again
18726         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18728         Also, simplify example a bit by using flags = 0.
18729
18730 2010-12-20  Bruno Haible  <bruno@clisp.org>
18731
18732         round*, trunc*: Update documentation regarding glibc.
18733         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18734         * doc/posix-functions/round.texi: Likewise.
18735         * doc/posix-functions/roundl.texi: Likewise.
18736         * doc/posix-functions/truncf.texi: Likewise.
18737         * doc/posix-functions/trunc.texi: Likewise.
18738         * doc/posix-functions/truncl.texi: Likewise.
18739
18740 2010-12-20  Bruno Haible  <bruno@clisp.org>
18741
18742         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18743         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18744         * doc/posix-functions/round.texi: Likewise.
18745         * doc/posix-functions/roundl.texi: Likewise.
18746
18747 2010-12-20  Bruno Haible  <bruno@clisp.org>
18748
18749         ttyname_r: Add missing declaration on HP-UX 11.
18750         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18751         HAVE_TTYNAME_R.
18752         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18753         declared. Set HAVE_TTYNAME_R always.
18754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18755         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18756         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18757         HAVE_TTYNAME_R.
18758         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18759
18760 2010-12-20  Bruno Haible  <bruno@clisp.org>
18761
18762         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18763         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18764         * doc/posix-functions/getlogin_r.texi: Likewise.
18765         * tests/test-getlogin.c: Include <errno.h>.
18766         (main): Avoid test failure on HP-UX 11.11.
18767         * tests/test-getlogin_r.c (main): Likewise.
18768
18769 2010-12-20  Bruno Haible  <bruno@clisp.org>
18770
18771         getlogin_r: Add missing declaration on HP-UX 11.
18772         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18773         declared also when it exists as a function.
18774         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18775
18776 2010-12-20  Bruno Haible  <bruno@clisp.org>
18777
18778         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18779         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18780         through wcrtomb.
18781
18782 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18783
18784         ftoastr: fix comment
18785         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18787
18788 2010-12-19  Bruno Haible  <bruno@clisp.org>
18789
18790         isnan: Ensure it is a macro.
18791         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18792         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18793         Solaris.
18794
18795 2010-12-19  Bruno Haible  <bruno@clisp.org>
18796
18797         ldexpl test: Fix link error on OSF/1 5.1.
18798         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18799
18800 2010-12-19  Bruno Haible  <bruno@clisp.org>
18801
18802         wctype: Make it work in C++ mode on OSF/1 5.1.
18803         * lib/wctype.in.h (iswblank): Declare but not define here.
18804         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18805         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18806         * modules/wctype (Files): Add lib/iswblank.c.
18807
18808 2010-12-19  Bruno Haible  <bruno@clisp.org>
18809
18810         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18811         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18812         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18813
18814 2010-12-19  Bruno Haible  <bruno@clisp.org>
18815
18816         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18818         _POSIX_PII_SOCKET.
18819         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18820         * doc/posix-functions/recvfrom.texi: Likewise.
18821         * doc/posix-functions/send.texi: Likewise.
18822         * doc/posix-functions/sendto.texi: Likewise.
18823
18824 2010-12-19  Bruno Haible  <bruno@clisp.org>
18825
18826         tcgetsid: Add missing declaration on OSF/1 5.1.
18827         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18828         HAVE_TCGETSID.
18829         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18830         Don't set HAVE_TCGETSID.
18831         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18832         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18833         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18834         HAVE_TCGETSID.
18835         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18836
18837 2010-12-19  Bruno Haible  <bruno@clisp.org>
18838
18839         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18840         * lib/stdio.in.h: During the include_next statement, let recursive
18841         includes of this file include only the system header file.
18842
18843 2010-12-19  Bruno Haible  <bruno@clisp.org>
18844
18845         iconv_open: Fix regression from 2010-12-04.
18846         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18847         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18848
18849 2010-12-19  Bruno Haible  <bruno@clisp.org>
18850
18851         stdbool test: Avoid a gcc warning.
18852         * tests/test-stdbool.c (main): Fail if e1 is false.
18853         Reported by Jim Meyering.
18854
18855 2010-12-19  Jim Meyering  <meyering@redhat.com>
18856
18857         setenv: restore to working order
18858         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18859         mistakenly removed.
18860         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18861         HAVE_SETENV.
18862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18863         HAVE_SETENV.
18864
18865 2010-12-19  Bruno Haible  <bruno@clisp.org>
18866
18867         Document some different function declarations on OSF/1 5.1.
18868         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18869         * doc/posix-functions/inet_ntop.texi: Likewise.
18870         * doc/posix-functions/gethostname.texi: Likewise.
18871         * lib/unistd.in.h (gethostname): Update comment.
18872
18873 2010-12-19  Bruno Haible  <bruno@clisp.org>
18874
18875         doc: Mention vasprintf-posix module.
18876         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18877         the 'vasprintf-posix' module.
18878         * doc/glibc-functions/vasprintf.texi: Likewise.
18879
18880 2010-12-19  Bruno Haible  <bruno@clisp.org>
18881
18882         unsetenv: Add missing declaration on OSF/1 5.1.
18883         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18884         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18885         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18887         not HAVE_UNSETENV.
18888         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18889         HAVE_UNSETENV.
18890         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18891
18892 2010-12-19  Bruno Haible  <bruno@clisp.org>
18893
18894         setenv: Add missing declaration on OSF/1 5.1.
18895         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18896         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18897         declared. Don't set HAVE_SETENV.
18898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18899         not HAVE_SETENV.
18900         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18901         HAVE_SETENV.
18902         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18903
18904 2010-12-19  Bruno Haible  <bruno@clisp.org>
18905
18906         nl_langinfo tests: Avoid gcc warning.
18907         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18908
18909 2010-12-19  Bruno Haible  <bruno@clisp.org>
18910
18911         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18912         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18913         _GL_CXXALIAS_SYS.
18914
18915 2010-12-19  Bruno Haible  <bruno@clisp.org>
18916
18917         stdbool: Relax test.
18918         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18919         address to 'bool' work in static initializer, for compilers other than
18920         GCC.
18921
18922 2010-12-19  Bruno Haible  <bruno@clisp.org>
18923
18924         ftello: Add missing declaration on OSF/1 5.1.
18925         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18926         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18928         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18929         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18930
18931 2010-12-19  Bruno Haible  <bruno@clisp.org>
18932
18933         fseeko: Add missing declaration on OSF/1 5.1.
18934         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18937         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18938         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18939
18940 2010-12-19  Bruno Haible  <bruno@clisp.org>
18941
18942         fchdir: Add missing declaration on OSF/1 5.1.
18943         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18946         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18947         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18948
18949 2010-12-19  Bruno Haible  <bruno@clisp.org>
18950
18951         relocatable-prog-wrapper: Separate from relocatable-prog.
18952         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18953         uninstall-relocwrapper rule here.
18954         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18955         Reported by Ian Beckwith <ianb@erislabs.net>.
18956
18957 2010-12-19  Bruno Haible  <bruno@clisp.org>
18958
18959         unistr/u8-mbsnlen: Add missing dependency.
18960         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18961         Reported by Ian Beckwith <ianb@erislabs.net>.
18962
18963 2010-12-19  Bruno Haible  <bruno@clisp.org>
18964
18965         iconv: Make it possible again to use this module without 'iconv-h'.
18966         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18967         if it is not defined.
18968         Reported by Ian Beckwith <ianb@erislabs.net>.
18969
18970 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18971
18972         acl: port to Solaris 8 when copying from tmpfs to ufs
18973         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18974         error number.  Problem observed on Solaris 8 with latest
18975         coreutils, with "mv A B", where A is on a tmpfs file system and B
18976         is on a ufs file system.  This caused coreutils' mv/part-symlink
18977         test to fail.
18978
18979         tests: set fail=0 at start
18980         * tests/init.sh (setup_): Move fail=0 initialization here ...
18981         (mktempd_): ... from here, so that tests can rely on fail being
18982         set to 0 initially.  This fixes a problem in coreutils; see:
18983         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18984
18985 2010-12-18  Bruno Haible  <bruno@clisp.org>
18986
18987         memmem-simple: Stylistic changes.
18988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18989         Fix preprocessor directive indentation.
18990
18991 2010-12-15  Pádraig Brady <P@draigBrady.com>
18992
18993         memmem, memmem-simple: reorganize and expand empty needle check
18994         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18995         functional checks to memmem-simple so that one has a fully functional
18996         memmem by using just this module.
18997         Restrict the performance only check to the memmem module.
18998         Also expand the empty needle check to ensure the correct
18999         pointer is returned, not just a non NULL pointer.
19000         * doc/glibc-functions/memmem.texi: Rearrange the portability
19001         documentation to correlate with the rearranged checks.
19002         Clarify exactly how the memmem and memmem-simple modules
19003         relate to each other.
19004
19005 2010-12-15  Pádraig Brady <P@draigBrady.com>
19006             Bruno Haible  <bruno@clisp.org>
19007
19008         Improve cross-compilation guesses for uClibc.
19009         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19010         that uClibc does not have the glibc bug.
19011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19012         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19013
19014 2010-12-14  Eric Blake  <eblake@redhat.com>
19015
19016         configmake: provide fallbacks for oldest supported autotools
19017         * m4/configmake.m4: New file.
19018         * modules/configmake (Files): Ship it.
19019         (configure.ac): Use it to guarantee fallbacks.
19020
19021 2010-12-13  Pádraig Brady <P@draigBrady.com>
19022
19023         read-file: Improve handling of large files
19024         * lib/read-file.c (fread_file): Minimize realloc()s
19025         for regular files, and better manage sizes around SIZE_MAX.
19026
19027 2010-12-13  Eric Blake  <eblake@redhat.com>
19028
19029         cloexec, fcntl: relax license
19030         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19031         consent from all contributors.
19032         * modules/fcntl (License): Likewise.
19033
19034 2010-12-10  Bruno Haible  <bruno@clisp.org>
19035
19036         Tests for module 'pipe-posix'.
19037         * modules/pipe-posix-tests: New file.
19038         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19039
19040 2010-12-10  Bruno Haible  <bruno@clisp.org>
19041
19042         pipe-posix: Make it work in C++ mode.
19043         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19044         (pipe): Use common idiom, not a macro definition.
19045         * lib/pipe.c: New file.
19046         * m4/pipe.m4: New file.
19047         * modules/pipe-posix (Description): Enhance.
19048         (Files): Add lib/pipe.c, m4/pipe.m4.
19049         (configure.ac): Invoke gl_FUNC_PIPE.
19050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19051         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19052         * tests/test-unistd-c++.cc: Check the signature of pipe.
19053
19054 2010-12-10  Bruno Haible  <bruno@clisp.org>
19055
19056         Rename module 'pipe' to 'spawn-pipe'.
19057         * modules/spawn-pipe: New file, renamed from modules/pipe.
19058         (Files, configure.ac, Makefile.am): Update.
19059         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19060         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19061         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19062         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19063         "spawn-pipe.h" instead of "pipe.h".
19064         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19065         to gl_SPAWN_PIPE.
19066         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19067         (Files, Makefile.am): Update.
19068         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19069         Update.
19070         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19071         Include "spawn-pipe.h" instead of "pipe.h".
19072         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19073         * lib/javacomp.c: Likewise.
19074         * lib/javaversion.c: Likewise.
19075         * lib/pipe-filter-gi.c: Likewise.
19076         * lib/pipe-filter-ii.c: Likewise.
19077         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19078         * modules/javacomp (Depends-on): Likewise.
19079         * modules/javaversion (Depends-on): Likewise.
19080         * modules/pipe-filter-gi (Depends-on): Likewise.
19081         * modules/pipe-filter-ii (Depends-on): Likewise.
19082         * MODULES.html.sh (Executing programs): Update.
19083         * NEWS: Mention the change.
19084
19085 2010-12-10  Eric Blake  <eblake@redhat.com>
19086
19087         pipe-posix: new module
19088         * modules/pipe-posix: New file.
19089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19090         (gl_UNISTD_H): Check for declaration.
19091         * modules/unistd (Makefile.am): Substitute it.
19092         * lib/unistd.in.h (pipe): Provide it for mingw.
19093         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19094         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19095
19096 2010-12-07  Bruno Haible  <bruno@clisp.org>
19097
19098         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19099         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19100         u8_strcmp_gnu.
19101         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19102
19103 2010-12-06  Bruno Haible  <bruno@clisp.org>
19104
19105         Update internal documentation.
19106         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19107
19108 2010-12-04  Bruno Haible  <bruno@clisp.org>
19109
19110         Put more information about failed tests into the test return codes.
19111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19112         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19113         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19115         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19117         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19118         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19119         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19122         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19123         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19124         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19126         returns a bit mask.
19127         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19128         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19129         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19130         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19131         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19137         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19141         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19142         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19143         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19144         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19146         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19148         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19150         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19151         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19152         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19153         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19154         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19155         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19156         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19157         gl_PRINTF_PRECISION): Likewise.
19158         * m4/regex.m4 (gl_REGEX): Likewise.
19159         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19160         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19162         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19166         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19167         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19168         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19169         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19170         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19171         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19172         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19173         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19174         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19175         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19176         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19178         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19179         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19180         enumerated value.
19181         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19182
19183 2010-12-04  Bruno Haible  <bruno@clisp.org>
19184
19185         Update for Solaris 11 2010-11.
19186         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19187         Express, released in November 2010.
19188
19189 2010-12-04  Bruno Haible  <bruno@clisp.org>
19190
19191         nproc: Relax license.
19192         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19193         and Paul Eggert.
19194         Requested by Ludovic Courtès <ludo@gnu.org>.
19195
19196 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         utimecmp: fine-grained src to nearby coarse-grained dest
19199
19200         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19201         and the source is on a file system with higher-resolution time
19202         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19203         not work, and the time stamps are close together, the algorithm to
19204         determine the exact resolution from the read-back mtime was buggy:
19205         it had a "!=" where it should have had an "==".  This bug has been
19206         in the code ever since it was introduced to gnulib.
19207         Problem reported by Dan Jacobson in
19208         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19209
19210 2010-11-30  Bruno Haible  <bruno@clisp.org>
19211
19212         strerror_r-posix: Fix autoconf test.
19213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19214
19215 2010-11-28  Bruno Haible  <bruno@clisp.org>
19216             Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         Tests for module 'getdomainname'.
19219         * modules/getdomainname-tests: New file.
19220         * tests/test-getdomainname.c: New file, based on
19221         tests/test-gethostname.c.
19222
19223 2010-11-28  Bruno Haible  <bruno@clisp.org>
19224             Paul Eggert  <eggert@cs.ucla.edu>
19225
19226         getdomainname: Use the system function when possible.
19227         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19228         (getdomainname): Replace if needed. Provide the declaration if it is
19229         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19230         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19231         (getdomainname): When the system has getdomainname, call the system
19232         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19233         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19234         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19235         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19236         the function if its second argument is of type 'int' or if it is found
19237         in libnsl.
19238         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19239         <sys/systeminfo.h> and sysinfo().
19240         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19242         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19243         HAVE_GETDOMAINNAME.
19244         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19245         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19246         * doc/glibc-functions/getdomainname.texi: Document the problems with
19247         the getdomainname declaration.
19248
19249 2010-11-28  Bruno Haible  <bruno@clisp.org>
19250
19251         sys_socket: Ensure ss_family field on AIX.
19252         * lib/sys_socket.in.h (ss_family): New macro definition.
19253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19254         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19255         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19257         * modules/sys_socket (Makefile.am): Substitute
19258         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19259         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19260
19261 2010-11-27  Bruno Haible  <bruno@clisp.org>
19262
19263         readline: Improve configure output.
19264         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19265         "checking for readline..." result understandable.
19266
19267 2010-11-27  Bruno Haible  <bruno@clisp.org>
19268
19269         *printf-posix: Detect a bug on Solaris 10/x86.
19270         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19271         for floating-point output.
19272         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19273         directive.
19274         * tests/test-snprintf-posix.h (test_function): Likewise.
19275         * tests/test-sprintf-posix.h (test_function): Likewise.
19276         * tests/test-vasprintf-posix.c (test_function): Likewise.
19277         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19278         * doc/posix-functions/printf.texi: Likewise.
19279         * doc/posix-functions/snprintf.texi: Likewise.
19280         * doc/posix-functions/sprintf.texi: Likewise.
19281         * doc/posix-functions/vfprintf.texi: Likewise.
19282         * doc/posix-functions/vprintf.texi: Likewise.
19283         * doc/posix-functions/vsnprintf.texi: Likewise.
19284         * doc/posix-functions/vsprintf.texi: Likewise.
19285         * doc/glibc-functions/obstack_printf.texi: Likewise.
19286         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19287
19288 2010-11-27  Bruno Haible  <bruno@clisp.org>
19289
19290         Fix link error when module libunistring-optional is in use.
19291         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19292         * modules/striconveha-tests (Makefile.am): Likewise.
19293
19294 2010-11-27  Bruno Haible  <bruno@clisp.org>
19295
19296         regex: Mention link dependencies.
19297         * modules/regex (Link): New section.
19298         * modules/rpmatch (Link): Likewise.
19299         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19300
19301 2010-11-27  Bruno Haible  <bruno@clisp.org>
19302
19303         ftoastr: Fix compilation error on Solaris.
19304         * lib/ftoastr.c: Include <config.h>.
19305
19306 2010-11-27  Bruno Haible  <bruno@clisp.org>
19307
19308         getloadavg: Update documentation.
19309         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19310
19311 2010-11-27  Bruno Haible  <bruno@clisp.org>
19312
19313         sys_socket: Fix test whether the functions are declared.
19314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19315         not <sys/select.h>.
19316
19317 2010-11-27  Bruno Haible  <bruno@clisp.org>
19318
19319         getpass: Make sure to get system declaration on some platforms.
19320         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19321         gl_USE_SYSTEM_EXTENSIONS.
19322         * modules/getpass (Depends-on): Add extensions.
19323
19324 2010-11-26  Bruno Haible  <bruno@clisp.org>
19325
19326         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19327         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19328         'iconv' module is present.
19329         (ICONV_CONST): New macro.
19330         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19331         ICONV_CONST.
19332         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19333         set ICONV_CONST.
19334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19335         here.
19336         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19337         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19338         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19339         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19340         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19341         present.
19342
19343 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19344
19345         ftoastr: comment fix
19346         * lib/ftoastr.c: "little" -> "little or no" in comment
19347
19348 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19349
19350         stdint: port to GCC 4.3 + OSX + Octave
19351         On this platform, stdint.h is buggy and defines int64_t to long
19352         long int.  The replacement defined it to long int, causing
19353         problems with C++ style name mangling.  Instead, trust the system
19354         definition if INT64_MAX is defined, and likewise for the unsigned
19355         variant.   Problem reported by Jarno Rajahalme in
19356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19357         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19358         and don't mess with int64_t and INT64_MAX in this case.
19359         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19360
19361 2010-11-24  Bruno Haible  <bruno@clisp.org>
19362
19363         doc: Corrections regarding MacOS X 10.4 and 10.5.
19364         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19365         MacOS X.
19366         Reported by Simon Josefsson.
19367
19368 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19369
19370         Uninstall ".bin" files installed by relocwrapper.
19371         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19372         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19373         unless it is already there.
19374
19375 2010-11-21  Bruno Haible  <bruno@clisp.org>
19376
19377         Update for NetBSD 5.0.
19378         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19379         NetBSD; the test fails on NetBSD 5.0.
19380         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19381         about NetBSD.
19382
19383 2010-11-21  Bruno Haible  <bruno@clisp.org>
19384
19385         Update for HP-UX 11.23 and HP-UX 11.31.
19386         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19387         HP-UX.
19388
19389 2010-11-21  Bruno Haible  <bruno@clisp.org>
19390
19391         Update for MacOS X 10.5.
19392         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19393         MacOS X; the test fails on MacOS X 10.5.8.
19394         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19395         about MacOS X.
19396
19397 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19398
19399         bootstrap: add bootstrap_sync option.
19400         See discussion at
19401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19403         * build-aux/bootstrap: Accept --bootstrap-sync to update
19404         bootstrap if it is not identical to the local gnulib's
19405         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19406         enable this by default.  Accept --no-bootstrap-sync to disable
19407         it.
19408
19409 2010-11-20  Bruno Haible  <bruno@clisp.org>
19410
19411         Ensure that <features.h> is included before __GLIBC__ is tested.
19412         * lib/printf-parse.h: Include <features.h>.
19413         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19414         Reported by Mike Frysinger <vapier@gentoo.org>.
19415
19416         Ensure that <features.h> is included before __GLIBC__ is tested.
19417         * lib/wchar.in.h: Include <features.h>.
19418         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19419         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19420         Reported by Mike Frysinger <vapier@gentoo.org>.
19421
19422         Ensure that <features.h> is included before __GLIBC__ is tested.
19423         * lib/arpa_inet.in.h: Include <features.h>.
19424         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19425         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19426         Reported by Mike Frysinger <vapier@gentoo.org>.
19427
19428         Ensure that <features.h> is included before __GLIBC__ is tested.
19429         * build-aux/link-warning.h: Include <features.h>.
19430         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19431         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19432         Reported by Mike Frysinger <vapier@gentoo.org>.
19433
19434         Ensure that <features.h> is included before __GLIBC__ is tested.
19435         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19436         Reported by Mike Frysinger <vapier@gentoo.org>.
19437
19438 2010-11-20  Bruno Haible  <bruno@clisp.org>
19439
19440         memmem: Fix autoconf test.
19441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19442
19443 2010-11-20  Bruno Haible  <bruno@clisp.org>
19444
19445         Port to uClibc.
19446         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19447         * lib/fcntl.in.h: Likewise.
19448         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19449         * lib/mbrtowc.c (mbrtowc): Likewise.
19450         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19451         * lib/strerror_r.c: Likewise.
19452         * lib/unistr/u8-strnlen.c: Likewise.
19453         * lib/vasnprintf.c (decimal_point_char): Likewise.
19454         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19455         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19457         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19458         * tests/test-sigaction.c (handler, main): Likewise.
19459         * lib/freading.h: Treat uClibc like a non-glibc platform.
19460         * lib/freading.c: Likewise.
19461         * lib/gettext.h: Likewise.
19462         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19463         Likewise.
19464         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19465         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19466         * lib/propername.c (proper_name_utf8): Likewise.
19467         * lib/spawn.in.h: Likewise.
19468         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19469         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19470         mem_cd_iconveh_internal): Likewise.
19471         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19472         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19473         strstr, strcasestr): Likewise.
19474         * lib/unicodeio.c (unicode_to_mb): Likewise.
19475         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19476         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19477         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19478         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19479         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19480         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19481         * lib/unistr/u8-stpncpy.c: Likewise.
19482         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19483         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19484         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19485         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19486         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19491         Likewise.
19492         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19493         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19498         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19499         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19500         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19501         * tests/test-striconveha.c (main): Likewise.
19502         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19503         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19504         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19505         * doc/posix-functions/getline.texi: Likewise.
19506         Reported by Mike Frysinger <vapier@gentoo.org>.
19507
19508 2010-11-20  Bruno Haible  <bruno@clisp.org>
19509
19510         nproc: Fix condition.
19511         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19512         HAVE_PTHREAD_AFFINITY_NP.
19513
19514 2010-11-20  Bruno Haible  <bruno@clisp.org>
19515
19516         Fix a comment.
19517         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19518
19519 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         ftoastr: don't assume snprintf
19522         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19523         Implement a subset of snprintf here, by using sprintf safely.
19524         * modules/ftoastr (Depends-on): Remove snprintf.
19525
19526 2010-11-19  Jim Meyering  <meyering@redhat.com>
19527
19528         test-rename.h: fix compilation failure
19529         * tests/test-rename.h (test_rename): Add omitted "}".
19530
19531 2010-11-17  Jim Meyering  <meyering@redhat.com>
19532
19533         maint.mk: add a URL discussing the no-@acronym policy
19534         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19535
19536 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19537
19538         ftoastr: depend on snprintf, improve comments
19539         * lib/ftoastr.c: Also mention Loitsch's draft.
19540         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19541         needed in the current implementation, but it might simplify
19542         speeding up the code later.
19543         * modules/ftoastr: Depend on snprintf; this improves portability.
19544         Suggested by Bruno Haible in the same email.
19545
19546         ftoastr: port to hosts lacking strtof and strtold
19547         Problem reported by Bruno Haible in
19548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19549         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19550         environment and strtold (and presumably strtof) are not available.
19551         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19552         (configure.ac): Require gl_C99_STRTOLD.
19553
19554 2010-11-18  Bruno Haible  <bruno@clisp.org>
19555
19556         c-strtold: Avoid link error on AIX 7.
19557         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19558         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19559         (gl_C_STRTOLD): Test whether strtold_l exists.
19560         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19561
19562 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19563
19564         intprops: new macro INT_BITS_STRLEN_BOUND
19565         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19566         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19567         not exposed.  Also, it uses a slightly tighter bound than before;
19568         though this makes no practical difference, we might as well be as
19569         tight as we easily can.
19570
19571         ftoastr: new module, for lossless conversion of floats to short strings
19572         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19573         * modules/ftoastr: New files.
19574
19575 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19576
19577         bootstrap: port to Solaris sed
19578         * build-aux/bootstrap (get_version): Port to Solaris sed.
19579         See Ralf Wildenhues's note in
19580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19581
19582 2010-11-14  Jim Meyering  <meyering@redhat.com>
19583
19584         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19585         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19586         and move definition closer to sole use.
19587
19588 2010-11-13  Jim Meyering  <meyering@redhat.com>
19589
19590         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19591         Now we require at least autoconf-2.59, which means the work-around
19592         is no longer needed.
19593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19594         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19596         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19597         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19598
19599 2010-11-13  Bruno Haible  <bruno@clisp.org>
19600
19601         rename, renameat: Avoid test failures at NFS mounted locations.
19602         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19603         functions.
19604         (test_rename): Use assert_nonexistent.
19605         * tests/test-rename.c: Include <dirent.h>.
19606         * tests/test-renameat.c: Likewise.
19607         Reported by Gary V. Vaughan <gary@gnu.org>.
19608
19609         rename, renameat: Document Linux bug with NFS
19610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19611         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19612         * doc/posix-functions/renameat.texi: Likewise.
19613         Suggested by Eric Blake.
19614
19615 2010-11-13  Bruno Haible  <bruno@clisp.org>
19616
19617         rename test: Add comments.
19618         * tests/test-rename.h (test_rename): Add structure and comments.
19619
19620 2010-11-13  Eric Blake  <eblake@redhat.com>
19621
19622         maintainer-makefile: cover a few more files
19623         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19624         scripts generated within C files, for libvirt.
19625
19626 2010-11-13  Bruno Haible  <bruno@clisp.org>
19627
19628         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19629         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19630         character, return the number of bytes that belong together, not always
19631         1.
19632         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19633         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19634         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19635         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19636         number of bytes of an invalid character.
19637         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19638         (main): Invoke it.
19639         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19640         results.
19641         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19642         malformed byte sequences.
19643         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19644         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19645         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19646         Reported by Ben Pfaff and Paolo Bonzini.
19647
19648 2010-11-13  Bruno Haible  <bruno@clisp.org>
19649
19650         openat: Work around glibc bug with fchownat() and empty file names.
19651         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19652         (gl_FUNC_FCHOWNAT): Invoke it.
19653         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19654         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19655         Reported by Gary V. Vaughan <gary@gnu.org>.
19656
19657 2010-11-13  Bruno Haible  <bruno@clisp.org>
19658
19659         openat: Ensure autoconf macro ordering.
19660         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19661         gl_USE_SYSTEM_EXTENSIONS.
19662         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19663
19664 2010-11-13  Bruno Haible  <bruno@clisp.org>
19665
19666         Update comments.
19667         * lib/unistr/u8-check.c: Update file name in comments.
19668         * lib/unistr/u8-mblen.c: Likewise.
19669         * lib/unistr/u8-prev.c: Likewise.
19670         * lib/unistr/u8-strmblen.c: Likewise.
19671         * lib/unistr/u8-strmbtouc.c: Likewise.
19672
19673 2010-11-13  Jim Meyering  <meyering@redhat.com>
19674
19675         tests: avoid test failure on Solaris 10 due to lack of PATH export
19676         * tests/test-update-copyright.sh: Don't forget to export PATH.
19677
19678         init.sh: ensure that IFS is defined, just in case...
19679         * tests/init.sh (setup_): Ensure that IFS is defined,
19680         so that saving and restoring it works as expected.  This
19681         appears to be useful at least for an old version of dash
19682         from a long time ago (RH 6).  See here for details:
19683         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19684
19685         maint.mk: tighten "test a == b" check
19686         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19687         test to files that contain something like #!/bin/sh.
19688         Without this, coreutils would get two false positives in
19689         the comments of C source files.
19690
19691 2010-11-12  Eric Blake  <eblake@redhat.com>
19692
19693         bootstrap: fix typo in previous attempt
19694         * build-aux/bootstrap (buildreq): Correct the grouping.
19695         Reported by Paul Eggert.
19696
19697         maintainer-makefile: prohibit test x == x
19698         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19699         Based on a report by Matthias Bolte.
19700
19701         bootstrap: allow FreeBSD gzip
19702         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19703         which has no '.' and goes to stderr.
19704         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19705         Reported by Matthias Bolte.
19706
19707         maintainer-makefile: check for i18n setup
19708         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19709         will likely work.
19710
19711 2010-11-12  Bruno Haible  <bruno@clisp.org>
19712
19713         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19714         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19715         * lib/nanosleep.c (nanosleep): Likewise.
19716
19717 2010-11-11  Bruno Haible  <bruno@clisp.org>
19718
19719         fcntl-h: Fix for use of C++ on glibc systems.
19720         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19721         also on glibc systems in C++ mode.
19722         Reported by Gary V. Vaughan <gary@gnu.org>.
19723
19724 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19725
19726         mknod: avoid false failure with dash
19727         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19728
19729 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19730
19731         unlink: Fix "is it should" typo in diagnostic.
19732         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19734
19735 2010-11-11  Bruno Haible  <bruno@clisp.org>
19736
19737         Tests for module 'strerror_r-posix'.
19738         * modules/strerror_r-posix-tests: New file.
19739         * tests/test-strerror_r.c: New file.
19740         * tests/test-string-c++.cc: Check the signature of strerror_r.
19741
19742         New module 'strerror_r-posix'.
19743         * lib/string.in.h (strerror_r): New declaration.
19744         * lib/strerror_r.c: New file.
19745         * m4/strerror_r.m4: New file.
19746         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19747         of strerror_r.
19748         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19749         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19750         * modules/strerror_r-posix: New file.
19751         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19752         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19753         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19754         portability problems.
19755
19756 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19757
19758         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19759         line is also considered for output. Quoted function name in shell
19760         command, so temporary files for functions like MyClass::operator()
19761         are removed correctly without errors.
19762
19763 2010-11-09  Bruno Haible  <bruno@clisp.org>
19764
19765         * doc/posix-functions/strerror.texi: List more failing platforms.
19766
19767         * doc/posix-functions/strerror.texi: Add a comment.
19768
19769 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19770
19771         fdopendir: fix bug on MacOS X when low on file descriptors
19772
19773         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19774         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19775         All callers changed.
19776         (fdopendir): Invoke save_cwd at the top level, not after using
19777         multiple dup() calls to use up file descriptors.  Then retry
19778         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19779         less than the maximum number of open file descriptors, because
19780         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19781         on Mac OS X 10.6.4 for tar 1.24
19782         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19783         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19784         and for tar 1.25
19785         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19786
19787 2010-11-07  Bruno Haible  <bruno@clisp.org>
19788
19789         vasnprintf: Support I flag on glibc systems.
19790         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19791         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19792         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19793         snprintf function.
19794         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19795         glibc systems.
19796         * tests/test-vasnprintf-posix3.c: New file.
19797         * modules/vasnprintf-posix-tests (Files): Add it.
19798         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19799
19800 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19801
19802         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19803         * MODULES.html.sh: For compiler warnings, use name
19804         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19805
19806 2010-11-05  Eric Blake  <eblake@redhat.com>
19807
19808         ceil, floor: avoid spurious failure with icc
19809         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19810         [denormals-as-zero] when optimizing without -mieee-fp option.
19811         * tests/test-floorf2.c (floorf_reference): Likewise.
19812         * tests/test-ceilf1.c (dummy): New function.
19813         (main): Use it to outsmart icc's optimization.
19814         * tests/test-floorf1.c (dummy, main): Likewise.
19815
19816         tests: require working signbit
19817         * modules/ceilf-tests (Depends-on): Add signbit.
19818         * modules/ceill-tests (Depends-on): Likewise.
19819         * modules/floorf-tests (Depends-on): Likewise.
19820         * modules/floorl-tests (Depends-on): Likewise.
19821         * modules/round-tests (Depends-on): Likewise.
19822         * modules/roundf-tests (Depends-on): Likewise.
19823         * modules/roundl-tests (Depends-on): Likewise.
19824         * modules/trunc-tests (Depends-on): Likewise.
19825         * modules/truncf-tests (Depends-on): Likewise.
19826         * modules/truncl-tests (Depends-on): Likewise.
19827
19828         strtod: work around icc bug
19829         * lib/strtod.c (minus_zero): Define to working value.
19830         (strtod): Use it to avoid icc bug.
19831
19832         copysign: enhance tests
19833         * modules/copysign-tests (Files): Add minus-zero.h.
19834         * tests/test-copysign.c (main): Also test zeros.
19835
19836 2010-11-04  Eric Blake  <eblake@redhat.com>
19837
19838         ceil, floor, round, trunc: enhance tests of -0
19839         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19840         * tests/test-ceill.c (main): Likewise.
19841         * tests/test-floorf1.c (main): Likewise.
19842         * tests/test-floorl.c (main): Likewise.
19843         * tests/test-round1.c (main): Likewise.
19844         * tests/test-roundf1.c (main): Likewise.
19845         * tests/test-roundl.c (main): Likewise.
19846         * tests/test-trunc1.c (main): Likewise.
19847         * tests/test-truncf1.c (main): Likewise.
19848         * tests/test-truncl.c (main): Likewise.
19849
19850 2010-11-04  Eric Blake  <eblake@redhat.com>
19851
19852         frexp, tests: work around ICC bug with -zero
19853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19854         works with more compilers.
19855         * tests/minus-zero.h: New file.
19856         * modules/ceilf-tests (Files): Include it.
19857         * modules/ceill-tests (Files): Likewise.
19858         * modules/floorf-tests (Files): Likewise.
19859         * modules/floorl-tests (Files): Likewise.
19860         * modules/frexp-nolibm-tests (Files): Likewise.
19861         * modules/frexp-tests (Files): Likewise.
19862         * modules/frexpl-nolibm-tests (Files): Likewise.
19863         * modules/frexpl-tests (Files): Likewise.
19864         * modules/isnan-tests (Files): Likewise.
19865         * modules/isnand-nolibm-tests (Files): Likewise.
19866         * modules/isnand-tests (Files): Likewise.
19867         * modules/isnanf-nolibm-tests (Files): Likewise.
19868         * modules/isnanf-tests (Files): Likewise.
19869         * modules/isnanl-nolibm-tests (Files): Likewise.
19870         * modules/isnanl-tests (Files): Likewise.
19871         * modules/round-tests (Files): Likewise.
19872         * modules/roundf-tests (Files): Likewise.
19873         * modules/roundl-tests (Files): Likewise.
19874         * modules/ldexpl-tests (Files): Likewise.
19875         * modules/signbit-tests (Files): Likewise.
19876         * modules/snprintf-posix-tests (Files): Likewise.
19877         * modules/sprintf-posix-tests (Files): Likewise.
19878         * modules/strtod-tests (Files): Likewise.
19879         * modules/trunc-tests (Files): Likewise.
19880         * modules/truncf-tests (Files): Likewise.
19881         * modules/truncl-tests (Files): Likewise.
19882         * modules/vsnprintf-posix-tests (Files): Likewise.
19883         * modules/vsprintf-posix-tests (Files): Likewise.
19884         * modules/vasnprintf-posix-tests (Files): Likewise.
19885         * modules/vasprintf-posix-tests (Files): Likewise.
19886         * tests/test-ceilf1.c (main): Use it.
19887         * tests/test-ceill.c (main): Likewise.
19888         * tests/test-floorf1.c (main): Likewise.
19889         * tests/test-floorl.c (main): Likewise.
19890         * tests/test-frexp.c (main): Likewise.
19891         * tests/test-frexpl.c (main): Likewise.
19892         * tests/test-isnan.c (main): Likewise.
19893         * tests/test-isnand.h (main): Likewise.
19894         * tests/test-isnanf.h (main): Likewise.
19895         * tests/test-isnanl.h (main): Likewise.
19896         * tests/test-ldexpl.c (main): Likewise.
19897         * tests/test-round.c (main): Likewise.
19898         * tests/test-roundf.c (main): Likewise.
19899         * tests/test-roundl.c (main): Likewise.
19900         * tests/test-signbit.c (test_signbitf, test_signbitd)
19901         (test_signbitl): Likewise.
19902         * tests/test-snprintf-posix.h (test_function): Likewise.
19903         * tests/test-sprintf-posix.h (test_function): Likewise.
19904         * tests/test-strtod.c (main): Likewise.
19905         * tests/test-trunc1.c (main): Likewise.
19906         * tests/test-truncf1.c (main): Likewise.
19907         * tests/test-truncl.c (main): Likewise.
19908
19909         isnanl: work around icc bug
19910         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19911
19912 2010-11-03  Eric Blake  <eblake@redhat.com>
19913
19914         tests: fix compiler warnings
19915         * tests/test-getopt.h (test_getopt): Fix condition.
19916         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19917         * tests/test-pipe2.c (main): Likewise.
19918         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19919
19920         utimens: fix broken m4 test
19921         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19922
19923 2010-10-28  Bruno Haible  <bruno@clisp.org>
19924
19925         posix_spawn*, getdtablesize: Relax license.
19926         * modules/posix_spawn (License): Change to LGPLv2+.
19927         * modules/posix_spawnp (License): Likewise.
19928         * modules/posix_spawn-internal (License): Likewise.
19929         * modules/posix_spawnattr_init (License): Likewise.
19930         * modules/posix_spawnattr_getflags (License): Likewise.
19931         * modules/posix_spawnattr_setflags (License): Likewise.
19932         * modules/posix_spawnattr_getpgroup (License): Likewise.
19933         * modules/posix_spawnattr_setpgroup (License): Likewise.
19934         * modules/posix_spawnattr_getschedparam (License): Likewise.
19935         * modules/posix_spawnattr_setschedparam (License): Likewise.
19936         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19937         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19938         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19939         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19940         * modules/posix_spawnattr_getsigmask (License): Likewise.
19941         * modules/posix_spawnattr_setsigmask (License): Likewise.
19942         * modules/posix_spawnattr_destroy (License): Likewise.
19943         * modules/posix_spawn_file_actions_init (License): Likewise.
19944         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19945         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19946         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19947         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19948         * modules/getdtablesize (License): Likewise.
19949         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19950
19951 2010-10-26  Bruno Haible  <bruno@clisp.org>
19952
19953         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19954         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19955         Cygwin and mingw.
19956         Suggested by Eric Blake.
19957
19958 2010-10-26  Bruno Haible  <bruno@clisp.org>
19959
19960         stdio: Work around compilation error due to renameat() on Solaris 10.
19961         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19962         * lib/renameat.c: Don't include <unistd.h> here.
19963         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19964         Reported by Paul Eggert and Eric Blake.
19965
19966 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19967
19968         renameat: port to Solaris 10, which declares renameat in unistd.h
19969
19970         * lib/renameat.c: Include unistd.h before stdio.h, because
19971         Solaris 10 declares renameat in unistd.h.  Problem encountered
19972         when building GNU tar 1.24 on Solaris 10.
19973
19974 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19975
19976         fdopendir: fix C89 compilation
19977         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19978         compilers.
19979
19980 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19981
19982         inttostr: simplify by removing unnecessary redundancy
19983         * lib/anytostr.c: Don't include verify.h.
19984         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19985         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19986         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19987         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19988         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19989         Likewise.
19990         * modules/inttostr (Depends-on): Remove 'verify'.
19991
19992 2010-10-23  Bruno Haible  <bruno@clisp.org>
19993
19994         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19995         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19996         Reported by Eric Blake.
19997
19998 2010-10-23  Bruno Haible  <bruno@clisp.org>
19999
20000         Tests: Fix LOCALE_JA on MirBSD 10.
20001         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20002         to an UTF-8 locale.
20003         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20005         Reported by Eric Blake.
20006
20007 2010-10-21  Bruno Haible  <bruno@clisp.org>
20008
20009         nl_langinfo test: Avoid test failure on NetBSD 5.
20010         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20011         Reported by Eric Blake.
20012
20013 2010-10-21  Eric Blake  <eblake@redhat.com>
20014
20015         c-stack: work around libsigsegv 2.8 bug
20016         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20017         overflow on at least PowerPC64.
20018
20019 2010-10-17  Bruno Haible  <bruno@clisp.org>
20020
20021         userspec: Drop redundant file.
20022         * modules/userspec (Files): Remove lib/inttostr.h.
20023
20024 2010-10-17  Bruno Haible  <bruno@clisp.org>
20025
20026         nl_langinfo tests: Silence some warnings.
20027         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20028         Reported by Jim Meyering.
20029
20030 2010-10-17  Bruno Haible  <bruno@clisp.org>
20031
20032         Make use of GCC's attribute __alloc_size__.
20033         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20034         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20035         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20036         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20037         __alloc_size__.
20038         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20039         Suggested by Jim Meyering.
20040
20041 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20042
20043         bootstrap: anchor .gitignore entries.
20044         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20045         with...
20046         (insert_vc_ignore): ... this new function, which prepends `/' to
20047         all .gitignore entries before passing them to
20048         insert_sorted_if_absent.
20049
20050 2010-10-16  Bruno Haible  <bruno@clisp.org>
20051
20052         nextafter: Fix configure check.
20053         * modules/nextafter (configure.ac): Correct expected prototype.
20054
20055 2010-10-16  Bruno Haible  <bruno@clisp.org>
20056
20057         termios: Update documentation.
20058         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20059
20060 2010-10-16  Bruno Haible  <bruno@clisp.org>
20061
20062         tests: Make them compile with TinyCC.
20063         * tests/test-strstr.c (main): Remove parentheses around array
20064         initializer.
20065
20066 2010-10-15  Eric Blake  <eblake@redhat.com>
20067
20068         ignore-value: make header idempotent
20069         * lib/ignore-value.h: Add double-inclusion guards.
20070         Reported by Stefan Berger.
20071
20072 2010-10-15  Jim Meyering  <meyering@redhat.com>
20073
20074         GNUmakefile: handle "stable" target, not "major"
20075         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20076         lists in maint.mk and announce-gen.  Without this, "make stable"
20077         would fail to ensure that $(VERSION) is up to date.
20078
20079 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20080
20081         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20082         & co.
20083
20084 2010-10-14  Bruno Haible  <bruno@clisp.org>
20085
20086         vasnprintf: Don't set errno to 0.
20087         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20088         block that sets it to 0.
20089         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20090
20091 2010-10-14  Bruno Haible  <bruno@clisp.org>
20092
20093         socketlib: Fix.
20094         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20095         gl_PREREQ_SYS_H_WINSOCK2.
20096         Reported by Ian Beckwith <ianb@erislabs.net>.
20097
20098 2010-10-13  Jim Meyering  <meyering@redhat.com>
20099
20100         test-select-stdin.c: avoid warn_unused_result warnings
20101         * tests/test-select-stdin.c: Include "macros.h".
20102         ASSERT that read and fflush succeed.
20103
20104 2010-10-13  Jim Meyering  <meyering@redhat.com>
20105
20106         git-version-gen: do require git-VC'd files in cwd
20107         * build-aux/git-version-gen: Reject a git version string
20108         if there are no commits associated with the current directory.
20109         This avoids an unlikely false-positive (unrelated dir whose parent
20110         repository also contains a tag matching v*), as pointed out
20111         by Giuseppe Scrivano in
20112         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20113
20114 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         argv-iter: omit nonconforming declaration
20117         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20118         enum arg_iter_err declaration, which doesn't conform to C99.
20119         Solaris 10 cc warns about this.
20120
20121 2010-10-13  Eric Blake  <eblake@redhat.com>
20122
20123         termios: fix compilation on mingw
20124         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20125         (gl_TERMIOS_H): Adjust it on mingw.
20126         * modules/termios (Makefile.am): Substitute new key.
20127         * lib/termios.in.h (includes): Make include_next conditional.
20128         * doc/posix-headers/termios.texi (termios.h): Update
20129         documentation.
20130         Reported by Daniel P. Berrange.
20131
20132 2010-10-13  Jim Meyering  <meyering@redhat.com>
20133
20134         git-version-gen: don't require that .git/ be in the current dir
20135         * build-aux/git-version-gen: Adjust this script so that it works
20136         when run from any working directory beneath the top-level .git/-
20137         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20139
20140         test-select: avoid warn_unused_result warnings
20141         * tests/test-select.c: Include "macros.h".
20142         ASSERT that each call to read, write, and pipe succeeds.
20143         While not technically required, also check each "close".
20144         * modules/select-tests (Files): Add tests/macros.h.
20145
20146         test-symlinkat: remove declaration of unused local
20147         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20148
20149         test-inttostr: avoid shadowing warnings
20150         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20151         and use malloc rather than the stack for the same reason as
20152         mentioned in the comment justifying the other allocation.
20153
20154 2010-10-11  Bruno Haible  <bruno@clisp.org>
20155
20156         stdlib: Allow multiple gnulib generated replacements to coexist.
20157         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20158         Reported by Sam Steingold <sds@gnu.org>.
20159
20160 2010-10-11  Jim Meyering  <meyering@redhat.com>
20161
20162         fix a documentation typo
20163         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20164
20165 2010-10-11  Eric Blake  <eblake@redhat.com>
20166
20167         futimens: work around Solaris 11 bug
20168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20169         * tests/test-futimens.h (test_futimens): Enhance, rather than
20170         weaken test.
20171         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20172
20173 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20174
20175         Indentation.
20176         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20177         higher-level operators more to the left.
20178
20179 2010-10-11  Jim Meyering  <meyering@redhat.com>
20180
20181         test-futimens: avoid unwarranted test failure on Solaris 5.11
20182         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20183         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20184         because it tries to dereference the NULL name argument.
20185
20186 2010-10-11  Bruno Haible  <bruno@clisp.org>
20187
20188         Indentation.
20189         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20190         indentation.
20191
20192 2010-10-11  Jim Meyering  <meyering@redhat.com>
20193
20194         spawn.in.h: make indentation consistent with parentheses
20195         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20196         Make indentation consistent with parentheses.
20197
20198 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20199
20200         Fix mismatched parens in previous commit
20201         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20202         parens.
20203
20204 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20205
20206         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20207
20208         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20209         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20210         * lib/malloca.c: Include "verify.h".
20211         (verify1): Remove, replacing with a verify call.
20212         * lib/relocwrapper.c (verify1): Likewise.
20213         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20214         Likewise.
20215         * modules/malloca (Depends-on): Add 'verify'.
20216         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20217         * modules/vasnprintf (Depends-on): Add 'verify'.
20218         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20219         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20223         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20225
20226         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20227
20228         Formerly the style was sometimes 2*X - 1, because the C standard
20229         was wrongly thought to disallow ?: in integral constant expressions.
20230         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20231         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20232         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20233         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20234         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20235         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20236         verify that time_t cannot be floating.
20237
20238 2010-10-08  Eric Blake  <eblake@redhat.com>
20239
20240         time: enforce recent POSIX ruling that time_t is integral
20241         * lib/time.in.h (__time_t_must_be_integral): Detect any
20242         problematic systems, allowing the rest of gnulib to assume POSIX.
20243
20244 2010-10-08  Jim Meyering  <meyering@redhat.com>
20245
20246         fdopendir: fix a bug on systems lacking openat and /proc support
20247         OpenBSD 4.7 is one such system.  The most noticeable effect was
20248         failure of any application making nontrivial use of fts: rm, du,
20249         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20250           ./rm: traversal failed: `a': Bad file descriptor
20251         Debugging that, you see that even though FD 6 was closed just
20252         prior to the opendir call in fd_clone_opendir, its resulting
20253         dir->dd_fd was 8, rather than the expected value of 6:
20254
20255         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20256         93                close (fd);
20257         (gdb) n
20258         94                dir = fd_clone_opendir (dupfd);
20259         (gdb) n
20260         95                saved_errno = errno;
20261         (gdb) p dir->dd_fd
20262         $11 = 8
20263
20264         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20265         The problem is that on OpenBSD, fd_clone_opendir has to resort
20266         to using the old-style save/restore CWD mechanism, due to its
20267         lack of openat/proc support, and *that* would steal the FD (6)
20268         that opendir was supposed to use.
20269
20270         The fix is to squirrel away the desired FD so that save_cwd uses a
20271         different one, and then free the dest FD right before calling opendir.
20272         That guarantees opendir will use the required file descriptor.
20273
20274         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20275
20276 2010-10-08  Bruno Haible  <bruno@clisp.org>
20277
20278         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20279         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20280
20281 2010-10-08  Bruno Haible  <bruno@clisp.org>
20282
20283         nanosleep: Make replacement POSIX compliant.
20284         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20285         is out of range.
20286         Reported by Jim Meyering.
20287
20288 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20289
20290         bootstrap: add hook for altering gnulib.mk, for Bison
20291         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20292         the Bison bootstrapping process can rewrite file names and variables
20293         in this file before later parts of 'bootstrap' use the file.
20294         Bison wants to include lib/gnulib.mk from the top-level makefile,
20295         so it needs the file names in this file to be relative to the top
20296         level, not relative to lib; plus it needs variable names to be
20297         rewritten.
20298         (slurp): Use the new function.
20299
20300         bootstrap: reformat for readability
20301         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20302
20303 2010-10-08  Eric Blake  <eblake@redhat.com>
20304
20305         docs: update cygwin progress
20306         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20307         1.7.7.
20308         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20309         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20310         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20311         * doc/posix-functions/carg.texi (carg): Likewise.
20312         * doc/posix-functions/cargf.texi (cargf): Likewise.
20313         * doc/posix-functions/casin.texi (casin): Likewise.
20314         * doc/posix-functions/casinf.texi (casinf): Likewise.
20315         * doc/posix-functions/casinh.texi (casinh): Likewise.
20316         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20317         * doc/posix-functions/catan.texi (catan): Likewise.
20318         * doc/posix-functions/catanf.texi (catanf): Likewise.
20319         * doc/posix-functions/catanh.texi (catanh): Likewise.
20320         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20321         * doc/posix-functions/ccos.texi (ccos): Likewise.
20322         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20323         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20324         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20325         * doc/posix-functions/cexp.texi (cexp): Likewise.
20326         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20327         * doc/posix-functions/cimag.texi (cimag): Likewise.
20328         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20329         * doc/posix-functions/clog.texi (clog): Likewise.
20330         * doc/posix-functions/clogf.texi (clogf): Likewise.
20331         * doc/posix-functions/conj.texi (conj): Likewise.
20332         * doc/posix-functions/conjf.texi (conjf): Likewise.
20333         * doc/posix-functions/cpow.texi (cpow): Likewise.
20334         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20335         * doc/posix-functions/cproj.texi (cproj): Likewise.
20336         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20337         * doc/posix-functions/creal.texi (creal): Likewise.
20338         * doc/posix-functions/crealf.texi (crealf): Likewise.
20339         * doc/posix-functions/csin.texi (csin): Likewise.
20340         * doc/posix-functions/csinf.texi (csinf): Likewise.
20341         * doc/posix-functions/csinh.texi (csinh): Likewise.
20342         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20343         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20344         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20345         * doc/posix-functions/ctan.texi (ctan): Likewise.
20346         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20347         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20348         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20349         * doc/posix-headers/complex.texi (complex.h): Likewise.
20350
20351 2010-10-07  Jim Meyering  <meyering@redhat.com>
20352
20353         parse-datetime: avoid compilation failure on OpenBSD 4.7
20354         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20355         This works around a compilation failure on OpenBSD 4.7:
20356         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20357
20358 2010-10-07  Eric Blake  <eblake@redhat.com>
20359
20360         docs: update cygwin progress
20361         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20362         1.7.6.
20363         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20364         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20365         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20366         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20367         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20368         Likewise.
20369         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20370         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20371         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20372         Likewise.
20373         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20374         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20375         Likewise.
20376         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20377         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20378         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20379         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20380         Likewise.
20381         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20382         Likewise.
20383         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20384
20385         docs: update parse-datetime history
20386         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20387         documentation of this function's history and alternatives.
20388
20389         cygwin: use more robust version check
20390         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20391         exclude an eventual cygwin 1.9.1.
20392         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20394         (gl_FUNC_STRCASESTR): Likewise.
20395         Reported by Bruno Haible.
20396
20397 2010-10-06  Bruno Haible  <bruno@clisp.org>
20398
20399         string, sys_select: Avoid #including large headers unless necessary.
20400         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20401         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20402         OSF/1, BeOS, Haiku.
20403         Reported by Jim Meyering.
20404
20405 2010-10-05  Eric Blake  <eblake@redhat.com>
20406
20407         memmem, strstr, strcasestr: fix bug with long periodic needle
20408         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20409         periodic needle having false positive.
20410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20411         and cygwin 1.7.7.
20412         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20414         (gl_FUNC_STRCASESTR): Likewise.
20415         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20416         * tests/test-memmem.c (main): Expose the bug.
20417         * tests/test-strcasestr.c (main): Likewise.
20418         * tests/test-strstr.c (main): Likewise.
20419         * tests/test-c-strcasestr.c (main): Likewise.
20420         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20421         * doc/posix-functions/strstr.texi (strstr): Likewise.
20422         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20423         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20424
20425 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20426
20427         parse-datetime: do some more renaming
20428         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20429         parse_datetime, not get_date.  Mention the renaming.
20430         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20431         in comments.
20432         * m4/bison.m4: Likewise.
20433
20434 2010-10-05  Eric Blake  <eblake@redhat.com>
20435
20436         parse-datetime: better name than get_date
20437         * NEWS: Reword the deprecation notice.
20438         * modules/get_date: Rename to modules/parse-datetime.
20439         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20440         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20441         * lib/get_date.y: Rename to lib/parse-datetime.y.
20442         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20443         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20444         * doc/getdate.texi: Provide fallback wrapper.
20445         * lib/getdate.h: Move guts, and wrap...
20446         * lib/parse-datetime.h: ...new file.
20447         * lib/parse-datetime.y (get_date): Rename...
20448         (parse_datetime): ...to this.
20449         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20450         (gl_PARSE_DATETIME): ...to this.
20451         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20452         documentation.
20453         * modules/getdate (Files): Provide fallback docs and header.
20454         (Notice, Depends-on): Update references.
20455         * tests/test-parse-datetime.c: Likewise.
20456         * DEPENDENCIES: Likewise.
20457         * MODULES.html.sh (Date and time <time.h>): Likewise.
20458         * doc/parse-datetime.texi (Date input formats)
20459         (Authors of parse_datetime): Likewise.
20460         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20461         (Include): Likewise.
20462         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20463         * gnulib-tool: Likewise.
20464         * m4/bison.m4 (gl_BISON): Likewise.
20465         Suggested by Bruno Haible.
20466
20467 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20468
20469         more ports to Solaris tr, which needs [] around ranges
20470         * gnulib-tool: Solaris tr needs [] around ranges.
20471         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20472         * tests/test-pipe-filter-gi1.c (main): Likewise.
20473         * tests/test-pipe-filter-ii1.c (main): Likewise.
20474
20475 2010-10-05  Eric Blake  <eblake@redhat.com>
20476
20477         bootstrap: fix Solaris regression
20478         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20479         around ranges.
20480         Reported by Pádraig Brady.
20481
20482         bootstrap: work with pkg-config
20483         * build-aux/bootstrap (check_versions): Also transliterate - in
20484         prerequisite name.
20485         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20486         prerequisites that were already found, to avoid confusion.
20487         Reported by Justin Clift.
20488
20489         faccessat: remove unused wrappers
20490         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20491         presence of these wrappers dragged in -lgen on Solaris.
20492         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20493
20494 2010-10-05  Jim Meyering  <meyering@redhat.com>
20495
20496         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20497         * Makefile (sc_pragma_columns): New syntax-check rule.
20498
20499 2010-10-04  Bruno Haible  <bruno@clisp.org>
20500
20501         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20502         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20503         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20504         Reported by Bruce Korb and Eric Blake.
20505
20506 2010-10-04  Bruno Haible  <bruno@clisp.org>
20507
20508         threadlib: Make option --with-libpth-prefix work.
20509         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20510         use $LIBPTH, not just -lpth.
20511
20512 2010-10-04  Bruno Haible  <bruno@clisp.org>
20513
20514         Avoid line length limitation from HP NonStop system header files.
20515         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20516         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20517         * lib/ctype.in.h: Likewise.
20518         * lib/dirent.in.h: Likewise.
20519         * lib/errno.in.h: Likewise.
20520         * lib/fcntl.in.h: Likewise.
20521         * lib/float.in.h: Likewise.
20522         * lib/getopt.in.h: Likewise.
20523         * lib/iconv.in.h: Likewise.
20524         * lib/inttypes.in.h: Likewise.
20525         * lib/langinfo.in.h: Likewise.
20526         * lib/locale.in.h: Likewise.
20527         * lib/math.in.h: Likewise.
20528         * lib/netdb.in.h: Likewise.
20529         * lib/netinet_in.in.h: Likewise.
20530         * lib/poll.in.h: Likewise.
20531         * lib/pthread.in.h: Likewise.
20532         * lib/pty.in.h: Likewise.
20533         * lib/sched.in.h: Likewise.
20534         * lib/se-selinux.in.h: Likewise.
20535         * lib/search.in.h: Likewise.
20536         * lib/signal.in.h: Likewise.
20537         * lib/spawn.in.h: Likewise.
20538         * lib/stdarg.in.h: Likewise.
20539         * lib/stddef.in.h: Likewise.
20540         * lib/stdint.in.h: Likewise.
20541         * lib/stdio.in.h: Likewise.
20542         * lib/stdlib.in.h: Likewise.
20543         * lib/string.in.h: Likewise.
20544         * lib/strings.in.h: Likewise.
20545         * lib/sys_file.in.h: Likewise.
20546         * lib/sys_ioctl.in.h: Likewise.
20547         * lib/sys_select.in.h: Likewise.
20548         * lib/sys_socket.in.h: Likewise.
20549         * lib/sys_stat.in.h: Likewise.
20550         * lib/sys_time.in.h: Likewise.
20551         * lib/sys_times.in.h: Likewise.
20552         * lib/sys_utsname.in.h: Likewise.
20553         * lib/sys_wait.in.h: Likewise.
20554         * lib/sysexits.in.h: Likewise.
20555         * lib/termios.in.h: Likewise.
20556         * lib/time.in.h: Likewise.
20557         * lib/unistd.in.h: Likewise.
20558         * lib/wchar.in.h: Likewise.
20559         * lib/wctype.in.h: Likewise.
20560         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20561         * modules/ctype (Makefile.am): Likewise.
20562         * modules/dirent (Makefile.am): Likewise.
20563         * modules/errno (Makefile.am): Likewise.
20564         * modules/fcntl-h (Makefile.am): Likewise.
20565         * modules/float (Makefile.am): Likewise.
20566         * modules/getopt-posix (Makefile.am): Likewise.
20567         * modules/iconv-h (Makefile.am): Likewise.
20568         * modules/inttypes (Makefile.am): Likewise.
20569         * modules/langinfo (Makefile.am): Likewise.
20570         * modules/locale (Makefile.am): Likewise.
20571         * modules/math (Makefile.am): Likewise.
20572         * modules/netdb (Makefile.am): Likewise.
20573         * modules/netinet_in (Makefile.am): Likewise.
20574         * modules/poll-h (Makefile.am): Likewise.
20575         * modules/pthread (Makefile.am): Likewise.
20576         * modules/pty (Makefile.am): Likewise.
20577         * modules/sched (Makefile.am): Likewise.
20578         * modules/search (Makefile.am): Likewise.
20579         * modules/selinux-h (Makefile.am): Likewise.
20580         * modules/signal (Makefile.am): Likewise.
20581         * modules/spawn (Makefile.am): Likewise.
20582         * modules/stdarg (Makefile.am): Likewise.
20583         * modules/stddef (Makefile.am): Likewise.
20584         * modules/stdint (Makefile.am): Likewise.
20585         * modules/stdio (Makefile.am): Likewise.
20586         * modules/stdlib (Makefile.am): Likewise.
20587         * modules/string (Makefile.am): Likewise.
20588         * modules/strings (Makefile.am): Likewise.
20589         * modules/sys_file (Makefile.am): Likewise.
20590         * modules/sys_ioctl (Makefile.am): Likewise.
20591         * modules/sys_select (Makefile.am): Likewise.
20592         * modules/sys_socket (Makefile.am): Likewise.
20593         * modules/sys_stat (Makefile.am): Likewise.
20594         * modules/sys_time (Makefile.am): Likewise.
20595         * modules/sys_times (Makefile.am): Likewise.
20596         * modules/sys_utsname (Makefile.am): Likewise.
20597         * modules/sys_wait (Makefile.am): Likewise.
20598         * modules/sysexits (Makefile.am): Likewise.
20599         * modules/termios (Makefile.am): Likewise.
20600         * modules/time (Makefile.am): Likewise.
20601         * modules/unistd (Makefile.am): Likewise.
20602         * modules/wchar (Makefile.am): Likewise.
20603         * modules/wctype (Makefile.am): Likewise.
20604
20605 2010-10-04  Bruno Haible  <bruno@clisp.org>
20606
20607         read-file tests: Avoid a test failure on NonStop Kernel.
20608         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20609         a regular file.
20610         Reported by Joachim Schmitz <schmitz@hp.com>.
20611
20612 2010-10-03  Bruno Haible  <bruno@clisp.org>
20613
20614         gnulib-tool: Fixes for --create-testdir with --libtool.
20615         * gnulib-tool (func_get_automake_snippet): Don't augment
20616         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20617         an executable.
20618         (func_create_testdir): Handle module 'alloca' like func_import.
20619         Reported by Bruce Korb <bruce.korb@gmail.com>.
20620
20621 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20622
20623         Avoid some lines longer than 80 characters.
20624         * lib/stdint.in.h: Break long comment lines.
20625         * lib/math.in.h: Likewise.
20626         (_GL_NUM_UINT_WORDS): New macro, for readability.
20627         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20628         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20629         * lib/stdlib.in.h: Likewise.
20630         * lib/spawn.in.h: Likewise.
20631         * lib/sys_socket.in.h: Update an URL.
20632         * lib/sys_stat.in.h: Break long line.
20633
20634 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20635
20636         Improve pmccabe2html.
20637         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20638         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20639         when the sources change. Remove the line in the HTML about "Used
20640         ranges" (which implied that there might be other unused ranges),
20641         rename "Resume" to "Summary" (easier to understand for more users).
20642         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20643         styles, and some unnecessary blank lines.
20644
20645 2010-10-03  Bruno Haible  <bruno@clisp.org>
20646             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20647
20648         acl: Add support for ACLs on NonStop Kernel.
20649         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20650         Check whether the function aclsort() exists.
20651         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20652         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20653         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20654         (acl_nontrivial [HAVE_ACLSORT]: New function.
20655         (file_has_acl): Implement for NonStop Kernel.
20656         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20657         (qset_acl): Implement for NonStop Kernel.
20658         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20659         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20660         (main): Implement for NonStop Kernel.
20661         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20662         Kernel. Handle this flavor.
20663         * tests/test-set-mode-acl.sh: Likewise.
20664         * tests/test-copy-acl.sh: Likewise.
20665         * tests/test-copy-file.sh: Likewise.
20666
20667 2010-10-03  Bruno Haible  <bruno@clisp.org>
20668
20669         Info about ACLs on NonStop Kernel.
20670         * doc/acl-resources.txt: Add info about NonStop Kernel.
20671         References by Joachim Schmitz <schmitz@hp.com>.
20672
20673 2010-10-02  Bruno Haible  <bruno@clisp.org>
20674
20675         Define missing EDQUOT on NonStop Kernel.
20676         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20677         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20679         missing.
20680         * doc/posix-headers/errno.texi: Mention the NSK bug.
20681         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20682         Reported by Joachim Schmitz <schmitz@hp.com>.
20683
20684 2010-10-02  Bruno Haible  <bruno@clisp.org>
20685
20686         Update doc for POSIX:2008.
20687         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20688         Update URL of POSIX specification.
20689
20690 2010-10-02  Bruno Haible  <bruno@clisp.org>
20691
20692         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20693         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20694         from gnulib, not from Automake.
20695
20696 2010-10-02  Bruno Haible  <bruno@clisp.org>
20697
20698         New module 'system-posix'.
20699         * modules/system-posix: New file.
20700         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20701         module is present.
20702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20703         GNULIB_SYSTEM_POSIX.
20704         * modules/stdlib (Depends-on): Remove sys_wait.
20705         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20706         * doc/posix-functions/system.texi: Mention the new module.
20707         * doc/posix-headers/stdlib.texi: Likewise.
20708         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20709         define test_sys_wait_macros to a no-op.
20710         Reported by Sam Steingold <sds@gnu.org>.
20711
20712 2010-09-30  Bruno Haible  <bruno@clisp.org>
20713
20714         More renaming from 'getdate' to 'get_date'.
20715         * doc/get_date.texi: Renamed from doc/getdate.texi.
20716         * modules/get_date (Files): Update.
20717         * MODULES.html.sh (Date and time <time.h>): Update.
20718         * DEPENDENCIES: Update.
20719         * gnulib-tool: Update comment.
20720         * m4/bison.m4 (gl_BISON): Likewise.
20721         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20722
20723 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20724
20725         bootstrap: support ACLOCAL_FLAGS during aclocal
20726         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20727         can add additional -I dir for third-party .m4 files.
20728
20729 2010-09-30  Eric Blake  <eblake@redhat.com>
20730
20731         bootstrap: use glibtoolize on MacOS
20732         * build-aux/bootstrap (check_versions): Convert libtool into
20733         libtoolize.
20734         (tool search): Move libtool check earlier, and look for
20735         glibtoolize for MacOS.
20736         (gnulib_tool_options): Auto-add --libtool when appropriate.
20737         Reported by Justin Clift.
20738
20739         poll: fix typo that broke test on MacOS
20740         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20741         Reported by Justin Clift.
20742
20743         getdate: rename to get_date
20744         Note: getdate.h is not renamed, to minimize client impact.
20745         * modules/getdate: Mark obsolete.  Move old contents...
20746         * modules/get_date: ...to new module name.
20747         * modules/getdate-tests: Move...
20748         * modules/get_date-tests: ...here.
20749         * m4/getdate.m4: Move...
20750         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20751         * lib/getdate.y: Move...
20752         * lib/get_date.y: ...here.
20753         * tests/test-getdate.c: Move...
20754         * tests/test-get_date.c: ...here.
20755         * doc/posix-functions/getdate.texi (getdate): Update name.
20756         * NEWS: Mention the change.
20757
20758 2010-09-29  Bruno Haible  <bruno@clisp.org>
20759
20760         Separate the module 'waitpid' from the module 'sys_wait'.
20761         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20762         present.
20763         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20764         gl_MODULE_INDICATOR_FOR_TESTS.
20765         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20766         * modules/sys_wait (Depends-on): Remove waitpid.
20767         (Makefile.am): Substitute GNULIB_WAITPID.
20768         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20769         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20770         signature only if the 'waitpid' module is present.
20771         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20772         * NEWS: Mention the change.
20773         * modules/grantpt (Depends-on): Add waitpid.
20774         * modules/wait-process (Depends-on): Likewise.
20775
20776 2010-09-29  Bruno Haible  <bruno@clisp.org>
20777
20778         More tests for module 'sys_wait'.
20779         * modules/sys_wait-c++-tests: New file.
20780         * tests/test-sys_wait-c++.cc: New file.
20781         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20782         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20783
20784 2010-09-29  Bruno Haible  <bruno@clisp.org>
20785
20786         New module 'waitpid'.
20787         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20788         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20789         Don't include <process.h>.
20790         (waitpid): Declare only, using modern idiom.
20791         * m4/waitpid.m4: New file.
20792         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20793         * modules/waitpid: New file.
20794         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20795         (Makefile.am): Update.
20796         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20797
20798 2010-09-28  Bruno Haible  <bruno@clisp.org>
20799
20800         poll: Assume ANSI C.
20801         * lib/poll.c (poll): Use an ANSI C declaration.
20802
20803 2010-09-28  Bruno Haible  <bruno@clisp.org>
20804
20805         poll-h: Create poll.h on all platforms.
20806         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20807         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20808         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20809         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20810         (gl_REPLACE_POLL_H): Don't set POLL_H.
20811         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20812         * modules/poll-h (Depends-on): Add include_next.
20813         (Makefile.am): Create poll.h unconditionally. Substitute also
20814         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20815
20816 2010-09-28  Bruno Haible  <bruno@clisp.org>
20817
20818         Tests for module 'poll-h'.
20819         * modules/poll-h-c++-tests: New file.
20820         * tests/test-poll-h-c++.cc: New file.
20821
20822         Tests for module 'poll-h'.
20823         * modules/poll-h-tests: New file.
20824         * tests/test-poll-h.c: New file.
20825
20826 2010-09-28  Bruno Haible  <bruno@clisp.org>
20827
20828         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20829         * modules/poll-h (Depends-on): Add 'extensions'.
20830
20831 2010-09-28  Bruno Haible  <bruno@clisp.org>
20832
20833         New module 'poll-h'.
20834         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20835         (poll): Use modern idiom.
20836         * modules/poll-h: New file.
20837         * modules/poll (Files): Remove lib/poll.in.h.
20838         (Depends-on): Add poll-h.
20839         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20840         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20841         * m4/poll_h.m4: New file.
20842         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20843         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20844         and invoke gl_REPLACE_POLL_H.
20845         * lib/poll.c: Use common idiom.
20846         * tests/test-poll.c: Likewise.
20847         * doc/posix-headers/poll.texi: Mention the poll-h module.
20848         Suggested by Eric Blake.
20849
20850 2010-09-26  Bruno Haible  <bruno@clisp.org>
20851
20852         sys_wait: Implement WSTOPSIG.
20853         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20854         Reported by Simon Josefsson.
20855
20856 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20857
20858         stdlib, sys_wait: Avoid compilation error on mingw.
20859         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20860
20861 2010-09-26  Bruno Haible  <bruno@clisp.org>
20862
20863         stdlib tests: Avoid code duplication.
20864         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20865         * modules/sys_wait-tests (Files): Likewise.
20866         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20867         * tests/test-stdlib.c: Include test-sys_wait.h.
20868         (main): Invoke test_sys_wait_macros.
20869         * tests/test-sys_wait.c: Include test-sys_wait.h.
20870         (main): Invoke test_sys_wait_macros.
20871
20872 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20873
20874         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20875         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20876         sure Windows sockets are working before calling getaddrinfo.
20877         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20878         * doc/gnulib.texi (Windows sockets): Fix typo.
20879
20880 2010-09-25  Bruno Haible  <bruno@clisp.org>
20881
20882         Tests for module 'regex-quote'.
20883         * modules/regex-quote-tests: New file.
20884         * tests/test-regex-quote.c: New file.
20885
20886         New module 'regex-quote'.
20887         * lib/regex-quote.h: New file.
20888         * lib/regex-quote.c: New file.
20889         * modules/regex-quote: New file.
20890         Suggested by Reuben Thomas <rrt@sc3d.org>.
20891
20892 2010-09-24  Bruno Haible  <bruno@clisp.org>
20893
20894         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20895         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20896
20897 2010-09-23  Bruno Haible  <bruno@clisp.org>
20898
20899         setenv: Relax license.
20900         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20901         Blake.
20902         Requested by Eric Blake.
20903
20904 2010-09-22  Bruno Haible  <bruno@clisp.org>
20905
20906         termios: Relax license.
20907         * modules/termios (License): Change to LGPLv2+.
20908         Requested by Eric Blake.
20909
20910 2010-09-22  Bruno Haible  <bruno@clisp.org>
20911
20912         threadlib: Allow the package to change the default to 'no'.
20913         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20914         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20915         Reported by Paul Eggert.
20916
20917 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20918             Bruno Haible  <bruno@clisp.org>
20919
20920         Fix endless loop in mbmemcasecoll.
20921         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20922         byte.
20923         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20924
20925 2010-09-22  Bruno Haible  <bruno@clisp.org>
20926
20927         Tests for module 'memcoll'.
20928         * modules/memcoll-tests: New file.
20929         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20930
20931         memcoll, xmemcoll: Clarify size vs. length.
20932         * modules/memcoll.c (memcoll0): Clarify specification.
20933         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20934         passed to collate_error.
20935
20936 2010-09-22  Bruno Haible  <bruno@clisp.org>
20937
20938         Tests for module 'memcasecmp'.
20939         * modules/memcasecmp-tests: New file.
20940         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20941
20942 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20943
20944         * lib/pthread.in.h: Add split double-inclusion guard, and include
20945         system <pthread.h> if there is one.  Use @@-style as in other
20946         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20947         pthread.h doesn't.
20948         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20949         (pthread_mutexattr_settype, pthread_mutex_trylock):
20950         New static inline functions, if there's no system <pthread.h>.
20951         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20952         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20953         Approximate with mutexes if the system lacks spinlocks, as in
20954         MacOS.
20955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20956         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20957         @@-style.  Check for spinlocks separately.
20958         (gl_PTHREAD_DEFAULTS): New macro.
20959         * modules/pthread: Redo to use a more typical style for in.h files.
20960
20961 2010-09-21  Eric Blake  <eblake@redhat.com>
20962
20963         net_if: enhance tests
20964         * tests/test-net_if.c (main): Move signature checks earlier.
20965         Print failures to stderr.
20966         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20967         Document the bug that we do not yet fix.
20968
20969 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20970
20971         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20972         about gnulib, not GSS.
20973
20974 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20975
20976         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20977         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20978         for Emacs.
20979         * build-aux/pmccabe2html: Make Makefile.am example code more
20980         cut-and-paste friendly.
20981
20982 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20983
20984         * tests/test-net_if.c: New file.
20985         * modules/net_if-tests: New file.
20986
20987 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         pthread: add pthread_spin_destroy
20990         * lib/pthread.in.h (pthread_spin_destroy): New function.
20991
20992 2010-09-19  Bruno Haible  <bruno@clisp.org>
20993
20994         gnulib-tool: Fix --help output.
20995         * gnulib-tool (func_usage): Fix help message.
20996         Reported by Reuben Thomas <rrt@sc3d.org>.
20997
20998 2010-09-18  Jim Meyering  <meyering@redhat.com>
20999
21000         maint.mk: avoid unexpanded \n in two diagnostics
21001         * top/maint.mk (sc_prohibit_always_true_header_tests):
21002         Don't use a literal \n in a halt=... assignment.  It would not be
21003         expanded, and the two \n bytes would appear in the diagnostic output
21004         rather than the desired newline.  Use halt=$$(printf ... instead.
21005         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21006
21007 2010-09-18  Bruno Haible  <bruno@clisp.org>
21008
21009         netinet_in: Doc tweak.
21010         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21012
21013 2010-09-18  Jim Meyering  <meyering@redhat.com>
21014
21015         init.sh: correct an outdated comment
21016         * tests/init.sh (create_exe_shims_):  s/function/alias/
21017
21018         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21019         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21020         a file named "*.exe" is removed between the glob expansion and the
21021         processing of that oddly named file.
21022
21023 2010-09-17  Eric Blake  <eblake@redhat.com>
21024
21025         mirbsd: add some more support
21026         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21027         in BSD family.
21028         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21029         devices as OpenBSD.
21030         * m4/host-os.m4 (mirbsd): Add MirBSD.
21031
21032         tests: fix unportable assumption on sys/wait.h
21033         * tests/test-sys_wait.c (main): Relax test.
21034         * tests/test-stdlib.c (main): Likewise.
21035
21036         init.sh: accomodate directory with no .exes
21037         * tests/init.sh: Accomodate directory containing only scripts.
21038
21039         tests: avoid compiler warning
21040         * tests/test-stdlib.c (main): Use the variable.
21041
21042         fdutimens, fdutimensat: update signature, again
21043         * lib/utimens.h (gl_futimens): Delete, and move signature...
21044         (fdutimens): ...here.
21045         (fdutimensat): Rearrange signature.
21046         (lutimensat): Rename variable for clarity.
21047         * lib/fdutimensat.c (fdutimensat): Update signature.
21048         * lib/utimens.c (fdutimens): Likewise.
21049         (gl_futimens): Delete.
21050         (utimens, lutimens): Update callers.
21051         * lib/futimens.c (futimens): Likewise.
21052         * tests/test-fdutimensat.c: Likewise.
21053         * tests/test-utimens.c: Likewise.
21054         * tests/test-futimens.h: Update comment.
21055         * NEWS: Mention this.
21056         Suggested by Paul Eggert.
21057
21058 2010-09-17  Bruno Haible  <bruno@clisp.org>
21059
21060         Take over the maintenance of some older macros from Autoconf.
21061         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21062         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21063         GNU Autoconf.
21064         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21065         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21066
21067 2010-09-17  Eric Blake  <eblake@redhat.com>
21068
21069         fdutimensat: drop atflag validation
21070         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21071         with valid fd, to close a race scenario where futimens is
21072         unsupported and FILE was replaced by a symlink.
21073         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21074         accordingly.
21075         Suggested by Paul Eggert.
21076
21077 2010-09-16  Bruno Haible  <bruno@clisp.org>
21078
21079         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21080         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21081
21082 2010-09-16  Bruno Haible  <bruno@clisp.org>
21083
21084         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21085         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21086         login_tty exists.
21087         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21088
21089 2010-09-16  Bruno Haible  <bruno@clisp.org>
21090
21091         login_tty: Make the replacement code work on BSD systems.
21092         * lib/login_tty.c: Include <sys/ioctl.h>.
21093         (login_tty): Use ioctl TIOCSCTTY when available.
21094         * modules/login_tty (Depends-on): Add sys_ioctl.
21095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21096
21097 2010-09-16  Bruno Haible  <bruno@clisp.org>
21098
21099         login_tty: Stricter unit test.
21100         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21101         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21102         and tcgetsid() after login_tty.
21103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21104
21105 2010-09-16  Bruno Haible  <bruno@clisp.org>
21106
21107         New module 'tcgetsid'.
21108         * lib/tcgetsid.c: New file.
21109         * m4/tcgetsid.m4: New file.
21110         * modules/tcgetsid: New file.
21111         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21112         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21113         GNULIB_TCGETSID, HAVE_TCGETSID.
21114         * lib/termios.in.h: Include <sys/types.h>.
21115         (tcgetsid): New declaration.
21116         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21117         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21118         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21119         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21120
21121 2010-09-16  Bruno Haible  <bruno@clisp.org>
21122
21123         Tests for module 'termios'.
21124         * modules/termios-c++-tests: New file.
21125         * modules/termios-tests: New file.
21126         * tests/test-termios-c++.cc: New file.
21127         * tests/test-termios.c: New file.
21128
21129         New module 'termios'.
21130         * modules/termios: New file.
21131         * lib/termios.in.h: New file.
21132         * m4/termios_h.m4: New file.
21133         * doc/posix-headers/termios.texi: Mention the new module.
21134
21135 2010-09-16  Eric Blake  <eblake@redhat.com>
21136
21137         fdutimensat: add an atflag parameter
21138         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21139         * lib/utimens.h (fdutimensat): Update prototype.
21140         * tests/test-fdutimensat.c: Adjust test to match.
21141         * NEWS: Document the change.
21142         Suggested by Paul Eggert.
21143
21144 2010-09-16  Bruno Haible  <bruno@clisp.org>
21145
21146         Fix typos in comments.
21147         * lib/striconveh.h: Fix typo in comment.
21148         * lib/login_tty.c (login_tty): Likewise.
21149
21150 2010-09-15  Bruno Haible  <bruno@clisp.org>
21151
21152         stdlib: clarify MirBSD WEXITSTATUS bug
21153         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21154         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21155
21156 2010-09-15  Eric Blake  <eblake@redhat.com>
21157
21158         stdlib: work around MirBSD WEXITSTATUS bug
21159         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21160         * modules/stdlib (Depends-on): Add sys_wait.
21161         * tests/test-sys_wait.c (main): Enhance test.
21162         * tests/test-stdlib.c (main): Likewise.
21163         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21164
21165         docs: mention MacOS issue with WEXITSTATUS(constant)
21166         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21167         issue.
21168         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21169
21170         strnlen: add tests
21171         * modules/strnlen-tests: New file.
21172         * tests/test-strnlen.c: Likewise.
21173
21174 2010-09-14  Bruno Haible  <bruno@clisp.org>
21175
21176         unistr/base: Avoid link errors when module 'libunistring' is also used.
21177         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21178         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21179         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21180         Declare also when HAVE_LIBUNISTRING is set.
21181         Reported by Pádraig Brady <P@draigbrady.com>.
21182
21183 2010-09-14  Eric Blake  <eblake@redhat.com>
21184
21185         test-rawmemchr: make more robust
21186         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21187         (Depends-on, configure.ac): Add needed prerequisites to use it.
21188         * modules/memchr-tests (Files, Depends-on, configure.ac):
21189         Likewise, to avoid implicit reliance on memchr module prereqs.
21190         * tests/test-memchr.c (main): Ensure proper masking.
21191         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21192         reads.
21193
21194         memchr: detect glibc Alpha bug
21195         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21196         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21197         Alpha.
21198         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21199         * tests/test-memchr.c (main): Enhance test.
21200         Reported by Nelson H. F. Beebe.
21201
21202 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21203
21204         fts, getcwd, glob: audit for dirfd returning -1
21205         * lib/fts.c (opendir): Remove #define; no longer used.
21206         (opendirat): New arg PDIR_FD.  All callers changed.
21207         (fts_build, _opendir2): Use new opendirat to avoid the need for
21208         dirfd, or for checking whether dirfd returns a negative value.
21209         Don't use opendir; always use openat followed by fdopendir.
21210         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21211         it.
21212         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21213         returns -1 here.
21214         * modules/fts (Depends-on): Remove dirfd.
21215         * modules/getcwd (Depends-on): Likewise.
21216
21217 2010-09-13  Eric Blake  <eblake@redhat.com>
21218
21219         float: fix broken MirBSD header
21220         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21221         * doc/posix-headers/float.texi (float.h): Document it.
21222
21223 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21226         * lib/fts.c (opendirat): New arg extra_flags.
21227         (__opendir2): Use it to avoid following symlinks when opening
21228         a directory, if symlinks are not supposed to be followed.  See
21229         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21230
21231         fdopendir: preserve argument fd before returning
21232         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21233         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21234         (fdopendir): Use them, arranging for FD to be open to the same
21235         directory that it was when it started.  (It might be temporarily
21236         closed while fdopendir is running, so this not thread- or
21237         signal-safe.)  Be careful to do the right thing even when file
21238         descriptors are scarce and dup fails with errno == EMFILE.  See
21239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21240
21241 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21242
21243         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21244         * NEWS: Document change.
21245         * m4/regex.m4: Disable test for regoff_t size.
21246
21247 2010-09-13  Jim Meyering  <meyering@redhat.com>
21248
21249         fts: don't operate on an invalid file descriptor after failed dup
21250         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21251         negative file descriptor.
21252
21253 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21254
21255         savedir: add streamsavedir, deprecate fdsavedir
21256         * NEWS: Mention deprecation of fdsavedir.
21257         * lib/savedir.c (streamsavedir): New extern function, whose name
21258         ends in "savedir" to be consistent with the others.  This differs
21259         from savedirstream in that it doesn't close its argument.  The
21260         next version of GNU tar will use this instead of fdsavedir, to
21261         avoid some race conditions and conserve file descriptors.
21262         (savedirstream): Reimplement as a wrapper around streamsavedir.
21263         (fdsavedir): Add a comment deprecating this function.  As far as
21264         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21265         * lib/savedir.h (streamsavedir): New decl.
21266         (fdsavedir): Add a comment deprecating this.
21267
21268 2010-09-10  Bruno Haible  <bruno@clisp.org>
21269
21270         langinfo: Fix last commit.
21271         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21272         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21274
21275 2010-09-10  Bruno Haible  <bruno@clisp.org>
21276
21277         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21278         * lib/progreloc.c (O_EXEC): Define fallback.
21279
21280 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21283         * NEWS: Document recent changes to fcntl-h.
21284         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21285         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21286         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21287         Similarly for O_SEARCH; this last was already true, but not documented.
21288         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21289         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21290         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21291         Likewise.
21292         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21293         is zero, not whether it is defined.
21294         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21295         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21296         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21297
21298 2010-09-10  Bruno Haible  <bruno@clisp.org>
21299
21300         langinfo, nl_langinfo: Fix for IRIX 5.3.
21301         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21302         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21303         HAVE_LANGINFO_YESEXPR.
21304         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21305         HAVE_LANGINFO_YESEXPR.
21306         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21307         HAVE_LANGINFO_T_FMT_AMPM is 0.
21308         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21309         HAVE_LANGINFO_YESEXPR is 0.
21310         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21311         NOEXPR.
21312         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21313         * doc/posix-functions/nl_langinfo.texi: Likewise.
21314         Reported by Eric Blake.
21315
21316 2010-09-10  Bruno Haible  <bruno@clisp.org>
21317
21318         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21319         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21320         on FreeBSD 8.0 and OpenBSD 4.6.
21321         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21322         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21323         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21324         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21325         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21326         ac_includes_default.
21327         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21328
21329 2010-09-09  Eric Blake  <eblake@redhat.com>
21330
21331         strsignal: work around NetBSD bug
21332         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21333         * lib/string.in.h (includes): Likewise.
21334         * doc/posix-functions/strsignal.texi (strsignal): Document the
21335         bug.
21336         Reported by Nelson H. F. Beebe.
21337
21338         gnulib-tool: work with NetBSD /bin/sh
21339         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21340         (func_get_description, func_get_comment, func_get_status)
21341         (func_get_notice, func_get_applicability, func_get_filelist)
21342         (func_get_dependencies, func_get_autoconf_early_snippet)
21343         (func_get_autoconf_snippet, func_get_automake_snippet)
21344         (func_get_include_directive, func_get_link_directive)
21345         (func_get_license, func_get_maintainer, func_import): Avoid
21346         shell syntax errors from parsing syntax extensions.
21347
21348 2010-09-09  Bruno Haible  <bruno@clisp.org>
21349
21350         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21351         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21352         a reliable way to determine whether the 'alias' command works.
21353
21354 2010-09-08  Jim Meyering  <meyering@redhat.com>
21355
21356         init.sh: penalize a set-x-impaired shell; don't disqualify it
21357         * tests/init.sh: Too many shells corrupt application stderr when
21358         you set -x, so we can't afford to disqualify them, since at least
21359         on Irix-6.5, that would disqualify all bourne shells.
21360         Instead, use a two-pass approach.
21361         On the first pass, try to find a shell that meets the stricter
21362         condition that set -x does not corrupt stderr.
21363         If no shell meets the stricter condition, retest each candidate
21364         shell, but without that extra condition.  Finally, when
21365         VERBOSE=yes is requested and set -x might cause trouble, simply
21366         issue a warning and refrain from enabling debug output.
21367
21368 2010-09-08  Eric Blake  <eblake@redhat.com>
21369
21370         unsetenv: fix OpenBSD bug
21371         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21372         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21373         documentation.
21374         Reported by Jim Meyering.
21375
21376         strtod: work around IRIX 6.5 bug
21377         * lib/strtod.c (strtod): Reparse number on shorter string if
21378         exponent parse was invalid.
21379         * tests/test-strtod.c (main): Add check for "0x1p 2".
21380         Reported by Tom G. Christensen.
21381
21382         getopt: optimize previous patch
21383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21384         empty variable.  Speed up awk script.
21385         Reported by Paolo Bonzini.
21386
21387 2010-09-08  Jim Meyering  <meyering@redhat.com>
21388
21389         test.sh: disqualify shells for which set -x corrupts stderr
21390         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21391         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21392         appear in stderr output.  For example, this command:
21393             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21394         prints "P=1" on those two systems:
21395
21396 2010-09-08  Bruno Haible  <bruno@clisp.org>
21397
21398         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21399         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21400         commands, because some shells ignore redirections when there is an
21401         error in the command lookup.
21402         Reported by Eric Blake.
21403
21404 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21405
21406         * lib/regex.h: Fix a mention of `regex_compile' (should be
21407         `re_compile_pattern').
21408         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21409         (re_set_registers): Correct name of parameter in comment.
21410
21411         * doc/regex.texi: Add documentation for missing syntax flags.
21412         Remove commented-out documentation of defunct syntax option
21413         RE_NO_EMPTY_ALTS.
21414         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21415         Add documentation of re_set_registers.
21416         Document trick to re-use a pattern buffer by setting fastmap manually.
21417         Update documentation of struct re_pattern_buffer per public members.
21418         Uncomment documentation of equivalence class operators and
21419         collating symbol operators, since they are now implemented,
21420         Explain leftmost-longest matching in relation to alternatives.
21421         Tidy documentation of substring matching.
21422         Remove POSIX documentation, which is done better in
21423         glibc, and refer the reader there. Keep BSD API documentation, as
21424         that is not readily available elsewhere.
21425
21426 2010-09-07  Eric Blake  <eblake@redhat.com>
21427
21428         getopt: handle POSIXLY_CORRECT set but not exported
21429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21430         export state of POSIXLY_CORRECT, due to bash set -o posix.
21431         Reported by Dustin J. Mitchell.
21432
21433 2010-09-05  Bruno Haible  <bruno@clisp.org>
21434
21435         gnulib-tool: Highlight the changed options.
21436         * gnulib-tool (func_usage): Display the --import, --add-import,
21437         --remove-import explanations in bold font.
21438
21439 2010-09-06  Karl Berry  <karl@gnu.org>
21440
21441         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21442
21443 2010-09-05  Bruno Haible  <bruno@clisp.org>
21444
21445         uniwidth/width: Update comment.
21446         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21447         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21448
21449 2010-09-05  Bruno Haible  <bruno@clisp.org>
21450
21451         isinf, isnan: Relax license.
21452         * modules/isinf (License): Change from GPL to LGPL, with consent from
21453         Ben Pfaff.
21454         * modules/isnan (License): Likewise.
21455         Requested by Ludovic Courtès.
21456
21457 2010-09-04  Bruno Haible  <bruno@clisp.org>
21458
21459         gnulib-tool: Help migration from --import to --add-import or --update.
21460         * gnulib-tool: Emit a verbose error message when --import is used
21461         without any module name.
21462
21463 2010-09-04  Bruno Haible  <bruno@clisp.org>
21464
21465         Update doc about gnulib-tool.
21466         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21467         'gnulib-tool --update' in more detail.
21468         Reported by Eric Blake.
21469
21470 2010-09-04  Bruno Haible  <bruno@clisp.org>
21471
21472         gnulib-tool: Change --import. New options --add/remove-import.
21473         * gnulib-tool: New options --add-import, --remove-import.
21474         (func_usage): Document them.
21475         (have_associative): Define always.
21476         (func_import): In import mode, don't merge the specified settings with
21477         the cached settings. Implement remove-import mode.
21478         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21479         Explain when to use them versus --import.
21480         (Simple update): Use --add-import instead of --import.
21481         * NEWS: Mention the change.
21482
21483 2010-09-04  Bruno Haible  <bruno@clisp.org>
21484
21485         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21486         separate gnulib.mk.
21487
21488 2010-09-04  Bruno Haible  <bruno@clisp.org>
21489
21490         gnulib-tool: Don't talk about CVS any more.
21491         * gnulib-tool (func_usage, func_import): Write "version control"
21492         instead of CVS.
21493
21494 2010-09-04  Jim Meyering  <meyering@redhat.com>
21495
21496         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21497         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21498         false positives (whose names may be ill-chosen) when searching
21499         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21500         would cause a false-positive.
21501
21502         avoid coreutils "make distcheck" failure
21503         Coreutils tests with an absolute build directory name that contains
21504         a space.  Not quoting this directory name caused a failure.
21505         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21506         * tests/test-vc-list-files-cvs.sh: Likewise.
21507
21508 2010-09-04  Bruno Haible  <bruno@clisp.org>
21509
21510         gnulib-tool: Avoid error when run in a package without Makefile.am.
21511         * gnulib-tool: When collecting the m4dirs in a package that does not
21512         have a Makefile.am, eliminate those directories that contain no
21513         gnulib-cache.m4. Fix expression that counts these directories.
21514
21515 2010-09-04  Bruno Haible  <bruno@clisp.org>
21516
21517         update-copyright test: Improve output when perl is missing or too old.
21518         * tests/test-update-copyright.sh: Move test of Perl version down after
21519         the test whether Perl exists. Provide an explanation relating Perl's
21520         error message to Automake's SKIP: message.
21521
21522 2010-09-04  Bruno Haible  <bruno@clisp.org>
21523
21524         Don't augment PATH in TESTS_ENVIRONMENT.
21525         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21526         set abs_aux_dir instead of augmenting PATH.
21527         * modules/vc-list-files-tests (Makefile.am): Likewise.
21528         * tests/test-update-copyright.sh: Augment PATH here.
21529         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21530         path_prepend_.
21531         * tests/test-vc-list-files-git.sh: Likewise.
21532
21533 2010-09-04  Jim Meyering  <meyering@redhat.com>
21534
21535         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21536         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21537
21538 2010-09-04  Bruno Haible  <bruno@clisp.org>
21539
21540         strdup: Fix compilation error in C++ mode.
21541         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21542         the macro.
21543
21544 2010-09-04  Bruno Haible  <bruno@clisp.org>
21545
21546         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21547         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21548         macro into a function.
21549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21550
21551 2010-09-04  Bruno Haible  <bruno@clisp.org>
21552
21553         Set PATH_SEPARATOR the same way autoconf does.
21554         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21555         the value of PATH_SEPARATOR the same way autoconf-generated configure
21556         scripts do.
21557         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21558         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21559
21560 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21561
21562         Set PATH_SEPARATOR the same way autoconf does.
21563         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21564         the same way autoconf-generated configure scripts do.
21565         * posix-modules: Likewise.
21566
21567 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21568
21569         hash: fix safe_hasher const typo
21570         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21571         const; otherwise, there is a type error later.
21572
21573 2010-09-02  Jim Meyering  <meyering@redhat.com>
21574
21575         test-update-copyright.sh: require perl 5.8.0
21576         * tests/test-update-copyright.sh: Require 5.8.0,
21577         which Tom G. Christensen has confirmed is adequate,
21578         while 5.6.1 is not.
21579
21580 2010-09-02  Eric Blake  <eblake@redhat.com>
21581
21582         tests: init.sh improvements for re-exec'ing with zsh
21583         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21584         -vx through shell re-exec.
21585         Reported by Tom G. Christensen.
21586
21587         wctype: fix typo in previous commit
21588         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21589         Reported by Ludovic Courtès.
21590
21591 2010-09-02  Jim Meyering  <meyering@redhat.com>
21592
21593         test-update-copyright.sh: skip test if Perl is too old
21594         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21595         Reported by Tom G. Christensen.
21596
21597 2010-09-02  Bruno Haible  <bruno@clisp.org>
21598
21599         wctype: Avoid compilation error on IRIX 6.5.30.
21600         * lib/wctype.in.h (iswblank): Declare with a replacement if
21601         REPLACE_ISWBLANK is set.
21602         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21603         declared. Set REPLACE_ISWBLANK.
21604         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21605         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21606         * doc/posix-headers/wctype.texi: Likewise.
21607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21608
21609 2010-09-01  Bruno Haible  <bruno@clisp.org>
21610
21611         New module 'socketlib'.
21612         * modules/socketlib: New file.
21613         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21614         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21615         * modules/sockets (Depends-on): Add socketlib.
21616         Suggested by Sam Steingold <sds@gnu.org>.
21617
21618 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21619
21620         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21621
21622         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21623         when one needs search access to a directory but not read access.
21624         On systems where it is available, it works in some cases where
21625         O_RDONLY does not, namely on directories that are searchable but
21626         not readable, and which need only to be searchable.  If O_SEARCH
21627         is not available, fall back to the traditional method of using
21628         O_RDONLY.
21629
21630         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21631         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21632         when opening a directory that needs only to be searchable.
21633         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21634         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21635         * lib/openat-proc.c (openat_proc_name): Likewise.
21636         * lib/openat.c (openat_needs_fchdir): Likewise.
21637         * lib/save-cwd.c (save_cwd): Likewise.
21638         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21639
21640 2010-08-28  Bruno Haible  <bruno@clisp.org>
21641
21642         New module 'host-cpu-c-abi'.
21643         * modules/host-cpu-c-abi: New file.
21644         * m4/host-cpu-c-abi.m4: New file, based on part of
21645         clisp/src/m4/general.m4.
21646         Requested by Sam Steingold <sds@gnu.org>.
21647
21648 2010-08-31  Eric Blake  <eblake@redhat.com>
21649         and Jim Meyering  <meyering@redhat.com>
21650
21651         hash: factor, and guard against misbehaving hasher function
21652         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21653         of table->hasher's return value.  Also protect against a hash value
21654         so large that adding it to table->bucket results in a NULL pointer.
21655         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21656         Use it in place of open-coded check-and-abort.
21657
21658 2010-08-30  Bruno Haible  <bruno@clisp.org>
21659
21660         hash: silence spurious clang warning
21661         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21662         Reported by Eric Blake.
21663
21664 2010-08-30  Eric Blake  <eblake@redhat.com>
21665
21666         strstr, memmem, strcasestr: avoid leaked shell message
21667         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21668         FreeBSD.
21669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21670         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21671
21672         tests: silence clang warning
21673         * tests/test-malloca.c (do_allocation): Avoid dead store.
21674
21675 2010-08-29  Bruno Haible  <bruno@clisp.org>
21676
21677         gettext: Fix recent mistake.
21678         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21679
21680 2010-08-29  Bruno Haible  <bruno@clisp.org>
21681
21682         selinux-h: Offer a --without-selinux option.
21683         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21684         --without-selinux was specified, skip all tests and define
21685         HAVE_SELINUX_SELINUX_H to 0.
21686         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21687         set LIB_SELINUX to empty.
21688         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21689         gl_LIBSELINUX. If --without-selinux was specified, replace
21690         selinux/context.h.
21691         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21692
21693 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21694             Bruno Haible  <bruno@clisp.org>
21695
21696         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21697         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21698         of HAVE_REALLOC.
21699         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21700         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21701         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21702         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21703
21704 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21705             Bruno Haible  <bruno@clisp.org>
21706
21707         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21708         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21709         HAVE_CALLOC.
21710         * lib/xmalloc.c: Update accordingly.
21711         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21712         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21713         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21714
21715 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21716             Bruno Haible  <bruno@clisp.org>
21717
21718         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21719         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21720         HAVE_MALLOC.
21721         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21722         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21723         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21724
21725 2010-08-29  Bruno Haible  <bruno@clisp.org>
21726
21727         Update modules list.
21728         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21729         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21730         (String handling <string.h>): Add astrxfrm.
21731         (File system functions): Add readlinkat.
21732
21733 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21734
21735         Tests for module 'realloc-gnu'.
21736         * modules/realloc-gnu-tests: New file.
21737         * tests/test-realloc-gnu.c: New file.
21738
21739         Tests for module 'calloc-gnu'.
21740         * modules/calloc-gnu-tests: New file.
21741         * tests/test-calloc-gnu.c: New file.
21742
21743         Tests for module 'malloc-gnu'.
21744         * modules/malloc-gnu-tests: New file.
21745         * tests/test-malloc-gnu.c: New file.
21746
21747 2010-08-28  Bruno Haible  <bruno@clisp.org>
21748
21749         Rename module 'realloc' -> 'realloc-gnu'.
21750         * modules/realloc-gnu: New file, copied from modules/realloc.
21751         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21752         obsolete.
21753         * modules/mgetgroups (Depends-on): Update.
21754         * doc/posix-functions/realloc.texi: Update.
21755         * NEWS: Mention the change.
21756
21757         Rename module 'calloc' -> 'calloc-gnu'.
21758         * modules/calloc-gnu: New file, copied from modules/calloc.
21759         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21760         obsolete.
21761         * doc/posix-functions/calloc.texi: Update.
21762         * NEWS: Mention the change.
21763
21764         Rename module 'malloc' -> 'malloc-gnu'.
21765         * modules/malloc-gnu: New file, copied from modules/malloc.
21766         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21767         obsolete.
21768         * modules/argp (Depends-on): Update.
21769         * modules/regex (Depends-on): Update.
21770         * doc/posix-functions/malloc.texi: Update.
21771         * NEWS: Mention the change.
21772
21773 2010-08-28  Eric Blake  <eblake@redhat.com>
21774
21775         pread, pwrite: add missing dependency
21776         * modules/pread (Depends-on): Add extensions.
21777         * modules/pwrite (Depends-on): Likewise.
21778
21779 2010-08-28  Bruno Haible  <bruno@clisp.org>
21780
21781         unistr/u*-strchr: Fix tests dependencies.
21782         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21783         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21784         Reported by Ian Beckwith <ianb@erislabs.net>.
21785
21786 2010-08-28  Bruno Haible  <bruno@clisp.org>
21787
21788         read-file: Don't occupy too much unused memory.
21789         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21790
21791 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21792             Eric Blake  <eblake@redhat.com>
21793             Bruno Haible  <bruno@clisp.org>
21794
21795         read-file: Avoid memory reallocations with regular files.
21796         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21797         (fread_file): With regular files, use the remaining length as the
21798         initial buffer size.  Check against overflow.
21799         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21800         sys_stat.
21801
21802 2010-08-28  Bruno Haible  <bruno@clisp.org>
21803
21804         ftello: Relax license.
21805         * modules/ftello (License): Relax to LGPLv2+.
21806         Reported by Eric Blake.
21807
21808 2010-08-28  Bruno Haible  <bruno@clisp.org>
21809
21810         Avoid relocwrapper link errors due to gnulib replacement functions.
21811         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21812         function.
21813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21814
21815 2010-08-28  Bruno Haible  <bruno@clisp.org>
21816
21817         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21818         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21819         defined.
21820         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21821         Suggested by Eric Blake.
21822
21823 2010-08-28  Bruno Haible  <bruno@clisp.org>
21824
21825         sys_socket, netdb: Ensure socklen_t gets defined.
21826         * modules/sys_socket (Depends-on): Add socklen.
21827         * modules/netdb (Depends-on): Likewise.
21828         * modules/getaddrinfo (Depends-on): Remove socklen.
21829         * modules/getsockopt (Depends-on): Likewise.
21830         * modules/setsockopt (Depends-on): Likewise.
21831         * tests/test-sys_socket.c: Check that socklen_t is defined.
21832         * tests/test-netdb.c: Likewise.
21833         * m4/socklen.m4: Update comments.
21834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21835
21836 2010-08-27  Eric Blake  <eblake@redhat.com>
21837
21838         login_tty: add missing dependency
21839         * modules/login_tty (Depends-on): Add pty.
21840
21841 2010-08-26  Eric Blake  <eblake@redhat.com>
21842
21843         lib-symbol-versions: fix m4 quoting
21844         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21845         format for AC_LINK_IFELSE.
21846
21847         glob: fix compile test
21848         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21849
21850         btowc: fix missing file
21851         * modules/btowc (Files): Also ship locale-fr.m4.
21852
21853         lseek: fix link test
21854         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21855         AC_LINK_IFELSE.
21856
21857         include_next: silence autoconf 2.68 warning
21858         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21859         AC_COMPILE_IFELSE as special.
21860         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21861         autoconf < 2.68.
21862
21863         acl: fix compilation test
21864         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21865         AC_COMPILE_IFELSE.
21866
21867 2010-08-26  Bruno Haible  <bruno@clisp.org>
21868
21869         Modernize AC_TRY_RUN invocations.
21870         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21871         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21872         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21873         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21874         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21875         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21878         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21879         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21881         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21882         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21883         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21885         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21886         gl_MBRLEN_NUL_RETVAL): Likewise.
21887         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21888         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21889         Likewise.
21890         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21891         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21892         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21893         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21894         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21895         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21896         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21897         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21898         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21899         Likewise.
21900         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21901         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21903         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21907         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21908         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21910
21911 2010-08-26  Bruno Haible  <bruno@clisp.org>
21912
21913         Modernize AC_TRY_LINK invocations.
21914         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21915         AC_TRY_LINK.
21916         * m4/argp.m4 (gl_ARGP): Likewise.
21917         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21918         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21919         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21920         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21921         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21922         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21923         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21924         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21925         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21926         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21928         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21929         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21930         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21931         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21932         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21933         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21934         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21935         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21936         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21937         Likewise.
21938         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21939         Likewise.
21940         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21941         Likewise.
21942         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21944         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21945         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21946         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21947         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21948         * m4/servent.m4 (gl_SERVENT): Likewise.
21949         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21950         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21951         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21952         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21954         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21955         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21957         * modules/tsearch-tests (configure.ac): Likewise.
21958
21959 2010-08-26  Bruno Haible  <bruno@clisp.org>
21960
21961         Modernize AC_TRY_COMPILE invocations.
21962         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21963         AC_TRY_COMPILE.
21964         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21965         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21966         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21967         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21968         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21969         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21970         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21971         * m4/lock.m4 (gl_LOCK): Likewise.
21972         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21973         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21974         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21976         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21977         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21978         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21980         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21981         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21982         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21983         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21984         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21985         extraneous semicolon.
21986
21987 2010-08-26  Jim Meyering  <meyering@redhat.com>
21988
21989         stat-time: relax license LGPL
21990         * modules/stat-time (License): Change from GPL to LGPL,
21991         with consent from all contributors, for use in libguile.
21992         Requested by Ludovic Courtès.
21993
21994 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21995
21996         poll: return immediately on POLLHUP.
21997         * lib/poll.c (poll): Always set timeout before wait_timeout is
21998         computed.
21999
22000 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22001
22002         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22003         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22004         rmdir ("dir/.//"), unlinkat.
22005
22006 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22007
22008         stdbool: avoid spurious failure with modern xlc
22009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22010
22011 2010-08-24  Bruno Haible  <bruno@clisp.org>
22012
22013         getloadavg: simplify code
22014         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22015         gl_have_func. Update comments.
22016
22017 2010-08-24  Eric Blake  <eblake@redhat.com>
22018
22019         getloadavg: don't define SVR4 on cygwin
22020         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22021         only define SVR4 when -lkvm is required.
22022         Reported by Yaakov Selkowitz.
22023
22024 2010-08-24  Bruno Haible  <bruno@clisp.org>
22025
22026         priv-set: fix comment
22027         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22028
22029 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         priv-set: fix comments
22032         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22033         to match code, as suggested by David Bartley in:
22034         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22035
22036 2010-08-23  Eric Blake  <eblake@redhat.com>
22037
22038         stdbool: avoid rejecting clang
22039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22040         * tests/test-stdbool.c: Enable more tests if using the system
22041         <stdbool.h> instead of the gnulib replacement.
22042         (main): Move xlc bug test to a runtime test for all compilers.
22043         Reported by Anders Kaseorg.
22044
22045         argz: fix shell quoting issue
22046         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22047         Reported by Charles Wilson.
22048
22049 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22050             Erik Faye-Lund <kusmabite@gmail.com>
22051
22052         poll, select: handle ERROR_BROKEN_PIPE.
22053         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22054         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22055         * lib/select.c (win32_compute_revents): Do not mark a pipe
22056         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22057
22058 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22059
22060         fts: allow compilation with C++
22061         * lib/fts_.h: Specify extern "C" linkage with C++.
22062
22063 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22064
22065         Fix gnulib-tool sed script de-commentation for AIX sed.
22066         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22067         sed.
22068
22069 2010-08-17  Eric Blake  <eblake@redhat.com>
22070
22071         test-stddef: test for (some) offsetof bugs
22072         * tests/test-stddef.c: Enhance test to ensure correct type of
22073         offsetof.
22074         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22075         that we are not fixing at this time.
22076
22077 2010-08-15  Bruno Haible  <bruno@clisp.org>
22078
22079         stpncpy: Allow stpncpy to be defined as a macro.
22080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22081         if it's already correctly declared.
22082         * lib/string.in.h (stpncpy): Undefine before redefining.
22083         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22084
22085 2010-08-14  Bruno Haible  <bruno@clisp.org>
22086
22087         Rename module 'memxfrm' to 'amemxfrm'.
22088         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22089         (amemxfrm): Renamed from memxfrm.
22090         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22091         (amemxfrm): Renamed from memxfrm.
22092         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22093         * NEWS: Mention the change.
22094         * MODULES.html.sh (String handling <string.h>): Update.
22095         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22096         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22097         * lib/unicase/u16-casexfrm.c: Likewise.
22098         * lib/unicase/u32-casexfrm.c: Likewise.
22099         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22100         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22101         * lib/uninorm/u16-normxfrm.c: Likewise.
22102         * lib/uninorm/u32-normxfrm.c: Likewise.
22103         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22104         memxfrm.
22105         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22106         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22107         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22108         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22109         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22110         Suggested by Paul Eggert.
22111
22112 2010-08-14  Bruno Haible  <bruno@clisp.org>
22113
22114         Tests for module 'astrxfrm'.
22115         * modules/astrxfrm-tests: New file.
22116         * tests/test-astrxfrm.c: New file.
22117
22118         New module 'astrxfrm'.
22119         * lib/astrxfrm.h: New file.
22120         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22121         * modules/astrxfrm: New file.
22122
22123 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22124
22125         regex: Tweak doc.
22126         * doc/regex.texi (Overview): Don't mention regex.c.
22127         (GNU Regular Expression Compiling): Likewise.
22128         (Match-end-of-line Operator): Mention 'not_eol'.
22129
22130 2010-08-14  Brian Gough  <bjg@gnu.org>
22131             Bruno Haible  <bruno@clisp.org>
22132
22133         git-merge-changelog: add doc relating to use with bzr and hg.
22134         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22135
22136 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22137
22138         pthread: fix pthread.h creation for srcdir != builddir
22139         * modules/pthread (Makefile.am): Fix the rule to work also in a
22140         non-srcdir build.
22141
22142 2010-08-13  Karl Berry  <karl@gnu.org>
22143
22144         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22145         * doc/posix-*/*: force line break before @url of POSIX
22146         specifications.
22147         Suggested by Werner Lemberg.
22148
22149 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         strtod: fix const diagnostic
22152         * lib/strtod.c (strtod): Don't assign const char * to char *,
22153         as this elicits a warning from GCC when warnings are enabled.
22154
22155 2010-08-10  Pádraig Brady <P@draigbrady.com>
22156         and Eric Blake  <eblake@redhat.com>
22157
22158         copy-acl: ignore ENOTSUP on HP-UX
22159         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22160         so that it is available for HP-UX.
22161         * lib/copy-acl.c (qcopy_acl): Use it.
22162         Reported by Patrick M. Callahan.
22163
22164 2010-08-10  Eric Blake  <eblake@redhat.com>
22165
22166         open, chown: relax license
22167         * modules/open (License): Change to LGPLv2+, with consent by all
22168         authors, for use in augeas.
22169         * modules/chown (License): Likewise.
22170         * modules/lchown (Likewise): Likewise.
22171         Requested by Adam Stokes.
22172
22173 2010-08-09  Karl Berry  <karl@gnu.org>
22174
22175         * build-aux/ar-lib: new file, import from Automake.
22176         * config/srclist.txt: autocheck for updates.
22177
22178 2010-08-09  Eric Blake  <eblake@redhat.com>
22179
22180         readlinkat: adjust client modules
22181         * modules/areadlinkat (Depends-on): Use readlinkat, not
22182         symlinkat.
22183         * modules/areadlinkat-with-size (Depends-on): Likewise.
22184
22185         mknod: be more vocal about danger of running tests as root
22186         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22187         root, since that is just asking for problems.
22188         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22189
22190         readlinkat: split into its own module
22191         * modules/symlinkat: Split readlinkat...
22192         * modules/readlinkat: ...into separate module.
22193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22194         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22195         * lib/symlinkat.c (readlinkat): Move...
22196         * lib/readlinkat.c: ...into new file.
22197         * modules/symlinkat-tests: Split readlinkat test...
22198         * modules/readlinkat-tests: ...into separate module.
22199         * tests/test-symlinkat.c: Split...
22200         * tests/test-readlinkat.c: ...into new file.
22201         * NEWS: Document the split.
22202         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22203         * lib/unistd.in.h (readlinkat): Likewise.
22204         Suggested by Bruno Haible.
22205
22206 2010-08-08  Bruno Haible  <bruno@clisp.org>
22207
22208         memxfrm: Speed up.
22209         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22210         that usually only one call to strxfrm is necessary for each string
22211         part.
22212         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22213
22214 2010-08-07  Karl Berry  <karl@gnu.org>
22215
22216         * doc/posix-headers/limits.texi,
22217         * doc/posix-functions/malloc.texi,
22218         * doc/posix-functions/strsignal.texi: missing @item.
22219         * doc/ld-version-script.texi: spurious leading i.
22220         * doc/regex.texi (Interval Operators): no commas inside @var.
22221
22222 2010-08-01  Bruno Haible  <bruno@clisp.org>
22223
22224         Integrate the regex documentation.
22225         * doc/gnulib.texi: Define 'cn' index.
22226         (Regular expressions): New a chapter that includes regex.texi and
22227         regexprops-generic.texi.
22228         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22229         syntax.
22230
22231         Whitespace cleanup.
22232         * doc/regex.texi: Remove trailing spaces.
22233
22234         Add regex documentation.
22235         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22236         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22237         Written by Kathy A. Hargreaves and Karl Berry.
22238
22239 2010-08-01  Bruno Haible  <bruno@clisp.org>
22240
22241         link: Update documentation.
22242         * doc/posix-functions/link.texi: Update regarding Solaris.
22243
22244 2010-07-31  Bruno Haible  <bruno@clisp.org>
22245
22246         Update modules list.
22247         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22248         (String handling <string.h>): Add memcmp2, memxfrm.
22249         (Container data structures): Add xlist, xsublist, xoset.
22250         (Core language properties): Add alignof, unused-parameter.
22251         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22252         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22253         (Unibyte characters <ctype.h>): New section.
22254         (String handling <string.h>): New section.
22255         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22256         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22257         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22258         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22259         tan, tanh, tanl, y0, y1, yn.
22260         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22261         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22262         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22263         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22264         unlockpt, vdprintf, vdprintf-posix.
22265         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22266         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22267         xconcat-filename.
22268         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22269         getdtablesize, pipe2, pipe2-safer.
22270         (Security): New section.
22271         (Networking functions): Add accept4.
22272         (Signal handling): Add sigpipe.
22273         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22274         mbmemcasecoll.
22275         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22276         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22277         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22278         pipe-filter-ii.
22279         (Misc): Add argp-version-etc, login_tty, parse-duration.
22280
22281 2010-07-31  Bruno Haible  <bruno@clisp.org>
22282
22283         Improve doc in MODULES.html.
22284         * modules/linkat (Description): Add the word "function".
22285         * modules/mkfifo (Description): Likewise.
22286         * modules/mknod (Description): Likewise.
22287         * modules/remove (Description): Likewise.
22288         * modules/renameat (Description): Likewise.
22289         * modules/stat (Description): Likewise.
22290         * modules/symlink (Description): Likewise.
22291         * modules/unlink (Description): Likewise.
22292
22293 2010-07-31  Bruno Haible  <bruno@clisp.org>
22294
22295         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22296         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22297         option --enable/disable-c++ instead of --enable/disable-cxx.
22298         * NEWS: Mention the change.
22299
22300 2010-07-31  Bruno Haible  <bruno@clisp.org>
22301
22302         readlink, areadlink: Relax test a bit.
22303         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22304         alternative to ENOTDIR.
22305         * tests/test-areadlink.h (test_areadlink): Likewise.
22306         Reported by Rainer Tammer.
22307
22308 2010-07-31  Bruno Haible  <bruno@clisp.org>
22309
22310         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22311         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22312         character, perform the search using U_STRCHR.
22313         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22314         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22315         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22316         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22317         Suggested by Paolo Bonzini.
22318
22319 2010-07-31  Bruno Haible  <bruno@clisp.org>
22320
22321         unistr/u*-strstr: Fix dependencies.
22322         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22323         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22324         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22325
22326 2010-07-31  Bruno Haible  <bruno@clisp.org>
22327
22328         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22329         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22330         the beginning of the loop.
22331         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22332         cases in 'switch' statement.
22333
22334         unistr/u8-strchr: Fix several bugs.
22335         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22336         the string. When not found, return NULL, not a pointer near the end.
22337
22338         More tests for unistr/u8-strchr.
22339         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22340         that the function does not read past the first occurrence of the byte
22341         being searched.
22342         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22343         * tests/unistr/test-u16-strchr.c (main): New function.
22344         * tests/unistr/test-u32-strchr.c (main): New function.
22345
22346 2010-07-31  Bruno Haible  <bruno@clisp.org>
22347
22348         posix-modules: Ignore backup files of documentation files.
22349         * posix-modules: grep only through files named *.texi.
22350
22351 2010-07-31  Bruno Haible  <bruno@clisp.org>
22352
22353         symlinkat: Fix documentation.
22354         * doc/posix-functions/readlinkat.texi: Fix module name.
22355
22356 2010-07-31  Bruno Haible  <bruno@clisp.org>
22357
22358         fchownat: Replace also when chown has the trailing slash bug.
22359         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22360         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22361         introduced on 2010-04-10.
22362         Reported by Rainer Tammer.
22363
22364 2010-07-31  Bruno Haible  <bruno@clisp.org>
22365
22366         linkat: Work around AIX 7.1 bug.
22367         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22368         whether linkat handles trailing slash correctly. If not, replace linkat
22369         and define LINKAT_TRAILING_SLASH_BUG.
22370         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22371         check whether (fd1,file1) points to a directory if file1 or file2 ends
22372         in a slash. Code taken from lib/link.c.
22373         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22374         Reported by Rainer Tammer.
22375
22376 2010-07-31  Bruno Haible  <bruno@clisp.org>
22377
22378         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22379         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22380         This disables an xlc optimization that was causing wrong test results.
22381         Reported by Rainer Tammer.
22382
22383 2010-07-31  Bruno Haible  <bruno@clisp.org>
22384
22385         iconv: Work around AIX 6.1..7.1 bug.
22386         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22387         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22388         cross-compiling, guess no on all versions of AIX.
22389         Reported by Rainer Tammer.
22390
22391 2010-07-31  Bruno Haible  <bruno@clisp.org>
22392
22393         readlink: Relax test a bit.
22394         * tests/test-readlink.h (test_readlink): Allow different errno value
22395         when readlink is called with a file name that ends in / and refers to
22396         a file.
22397         Suggested by Eric Blake.
22398         Reported by Rainer Tammer.
22399
22400 2010-07-31  Bruno Haible  <bruno@clisp.org>
22401
22402         copysign: Does not require -lm on glibc systems.
22403         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22404         gl_COMMON_DOUBLE_MATHFUNC.
22405         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22406
22407 2010-07-31  Bruno Haible  <bruno@clisp.org>
22408
22409         duplocale: Work around AIX 7.1 bug.
22410         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22411         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22412         * lib/duplocale.c (rpl_duplocale): Update comment.
22413         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22414         Reported by Rainer Tammer.
22415
22416 2010-07-30  Bruno Haible  <bruno@clisp.org>
22417
22418         dirfd: Avoid link error on AIX 7.1.
22419         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22420         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22421         exist, set REPLACE_DIRFD.
22422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22423         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22424         * doc/posix-functions/dirfd.texi: Update.
22425         Reported by Rainer Tammer.
22426
22427 2010-07-30  Eric Blake  <eblake@redhat.com>
22428
22429         strtod: next round of AIX fixes
22430         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22431         exponent.
22432         * tests/test-strtod.c (main): Enhance tests.
22433         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22434         Reported by Rainer Tammer.
22435
22436         futimens: fix configure check
22437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22438         Reported by Bruno Haible.
22439
22440 2010-07-30  Bruno Haible  <bruno@clisp.org>
22441
22442         getline: Update regarding AIX.
22443         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22444         Reported by Rainer Tammer.
22445
22446 2010-07-30  Bruno Haible  <bruno@clisp.org>
22447
22448         wcwidth: Drop replacement on AIX 7.
22449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22450         AIX 7.
22451         Reported by Rainer Tammer.
22452
22453 2010-07-30  Bruno Haible  <bruno@clisp.org>
22454
22455         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22456         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22457         a 'char *'.
22458         Reported by Rainer Tammer.
22459
22460 2010-07-30  Bruno Haible  <bruno@clisp.org>
22461
22462         unlink: Update regarding AIX.
22463         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22464         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22465         Reported by Rainer Tammer.
22466
22467 2010-07-30  Bruno Haible  <bruno@clisp.org>
22468
22469         symlink: Update regarding AIX.
22470         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22471         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22472         Reported by Rainer Tammer.
22473
22474 2010-07-30  Bruno Haible  <bruno@clisp.org>
22475
22476         strndup: Update regarding AIX.
22477         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22478         AIX 7.
22479         Reported by Rainer Tammer.
22480
22481 2010-07-30  Bruno Haible  <bruno@clisp.org>
22482
22483         stat: Update regarding AIX.
22484         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22485         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22486         Reported by Rainer Tammer.
22487
22488 2010-07-30  Bruno Haible  <bruno@clisp.org>
22489
22490         truncl: Fix autoconf test.
22491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22492         whether truncl works.
22493         Reported by Rainer Tammer.
22494
22495 2010-07-30  Bruno Haible  <bruno@clisp.org>
22496
22497         round: Update regarding AIX.
22498         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22499         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22500         Reported by Rainer Tammer.
22501
22502 2010-07-30  Bruno Haible  <bruno@clisp.org>
22503
22504         rename: Update regarding AIX.
22505         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22506         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22507         Reported by Rainer Tammer.
22508
22509 2010-07-30  Bruno Haible  <bruno@clisp.org>
22510
22511         printf.m4: Update regarding AIX.
22512         * m4/printf.m4: Update comments regarding AIX.
22513         Reported by Rainer Tammer.
22514
22515 2010-07-30  Bruno Haible  <bruno@clisp.org>
22516
22517         iconv: Update regarding AIX.
22518         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22519         AIX 7.
22520         Reported by Rainer Tammer.
22521
22522 2010-07-30  Bruno Haible  <bruno@clisp.org>
22523
22524         getopt: Update regarding AIX.
22525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22526         no on AIX.
22527         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22528         Reported by Rainer Tammer.
22529
22530 2010-07-30  Bruno Haible  <bruno@clisp.org>
22531
22532         ldexpl; Update regarding AIX.
22533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22534         on AIX 7.
22535         Reported by Rainer Tammer.
22536
22537 2010-07-30  Bruno Haible  <bruno@clisp.org>
22538
22539         frexpl: Update regarding AIX.
22540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22541         on AIX 7.
22542         Reported by Rainer Tammer.
22543
22544 2010-07-30  Bruno Haible  <bruno@clisp.org>
22545
22546         open, fopen: Update regarding AIX.
22547         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22548         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22549         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22550         * doc/posix-functions/fopen.texi: Likewise.
22551         Reported by Rainer Tammer.
22552
22553 2010-07-30  Bruno Haible  <bruno@clisp.org>
22554
22555         chown: Update doc regarding AIX.
22556         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22557         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22558         Reported by Rainer Tammer.
22559
22560 2010-07-30  Eric Blake  <eblake@redhat.com>
22561
22562         strtod: fix bug in replacement function on AIX
22563         * lib/strtod.c (strtod): Special case broken "0x" parse in
22564         underlying strtod.
22565         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22566         * doc/posix-functions/strtod.texi (strtod): Likewise.
22567         Reported by Rainer Tammer.
22568
22569 2010-07-30  Bruno Haible  <bruno@clisp.org>
22570
22571         mbrlen: Fix cross-compilation guess for AIX.
22572         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22573         guess. Leftover from 2008-12-22.
22574
22575 2010-07-30  Bruno Haible  <bruno@clisp.org>
22576
22577         mbrtowc: Fix cross-compilation guess for AIX.
22578         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22579         guess. Leftover from 2008-12-21.
22580
22581 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22582
22583         init.sh: work around trap limitation of some shells
22584         * tests/init.sh (setup_): Move exit trap outside of shell function.
22585
22586 2010-07-29  Eric Blake  <eblake@redhat.com>
22587
22588         strtod: aid debugging
22589         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22590         understanding why strtod is rejected.
22591
22592 2010-07-28  Bruno Haible  <bruno@clisp.org>
22593
22594         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22595         * lib/unistr/u8-chr.c: Include <string.h>.
22596         * tests/unistr/test-u8-chr.c: Likewise.
22597         * tests/unistr/test-u16-chr.c: Likewise.
22598         * tests/unistr/test-u32-chr.c: Likewise.
22599         * tests/unistr/test-u8-strchr.c: Likewise.
22600         * tests/unistr/test-u16-strchr.c: Likewise.
22601         * tests/unistr/test-u32-strchr.c: Likewise.
22602         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22603         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22604         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22605         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22606
22607 2010-07-28  Bruno Haible  <bruno@clisp.org>
22608
22609         Use spaces for indentation, not tabs.
22610         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22611
22612 2010-07-27  Bruno Haible  <bruno@clisp.org>
22613
22614         mbspcasecmp: Fix function specification.
22615         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22616         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22617         Reported by Eric Blake <eblake@redhat.com>.
22618
22619 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22620
22621         timespec: use cast and not conditional, as truncation isn't possible
22622         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22623         instead of a conditional.  Comment about the situation in more detail.
22624         This undoes most of the 2009-10-29 patch.
22625
22626 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22627
22628         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22629         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22630         * lib/unistr/u8-strchr.c: Likewise.
22631         * modules/unistr/u8-chr: Depend on memchr.
22632
22633         unistr/u*-strchr: add tests
22634         * modules/unistr/u8-strchr-tests: New file.
22635         * modules/unistr/u16-strchr-tests: New file.
22636         * modules/unistr/u32-strchr-tests: New file.
22637         * tests/unistr/test-strchr.h: New file.
22638         * tests/unistr/test-u8-strchr.c: New file.
22639         * tests/unistr/test-u16-strchr.c: New file.
22640         * tests/unistr/test-u32-strchr.c: New file.
22641
22642         unistr/u*-chr: test multibyte sequences more
22643         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22644         test vector.
22645         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22646         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22647         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22648
22649         unistr/u*-chr: test multibyte sequences
22650         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22651
22652         unistr/u*-chr: prepare for multibyte tests
22653         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22654         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22655         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22656         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22657         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22658         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22659
22660 2010-07-18  Bruno Haible  <bruno@clisp.org>
22661
22662         unistr/u8-strchr: Optimize non-ASCII argument case.
22663         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22664         because the first byte often matches anyway.
22665         Reported by Pádraig Brady <P@draigbrady.com>.
22666
22667 2010-07-15  Karl Berry  <karl@gnu.org>
22668
22669         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22670
22671 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22672
22673         getcwd: on Solaris, work better if ancestors are inaccessible
22674         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22675         buffer and size, try again with a large buffer.  This works better
22676         on Solaris, since its getcwd succeeds even if the path to the root
22677         is inaccessible, and this is helpful in common cases such as .zfs
22678         hidden directories.  Problem reported by J Chapman Flack in
22679         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22680         Use system getcwd if it's declared, not merely if it's partly
22681         working; use the partly-working test only to avoid needless effort
22682         if the system getcwd fails.
22683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22684         comment that was already obsolete and is now even more obsolete.
22685         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22686         now might call strdup.
22687
22688 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22689
22690         pthread: Add enough so that coreutils/src/sort.c compiles.
22691         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22692         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22693         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22694         Include <sys/types.h>, in case it defines pthread_t.
22695         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22696         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22697         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22698         (pthread_rwlockattr_t, pthread_spinlock_t):
22699         New typedefs, if HAVE_PTHREAD_T is not defined.
22700         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22701         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22702         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22703         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22704         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22705         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22706         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22707         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22708         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22709         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22710         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22711         New macros.
22712         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22713         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22714         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22715         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22716         (pthread_spin_unlock): New dummy functions.
22717         (pthread_create): Return EAGAIN; don't set errno.
22718         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22719         require AC_C_INLINE.
22720         * modules/pthread (Depends-on): Add sched, time.
22721         (pthread.h): Use AM_V_GEN.
22722
22723 2010-07-13  Bruno Haible  <bruno@clisp.org>
22724
22725         striconveh: Don't malloc memory if the result buffer is sufficient.
22726         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22727         buffer if its size is sufficient.
22728         Reported by Ludovic Courtès <ludo@gnu.org>.
22729
22730 2010-07-13  Bruno Haible  <bruno@clisp.org>
22731
22732         strtod: Add safety check.
22733         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22734
22735 2010-07-12  Bruno Haible  <bruno@clisp.org>
22736
22737         Unify tests that set gl_cv_func_ldexpl_no_libm.
22738         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22739         gl_FUNC_LDEXPL.
22740         (gl_FUNC_LDEXPL): Invoke it.
22741         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22742
22743 2010-07-12  Bruno Haible  <bruno@clisp.org>
22744
22745         Unify tests that set gl_cv_func_ldexp_no_libm.
22746         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22747         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22748         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22749         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22750         * modules/strtod (Files): Add m4/ldexp.m4.
22751
22752 2010-07-12  Bruno Haible  <bruno@clisp.org>
22753
22754         Unify tests that set gl_cv_func_frexpl_no_libm.
22755         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22756         gl_FUNC_FREXPL_NO_LIBM.
22757         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22759
22760 2010-07-12  Bruno Haible  <bruno@clisp.org>
22761
22762         Unify tests that set gl_cv_func_frexp_no_libm.
22763         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22764         gl_FUNC_FREXP_NO_LIBM.
22765         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22766         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22767
22768 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22769
22770         memcoll: clarify sizes versus lengths, document better, and tweak perf
22771         * lib/memcoll.c (strcoll_loop, memcoll0):
22772         Improve quality of descriptive comments.  Name variables
22773         consistently as to whether they are lengths (which do not include
22774         terminating null) versus sizes (which do).
22775         * lib/xmemcoll.c (xmemcoll0): Likewise.
22776         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22777         returned when s1size == 0; this is easier to compile and saves
22778         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22779
22780 2010-07-12  Bruno Haible  <bruno@clisp.org>
22781
22782         Tests for module '_Exit'.
22783         * modules/_Exit-tests: New file.
22784         * tests/test-_Exit.sh: New file.
22785         * tests/test-_Exit.c: New file.
22786
22787         New module '_Exit'.
22788         * lib/stdlib.in.h (__attribute__): New macro.
22789         (_Exit): New declaration.
22790         * lib/_Exit.c: New file.
22791         * m4/_Exit.m4: New file.
22792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22794         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22795         * modules/_Exit: New file.
22796         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22797         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22798
22799 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22800
22801         strtod: make it more-accurate typically, and don't require libm
22802         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22803         Include limits.h.  Don't include string.h.
22804         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22805         (locale_isspace): New function, so that no casts are needed to
22806         check whether *s is a space.
22807         (ldexp): Provide an unused dummy if not available.
22808         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22809         (strtod): Use them.  This implementation prefers to use the
22810         underlying strtod if available, falling back on our own code
22811         only to fix known bugs.  This is more likely to produce an
22812         accurate result.  Also, it avoids the use of libm functions.
22813         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22814         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22815         was absent, but it caused a test failure with coreutils.
22816         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22817         with libm.
22818         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22819         * modules/strtod-tests (Makefile.am): Likewise.
22820
22821 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22822             Bruno Haible  <bruno@clisp.org>
22823
22824         unistr/u8-strchr: Optimize ASCII argument case.
22825         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22826
22827 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22828
22829         (x)memcoll: minor tweaks
22830         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22831         is after the type that it qualifies.
22832         (memcoll0): Likewise.
22833         * lib/memcoll.h (memcoll0): Likewise.
22834         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22835         * lib/xmemcoll.h (xmemcoll0): Likewise.
22836         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22837         differs from memcoll in that the NUL byte is part of the argument.
22838         Omit the abort-checks, as performance is a real issue here.  Plus,
22839         the checks were wrong anyway (an off-by-one error).  Omit local
22840         variable 'diff', as it's a bit clearer that way.
22841         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22842         no longer needed.
22843
22844 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22845
22846         (x)memcoll: speedup when input is known to be NUL delimited
22847         * lib/memcoll.c: Include stdlib.
22848         (memcoll0): New function.
22849         (strcoll_loop): New function, refactored for use in both memcoll
22850         and memcoll0.
22851         * lib/memcoll.h (memcoll0): Add prototype.
22852         * lib/xmemcoll.c (xmemcoll0): New function.
22853         (collate_error): New function, refactored for use in both xmemcoll
22854         and xmemcoll0.
22855         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22856         * m4/memcoll.m4: add inline invocation.
22857
22858 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22859
22860         * build-aux/bootstrap: Remove any local translations
22861         from the translation project synchronization directory,
22862         so that local only translations are not distributed.
22863
22864 2010-07-04  Bruno Haible  <bruno@clisp.org>
22865
22866         fsusage: Clarify which code applies to which platforms.
22867         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22868         platform.
22869         * lib/fsusage.c (get_fs_usage): Likewise.
22870
22871 2010-07-04  Bruno Haible  <bruno@clisp.org>
22872
22873         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22874         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22875         Reported by Martin Lambers <marlam@marlam.de>.
22876
22877 2010-07-04  Jim Meyering  <meyering@redhat.com>
22878
22879         hash: once again explicitly disallow insertion of NULL
22880         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22881         inserting a NULL pointer cannot work with these functions.
22882         Add a comment with details.
22883         This reverts part of the 2010-07-01 commit, 5bef1a35
22884         "hash: extend module to deal with non-pointer keys".
22885
22886 2010-07-01  Bruno Haible  <bruno@clisp.org>
22887
22888         stdbool: Update doc.
22889         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22890         Info from Christian Weisgerber <naddy@mips.inka.de>.
22891
22892 2010-07-01  Jim Meyering  <meyering@redhat.com>
22893
22894         hash: extend module to deal with non-pointer keys
22895         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22896         but that allows insertion of non-pointer entries.
22897         Do not disallow an ENTRY value of NULL.
22898         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22899         * lib/hash.h (hash_insert0): Declare.
22900
22901 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22902
22903         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22904         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22905         not present (i.e. with autoconf 2.59 and when using gettextize, not
22906         gnulib), require AC_GNU_SOURCE instead.
22907
22908 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22909
22910         idpriv-drop: Fix tests.
22911         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22912         not to the test-idpriv-droptemp program.
22913
22914 2010-06-29  Bruno Haible  <bruno@clisp.org>
22915
22916         string: Fix syntax error with g++ 2.96.
22917         * lib/string.in.h (__pure__): Remove definition.
22918         (_GL_ATTRIBUTE_PURE): New macro.
22919         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22920         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22921         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22922
22923 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22924
22925         unitypes: Fix bug introduced on 2010-05-18.
22926         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22927
22928 2010-06-22  Eric Blake  <eblake@redhat.com>
22929
22930         memmem: slight optimization
22931         * lib/str-two-way.h (critical_factorization): Update comments.
22932         Reduce work during factorization phase.
22933         Reported by Carlos Bueno <carlos@bueno.org>.
22934
22935 2010-06-21  Bruno Haible  <bruno@clisp.org>
22936
22937         Fix HAVE_CALLOC_POSIX misnomer.
22938         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22939         !HAVE_CALLOC_POSIX.
22940         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22941         HAVE_CALLOC_POSIX.
22942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22943         instead of HAVE_CALLOC_POSIX.
22944         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22945         HAVE_CALLOC_POSIX.
22946
22947         Use modern idiom for calloc() replacement.
22948         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22949         AC_FUNC_CALLOC.
22950         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22951         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22952         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22953         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22954         (gl_REPLACE_CALLOC): New macro.
22955
22956 2010-06-21  Bruno Haible  <bruno@clisp.org>
22957
22958         Fix HAVE_REALLOC_POSIX misnomer.
22959         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22960         !HAVE_REALLOC_POSIX.
22961         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22962         HAVE_REALLOC_POSIX.
22963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22964         instead of HAVE_REALLOC_POSIX.
22965         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22966         HAVE_REALLOC_POSIX.
22967
22968         Use modern idiom for realloc() replacement.
22969         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22970         AC_FUNC_REALLOC.
22971         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22972         Autoconf's AC_FUNC_REALLOC.
22973         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22974         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22975         (gl_REPLACE_REALLOC): New macro.
22976         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22977
22978 2010-06-21  Bruno Haible  <bruno@clisp.org>
22979
22980         Fix HAVE_MALLOC_POSIX misnomer.
22981         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22982         !HAVE_MALLOC_POSIX.
22983         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22984         HAVE_MALLOC_POSIX.
22985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22986         instead of HAVE_MALLOC_POSIX.
22987         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22988         HAVE_MALLOC_POSIX.
22989
22990         Use modern idiom for malloc() replacement.
22991         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22992         AC_FUNC_MALLOC.
22993         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22994         Autoconf's AC_FUNC_MALLOC.
22995         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22996         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22997         (gl_REPLACE_MALLOC): New macro.
22998         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22999
23000 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23001
23002         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23003         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23004         This macro takes 3 arguments, not 4.
23005
23006 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23007
23008         ipv6: fix detection under mingw
23009         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23010         in6_addr.
23011
23012 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23013
23014         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23015         that strtod() works when cross-compiling to a glibc version known
23016         to work.
23017
23018 2010-06-15  Bruno Haible  <bruno@clisp.org>
23019
23020         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23021
23022 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23023
23024         select: Correct timeout.
23025         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23026
23027 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23028
23029         git-version-gen: init shell var to avoid env var influence
23030         * build-aux/git-version-gen (v): Init shell var to empty.
23031
23032 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23033
23034         priv-set: Don't assume that priv.h exists merely because getppriv does.
23035         See Jan Andersen's bug report about AIX 5L in
23036         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23037         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23038         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23039         * lib/priv-set.h: Likewise.
23040         * tests/test-priv-set.c: Likewise.
23041
23042 2010-06-13  Bruno Haible  <bruno@clisp.org>
23043
23044         relocatable: Make it easier to test whether to install wrappers.
23045         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23046         RELOCATABLE_VIA_WRAPPER.
23047
23048 2010-06-13  Bruno Haible  <bruno@clisp.org>
23049
23050         gnulib-tool: Display specified modules and dependencies differently.
23051         * gnulib-tool (func_show_module_list): New function.
23052         (func_import, func_create_testdir): Invoke it.
23053         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23054
23055 2010-06-13  Bruno Haible  <bruno@clisp.org>
23056
23057         gnulib-tool: Align code of func_import and func_create_testdir.
23058         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23059         specified_modules.
23060
23061 2010-06-12  Jim Meyering  <meyering@redhat.com>
23062
23063         test-inttostr: avoid spurious failure on Solaris 9
23064         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23065         to accept "%ju".  Reported by Bruno Haible.
23066
23067 2010-06-11  Jim Meyering  <meyering@redhat.com>
23068
23069         test-sys_socket: mark variables as used more readably
23070         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23071         as "used" explicitly via (void) statement casts.  This is more
23072         readable than using them in an artificial return expression.
23073         Suggestion from Bruno Haible.
23074
23075 2010-06-11  Bruno Haible  <bruno@clisp.org>
23076
23077         Avoid some more warnings from "gcc -Wwrite-strings".
23078         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23079         to 'const char *'.
23080         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23081         * tests/test-c-strcasestr.c (main): Likewise.
23082         * tests/test-mbscasestr1.c (main): Likewise.
23083         * tests/test-mbscasestr2.c (main): Likewise.
23084         * tests/test-memmem.c (main): Likewise.
23085         * tests/test-strstr.c (main): Likewise.
23086         * tests/test-strcasestr.c (main): Likewise.
23087
23088 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23089
23090         init.sh: change framework_failure_ to fail with status 99, not 1
23091         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23092         automake's parallel-tests rule that this is an unexpected failure,
23093         even if the test is listed in XFAIL_TESTS.
23094
23095 2010-06-11  Jim Meyering  <meyering@redhat.com>
23096
23097         test-inttostr: avoid warnings about 4-6KB literal strings
23098         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23099         Include "macros.h", for its definition of ASSERT.
23100         (CK): s/assert/ASSERT/
23101         * modules/inttostr-tests (Files): Add macros.h.
23102
23103         init.sh: don't use $ME_ or skip_ before they are defined
23104         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23105         their first uses.  Also hoist their companions: warn_, fail_,
23106         framework_failure_, $stderr_fileno.  Prompted by a patch from
23107         Stefano Lattarini.
23108
23109         test-sys_socket: avoid set-but-not-used warnings from gcc
23110         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23111         avoid warning about set-but-not-used variables.
23112
23113         test-xvasprintf: avoid 'const' discard warnings
23114         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23115         "const" when assigning from literal strings.
23116         (test_xasprintf): Add "void" in function argument list to placate
23117         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23118
23119         tests: avoid compilation warnings in argmatch and exclude tests...
23120         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23121         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23122         Since it always exits, declare with the "noreturn" attribute.
23123         * tests/test-argmatch.c: Likewise.
23124
23125         tests: avoid 'const' discard warnings in mbsstr tests
23126         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23127         * tests/test-mbsstr2.c (main): Likewise.
23128
23129         test-verify: avoid warning from gcc's -Wmissing-declarations
23130         * tests/test-verify.c (function): Declare to be static.
23131
23132         test-inttostr.c: include <string.h> for use of strcmp
23133         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23134
23135         test-linkat: avoid failed assertion on "other" architectures
23136         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23137         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23138         sparc: https://bugs.launchpad.net/bugs/591968
23139
23140 2010-06-11  Jim Meyering  <meyering@redhat.com>
23141
23142         printf.m4: avoid autoconf's "Expanded Before Required" warning
23143         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23144         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23145         autoconf warning.
23146
23147 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23148
23149         Replacement header templates are now named with ".in", not "_".
23150         * doc/gnulib-intro.texi: Correct.
23151
23152 2010-06-10  Jim Meyering  <meyering@redhat.com>
23153
23154         inttostr-tests: depend on snprintf, not snprintf-posix
23155         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23156         snprintf-posix, to avoid this aclocal failure:
23157           missing file gnulib-tests/vasnprintf.c
23158           configure.ac:45: error: expected source file, required through \
23159           AC_LIBSOURCES, not found
23160
23161 2010-06-10  Jim Meyering  <meyering@redhat.com>
23162
23163         inttostr: add a new function, inttostr, and tests
23164         The namesake function was not available.  The existence of the
23165         template file, inttostr.c makes its addition nontrivial.
23166         * lib/anytostr.c: Rename from inttostr.c.
23167         (anytostr): Rename from inttostr.
23168         * lib/inttostr.c: New file.
23169         * modules/inttostr (Files): Add anytostr.c.
23170         (Makefile.am): Set lib_SOURCES instead of ...
23171         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23172         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23173         * lib/offtostr.c: Likewise.
23174         * lib/uinttostr.c: Likewise.
23175         * lib/umaxtostr.c: Likewise.
23176         * modules/inttostr-tests: New file.
23177         * tests/test-inttostr.c: New file.  Test these functions.
23178
23179 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23180             Bruno Haible  <bruno@clisp.org>
23181
23182         Add "Extending Gnulib" chapter to manual.
23183         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23184         chapter.
23185         (Extending Gnulib): New chapter.
23186         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23187         chapter.
23188
23189 2010-06-09  Bruno Haible  <bruno@clisp.org>
23190
23191         Avoid relocwrapper link errors due to gnulib replacement functions.
23192         * lib/areadlink.c: Use the system's malloc, realloc functions.
23193         (areadlink): Set errno to ENOMEM explicitly.
23194         * modules/areadlink (Depends-on): Remove malloc-posix.
23195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23196
23197 2010-06-09  Bruno Haible  <bruno@clisp.org>
23198
23199         Avoid relocwrapper link errors due to gnulib replacement functions.
23200         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23201         * lib/malloca.c: Likewise.
23202         * lib/relocatable.c: Likewise.
23203         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23204         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23205         * lib/setenv.c: Use the system's malloc, realloc functions.
23206         * lib/strerror.c: Use the system's sprintf function.
23207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23208
23209 2010-06-04  Bruno Haible  <bruno@clisp.org>
23210
23211         Prefer documented low-level autoconf macro names.
23212         * m4/lib-link.m4: Use m4_translit instead of translit.
23213         * m4/environ.m4: Likewise.
23214         * m4/mathfunc.m4: Likewise.
23215         * m4/onceonly.m4: Likewise.
23216         * m4/stdint.m4: Likewise.
23217         Suggested by Eric Blake.
23218
23219 2010-06-04  Martin Lambers  <marlam@marlam.de>
23220             Bruno Haible  <bruno@clisp.org>
23221
23222         havelib: Allow library names with '+' characters.
23223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23224         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23225
23226 2010-06-09  Bruno Haible  <bruno@clisp.org>
23227
23228         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23229         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23230         realloc failed.
23231
23232 2010-06-08  Peter Simons  <simons@cryp.to>
23233
23234         maint.mk: make the news-check rule more configurable
23235         * top/maint.mk (news-check-lines-spec): New variable.
23236         (news-check): Use "sed -n 1,10p" in place of "head".
23237
23238 2010-06-07  Jim Meyering  <meyering@redhat.com>
23239
23240         do-release-commit-and-tag: fix typo in --help
23241         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23242
23243         regex: avoid new dead-code warning with gcc-4.6.0
23244         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23245         if-block containing a while-loop.  It's been unused for at least
23246         5 years.
23247
23248 2010-06-05  Bruno Haible  <bruno@clisp.org>
23249
23250         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23251         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23252
23253 2010-06-04  Bruno Haible  <bruno@clisp.org>
23254
23255         Update to GNU gettext 0.18.1.
23256         * modules/gettext (configure.ac): Require gettext infrastructure from
23257         version 0.18.1.
23258
23259 2010-06-03  Bruno Haible  <bruno@clisp.org>
23260
23261         Don't use AC_LIBOBJ with file names in subdirectories.
23262         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23263         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23264         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23265         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23266         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23267         gl_LIBUNISTRING_LIBSOURCE.
23268         (Makefile.am): Augment lib_SOURCES here, conditionally.
23269         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23270
23271 2010-06-03  Bruno Haible  <bruno@clisp.org>
23272
23273         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23274         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23275         expansion does not end with a newline.
23276         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23277         unnecessary newline.
23278
23279 2010-06-03  Bruno Haible  <bruno@clisp.org>
23280
23281         Reduce dependencies.
23282         * tests/test-quotearg.h: New file, extracted from
23283         tests/test-quotearg.c.
23284         * tests/test-quotearg-simple.c: New file, extracted from
23285         tests/test-quotearg.c.
23286         * tests/test-quotearg.c: Don't include <ctype.h>.
23287         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23288         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23289         use_quote_double_quotes, use_quotearg_colon): Moved to
23290         tests/test-quotearg.h.
23291         (results_g, flag_results, custom_quotes, custom_results): Moved
23292         to tests/test-quotearg-simple.c.
23293         (main): Moved the part that does not depend on gettext to
23294         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23295         performed.
23296         * modules/quotearg-simple: New file.
23297         * modules/quotearg-simple-tests: New file.
23298         * modules/quotearg (Depends-on): Add quotearg-simple.
23299         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23300         (Files): Add tests/test-quotearg.h.
23301         Reported by Paolo Bonzini.
23302
23303 2010-06-03  Bruno Haible  <bruno@clisp.org>
23304
23305         Reduce dependencies.
23306         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23307
23308 2010-06-03  Bruno Haible  <bruno@clisp.org>
23309
23310         time: Undefine more broken macros.
23311         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23312         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23313         Reported by Eric Blake.
23314
23315 2010-06-03  Bruno Haible  <bruno@clisp.org>
23316
23317         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23318         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23319         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23320         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23321         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23322         Reported by Ludovic Courtès <ludo@gnu.org>.
23323
23324 2010-06-02  Eric Blake  <eblake@redhat.com>
23325
23326         time: work with mingw + pthreads-win32 library
23327         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23328         if timespec is defined only in pthread.h.
23329         * modules/time (Makefile.am): Substitute it.
23330         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23331         <pthread.h>, when needed.
23332         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23333         from the library.
23334
23335 2010-05-31  Bruno Haible  <bruno@clisp.org>
23336
23337         Avoid expanding two macros in the wrong order.
23338         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23339         gl_LIBUNISTRING if it is defined.
23340         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23341         autoconf >= 2.64.
23342         Reported by Ludovic Courtès <ludo@gnu.org>.
23343
23344 2010-05-27  Jim Meyering  <meyering@redhat.com>
23345
23346         maint.mk: also prohibit "#undef" of always-defined symbols
23347         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23348         Allow more than one space before the symbol name.
23349         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23350         the regexp uses alternation.
23351
23352 2010-05-26  Eric Blake  <eblake@redhat.com>
23353
23354         maint.mk: avoid echo -e
23355         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23356         Convert all uses of echo -* to printf.
23357         Reported by Matthias Bolte.
23358
23359 2010-05-25  Bruno Haible  <bruno@clisp.org>
23360
23361         Update to GNU gettext 0.18, part 2.
23362         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23363         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23364
23365 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23366
23367         Add missing include in test-pwrite.c.
23368         * tests/test-pwrite.c: Include string.h, for strcmp.
23369
23370 2010-05-24  Bruno Haible  <bruno@clisp.org>
23371
23372         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23373
23374 2010-05-24  Bruno Haible  <bruno@clisp.org>
23375
23376         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23377         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23378         iconveh_error argument.
23379         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23380         U_STRCONV_TO_LOCALE.
23381         * lib/unistr/u16-strcoll.c: Likewise.
23382         * lib/unistr/u32-strcoll.c: Likewise.
23383         * modules/unistr/u8-strcoll (Depends-on): Add
23384         uniconv/u8-strconv-to-enc, localcharset. Remove
23385         uniconv/u8-strconv-to-locale.
23386         (configure.ac): Bump version number.
23387         * modules/unistr/u16-strcoll (Depends-on): Add
23388         uniconv/u16-strconv-to-enc, localcharset. Remove
23389         uniconv/u16-strconv-to-locale.
23390         (configure.ac): Bump version number.
23391         * modules/unistr/u32-strcoll (Depends-on): Add
23392         uniconv/u32-strconv-to-enc, localcharset. Remove
23393         uniconv/u32-strconv-to-locale.
23394         (configure.ac): Bump version number.
23395
23396 2010-05-24  Bruno Haible  <bruno@clisp.org>
23397
23398         Avoid a test failure on NetBSD 5.0.
23399         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23400         an iconv() bug.
23401
23402 2010-05-24  Bruno Haible  <bruno@clisp.org>
23403
23404         Adjust #include directive style.
23405         * modules/regex (Includes): Recommend to write <regex.h>.
23406
23407 2010-05-24  Bruno Haible  <bruno@clisp.org>
23408
23409         regex: Don't require alloca.
23410         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23411         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23412         only inside if (0).
23413
23414 2010-05-23  Jim Meyering  <meyering@redhat.com>
23415
23416         test-renameat.c: include <sys/stat.h>
23417         * tests/test-renameat.c: Include <sys/stat.h>; required for
23418         definition of S_IS* macros.
23419
23420 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23421
23422         Update maintainer documentation for 'relocatable-prog' module.
23423         * doc/relocatable-maint.texi: Update.
23424         Comments by Bruno Haible.
23425
23426 2010-05-23  Bruno Haible  <bruno@clisp.org>
23427
23428         git-merge-changelog: Enable --split-merged-entry by default.
23429         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23430         (usage): Don't mention this option any more.
23431         Reported by Ralf Wildenhues.
23432
23433 2010-05-23  Jim Meyering  <meyering@redhat.com>
23434
23435         test-pwrite: do not leave behind a test file named "out"
23436         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23437         The trivial-looking use of init.sh is really necessary.
23438         It ensures that the temporary file, "out", is created in
23439         a temporary directory, and removed upon termination.
23440         * tests/test-pwrite.sh: Re-add file.
23441         * modules/pwrite-tests: Reference it.
23442
23443 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23444
23445         Fix output redirection buglet in init.sh.
23446         * tests/init.sh: Fix redirection of stderr.
23447
23448 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23449
23450         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23451
23452 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23453
23454         * modules/valgrind-tests: New file.
23455         * m4/valgrind-tests.m4: New file.
23456         * doc/valgrind-tests.texi: New file.
23457         * doc/gnulib.texi (Running self-tests under valgrind): New
23458         section.
23459
23460 2010-05-19  Bruno Haible  <bruno@clisp.org>
23461
23462         Clean up dead code in recent commit.
23463         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23464         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23465         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23466         Suggested by Paolo Bonzini.
23467
23468 2010-05-19  Bruno Haible  <bruno@clisp.org>
23469
23470         Avoid valgrind error reports from libunistring.
23471         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23472         * modules/libunistring (Files): Add it.
23473         * modules/libunistring-optional (Files): Likewise.
23474
23475 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23476             Bruno Haible  <bruno@clisp.org>
23477
23478         New module 'libunistring-optional'.
23479         * modules/libunistring-optional: New file.
23480         * m4/libunistring-base.m4: New file.
23481         * m4/libunistring-optional.m4: New file.
23482         * lib/unicase.in.h: Renamed from lib/unicase.h.
23483         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23484         * lib/unictype.in.h: Renamed from lib/unictype.h.
23485         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23486         * lib/uniname.in.h: Renamed from lib/uniname.h.
23487         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23488         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23489         * lib/unistr.in.h: Renamed from lib/unistr.h.
23490         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23491         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23492         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23493         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23494         gl_LIBUNISTRING. If the library was found, determine the installed
23495         version and set LIBUNISTRING_VERSION.
23496         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23497         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23498         handle a configuration option --with-included-libunistring.
23499         * modules/libunistring (Files): Add m4/absolute-header.m4.
23500         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23501         Add m4/libunistring-base.m4.
23502         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23503         (Makefile.am): Build unicase.h from unicase.in.h.
23504         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23505         Add m4/libunistring-base.m4.
23506         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23507         (Makefile.am): Build uniconv.h from uniconv.in.h.
23508         * modules/unictype/base (Files): Use unictype.in.h instead of
23509         unictype.h. Add m4/libunistring-base.m4.
23510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23511         (Makefile.am): Build unictype.h from unictype.in.h.
23512         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23513         Add m4/libunistring-base.m4.
23514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23515         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23516         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23517         Add m4/libunistring-base.m4.
23518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23519         (Makefile.am): Build uniname.h from uniname.in.h.
23520         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23521         Add m4/libunistring-base.m4.
23522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23523         (Makefile.am): Build uninorm.h from uninorm.in.h.
23524         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23525         unistdio.h. Add m4/libunistring-base.m4.
23526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23527         (Makefile.am): Build unistdio.h from unistdio.in.h.
23528         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23529         Add m4/libunistring-base.m4.
23530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23531         (Makefile.am): Build unistr.h from unistr.in.h.
23532         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23533         Add m4/libunistring-base.m4.
23534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23535         (Makefile.am): Build unitypes.h from unitypes.in.h.
23536         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23537         Add m4/libunistring-base.m4.
23538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23539         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23540         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23541         uniwidth.h. Add m4/libunistring-base.m4.
23542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23543         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23544         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23545         instead of augmenting lib_SOURCES.
23546         * modules/unicase/empty-suffix-context: Likewise.
23547         * modules/unicase/locale-language: Likewise.
23548         * modules/unicase/tolower: Likewise.
23549         * modules/unicase/totitle: Likewise.
23550         * modules/unicase/toupper: Likewise.
23551         * modules/unicase/u8-casecmp: Likewise.
23552         * modules/unicase/u8-casecoll: Likewise.
23553         * modules/unicase/u8-casefold: Likewise.
23554         * modules/unicase/u8-casexfrm: Likewise.
23555         * modules/unicase/u8-ct-casefold: Likewise.
23556         * modules/unicase/u8-ct-tolower: Likewise.
23557         * modules/unicase/u8-ct-totitle: Likewise.
23558         * modules/unicase/u8-ct-toupper: Likewise.
23559         * modules/unicase/u8-is-cased: Likewise.
23560         * modules/unicase/u8-is-casefolded: Likewise.
23561         * modules/unicase/u8-is-lowercase: Likewise.
23562         * modules/unicase/u8-is-titlecase: Likewise.
23563         * modules/unicase/u8-is-uppercase: Likewise.
23564         * modules/unicase/u8-prefix-context: Likewise.
23565         * modules/unicase/u8-suffix-context: Likewise.
23566         * modules/unicase/u8-tolower: Likewise.
23567         * modules/unicase/u8-totitle: Likewise.
23568         * modules/unicase/u8-toupper: Likewise.
23569         * modules/unicase/u16-casecmp: Likewise.
23570         * modules/unicase/u16-casecoll: Likewise.
23571         * modules/unicase/u16-casefold: Likewise.
23572         * modules/unicase/u16-casexfrm: Likewise.
23573         * modules/unicase/u16-ct-casefold: Likewise.
23574         * modules/unicase/u16-ct-tolower: Likewise.
23575         * modules/unicase/u16-ct-totitle: Likewise.
23576         * modules/unicase/u16-ct-toupper: Likewise.
23577         * modules/unicase/u16-is-cased: Likewise.
23578         * modules/unicase/u16-is-casefolded: Likewise.
23579         * modules/unicase/u16-is-lowercase: Likewise.
23580         * modules/unicase/u16-is-titlecase: Likewise.
23581         * modules/unicase/u16-is-uppercase: Likewise.
23582         * modules/unicase/u16-prefix-context: Likewise.
23583         * modules/unicase/u16-suffix-context: Likewise.
23584         * modules/unicase/u16-tolower: Likewise.
23585         * modules/unicase/u16-totitle: Likewise.
23586         * modules/unicase/u16-toupper: Likewise.
23587         * modules/unicase/u32-casecmp: Likewise.
23588         * modules/unicase/u32-casecoll: Likewise.
23589         * modules/unicase/u32-casefold: Likewise.
23590         * modules/unicase/u32-casexfrm: Likewise.
23591         * modules/unicase/u32-ct-casefold: Likewise.
23592         * modules/unicase/u32-ct-tolower: Likewise.
23593         * modules/unicase/u32-ct-totitle: Likewise.
23594         * modules/unicase/u32-ct-toupper: Likewise.
23595         * modules/unicase/u32-is-cased: Likewise.
23596         * modules/unicase/u32-is-casefolded: Likewise.
23597         * modules/unicase/u32-is-lowercase: Likewise.
23598         * modules/unicase/u32-is-titlecase: Likewise.
23599         * modules/unicase/u32-is-uppercase: Likewise.
23600         * modules/unicase/u32-prefix-context: Likewise.
23601         * modules/unicase/u32-suffix-context: Likewise.
23602         * modules/unicase/u32-tolower: Likewise.
23603         * modules/unicase/u32-totitle: Likewise.
23604         * modules/unicase/u32-toupper: Likewise.
23605         * modules/unicase/ulc-casecmp: Likewise.
23606         * modules/unicase/ulc-casecoll: Likewise.
23607         * modules/unicase/ulc-casexfrm: Likewise.
23608         * modules/uniconv/u8-conv-from-enc: Likewise.
23609         * modules/uniconv/u8-conv-to-enc: Likewise.
23610         * modules/uniconv/u8-strconv-from-enc: Likewise.
23611         * modules/uniconv/u8-strconv-from-locale: Likewise.
23612         * modules/uniconv/u8-strconv-to-enc: Likewise.
23613         * modules/uniconv/u8-strconv-to-locale: Likewise.
23614         * modules/uniconv/u16-conv-from-enc: Likewise.
23615         * modules/uniconv/u16-conv-to-enc: Likewise.
23616         * modules/uniconv/u16-strconv-from-enc: Likewise.
23617         * modules/uniconv/u16-strconv-from-locale: Likewise.
23618         * modules/uniconv/u16-strconv-to-enc: Likewise.
23619         * modules/uniconv/u16-strconv-to-locale: Likewise.
23620         * modules/uniconv/u32-conv-from-enc: Likewise.
23621         * modules/uniconv/u32-conv-to-enc: Likewise.
23622         * modules/uniconv/u32-strconv-from-enc: Likewise.
23623         * modules/uniconv/u32-strconv-from-locale: Likewise.
23624         * modules/uniconv/u32-strconv-to-enc: Likewise.
23625         * modules/uniconv/u32-strconv-to-locale: Likewise.
23626         * modules/unictype/bidicategory-byname: Likewise.
23627         * modules/unictype/bidicategory-name: Likewise.
23628         * modules/unictype/bidicategory-of: Likewise.
23629         * modules/unictype/bidicategory-test: Likewise.
23630         * modules/unictype/block-list: Likewise.
23631         * modules/unictype/block-test: Likewise.
23632         * modules/unictype/category-C: Likewise.
23633         * modules/unictype/category-Cc: Likewise.
23634         * modules/unictype/category-Cf: Likewise.
23635         * modules/unictype/category-Cn: Likewise.
23636         * modules/unictype/category-Co: Likewise.
23637         * modules/unictype/category-Cs: Likewise.
23638         * modules/unictype/category-L: Likewise.
23639         * modules/unictype/category-Ll: Likewise.
23640         * modules/unictype/category-Lm: Likewise.
23641         * modules/unictype/category-Lo: Likewise.
23642         * modules/unictype/category-Lt: Likewise.
23643         * modules/unictype/category-Lu: Likewise.
23644         * modules/unictype/category-M: Likewise.
23645         * modules/unictype/category-Mc: Likewise.
23646         * modules/unictype/category-Me: Likewise.
23647         * modules/unictype/category-Mn: Likewise.
23648         * modules/unictype/category-N: Likewise.
23649         * modules/unictype/category-Nd: Likewise.
23650         * modules/unictype/category-Nl: Likewise.
23651         * modules/unictype/category-No: Likewise.
23652         * modules/unictype/category-P: Likewise.
23653         * modules/unictype/category-Pc: Likewise.
23654         * modules/unictype/category-Pd: Likewise.
23655         * modules/unictype/category-Pe: Likewise.
23656         * modules/unictype/category-Pf: Likewise.
23657         * modules/unictype/category-Pi: Likewise.
23658         * modules/unictype/category-Po: Likewise.
23659         * modules/unictype/category-Ps: Likewise.
23660         * modules/unictype/category-S: Likewise.
23661         * modules/unictype/category-Sc: Likewise.
23662         * modules/unictype/category-Sk: Likewise.
23663         * modules/unictype/category-Sm: Likewise.
23664         * modules/unictype/category-So: Likewise.
23665         * modules/unictype/category-Z: Likewise.
23666         * modules/unictype/category-Zl: Likewise.
23667         * modules/unictype/category-Zp: Likewise.
23668         * modules/unictype/category-Zs: Likewise.
23669         * modules/unictype/category-and: Likewise.
23670         * modules/unictype/category-and-not: Likewise.
23671         * modules/unictype/category-byname: Likewise.
23672         * modules/unictype/category-name: Likewise.
23673         * modules/unictype/category-none: Likewise.
23674         * modules/unictype/category-of: Likewise.
23675         * modules/unictype/category-or: Likewise.
23676         * modules/unictype/category-test: Likewise.
23677         * modules/unictype/combining-class: Likewise.
23678         * modules/unictype/ctype-alnum: Likewise.
23679         * modules/unictype/ctype-alpha: Likewise.
23680         * modules/unictype/ctype-blank: Likewise.
23681         * modules/unictype/ctype-cntrl: Likewise.
23682         * modules/unictype/ctype-digit: Likewise.
23683         * modules/unictype/ctype-graph: Likewise.
23684         * modules/unictype/ctype-lower: Likewise.
23685         * modules/unictype/ctype-print: Likewise.
23686         * modules/unictype/ctype-punct: Likewise.
23687         * modules/unictype/ctype-space: Likewise.
23688         * modules/unictype/ctype-upper: Likewise.
23689         * modules/unictype/ctype-xdigit: Likewise.
23690         * modules/unictype/decimal-digit: Likewise.
23691         * modules/unictype/digit: Likewise.
23692         * modules/unictype/mirror: Likewise.
23693         * modules/unictype/numeric: Likewise.
23694         * modules/unictype/property-alphabetic: Likewise.
23695         * modules/unictype/property-ascii-hex-digit: Likewise.
23696         * modules/unictype/property-bidi-arabic-digit: Likewise.
23697         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23698         * modules/unictype/property-bidi-block-separator: Likewise.
23699         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23700         * modules/unictype/property-bidi-common-separator: Likewise.
23701         * modules/unictype/property-bidi-control: Likewise.
23702         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23703         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23704         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23705         * modules/unictype/property-bidi-european-digit: Likewise.
23706         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23707         * modules/unictype/property-bidi-left-to-right: Likewise.
23708         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23709         * modules/unictype/property-bidi-other-neutral: Likewise.
23710         * modules/unictype/property-bidi-pdf: Likewise.
23711         * modules/unictype/property-bidi-segment-separator: Likewise.
23712         * modules/unictype/property-bidi-whitespace: Likewise.
23713         * modules/unictype/property-byname: Likewise.
23714         * modules/unictype/property-combining: Likewise.
23715         * modules/unictype/property-composite: Likewise.
23716         * modules/unictype/property-currency-symbol: Likewise.
23717         * modules/unictype/property-dash: Likewise.
23718         * modules/unictype/property-decimal-digit: Likewise.
23719         * modules/unictype/property-default-ignorable-code-point: Likewise.
23720         * modules/unictype/property-deprecated: Likewise.
23721         * modules/unictype/property-diacritic: Likewise.
23722         * modules/unictype/property-extender: Likewise.
23723         * modules/unictype/property-format-control: Likewise.
23724         * modules/unictype/property-grapheme-base: Likewise.
23725         * modules/unictype/property-grapheme-extend: Likewise.
23726         * modules/unictype/property-grapheme-link: Likewise.
23727         * modules/unictype/property-hex-digit: Likewise.
23728         * modules/unictype/property-hyphen: Likewise.
23729         * modules/unictype/property-id-continue: Likewise.
23730         * modules/unictype/property-id-start: Likewise.
23731         * modules/unictype/property-ideographic: Likewise.
23732         * modules/unictype/property-ids-binary-operator: Likewise.
23733         * modules/unictype/property-ids-trinary-operator: Likewise.
23734         * modules/unictype/property-ignorable-control: Likewise.
23735         * modules/unictype/property-iso-control: Likewise.
23736         * modules/unictype/property-join-control: Likewise.
23737         * modules/unictype/property-left-of-pair: Likewise.
23738         * modules/unictype/property-line-separator: Likewise.
23739         * modules/unictype/property-logical-order-exception: Likewise.
23740         * modules/unictype/property-lowercase: Likewise.
23741         * modules/unictype/property-math: Likewise.
23742         * modules/unictype/property-non-break: Likewise.
23743         * modules/unictype/property-not-a-character: Likewise.
23744         * modules/unictype/property-numeric: Likewise.
23745         * modules/unictype/property-other-alphabetic: Likewise.
23746         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23747         * modules/unictype/property-other-grapheme-extend: Likewise.
23748         * modules/unictype/property-other-id-continue: Likewise.
23749         * modules/unictype/property-other-id-start: Likewise.
23750         * modules/unictype/property-other-lowercase: Likewise.
23751         * modules/unictype/property-other-math: Likewise.
23752         * modules/unictype/property-other-uppercase: Likewise.
23753         * modules/unictype/property-paired-punctuation: Likewise.
23754         * modules/unictype/property-paragraph-separator: Likewise.
23755         * modules/unictype/property-pattern-syntax: Likewise.
23756         * modules/unictype/property-pattern-white-space: Likewise.
23757         * modules/unictype/property-private-use: Likewise.
23758         * modules/unictype/property-punctuation: Likewise.
23759         * modules/unictype/property-quotation-mark: Likewise.
23760         * modules/unictype/property-radical: Likewise.
23761         * modules/unictype/property-sentence-terminal: Likewise.
23762         * modules/unictype/property-soft-dotted: Likewise.
23763         * modules/unictype/property-space: Likewise.
23764         * modules/unictype/property-terminal-punctuation: Likewise.
23765         * modules/unictype/property-test: Likewise.
23766         * modules/unictype/property-titlecase: Likewise.
23767         * modules/unictype/property-unassigned-code-value: Likewise.
23768         * modules/unictype/property-unified-ideograph: Likewise.
23769         * modules/unictype/property-uppercase: Likewise.
23770         * modules/unictype/property-variation-selector: Likewise.
23771         * modules/unictype/property-white-space: Likewise.
23772         * modules/unictype/property-xid-continue: Likewise.
23773         * modules/unictype/property-xid-start: Likewise.
23774         * modules/unictype/property-zero-width: Likewise.
23775         * modules/unictype/scripts: Likewise.
23776         * modules/unictype/syntax-c-ident: Likewise.
23777         * modules/unictype/syntax-c-whitespace: Likewise.
23778         * modules/unictype/syntax-java-ident: Likewise.
23779         * modules/unictype/syntax-java-whitespace: Likewise.
23780         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23781         * modules/unilbrk/u8-width-linebreaks: Likewise.
23782         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23783         * modules/unilbrk/u16-width-linebreaks: Likewise.
23784         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23785         * modules/unilbrk/u32-width-linebreaks: Likewise.
23786         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23787         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23788         * modules/uniname/uniname: Likewise.
23789         * modules/uninorm/canonical-decomposition: Likewise.
23790         * modules/uninorm/composition: Likewise.
23791         * modules/uninorm/decomposing-form: Likewise.
23792         * modules/uninorm/decomposition: Likewise.
23793         * modules/uninorm/filter: Likewise.
23794         * modules/uninorm/nfc: Likewise.
23795         * modules/uninorm/nfd: Likewise.
23796         * modules/uninorm/nfkc: Likewise.
23797         * modules/uninorm/nfkd: Likewise.
23798         * modules/uninorm/u8-normalize: Likewise.
23799         * modules/uninorm/u8-normcmp: Likewise.
23800         * modules/uninorm/u8-normcoll: Likewise.
23801         * modules/uninorm/u8-normxfrm: Likewise.
23802         * modules/uninorm/u16-normalize: Likewise.
23803         * modules/uninorm/u16-normcmp: Likewise.
23804         * modules/uninorm/u16-normcoll: Likewise.
23805         * modules/uninorm/u16-normxfrm: Likewise.
23806         * modules/uninorm/u32-normalize: Likewise.
23807         * modules/uninorm/u32-normcmp: Likewise.
23808         * modules/uninorm/u32-normcoll: Likewise.
23809         * modules/uninorm/u32-normxfrm: Likewise.
23810         * modules/unistdio/u8-asnprintf: Likewise.
23811         * modules/unistdio/u8-asprintf: Likewise.
23812         * modules/unistdio/u8-snprintf: Likewise.
23813         * modules/unistdio/u8-sprintf: Likewise.
23814         * modules/unistdio/u8-u8-asnprintf: Likewise.
23815         * modules/unistdio/u8-u8-asprintf: Likewise.
23816         * modules/unistdio/u8-u8-snprintf: Likewise.
23817         * modules/unistdio/u8-u8-sprintf: Likewise.
23818         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23819         * modules/unistdio/u8-u8-vasprintf: Likewise.
23820         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23821         * modules/unistdio/u8-u8-vsprintf: Likewise.
23822         * modules/unistdio/u8-vasnprintf: Likewise.
23823         * modules/unistdio/u8-vasprintf: Likewise.
23824         * modules/unistdio/u8-vsnprintf: Likewise.
23825         * modules/unistdio/u8-vsprintf: Likewise.
23826         * modules/unistdio/u16-asnprintf: Likewise.
23827         * modules/unistdio/u16-asprintf: Likewise.
23828         * modules/unistdio/u16-snprintf: Likewise.
23829         * modules/unistdio/u16-sprintf: Likewise.
23830         * modules/unistdio/u16-u16-asnprintf: Likewise.
23831         * modules/unistdio/u16-u16-asprintf: Likewise.
23832         * modules/unistdio/u16-u16-snprintf: Likewise.
23833         * modules/unistdio/u16-u16-sprintf: Likewise.
23834         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23835         * modules/unistdio/u16-u16-vasprintf: Likewise.
23836         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23837         * modules/unistdio/u16-u16-vsprintf: Likewise.
23838         * modules/unistdio/u16-vasnprintf: Likewise.
23839         * modules/unistdio/u16-vasprintf: Likewise.
23840         * modules/unistdio/u16-vsnprintf: Likewise.
23841         * modules/unistdio/u16-vsprintf: Likewise.
23842         * modules/unistdio/u32-asnprintf: Likewise.
23843         * modules/unistdio/u32-asprintf: Likewise.
23844         * modules/unistdio/u32-snprintf: Likewise.
23845         * modules/unistdio/u32-sprintf: Likewise.
23846         * modules/unistdio/u32-u32-asnprintf: Likewise.
23847         * modules/unistdio/u32-u32-asprintf: Likewise.
23848         * modules/unistdio/u32-u32-snprintf: Likewise.
23849         * modules/unistdio/u32-u32-sprintf: Likewise.
23850         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23851         * modules/unistdio/u32-u32-vasprintf: Likewise.
23852         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23853         * modules/unistdio/u32-u32-vsprintf: Likewise.
23854         * modules/unistdio/u32-vasnprintf: Likewise.
23855         * modules/unistdio/u32-vasprintf: Likewise.
23856         * modules/unistdio/u32-vsnprintf: Likewise.
23857         * modules/unistdio/u32-vsprintf: Likewise.
23858         * modules/unistdio/ulc-asnprintf: Likewise.
23859         * modules/unistdio/ulc-asprintf: Likewise.
23860         * modules/unistdio/ulc-fprintf: Likewise.
23861         * modules/unistdio/ulc-snprintf: Likewise.
23862         * modules/unistdio/ulc-sprintf: Likewise.
23863         * modules/unistdio/ulc-vasnprintf: Likewise.
23864         * modules/unistdio/ulc-vasprintf: Likewise.
23865         * modules/unistdio/ulc-vfprintf: Likewise.
23866         * modules/unistdio/ulc-vsnprintf: Likewise.
23867         * modules/unistdio/ulc-vsprintf: Likewise.
23868         * modules/unistr/u8-check: Likewise.
23869         * modules/unistr/u8-chr: Likewise.
23870         * modules/unistr/u8-cmp: Likewise.
23871         * modules/unistr/u8-cmp2: Likewise.
23872         * modules/unistr/u8-cpy: Likewise.
23873         * modules/unistr/u8-cpy-alloc: Likewise.
23874         * modules/unistr/u8-endswith: Likewise.
23875         * modules/unistr/u8-mblen: Likewise.
23876         * modules/unistr/u8-mbsnlen: Likewise.
23877         * modules/unistr/u8-mbtouc: Likewise.
23878         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23879         * modules/unistr/u8-mbtoucr: Likewise.
23880         * modules/unistr/u8-move: Likewise.
23881         * modules/unistr/u8-next: Likewise.
23882         * modules/unistr/u8-prev: Likewise.
23883         * modules/unistr/u8-set: Likewise.
23884         * modules/unistr/u8-startswith: Likewise.
23885         * modules/unistr/u8-stpcpy: Likewise.
23886         * modules/unistr/u8-stpncpy: Likewise.
23887         * modules/unistr/u8-strcat: Likewise.
23888         * modules/unistr/u8-strchr: Likewise.
23889         * modules/unistr/u8-strcmp: Likewise.
23890         * modules/unistr/u8-strcoll: Likewise.
23891         * modules/unistr/u8-strcpy: Likewise.
23892         * modules/unistr/u8-strcspn: Likewise.
23893         * modules/unistr/u8-strdup: Likewise.
23894         * modules/unistr/u8-strlen: Likewise.
23895         * modules/unistr/u8-strmblen: Likewise.
23896         * modules/unistr/u8-strmbtouc: Likewise.
23897         * modules/unistr/u8-strncat: Likewise.
23898         * modules/unistr/u8-strncmp: Likewise.
23899         * modules/unistr/u8-strncpy: Likewise.
23900         * modules/unistr/u8-strnlen: Likewise.
23901         * modules/unistr/u8-strpbrk: Likewise.
23902         * modules/unistr/u8-strrchr: Likewise.
23903         * modules/unistr/u8-strspn: Likewise.
23904         * modules/unistr/u8-strstr: Likewise.
23905         * modules/unistr/u8-strtok: Likewise.
23906         * modules/unistr/u8-to-u16: Likewise.
23907         * modules/unistr/u8-to-u32: Likewise.
23908         * modules/unistr/u8-uctomb: Likewise.
23909         * modules/unistr/u16-check: Likewise.
23910         * modules/unistr/u16-chr: Likewise.
23911         * modules/unistr/u16-cmp: Likewise.
23912         * modules/unistr/u16-cmp2: Likewise.
23913         * modules/unistr/u16-cpy: Likewise.
23914         * modules/unistr/u16-cpy-alloc: Likewise.
23915         * modules/unistr/u16-endswith: Likewise.
23916         * modules/unistr/u16-mblen: Likewise.
23917         * modules/unistr/u16-mbsnlen: Likewise.
23918         * modules/unistr/u16-mbtouc: Likewise.
23919         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23920         * modules/unistr/u16-mbtoucr: Likewise.
23921         * modules/unistr/u16-move: Likewise.
23922         * modules/unistr/u16-next: Likewise.
23923         * modules/unistr/u16-prev: Likewise.
23924         * modules/unistr/u16-set: Likewise.
23925         * modules/unistr/u16-startswith: Likewise.
23926         * modules/unistr/u16-stpcpy: Likewise.
23927         * modules/unistr/u16-stpncpy: Likewise.
23928         * modules/unistr/u16-strcat: Likewise.
23929         * modules/unistr/u16-strchr: Likewise.
23930         * modules/unistr/u16-strcmp: Likewise.
23931         * modules/unistr/u16-strcoll: Likewise.
23932         * modules/unistr/u16-strcpy: Likewise.
23933         * modules/unistr/u16-strcspn: Likewise.
23934         * modules/unistr/u16-strdup: Likewise.
23935         * modules/unistr/u16-strlen: Likewise.
23936         * modules/unistr/u16-strmblen: Likewise.
23937         * modules/unistr/u16-strmbtouc: Likewise.
23938         * modules/unistr/u16-strncat: Likewise.
23939         * modules/unistr/u16-strncmp: Likewise.
23940         * modules/unistr/u16-strncpy: Likewise.
23941         * modules/unistr/u16-strnlen: Likewise.
23942         * modules/unistr/u16-strpbrk: Likewise.
23943         * modules/unistr/u16-strrchr: Likewise.
23944         * modules/unistr/u16-strspn: Likewise.
23945         * modules/unistr/u16-strstr: Likewise.
23946         * modules/unistr/u16-strtok: Likewise.
23947         * modules/unistr/u16-to-u32: Likewise.
23948         * modules/unistr/u16-to-u8: Likewise.
23949         * modules/unistr/u16-uctomb: Likewise.
23950         * modules/unistr/u32-check: Likewise.
23951         * modules/unistr/u32-chr: Likewise.
23952         * modules/unistr/u32-cmp: Likewise.
23953         * modules/unistr/u32-cmp2: Likewise.
23954         * modules/unistr/u32-cpy: Likewise.
23955         * modules/unistr/u32-cpy-alloc: Likewise.
23956         * modules/unistr/u32-endswith: Likewise.
23957         * modules/unistr/u32-mblen: Likewise.
23958         * modules/unistr/u32-mbsnlen: Likewise.
23959         * modules/unistr/u32-mbtouc: Likewise.
23960         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23961         * modules/unistr/u32-mbtoucr: Likewise.
23962         * modules/unistr/u32-move: Likewise.
23963         * modules/unistr/u32-next: Likewise.
23964         * modules/unistr/u32-prev: Likewise.
23965         * modules/unistr/u32-set: Likewise.
23966         * modules/unistr/u32-startswith: Likewise.
23967         * modules/unistr/u32-stpcpy: Likewise.
23968         * modules/unistr/u32-stpncpy: Likewise.
23969         * modules/unistr/u32-strcat: Likewise.
23970         * modules/unistr/u32-strchr: Likewise.
23971         * modules/unistr/u32-strcmp: Likewise.
23972         * modules/unistr/u32-strcoll: Likewise.
23973         * modules/unistr/u32-strcpy: Likewise.
23974         * modules/unistr/u32-strcspn: Likewise.
23975         * modules/unistr/u32-strdup: Likewise.
23976         * modules/unistr/u32-strlen: Likewise.
23977         * modules/unistr/u32-strmblen: Likewise.
23978         * modules/unistr/u32-strmbtouc: Likewise.
23979         * modules/unistr/u32-strncat: Likewise.
23980         * modules/unistr/u32-strncmp: Likewise.
23981         * modules/unistr/u32-strncpy: Likewise.
23982         * modules/unistr/u32-strnlen: Likewise.
23983         * modules/unistr/u32-strpbrk: Likewise.
23984         * modules/unistr/u32-strrchr: Likewise.
23985         * modules/unistr/u32-strspn: Likewise.
23986         * modules/unistr/u32-strstr: Likewise.
23987         * modules/unistr/u32-strtok: Likewise.
23988         * modules/unistr/u32-to-u16: Likewise.
23989         * modules/unistr/u32-to-u8: Likewise.
23990         * modules/unistr/u32-uctomb: Likewise.
23991         * modules/uniwbrk/u8-wordbreaks: Likewise.
23992         * modules/uniwbrk/u16-wordbreaks: Likewise.
23993         * modules/uniwbrk/u32-wordbreaks: Likewise.
23994         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23995         * modules/uniwbrk/wordbreak-property: Likewise.
23996         * modules/uniwidth/u8-strwidth: Likewise.
23997         * modules/uniwidth/u8-width: Likewise.
23998         * modules/uniwidth/u16-strwidth: Likewise.
23999         * modules/uniwidth/u16-width: Likewise.
24000         * modules/uniwidth/u32-strwidth: Likewise.
24001         * modules/uniwidth/u32-width: Likewise.
24002         * modules/uniwidth/width: Likewise.
24003         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24004         with $(LIBUNISTRING).
24005         * modules/unicase/ignorable-tests: Likewise.
24006         * modules/unicase/locale-language-tests: Likewise.
24007         * modules/unicase/tolower-tests: Likewise.
24008         * modules/unicase/totitle-tests: Likewise.
24009         * modules/unicase/toupper-tests: Likewise.
24010         * modules/unicase/u8-casecmp-tests: Likewise.
24011         * modules/unicase/u8-casecoll-tests: Likewise.
24012         * modules/unicase/u8-casefold-tests: Likewise.
24013         * modules/unicase/u8-is-cased-tests: Likewise.
24014         * modules/unicase/u8-is-casefolded-tests: Likewise.
24015         * modules/unicase/u8-is-lowercase-tests: Likewise.
24016         * modules/unicase/u8-is-titlecase-tests: Likewise.
24017         * modules/unicase/u8-is-uppercase-tests: Likewise.
24018         * modules/unicase/u8-tolower-tests: Likewise.
24019         * modules/unicase/u8-totitle-tests: Likewise.
24020         * modules/unicase/u8-toupper-tests: Likewise.
24021         * modules/unicase/u16-casecmp-tests: Likewise.
24022         * modules/unicase/u16-casecoll-tests: Likewise.
24023         * modules/unicase/u16-casefold-tests: Likewise.
24024         * modules/unicase/u16-is-cased-tests: Likewise.
24025         * modules/unicase/u16-is-casefolded-tests: Likewise.
24026         * modules/unicase/u16-is-lowercase-tests: Likewise.
24027         * modules/unicase/u16-is-titlecase-tests: Likewise.
24028         * modules/unicase/u16-is-uppercase-tests: Likewise.
24029         * modules/unicase/u16-tolower-tests: Likewise.
24030         * modules/unicase/u16-totitle-tests: Likewise.
24031         * modules/unicase/u16-toupper-tests: Likewise.
24032         * modules/unicase/u32-casecmp-tests: Likewise.
24033         * modules/unicase/u32-casecoll-tests: Likewise.
24034         * modules/unicase/u32-casefold-tests: Likewise.
24035         * modules/unicase/u32-is-cased-tests: Likewise.
24036         * modules/unicase/u32-is-casefolded-tests: Likewise.
24037         * modules/unicase/u32-is-lowercase-tests: Likewise.
24038         * modules/unicase/u32-is-titlecase-tests: Likewise.
24039         * modules/unicase/u32-is-uppercase-tests: Likewise.
24040         * modules/unicase/u32-tolower-tests: Likewise.
24041         * modules/unicase/u32-totitle-tests: Likewise.
24042         * modules/unicase/u32-toupper-tests: Likewise.
24043         * modules/unicase/ulc-casecmp-tests: Likewise.
24044         * modules/unicase/ulc-casecoll-tests: Likewise.
24045         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24046         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24047         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24048         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24049         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24050         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24051         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24052         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24053         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24054         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24055         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24056         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24057         * modules/unictype/bidicategory-byname-tests: Likewise.
24058         * modules/unictype/bidicategory-name-tests: Likewise.
24059         * modules/unictype/bidicategory-of-tests: Likewise.
24060         * modules/unictype/bidicategory-test-tests: Likewise.
24061         * modules/unictype/block-list-tests: Likewise.
24062         * modules/unictype/block-of-tests: Likewise.
24063         * modules/unictype/block-test-tests: Likewise.
24064         * modules/unictype/category-C-tests: Likewise.
24065         * modules/unictype/category-Cc-tests: Likewise.
24066         * modules/unictype/category-Cf-tests: Likewise.
24067         * modules/unictype/category-Cn-tests: Likewise.
24068         * modules/unictype/category-Co-tests: Likewise.
24069         * modules/unictype/category-Cs-tests: Likewise.
24070         * modules/unictype/category-L-tests: Likewise.
24071         * modules/unictype/category-Ll-tests: Likewise.
24072         * modules/unictype/category-Lm-tests: Likewise.
24073         * modules/unictype/category-Lo-tests: Likewise.
24074         * modules/unictype/category-Lt-tests: Likewise.
24075         * modules/unictype/category-Lu-tests: Likewise.
24076         * modules/unictype/category-M-tests: Likewise.
24077         * modules/unictype/category-Mc-tests: Likewise.
24078         * modules/unictype/category-Me-tests: Likewise.
24079         * modules/unictype/category-Mn-tests: Likewise.
24080         * modules/unictype/category-N-tests: Likewise.
24081         * modules/unictype/category-Nd-tests: Likewise.
24082         * modules/unictype/category-Nl-tests: Likewise.
24083         * modules/unictype/category-No-tests: Likewise.
24084         * modules/unictype/category-P-tests: Likewise.
24085         * modules/unictype/category-Pc-tests: Likewise.
24086         * modules/unictype/category-Pd-tests: Likewise.
24087         * modules/unictype/category-Pe-tests: Likewise.
24088         * modules/unictype/category-Pf-tests: Likewise.
24089         * modules/unictype/category-Pi-tests: Likewise.
24090         * modules/unictype/category-Po-tests: Likewise.
24091         * modules/unictype/category-Ps-tests: Likewise.
24092         * modules/unictype/category-S-tests: Likewise.
24093         * modules/unictype/category-Sc-tests: Likewise.
24094         * modules/unictype/category-Sk-tests: Likewise.
24095         * modules/unictype/category-Sm-tests: Likewise.
24096         * modules/unictype/category-So-tests: Likewise.
24097         * modules/unictype/category-Z-tests: Likewise.
24098         * modules/unictype/category-Zl-tests: Likewise.
24099         * modules/unictype/category-Zp-tests: Likewise.
24100         * modules/unictype/category-Zs-tests: Likewise.
24101         * modules/unictype/category-and-not-tests: Likewise.
24102         * modules/unictype/category-and-tests: Likewise.
24103         * modules/unictype/category-byname-tests: Likewise.
24104         * modules/unictype/category-name-tests: Likewise.
24105         * modules/unictype/category-none-tests: Likewise.
24106         * modules/unictype/category-of-tests: Likewise.
24107         * modules/unictype/category-or-tests: Likewise.
24108         * modules/unictype/category-test-withtable-tests: Likewise.
24109         * modules/unictype/combining-class-tests: Likewise.
24110         * modules/unictype/ctype-alnum-tests: Likewise.
24111         * modules/unictype/ctype-alpha-tests: Likewise.
24112         * modules/unictype/ctype-blank-tests: Likewise.
24113         * modules/unictype/ctype-cntrl-tests: Likewise.
24114         * modules/unictype/ctype-digit-tests: Likewise.
24115         * modules/unictype/ctype-graph-tests: Likewise.
24116         * modules/unictype/ctype-lower-tests: Likewise.
24117         * modules/unictype/ctype-print-tests: Likewise.
24118         * modules/unictype/ctype-punct-tests: Likewise.
24119         * modules/unictype/ctype-space-tests: Likewise.
24120         * modules/unictype/ctype-upper-tests: Likewise.
24121         * modules/unictype/ctype-xdigit-tests: Likewise.
24122         * modules/unictype/decimal-digit-tests: Likewise.
24123         * modules/unictype/digit-tests: Likewise.
24124         * modules/unictype/mirror-tests: Likewise.
24125         * modules/unictype/numeric-tests: Likewise.
24126         * modules/unictype/property-alphabetic-tests: Likewise.
24127         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24128         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24129         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24130         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24131         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24132         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24133         * modules/unictype/property-bidi-control-tests: Likewise.
24134         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24135         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24136         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24137         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24138         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24139         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24140         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24141         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24142         * modules/unictype/property-bidi-pdf-tests: Likewise.
24143         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24144         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24145         * modules/unictype/property-byname-tests: Likewise.
24146         * modules/unictype/property-combining-tests: Likewise.
24147         * modules/unictype/property-composite-tests: Likewise.
24148         * modules/unictype/property-currency-symbol-tests: Likewise.
24149         * modules/unictype/property-dash-tests: Likewise.
24150         * modules/unictype/property-decimal-digit-tests: Likewise.
24151         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24152         * modules/unictype/property-deprecated-tests: Likewise.
24153         * modules/unictype/property-diacritic-tests: Likewise.
24154         * modules/unictype/property-extender-tests: Likewise.
24155         * modules/unictype/property-format-control-tests: Likewise.
24156         * modules/unictype/property-grapheme-base-tests: Likewise.
24157         * modules/unictype/property-grapheme-extend-tests: Likewise.
24158         * modules/unictype/property-grapheme-link-tests: Likewise.
24159         * modules/unictype/property-hex-digit-tests: Likewise.
24160         * modules/unictype/property-hyphen-tests: Likewise.
24161         * modules/unictype/property-id-continue-tests: Likewise.
24162         * modules/unictype/property-id-start-tests: Likewise.
24163         * modules/unictype/property-ideographic-tests: Likewise.
24164         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24165         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24166         * modules/unictype/property-ignorable-control-tests: Likewise.
24167         * modules/unictype/property-iso-control-tests: Likewise.
24168         * modules/unictype/property-join-control-tests: Likewise.
24169         * modules/unictype/property-left-of-pair-tests: Likewise.
24170         * modules/unictype/property-line-separator-tests: Likewise.
24171         * modules/unictype/property-logical-order-exception-tests: Likewise.
24172         * modules/unictype/property-lowercase-tests: Likewise.
24173         * modules/unictype/property-math-tests: Likewise.
24174         * modules/unictype/property-non-break-tests: Likewise.
24175         * modules/unictype/property-not-a-character-tests: Likewise.
24176         * modules/unictype/property-numeric-tests: Likewise.
24177         * modules/unictype/property-other-alphabetic-tests: Likewise.
24178         * modules/unictype/property-other-default-ignorable-code-point-tests:
24179         Likewise.
24180         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24181         * modules/unictype/property-other-id-continue-tests: Likewise.
24182         * modules/unictype/property-other-id-start-tests: Likewise.
24183         * modules/unictype/property-other-lowercase-tests: Likewise.
24184         * modules/unictype/property-other-math-tests: Likewise.
24185         * modules/unictype/property-other-uppercase-tests: Likewise.
24186         * modules/unictype/property-paired-punctuation-tests: Likewise.
24187         * modules/unictype/property-paragraph-separator-tests: Likewise.
24188         * modules/unictype/property-pattern-syntax-tests: Likewise.
24189         * modules/unictype/property-pattern-white-space-tests: Likewise.
24190         * modules/unictype/property-private-use-tests: Likewise.
24191         * modules/unictype/property-punctuation-tests: Likewise.
24192         * modules/unictype/property-quotation-mark-tests: Likewise.
24193         * modules/unictype/property-radical-tests: Likewise.
24194         * modules/unictype/property-sentence-terminal-tests: Likewise.
24195         * modules/unictype/property-soft-dotted-tests: Likewise.
24196         * modules/unictype/property-space-tests: Likewise.
24197         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24198         * modules/unictype/property-test-tests: Likewise.
24199         * modules/unictype/property-titlecase-tests: Likewise.
24200         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24201         * modules/unictype/property-unified-ideograph-tests: Likewise.
24202         * modules/unictype/property-uppercase-tests: Likewise.
24203         * modules/unictype/property-variation-selector-tests: Likewise.
24204         * modules/unictype/property-white-space-tests: Likewise.
24205         * modules/unictype/property-xid-continue-tests: Likewise.
24206         * modules/unictype/property-xid-start-tests: Likewise.
24207         * modules/unictype/property-zero-width-tests: Likewise.
24208         * modules/unictype/scripts-tests: Likewise.
24209         * modules/unictype/syntax-c-ident-tests: Likewise.
24210         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24211         * modules/unictype/syntax-java-ident-tests: Likewise.
24212         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24213         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24214         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24215         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24216         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24217         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24218         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24219         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24220         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24221         * modules/uniname/uniname-tests: Likewise.
24222         * modules/uninorm/canonical-decomposition-tests: Likewise.
24223         * modules/uninorm/compat-decomposition-tests: Likewise.
24224         * modules/uninorm/composition-tests: Likewise.
24225         * modules/uninorm/decomposing-form-tests: Likewise.
24226         * modules/uninorm/decomposition-tests: Likewise.
24227         * modules/uninorm/filter-tests: Likewise.
24228         * modules/uninorm/nfc-tests: Likewise.
24229         * modules/uninorm/nfd-tests: Likewise.
24230         * modules/uninorm/nfkc-tests: Likewise.
24231         * modules/uninorm/nfkd-tests: Likewise.
24232         * modules/uninorm/u8-normcmp-tests: Likewise.
24233         * modules/uninorm/u8-normcoll-tests: Likewise.
24234         * modules/uninorm/u16-normcmp-tests: Likewise.
24235         * modules/uninorm/u16-normcoll-tests: Likewise.
24236         * modules/uninorm/u32-normcmp-tests: Likewise.
24237         * modules/uninorm/u32-normcoll-tests: Likewise.
24238         * modules/unistdio/u8-asnprintf-tests: Likewise.
24239         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24240         * modules/unistdio/u8-vasprintf-tests: Likewise.
24241         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24242         * modules/unistdio/u8-vsprintf-tests: Likewise.
24243         * modules/unistdio/u16-asnprintf-tests: Likewise.
24244         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24245         * modules/unistdio/u16-vasprintf-tests: Likewise.
24246         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24247         * modules/unistdio/u16-vsprintf-tests: Likewise.
24248         * modules/unistdio/u32-asnprintf-tests: Likewise.
24249         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24250         * modules/unistdio/u32-vasprintf-tests: Likewise.
24251         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24252         * modules/unistdio/u32-vsprintf-tests: Likewise.
24253         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24254         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24255         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24256         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24257         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24258         * modules/unistr/u8-check-tests: Likewise.
24259         * modules/unistr/u8-chr-tests: Likewise.
24260         * modules/unistr/u8-cmp-tests: Likewise.
24261         * modules/unistr/u8-cmp2-tests: Likewise.
24262         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24263         * modules/unistr/u8-cpy-tests: Likewise.
24264         * modules/unistr/u8-mblen-tests: Likewise.
24265         * modules/unistr/u8-mbsnlen-tests: Likewise.
24266         * modules/unistr/u8-mbtouc-tests: Likewise.
24267         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24268         * modules/unistr/u8-mbtoucr-tests: Likewise.
24269         * modules/unistr/u8-move-tests: Likewise.
24270         * modules/unistr/u8-next-tests: Likewise.
24271         * modules/unistr/u8-prev-tests: Likewise.
24272         * modules/unistr/u8-set-tests: Likewise.
24273         * modules/unistr/u8-stpcpy-tests: Likewise.
24274         * modules/unistr/u8-stpncpy-tests: Likewise.
24275         * modules/unistr/u8-strcat-tests: Likewise.
24276         * modules/unistr/u8-strcmp-tests: Likewise.
24277         * modules/unistr/u8-strcoll-tests: Likewise.
24278         * modules/unistr/u8-strcpy-tests: Likewise.
24279         * modules/unistr/u8-strdup-tests: Likewise.
24280         * modules/unistr/u8-strlen-tests: Likewise.
24281         * modules/unistr/u8-strmblen-tests: Likewise.
24282         * modules/unistr/u8-strmbtouc-tests: Likewise.
24283         * modules/unistr/u8-strncat-tests: Likewise.
24284         * modules/unistr/u8-strncmp-tests: Likewise.
24285         * modules/unistr/u8-strncpy-tests: Likewise.
24286         * modules/unistr/u8-strnlen-tests: Likewise.
24287         * modules/unistr/u8-to-u16-tests: Likewise.
24288         * modules/unistr/u8-to-u32-tests: Likewise.
24289         * modules/unistr/u8-uctomb-tests: Likewise.
24290         * modules/unistr/u16-check-tests: Likewise.
24291         * modules/unistr/u16-chr-tests: Likewise.
24292         * modules/unistr/u16-cmp-tests: Likewise.
24293         * modules/unistr/u16-cmp2-tests: Likewise.
24294         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24295         * modules/unistr/u16-cpy-tests: Likewise.
24296         * modules/unistr/u16-mblen-tests: Likewise.
24297         * modules/unistr/u16-mbsnlen-tests: Likewise.
24298         * modules/unistr/u16-mbtouc-tests: Likewise.
24299         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24300         * modules/unistr/u16-mbtoucr-tests: Likewise.
24301         * modules/unistr/u16-move-tests: Likewise.
24302         * modules/unistr/u16-next-tests: Likewise.
24303         * modules/unistr/u16-prev-tests: Likewise.
24304         * modules/unistr/u16-set-tests: Likewise.
24305         * modules/unistr/u16-stpcpy-tests: Likewise.
24306         * modules/unistr/u16-stpncpy-tests: Likewise.
24307         * modules/unistr/u16-strcat-tests: Likewise.
24308         * modules/unistr/u16-strcmp-tests: Likewise.
24309         * modules/unistr/u16-strcoll-tests: Likewise.
24310         * modules/unistr/u16-strcpy-tests: Likewise.
24311         * modules/unistr/u16-strdup-tests: Likewise.
24312         * modules/unistr/u16-strlen-tests: Likewise.
24313         * modules/unistr/u16-strmblen-tests: Likewise.
24314         * modules/unistr/u16-strmbtouc-tests: Likewise.
24315         * modules/unistr/u16-strncat-tests: Likewise.
24316         * modules/unistr/u16-strncmp-tests: Likewise.
24317         * modules/unistr/u16-strncpy-tests: Likewise.
24318         * modules/unistr/u16-strnlen-tests: Likewise.
24319         * modules/unistr/u16-to-u32-tests: Likewise.
24320         * modules/unistr/u16-to-u8-tests: Likewise.
24321         * modules/unistr/u16-uctomb-tests: Likewise.
24322         * modules/unistr/u32-check-tests: Likewise.
24323         * modules/unistr/u32-chr-tests: Likewise.
24324         * modules/unistr/u32-cmp-tests: Likewise.
24325         * modules/unistr/u32-cmp2-tests: Likewise.
24326         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24327         * modules/unistr/u32-cpy-tests: Likewise.
24328         * modules/unistr/u32-mblen-tests: Likewise.
24329         * modules/unistr/u32-mbsnlen-tests: Likewise.
24330         * modules/unistr/u32-mbtouc-tests: Likewise.
24331         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24332         * modules/unistr/u32-mbtoucr-tests: Likewise.
24333         * modules/unistr/u32-move-tests: Likewise.
24334         * modules/unistr/u32-next-tests: Likewise.
24335         * modules/unistr/u32-prev-tests: Likewise.
24336         * modules/unistr/u32-set-tests: Likewise.
24337         * modules/unistr/u32-stpcpy-tests: Likewise.
24338         * modules/unistr/u32-stpncpy-tests: Likewise.
24339         * modules/unistr/u32-strcat-tests: Likewise.
24340         * modules/unistr/u32-strcmp-tests: Likewise.
24341         * modules/unistr/u32-strcoll-tests: Likewise.
24342         * modules/unistr/u32-strcpy-tests: Likewise.
24343         * modules/unistr/u32-strdup-tests: Likewise.
24344         * modules/unistr/u32-strlen-tests: Likewise.
24345         * modules/unistr/u32-strmblen-tests: Likewise.
24346         * modules/unistr/u32-strmbtouc-tests: Likewise.
24347         * modules/unistr/u32-strncat-tests: Likewise.
24348         * modules/unistr/u32-strncmp-tests: Likewise.
24349         * modules/unistr/u32-strncpy-tests: Likewise.
24350         * modules/unistr/u32-strnlen-tests: Likewise.
24351         * modules/unistr/u32-to-u16-tests: Likewise.
24352         * modules/unistr/u32-to-u8-tests: Likewise.
24353         * modules/unistr/u32-uctomb-tests: Likewise.
24354         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24355         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24356         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24357         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24358         * modules/uniwidth/u8-strwidth-tests: Likewise.
24359         * modules/uniwidth/u8-width-tests: Likewise.
24360         * modules/uniwidth/u16-strwidth-tests: Likewise.
24361         * modules/uniwidth/u16-width-tests: Likewise.
24362         * modules/uniwidth/u32-strwidth-tests: Likewise.
24363         * modules/uniwidth/u32-width-tests: Likewise.
24364         * modules/uniwidth/width-tests: Likewise.
24365
24366 2010-05-18  Richard Jones  <rjones@redhat.com>
24367
24368         doc: users.txt: list hivex
24369         * users.txt: Add hivex.
24370
24371 2010-05-18  Richard Jones  <rjones@redhat.com>
24372
24373         doc: users.txt: list febootstrap
24374         * users.txt: Add febootstrap.
24375
24376 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24377
24378         bootstrap: fix an error when gnulib is not used as a git submodule
24379         * build-aux/bootstrap (gnulib_path): If its length is zero then
24380         assign "gnulib" to it.
24381         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24382
24383 2010-05-16  Bruno Haible  <bruno@clisp.org>
24384
24385         Avoid autoconf warnings about AM_ICONV.
24386         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24387         2.64.
24388
24389 2010-05-16  Bruno Haible  <bruno@clisp.org>
24390
24391         absolute-header: Make the macro usable in more situations.
24392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24393         from gl_ABSOLUTE_HEADER.
24394         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24395
24396 2010-05-16  James Youngman  <jay@gnu.org>
24397
24398         doc: update users.txt
24399         * users.txt: Add CSSC.
24400
24401 2010-05-16  Jim Meyering  <meyering@redhat.com>
24402
24403         init.sh: fix an error in the previous change; add more comments
24404         * tests/init.sh: Compare exit code in loop against 9, not 2.
24405         Patch by Bruno Haible.
24406         Make the two tests more similar by adding an empty "then" clause.
24407         Add comments.
24408
24409         init.sh: avoid unnecessary shell re-exec
24410         * tests/init.sh: Improve the re-exec-required check to first test the
24411         current shell.  If it passes the test, do not search for a shell that
24412         does pass, and do not re-exec.  This test is particularly contorted to
24413         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24414         of $(...) evokes a syntax error and causes immediate shell exit with
24415         status 2.  Bruno Haible reported that the re-exec made it impossible
24416         to single-step through any init.sh-using script.
24417
24418 2010-05-16  Bruno Haible  <bruno@clisp.org>
24419
24420         Fix collision between gnulib's and libintl's printf replacements.
24421         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24422         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24423         (printf): When using GNU C, map the __printf__ function to rpl_printf
24424         via __asm__. When not using GNU C, define rpl_printf instead of
24425         __printf__.
24426         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24427         commit.
24428         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24429         commit.
24430         * m4/asm-underscore.m4: New file.
24431         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24432         * modules/stdio (Files): Add m4/asm-underscore.m4.
24433         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24434         Reported by Ben Pfaff.
24435
24436 2010-05-16  Bruno Haible  <bruno@clisp.org>
24437
24438         verify: Avoid skipping the test on openSUSE 11.0.
24439         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24440
24441 2010-05-13  Bruno Haible  <bruno@clisp.org>
24442
24443         Avoid useless warnings from G++.
24444         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24445         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24447
24448 2010-05-11  Jim Meyering  <meyering@redhat.com>
24449
24450         maint.mk: tweak preceding change
24451         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24452         regexps tighter by anchoring at EOL, and make the new group "shy"
24453         for slightly decreased overhead.
24454
24455 2010-05-11  Eric Blake  <eblake@redhat.com>
24456
24457         maint.mk: gnulib doesn't guarantee NSIG
24458         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24459
24460 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24461
24462         test-pwrite.c: Remove unused variable declaration.
24463         * tests/test-pwrite.c (main): Remove read_buf declaration.
24464
24465         Remove useless test-pwrite.sh file.
24466         * tests/test-pwrite.sh: Delete file.
24467         * modules/pwrite-tests: Remove references.
24468         Reported by Bruno Haible.
24469
24470 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24471
24472         init.sh: fix a typo
24473         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24474
24475 2010-05-10  Jim Meyering  <meyering@redhat.com>
24476
24477         maint.mk: avoid using a temporary file in the always-defined-macros check
24478         * top/maint.mk (.re-defmac): Remove rule.
24479         (gl_trap_): Remove definition.
24480         (sc_prohibit_always-defined_macros): Rewrite not to create and
24481         depend on a temporary file.  Instead, depend on GNU grep's ability
24482         to read a list of regular expressions from stdin when given "-f -".
24483
24484 2010-05-09  Bruno Haible  <bruno@clisp.org>
24485
24486         Update to GNU gettext 0.18, part 1.
24487         * m4/gettext.m4: Update to GNU gettext 0.18.
24488         * m4/intl.m4: Likewise.
24489         * m4/po.m4: Likewise.
24490         * modules/gettext (Files): Add m4/fcntl-o.m4.
24491         (configure.ac): Require gettext infrastructure from version 0.18.
24492
24493 2010-05-09  Jim Meyering  <meyering@redhat.com>
24494
24495         init.sh: enable MALLOC_PERTURB_
24496         * tests/init.sh: Enable glibc's malloc-perturbing option.
24497
24498         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24499         With my recent change in init.sh from the two-line form:
24500             -#   : ${srcdir=.}
24501             -#   . "$srcdir/init.sh"; path_prepend_ .
24502             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24503         I noticed that using the one-line form would cause this test
24504         to fail with a false-positive, or to stop working altogether,
24505         depending on whether help-version changed or all the tests did.
24506         * top/maint.mk (_hv_regex): Remove this definition.
24507         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24508         (_hv_regex_strong): Use a stronger regex to check for conformance.
24509         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24510         Give a separate diagnostic for lack of conforming use.
24511
24512         maint.mk: prohibit definition of symbols defined by gnulib
24513         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24514         definition of symbols defined by gnulib.
24515
24516 2010-05-09  Bruno Haible  <bruno@clisp.org>
24517
24518         acl: Avoid test failure on Cygwin-hosted mingw.
24519         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24520
24521 2010-05-09  Bruno Haible  <bruno@clisp.org>
24522
24523         error: Use system's fcntl function.
24524         * lib/error.c (fcntl): Undefine.
24525
24526 2010-05-09  Jim Meyering  <meyering@redhat.com>
24527
24528         verify: adjust formatting to be more consistent
24529         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24530         argument-list '('s, and after one comma.
24531
24532 2010-05-09  Bruno Haible  <bruno@clisp.org>
24533
24534         error: More reliable output on mingw.
24535         * lib/error.c: Include <windows.h>.
24536         (is_open): New function.
24537         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24538         defined.
24539
24540 2010-05-09  Bruno Haible  <bruno@clisp.org>
24541
24542         vasnprintf: Fix syntax errors in libintl build on mingw.
24543         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24544         pad_ourselves and prec_ourselves after use.
24545
24546 2010-05-08  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/config.charset: Update comments for Cygwin 1.7.
24549         * lib/localcharset.c: Likewise.
24550
24551 2010-05-07  Jim Meyering  <meyering@redhat.com>
24552
24553         init.sh: improve comments
24554         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24555         . "${srcdir=.}/init.sh"; path_prepend_ .
24556         Add a note about path_prepend_ and the alternative of using
24557         TESTS_ENVIRONMENT.
24558
24559 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24560
24561         exclude: Unescape hashed patterns in wildcard mode.
24562         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24563         to the hash list.
24564         * tests/test-exclude8.sh: New test case.
24565         * modules/exclude-tests: Add new test.
24566
24567 2010-05-05  Eric Blake  <eblake@redhat.com>
24568
24569         verify: automate tests
24570         * modules/verify-tests: New module.
24571         * tests/test-verify.sh: New file.
24572         * tests/test-verify.c: Guard each negative test with a unique id.
24573         Also avoid warning about unused left hand of comma expressions.
24574
24575 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24576
24577         Further improvements to verify.h, suggested by Eric Blake.
24578         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24579         the GL_* versions, to avoid collision with OpenGL.
24580         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24581         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24582         than testing merely whether it's defined.
24583
24584         Modify verify.h to pacify gcc -Wredundant_decls.
24585         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24586         These use the prefix "GL_" since they're likely to be useful elsewhere.
24587         We may need to break them out into a different .h file.
24588         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24589         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24590         of verify_function__.
24591
24592 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24593
24594         Tests for module pwrite.
24595         * modules/pwrite-tests: New file.
24596         * tests/test-pwrite.sh: New file.
24597         * tests/test-pwrite.c: New file.
24598
24599         New module pwrite.
24600         * lib/unistd.in.h (pwrite): New declaration.
24601         * lib/pwrite.c: New file, from glibc with modifications.
24602         * m4/pwrite.m4: New file.
24603         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24604         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24605         REPLACE_PWRITE.
24606         * modules/pwrite: New file.
24607         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24608         REPLACE_PWRITE.
24609         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24610         * doc/posix-functions/pwrite.texi: Mention the new module.
24611
24612 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24613
24614         pread: Update documentation.
24615         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24616
24617 2010-05-04  Eric Blake  <eblake@redhat.com>
24618
24619         docs: update cygwin progress
24620         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24621         this bug.
24622         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24623         Added in cygwin 1.7.2.
24624         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24625         Likewise.
24626         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24627         Likewise.
24628         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24629         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24630         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24631         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24632         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24633         Mention nproc module.
24634         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24635         bug in cygwin 1.7.5 addition.
24636         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24637         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24638         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24639         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24640         1.7.5.
24641         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24642         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24643         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24644         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24645         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24646         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24647         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24648         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24649         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24650         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24651         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24652         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24653         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24654         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24655         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24656         Likewise.
24657         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24658         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24659         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24660         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24661         Likewise.
24662         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24663         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24664         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24665         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24666         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24667         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24668         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24669         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24670         Likewise.
24671         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24672         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24673         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24674         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24675         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24676         Likewise.
24677         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24678         Likewise.
24679         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24680         Likewise.
24681         * doc/glibc-functions/xdrrec_endofrecord.texi
24682         (xdrrec_endofrecord): Likewise.
24683         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24684         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24685         Likewise.
24686         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24687         Likewise.
24688
24689 2010-05-04  Jim Meyering  <meyering@redhat.com>
24690
24691         gendocs.sh: make its "-s FILE" option more useful
24692         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24693         $PACKAGE to reflect the probably-different basename of "FILE".
24694
24695 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24696
24697         bootstrap: don't ignore download_po_files failure
24698         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24699         failure.
24700
24701 2010-05-03  Jim Meyering  <meyering@redhat.com>
24702
24703         maint.mk: allow to pass options to gendocs.sh
24704         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24705         (gendocs_options_): New overridable variable.
24706
24707         gnu-web-doc-update: don't ignore configure or build failure
24708         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24709
24710         announce-gen: backslash-escape '@'s in --help output
24711         * build-aux/announce-gen: Fix syntax errors.
24712
24713         maint.mk, announce-gen: allow project-specific announcement mail headers
24714         * top/maint.mk (translation_project_): Define default.
24715         (announcement_Cc_, announcement_mail_headers_): Likewise.
24716         (announcement): Invoke announce-gen with new --mail-headers option.
24717         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24718
24719         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24720         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24721         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24722         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24723         line in the "err2" output file when running "make check" in verbose
24724         mode (i.e., with set -x enabled).
24725
24726 2010-05-03  Bruno Haible  <bruno@clisp.org>
24727
24728         wctob: Fix for weird platforms.
24729         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24730         argument value.
24731
24732 2010-05-03  Jim Meyering  <meyering@redhat.com>
24733
24734         maint.mk: prohibit unwarranted use of <strings.h>
24735         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24736         strings.h in a file that does not also use strcasecmp, strncasecmp,
24737         ffs or ffsll.
24738
24739         maint.mk: remove obsolete comments
24740         * top/maint.mk: Remove stale, commented-out rules.
24741
24742 2010-05-02  Bruno Haible  <bruno@clisp.org>
24743
24744         wcwidth: Declare also when it's aliased.
24745         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24746         macro.
24747
24748 2010-05-02  Bruno Haible  <bruno@clisp.org>
24749
24750         Fix regression from 2010-04-25.
24751         * gnulib-tool (func_modules_transitive_closure): Check the status of
24752         all modules, not only of the tests that are of the form foo-tests where
24753         foo is a module.
24754
24755 2010-05-02  Bruno Haible  <bruno@clisp.org>
24756
24757         wctob: Work around nasty Cygwin 1.7.2 bug.
24758         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24759         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24760
24761 2010-05-01  Bruno Haible  <bruno@clisp.org>
24762
24763         fpurge: Sharper test.
24764         * tests/test-fpurge.c (main): Add one more ftell check.
24765         * modules/fpurge-tests (Depends-on): Add ftell.
24766         Suggested by Eric Blake.
24767
24768 2010-05-01  Bruno Haible  <bruno@clisp.org>
24769
24770         ftello: Another test.
24771         * tests/test-ftello3.c: New file.
24772         * modules/ftello-tests (Files): Add it.
24773         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24774         MOSTLYCLEANFILES.
24775
24776         ftell: Another test.
24777         * tests/test-ftell3.c: New file.
24778         * modules/ftell-tests (Files): Add it.
24779         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24780         MOSTLYCLEANFILES.
24781
24782 2010-05-01  Bruno Haible  <bruno@clisp.org>
24783
24784         ftell, ftello: Work around Solaris bug.
24785         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24786         * lib/ftello.c: Include stdio-impl.h.
24787         (ftello): On Solaris, when _IOWRT is set, compute the result without
24788         looking at _IOREAD.
24789         * modules/ftello (Files): Add lib/stdio-impl.h.
24790         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24791         * doc/posix-functions/ftello.texi: Likewise.
24792         Reported by Eric Blake.
24793
24794 2010-05-01  Bruno Haible  <bruno@clisp.org>
24795
24796         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24797         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24798         the _IOWRT flag is also set.
24799
24800 2010-05-01  Bruno Haible  <bruno@clisp.org>
24801
24802         Fix doc about a HP-UX stdio bug.
24803         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24804         * doc/posix-functions/ftello.texi: Likewise.
24805
24806 2010-05-01  Bruno Haible  <bruno@clisp.org>
24807
24808         lseek test: Fix failure on Solaris.
24809         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24810         output.
24811
24812 2010-04-30  Jim Meyering  <meyering@redhat.com>
24813
24814         bootstrap: don't ignore failure to generate po*/Makevars
24815         * build-aux/bootstrap (with_gettext): Don't ignore failure
24816         to create po/Makevars or runtime-po/Makevars.
24817
24818 2010-04-29  Eric Blake  <eblake@redhat.com>
24819
24820         headers: relax license to LGPLv2+
24821         * modules/fcntl-h (License): Relax license.
24822         * modules/getopt-posix (License): Likewise.
24823         * modules/locale (License): Likewise.
24824         * modules/math (License): Likewise.
24825         * modules/pty (License): Likewise.
24826         * modules/sched (License): Likewise.
24827         * modules/search (License): Likewise.
24828         * modules/spawn (License): Likewise.
24829         * modules/stdarg (License): Likewise.
24830         * modules/sysexits (License): Likewise.
24831
24832 2010-04-29  Jim Meyering  <meyering@redhat.com>
24833
24834         inttypes: relax license to LGPLv2+
24835         * modules/inttypes (License): Relax license.
24836
24837 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24838
24839         * top/maint.mk (indent): Run twice to produce idempotent results.
24840
24841 2010-04-28  Bruno Haible  <bruno@clisp.org>
24842
24843         getdate: Generate getdate.c in the source directory.
24844         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24845         MOSTLYCLEANFILES.
24846         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24847
24848 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24849
24850         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24851         is not declared as a const *; avoid warnings in that case.
24852
24853 2010-04-28  Eric Blake  <eblake@redhat.com>
24854
24855         canonicalize-lgpl: avoid compiler warning
24856         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24857         declaration' / 'extraneous semicolon' warning with some compilers.
24858         Reported by Andreas Gruenbacher.
24859
24860 2010-04-28  Jim Meyering  <meyering@redhat.com>
24861
24862         init.sh: ensure a more reliable exit status when exiting via trap
24863         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24864         Inspired by patches from Dmitry V. Levin.
24865         Also trap on signal 3 (SIGQUIT).
24866
24867 2010-04-27  Bruno Haible  <bruno@clisp.org>
24868
24869         Update doc about utimes().
24870         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24871         'utimens' module.
24872         Reported by Andreas Gruenbacher <agruen@suse.de>.
24873
24874 2010-04-27  Eric Blake  <eblake@redhat.com>
24875
24876         full-read, full-write: relax license
24877         * modules/full-read (License): Drop to LGPLv2+.
24878         * modules/full-write (License): Likewise.
24879         * modules/safe-read (License): Likewise.
24880         * modules/safe-write (License): Likewise.
24881
24882         pthread: mention library for linking
24883         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24884
24885 2010-04-27  Jim Meyering  <meyering@redhat.com>
24886
24887         maint.mk: fix a bug introduced in last change
24888         * top/maint.mk (gl_assured_headers_): Now that all names are on
24889         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24890         is not anchored to end of word, it should be adequate.
24891
24892         maint.mk: avoid side-effect in latest syntax-check
24893         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24894         to run commands via $(shell...), and hence to incur cost only when
24895         the new rule is actually run.
24896
24897         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24898         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24899         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24900         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24901         (gl_assured_headers_, az_, AZ_): Define.
24902         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24903
24904 2010-04-26  Jim Meyering  <jim@meyering.net>
24905             Bruno Haible  <bruno@clisp.org>
24906
24907         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24908         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24909         Prompted by an exchange with Gilles Espinasse.
24910
24911 2010-04-26  Jim Meyering  <meyering@redhat.com>
24912
24913         git-version-gen: aesthetic tweak
24914         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24915         so that the command remains on a single line.
24916
24917 2010-04-26  Eric Blake  <eblake@redhat.com>
24918
24919         git-version-gen: allow use on EBCDIC hosts
24920         * build-aux/git-version-gen (dirty): Use literal rather than tying
24921         ourselves to ascii.
24922         Reported by Steve Goetze.
24923
24924 2010-04-25  Bruno Haible  <bruno@clisp.org>
24925
24926         netdb: Add support for GNULIB_POSIXCHECK.
24927         * lib/netdb.in.h: Include warn-on-use.h.
24928         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24929         functions are used when GNULIB_POSIXCHECK is defined and the
24930         getaddrinfo module is not in use.
24931         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24932         freeaddrinfo, gai_strerror, getnameinfo are declared.
24933         * modules/netdb (Depends-on): Add warn-on-use.
24934         (Makefile.am): Include warn-on-use.h in netdb.h.
24935
24936 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24937
24938         build: avoid "make check" failure without .git/ directory
24939         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24940         there is no .git/ directory.
24941
24942 2010-04-25  Bruno Haible  <bruno@clisp.org>
24943
24944         ptsname: Fix misuse of ttyname_r.
24945         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24946         of errno.
24947
24948 2010-04-25  Bruno Haible  <bruno@clisp.org>
24949
24950         ttyname_r: Make it work on Solaris 10.
24951         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24952         if the system function has the POSIX declaration. Test whether the
24953         function fails if the buffer is less than 128 bytes large.
24954         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24955         system's ttyname_r function. Provide a reasonably large buffer.
24956         * modules/ttyname_r (Depends-on): Add extensions.
24957         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24958
24959 2010-04-25  Bruno Haible  <bruno@clisp.org>
24960
24961         Use the 'extensions' module for some more functions on Solaris.
24962         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24963         module.
24964         * doc/posix-functions/ctime_r.texi: Likewise.
24965         * doc/posix-functions/getgrgid_r.texi: Likewise.
24966         * doc/posix-functions/getgrnam_r.texi: Likewise.
24967         * doc/posix-functions/getpwnam_r.texi: Likewise.
24968         * doc/posix-functions/getpwuid_r.texi: Likewise.
24969         * doc/posix-functions/readdir_r.texi: Likewise.
24970         * doc/posix-functions/sigwait.texi: Likewise.
24971         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24972         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24973
24974 2010-04-25  Bruno Haible  <bruno@clisp.org>
24975
24976         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24977         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24978         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24979         * lib/ttyname_r.c: Include <limits.h>.
24980         (ttyname_r): Define using the system's ttyname_r function, if it exists
24981         and not on Solaris.
24982         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24983         set.
24984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24985         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24986         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24987         Reported by Simon Josefsson.
24988
24989 2010-04-25  Bruno Haible  <bruno@clisp.org>
24990
24991         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24992         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24993         * doc/posix-functions/ctime_r.texi: Likewise.
24994         * doc/posix-functions/getgrgid_r.texi: Likewise.
24995         * doc/posix-functions/getgrnam_r.texi: Likewise.
24996         * doc/posix-functions/getlogin_r.texi: Likewise.
24997         * doc/posix-functions/getpwnam_r.texi: Likewise.
24998         * doc/posix-functions/getpwuid_r.texi: Likewise.
24999         * doc/posix-functions/readdir_r.texi: Likewise.
25000         * doc/posix-functions/sigwait.texi: Likewise.
25001         * doc/posix-functions/ttyname_r.texi: Likewise.
25002         Reported by Simon Josefsson.
25003
25004 2010-04-25  Bruno Haible  <bruno@clisp.org>
25005
25006         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25007         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25008         also to --create-testdir.
25009         (func_acceptable): Don't consider the status of *-tests modules here.
25010         (func_modules_transitive_closure): Consider it here, before including a
25011         test module.
25012         (func_import, func_create_testdir): Set inc_all_direct_tests,
25013         inc_all_indirect_tests.
25014         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25015         --create-testdir and --create-megatestdir.
25016
25017 2010-04-25  Bruno Haible  <bruno@clisp.org>
25018
25019         gnulib-tool: Add --without-*-tests options.
25020         * gnulib-tool (func_usage): Document the --without-*-tests options.
25021         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25022         excl_unportable_tests): New variables.
25023         Fail if they are specified with --import or --update.
25024         (func_acceptable): Respect the excl_*_tests variables.
25025         (func_import): Set the excl_*_tests variables to empty.
25026
25027 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25028             Bruno Haible  <bruno@clisp.org>
25029
25030         Work around a MacOS X 10.4 bug with openpty.
25031         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25032         * tests/test-openpty.c (main): Close the master side explicitly.
25033
25034 2010-04-25  Bruno Haible  <bruno@clisp.org>
25035
25036         strnlen: Fix a C++ test error on MacOS X and Solaris.
25037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25038         the function is not declared.
25039         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25040         Simon Josefsson.
25041
25042 2010-04-24  Bruno Haible  <bruno@clisp.org>
25043
25044         Avoid a gcc warning.
25045         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25046         of correct type for %08lx directive.
25047         Reported by Eric Blake.
25048
25049 2010-04-24  Bruno Haible  <bruno@clisp.org>
25050
25051         vasnprintf: Correct errno value in case of out-of-memory.
25052         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25053         or sprintf. Use the errno value from SNPRINTF or sprintf.
25054         Reported by Ian Beckwith <ianb@erislabs.net>.
25055
25056 2010-04-24  Bruno Haible  <bruno@clisp.org>
25057
25058         ansi-c++-opt: Find correct compiler when cross-compiling.
25059         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25060         AC_CHECK_PROGS.
25061         Reported by Simon Josefsson.
25062
25063 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25064
25065         vc-list-files: Add support for subversion
25066         * build-aux/vc-list-files: Use "svn list" to generate the list of
25067         files controlled by subversion.
25068
25069 2010-04-23  Jim Meyering  <meyering@redhat.com>
25070
25071         vc-list-files tests: convert to use init.sh
25072         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25073         path_prepend_.
25074         Use Exit, not exit.
25075         Use skip_ rather than open coding it.
25076         Remove trap set-up and compare definitions.
25077         * tests/test-vc-list-files-git.sh: Likewise.
25078         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25079
25080 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25081
25082         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25083         backup files.
25084
25085 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25086
25087         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25088
25089 2010-04-20  Eric Blake  <eblake@redhat.com>
25090
25091         tests: be robust to ignored SIGPIPE
25092         * tests/test-select-in.sh: Consume all output.
25093         * tests/test-lseek.sh: Check correct exit status, while avoiding
25094         EPIPE.
25095
25096 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25097             Bruno Haible  <bruno@clisp.org>
25098
25099         visibility: Don't use -fvisibility if it leads to a warning.
25100         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25101         yes, don't pretend that visibility works if it leads to a warning.
25102         Reported by Mike Gran <spk121@yahoo.com>.
25103
25104 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25105
25106         * build-aux/bootstrap: Use "git -h" for testing for supported options
25107         instead of "git --help".  The short-form option only shows a summary,
25108         and doesn't layout the full man page.  Grep for the full option name
25109         in the summary, too.
25110
25111 2010-04-19  Bruno Haible  <bruno@clisp.org>
25112
25113         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25115         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25116         mention of RELOCATABLE_STRIP.
25117         Reported by Sylvain Beucler <beuc@beuc.net>.
25118
25119 2010-04-19  Bruno Haible  <bruno@clisp.org>
25120
25121         * lib/diffseq.h: Fix typo in comment.
25122         Reported by Eric Blake.
25123
25124 2010-04-19  Bruno Haible  <bruno@clisp.org>
25125
25126         ioctl: Move autoconf macro to a .m4 file.
25127         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25128         * modules/ioctl (Files): Add it.
25129         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25130         Reported by Ian Beckwith <ianb@erislabs.net>.
25131
25132 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25133             Bruno Haible  <bruno@clisp.org>
25134
25135         diffseq: Accommodate use-case with abstract arrays.
25136         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25137         is not defined.
25138         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25139         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25140
25141 2010-04-18  Bruno Haible  <bruno@clisp.org>
25142
25143         * doc/posix-headers/stdbool.texi: More precise wording.
25144
25145 2010-04-17  Jim Meyering  <meyering@redhat.com>
25146
25147         maint.mk: use gnu-style indentation in an embedded perl script
25148         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25149         Rename variable: s/two/last_two_bytes/
25150
25151 2010-04-16  Eric Blake  <eblake@redhat.com>
25152
25153         test-stdbool: skip test that fails with Solaris CC
25154         * tests/test-stdbool.c (f): Skip test that causes compilation
25155         error under buggy C++ compiler.
25156         * lib/stdbool.in.h: Document the limitation.
25157         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25158
25159         setenv: allow compilation with C++
25160         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25161         register keyword.
25162
25163         stdint: allow test to pass with C++
25164         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25165
25166         getopt: allow compilation with C++
25167         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25168         struct.
25169         * lib/getopt.c (_getopt_internal_r): Use correct type.
25170         Reported by Dagobert Michelson, via Joel E. Denny.
25171
25172 2010-04-16  Bruno Haible  <bruno@clisp.org>
25173
25174         Override netdb.h always.
25175         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25177         Reported by Ludovic Courtès <ludo@gnu.org>.
25178
25179 2010-04-15  Bruno Haible  <bruno@clisp.org>
25180
25181         openpty: Fix mistake from 2010-03-21.
25182         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25183         Reported by Simon Josefsson.
25184
25185 2010-04-15  Eric Blake  <eblake@redhat.com>
25186
25187         test-forkpty: fix expected signature
25188         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25189         Reported by Simon Josefsson.
25190
25191 2010-04-15  Jim Meyering  <meyering@redhat.com>
25192
25193         maint.mk: texinfo_suffix_re_: correct the default regexp
25194         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25195
25196         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25197         make it configurable via texinfo_suffix_re_.
25198
25199 2010-04-14  Eric Blake  <eblake@redhat.com>
25200
25201         strtok_r: relax license to LGPLv2+
25202         * modules/strtok_r (License): Relax license.
25203         Reported by Matthias Bolte.
25204
25205 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25206
25207         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25208         version 1.4.4 by default instead of requiring the libgcrypt
25209         version used during build.  This makes it possible to use the
25210         application with older but still binary compatible libgcrypt
25211         versions.
25212
25213 2010-04-13  Eric Blake  <eblake@redhat.com>
25214
25215         getopt-gnu: match recent glibc fixes and posix ruling
25216         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25217         '+' handling, when requesting extensions.
25218         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25219         'W;' handling.
25220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25221         * doc/posix-functions/getopt.texi (getopt): Document this.
25222         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25223         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25224         Likewise.
25225
25226         getopt: merge bug fixes from glibc
25227         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25228         diagnostics.  Honor '+:' correctly.  Reject ';'.
25229
25230         getopt-posix: detect MacOS bug
25231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25232         optind when missing a required argument.
25233         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25234         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25235         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25236         Likewise.
25237
25238         getopt-posix: avoid spurious failure on Solaris
25239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25240         an indicator that setting optind=1 is sufficient for reset.
25241
25242         getopt-posix: avoid spurious failure on FreeBSD
25243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25244         in POSIX mode, since the m4 test uses it.
25245
25246         gnulib-tool: silence warning on BSD sh
25247         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25248
25249 2010-04-13  Jim Meyering  <meyering@redhat.com>
25250
25251         doc: users.txt: GNU patch now uses gnulib
25252         * users.txt: Add patch.
25253
25254 2010-04-12  Jim Meyering  <meyering@redhat.com>
25255
25256         maint.mk: generate more concise timing data for syntax-check rules
25257         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25258         " done" from each line that reports a syntax-check test duration.
25259
25260 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25261
25262         git-version-gen: use "git update-index..." rather than "git status"
25263         * build-aux/git-version-gen: Use git update-index --refresh, not
25264         "git status".  With some versions of git, "git status" would fail
25265         to update the index and result in an unwarranted "-dirty" suffix.
25266
25267 2010-04-11  Jim Meyering  <meyering@redhat.com>
25268
25269         openat: correct formatting (no semantic change)
25270         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25271         Suggested by Bruno Haible.
25272
25273 2010-04-11  Bruno Haible  <bruno@clisp.org>
25274
25275         Stricter declaration checking in testdirs.
25276         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25277         If for_tests is true, augment AM_CPPFLAGS to define
25278         GNULIB_STRICT_CHECKING.
25279         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25280         GNULIB_STRICT_CHECKING is defined, verify that the function is
25281         declared.
25282
25283 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25284             Bruno Haible  <bruno@clisp.org>
25285
25286         libunistring: Improve configure output.
25287         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25288         Don't say "consider installing GNU libunistring" when checking again
25289         with libiconv.
25290
25291 2010-04-11  Bruno Haible  <bruno@clisp.org>
25292
25293         libunistring: Correct value of $LTLIBUNISTRING.
25294         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25295         correct the value of $LTLIBUNISTRING.
25296
25297 2010-04-11  Bruno Haible  <bruno@clisp.org>
25298
25299         havelib: Add static libraries to LIBS in the right order.
25300         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25301         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25302
25303 2010-04-11  Bruno Haible  <bruno@clisp.org>
25304
25305         libunistring: Detect libunistring also when it depends on libiconv.
25306         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25307         the second AC_LIB_HAVE_LINKFLAGS invocation.
25308
25309 2010-04-11  James Youngman  <jay@gnu.org>
25310
25311         close-stream: declare local scalars to be "const"
25312         * lib/close-stream.c (close_stream): Make boolean variables const
25313         to document the fact that we set but do not change them.
25314
25315 2010-04-11  Bruno Haible  <bruno@clisp.org>
25316
25317         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25318
25319 2010-04-11  Jim Meyering  <meyering@redhat.com>
25320
25321         maint.mk: don't include dist-check.mk
25322         * top/maint.mk: Remove bogus include directive.
25323
25324         maint.mk: improve empty-line-at-EOF check
25325         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25326         solution, rather than tail+Perl-based one.  The latter would read
25327         a few kilobytes from the end of each file, and did not handle empty
25328         files properly.
25329
25330         maint.mk: print the elapsed time for each syntax-check rule
25331         * top/maint.mk (sc_m_rules_): Save start time in a file.
25332         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25333         (local-check): Interpose the .z rules
25334
25335 2010-04-11  Jim Meyering  <meyering@redhat.com>
25336
25337         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25338         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25339         empty file with one that ends in an empty line.
25340
25341 2010-04-10  Bruno Haible  <bruno@clisp.org>
25342
25343         mkdir: Make it work on mingw64.
25344         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25345         * lib/mkdir.c: Update comment.
25346         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25347
25348 2010-04-10  Bruno Haible  <bruno@clisp.org>
25349
25350         Don't override improved macro from newer autoconf.
25351         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25352         autoconf >= 2.62.
25353         Reported by Joel E. Denny <jdenny@clemson.edu>.
25354
25355 2010-04-10  Jim Meyering  <meyering@redhat.com>
25356
25357         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25358         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25359
25360         maint.mk: correct a diagnostic
25361         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25362         in diagnostic; now use $prohibit.
25363
25364 2010-04-10  Bruno Haible  <address@hidden>
25365
25366         fchownat: Fix a C++ test error on Solaris 8.
25367         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25368         the function does not exist.
25369
25370 2010-04-10  Bruno Haible  <bruno@clisp.org>
25371
25372         vasnprintf: Add more tests.
25373         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25374         (test_function): Test converting an invalid wide string.
25375
25376         vasnprintf: Correct handling of unconvertible wide string arguments.
25377         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25378         VASNPRINTF.
25379         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25380         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25381         smaller than the expected maximum need for the directive. Set errno to
25382         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25383         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25385         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25386         * modules/vasnprintf (Files): Add m4/printf.m4.
25387         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25388
25389 2010-04-10  Bruno Haible  <bruno@clisp.org>
25390
25391         vasnprintf: Fix crash in %ls directive.
25392         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25393         string is passed as argument to %ls, with no precision and no width.
25394         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25395
25396 2010-04-10  Bruno Haible  <bruno@clisp.org>
25397
25398         vasnprintf: Fix multiple test failures on mingw.
25399         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25400         _snprintf, or snwprintf, not _snwprintf.
25401
25402 2010-04-10  Bruno Haible  <bruno@clisp.org>
25403
25404         write: Fix a C++ test error on mingw.
25405         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25406
25407 2010-04-10  Bruno Haible  <bruno@clisp.org>
25408
25409         vasnprintf test: Reduce code duplication.
25410         * tests/test-vasnprintf.c (test_function): New function, extracted from
25411         test_vasnprintf.
25412         (test_vasnprintf, test_asnprintf): Invoke it.
25413
25414 2010-04-10  Bruno Haible  <bruno@clisp.org>
25415
25416         strnlen: Fix warning in C++ mode on MacOS X.
25417         * lib/string.in.h (strnlen): Use the modern idiom.
25418         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25419         defining strnlen as a macro already in <config.h>.
25420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25421         REPLACE_STRNLEN.
25422         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25424
25425 2010-04-08  James Youngman  <jay@gnu.org>
25426
25427         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25428         the example.
25429
25430 2010-04-09  Jim Meyering  <meyering@redhat.com>
25431
25432         maint.mk: print better diagnostic when there is no $(_hv_file)
25433         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25434         announce that when $(_hv_file) (aka help-version) does not exist.
25435
25436         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25437         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25438         not try to interpret its random input bytes.  Jarno Rajahalme reported
25439         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25440         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25441         (mktempd_): Likewise, just in case.
25442
25443         ftruncate: add two years to projected module removal date: 2012
25444         * m4/ftruncate.m4: Adjust comments.
25445
25446         ftruncate: mark module as obsolete; even MinGW provides it, now
25447         * modules/ftruncate (Status): Obsolete.
25448         (Notice): Say that.
25449         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25450         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25451
25452 2010-04-08  Bruno Haible  <bruno@clisp.org>
25453
25454         Fix side effects from tests-related modules.
25455         * modules/dprintf-posix (Comment): New section.
25456         * modules/fprintf-posix (Comment): Likewise.
25457         * modules/obstack-printf-posix (Comment): Likewise.
25458         * modules/printf-posix (Comment): Likewise.
25459         * modules/snprintf-posix (Comment): Likewise.
25460         * modules/sprintf-posix (Comment): Likewise.
25461         * modules/vasnprintf-posix (Comment): Likewise.
25462         * modules/vasprintf-posix (Comment): Likewise.
25463         * modules/vdprintf-posix (Comment): Likewise.
25464         * modules/vfprintf-posix (Comment): Likewise.
25465         * modules/vprintf-posix (Comment): Likewise.
25466         * modules/vsnprintf-posix (Comment): Likewise.
25467         * modules/vsprintf-posix (Comment): Likewise.
25468         * modules/xprintf-posix (Comment): Likewise.
25469         * modules/xvasprintf-posix (Comment): Likewise.
25470         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25471         * modules/floorf-tests (Depends-on): Likewise.
25472         * modules/round-tests (Depends-on): Likewise.
25473         * modules/roundf-tests (Depends-on): Likewise.
25474         * modules/trunc-tests (Depends-on): Likewise.
25475         * modules/truncf-tests (Depends-on): Likewise.
25476         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25477         'fprintf-posix' module is not present.
25478         * tests/test-floorf2.c (check): Likewise.
25479         * tests/test-trunc2.c (check): Likewise.
25480         * tests/test-truncf2.c (check): Likewise.
25481         * tests/test-round2.c (equal): Likewise.
25482         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25483
25484 2010-04-07  Karl Berry  <karl@gnu.org>
25485
25486         * config/srclist.txt,
25487         * config/srclistvars.sh,
25488         * config/srclist-update: doc fixes.
25489
25490 2010-04-07  Jim Meyering  <meyering@redhat.com>
25491
25492         maint.mk: add a PATH crosschecking syntax-check rule
25493         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25494         Useful if you use a test like the one in help-version (coreutils,
25495         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25496         printed by prog --version.
25497
25498 2010-04-06  Bruno Haible  <bruno@clisp.org>
25499
25500         Fix link error on mingw.
25501         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25502         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25503
25504 2010-04-06  Bruno Haible  <bruno@clisp.org>
25505
25506         Assume rmdir exists.
25507         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25508
25509 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25510
25511         doc: update users.txt
25512         * users.txt: Add gcal.
25513
25514 2010-04-06  Jim Meyering  <meyering@redhat.com>
25515
25516         init.sh: simply unset TMPDIR rather than risking env -i
25517         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25518         although it probably works fine on all Unix-based systems, some
25519         systems (Cygwin?) cannot tolerate a totally cleared environment.
25520         Suggestion from Eric Blake.
25521
25522 2010-04-06  Jim Meyering  <meyering@redhat.com>
25523
25524         init.sh: portability fix: use env's POSIX-specified -i option not -u
25525         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25526         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25527
25528 2010-04-05  Bruno Haible  <bruno@clisp.org>
25529
25530         btowc: Work around Cygwin 1.7.2 bug.
25531         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25532         does not map NUL to 0.
25533         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25534
25535 2010-04-05  Bruno Haible  <bruno@clisp.org>
25536
25537         Make the multithread modules work on Cygwin 1.7.2.
25538         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25539         imported symbols can be declared weak, so that it returns "no" on
25540         Cygwin 1.7.2.
25541
25542 2010-04-05  Bruno Haible  <bruno@clisp.org>
25543
25544         Use the module 'strncat'.
25545         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25546
25547         Tests for module 'strncat'.
25548         * modules/strncat-tests: New file.
25549         * tests/test-strncat.c: New file.
25550
25551         New module 'strncat'.
25552         * lib/string.in.h (strncat): New declaration.
25553         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25554         * m4/strncat.m4: New file, based on m4/memchr.m4.
25555         * modules/strncat: New file.
25556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25557         is declared.
25558         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25559         REPLACE_STRNCAT.
25560         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25561         REPLACE_STRNCAT.
25562         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25563         module.
25564         * tests/test-string-c++.cc: Check signature of strncat.
25565
25566 2010-04-05  Jim Meyering  <meyering@redhat.com>
25567
25568         xstrtoumax-tests: convert to use init.sh
25569         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25570         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25571         Use Exit, not exit.
25572         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25573
25574         xstrtoimax-tests: convert to use init.sh
25575         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25576         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25577         Use Exit, not exit.
25578         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25579
25580 2010-04-05  Bruno Haible  <bruno@clisp.org>
25581
25582         sys_socket: Avoid #define replacements in C++ mode.
25583         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25584         warning to the function if possible, rather than #defining the symbol
25585         to a dysfunctional alias.
25586
25587 2010-04-05  Bruno Haible  <bruno@clisp.org>
25588
25589         fseeko: Fix C++ test error on mingw.
25590         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25591         gl_FUNC_FSEEKO.
25592         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25593         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25594         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25595         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25596
25597 2010-04-05  Bruno Haible  <bruno@clisp.org>
25598
25599         duplocale: Improve test output.
25600         * tests/test-duplocale.c (main): Print reason for skipped test.
25601
25602 2010-04-05  Bruno Haible  <bruno@clisp.org>
25603
25604         Assume rmdir exists.
25605         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25606         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25607
25608 2010-04-05  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix link error on Solaris 8 with cc.
25611         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25612
25613 2010-04-05  Bruno Haible  <bruno@clisp.org>
25614
25615         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25616         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25617
25618 2010-04-05  Bruno Haible  <bruno@clisp.org>
25619
25620         vasprintf: Update documentation.
25621         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25622
25623 2010-04-05  Bruno Haible  <bruno@clisp.org>
25624
25625         ptsname: Improve test.
25626         * tests/test-ptsname.c (main): Also try the various master names of BSD
25627         systems.
25628
25629 2010-04-05  Bruno Haible  <bruno@clisp.org>
25630
25631         memchr: Avoid a possible C++ test error.
25632         * lib/string.in.h (memchr): Provide declaration if function is missing.
25633         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25634         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25636         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25637
25638 2010-04-05  Bruno Haible  <bruno@clisp.org>
25639
25640         strtok_r: Improve idiom.
25641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25642         AC_LIBOBJ is used.
25643
25644 2010-04-05  Bruno Haible  <bruno@clisp.org>
25645
25646         strdup: Improve idiom.
25647         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25648         AC_LIBOBJ is used.
25649         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25650         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25651         when AC_LIBOBJ is used.
25652
25653 2010-04-05  Bruno Haible  <bruno@clisp.org>
25654
25655         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25656         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25657         don't set REPLACE_MBSINIT to 1.
25658         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25659         don't set REPLACE_MBRTOWC to 1.
25660         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25661         exist, don't set REPLACE_MBSRTOWCS to 1.
25662         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25663         exist, don't set REPLACE_MBSNRTOWCS to 1.
25664         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25665         don't set REPLACE_WCRTOMB to 1.
25666         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25667         exist, don't set REPLACE_WCSRTOMBS to 1.
25668         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25669         exist, don't set REPLACE_WCSNRTOMBS to 1.
25670
25671 2010-04-05  Bruno Haible  <bruno@clisp.org>
25672
25673         ldexpl: Improve idiom.
25674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25675         make sure to set HAVE_DECL_LDEXPL to 0.
25676
25677 2010-04-05  Jim Meyering  <meyering@redhat.com>
25678
25679         xstrtol-tests: convert to use init.sh
25680         * modules/xstrtol-tests (Files): Add tests/init.sh.
25681         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25682         Use Exit, not exit.
25683         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25684
25685         atexit-tests: convert to use init.sh
25686         * modules/atexit-tests (Files): Add tests/init.sh.
25687         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25688         Use Exit, not exit.
25689         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25690
25691         init.sh: fix typo
25692         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25693
25694         init.sh: make it easier for a test script to write to the tty, ...
25695         when using automake's parallel-tests mode.
25696         * tests/init.sh (stderr_fileno_): Define overridable variable.
25697         (warn_): New function, to use it.
25698         (fail_, skip_, framework_failure_): Use warn_.
25699
25700 2010-04-04  Bruno Haible  <bruno@clisp.org>
25701
25702         btowc: Avoid warning.
25703         * lib/btowc.c: Include <stdlib.h>.
25704         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25705
25706 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25707             Bruno Haible  <bruno@clisp.org>
25708
25709         wchar: Port to NetBSD 1.5.
25710         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25711         * lib/wctype.in.h (WEOF): Likewise.
25712
25713 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25714             Bruno Haible  <bruno@clisp.org>
25715
25716         Port extended stdio to NetBSD 1.5.
25717         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25718         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25719         older.
25720
25721 2010-04-04  Bruno Haible  <bruno@clisp.org>
25722
25723         string: Remove unused substitution.
25724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25725         HAVE_DECL_STRERROR.
25726         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25727
25728 2010-04-04  Bruno Haible  <bruno@clisp.org>
25729
25730         strtod: Avoid a possible C++ test error.
25731         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25732         set REPLACE_STRTOD.
25733
25734 2010-04-04  Bruno Haible  <bruno@clisp.org>
25735
25736         strerror: Update documentation.
25737         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25738
25739 2010-04-04  Bruno Haible  <bruno@clisp.org>
25740
25741         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25742         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25743         _GL_CXXALIAS_SYS_CAST.
25744
25745 2010-04-04  Bruno Haible  <bruno@clisp.org>
25746
25747         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25748         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25749         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25750         REPLACE_FREXPL to 1.
25751         * doc/posix-functions/frexpl.texi: Update documentation.
25752
25753 2010-04-04  Bruno Haible  <bruno@clisp.org>
25754
25755         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25756         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25757
25758 2010-04-04  Bruno Haible  <bruno@clisp.org>
25759
25760         Implement nanosleep for native Windows.
25761         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25762
25763 2010-04-04  Bruno Haible  <bruno@clisp.org>
25764
25765         math: Fix some C++ test errors on Solaris 8.
25766         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25767
25768 2010-04-04  Bruno Haible  <bruno@clisp.org>
25769
25770         math: Fix some C++ test errors on Cygwin.
25771         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25772         truncl): Provide declaration if the system does not have it.
25773         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25774         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25775         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25776         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25777         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25778         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25779         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25780         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25781         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25782         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25783         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25784         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25785         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25786         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25787         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25788         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25790         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25791         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25792         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25793         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25794         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25795
25796 2010-04-04  Bruno Haible  <bruno@clisp.org>
25797
25798         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25799         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25800         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25801         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25802         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25803         * m4/isinf.m4 (gl_ISINF): Likewise.
25804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25805
25806 2010-04-04  Bruno Haible  <bruno@clisp.org>
25807
25808         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25809         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25810
25811 2010-04-04  Bruno Haible  <bruno@clisp.org>
25812
25813         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25814         * modules/tmpfile (configure.ac): Update.
25815
25816         tmpfile: Fix C++ test error on mingw.
25817         * lib/stdio.in.h (tmpfile): New declaration.
25818         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25819         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25820         * modules/tmpfile (Depends-on): Add stdio.
25821         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25822         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25823         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25824         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25825         REPLACE_TMPFILE.
25826         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25827
25828 2010-04-04  Bruno Haible  <bruno@clisp.org>
25829
25830         ioctl: Fix C++ test error on mingw.
25831         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25832         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25833         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25834
25835 2010-04-03  Bruno Haible  <bruno@clisp.org>
25836
25837         wcwidth: Fix C++ test error on mingw.
25838         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25840         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25841
25842 2010-04-03  Bruno Haible  <bruno@clisp.org>
25843
25844         nanosleep: Fix C++ test error on mingw.
25845         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25846         * lib/time.in.h (nanosleep): Use modern idiom.
25847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25848         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25849         REPLACE_NANOSLEEP to 1.
25850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25851         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25852
25853 2010-04-03  Bruno Haible  <bruno@clisp.org>
25854
25855         strptime: Fix C++ test error on mingw.
25856         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25857         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25858         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25859         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25860         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25861         not REPLACE_STRPTIME.
25862         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25863         REPLACE_STRPTIME.
25864
25865 2010-04-03  Bruno Haible  <bruno@clisp.org>
25866
25867         timegm: Fix C++ test error on mingw.
25868         * lib/time.in.h (timegm): Use modern idiom.
25869         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25870         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25872         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25873
25874 2010-04-03  Bruno Haible  <bruno@clisp.org>
25875
25876         timegm: Assume declaration if function exists.
25877         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25878         if it exists. Don't clobber ac_cv_func_timegm.
25879
25880 2010-04-03  Bruno Haible  <bruno@clisp.org>
25881
25882         time_r: Fix C++ test error on mingw.
25883         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25884         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25885         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25886         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25887         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25888
25889 2010-04-03  Bruno Haible  <bruno@clisp.org>
25890
25891         time_r: Minor updates.
25892         * modules/time_r (Description): Mention the provided functions.
25893         * lib/time_r.c: Don't include <string.h>.
25894         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25895         * doc/posix-functions/localtime_r.texi: Likewise.
25896
25897 2010-04-03  Bruno Haible  <bruno@clisp.org>
25898
25899         time: Fix regression introduced on 2010-03-08.
25900         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25901         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25902
25903 2010-04-03  Jim Meyering  <meyering@redhat.com>
25904
25905         maint.mk: don't silently disable project-specific syntax-check rules
25906         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25907         that they need to convert their project-specific syntax-check rules
25908         to use the new _sc_search_regexp.
25909
25910 2010-04-03  Bruno Haible  <bruno@clisp.org>
25911
25912         fchdir: Fix regression introduced on 2010-03-08.
25913         * lib/unistd.in.h (fchdir): Fix declaration.
25914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25916         REPLACE_FCHDIR.
25917         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25918         REPLACE_FCHDIR.
25919
25920 2010-04-03  Bruno Haible  <bruno@clisp.org>
25921
25922         getpagesize: Fix C++ test error on mingw.
25923         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25924         system does not declare the function.
25925         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25926         declared.
25927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25928         HAVE_DECL_GETPAGESIZE.
25929         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25930
25931 2010-04-03  Bruno Haible  <bruno@clisp.org>
25932
25933         stdio: Make C++ tests work on mingw.
25934         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25935         does not declare the function.
25936
25937 2010-04-03  Bruno Haible  <bruno@clisp.org>
25938
25939         ftello: Fix C++ test error on mingw.
25940         * lib/stdio.in.h (ftello): Use modern idiom.
25941         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25942         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25943         is missing and that it needs to be replaced.
25944         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25946         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25947
25948 2010-04-03  Bruno Haible  <bruno@clisp.org>
25949
25950         fseeko: Fix C++ test error on mingw.
25951         * lib/stdio.in.h (fseeko): Use modern idiom.
25952         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25954         is missing and that it needs to be replaced.
25955         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25957         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25958
25959 2010-04-03  Bruno Haible  <bruno@clisp.org>
25960
25961         mkstemp: Fix C++ test error on mingw.
25962         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25963         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25964         function is missing and that it needs to be replaced.
25965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25966         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25967
25968 2010-04-03  Bruno Haible  <bruno@clisp.org>
25969
25970         stpncpy: Fix C++ test error on mingw.
25971         * lib/string.in.h (stpncpy): Use modern idiom.
25972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25973         function is missing and that it needs to be replaced.
25974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25975         REPLACE_STPNCPY.
25976         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25977
25978 2010-04-03  Bruno Haible  <bruno@clisp.org>
25979
25980         sys_stat: Fix C++ test error on mingw.
25981         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25982         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25983
25984 2010-04-03  Bruno Haible  <bruno@clisp.org>
25985
25986         pty: Update doc.
25987         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25988
25989 2010-04-03  Bruno Haible  <bruno@clisp.org>
25990
25991         unistd: Fix C++ test error on mingw.
25992         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25993
25994 2010-04-03  Bruno Haible  <bruno@clisp.org>
25995
25996         Update doc regarding mingw.
25997         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25998         * doc/glibc-functions/login_tty.texi: Likewise.
25999         * doc/glibc-functions/forkpty.texi: Likewise.
26000
26001 2010-04-03  Bruno Haible  <bruno@clisp.org>
26002
26003         stdlib: Avoid compilation failure of c-strtold on mingw.
26004         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26005
26006 2010-04-03  Bruno Haible  <bruno@clisp.org>
26007
26008         locale: Make C++ tests work on Cygwin and mingw.
26009         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26010         cannot provide the function.
26011         Reported by Simon Josefsson.
26012
26013 2010-04-03  Bruno Haible  <bruno@clisp.org>
26014
26015         localename: Port to MacOS X 10.6.
26016         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26017         memory layout of the locales in MacOS X 10.6 as well.
26018         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26019
26020 2010-04-02  Bruno Haible  <bruno@clisp.org>
26021
26022         gnulib-tool: Ensure that long-running tests are executed last.
26023         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26024         running tests after the one for the other tests.
26025
26026 2010-04-02  Bruno Haible  <bruno@clisp.org>
26027
26028         gnulib-tool: Ensure the tests in the main directory are executed first.
26029         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26030         start with the current directory.
26031
26032 2010-04-02  Bruno Haible  <bruno@clisp.org>
26033
26034         Tests for module 'havelib', moved here from GNU gettext.
26035         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26036         modifications.
26037         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26038         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26039         with modifications.
26040         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26041         modifications.
26042         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26043         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26044         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26045         with modifications.
26046         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26047         with modifications.
26048         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26049         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26050         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26051         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26052         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26053         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26054         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26055         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26056         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26057         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26058         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26059         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26060         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26061         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26062         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26063         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26064         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26065         with modifications.
26066         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26067         with modifications.
26068         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26069         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26070         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26071         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26072         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26073         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26074         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26075         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26076         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26077         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26078         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26079         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26080         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26081         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26082         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26083         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26084         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26085         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26086         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26087         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26088         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26089         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26090         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26091         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26092         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26093         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26094         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26095         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26096         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26097         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26098         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26099         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26100         * tests/havelib/rpathx/rpathx.c: New file, from
26101         gettext/autoconf-lib-link.
26102         * tests/havelib/rpathx/Makefile.am: New file, from
26103         gettext/autoconf-lib-link.
26104         * tests/havelib/rpathx/configure.ac: New file, from
26105         gettext/autoconf-lib-link with modifications.
26106         * tests/havelib/rpathy/rpathy.c: New file, from
26107         gettext/autoconf-lib-link.
26108         * tests/havelib/rpathy/Makefile.am: New file, from
26109         gettext/autoconf-lib-link.
26110         * tests/havelib/rpathy/configure.ac: New file, from
26111         gettext/autoconf-lib-link with modifications.
26112         * tests/havelib/rpathz/rpathz.c: New file, from
26113         gettext/autoconf-lib-link.
26114         * tests/havelib/rpathz/Makefile.am: New file, from
26115         gettext/autoconf-lib-link.
26116         * tests/havelib/rpathz/configure.ac: New file, from
26117         gettext/autoconf-lib-link with modifications.
26118         * tests/havelib/rpathlx/usex.c: New file, from
26119         gettext/autoconf-lib-link.
26120         * tests/havelib/rpathlx/Makefile.am: New file, from
26121         gettext/autoconf-lib-link.
26122         * tests/havelib/rpathlx/configure.ac: New file, from
26123         gettext/autoconf-lib-link with modifications.
26124         * tests/havelib/rpathly/usey.c: New file, from
26125         gettext/autoconf-lib-link.
26126         * tests/havelib/rpathly/Makefile.am: New file, from
26127         gettext/autoconf-lib-link.
26128         * tests/havelib/rpathly/configure.ac: New file, from
26129         gettext/autoconf-lib-link with modifications.
26130         * tests/havelib/rpathlz/usez.c: New file, from
26131         gettext/autoconf-lib-link.
26132         * tests/havelib/rpathlz/Makefile.am: New file, from
26133         gettext/autoconf-lib-link.
26134         * tests/havelib/rpathlz/configure.ac: New file, from
26135         gettext/autoconf-lib-link with modifications.
26136         * tests/havelib/rpathlyx/usey.c: New file, from
26137         gettext/autoconf-lib-link.
26138         * tests/havelib/rpathlyx/Makefile.am: New file, from
26139         gettext/autoconf-lib-link.
26140         * tests/havelib/rpathlyx/configure.ac: New file, from
26141         gettext/autoconf-lib-link with modifications.
26142         * tests/havelib/rpathlzyx/usez.c: New file, from
26143         gettext/autoconf-lib-link.
26144         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26145         gettext/autoconf-lib-link.
26146         * tests/havelib/rpathlzyx/configure.ac: New file, from
26147         gettext/autoconf-lib-link with modifications.
26148         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26149         with modifications.
26150
26151 2010-04-02  Bruno Haible  <bruno@clisp.org>
26152
26153         gnulib-tool: Create distributed built sources also for the tests.
26154         * gnulib-tool (func_create_testdir): Also generate distributed built
26155         sources in the tests directory.
26156
26157 2010-04-02  Bruno Haible  <bruno@clisp.org>
26158
26159         gnulib-tool: Obey user's environment variables.
26160         * gnulib-tool (func_create_testdir): When creating built sources,
26161         respect the environment variables for autoconf, automake, etc. given by
26162         the user.
26163
26164 2010-04-02  Bruno Haible  <bruno@clisp.org>
26165
26166         gnulib-tool: Provide the value of --m4-base to modules.
26167         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26168         of gl_m4_base.
26169
26170 2010-04-02  Eric Blake  <eblake@redhat.com>
26171
26172         maint.mk: fix some fallout
26173         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26174         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26175
26176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26177
26178         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26179         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26180         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26181         (sc_cast_of_x_alloc_return_value): Likewise.
26182         (sc_cast_of_alloca_return_value): Likewise.
26183         (sc_space_tab): Likewise.
26184         (sc_prohibit_atoi_atof): Likewise.
26185         (sc_prohibit_magic_number_exit): Likewise.
26186         (sc_error_exit_success): Likewise.
26187         (sc_file_system): Likewise.
26188         (sc_prohibit_have_config_h): Likewise.
26189         (sc_require_config_h): Likewise.
26190         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26191         (sc_obsolete_symbols): Likewise.
26192         (sc_changelog): Likewise.
26193         (sc_program_name): Likewise.
26194         (sc_the_the): Likewise.
26195         (sc_trailing_blank): Likewise.
26196         (sc_two_space_separator_in_usage): Likewise.
26197         (sc_useless_cpp_parens): Likewise.
26198         (sc_GPL_version): Likewise.
26199         (sc_GFDL_version): Likewise.
26200         (sc_texinfo_acronym): Likewise.
26201         (sc_prohibit_cvs_keyword): Likewise.
26202         (sc_prohibit_stat_st_blocks): Likewise.
26203         (sc_prohibit_S_IS_definition): Likewise.
26204         (sc_redundant_const): Likewise.
26205         (sc_makefile_TAB_only_indentation): Likewise.
26206         (sc_m4_quote_check): Likewise.
26207         (sc_makefile_path_separator_check): Likewise.
26208         (sc_copyright_check): Likewise.
26209         (sc_Wundef_boolean): Likewise.
26210         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26211
26212         maint.mk: match 0 or more whitespace-before-function-call '('
26213         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26214         that have zero or two-and-more spaces between the function name
26215         and the open parenthesis.
26216         (sc_error_message_warn_fatal): Likewise.
26217         (sc_error_message_uppercase): Likewise.
26218         (sc_error_message_period): Likewise.
26219
26220 2010-03-31  Eric Blake  <eblake@redhat.com>
26221
26222         maint.mk: check for [ as well as test
26223         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26224         Based on a libvirt report by Matthias Bolte.
26225
26226         gnumakefile: don't squelch _version output
26227         * top/GNUmakefile (_version): Create one-shot dependency rather
26228         than using $(shell) when version must be regenerated.
26229         (_autoreconf): Run verbosely, by default.
26230
26231         sys_time: avoid compiler warnings
26232         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26233         unconditional, fixing regression from 2010-03-29.
26234         Reported by Simon Josefsson.
26235
26236 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26237
26238         maint.mk: s/_header_without_use/_sc_header_without_use/
26239         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26240         (sc_prohibit_assert_without_use): Use the new name.
26241         (sc_prohibit_close_stream_without_use): Likewise.
26242         (sc_prohibit_getopt_without_use): Likewise.
26243         (sc_prohibit_quotearg_without_use): Likewise.
26244         (sc_prohibit_quote_without_use): Likewise.
26245         (sc_prohibit_long_options_without_use): Likewise.
26246         (sc_prohibit_inttostr_without_use): Likewise.
26247         (sc_prohibit_ignore_value_without_use): Likewise.
26248         (sc_prohibit_error_without_use): Likewise.
26249         (sc_prohibit_xalloc_without_use): Likewise.
26250         (sc_prohibit_hash_without_use): Likewise.
26251         (sc_prohibit_hash_pjw_without_use): Likewise.
26252         (sc_prohibit_safe_read_without_use): Likewise.
26253         (sc_prohibit_argmatch_without_use): Likewise.
26254         (sc_prohibit_canonicalize_without_use): Likewise.
26255         (sc_prohibit_root_dev_ino_without_use): Likewise.
26256         (sc_prohibit_openat_without_use): Likewise.
26257         (sc_prohibit_c_ctype_without_use): Likewise.
26258         (sc_prohibit_signal_without_use): Likewise.
26259         (sc_prohibit_intprops_without_use): Likewise.
26260
26261 2010-03-30  Eric Blake  <eblake@redhat.com>
26262
26263         maint: improve module indicators
26264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26265         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26266         columns, and avoid extra macro expansion.
26267
26268         fdopendir: work around FreeBSD bug
26269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26271         * modules/dirent (Makefile.am): Substitute it.
26272         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26273         declaration.
26274         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26275         fix.
26276         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26277
26278 2010-03-29  Bruno Haible  <bruno@clisp.org>
26279
26280         Emit #pragma system_header after the inclusion guard, not before.
26281         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26282         guard that spans the entire file, not before. This enables an
26283         optimization in GCC's preprocessor.
26284         * lib/ctype.in.h: Likewise.
26285         * lib/dirent.in.h: Likewise.
26286         * lib/errno.in.h: Likewise.
26287         * lib/float.in.h: Likewise.
26288         * lib/getopt.in.h: Likewise.
26289         * lib/iconv.in.h: Likewise.
26290         * lib/langinfo.in.h: Likewise.
26291         * lib/locale.in.h: Likewise.
26292         * lib/math.in.h: Likewise.
26293         * lib/netdb.in.h: Likewise.
26294         * lib/netinet_in.in.h: Likewise.
26295         * lib/pty.in.h: Likewise.
26296         * lib/sched.in.h: Likewise.
26297         * lib/se-selinux.in.h: Likewise.
26298         * lib/search.in.h: Likewise.
26299         * lib/spawn.in.h: Likewise.
26300         * lib/stdarg.in.h: Likewise.
26301         * lib/stdint.in.h: Likewise.
26302         * lib/string.in.h: Likewise.
26303         * lib/strings.in.h: Likewise.
26304         * lib/sys_file.in.h: Likewise.
26305         * lib/sys_ioctl.in.h: Likewise.
26306         * lib/sys_time.in.h: Likewise.
26307         * lib/sys_times.in.h: Likewise.
26308         * lib/sys_utsname.in.h: Likewise.
26309         * lib/sys_wait.in.h: Likewise.
26310         * lib/sysexits.in.h: Likewise.
26311         * lib/wctype.in.h: Likewise.
26312
26313 2010-03-28  James Youngman  <jay@gnu.org>
26314
26315         save-cwd: don't leak a file descriptor when the caller execs.
26316         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26317         saved file descriptor.
26318         * modules/save-cwd (Depends-on): Depend on cloexec.
26319
26320 2010-03-29  Bruno Haible  <bruno@clisp.org>
26321
26322         Remove vestiges of fts-lgpl module.
26323         * lib/fts_.h: Assume GNULIB_FTS is 1.
26324         * lib/fts.c: Likewise.
26325         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26326
26327 2010-03-28  Bruno Haible  <bruno@clisp.org>
26328
26329         Fix definition of tests witness macro.
26330         * gnulib-tool (func_import): Fix definition of witness macro.
26331
26332 2010-03-28  Bruno Haible  <bruno@clisp.org>
26333
26334         Fix ioctl's protoype on glibc systems.
26335         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26336         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26337         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26338         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26339         signature. If not, arrange to replace the ioctl function.
26340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26341         REPLACE_IOCTL.
26342         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26343         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26344         Reported by Ludovic Courtès <ludo@gnu.org>.
26345
26346 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26347
26348         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26349         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26350         made it so grep -r --include=GLOB* ... did not work.
26351
26352 2010-03-26  Jim Meyering  <meyering@redhat.com>
26353             Eric Blake  <eblake@redhat.com>
26354
26355         maint.mk: prohibit use of test's -o and -a operators
26356         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26357
26358 2010-03-28  Bruno Haible  <bruno@clisp.org>
26359
26360         Remove unused GNULIB_XYZ macro definitions.
26361         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26362         invocation.
26363
26364 2010-03-28  Bruno Haible  <bruno@clisp.org>
26365
26366         Mark privileged tests modules.
26367         * modules/idpriv-drop-tests (Status): New section.
26368         * modules/idpriv-droptemp-tests (Status): New section.
26369
26370 2010-03-28  Bruno Haible  <bruno@clisp.org>
26371
26372         Split C++ tests into separate tests modules.
26373         * modules/dirent-c++-tests: New file, extracted from
26374         modules/dirent-tests.
26375         * modules/dirent-tests: Depend on it.
26376         * modules/fcntl-h-c++-tests: New file, extracted from
26377         modules/fcntl-h-tests.
26378         * modules/fcntl-h-tests: Depend on it.
26379         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26380         * modules/glob-tests: Depend on it.
26381         * modules/iconv-h-c++-tests: New file, extracted from
26382         modules/iconv-h-tests.
26383         * modules/iconv-h-tests: Depend on it.
26384         * modules/langinfo-c++-tests: New file, extracted from
26385         modules/langinfo-tests.
26386         * modules/langinfo-tests: Depend on it.
26387         * modules/locale-c++-tests: New file, extracted from
26388         modules/locale-tests.
26389         * modules/locale-tests: Depend on it.
26390         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26391         * modules/math-tests: Depend on it.
26392         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26393         * modules/pty-tests: Depend on it.
26394         * modules/search-c++-tests: New file, extracted from
26395         modules/search-tests.
26396         * modules/search-tests: Depend on it.
26397         * modules/signal-c++-tests: New file, extracted from
26398         modules/signal-tests.
26399         * modules/signal-tests: Depend on it.
26400         * modules/spawn-c++-tests: New file, extracted from
26401         modules/spawn-tests.
26402         * modules/spawn-tests: Depend on it.
26403         * modules/stdio-c++-tests: New file, extracted from
26404         modules/stdio-tests.
26405         * modules/stdio-tests: Depend on it.
26406         * modules/stdlib-c++-tests: New file, extracted from
26407         modules/stdlib-tests.
26408         * modules/stdlib-tests: Depend on it.
26409         * modules/string-c++-tests: New file, extracted from
26410         modules/string-tests.
26411         * modules/string-tests: Depend on it.
26412         * modules/sys_ioctl-c++-tests: New file, extracted from
26413         modules/sys_ioctl-tests.
26414         * modules/sys_ioctl-tests: Depend on it.
26415         * modules/sys_select-c++-tests: New file, extracted from
26416         modules/sys_select-tests.
26417         * modules/sys_select-tests: Depend on it.
26418         * modules/sys_socket-c++-tests: New file, extracted from
26419         modules/sys_socket-tests.
26420         * modules/sys_socket-tests: Depend on it.
26421         * modules/sys_stat-c++-tests: New file, extracted from
26422         modules/sys_stat-tests.
26423         * modules/sys_stat-tests: Depend on it.
26424         * modules/sys_time-c++-tests: New file, extracted from
26425         modules/sys_time-tests.
26426         * modules/sys_time-tests: Depend on it.
26427         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26428         * modules/time-tests: Depend on it.
26429         * modules/unistd-c++-tests: New file, extracted from
26430         modules/unistd-tests.
26431         * modules/unistd-tests: Depend on it.
26432         * modules/wchar-c++-tests: New file, extracted from
26433         modules/wchar-tests.
26434         * modules/wchar-tests: Depend on it.
26435         * modules/wctype-c++-tests: New file, extracted from
26436         modules/wctype-tests.
26437         * modules/wctype-tests: Depend on it.
26438         Reported by Simon Josefsson.
26439
26440 2010-03-28  Bruno Haible  <bruno@clisp.org>
26441
26442         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26443         * gnulib-tool (func_exists_module): New function, extracted from
26444         func_verify_module.
26445         (func_verify_module): Use it.
26446         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26447         'foo' only if 'foo' exists.
26448         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26449         module.
26450
26451 2010-03-28  Bruno Haible  <bruno@clisp.org>
26452
26453         gnulib-tool: Add support for special categories of tests.
26454         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26455         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26456         (func_usage): Document them.
26457         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26458         inc_unportable_tests, inc_all_tests): New variables.
26459         (func_acceptable): Consider these variables.
26460         (func_modules_transitive_closure): Make it work when the 'Status' field
26461         consists of multiple words.
26462         (func_import): Store and restore the values of inc_cxx_tests,
26463         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26464         inc_all_tests in gnulib-comp.m4.
26465         (func_create_testdir): Set inc_all_tests to true.
26466         * doc/gnulib.texi (Extra tests modules): New section.
26467         Suggested by Jim Meyering.
26468
26469 2010-03-28  Bruno Haible  <bruno@clisp.org>
26470
26471         ansi-c++-opt: Allow turning off the C++ build by default.
26472         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26473         gl_CXX_CHOICE_DEFAULT_NO is defined.
26474         Requested by Eric Blake.
26475
26476 2010-03-28  Bruno Haible  <bruno@clisp.org>
26477
26478         unistd: Avoid #define replacements in C++ mode.
26479         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26480         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26481         setsockopt, shutdown, select): In C++, attach a warning to the function
26482         if possible, rather than #defining the symbol to a dysfunctional alias.
26483         Reported by John W. Eaton <jwe@gnu.org>.
26484
26485 2010-03-28  Bruno Haible  <bruno@clisp.org>
26486
26487         Fix link errors on mingw.
26488         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26489         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26490         $(LIBSOCKET).
26491         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26492         $(LIBSOCKET).
26493
26494 2010-03-28  Bruno Haible  <bruno@clisp.org>
26495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26496
26497         lib-ignore: Determine different options for different compilers.
26498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26499         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26500         Add comments.
26501         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26502         * NEWS: Mention the change.
26503
26504 2010-03-27  Bruno Haible  <bruno@clisp.org>
26505
26506         Remove unused GNULIB_XYZ macro definitions.
26507         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26508         * modules/fseek (configure.ac): Likewise.
26509         * modules/ioctl (configure.ac): Likewise.
26510         * modules/open (configure.ac): Likewise.
26511         * modules/stdlib-safer (configure.ac): Likewise.
26512
26513 2010-03-27  Bruno Haible  <bruno@clisp.org>
26514
26515         Add a remark about certain modules.
26516         * modules/malloc (Comment): New section.
26517         * modules/realloc (Comment): Likewise.
26518         * modules/sigpipe (Comment): Likewise.
26519
26520 2010-03-27  Bruno Haible  <bruno@clisp.org>
26521
26522         Resolve conflict between the two kinds of module indicators.
26523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26524         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26525         * modules/canonicalize (configure.ac): Invoke
26526         gl_MODULE_INDICATOR_FOR_TESTS.
26527         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26528         GNULIB_XYZ.
26529         * tests/test-dirent-c++.cc: Likewise.
26530         * tests/test-dirent-safer.c: Likewise.
26531         * tests/test-dup2.c: Likewise.
26532         * tests/test-fchdir.c: Likewise.
26533         * tests/test-fcntl-h-c++.cc: Likewise.
26534         * tests/test-getopt.c: Likewise.
26535         * tests/test-getopt.h: Likewise.
26536         * tests/test-langinfo-c++.cc: Likewise.
26537         * tests/test-locale-c++.cc: Likewise.
26538         * tests/test-math-c++.cc: Likewise.
26539         * tests/test-pty-c++.cc: Likewise.
26540         * tests/test-search-c++.cc: Likewise.
26541         * tests/test-signal-c++.cc: Likewise.
26542         * tests/test-spawn-c++.cc: Likewise.
26543         * tests/test-stdio-c++.cc: Likewise.
26544         * tests/test-stdlib-c++.cc: Likewise.
26545         * tests/test-string-c++.cc: Likewise.
26546         * tests/test-sys_ioctl-c++.cc: Likewise.
26547         * tests/test-sys_select-c++.cc: Likewise.
26548         * tests/test-sys_socket-c++.cc: Likewise.
26549         * tests/test-sys_stat-c++.cc: Likewise.
26550         * tests/test-sys_time-c++.cc: Likewise.
26551         * tests/test-time-c++.cc: Likewise.
26552         * tests/test-unistd-c++.cc: Likewise.
26553         * tests/test-wchar-c++.cc: Likewise.
26554         * tests/uninorm/test-u8-nfc.c: Likewise.
26555         * tests/uninorm/test-u8-nfd.c: Likewise.
26556         * tests/uninorm/test-u8-nfkc.c: Likewise.
26557         * tests/uninorm/test-u8-nfkd.c: Likewise.
26558         * tests/uninorm/test-u16-nfc.c: Likewise.
26559         * tests/uninorm/test-u16-nfd.c: Likewise.
26560         * tests/uninorm/test-u16-nfkc.c: Likewise.
26561         * tests/uninorm/test-u16-nfkd.c: Likewise.
26562         * tests/uninorm/test-u32-nfc.c: Likewise.
26563         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26564         * tests/uninorm/test-u32-nfd.c: Likewise.
26565         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26566         * tests/uninorm/test-u32-nfkc.c: Likewise.
26567         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26568         * tests/uninorm/test-u32-nfkd.c: Likewise.
26569         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26570         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26571
26572 2010-03-27  Bruno Haible  <bruno@clisp.org>
26573
26574         Distinguish two kinds of module indicators.
26575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26576         gl_MODULE_INDICATOR.
26577         (gl_MODULE_INDICATOR): New macro.
26578         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26579         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26580         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26582         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26583         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26588         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26589         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26594         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26595         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26596         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26597         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26598         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26599         * modules/cloexec (configure.ac): Likewise.
26600         * modules/getopt-gnu (configure.ac): Likewise.
26601         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26602         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26603         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26604         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26605
26606 2010-03-27  Bruno Haible  <bruno@clisp.org>
26607
26608         New module description field 'Comment'.
26609         * gnulib-tool: New option --extract-comment.
26610         (func_usage): Document it.
26611         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26612         (func_get_comment): New function.
26613         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26614
26615 2010-03-27  Bruno Haible  <bruno@clisp.org>
26616
26617         Addendum to 2010-02-07 commit.
26618         * gnulib-tool (func_usage): Document --extract-applicability option.
26619
26620 2010-03-27  Bruno Haible  <bruno@clisp.org>
26621
26622         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26623         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26624         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26625         rather than link errors.
26626
26627 2010-03-27  Bruno Haible  <bruno@clisp.org>
26628
26629         Avoid side effects from tests-related modules on the compilation of lib.
26630         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26631         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26632         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26633         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26634         macro.
26635         (func_import): Define a witness macro. Assign it a value that depends
26636         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26637         tests-related modules.
26638         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26639         Reported by Jim Meyering.
26640
26641 2010-03-27  Bruno Haible  <bruno@clisp.org>
26642
26643         Factorize common .m4 code.
26644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26645         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26646         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26647         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26648         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26649         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26650         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26651         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26652         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26653         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26654         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26655         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26656         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26657         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26658         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26659         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26660         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26661         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26663         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26664         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26666         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26669         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26670         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26674         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26676
26677 2010-03-27  Bruno Haible  <bruno@clisp.org>
26678
26679         Fix a compilation error on Cygwin with g++ >= 4.3.
26680         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26681         if it is undefined or if we alias it to chmod.
26682         (lstat): Don't warn about the use of this function if it is undefined
26683         or if we alias it to stat.
26684         Reported by Simon Josefsson.
26685
26686 2010-03-27  Bruno Haible  <bruno@clisp.org>
26687
26688         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26689         * modules/getlogin (configure.ac): Update.
26690
26691         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26692         * modules/getlogin_r (configure.ac): Update.
26693
26694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26696         * modules/inet_ntop (configure.ac): Update.
26697
26698         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26699         * modules/inet_pton (configure.ac): Update.
26700
26701         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26702         * modules/mbslen (configure.ac): Update.
26703
26704         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26705         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26706         * modules/forkpty (configure.ac): Update.
26707         * modules/openpty (configure.ac): Update.
26708
26709 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26710
26711         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26712         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26713
26714 2010-03-25  Eric Blake  <eblake@redhat.com>
26715
26716         maint: use pragma consistently across replacement headers
26717         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26718         * lib/dirent.in.h (system_header): Likewise.
26719         * lib/errno.in.h (system_header): Likewise.
26720         * lib/float.in.h (system_header): Likewise.
26721         * lib/getopt.in.h (system_header): Likewise.
26722         * lib/iconv.in.h (system_header): Likewise.
26723         * lib/inttypes.in.h (system_header): Likewise.
26724         * lib/langinfo.in.h (system_header): Likewise.
26725         * lib/locale.in.h (system_header): Likewise.
26726         * lib/math.in.h (system_header): Likewise.
26727         * lib/netdb.in.h (system_header): Likewise.
26728         * lib/netinet_in.in.h (system_header): Likewise.
26729         * lib/pty.in.h (system_header): Likewise.
26730         * lib/sched.in.h (system_header): Likewise.
26731         * lib/se-selinux.in.h (system_header): Likewise.
26732         * lib/search.in.h (system_header): Likewise.
26733         * lib/spawn.in.h (system_header): Likewise.
26734         * lib/stdarg.in.h (system_header): Likewise.
26735         * lib/stdint.in.h (system_header): Likewise.
26736         * lib/string.in.h (system_header): Likewise.
26737         * lib/strings.in.h (system_header): Likewise.
26738         * lib/sys_file.in.h (system_header): Likewise.
26739         * lib/sys_ioctl.in.h (system_header): Likewise.
26740         * lib/sys_socket.in.h (system_header): Likewise.
26741         * lib/sys_times.in.h (system_header): Likewise.
26742         * lib/sys_utsname.in.h (system_header): Likewise.
26743         * lib/sys_wait.in.h (system_header): Likewise.
26744         * lib/sysexits.in.h (system_header): Likewise.
26745         * lib/unistd.in.h (system_header): Likewise.
26746         * lib/wctype.in.h (system_header): Likewise.
26747
26748         arpa/inet: fix mingw compilation warning
26749         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26750         Reported by Matthew Bolte.
26751
26752 2010-03-25  Bruno Haible  <bruno@clisp.org>
26753
26754         Avoid collision between gnulib wrapper and libintl wrapper.
26755         * lib/printf.c (printf): Don't define if a printf wrapper is already
26756         defined in intl/printf.c.
26757         Reported by Michel Boaventura <michel@michelboaventura.com>.
26758
26759 2010-03-25  Bruno Haible  <bruno@clisp.org>
26760
26761         Use ANSI C.
26762         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26763
26764 2010-03-25  Bruno Haible  <bruno@clisp.org>
26765
26766         Minor formatting changes.
26767         * lib/acosl.c: Insert space before function argument list.
26768         * lib/argz.c: Likewise.
26769         * lib/asinl.c: Likewise.
26770         * lib/expl.c: Likewise.
26771         * lib/gen-uni-tables.c: Likewise.
26772         * lib/gettext.h: Likewise.
26773         * lib/glthread/lock.h: Likewise.
26774         * lib/tanl.c: Likewise.
26775         * lib/uniname/uniname.c: Likewise.
26776         * tests/test-idpriv-drop.c: Likewise.
26777         * tests/test-idpriv-droptemp.c: Likewise.
26778         * tests/test-lock.c: Likewise.
26779         * tests/test-tls.c: Likewise.
26780         * lib/argp-help.c: Insert space before function-like macro argument
26781         list.
26782         * lib/memcmp.c: Likewise.
26783         * tests/test-base64.c: Likewise.
26784         * lib/localename.c: Insert space before sizeof's argument list.
26785         * lib/safe-alloc.h: Likewise.
26786         * lib/file-set.h: Insert space before macro argument list.
26787         * tests/test-argp.c: Likewise.
26788         * lib/argp-namefrob.h: Insert space before function parameter list.
26789         * lib/getaddrinfo.c: Likewise.
26790         * lib/netdb.in.h: Likewise.
26791         * lib/parse-duration.h: Likewise.
26792         * lib/parse-duration.c: Likewise.
26793         * lib/poll.c: Likewise.
26794         * lib/select.c: Likewise.
26795         * lib/trim.h: Likewise.
26796         * tests/test-usleep.c: Likewise.
26797         * lib/ldexpl.c: Insert space before function parameter list and before
26798         function argument list.
26799         * lib/logl.c: Likewise.
26800         * lib/sqrtl.c: Likewise.
26801         * lib/trim.c: Likewise.
26802         * lib/cosl.c: Use GNU style indentation. Insert space before function
26803         argument list.
26804         * lib/sinl.c: Likewise.
26805         * lib/tsearch.c: Insert space after 'for'.
26806         Reported by Jim Meyering.
26807
26808 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26809
26810         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26811         config header before grepping, as it's not present before
26812         autoreconf/configure are run.  Reported by Simon Josefsson.
26813
26814 2010-03-23  Bruno Haible  <bruno@clisp.org>
26815
26816         pt_chown: Make it work with automake < 1.11.
26817         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26818         Reported by Simon Josefsson.
26819
26820 2010-03-23  Bruno Haible  <bruno@clisp.org>
26821
26822         pt_chown: Don't depend on GPLed modules.
26823         * lib/pt_chown.c: Don't include idpriv.h.
26824         (main): Don't drop privileges.
26825         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26826         Reported by Simon Josefsson.
26827
26828 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26829
26830         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26831         suggestions from karl@freefriends.org (Karl Berry).
26832
26833 2010-03-22  Eric Blake  <eblake@redhat.com>
26834
26835         gethostname: further tweaks
26836         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26837         are overriding gethostname.
26838         Suggested by Bruno Haible.
26839
26840 2010-03-21  Bruno Haible  <bruno@clisp.org>
26841
26842         Fix comments.
26843         * lib/forkpty.c (rpl_forkpty): Fix comment.
26844         * lib/openpty.c (rpl_openpty): Likewise.
26845         Reported by Eric Blake.
26846
26847 2010-03-22  Eric Blake  <eblake@redhat.com>
26848
26849         gethostname: fix build on mingw
26850         * lib/unistd.in.h (includes): Work around fact that mingw
26851         <winsock2.h> re-includes <unistd.h>, by avoiding any
26852         redeclarations if we are being included by <winsock2.h>.
26853         Reported by Matthias Bolte.
26854
26855 2010-03-21  Bruno Haible  <bruno@clisp.org>
26856
26857         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26858         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26859         modifications.
26860         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26861         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26862         provide the replacement.
26863         * modules/forkpty (Depends-on): Add openpty, login_tty.
26864         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26865         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26866         * doc/glibc-functions/forkpty.texi: More supported platforms.
26867         * config/srclist.txt: Add forkpty.c (commented).
26868
26869 2010-03-21  Bruno Haible  <bruno@clisp.org>
26870
26871         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26872         (Makefile.am): Verify that PTY_LIB is defined.
26873
26874         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26875
26876 2010-03-21  Bruno Haible  <bruno@clisp.org>
26877
26878         Tests for module 'login_tty'.
26879         * modules/login_tty-tests: New file.
26880         * tests/test-login_tty.c: New file.
26881
26882         New module 'login_tty'.
26883         * lib/login_tty.c: New file.
26884         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26885         * modules/login_tty: New file.
26886         * doc/glibc-functions/login_tty.texi: Mention the new module.
26887
26888 2010-03-21  Bruno Haible  <bruno@clisp.org>
26889
26890         login_tty: Documentation.
26891         * doc/glibc-functions/login_tty.texi: New file.
26892         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26893
26894 2010-03-21  Bruno Haible  <bruno@clisp.org>
26895
26896         pty: Consistent macro naming.
26897         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26898         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26899         * modules/pty (configure.ac): Update.
26900
26901 2010-03-21  Bruno Haible  <bruno@clisp.org>
26902
26903         Tests for openpty: Make stricter.
26904         * tests/test-openpty.c (main): Add test of canonical processing and
26905         erase.
26906         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26907
26908         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26909         * lib/openpty.c (openpty): New replacement function.
26910         * lib/pty.in.h: Include <termios.h>.
26911         (openpty): Update declaration. Add comments.
26912         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26913         is not declared, arrange to provide the replacement. Check for _getpty
26914         and posix_openpt.
26915         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26916         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26917         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26918         * modules/pty-tests (test_pty_c___LDADD): New variable.
26919         * doc/glibc-functions/openpty.texi: More supported platforms.
26920
26921 2010-03-21  Bruno Haible  <bruno@clisp.org>
26922
26923         setenv: Tweaks.
26924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26925         the test program.
26926         * doc/posix-functions/setenv.texi: Update platforms list.
26927
26928 2010-03-21  Bruno Haible  <bruno@clisp.org>
26929
26930         New module 'unlockpt'.
26931         * lib/unlockpt.c: New file, from glibc with modifications.
26932         * m4/unlockpt.m4: New file.
26933         * modules/unlockpt: New file.
26934         * lib/stdlib.in.h (unlockpt): New declaration.
26935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26937         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26938         HAVE_UNLOCKPT.
26939         * doc/posix-functions/unlockpt.texi: Mention the new module.
26940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26941         * config/srclist.txt: Add unlockpt.c (commented).
26942
26943 2010-03-21  Jim Meyering  <meyering@redhat.com>
26944
26945         maint.mk: prohibit inclusion of "intprops.h" without use
26946         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26947
26948 2010-03-21  Bruno Haible  <bruno@clisp.org>
26949
26950         New module 'grantpt'.
26951         * lib/grantpt.c: New file, from glibc with modifications.
26952         * m4/grantpt.m4: New file.
26953         * modules/grantpt: New file.
26954         * lib/stdlib.in.h (grantpt): New declaration.
26955         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26956         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26957         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26958         HAVE_GRANTPT.
26959         * doc/posix-functions/grantpt.texi: Mention the new module.
26960         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26961         * config/srclist.txt: Add grantpt.c (commented).
26962
26963 2010-03-21  Bruno Haible  <bruno@clisp.org>
26964
26965         New module 'pt_chown'.
26966         * lib/pt_chown.c: New file, from glibc with modifications.
26967         * lib/pty-private.h: New file, from glibc with modifications.
26968         * modules/pt_chown: New file.
26969         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26970
26971 2010-03-21  Bruno Haible  <bruno@clisp.org>
26972
26973         Tests for module 'ptsname'.
26974         * modules/ptsname-tests: New file.
26975         * tests/test-ptsname.c: New file.
26976
26977         New module 'ptsname'.
26978         * lib/ptsname.c: New file, from glibc with modifications.
26979         * m4/ptsname.m4: New file.
26980         * modules/ptsname: New file.
26981         * lib/stdlib.in.h (ptsname): New declaration.
26982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26984         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26985         HAVE_PTSNAME.
26986         * doc/posix-functions/ptsname.texi: Mention the new module.
26987         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26988         * config/srclist.txt: Add ptsname.c (commented).
26989
26990 2010-03-21  Bruno Haible  <bruno@clisp.org>
26991
26992         Tests for module 'ttyname_r'.
26993         * modules/ttyname_r-tests: New file.
26994         * tests/test-ttyname_r.c: New file.
26995
26996         New module 'ttyname_r'.
26997         * lib/ttyname_r.c: New file.
26998         * m4/ttyname_r.m4: New file.
26999         * modules/ttyname_r: New file.
27000         * lib/unistd.in.h (ttyname_r): New declaration.
27001         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27003         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27004         HAVE_TTYNAME_R.
27005         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27006         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27007
27008 2010-03-20  Bruno Haible  <bruno@clisp.org>
27009
27010         signal: Undefine macro definitions in C++ mode.
27011         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27012         sigfillset): Undefine macro definitions from the system header in C++
27013         mode.
27014         Reported by John W. Eaton <jwe@gnu.org>.
27015
27016 2010-03-20  Bruno Haible  <bruno@clisp.org>
27017
27018         Ensure no #include statements inside extern "C" { ... }.
27019         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27020         contain #include statements.
27021         * lib/time.in.h: Likewise.
27022
27023 2010-03-20  Bruno Haible  <bruno@clisp.org>
27024
27025         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27026         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27027         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27028         Reported by John W. Eaton <jwe@gnu.org>.
27029
27030 2010-03-20  Bruno Haible  <bruno@clisp.org>
27031
27032         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27033         Reported by Jim Meyering.
27034
27035 2010-03-20  Bruno Haible  <bruno@clisp.org>
27036
27037         pipe: Set errno upon failure.
27038         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27039         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27040         errno value in error message.
27041
27042 2010-03-20  Bruno Haible  <bruno@clisp.org>
27043             Jim Meyering  <meyering@redhat.com>
27044
27045         lchown: Avoid "unused variable" warning.
27046         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27047
27048 2010-03-20  Bruno Haible  <bruno@clisp.org>
27049
27050         Work around unlink() bug on MacOS X 10.5.6.
27051         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27052         attempting to unlink a parent directory.
27053         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27054         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27055         activate for the replacement function.
27056         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27057
27058 2010-03-20  Bruno Haible  <bruno@clisp.org>
27059
27060         Fix link errors on Solaris 8.
27061         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27062         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27063
27064 2010-03-19  Jim Meyering  <meyering@redhat.com>
27065
27066         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27067         The _LIBC implementation of build_range_exp correctly honors the
27068         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27069         However, the non-_LIBC implementation would ignore that syntax-bit
27070         flag and return REG_ERANGE unconditionally.
27071         This change makes it honor that flag.
27072         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27073         Make two pointer parameters "const".
27074         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27075         (parse_bracket_exp): Update caller.
27076
27077         regex.m4: correct the reversed range endpoint ([b-a]) test
27078         * m4/regex.m4: When requiring that [b-a] evoke failure,
27079         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27080         test pass once again for x86-based systems.
27081
27082 2010-03-19  Bruno Haible  <bruno@clisp.org>
27083
27084         scandir: Fix link error on Solaris 8.
27085         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27086         macros.
27087
27088 2010-03-19  Bruno Haible  <bruno@clisp.org>
27089
27090         getusershell: Fix documentation.
27091         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27092         module.
27093         * doc/glibc-functions/setusershell.texi: Likewise.
27094
27095         getusershell: Provide declaration, missing on Solaris 9.
27096         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27097         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27098         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27099         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27101         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27102         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27103         HAVE_GETUSERSHELL.
27104         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27105
27106 2010-03-19  Bruno Haible  <bruno@clisp.org>
27107
27108         wctype: Provide iswblank function.
27109         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27110         exists and is fine.
27111         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27112         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27113         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27114         * doc/posix-functions/iswblank.texi: Update.
27115
27116 2010-03-19  Bruno Haible  <bruno@clisp.org>
27117
27118         Tests of module 'pty' in C++ mode.
27119         * modules/pty-tests: New file.
27120         * tests/test-pty-c++.cc: New file.
27121         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27122
27123 2010-03-19  Eric Blake  <eblake@redhat.com>
27124
27125         logb: fix documentation
27126         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27127         1.5 declaration bug.
27128
27129         forkpty, openpty: prefer glibc's const-safe prototype
27130         * lib/forkpty.c (rpl_forkpty): New file.
27131         * lib/openpty.c (rpl_openpty): Likewise.
27132         * modules/forkpty (Files): Distribute it.
27133         * modules/openpty (Files): Likewise.
27134         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27135         check...
27136         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27137         replacement for for non-const BSD signature.
27138         * modules/pty (Makefile.am): Substitute witnesses.
27139         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27140         * tests/test-forkpty.c: Update signature check.
27141         * tests/test-openpty.c: Likewise.
27142         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27143         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27144
27145         forkpty, openpty: split functions into new modules
27146         * modules/pty (Makefile.am): Substitute new witnesses.
27147         (Libraries): Move library detection...
27148         * modules/forkpty: ...into new module.
27149         * modules/openpty: Another new module.
27150         * modules/pty-tests: Rename and split...
27151         * modules/forkpty-tests: ...to this...
27152         * modules/openpty-tests: ...and this.
27153         * tests/test-pty.c: Rename and split...
27154         * tests/test-forkpty.c: ...to this...
27155         * tests/test-openpty.c: ...and this.
27156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27157         (gl_PTY): Split library searching...
27158         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27159         (gl_FORKPTY, gl_OPENPTY): New macros.
27160         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27161         * NEWS: Mention the split.
27162         * MODULES.html.sh (Misc): Document the modules.
27163         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27164         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27165
27166         pty: improve replacement header
27167         * lib/pty.in.h: New file.
27168         * modules/pty (Files): Ship it.
27169         (Makefile.am): Always build replacement.
27170         * m4/pty.m4: Rename...
27171         * m4/pty_h.m4: ...to this.
27172         (gl_PTY): Modernize setting of witness macros; update check of
27173         forkpty to take proper advantage of cache.
27174         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27175
27176         getopt: avoid compiler warning
27177         * lib/getopt.c (attribute_hidden): Remove unused macro.
27178
27179 2010-03-18  Bruno Haible  <bruno@clisp.org>
27180
27181         Fix link errors on Solaris 8.
27182         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27183         * modules/search-tests (test_search_c___LDADD): Likewise.
27184         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27185         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27186         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27187         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27188         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27189         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27190         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27191
27192 2010-03-18  Bruno Haible  <bruno@clisp.org>
27193
27194         Fix bug introduced on 2010-03-14.
27195         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27196         (gl_SPAWN_H): Require it.
27197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27198         Reported by Simon Josefsson.
27199
27200 2010-03-18  Bruno Haible  <bruno@clisp.org>
27201
27202         Fix typo introduced on 2009-12-31.
27203         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27204         posix_spawn_file_actions_adddup2.
27205
27206 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27207         and Eric Blake  <eblake@redhat.com>
27208
27209         test-vc-list-files-git: make more robust
27210         * tests/test-vc-list-files-git.sh: Unset problematic environment
27211         variables.  Chain commands together.
27212
27213 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27214
27215         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27216         `AC_CHECK_DECL' invocation.
27217
27218 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27219
27220         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27221         appears before executable statements. Suggested by Petr Sumbera
27222         <Petr.Sumbera@Sun.COM>.
27223
27224 2010-03-14  Bruno Haible  <bruno@clisp.org>
27225
27226         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27227         portability problems. Instead use a simpler test.
27228         (main): Check that invalid arguments are rejected only on Linux.
27229
27230 2010-03-14  Bruno Haible  <bruno@clisp.org>
27231
27232         Fix bug introduced on 2009-12-31.
27233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27234         gl_PREREQ_SYS_H_WINSOCK2 always.
27235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27236         SYS_SOCKET_H variable.
27237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27238         Update comments.
27239         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27240         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27241         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27243         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27244
27245 2010-03-14  Bruno Haible  <bruno@clisp.org>
27246
27247         Fix values returned by sinl, cosl.
27248         * lib/trigl.h: Add specification comments.
27249         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27250         that combines the values from the precomputed table with the values of
27251         the Chebyshev polynomials.
27252
27253 2010-03-14  Bruno Haible  <bruno@clisp.org>
27254
27255         Fix compilation error when modules 'posix_spawn[p]' are not used.
27256         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27258
27259 2010-03-14  Bruno Haible  <bruno@clisp.org>
27260
27261         Fix compilation error on mingw when module 'time_r' is not used.
27262         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27263         is 1.
27264         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27265         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27266         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27268
27269 2010-03-14  Bruno Haible  <bruno@clisp.org>
27270
27271         Fix compilation error with Sun C.
27272         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27273         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27274         instead of GCC specific ULONG_LONG_MAX.
27275         * lib/xstrtoll.c: Likewise.
27276         * lib/xstrtoull.c: Likewise.
27277
27278 2010-03-13  Bruno Haible  <bruno@clisp.org>
27279
27280         Allow the user to disable C++ code and tests.
27281         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27282         (gl_PROG_ANSI_CXX): Require it.
27283
27284 2010-03-13  Bruno Haible  <bruno@clisp.org>
27285
27286         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27287         cases.
27288
27289 2010-03-13  Bruno Haible  <bruno@clisp.org>
27290
27291         Test that gnulib does not break the standard C++ headers.
27292         * tests/test-locale-c++2.cc: New file.
27293         * modules/locale-tests (Files): Add it.
27294         (Makefile.am): Compile it for test-locale-c++.
27295         * tests/test-math-c++2.cc: New file.
27296         * modules/math-tests (Files): Add it.
27297         (Makefile.am): Compile it for test-math-c++.
27298         * tests/test-signal-c++2.cc: New file.
27299         * modules/signal-tests (Files): Add it.
27300         (Makefile.am): Compile it for test-signal-c++.
27301         * tests/test-stdio-c++2.cc: New file.
27302         * modules/stdio-tests (Files): Add it.
27303         (Makefile.am): Compile it for test-stdio-c++.
27304         * tests/test-stdlib-c++2.cc: New file.
27305         * modules/stdlib-tests (Files): Add it.
27306         (Makefile.am): Compile it for test-stdlib-c++.
27307         * tests/test-string-c++2.cc: New file.
27308         * modules/string-tests (Files): Add it.
27309         (Makefile.am): Compile it for test-string-c++.
27310         * tests/test-time-c++2.cc: New file.
27311         * modules/time-tests (Files): Add it.
27312         (Makefile.am): Compile it for test-time-c++.
27313         Reported by John W. Eaton <jwe@gnu.org>.
27314
27315 2010-03-13  Bruno Haible  <bruno@clisp.org>
27316
27317         * gnulib-tool (func_usage): Clarify which options are available for
27318         --create-testdir and --create-megatestdir.
27319
27320 2010-03-13  Bruno Haible  <bruno@clisp.org>
27321
27322         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27323         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27324         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27325         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27326         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27327         when appropriate.
27328         Reported by Jim Meyering.
27329
27330 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27331
27332         * gnulib-tool (func_import): Explain origin of code.
27333
27334 2010-03-12  Bruno Haible  <bruno@clisp.org>
27335
27336         Fix problem with automake's definition of CXXLINK.
27337         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27338         Reported by Simon Josefsson and Ludovic Courtès.
27339
27340 2010-03-12  Bruno Haible  <bruno@clisp.org>
27341
27342         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27343         stable releases.
27344
27345 2010-03-11  Bruno Haible  <bruno@clisp.org>
27346
27347         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27348         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27349         whether the system provides one variant or multiple variants of the
27350         function.
27351         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27352         C++ compilers.
27353         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27354         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27355         Reported by Jim Meyering.
27356
27357 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27358
27359         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27360
27361 2010-03-08  Bruno Haible  <bruno@clisp.org>
27362
27363         gnulib-tool: Add support for --libtool in --create-testdir.
27364         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27365         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27366
27367 2010-03-08  Eric Blake  <eblake@redhat.com>
27368
27369         gnulib-tool.texi: mention possibility of git submodule
27370         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27371         submodules.
27372         * doc/.gitignore: Ignore another generated file.
27373
27374 2010-03-08  Karl Berry  <karl@gnu.org>
27375
27376         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27377         of committing gnulib files while skipping others.
27378
27379 2010-03-07  Bruno Haible  <bruno@clisp.org>
27380
27381         Tests of module 'wctype' in C++ mode.
27382         * tests/test-wctype-c++.cc: New file.
27383         * modules/wctype-tests (Files): Add it and tests/signature.h.
27384         (Depends-on): Add ansi-c++-opt.
27385         (Makefile.am): Arrange to compile and run test-wctype-c++.
27386
27387         Tests of module 'wchar' in C++ mode.
27388         * tests/test-wchar-c++.cc: New file.
27389         * modules/wchar-tests (Files): Add it and tests/signature.h.
27390         (Depends-on): Add ansi-c++-opt.
27391         (Makefile.am): Arrange to compile and run test-wchar-c++.
27392         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27393         gl_MODULE_INDICATOR.
27394
27395         Tests of module 'unistd' in C++ mode.
27396         * tests/test-unistd-c++.cc: New file.
27397         * modules/unistd-tests (Files): Add it and tests/signature.h.
27398         (Depends-on): Add ansi-c++-opt.
27399         (Makefile.am): Arrange to compile and run test-unistd-c++.
27400         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27401         gl_MODULE_INDICATOR.
27402
27403         Tests of module 'time' in C++ mode.
27404         * tests/test-time-c++.cc: New file.
27405         * modules/time-tests (Files): Add it and tests/signature.h.
27406         (Depends-on): Add ansi-c++-opt.
27407         (Makefile.am): Arrange to compile and run test-time-c++.
27408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27409
27410         Tests of module 'sys_time' in C++ mode.
27411         * tests/test-sys_time-c++.cc: New file.
27412         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27413         (Depends-on): Add ansi-c++-opt.
27414         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27415         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27416         gl_MODULE_INDICATOR.
27417
27418         Tests of module 'sys_stat' in C++ mode.
27419         * tests/test-sys_stat-c++.cc: New file.
27420         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27421         (Depends-on): Add ansi-c++-opt.
27422         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27423         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27424         gl_MODULE_INDICATOR.
27425
27426         Tests of module 'sys_socket' in C++ mode.
27427         * tests/test-sys_socket-c++.cc: New file.
27428         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27429         (Depends-on): Add ansi-c++-opt.
27430         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27432         gl_MODULE_INDICATOR.
27433
27434         Tests of module 'sys_select' in C++ mode.
27435         * tests/test-sys_select-c++.cc: New file.
27436         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27437         (Depends-on): Add ansi-c++-opt.
27438         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27439         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27440         gl_MODULE_INDICATOR.
27441
27442         Tests of module 'sys_ioctl' in C++ mode.
27443         * tests/test-sys_ioctl-c++.cc: New file.
27444         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27445         (Depends-on): Add ansi-c++-opt.
27446         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27448         gl_MODULE_INDICATOR.
27449
27450         Tests of module 'string' in C++ mode.
27451         * tests/test-string-c++.cc: New file.
27452         * modules/string-tests (Files): Add it and tests/signature.h.
27453         (Depends-on): Add ansi-c++-opt.
27454         (Makefile.am): Arrange to compile and run test-string-c++.
27455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27456         gl_MODULE_INDICATOR.
27457
27458         Tests of module 'stdlib' in C++ mode.
27459         * tests/test-stdlib-c++.cc: New file.
27460         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27461         (Depends-on): Add ansi-c++-opt.
27462         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27463         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27464         gl_MODULE_INDICATOR.
27465
27466         Tests of module 'stdio' in C++ mode.
27467         * tests/test-stdio-c++.cc: New file.
27468         * modules/stdio-tests (Files): Add it and tests/signature.h.
27469         (Depends-on): Add ansi-c++-opt.
27470         (Makefile.am): Arrange to compile and run test-stdio-c++.
27471         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27472         gl_MODULE_INDICATOR.
27473
27474         Tests of module 'spawn' in C++ mode.
27475         * tests/test-spawn-c++.cc: New file.
27476         * modules/spawn-tests (Files): Add it and tests/signature.h.
27477         (Depends-on): Add ansi-c++-opt.
27478         (Makefile.am): Arrange to compile and run test-spawn-c++.
27479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27480         gl_MODULE_INDICATOR.
27481
27482         Tests of module 'signal' in C++ mode.
27483         * tests/test-signal-c++.cc: New file.
27484         * modules/signal-tests (Files): Add it and tests/signature.h.
27485         (Depends-on): Add ansi-c++-opt.
27486         (Makefile.am): Arrange to compile and run test-signal-c++.
27487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27488         gl_MODULE_INDICATOR.
27489
27490         Tests of module 'search' in C++ mode.
27491         * tests/test-search-c++.cc: New file.
27492         * modules/search-tests (Files): Add it and tests/signature.h.
27493         (Depends-on): Add ansi-c++-opt.
27494         (Makefile.am): Arrange to compile and run test-search-c++.
27495         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27496         gl_MODULE_INDICATOR.
27497
27498         Tests of module 'math' in C++ mode.
27499         * tests/test-math-c++.cc: New file.
27500         * modules/math-tests (Files): Add it and tests/signature.h.
27501         (Depends-on): Add ansi-c++-opt.
27502         (Makefile.am): Arrange to compile and run test-math-c++.
27503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27504
27505         Tests of module 'locale' in C++ mode.
27506         * tests/test-locale-c++.cc: New file.
27507         * modules/locale-tests (Files): Add it and tests/signature.h.
27508         (Depends-on): Add ansi-c++-opt.
27509         (Makefile.am): Arrange to compile and run test-locale-c++.
27510         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27511         gl_MODULE_INDICATOR.
27512
27513         Tests of module 'langinfo' in C++ mode.
27514         * tests/test-langinfo-c++.cc: New file.
27515         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27516         (Depends-on): Add ansi-c++-opt.
27517         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27518         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27519         gl_MODULE_INDICATOR.
27520
27521         Tests of module 'iconv-h' in C++ mode.
27522         * tests/test-iconv-h-c++.cc: New file.
27523         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27524         (Depends-on): Add ansi-c++-opt.
27525         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27526
27527         Tests of module 'glob' in C++ mode.
27528         * tests/test-glob-c++.cc: New file.
27529         * modules/glob-tests (Files): Add it.
27530         (Depends-on): Add ansi-c++-opt.
27531         (Makefile.am): Arrange to compile and run test-glob-c++.
27532
27533         Tests of module 'fcntl-h' in C++ mode.
27534         * tests/test-fcntl-h-c++.cc: New file.
27535         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27536         (Depends-on): Add ansi-c++-opt.
27537         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27538         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27539         gl_MODULE_INDICATOR.
27540
27541         Tests of module 'dirent' in C++ mode.
27542         * tests/test-dirent-c++.cc: New file.
27543         * modules/dirent-tests (Files): Add it and tests/signature.h.
27544         (Depends-on): Add ansi-c++-opt.
27545         (Makefile.am): Arrange to compile and run test-dirent-c++.
27546         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27547         gl_MODULE_INDICATOR.
27548
27549         New module 'ansi-c++-opt'.
27550         * modules/ansi-c++-opt: New file.
27551         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27552
27553         Document C++ namespace mode.
27554         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27555
27556         wctype: Avoid #define replacements in C++ mode.
27557         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27558         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27559         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27560         In C++, define a namespaced alias symbol.
27561         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27562         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27563         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27564         rule.
27565
27566         wchar: Avoid #define replacements in C++ mode.
27567         * lib/wchar.in.h: Include c++defs.h.
27568         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27569         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27570         symbol.
27571         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27572         * modules/wchar (Depends-on): Add c++defs.
27573         (Makefile.am): Update wchar.h rule.
27574
27575         unistd: Avoid #define replacements in C++ mode.
27576         * lib/unistd.in.h: Include c++defs.h.
27577         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27578         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27579         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27580         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27581         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27582         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27583         symbol.
27584         (environ): Update.
27585         * modules/unistd (Depends-on): Add c++defs.
27586         (Makefile.am): Update unistd.h rule.
27587
27588         time: Avoid #define replacements in C++ mode.
27589         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27590         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27591         define a namespaced alias symbol.
27592         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27593         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27594         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27595         * modules/time (Depends-on): Add c++defs, warn-on-use.
27596         (Makefile.am): Update time.h rule.
27597         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27598         * modules/nanosleep (configure.ac): Likewise.
27599         * modules/strptime (configure.ac): Likewise.
27600         * modules/timegm (configure.ac): Likewise.
27601
27602         sys_time: Avoid #define replacements in C++ mode.
27603         * lib/sys_time.in.h: Include c++defs.h.
27604         (gettimeofday): In C++, define a namespaced alias symbol.
27605         * modules/sys_time (Depends-on): Add c++defs.
27606         (Makefile.am): Update sys/time.h rule.
27607
27608         sys_stat: Avoid #define replacements in C++ mode.
27609         * lib/sys_stat.in.h: Include c++defs.h.
27610         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27611         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27612         namespaced alias symbol.
27613         In C++, define a namespaced alias symbol.
27614         * modules/sys_stat (Depends-on): Add c++defs.
27615         (Makefile.am): Update sys/stat.h rule.
27616
27617         sys_socket: Avoid #define replacements in C++ mode.
27618         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27619         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27620         definitions also when the system has a <sys/socket.h>.
27621         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27622         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27623         In C++, define a namespaced alias symbol.
27624         * modules/sys_socket (Depends-on): Add c++defs.
27625         (Makefile.am): Update sys/socket.h rule.
27626
27627         sys_select: Avoid #define replacements in C++ mode.
27628         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27629         definitions also when the system has a <sys/select.h>.
27630         (select): In C++, define a namespaced alias symbol.
27631         * modules/sys_select (Depends-on): Add c++defs.
27632         (Makefile.am): Update sys/select.h rule.
27633
27634         sys_ioctl: Avoid #define replacements in C++ mode.
27635         * lib/sys_ioctl.in.h: Include c++defs.h.
27636         (ioctl): In C++, define a namespaced alias symbol.
27637         * modules/sys_ioctl (Depends-on): Add c++defs.
27638         (Makefile.am): Update sys/ioctl.h rule.
27639
27640         string: Avoid #define replacements in C++ mode.
27641         * lib/string.in.h: Include c++defs.h.
27642         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27643         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27644         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27645         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27646         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27647         * modules/string (Depends-on): Add c++defs.
27648         (Makefile.am): Update string.h rule.
27649
27650         stdlib: Avoid #define replacements in C++ mode.
27651         * lib/stdlib.in.h: Include c++defs.h.
27652         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27653         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27654         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27655         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27656         symbol.
27657         * modules/stdlib (Depends-on): Add c++defs.
27658         (Makefile.am): Update stdlib.h rule.
27659
27660         stdio: Avoid #define replacements in C++ mode.
27661         * lib/stdio.in.h: Include c++defs.h.
27662         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27663         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27664         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27665         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27666         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27667         namespaced alias symbol.
27668         * modules/stdio (Depends-on): Add c++defs.
27669         (Makefile.am): Update stdio.h rule.
27670
27671         spawn: Avoid #define replacements in C++ mode.
27672         * lib/spawn.in.h: Include c++defs.h.
27673         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27674         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27675         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27676         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27677         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27678         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27679         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27680         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27681         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27683         In C++, define a namespaced alias symbol.
27684         * modules/spawn (Depends-on): Add c++defs.
27685         (Makefile.am): Update spawn.h rule.
27686
27687         signal: Avoid #define replacements in C++ mode.
27688         * lib/signal.in.h: Include c++defs.h.
27689         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27690         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27691         namespaced alias symbol.
27692         * modules/signal (Depends-on): Add c++defs.
27693         (Makefile.am): Update signal.h rule.
27694
27695         search: Avoid #define replacements in C++ mode.
27696         * lib/search.in.h: Include c++defs.h.
27697         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27698         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27699         symbol.
27700         * modules/search (Depends-on): Add c++defs.
27701         (Makefile.am): Update search.h rule.
27702
27703         math: Avoid #define replacements in C++ mode.
27704         * lib/math.in.h: Include c++defs.h.
27705         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27706         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27707         trunc, truncl): In C++, define a namespaced alias symbol.
27708         * modules/math (Depends-on): Add c++defs.
27709         (Makefile.am): Update math.h rule.
27710
27711         locale: Avoid #define replacements in C++ mode.
27712         * lib/locale.in.h: Include c++defs.h.
27713         (duplocale): In C++, define a namespaced alias symbol.
27714         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27715         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27716         * modules/locale (Depends-on): Add c++defs.
27717         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27718
27719         langinfo: Avoid #define replacements in C++ mode.
27720         * lib/langinfo.in.h: Include c++defs.h.
27721         (nl_langinfo): In C++, define a namespaced alias symbol.
27722         * modules/langinfo (Depends-on): Add c++defs.
27723         (Makefile.am): Update langinfo.h rule.
27724
27725         iconv-h: Avoid #define replacements in C++ mode.
27726         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27727         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27728         symbol.
27729         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27730         whenever iconv is present.
27731         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27732         (Makefile.am): Update iconv.h rule.
27733
27734         glob: Avoid #define replacements in C++ mode.
27735         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27736         (_gl_glob_errfunc_fn): New type.
27737         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27738         symbol.
27739         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27740         (Makefile.am): Update glob.h rule.
27741
27742         fcntl-h: Avoid #define replacements in C++ mode.
27743         * lib/fcntl.in.h: Include c++defs.h.
27744         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27745         * modules/fcntl-h (Depends-on): Add c++defs.
27746         (Makefile.am): Update fcntl.h rule.
27747
27748         dirent: Avoid #define replacements in C++ mode.
27749         * lib/dirent.in.h: Include c++defs.h.
27750         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27751         namespaced alias symbol.
27752         (dirfd): Update declaration.
27753         * modules/dirent (Depends-on): Add c++defs.
27754         (Makefile.am): Update dirent.h rule.
27755
27756         ctype: Make it usable in C++ code.
27757         * lib/ctype.in.h: Include c++defs.h.
27758         (isblank): Declare as extern "C".
27759         * modules/ctype (Depends-on): Add c++defs.
27760         (Makefile.am): Update ctype.h rule.
27761
27762         New module 'c++defs'.
27763         * modules/c++defs: New file.
27764         * build-aux/c++defs.h: New file.
27765         Reported by John W. Eaton <jwe@gnu.org>.
27766
27767 2010-03-07  Bruno Haible  <bruno@clisp.org>
27768
27769         logb: Provide missing declaration for Cygwin.
27770         * lib/math.in.h (logb): New declaration.
27771         * m4/logb.m4: New file.
27772         * modules/logb (Files): Add m4/logb.m4.
27773         (Depends-on): Add math.
27774         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27775         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27777         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27778         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27779
27780 2010-03-07  Bruno Haible  <bruno@clisp.org>
27781
27782         Fix test-cond link error.
27783         * tests/test-cond.c: Include <stdio.h>.
27784
27785 2010-03-07  Bruno Haible  <bruno@clisp.org>
27786
27787         Fix test-dirent-safer link error.
27788         * modules/dirent-safer-tests (Makefile.am): Define
27789         test_dirent_safer_LDADD.
27790
27791 2010-03-07  Bruno Haible  <bruno@clisp.org>
27792
27793         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27794         among default module list.
27795
27796 2010-03-07  Bruno Haible  <bruno@clisp.org>
27797
27798         Fix link error on platforms with GNU libiconv.
27799         * modules/unistr/u8-strcoll-tests (Makefile): Define
27800         test_u8_strcoll_LDADD.
27801         * modules/unistr/u16-strcoll-tests (Makefile): Define
27802         test_u16_strcoll_LDADD.
27803         * modules/unistr/u32-strcoll-tests (Makefile): Define
27804         test_u32_strcoll_LDADD.
27805
27806 2010-03-07  Bruno Haible  <bruno@clisp.org>
27807
27808         Use POSIX declarations for socket functions.
27809         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27810         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27811         rpl_sendto): Change declaration to match POSIX.
27812         * lib/connect.c (rpl_connect): Likewise.
27813         * lib/accept.c (rpl_accept): Likewise.
27814         * lib/bind.c (rpl_bind): Likewise.
27815         * lib/getpeername.c (rpl_getpeername): Likewise.
27816         * lib/getsockname.c (rpl_getsockname): Likewise.
27817         * lib/recv.c (rpl_recv): Likewise.
27818         * lib/send.c (rpl_send): Likewise.
27819         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27820         * lib/sendto.c (rpl_sendto): Likewise.
27821
27822 2010-03-06  Bruno Haible  <bruno@clisp.org>
27823
27824         Clarify access, euidaccess, faccessat.
27825         * doc/posix-functions/faccessat.texi: Mention security problem under
27826         "Other problems", not "Portability problems".
27827         * doc/posix-functions/access.texi: Likewise. Mention a related security
27828         problem.
27829         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27830         * lib/euidaccess.c: Add comments about platforms.
27831         * lib/unistd.in.h (access, euidaccess): Add warnings.
27832
27833 2010-03-07  Bruno Haible  <bruno@clisp.org>
27834
27835         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27836         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27837         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27838         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27839         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27840         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27841         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27842         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27843         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27845         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27846         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27847         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27848         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27849         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27850         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27851         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27852         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27853         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27854         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27855         Likewise.
27856         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27857         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27858         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27859         Likewise.
27860         * tests/test-spawn.c (main): Make it work when
27861         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27862
27863 2010-03-07  Bruno Haible  <bruno@clisp.org>
27864
27865         Fix incorrect Makefile.am generation in German locale.
27866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27867         Execute sed command with character range in C locale.
27868
27869 2010-03-06  Bruno Haible  <bruno@clisp.org>
27870
27871         Tests for module 'iconv-h'.
27872         * modules/iconv-h-tests: New file.
27873         * tests/test-iconv-h.c: New file.
27874
27875         New module 'iconv-h'.
27876         * modules/iconv-h: New file.
27877         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27878         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27879         (configure.ac): Remove gl_ICONV_H.
27880         (Makefile.am): Remove rule for iconv.h.
27881
27882 2010-03-06  Bruno Haible  <bruno@clisp.org>
27883
27884         More consistent naming of *.m4 files.
27885         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27886         * modules/wctype (Files): Update.
27887
27888         More consistent naming of *.m4 files.
27889         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27890         * modules/wchar (Files): Update.
27891
27892 2010-03-06  Jim Meyering  <meyering@redhat.com>
27893
27894         euidaccess: relax license to LGPLv2+
27895         * modules/euidaccess (License): Relax to LGPLv2+.
27896
27897 2010-03-06  Bruno Haible  <bruno@clisp.org>
27898
27899         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27900         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27901         (Makefile.am): Augment lib_SOURCES instead.
27902
27903 2010-03-04  Jim Meyering  <meyering@redhat.com>
27904
27905         utime: remove obsolete module
27906         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27907         unnecessary for years, and has been marked as obsolete for 10 months.
27908         * modules/utime: Remove file.
27909         * lib/utime.c: Remove file.
27910         * m4/utime.m4: Remove file.
27911         * m4/utimes-null.m4: Remove file.
27912         * doc/posix-functions/utime.texi (utime): Remove reference to
27913         the module.  Move the sole "fixed by gnulib" item into the
27914         "problems not fixed by Gnulib" list.
27915         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27916
27917 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27918
27919         * modules/exit (License): Relax license to LGPLv2+.
27920         (Status): Mark as obsolete.
27921         * NEWS: Mention deprecated 'exit' module.
27922         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27923         of now obsolete 'exit'.
27924
27925 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27926
27927         fts-lgpl: remove unused module
27928         * modules/fts-lgpl: Remove.
27929         * MODULES.html.sh (func_all_modules): Adjust.
27930         * check-module (find_included_lib_files): Adjust.
27931         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27932
27933 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27934
27935         copy-acl: enhance Solaris ACL error handling
27936         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27937         * lib/set-mode-acl.c (qset_acl): Likewise.
27938
27939 2010-03-02  Bruno Haible  <bruno@clisp.org>
27940
27941         spawn: Don't override the system defined values on FreeBSD 8.
27942         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27943         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27944         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27945         if HAVE_POSIX_SPAWN is 1.
27946         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27947
27948 2010-03-01  Bruno Haible  <bruno@clisp.org>
27949
27950         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27951         regarding Automake.
27952
27953 2010-02-25  Bruno Haible  <bruno@clisp.org>
27954
27955         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27956         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27957         setting, not afterwards.
27958         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27959
27960 2010-02-24  Eric Blake  <eblake@redhat.com>
27961
27962         bootstrap, git-version-gen: use timestamp
27963         * build-aux/git-version-gen (scriptversion): Force UTC.
27964         * build-aux/bootstrap (scriptversion): New variable.
27965
27966         bootstrap: allow older git
27967         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27968         older than 1.6.4.  Requested by the libvirt project.
27969
27970 2010-02-23  Eric Blake  <eblake@redhat.com>
27971
27972         warn-on-use: work with old autoconf
27973         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27974         AS_VAR semantics of autoconf 2.60.
27975         Reported by Bruno Haible.
27976
27977         bootstrap: improve some comments
27978         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27979         clarification comments.
27980
27981         gettimeofday: provide correct function
27982         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27983         when replacement is declared, otherwise provide gettimeofday.
27984         Reported by Michael Goffioul.
27985
27986 2010-02-23  Jim Meyering  <meyering@redhat.com>
27987
27988         lib-ignore: relax license to "unlimited", not LGPLv2+
27989         * modules/lib-ignore (License): Relax to "unlimited".
27990
27991 2010-02-23  Jim Meyering  <meyering@redhat.com>
27992
27993         lib-ignore: relax license to LGPLv2+
27994         * modules/lib-ignore (License): Relax to LGPLv2+.
27995
27996 2010-02-22  Eric Blake  <eblake@redhat.com>
27997
27998         lseek: avoid bash 3.2 broken pipe bug
27999         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28000         warning from bash 3.2.
28001         Reported by Ben Pfaff, with analysis from Bruno Haible.
28002
28003         bootstrap: support non-FSF copyright holder
28004         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28005         bootstrap.conf override of COPYRIGHT_HOLDER.
28006         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28007
28008         bootstrap: interoperate with gettext 0.14.1
28009         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28010
28011         bootstrap: allow for alternate submodule location
28012         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28013         hardcoding submodule location.
28014         (gnulib_mk): Allow direct use of Makefile.am.
28015
28016         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28017         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28018         rather than reconfiguring where the submodule points.
28019
28020         gettimeofday: restore support for platforms that lack function
28021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28022         replacement if function is missing.
28023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28024         * modules/sys_time (Makefile.am): Substitute it.
28025         * lib/sys_time.in.h (gettimeofday): Check it.
28026         Reported by Michael Goffioul.
28027
28028 2010-02-21  Bruno Haible  <bruno@clisp.org>
28029
28030         * lib/stdio.in.h (obstack_printf): Fix typo.
28031
28032 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28033
28034         vc-list-files: use bzr ls's -R option
28035         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28036         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28037
28038 2010-02-21  Jim Meyering  <meyering@redhat.com>
28039
28040         init.sh: fix EXEEXT shims to work also for names like test-prog
28041         * tests/init.sh: Re-exec a better shell, when needed.
28042         If the current shell lacks support for posix $(...), an init.sh-using
28043         test will now try to find a shell that supports that.  If EXEEXT is
28044         nonempty, we also require support for hyphen-in-alias-name and shell
28045         substitutions like ${var#glob}.  Failure to find such a shell results
28046         in a skipped test.
28047
28048 2010-02-21  Bruno Haible  <bruno@clisp.org>
28049
28050         Really work around around "broken pipe" error message from bash 3.2.
28051         * gnulib-tool (func_reset_sigpipe): Remove function.
28052         (echo): In bash 3.2, define to a function that uses printf.
28053         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28054
28055 2010-02-20  Bruno Haible  <bruno@clisp.org>
28056
28057         Restore support for automake 1.9.6 with autoconf 2.61.
28058         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28059         Reported by James Youngman <jay@gnu.org>.
28060
28061 2010-02-20  Bruno Haible  <bruno@clisp.org>
28062
28063         Improve *printf warning condition.
28064         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28065         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28066         and the function is overridden due to SIGPIPE emulation.
28067
28068 2010-02-20  Bruno Haible  <bruno@clisp.org>
28069
28070         * lib/stdio.in.h: Tweak comments.
28071
28072 2010-02-19  Bruno Haible  <bruno@clisp.org>
28073
28074         Make it easier to find modules. New gnulib-tool option '--find'.
28075         * gnulib-tool: New option --find.
28076         (func_usage): Document it.
28077         (func_sanitize_modulelist): New function, extracted from
28078         func_all_modules.
28079         (func_all_modules): Invoke it.
28080         * doc/gnulib-tool.texi (Which modules?): New node.
28081
28082 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28083
28084         * lib/sys_select.in.h: Provide select replacement even if
28085         sys/select.h exists on a system, for Interix.
28086
28087 2010-02-18  Jim Meyering  <meyering@redhat.com>
28088
28089         init.sh: don't use $(...) just yet
28090         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28091         to accommodate e.g., Solaris' /bin/sh.
28092
28093 2010-02-17  Bruno Haible  <bruno@clisp.org>
28094
28095         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28096         Reported by Ludovic Courtès <ludo@gnu.org>.
28097
28098 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28099
28100         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28101         linking with -lintl.
28102
28103 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28104
28105         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28106         if not provided by the system's netdb.h.  Reported by
28107         ludo@gnu.org (Ludovic Courtès).
28108
28109 2010-02-15  Jim Meyering  <meyering@redhat.com>
28110
28111         init.sh: improve portability and efficiency
28112         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28113         "dummy" in a for loop.
28114         Use '!', not '^' to select the complement of a character set used
28115         in a "case" statement.
28116         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28117         Suggestions from Eric Blake.
28118
28119         init.sh: automatically accommodate programs with the .exe suffix
28120         Automatically arrange for an invocation of "prog" to execute the
28121         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28122         may use the simpler "prog", yet still work when built on a system
28123         that requires specifying the added suffix.
28124         Do this by constructing a function named "prog" that invokes
28125         "prog.exe" for each .exe file in selected directories.
28126         * tests/init.sh (find_exe_basenames_): New function.
28127         (create_exe_shim_functions_): New function.
28128         (path_prepend_): Use it.
28129
28130         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28131         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28132         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28133
28134 2010-02-14  Jim Meyering  <meyering@redhat.com>
28135
28136         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28137         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28138         (sc_prohibit_hash_pjw_without_use): New rule.
28139
28140         maint.mk: allow the default upload destination dir to be overridden
28141         * top/maint.mk (upload_dest_dir_): Define with a default that
28142         preserves the status quo.
28143         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28144         Reported by Peter Simons.
28145
28146         maint.mk: prohibit inclusion of "hash.h" without_use
28147         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28148
28149 2010-02-10  Jim Meyering  <meyering@redhat.com>
28150
28151         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28152         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28153
28154 2010-02-09  Eric Blake  <ebb9@byu.net>
28155         and Bruno Haible  <bruno@clisp.org>
28156
28157         obstack-printf-posix: ensure declaration
28158         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28159         extracted from gl_FUNC_OBSTACK_PRINTF.
28160         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28161         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28162         Likewise.
28163         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28164         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28165         0.
28166
28167 2010-02-08  Bruno Haible  <bruno@clisp.org>
28168
28169         gnulib-tool: Fix typo in 2010-02-07 commit.
28170         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28171         Reported by Eric Blake.
28172
28173 2010-02-07  Bruno Haible  <bruno@clisp.org>
28174
28175         gnulib-tool: Fix up caching patches.
28176         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28177         option --no-cache. Use associative arrays when supported by the shell.
28178         (sed_comments): New variable.
28179         (modcache): Renamed from do_cache.
28180         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28181         abbreviate unnecessarily.
28182         (have_associative): New variable.
28183         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28184         way also for ksh and zsh.
28185         (func_init_sed_convert_to_cache_statements): New function, extracted
28186         from func_cache_lookup_module. Add support for associative arrays.
28187         Don't set the c_MODULE_cached variable here. Ignore all lines before
28188         the first field header. Remove only the final newline, not all trailing
28189         newlines. Support empty fields correctly. Limit the use of 'eval' to
28190         assignments.
28191         (func_get_description, func_get_status, func_get_notice,
28192         func_get_applicability, func_get_filelist, func_get_dependencies,
28193         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28194         func_get_automake_snippet, func_get_include_directive,
28195         func_get_link_directive, func_get_license, func_get_maintainer):
28196         Update documentation. List the unoptimized code first. Add support for
28197         associative arrays. Limit the use of 'eval' to assignments.
28198         (func_get_applicability): Undo stylistic pessimisations.
28199         (func_get_automake_snippet, func_get_include_directive): Reduce code
28200         duplication.
28201         (func_modules_transitive_closure, func_modules_add_dummy,
28202         func_modules_notice, func_modules_to_filelist, func_add_file,
28203         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28204         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28205         func_create_testdir, func_create_megatestdir): Update documentation.
28206
28207 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28208
28209         * gnulib-tool (func_cache_lookup_module): Store the module name
28210         belonging to the cache variable; error out if two different
28211         module names map to the same cache variable name.
28212
28213 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28214
28215         gnulib-tool: Make caching optional.
28216         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28217         Update matching short versions of --no-changelog.
28218         (func_usage): Update.
28219         (sed_extract_cache_prog): Renamed from ...
28220         (sed_extract_prog): ... this; revert to old extraction script.
28221         (func_get_description, func_get_status)
28222         (func_get_notice, func_get_applicability, func_get_filelist)
28223         (func_get_dependencies, func_get_autoconf_early_snippet)
28224         (func_get_autoconf_snippet, func_get_automake_snippet)
28225         (func_get_include_directive, func_get_link_directive)
28226         (func_get_license, func_get_maintainer): If $do_cache is false,
28227         use old, non-caching extraction scripts.
28228         Suggestion by Bruno Haible.
28229
28230 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28231
28232         gnulib-tool: cache module metainformation.
28233         * gnulib-tool (sed_extract_prog): Match newline before each
28234         header, and rewrite header to a shell variable suffix.
28235         (func_cache_var, func_cache_lookup_module): New functions,
28236         to turn a module name into a cache variable prefix, and to
28237         look up and cache module metainformation.
28238         (func_get_description, func_get_status)
28239         (func_get_notice, func_get_applicability, func_get_filelist)
28240         (func_get_dependencies, func_get_autoconf_early_snippet)
28241         (func_get_autoconf_snippet, func_get_automake_snippet)
28242         (func_get_include_directive, func_get_link_directive)
28243         (func_get_license, func_get_maintainer): Use
28244         func_cache_lookup_module.
28245
28246 2010-02-07  Bruno Haible  <bruno@clisp.org>
28247
28248         fnctl: Fix missing dependency.
28249         * modules/fcntl (Depends-on): Add getdtablesize.
28250         Reported by John W. Eaton <jwe@gnu.org>.
28251
28252 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28253
28254         Argp: fix recognition of short alias options.
28255
28256         * lib/argp-parse.c (convert_options): Fix improper use of
28257         `|' between character values.
28258         * tests/test-argp.c (group1_option): New alias option
28259         --read (-r).
28260         (group1_parser): Special handling for 'r'.
28261         (test15): New test case.
28262         (test_fun): Add test15.
28263         * tests/test-argp-2.sh: Update expected --help and --usage
28264         outputs.
28265
28266 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28267
28268         * tests/test-argp.c: Fix indentation.
28269
28270 2010-02-04  Eric Blake  <ebb9@byu.net>
28271
28272         gettimeofday: expose type of second argument
28273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28274         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28275         * tests/test-gettimeofday.c: Use it to silence warning.
28276         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28277         the issue.
28278
28279 2010-02-03  Jim Meyering  <meyering@redhat.com>
28280
28281         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28282         * lib/regcomp.c (TYPE_SIGNED): Define.
28283         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28284
28285         regcomp.c: avoid a new -Wshadow warning
28286         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28287
28288 2010-02-01  Jim Meyering  <meyering@redhat.com>
28289
28290         removing useless parentheses in cpp #define directives
28291         For motivation, see commit c0221df4, "define STREQ(a,b)
28292         consistently, removing useless parentheses"
28293         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28294         * lib/mountlist.c (MNT_IGNORE): Likewise.
28295         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28296
28297 2010-02-01  Eric Blake  <ebb9@byu.net>
28298
28299         sys_time: use link-warning
28300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28301         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28302         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28303         * modules/sys_time (Depends-on): Add warn-on-use.
28304         (Makefile.am): Always build replacement.
28305         (configure.ac): Update substitutions.
28306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28307         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28308         bother with SYS_TIME_H.
28309         * modules/gettimeofday (configure.ac): Declare indicator.
28310         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28311         in use.
28312
28313         closein-tests: silence compiler warning
28314         * tests/test-closein.c (main): Ignore fread result.
28315         * modules/closein-tests (Depends-on): Add ignore-value.
28316
28317         tests: silence warning about system return
28318         * tests/test-areadlink-with-size.c (main): Ignore system result.
28319         * tests/test-areadlink.c (main): Likewise.
28320         * tests/test-areadlinkat-with-size.c (main): Likewise.
28321         * tests/test-areadlinkat.c (main): Likewise.
28322         * tests/test-canonicalize-lgpl.c (main): Likewise.
28323         * tests/test-canonicalize.c (main): Likewise.
28324         * tests/test-chown.c (main): Likewise.
28325         * tests/test-fchownat.c (main): Likewise.
28326         * tests/test-fdutimensat.c (main): Likewise.
28327         * tests/test-fstatat.c (main): Likewise.
28328         * tests/test-futimens.c (main): Likewise.
28329         * tests/test-lchown.c (main): Likewise.
28330         * tests/test-link.c (main): Likewise.
28331         * tests/test-linkat.c (main): Likewise.
28332         * tests/test-lstat.c (main): Likewise.
28333         * tests/test-mkdir.c (main): Likewise.
28334         * tests/test-mkdirat.c (main): Likewise.
28335         * tests/test-mkfifo.c (main): Likewise.
28336         * tests/test-mkfifoat.c (main): Likewise.
28337         * tests/test-mknod.c (main): Likewise.
28338         * tests/test-readlink.c (main): Likewise.
28339         * tests/test-remove.c (main): Likewise.
28340         * tests/test-rename.c (main): Likewise.
28341         * tests/test-renameat.c (main): Likewise.
28342         * tests/test-rmdir.c (main): Likewise.
28343         * tests/test-symlink.c (main): Likewise.
28344         * tests/test-symlinkat.c (main): Likewise.
28345         * tests/test-unlink.c (main): Likewise.
28346         * tests/test-unlinkat.c (main): Likewise.
28347         * tests/test-utimens.c (main): Likewise.
28348         * tests/test-utimensat.c (main): Likewise.
28349         * modules/areadlink-tests (Depends-on): Add ignore-value.
28350         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28351         * modules/areadlinkat-tests (Depends-on): Likewise.
28352         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28354         * modules/canonicalize-tests (Depends-on): Likewise.
28355         * modules/chown-tests (Depends-on): Likewise.
28356         * modules/fdutimensat-tests (Depends-on): Likewise.
28357         * modules/futimens-tests (Depends-on): Likewise.
28358         * modules/lchown-tests (Depends-on): Likewise.
28359         * modules/link-tests (Depends-on): Likewise.
28360         * modules/linkat-tests (Depends-on): Likewise.
28361         * modules/lstat-tests (Depends-on): Likewise.
28362         * modules/mkdir-tests (Depends-on): Likewise.
28363         * modules/mkfifo-tests (Depends-on): Likewise.
28364         * modules/mkfifoat-tests (Depends-on): Likewise.
28365         * modules/mknod-tests (Depends-on): Likewise.
28366         * modules/openat-tests (Depends-on): Likewise.
28367         * modules/readlink-tests (Depends-on): Likewise.
28368         * modules/remove-tests (Depends-on): Likewise.
28369         * modules/rename-tests (Depends-on): Likewise.
28370         * modules/renameat-tests (Depends-on): Likewise.
28371         * modules/rmdir-tests (Depends-on): Likewise.
28372         * modules/symlink-tests (Depends-on): Likewise.
28373         * modules/symlinkat-tests (Depends-on): Likewise.
28374         * modules/unlink-tests (Depends-on): Likewise.
28375         * modules/utimens-tests (Depends-on): Likewise.
28376         * modules/utimensat-tests (Depends-on): Likewise.
28377
28378 2010-01-31  Bruno Haible  <bruno@clisp.org>
28379
28380         Perform the same test for many <math.h> functions.
28381         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28382         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28383         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28384         of gl_MATHFUNC.
28385         * modules/acos (configure.ac): Likewise.
28386         * modules/asin (configure.ac): Likewise.
28387         * modules/atan (configure.ac): Likewise.
28388         * modules/atan2 (configure.ac): Likewise.
28389         * modules/cbrt (configure.ac): Likewise.
28390         * modules/copysign (configure.ac): Likewise.
28391         * modules/cos (configure.ac): Likewise.
28392         * modules/cosh (configure.ac): Likewise.
28393         * modules/erf (configure.ac): Likewise.
28394         * modules/erfc (configure.ac): Likewise.
28395         * modules/exp (configure.ac): Likewise.
28396         * modules/fmod (configure.ac): Likewise.
28397         * modules/hypot (configure.ac): Likewise.
28398         * modules/j0 (configure.ac): Likewise.
28399         * modules/j1 (configure.ac): Likewise.
28400         * modules/jn (configure.ac): Likewise.
28401         * modules/lgamma (configure.ac): Likewise.
28402         * modules/log (configure.ac): Likewise.
28403         * modules/log10 (configure.ac): Likewise.
28404         * modules/log1p (configure.ac): Likewise.
28405         * modules/pow (configure.ac): Likewise.
28406         * modules/remainder (configure.ac): Likewise.
28407         * modules/sin (configure.ac): Likewise.
28408         * modules/sinh (configure.ac): Likewise.
28409         * modules/tan (configure.ac): Likewise.
28410         * modules/tanh (configure.ac): Likewise.
28411         * modules/y0 (configure.ac): Likewise.
28412         * modules/y1 (configure.ac): Likewise.
28413         * modules/yn (configure.ac): Likewise.
28414         Suggested by Paolo Bonzini.
28415
28416 2010-01-31  Bruno Haible  <bruno@clisp.org>
28417
28418         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28419
28420 2010-01-31  Bruno Haible  <bruno@clisp.org>
28421
28422         Work around getdelim() bug on FreeBSD 8.0.
28423         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28424         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28425         not work.
28426         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28427         is 1.
28428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28429         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28430         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28431         a non-zero size.
28432         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28433
28434 2010-01-31  Bruno Haible  <bruno@clisp.org>
28435
28436         Work around getline() bug on FreeBSD 8.0.
28437         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28438         and a non-zero size.
28439         * tests/test-getline.c (main): Likewise.
28440         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28441         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28442
28443 2010-01-28  Eric Blake  <ebb9@byu.net>
28444
28445         regex: fix build failure
28446         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28447         platforms.
28448
28449 2010-01-28  Jim Meyering  <meyering@redhat.com>
28450
28451         regex: do not ignore memory allocation failure
28452         * lib/regex_internal.c (create_cd_newstate): Detect
28453         re_node_set_init_copy failure.   Extracted from glibc commit
28454         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28455
28456         regex: sync more white-space changes from libc
28457         * lib/regex_internal.c: White-space only changes.
28458         * lib/regexec.c: Likewise.
28459
28460         regex: add many uses of __attribute_warn_unused_result__
28461         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28462         * lib/regexec.c: Likewise.
28463         Extracted from a messy glibc commit.
28464
28465         regcomp.c: spelling and merge-artifact from glibc
28466         * lib/regcomp.c: Merge remainder of glibc's
28467         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28468
28469         regcomp.c: sync white-space changes from glibc
28470         * lib/regcomp.c: Merge to accommodate white space
28471         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28472
28473         regcomp.c: do not ignore internal return values
28474         * lib/regcomp.c: Do not ignore internal return values.
28475         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28476         but without its white-space changes and spelling fixes.
28477
28478         regex_internal.h: define __attribute_warn_unused_result__
28479         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28480
28481         maint: add a syntax-check rule to check for vulnerable Makefile.in
28482         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28483
28484 2010-01-27  Jim Meyering  <meyering@redhat.com>
28485
28486         ncftpput-ftp: clean up spaces
28487         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28488         Remove trailing blanks.
28489
28490 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28491
28492         * build-aux/git-version-gen: Fix copyright statement.
28493         * build-aux/gnupload: Likewise.
28494         * tests/test-arcfour.c: Likewise.
28495         * tests/test-arctwo.c: Likewise.
28496         * tests/test-count-one-bits.c: Likewise.
28497         * tests/test-crc.c: Likewise.
28498         * tests/test-des.c: Likewise.
28499         * tests/test-gc-arcfour.c: Likewise.
28500         * tests/test-gc-arctwo.c: Likewise.
28501         * tests/test-gc-des.c: Likewise.
28502         * tests/test-gc-hmac-md5.c: Likewise.
28503         * tests/test-gc-hmac-sha1.c: Likewise.
28504         * tests/test-gc-md2.c: Likewise.
28505         * tests/test-gc-md4.c: Likewise.
28506         * tests/test-gc-md5.c: Likewise.
28507         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28508         * tests/test-gc-rijndael.c: Likewise.
28509         * tests/test-gc-sha1.c: Likewise.
28510         * tests/test-gc.c: Likewise.
28511         * tests/test-gethostname.c: Likewise.
28512         * tests/test-gettimeofday.c: Likewise.
28513         * tests/test-hash.c: Likewise.
28514         * tests/test-hmac-md5.c: Likewise.
28515         * tests/test-hmac-sha1.c: Likewise.
28516         * tests/test-md2.c: Likewise.
28517         * tests/test-md4.c: Likewise.
28518         * tests/test-md5.c: Likewise.
28519         * tests/test-memchr.c: Likewise.
28520         * tests/test-memchr2.c: Likewise.
28521         * tests/test-memcmp.c: Likewise.
28522         * tests/test-memmem.c: Likewise.
28523         * tests/test-memrchr.c: Likewise.
28524         * tests/test-rawmemchr.c: Likewise.
28525         * tests/test-read-file.c: Likewise.
28526         * tests/test-rijndael.c: Likewise.
28527         * tests/test-sockets.c: Likewise.
28528         * tests/test-strchrnul.c: Likewise.
28529         * tests/test-strstr.c: Likewise.
28530         * tests/test-strtod.c: Likewise.
28531         * build-aux/ncftpput-ftp: Likewise.
28532
28533 2010-01-26  Eric Blake  <ebb9@byu.net>
28534
28535         ignore-value: update recommended header name
28536         * modules/ignore-value (Include): Only use <> for headers that
28537         exist in glibc.
28538
28539 2010-01-26  Jim Meyering  <meyering@redhat.com>
28540
28541         test-userspec.c: avoid compiler warnings
28542         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28543         and "initialization discards qualifiers..." warnings.
28544         Put the first "uid" in its own scope, and make char* members "const".
28545
28546 2010-01-25  Bruno Haible  <bruno@clisp.org>
28547
28548         gnulib-tool: Make warning diagnostics consistent.
28549         * gnulib-tool (func_warning): New function.
28550         Use it everywhere where gnulib-tool produces output to stderr and it is
28551         not a fatal error.
28552
28553 2010-01-25  Bruno Haible  <bruno@clisp.org>
28554
28555         Fix test dependencies.
28556         * modules/xstrtol-tests (Depends-on): Add inttypes.
28557         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28558
28559 2010-01-25 Pádraig Brady <P@draigBrady.com>
28560
28561         syntax-check: detect incorrect boolean macro values in config.h
28562         * modules/maintainer-makefile (configure.ac): Parameterize the location
28563         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28564         The logic is from Eric Blake and the location indicated by Jim Meyering.
28565         Note the more natural CONFIG_HEADER name is prohibited by automake
28566         for backwards compatibility reasons.
28567         * top/maint.mk (sc_Wundef_boolean): New rule.
28568
28569 2010-01-25  Jim Meyering  <meyering@redhat.com>
28570
28571         bootstrap: detect MacOS 10.6's shasum, too
28572         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28573         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28574
28575 2010-01-23  Jim Meyering  <meyering@redhat.com>
28576
28577         xstrtoll: new module
28578         * modules/xstrtoll: New file.
28579         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28580         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28581         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28582         ./configure fails if you use this module and lack "long long".
28583         * modules/xstrtoll-tests: New module.
28584         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28585         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28586         new init.sh-based test framework.
28587
28588 2010-01-24  Bruno Haible  <bruno@clisp.org>
28589
28590         Tests for module 'yn'.
28591         * modules/yn-tests: New file.
28592         * tests/test-yn.c: New file.
28593
28594         Tests for module 'y1'.
28595         * modules/y1-tests: New file.
28596         * tests/test-y1.c: New file.
28597
28598         Tests for module 'y0'.
28599         * modules/y0-tests: New file.
28600         * tests/test-y0.c: New file.
28601
28602         Tests for module 'tanh'.
28603         * modules/tanh-tests: New file.
28604         * tests/test-tanh.c: New file.
28605
28606         Tests for module 'tan'.
28607         * modules/tan-tests: New file.
28608         * tests/test-tan.c: New file.
28609
28610         Tests for module 'sqrt'.
28611         * modules/sqrt-tests: New file.
28612         * tests/test-sqrt.c: New file.
28613
28614         Tests for module 'sinh'.
28615         * modules/sinh-tests: New file.
28616         * tests/test-sinh.c: New file.
28617
28618         Tests for module 'sin'.
28619         * modules/sin-tests: New file.
28620         * tests/test-sin.c: New file.
28621
28622         Tests for module 'rint'.
28623         * modules/rint-tests: New file.
28624         * tests/test-rint.c: New file.
28625
28626         Tests for module 'remainder'.
28627         * modules/remainder-tests: New file.
28628         * tests/test-remainder.c: New file.
28629
28630         Tests for module 'pow'.
28631         * modules/pow-tests: New file.
28632         * tests/test-pow.c: New file.
28633
28634         Tests for module 'nextafter'.
28635         * modules/nextafter-tests: New file.
28636         * tests/test-nextafter.c: New file.
28637
28638         Tests for module 'modf'.
28639         * modules/modf-tests: New file.
28640         * tests/test-modf.c: New file.
28641
28642         Tests for module 'logb'.
28643         * modules/logb-tests: New file.
28644         * tests/test-logb.c: New file.
28645
28646         Tests for module 'log1p'.
28647         * modules/log1p-tests: New file.
28648         * tests/test-log1p.c: New file.
28649
28650         Tests for module 'log10'.
28651         * modules/log10-tests: New file.
28652         * tests/test-log10.c: New file.
28653
28654         Tests for module 'log'.
28655         * modules/log-tests: New file.
28656         * tests/test-log.c: New file.
28657
28658         Tests for module 'lgamma'.
28659         * modules/lgamma-tests: New file.
28660         * tests/test-lgamma.c: New file.
28661
28662         Tests for module 'ldexp'.
28663         * modules/ldexp-tests: New file.
28664         * tests/test-ldexp.c: New file.
28665
28666         Tests for module 'jn'.
28667         * modules/jn-tests: New file.
28668         * tests/test-jn.c: New file.
28669
28670         Tests for module 'j1'.
28671         * modules/j1-tests: New file.
28672         * tests/test-j1.c: New file.
28673
28674         Tests for module 'j0'.
28675         * modules/j0-tests: New file.
28676         * tests/test-j0.c: New file.
28677
28678         Tests for module 'hypot'.
28679         * modules/hypot-tests: New file.
28680         * tests/test-hypot.c: New file.
28681
28682         Tests for module 'fmod'.
28683         * modules/fmod-tests: New file.
28684         * tests/test-fmod.c: New file.
28685
28686         Tests for module 'fabs'.
28687         * modules/fabs-tests: New file.
28688         * tests/test-fabs.c: New file.
28689
28690         Tests for module 'exp'.
28691         * modules/exp-tests: New file.
28692         * tests/test-exp.c: New file.
28693
28694         Tests for module 'erfc'.
28695         * modules/erfc-tests: New file.
28696         * tests/test-erfc.c: New file.
28697
28698         Tests for module 'erf'.
28699         * modules/erf-tests: New file.
28700         * tests/test-erf.c: New file.
28701
28702         Tests for module 'cosh'.
28703         * modules/cosh-tests: New file.
28704         * tests/test-cosh.c: New file.
28705
28706         Tests for module 'cos'.
28707         * modules/cos-tests: New file.
28708         * tests/test-cos.c: New file.
28709
28710         Tests for module 'copysign'.
28711         * modules/copysign-tests: New file.
28712         * tests/test-copysign.c: New file.
28713
28714         Tests for module 'cbrt'.
28715         * modules/cbrt-tests: New file.
28716         * tests/test-cbrt.c: New file.
28717
28718         Tests for module 'atan2'.
28719         * modules/atan2-tests: New file.
28720         * tests/test-atan2.c: New file.
28721
28722         Tests for module 'atan'.
28723         * modules/atan-tests: New file.
28724         * tests/test-atan.c: New file.
28725
28726         Tests for module 'asin'.
28727         * modules/asin-tests: New file.
28728         * tests/test-asin.c: New file.
28729
28730         Tests for module 'acos'.
28731         * modules/acos-tests: New file.
28732         * tests/test-acos.c: New file.
28733
28734 2010-01-24  Bruno Haible  <bruno@clisp.org>
28735
28736         Fix tests for common <math.h> functions.
28737         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28738         code snippet that references the function pointer, rather than merely
28739         calling the function. Substitute the FUNC_LIBM variable.
28740         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28741         * modules/acos (configure.ac): Likewise.
28742         * modules/asin (configure.ac): Likewise.
28743         * modules/atan (configure.ac): Likewise.
28744         * modules/atan2 (configure.ac): Likewise.
28745         * modules/cbrt (configure.ac): Likewise.
28746         * modules/copysign (configure.ac): Likewise.
28747         * modules/cos (configure.ac): Likewise.
28748         * modules/cosh (configure.ac): Likewise.
28749         * modules/erf (configure.ac): Likewise.
28750         * modules/erfc (configure.ac): Likewise.
28751         * modules/exp (configure.ac): Likewise.
28752         * modules/fabs (configure.ac): Likewise.
28753         * modules/fmod (configure.ac): Likewise.
28754         * modules/hypot (configure.ac): Likewise.
28755         * modules/j0 (configure.ac): Likewise.
28756         * modules/j1 (configure.ac): Likewise.
28757         * modules/jn (configure.ac): Likewise.
28758         * modules/ldexp (configure.ac): Likewise.
28759         * modules/lgamma (configure.ac): Likewise.
28760         * modules/log (configure.ac): Likewise.
28761         * modules/log10 (configure.ac): Likewise.
28762         * modules/log1p (configure.ac): Likewise.
28763         * modules/logb (configure.ac): Likewise.
28764         * modules/modf (configure.ac): Likewise.
28765         * modules/nextafter (configure.ac): Likewise.
28766         * modules/pow (configure.ac): Likewise.
28767         * modules/remainder (configure.ac): Likewise.
28768         * modules/rint (configure.ac): Likewise.
28769         * modules/sin (configure.ac): Likewise.
28770         * modules/sinh (configure.ac): Likewise.
28771         * modules/tan (configure.ac): Likewise.
28772         * modules/tanh (configure.ac): Likewise.
28773         * modules/y0 (configure.ac): Likewise.
28774         * modules/y1 (configure.ac): Likewise.
28775         * modules/yn (configure.ac): Likewise.
28776
28777 2010-01-24  Bruno Haible  <bruno@clisp.org>
28778
28779         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28780         * tests/test-acosl.c (x): New variable.
28781         (main): Store argument in x and fetch it from x.
28782         * tests/test-asinl.c (x): New variable.
28783         (main): Store argument in x and fetch it from x.
28784         * tests/test-atanl.c (x): New variable.
28785         (main): Store argument in x and fetch it from x.
28786         * tests/test-cosl.c (x): New variable.
28787         (main): Store argument in x and fetch it from x.
28788         * tests/test-expl.c (x): New variable.
28789         (main): Store argument in x and fetch it from x.
28790         * tests/test-logl.c (x): New variable.
28791         (main): Store argument in x and fetch it from x.
28792         * tests/test-sinl.c (x): New variable.
28793         (main): Store argument in x and fetch it from x.
28794         * tests/test-sqrtl.c (x): New variable.
28795         (main): Store argument in x and fetch it from x.
28796         * tests/test-tanl.c (x): New variable.
28797         (main): Store argument in x and fetch it from x.
28798
28799 2010-01-24  Bruno Haible  <bruno@clisp.org>
28800
28801         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28802         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28803         assignments to the initial TESTS_ENVIRONMENT.
28804         * doc/gnulib.texi (Unit test modules): Document it.
28805         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28806         TESTS_ENVIRONMENT.
28807         * modules/btowc-tests (Makefile.am): Likewise.
28808         * modules/c-stack-tests (Makefile.am): Likewise.
28809         * modules/c-strcase-tests (Makefile.am): Likewise.
28810         * modules/copy-file-tests (Makefile.am): Likewise.
28811         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28812         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28813         * modules/mbrtowc-tests (Makefile.am): Likewise.
28814         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28815         * modules/mbscasestr-tests (Makefile.am): Likewise.
28816         * modules/mbschr-tests (Makefile.am): Likewise.
28817         * modules/mbscspn-tests (Makefile.am): Likewise.
28818         * modules/mbsinit-tests (Makefile.am): Likewise.
28819         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28820         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28821         * modules/mbspbrk-tests (Makefile.am): Likewise.
28822         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28823         * modules/mbsrchr-tests (Makefile.am): Likewise.
28824         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28825         * modules/mbsspn-tests (Makefile.am): Likewise.
28826         * modules/mbsstr-tests (Makefile.am): Likewise.
28827         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28828         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28829         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28830         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28831         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28832         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28833         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28834         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28835         * modules/wcrtomb-tests (Makefile.am): Likewise.
28836         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28837         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28838         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28839         assignments from TESTS_ENVIRONMENT.
28840         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28841         augmentation.
28842         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28843         * modules/atexit-tests (Makefile.am): Likewise.
28844         * modules/binary-io-tests (Makefile.am): Likewise.
28845         * modules/closein-tests (Makefile.am): Likewise.
28846         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28847         * modules/exclude-tests (Makefile.am): Likewise.
28848         * modules/fflush-tests (Makefile.am): Likewise.
28849         * modules/fpending-tests (Makefile.am): Likewise.
28850         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28851         * modules/freadahead-tests (Makefile.am): Likewise.
28852         * modules/freadptr-tests (Makefile.am): Likewise.
28853         * modules/freadseek-tests (Makefile.am): Likewise.
28854         * modules/fseek-tests (Makefile.am): Likewise.
28855         * modules/fseeko-tests (Makefile.am): Likewise.
28856         * modules/ftell-tests (Makefile.am): Likewise.
28857         * modules/ftello-tests (Makefile.am): Likewise.
28858         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28859         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28860         * modules/lseek-tests (Makefile.am): Likewise.
28861         * modules/parse-duration-tests (Makefile.am): Likewise.
28862         * modules/perror-tests (Makefile.am): Likewise.
28863         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28864         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28865         * modules/pipe-tests (Makefile.am): Likewise.
28866         * modules/pread-tests (Makefile.am): Likewise.
28867         * modules/printf-posix-tests (Makefile.am): Likewise.
28868         * modules/select-tests (Makefile.am): Likewise.
28869         * modules/sigpipe-tests (Makefile.am): Likewise.
28870         * modules/tsearch-tests (Makefile.am): Likewise.
28871         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28872         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28873         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28874         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28875         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28876         * modules/version-etc-tests (Makefile.am): Likewise.
28877         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28878         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28879         * modules/xalloc-die-tests (Makefile.am): Likewise.
28880         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28881         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28882         * modules/xstrtol-tests (Makefile.am): Likewise.
28883         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28884         * modules/yesno-tests (Makefile.am): Likewise.
28885         Suggested by Jim Meyering.
28886
28887 2010-01-24  Bruno Haible  <bruno@clisp.org>
28888
28889         More documentation.
28890         * doc/gnulib.texi (Writing modules): New chapter.
28891         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28892         the new chapter.
28893
28894 2010-01-24  Jim Meyering  <meyering@redhat.com>
28895
28896         maint.mk: do not prepend "./" after filtering
28897         * top/maint.mk (_prepend_srcdir_prefix): New variable
28898         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28899         "./" when $(srcdir) is ".".
28900
28901         define STREQ(a,b) consistently, removing useless parentheses
28902         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28903         since the only risk is that "a" or "b" contains an unparenthesized
28904         comma, but if either did that, STREQ would have 3 or more arguments.
28905         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28906         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28907         * lib/hash-triple.c (STREQ): Likewise.
28908         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28909         * lib/getugroups.c (STREQ): Likewise.
28910
28911 2010-01-23  Jim Meyering  <meyering@redhat.com>
28912
28913         maint.mk: fix syntax-check in a non-srcdir build directory
28914         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28915         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28916
28917 2010-01-22  Jim Meyering  <meyering@redhat.com>
28918
28919         userspec: add unit tests
28920         * tests/test-userspec.c: New file.
28921         * modules/userspec-tests: Likewise.
28922
28923 2010-01-21  Jim Meyering  <meyering@redhat.com>
28924
28925         maint.mk: handle source file names containing "." robustly
28926         * top/maint.mk (_dot_escaped_srcdir): Define.
28927         (VC_LIST): Use it in LHS of sed substitution.
28928
28929 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28930
28931         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28932         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28933         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28934         from a non-srcdir build.
28935
28936 2010-01-20  Eric Blake  <ebb9@byu.net>
28937
28938         warn-on-use: use instead of link-warning
28939         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28940         * modules/unistd (Depends-on, Makefile.am): Likewise.
28941         * modules/arpa_inet (Depends-on): Replace link-warning with
28942         warn-on-use.
28943         (Makefile.am): Update rules accordingly.
28944         * modules/ctype (Depends-on, Makefile.am): Likewise.
28945         * modules/dirent (Depends-on, Makefile.am): Likewise.
28946         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28947         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28948         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28949         * modules/locale (Depends-on, Makefile.am): Likewise.
28950         * modules/math (Depends-on, Makefile.am): Likewise.
28951         * modules/search (Depends-on, Makefile.am): Likewise.
28952         * modules/signal (Depends-on, Makefile.am): Likewise.
28953         * modules/spawn (Depends-on, Makefile.am): Likewise.
28954         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28955         * modules/string (Depends-on, Makefile.am): Likewise.
28956         * modules/strings (Depends-on, Makefile.am): Likewise.
28957         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28958         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28959         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28960         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28961         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28962         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28963         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28964         * modules/wchar (Depends-on, Makefile.am): Likewise.
28965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28966         should be poisoned.
28967         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28968         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28969         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28972         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28973         * m4/math_h.m4 (gl_MATH_H): Likewise.
28974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28975         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28976         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28977         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28978         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28979         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28980         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28981         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28988         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28989         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28990         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28991         GL_LINK_WARNING.
28992         * lib/ctype.in.h: Likewise.
28993         * lib/dirent.in.h: Likewise.
28994         * lib/fcntl.in.h: Likewise.
28995         * lib/inttypes.in.h: Likewise.
28996         * lib/langinfo.in.h: Likewise.
28997         * lib/locale.in.h: Likewise.
28998         * lib/math.in.h: Likewise.
28999         * lib/search.in.h: Likewise.
29000         * lib/signal.in.h: Likewise.
29001         * lib/spawn.in.h: Likewise.
29002         * lib/stdio.in.h: Likewise.
29003         * lib/stdlib.in.h: Likewise.
29004         * lib/string.in.h: Likewise.
29005         * lib/strings.in.h: Likewise.
29006         * lib/sys_file.in.h: Likewise.
29007         * lib/sys_ioctl.in.h: Likewise.
29008         * lib/sys_select.in.h: Likewise.
29009         * lib/sys_socket.in.h: Likewise.
29010         * lib/sys_stat.in.h: Likewise.
29011         * lib/sys_times.in.h: Likewise.
29012         * lib/sys_utsname.in.h: Likewise.
29013         * lib/unistd.in.h: Likewise.
29014         * lib/wchar.in.h: Likewise.
29015
29016 2010-01-20  Bruno Haible  <bruno@clisp.org>
29017
29018         Avoid duplicate -lm.
29019         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29020         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29023         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29024         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29025         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29026         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29027         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29028         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29029         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29030         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29031         Reported by Paolo Bonzini.
29032
29033 2010-01-19  Bruno Haible  <bruno@clisp.org>
29034
29035         langinfo, nl_langinfo: Relicense under LGPLv2+.
29036         * modules/langinfo (License): Change to LGPLv2+.
29037         * modules/nl_langinfo (License): Likewise.
29038         Patch by David Lutterkort <lutter@redhat.com>.
29039
29040 2010-01-19  Bruno Haible  <bruno@clisp.org>
29041
29042         Avoid compilation error with cc on OSF/1 5.1.
29043         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29044         statement, not before.
29045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29046
29047 2010-01-18  Bruno Haible  <bruno@clisp.org>
29048
29049         Avoid a link error due to the __printf__ symbol.
29050         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29051         and 2.6.x.
29052         (__format__, __printf__): Remove definitions.
29053         * lib/argp-fmtstream.h: Likewise.
29054         * lib/argp.h: Likewise.
29055         * lib/error.h: Likewise.
29056         * lib/vasnprintf.h: Likewise.
29057         * lib/xprintf.h: Likewise.
29058         * lib/xvasprintf.h: Likewise.
29059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29060
29061 2010-01-18  Bruno Haible  <bruno@clisp.org>
29062
29063         Tests for module 'tanl'.
29064         * modules/tanl-tests: New file.
29065         * tests/test-tanl.c: New file.
29066
29067         Tests for module 'sqrtl'.
29068         * modules/sqrtl-tests: New file.
29069         * tests/test-sqrtl.c: New file.
29070
29071         Tests for module 'sinl'.
29072         * modules/sinl-tests: New file.
29073         * tests/test-sinl.c: New file.
29074
29075         Tests for module 'logl'.
29076         * modules/logl-tests: New file.
29077         * tests/test-logl.c: New file.
29078
29079         Tests for module 'expl'.
29080         * modules/expl-tests: New file.
29081         * tests/test-expl.c: New file.
29082
29083         Tests for module 'cosl'.
29084         * modules/cosl-tests: New file.
29085         * tests/test-cosl.c: New file.
29086
29087         Tests for module 'atanl'.
29088         * modules/atanl-tests: New file.
29089         * tests/test-atanl.c: New file.
29090
29091         Tests for module 'asinl'.
29092         * modules/asinl-tests: New file.
29093         * tests/test-asinl.c: New file.
29094
29095         Tests for module 'acosl'.
29096         * modules/acosl-tests: New file.
29097         * tests/test-acosl.c: New file.
29098
29099         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29100         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29101         tanl): Use the standard gnulib idiom.
29102         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29103         * lib/sinl.c: Likewise.
29104         * lib/tanl.c: Don't include trigl.c.
29105         (kernel_tanl): Make static.
29106         * lib/sincosl.c: Include trigl.h first.
29107         * lib/trigl.c: Likewise.
29108         * m4/acosl.m4: New file.
29109         * m4/asinl.m4: New file.
29110         * m4/atanl.m4: New file.
29111         * m4/cosl.m4: New file.
29112         * m4/expl.m4: New file.
29113         * m4/logl.m4: New file.
29114         * m4/sinl.m4: New file.
29115         * m4/sqrtl.m4: New file.
29116         * m4/tanl.m4: New file.
29117         * m4/mathl.m4: Remove file.
29118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29119         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29120         Don't initialize GNULIB_MATHL.
29121         * modules/acosl: New file.
29122         * modules/asinl: New file.
29123         * modules/atanl: New file.
29124         * modules/cosl: New file.
29125         * modules/expl: New file.
29126         * modules/logl: New file.
29127         * modules/sinl: New file.
29128         * modules/sqrtl: New file.
29129         * modules/tanl: New file.
29130         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29131         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29132         substitute GNULIB_MATHL.
29133         * modules/mathl: Rewritten.
29134         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29135         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29136         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29137         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29138         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29139         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29140         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29141         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29142         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29143
29144 2010-01-18  Bruno Haible  <bruno@clisp.org>
29145
29146         sqrt: Make gl_FUNC_SQRT requirable.
29147         * m4/sqrt.m4: New file.
29148         * modules/sqrt (Files): Add it.
29149         (configure.ac): Invoke gl_FUNC_SQRT.
29150
29151 2010-01-18  Bruno Haible  <bruno@clisp.org>
29152
29153         New modules for common <math.h> functions.
29154         * m4/mathfunc.m4: New file.
29155         * modules/acos: New file.
29156         * modules/asin: New file.
29157         * modules/atan: New file.
29158         * modules/atan2: New file.
29159         * modules/cbrt: New file.
29160         * modules/copysign: New file.
29161         * modules/cos: New file.
29162         * modules/cosh: New file.
29163         * modules/erf: New file.
29164         * modules/erfc: New file.
29165         * modules/exp: New file.
29166         * modules/fabs: New file.
29167         * modules/fmod: New file.
29168         * modules/hypot: New file.
29169         * modules/j0: New file.
29170         * modules/j1: New file.
29171         * modules/jn: New file.
29172         * modules/ldexp: New file.
29173         * modules/lgamma: New file.
29174         * modules/log: New file.
29175         * modules/log10: New file.
29176         * modules/log1p: New file.
29177         * modules/logb: New file.
29178         * modules/modf: New file.
29179         * modules/nextafter: New file.
29180         * modules/pow: New file.
29181         * modules/remainder: New file.
29182         * modules/rint: New file.
29183         * modules/sin: New file.
29184         * modules/sinh: New file.
29185         * modules/sqrt: New file.
29186         * modules/tan: New file.
29187         * modules/tanh: New file.
29188         * modules/y0: New file.
29189         * modules/y1: New file.
29190         * modules/yn: New file.
29191         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29192         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29193         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29194         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29195         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29196         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29197         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29198         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29199         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29200         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29201         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29202         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29203         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29204         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29205         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29206         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29207         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29208         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29209         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29210         * doc/posix-functions/log.texi: Mention the 'log' module.
29211         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29212         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29213         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29214         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29215         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29216         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29217         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29218         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29219         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29220         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29221         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29222         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29223         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29224         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29225         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29226         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29227
29228 2010-01-18  Jim Meyering  <meyering@redhat.com>
29229
29230         ignore-value: relax license to LGPLv2+
29231         * modules/ignore-value (License): Relax to LGPLv2+.
29232
29233         getdate: don't leak when TZ contains two or more '"'s
29234         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29235         double quote in TZ after the first one.
29236
29237         readtokens: do not leak internal token_lengths buffer
29238         * lib/readtokens.c (readtokens): Free the local, lengths,
29239         when the supplied "token_lengths" parameter is NULL.
29240
29241 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29242
29243         Fix a couple of missing LIBTHREAD link failures on AIX.
29244         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29245         $(LIBTHREAD).
29246         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29247
29248         Link test-poll against INET_PTON_LIB.
29249         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29250         for inet_pton on Solaris 10.
29251
29252 2010-01-17  Bruno Haible  <bruno@clisp.org>
29253
29254         unistdio/*-sprintf: Fix typo in module description.
29255         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29256         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29257         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29258         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29259         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29260         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29261         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29263
29264 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29265
29266         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29267         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29268         variables in shell case patterns, for AIX and HP-UX ksh.
29269
29270         Split large sed scripts, for HP-UX sed.
29271         * modules/stdio: Split sed scripts around 50 sed commands,
29272         to avoid HP-UX limit of 99 commands, in the near future.
29273         * modules/string: Likewise.
29274         * modules/unistd: Likewise.
29275
29276         gnulib-tool: avoid writing in the current directory.
29277         * gnulib-tool (func_emit_lib_Makefile_am)
29278         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29279         not in the current directory, so concurrent gnulib-tool
29280         instances do not interfere.
29281
29282 2010-01-16  Jim Meyering  <meyering@redhat.com>
29283
29284         doc: update users.txt
29285         * users.txt: Add grep.
29286         (diffutils, gzip): Update URLs.
29287
29288 2010-01-12  Bruno Haible  <bruno@clisp.org>
29289
29290         posix_spawn: Avoid test failure on Cygwin.
29291         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29292         characters.
29293         Reported by Simon Josefsson.
29294
29295 2010-01-12  Bruno Haible  <bruno@clisp.org>
29296
29297         * tests/test-cond.c (main): When skipping the test, show the reason.
29298
29299 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29300
29301         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29302
29303 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29304
29305         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29306         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29307
29308 2010-01-12  Eric Blake  <ebb9@byu.net>
29309
29310         build: guarantee AS_VAR_IF
29311         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29312         (gl_AS_VAR_IF): Move...
29313         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29314         Reported by Simon Josefsson.
29315
29316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29317
29318         * lib/stdio.in.h: Fix typo.
29319
29320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29321
29322         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29323         libgpg-error.
29324
29325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29326
29327         * tests/test-xalloc-die.sh: Use $EXEEXT.
29328
29329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29330             Bruno Haible  <bruno@clisp.org>
29331
29332         getlogin, getlogin_r: Avoid test failure.
29333         * tests/test-getlogin.c: Include <stdio.h>.
29334         (main): Skip the test when the function fails because stdin is not a
29335         tty.
29336         * tests/test-getlogin_r.c: Include <stdio.h>.
29337         (main): Skip the test when the function fails because stdin is not a
29338         tty.
29339
29340 2010-01-11  Eric Blake  <ebb9@byu.net>
29341
29342         tests: avoid more large file warnings
29343         * tests/test-fflush.c: Avoid warning about ftell use.
29344         * tests/test-fseek.c: Avoid warning about fseek use.
29345
29346 2010-01-10  Bruno Haible  <bruno@clisp.org>
29347
29348         nproc: Work better on Linux when /proc and /sys are not mounted.
29349         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29350         as lower bound when, on glibc/Linux systems,
29351         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29352         Suggested by Pádraig Brady <P@draigbrady.com>.
29353         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29354
29355         nproc: Refactor.
29356         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29357         extracted from num_processors.
29358         (num_processors): Call it.
29359
29360 2010-01-11  Jim Meyering  <meyering@redhat.com>
29361
29362         utimecmp: avoid new warning from upcoming gcc-4.5.0
29363         * lib/utimecmp.c (BILLION): Define using #define rather than an
29364         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29365
29366 2010-01-11  Eric Blake  <ebb9@byu.net>
29367
29368         math: add portability warnings for classification macros
29369         * modules/math (Depends-on): Add warn-on-use.
29370         (Makefile.am): Provide new substitutions.
29371         * m4/math_h.m4 (gl_MATH_H): Require inline.
29372         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29373         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29374         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29375         implement warnings.
29376
29377         unistd: warn on use of environ without module
29378         * modules/unistd (Depends-on): Add warn-on-use.
29379         (Makefile.am): Provide new substitutions.
29380         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29381         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29382
29383         stdio: warn on suspicious uses
29384         * modules/stdio (Depends-on): Add warn-on-use.
29385         (Makefile.am): Provide new substitutions.
29386         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29387         fseeko.
29388         * lib/stdio.in.h (gets): Always warn on use.
29389         (fseek, ftell): Adjust when warnings are issued, and honor
29390         _GL_NO_LARGE_FILES as a way to silence the warning.
29391         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29392         any warning about large file offsets.
29393         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29394         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29395         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29396         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29397         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29398         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29399         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29400         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29401
29402         warn-on-use: new module
29403         * modules/warn-on-use: New file.
29404         * build-aux/warn-on-use.h: Likewise.
29405         * m4/warn-on-use.m4: Likewise.
29406         * MODULES.html.sh (Support for building): Mention it.
29407
29408 2010-01-10  Bruno Haible  <bruno@clisp.org>
29409
29410         Tests for module 'unistr/u32-strdup'.
29411         * modules/unistr/u32-strdup-tests: New file.
29412         * tests/unistr/test-u32-strdup.c: New file.
29413
29414         Tests for module 'unistr/u16-strdup'.
29415         * modules/unistr/u16-strdup-tests: New file.
29416         * tests/unistr/test-u16-strdup.c: New file.
29417
29418         Tests for module 'unistr/u8-strdup'.
29419         * modules/unistr/u8-strdup-tests: New file.
29420         * tests/unistr/test-u8-strdup.c: New file.
29421         * tests/unistr/test-strdup.h: New file.
29422
29423         Tests for module 'unistr/u32-strncmp'.
29424         * modules/unistr/u32-strncmp-tests: New file.
29425         * tests/unistr/test-u32-strncmp.c: New file.
29426
29427         Tests for module 'unistr/u16-strncmp'.
29428         * modules/unistr/u16-strncmp-tests: New file.
29429         * tests/unistr/test-u16-strncmp.c: New file.
29430
29431         Tests for module 'unistr/u8-strncmp'.
29432         * modules/unistr/u8-strncmp-tests: New file.
29433         * tests/unistr/test-u8-strncmp.c: New file.
29434         * tests/unistr/test-strncmp.h: New file.
29435
29436         Tests for module 'unistr/u32-strcoll'.
29437         * modules/unistr/u32-strcoll-tests: New file.
29438         * tests/unistr/test-u32-strcoll.c: New file.
29439
29440         Tests for module 'unistr/u16-strcoll'.
29441         * modules/unistr/u16-strcoll-tests: New file.
29442         * tests/unistr/test-u16-strcoll.c: New file.
29443
29444         Tests for module 'unistr/u8-strcoll'.
29445         * modules/unistr/u8-strcoll-tests: New file.
29446         * tests/unistr/test-u8-strcoll.c: New file.
29447
29448         Tests for module 'unistr/u32-strcmp'.
29449         * modules/unistr/u32-strcmp-tests: New file.
29450         * tests/unistr/test-u32-strcmp.c: New file.
29451         * tests/unistr/test-u32-strcmp.h: New file.
29452
29453         Tests for module 'unistr/u16-strcmp'.
29454         * modules/unistr/u16-strcmp-tests: New file.
29455         * tests/unistr/test-u16-strcmp.c: New file.
29456         * tests/unistr/test-u16-strcmp.h: New file.
29457
29458         Tests for module 'unistr/u8-strcmp'.
29459         * modules/unistr/u8-strcmp-tests: New file.
29460         * tests/unistr/test-u8-strcmp.c: New file.
29461         * tests/unistr/test-u8-strcmp.h: New file.
29462         * tests/unistr/test-strcmp.h: New file.
29463
29464         Tests for module 'unistr/u32-strncat'.
29465         * modules/unistr/u32-strncat-tests: New file.
29466         * tests/unistr/test-u32-strncat.c: New file.
29467
29468         Tests for module 'unistr/u16-strncat'.
29469         * modules/unistr/u16-strncat-tests: New file.
29470         * tests/unistr/test-u16-strncat.c: New file.
29471
29472         Tests for module 'unistr/u8-strncat'.
29473         * modules/unistr/u8-strncat-tests: New file.
29474         * tests/unistr/test-u8-strncat.c: New file.
29475         * tests/unistr/test-strncat.h: New file.
29476
29477         Tests for module 'unistr/u32-strcat'.
29478         * modules/unistr/u32-strcat-tests: New file.
29479         * tests/unistr/test-u32-strcat.c: New file.
29480
29481         Tests for module 'unistr/u16-strcat'.
29482         * modules/unistr/u16-strcat-tests: New file.
29483         * tests/unistr/test-u16-strcat.c: New file.
29484
29485         Tests for module 'unistr/u8-strcat'.
29486         * modules/unistr/u8-strcat-tests: New file.
29487         * tests/unistr/test-u8-strcat.c: New file.
29488         * tests/unistr/test-strcat.h: New file.
29489
29490         Tests for module 'unistr/u32-stpncpy'.
29491         * modules/unistr/u32-stpncpy-tests: New file.
29492         * tests/unistr/test-u32-stpncpy.c: New file.
29493
29494         Tests for module 'unistr/u16-stpncpy'.
29495         * modules/unistr/u16-stpncpy-tests: New file.
29496         * tests/unistr/test-u16-stpncpy.c: New file.
29497
29498         Tests for module 'unistr/u8-stpncpy'.
29499         * modules/unistr/u8-stpncpy-tests: New file.
29500         * tests/unistr/test-u8-stpncpy.c: New file.
29501         * tests/unistr/test-stpncpy.h: New file.
29502
29503         Tests for module 'unistr/u32-strncpy'.
29504         * modules/unistr/u32-strncpy-tests: New file.
29505         * tests/unistr/test-u32-strncpy.c: New file.
29506
29507         Tests for module 'unistr/u16-strncpy'.
29508         * modules/unistr/u16-strncpy-tests: New file.
29509         * tests/unistr/test-u16-strncpy.c: New file.
29510
29511         Tests for module 'unistr/u8-strncpy'.
29512         * modules/unistr/u8-strncpy-tests: New file.
29513         * tests/unistr/test-u8-strncpy.c: New file.
29514         * tests/unistr/test-strncpy.h: New file.
29515
29516         Tests for module 'unistr/u32-stpcpy'.
29517         * modules/unistr/u32-stpcpy-tests: New file.
29518         * tests/unistr/test-u32-stpcpy.c: New file.
29519
29520         Tests for module 'unistr/u16-stpcpy'.
29521         * modules/unistr/u16-stpcpy-tests: New file.
29522         * tests/unistr/test-u16-stpcpy.c: New file.
29523
29524         Tests for module 'unistr/u8-stpcpy'.
29525         * modules/unistr/u8-stpcpy-tests: New file.
29526         * tests/unistr/test-u8-stpcpy.c: New file.
29527         * tests/unistr/test-stpcpy.h: New file.
29528
29529         Tests for module 'unistr/u32-strcpy'.
29530         * modules/unistr/u32-strcpy-tests: New file.
29531         * tests/unistr/test-u32-strcpy.c: New file.
29532
29533         Tests for module 'unistr/u16-strcpy'.
29534         * modules/unistr/u16-strcpy-tests: New file.
29535         * tests/unistr/test-u16-strcpy.c: New file.
29536
29537         Tests for module 'unistr/u8-strcpy'.
29538         * modules/unistr/u8-strcpy-tests: New file.
29539         * tests/unistr/test-u8-strcpy.c: New file.
29540         * tests/unistr/test-strcpy.h: New file.
29541
29542         Tests for module 'unistr/u32-strnlen'.
29543         * modules/unistr/u32-strnlen-tests: New file.
29544         * tests/unistr/test-u32-strnlen.c: New file.
29545
29546         Tests for module 'unistr/u16-strnlen'.
29547         * modules/unistr/u16-strnlen-tests: New file.
29548         * tests/unistr/test-u16-strnlen.c: New file.
29549
29550         Tests for module 'unistr/u8-strnlen'.
29551         * modules/unistr/u8-strnlen-tests: New file.
29552         * tests/unistr/test-u8-strnlen.c: New file.
29553         * tests/unistr/test-strnlen.h: New file.
29554
29555         Tests for module 'unistr/u32-strlen'.
29556         * modules/unistr/u32-strlen-tests: New file.
29557         * tests/unistr/test-u32-strlen.c: New file.
29558
29559         Tests for module 'unistr/u16-strlen'.
29560         * modules/unistr/u16-strlen-tests: New file.
29561         * tests/unistr/test-u16-strlen.c: New file.
29562
29563         Tests for module 'unistr/u8-strlen'.
29564         * modules/unistr/u8-strlen-tests: New file.
29565         * tests/unistr/test-u8-strlen.c: New file.
29566
29567         Tests for module 'unistr/u32-prev'.
29568         * modules/unistr/u32-prev-tests: New file.
29569         * tests/unistr/test-u32-prev.c: New file.
29570
29571         Tests for module 'unistr/u16-prev'.
29572         * modules/unistr/u16-prev-tests: New file.
29573         * tests/unistr/test-u16-prev.c: New file.
29574
29575         Tests for module 'unistr/u8-prev'.
29576         * modules/unistr/u8-prev-tests: New file.
29577         * tests/unistr/test-u8-prev.c: New file.
29578
29579         Tests for module 'unistr/u32-next'.
29580         * modules/unistr/u32-next-tests: New file.
29581         * tests/unistr/test-u32-next.c: New file.
29582
29583         Tests for module 'unistr/u16-next'.
29584         * modules/unistr/u16-next-tests: New file.
29585         * tests/unistr/test-u16-next.c: New file.
29586
29587         Tests for module 'unistr/u8-next'.
29588         * modules/unistr/u8-next-tests: New file.
29589         * tests/unistr/test-u8-next.c: New file.
29590
29591         Tests for module 'unistr/u32-strmbtouc'.
29592         * modules/unistr/u32-strmbtouc-tests: New file.
29593         * tests/unistr/test-u32-strmbtouc.c: New file.
29594
29595         Tests for module 'unistr/u16-strmbtouc'.
29596         * modules/unistr/u16-strmbtouc-tests: New file.
29597         * tests/unistr/test-u16-strmbtouc.c: New file.
29598
29599         Tests for module 'unistr/u8-strmbtouc'.
29600         * modules/unistr/u8-strmbtouc-tests: New file.
29601         * tests/unistr/test-u8-strmbtouc.c: New file.
29602
29603         Tests for module 'unistr/u32-strmblen'.
29604         * modules/unistr/u32-strmblen-tests: New file.
29605         * tests/unistr/test-u32-strmblen.c: New file.
29606
29607         Tests for module 'unistr/u16-strmblen'.
29608         * modules/unistr/u16-strmblen-tests: New file.
29609         * tests/unistr/test-u16-strmblen.c: New file.
29610
29611         Tests for module 'unistr/u8-strmblen'.
29612         * modules/unistr/u8-strmblen-tests: New file.
29613         * tests/unistr/test-u8-strmblen.c: New file.
29614
29615         Tests for module 'unistr/u32-cpy-alloc'.
29616         * modules/unistr/u32-cpy-alloc-tests: New file.
29617         * tests/unistr/test-u32-cpy-alloc.c: New file.
29618
29619         Tests for module 'unistr/u16-cpy-alloc'.
29620         * modules/unistr/u16-cpy-alloc-tests: New file.
29621         * tests/unistr/test-u16-cpy-alloc.c: New file.
29622
29623         Tests for module 'unistr/u8-cpy-alloc'.
29624         * modules/unistr/u8-cpy-alloc-tests: New file.
29625         * tests/unistr/test-u8-cpy-alloc.c: New file.
29626         * tests/unistr/test-cpy-alloc.h: New file.
29627
29628         Tests for module 'unistr/u32-mbsnlen'.
29629         * modules/unistr/u32-mbsnlen-tests: New file.
29630         * tests/unistr/test-u32-mbsnlen.c: New file.
29631
29632         Tests for module 'unistr/u16-mbsnlen'.
29633         * modules/unistr/u16-mbsnlen-tests: New file.
29634         * tests/unistr/test-u16-mbsnlen.c: New file.
29635
29636         Tests for module 'unistr/u8-mbsnlen'.
29637         * modules/unistr/u8-mbsnlen-tests: New file.
29638         * tests/unistr/test-u8-mbsnlen.c: New file.
29639
29640         Tests for module 'unistr/u32-chr'.
29641         * modules/unistr/u32-chr-tests: New file.
29642         * tests/unistr/test-u32-chr.c: New file.
29643
29644         Tests for module 'unistr/u16-chr'.
29645         * modules/unistr/u16-chr-tests: New file.
29646         * tests/unistr/test-u16-chr.c: New file.
29647
29648         Tests for module 'unistr/u8-chr'.
29649         * modules/unistr/u8-chr-tests: New file.
29650         * tests/unistr/test-u8-chr.c: New file.
29651         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29652
29653         Tests for module 'unistr/u32-cmp2'.
29654         * modules/unistr/u32-cmp2-tests: New file.
29655         * tests/unistr/test-u32-cmp2.c: New file.
29656
29657         Tests for module 'unistr/u16-cmp2'.
29658         * modules/unistr/u16-cmp2-tests: New file.
29659         * tests/unistr/test-u16-cmp2.c: New file.
29660
29661         Tests for module 'unistr/u8-cmp2'.
29662         * modules/unistr/u8-cmp2-tests: New file.
29663         * tests/unistr/test-u8-cmp2.c: New file.
29664         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29665
29666         Tests for module 'unistr/u32-cmp'.
29667         * modules/unistr/u32-cmp-tests: New file.
29668         * tests/unistr/test-u32-cmp.c: New file.
29669
29670         Tests for module 'unistr/u16-cmp'.
29671         * modules/unistr/u16-cmp-tests: New file.
29672         * tests/unistr/test-u16-cmp.c: New file.
29673
29674         Tests for module 'unistr/u8-cmp'.
29675         * modules/unistr/u8-cmp-tests: New file.
29676         * tests/unistr/test-u8-cmp.c: New file.
29677         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29678
29679         Tests for module 'unistr/u32-set'.
29680         * modules/unistr/u32-set-tests: New file.
29681         * tests/unistr/test-u32-set.c: New file.
29682
29683         Tests for module 'unistr/u16-set'.
29684         * modules/unistr/u16-set-tests: New file.
29685         * tests/unistr/test-u16-set.c: New file.
29686
29687         Tests for module 'unistr/u8-set'.
29688         * modules/unistr/u8-set-tests: New file.
29689         * tests/unistr/test-u8-set.c: New file.
29690         * tests/unistr/test-set.h: New file.
29691
29692         Tests for module 'unistr/u32-move'.
29693         * modules/unistr/u32-move-tests: New file.
29694         * tests/unistr/test-u32-move.c: New file.
29695
29696         Tests for module 'unistr/u16-move'.
29697         * modules/unistr/u16-move-tests: New file.
29698         * tests/unistr/test-u16-move.c: New file.
29699
29700         Tests for module 'unistr/u8-move'.
29701         * modules/unistr/u8-move-tests: New file.
29702         * tests/unistr/test-u8-move.c: New file.
29703         * tests/unistr/test-move.h: New file.
29704
29705         Tests for module 'unistr/u32-cpy'.
29706         * modules/unistr/u32-cpy-tests: New file.
29707         * tests/unistr/test-u32-cpy.c: New file.
29708
29709         Tests for module 'unistr/u16-cpy'.
29710         * modules/unistr/u16-cpy-tests: New file.
29711         * tests/unistr/test-u16-cpy.c: New file.
29712
29713         Tests for module 'unistr/u8-cpy'.
29714         * modules/unistr/u8-cpy-tests: New file.
29715         * tests/unistr/test-u8-cpy.c: New file.
29716         * tests/unistr/test-cpy.h: New file.
29717
29718 2010-01-09  Bruno Haible  <bruno@clisp.org>
29719
29720         Tests for module 'unistr/u32-uctomb'.
29721         * modules/unistr/u32-uctomb-tests: New file.
29722         * tests/unistr/test-u32-uctomb.c: New file.
29723
29724         Tests for module 'unistr/u16-uctomb'.
29725         * modules/unistr/u16-uctomb-tests: New file.
29726         * tests/unistr/test-u16-uctomb.c: New file.
29727
29728         Tests for module 'unistr/u8-uctomb'.
29729         * modules/unistr/u8-uctomb-tests: New file.
29730         * tests/unistr/test-u8-uctomb.c: New file.
29731
29732         Tests for module 'unistr/u32-mbtoucr'.
29733         * modules/unistr/u32-mbtoucr-tests: New file.
29734         * tests/unistr/test-u32-mbtoucr.c: New file.
29735
29736         Tests for module 'unistr/u16-mbtoucr'.
29737         * modules/unistr/u16-mbtoucr-tests: New file.
29738         * tests/unistr/test-u16-mbtoucr.c: New file.
29739
29740         Tests for module 'unistr/u8-mbtoucr'.
29741         * modules/unistr/u8-mbtoucr-tests: New file.
29742         * tests/unistr/test-u8-mbtoucr.c: New file.
29743
29744         Tests for module 'unistr/u32-mbtouc'.
29745         * modules/unistr/u32-mbtouc-tests: New file.
29746         * tests/unistr/test-u32-mbtouc.c: New file.
29747
29748         Tests for module 'unistr/u16-mbtouc'.
29749         * modules/unistr/u16-mbtouc-tests: New file.
29750         * tests/unistr/test-u16-mbtouc.c: New file.
29751
29752         Tests for module 'unistr/u8-mbtouc'.
29753         * modules/unistr/u8-mbtouc-tests: New file.
29754         * tests/unistr/test-u8-mbtouc.c: New file.
29755
29756         Tests for module 'unistr/u32-mbtouc-unsafe'.
29757         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29758         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29759         * tests/unistr/test-u32-mbtouc.h: New file.
29760
29761         Tests for module 'unistr/u16-mbtouc-unsafe'.
29762         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29763         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29764         * tests/unistr/test-u16-mbtouc.h: New file.
29765
29766         Tests for module 'unistr/u8-mbtouc-unsafe'.
29767         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29768         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29769         * tests/unistr/test-u8-mbtouc.h: New file.
29770
29771         Tests for module 'unistr/u32-mblen'.
29772         * modules/unistr/u32-mblen-tests: New file.
29773         * tests/unistr/test-u32-mblen.c: New file.
29774
29775         Tests for module 'unistr/u16-mblen'.
29776         * modules/unistr/u16-mblen-tests: New file.
29777         * tests/unistr/test-u16-mblen.c: New file.
29778
29779         Tests for module 'unistr/u8-mblen'.
29780         * modules/unistr/u8-mblen-tests: New file.
29781         * tests/unistr/test-u8-mblen.c: New file.
29782
29783         Tests for module 'unistr/u32-to-u16'.
29784         * modules/unistr/u32-to-u16-tests: New file.
29785         * tests/unistr/test-u32-to-u16.c: New file.
29786
29787         Tests for module 'unistr/u32-to-u8'.
29788         * modules/unistr/u32-to-u8-tests: New file.
29789         * tests/unistr/test-u32-to-u8.c: New file.
29790
29791         Tests for module 'unistr/u16-to-u32'.
29792         * modules/unistr/u16-to-u32-tests: New file.
29793         * tests/unistr/test-u16-to-u32.c: New file.
29794
29795         Tests for module 'unistr/u16-to-u8'.
29796         * modules/unistr/u16-to-u8-tests: New file.
29797         * tests/unistr/test-u16-to-u8.c: New file.
29798
29799         Tests for module 'unistr/u8-to-u32'.
29800         * modules/unistr/u8-to-u32-tests: New file.
29801         * tests/unistr/test-u8-to-u32.c: New file.
29802
29803         Tests for module 'unistr/u8-to-u16'.
29804         * modules/unistr/u8-to-u16-tests: New file.
29805         * tests/unistr/test-u8-to-u16.c: New file.
29806
29807         Tests for module 'unistr/u32-check'.
29808         * modules/unistr/u32-check-tests: New file.
29809         * tests/unistr/test-u32-check.c: New file.
29810
29811         Tests for module 'unistr/u16-check'.
29812         * modules/unistr/u16-check-tests: New file.
29813         * tests/unistr/test-u16-check.c: New file.
29814
29815         Tests for module 'unistr/u8-check'.
29816         * modules/unistr/u8-check-tests: New file.
29817         * tests/unistr/test-u8-check.c: New file.
29818
29819         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29820         (category_equals): New function.
29821         (main): Add more tests.
29822         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29823
29824         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29825
29826 2010-01-10  Bruno Haible  <bruno@clisp.org>
29827
29828         unistr/u*-strcoll: Try harder to distinguish different strings.
29829         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29830         compare s1 and s2 to see if they are different.
29831
29832 2010-01-10  Bruno Haible  <bruno@clisp.org>
29833
29834         unistr/u*-stpncpy: Fix the return value.
29835         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29836         description of the return value consistent with stpncpy in glibc.
29837         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29838         written non-NUL unit.
29839
29840 2010-01-10  Bruno Haible  <bruno@clisp.org>
29841
29842         unistr/u*-next: Add missing dependencies.
29843         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29844         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29845         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29846
29847 2010-01-10  Bruno Haible  <bruno@clisp.org>
29848
29849         unistr/u8-mbsnlen: Fix return value for incomplete character.
29850         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29851         u8_mblen.
29852         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29853         Remove unistr/u8-mblen.
29854         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29855         u16_mblen.
29856         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29857         Remove unistr/u16-mblen.
29858
29859 2010-01-10  Bruno Haible  <bruno@clisp.org>
29860
29861         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29862         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29863         Reported by Brian Gough <bjg@gnu.org> and
29864         Chris Clayton <chris2553@googlemail.com> via
29865         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29866
29867 2010-01-09  Bruno Haible  <bruno@clisp.org>
29868
29869         unistr/u16-to-u32: Reject invalid input.
29870         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29871         u16_mbtouc.
29872         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29873         Remove unistr/u16-mbtouc.
29874
29875         unistr/u16-to-u8: Reject invalid input.
29876         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29877         u16_mbtouc.
29878         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29879         Remove unistr/u16-mbtouc.
29880
29881         unistr/u8-to-u32: Reject invalid input.
29882         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29883         u8_mbtouc.
29884         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29885         Remove unistr/u8-mbtouc.
29886
29887         unistr/u8-to-u16: Reject invalid input.
29888         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29889         u8_mbtouc.
29890         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29891         Remove unistr/u8-mbtouc.
29892
29893 2010-01-09  Bruno Haible  <bruno@clisp.org>
29894
29895         Tests for module 'getlogin'.
29896         * modules/getlogin-tests: New file.
29897         * tests/test-getlogin.c: New file.
29898
29899         New module 'getlogin'.
29900         * lib/unistd.in.h (getlogin): New declaration.
29901         * lib/getlogin.c: New file.
29902         * m4/getlogin.m4: New file.
29903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29904         HAVE_GETLOGIN.
29905         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29906         HAVE_GETLOGIN.
29907         * modules/getlogin: New file.
29908         * doc/posix-functions/getlogin.texi: Mention the new module.
29909         Reported by John W. Eaton <jwe@gnu.org>.
29910
29911 2010-01-09  Bruno Haible  <bruno@clisp.org>
29912
29913         getlogin_r: Support for native Windows.
29914         * lib/getlogin_r.c: Include <windows.h>
29915         (getlogin_r): Implement for native Windows.
29916         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29917         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29918         via John W. Eaton <jwe@gnu.org>.
29919
29920 2010-01-09  Bruno Haible  <bruno@clisp.org>
29921
29922         getlogin_r: Small fixes.
29923         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29924         succeeds.
29925         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29926         before testing whether getlogin_r is declared. No need to set
29927         HAVE_DECL_GETLOGIN_R to 1.
29928         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29929
29930 2010-01-09  Bruno Haible  <bruno@clisp.org>
29931
29932         * lib/unistd.in.h (getlogin_r): Add comment.
29933
29934 2010-01-09  Bruno Haible  <bruno@clisp.org>
29935
29936         Tests for module 'getlogin_r'.
29937         * modules/getlogin_r-tests: New file.
29938         * tests/test-getlogin_r.c: New file.
29939
29940 2010-01-09  Jim Meyering  <meyering@redhat.com>
29941
29942         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29943         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29944         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29945
29946 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29947
29948         * lib/dup2.c (rpl_dup2): Improve comment.
29949
29950 2010-01-08  Eric Blake  <ebb9@byu.net>
29951
29952         maint.mk: allow packages to add makefile @@ exceptions
29953         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29954         (sc_makefile_check): Rename...
29955         (sc_makefile_at_at_check): ...to this, and use hook.
29956
29957         dup2: work around mingw bug
29958         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29959         Reported by Simon Josefsson.
29960
29961 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29962
29963         glob: Fix C++ compilation.
29964         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29965         C++.
29966
29967 2010-01-07  Bruno Haible  <bruno@clisp.org>
29968
29969         Fix indentation of wctype.in.h, broken since 2007-01-06.
29970         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29971
29972 2010-01-07  Bruno Haible  <bruno@clisp.org>
29973
29974         mbslen: Avoid collision with system function.
29975         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29976         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29977         * m4/mbslen.m4: New file.
29978         * modules/mbslen (Files): Add it.
29979         (configure.ac): Invoke gl_MBSLEN.
29980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29981         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29983         via Ian Beckwith <ianb@erislabs.net>.
29984
29985 2010-01-07  Bruno Haible  <bruno@clisp.org>
29986
29987         dirent: Document the last fix.
29988         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29989
29990 2010-01-07  Bruno Haible  <bruno@clisp.org>
29991
29992         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29993         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29994         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29995         va_list are defined.
29996         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29997         Reported by Eric Blake.
29998
29999 2010-01-07  Bruno Haible  <bruno@clisp.org>
30000
30001         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30002         * modules/xlist (Depends-on): Add 'list',
30003         * modules/xoset (Depends-on): Add 'oset'.
30004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30005
30006 2010-01-07  Bruno Haible  <bruno@clisp.org>
30007
30008         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30009         * doc/posix-functions/strncasecmp.texi: Likewise.
30010
30011 2010-01-07  Bruno Haible  <bruno@clisp.org>
30012
30013         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30014
30015 2010-01-07  John W. Eaton  <jwe@octave.org>
30016
30017         wctype: allow C++ use
30018         * lib/wctype.in.h: Add extern "C" block for C++.
30019
30020 2010-01-06  Eric Blake  <ebb9@byu.net>
30021
30022         maint.mk: detect incorrect GFDL usage
30023         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30024
30025 2010-01-06  Jim Meyering  <meyering@redhat.com>
30026         and Eric Blake  <ebb9@byu.net>
30027
30028         maint.mk: ignore multi-line copyright in NEWS
30029         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30030
30031 2010-01-06  Eric Blake  <ebb9@byu.net>
30032
30033         select: add missing dependency
30034         * modules/select-tests (Depends-on): Move sockets dependency...
30035         * modules/select (Depends-on): ...here.
30036         Reported by Ian Beckwith.
30037
30038         doc: regenerate INSTALL
30039         * doc/INSTALL: Reflect recent autoconf update.
30040         * doc/INSTALL.ISO: Likewise.
30041         * doc/INSTALL.UTF-8: Likewise.
30042
30043         pread: fix compilation on glibc
30044         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30045         Reported by Ralf Wildenhues.
30046
30047         dirent: fix test failure
30048         * lib/dirent.in.h (includes): Guarantee ino_t.
30049         Reported by Ralf Wildenhues.
30050
30051 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30052
30053         linkat, renameat: avoid bad free
30054         * lib/at-func2.c (at_func2): Fix typo.
30055         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30056
30057 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30058
30059         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30060         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30061         to avoid failure of symlink test later.
30062
30063 2010-01-06  Eric Blake  <ebb9@byu.net>
30064
30065         stdio, unistd: guarantee ssize_t
30066         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30067         2008 are exposed when needed.
30068         * lib/stdio.in.h (includes): Likewise.
30069         Reported by Ralf Wildenhues.
30070
30071 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30072
30073         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30074         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30075         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30076
30077 2010-01-06  Jim Meyering  <meyering@redhat.com>
30078
30079         readtokens: this module *does* require xalloc.h
30080         It uses only functions that were omitted by the old syntax-check rule.
30081         * lib/readtokens.c: Include "xalloc.h" once again.
30082         * modules/readtokens (Depends-on): Add xalloc.
30083         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30084
30085 2010-01-05  Eric Blake  <ebb9@byu.net>
30086
30087         maint: support 'make announcement' from a VPATH build
30088         * top/maint.mk (announcement): Look for correct NEWS file.
30089
30090 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30091
30092         utimens (fdutimens): ignore a negative FD, per contract
30093         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30094         when we have a valid file descriptor.  Otherwise, using a brand
30095         new glibc (with just-patched futimens that now fails with EBADF)
30096         would cause this function to fail with ENOSYS.
30097         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30098         See also http://bugzilla.redhat.com/552320.
30099
30100 2010-01-05  Eric Blake  <ebb9@byu.net>
30101
30102         strcase: document what it provides
30103         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30104         gnulib module.
30105         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30106         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30107
30108 2010-01-05  Jim Meyering  <meyering@redhat.com>
30109
30110         maint: remove useless inclusions of "xalloc.h"
30111         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30112         * lib/readtokens.c: Likewise.
30113         * lib/same.c: Likewise.
30114         * modules/getloadavg (Depends-on): Remove xalloc.
30115         * modules/readtokens: Likewise.
30116         * modules/same: Likewise.
30117
30118         maint.mk: include 4 more function names in alloca.h-checking regexp
30119         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30120         regexp.  Before, we would give a false-positive (saying alloca.h
30121         is included unnecessarily) when the only uses involved omitted symbols.
30122
30123         xalloc.h: use consistent formatting
30124         * lib/xalloc.h: Move declarations to start in the first column.
30125
30126 2010-01-05  Eric Blake  <ebb9@byu.net>
30127
30128         mkdir: avoid xalloc
30129         * lib/mkdir.c (includes): Drop unused header.
30130         Reported by John W. Eaton.
30131
30132 2010-01-04  Jim Meyering  <meyering@redhat.com>
30133
30134         nl_langinfo: avoid configure-time syntax error
30135         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30136         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30137         the empty string.  Don't let that provoke a shell syntax error.
30138
30139         regcomp, regexec, fnmatch: avoid array bounds read error
30140         * lib/regcomp.c (build_equiv_class): From glibc:
30141         Use only the low 24 bits of a findidx return value as an index
30142         into the weights array.  Patch by Ulrich Drepper:
30143         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30144         * lib/regexec.c (check_node_accept_bytes): Likewise.
30145         * lib/fnmatch_loop.c (FCT): Likewise.
30146
30147         regcomp: skip collseq lookup when there are no rules
30148         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30149         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30150
30151         regcomp: recognize ill-formed { } expressions
30152         * lib/regcomp.c (parse_dup_op): From glibc:
30153         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30154
30155         regcomp: fix typo in comment
30156         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30157         s/satisfy/satisfies/.
30158
30159         regcomp: sync from glibc: remove dead store
30160         * lib/regcomp.c (duplicate_node_closure): Remove useless
30161         search_duplicated_node call and dead store.
30162
30163         regcomp: sync from glibc; always use nl_langinfo
30164         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30165         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30166         * modules/regex (Depends-on): Add nl_langinfo.
30167
30168 2010-01-04  Eric Blake  <ebb9@byu.net>
30169
30170         fdopendir: fix configure test
30171         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30172
30173 2010-01-01  Bruno Haible  <bruno@clisp.org>
30174
30175         wchar: Remove unused configure check.
30176         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30177
30178 2010-01-01  Eric Blake  <ebb9@byu.net>
30179
30180         headers: make check of system header explicit
30181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30182         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30183         ourselves.
30184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30188         internals.
30189         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30190         missing.
30191         Suggested by Bruno Haible.
30192
30193 2010-01-01  Jim Meyering  <meyering@redhat.com>
30194
30195         ChangeLog: tweak to eliminate unnecessary copyright line
30196         * ChangeLog: Remove a copyright line that was mistakenly updated
30197         by today's update-copyright run.  Reported by Eric Blake.
30198
30199         test-update-copyright: don't let envvar setting cause test failure
30200         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30201
30202 2010-01-01  Bruno Haible  <bruno@clisp.org>
30203
30204         localename: Avoid gcc warning.
30205         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30206         function if it is not used.
30207
30208 2010-01-01  Jim Meyering  <meyering@redhat.com>
30209
30210         update nearly all FSF copyright year lists to include 2010
30211         Use the same procedure as for 2009, outlined in
30212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30213
30214         version-etc: set COPYRIGHT_YEAR to 2010
30215         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30216
30217 2009-12-31  Eric Blake  <ebb9@byu.net>
30218
30219         doc: correct availability of cygwin 1.5.x getopt
30220         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30221         variables.
30222         * doc/posix-functions/opterr.texi (opterr): Likewise.
30223         * doc/posix-functions/optind.texi (optind): Likewise.
30224         * doc/posix-functions/optopt.texi (optopt): Likewise.
30225         * doc/posix-functions/tzname.texi (tzname): Likewise.
30226
30227         openat: update maintainer
30228         * modules/openat (Maintainer): Add myself.
30229
30230         utimens: avoid shadowing warning
30231         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30232         buffers into one, to avoid shadowing, as well as avoiding a
30233         redundant stat.
30234         Reported by Jim Meyering.
30235
30236         test-dup2: avoid compiler warning
30237         * tests/test-dup2.c (is_inheritable): Only define if used.
30238
30239 2010-01-01  Bruno Haible  <bruno@clisp.org>
30240
30241         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30242         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30243         defined, use wctomb instead of wcrtomb.
30244
30245 2010-01-01  Bruno Haible  <bruno@clisp.org>
30246
30247         iconv: Reject native Solaris iconv.
30248         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30249         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30250
30251 2009-12-31  Bruno Haible  <bruno@clisp.org>
30252
30253         * tests/test-signal.c (main): Remove test of 'SIG'.
30254
30255 2009-12-31  Bruno Haible  <bruno@clisp.org>
30256
30257         spawn: Fix incomplete fix.
30258         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30259         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30260         warnings for GNULIB_POSIXCHECK again.
30261         Reported by Eric Blake.
30262
30263 2009-12-31  Bruno Haible  <bruno@clisp.org>
30264
30265         Avoid namespace pollution on glibc systems.
30266         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30267         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30268         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30269         glibc systems.
30270
30271 2009-12-31  Bruno Haible  <bruno@clisp.org>
30272
30273         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30274         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30276         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30277         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30278         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30279         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30280
30281 2009-12-31  Bruno Haible  <bruno@clisp.org>
30282
30283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30284         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30285         afterwards.
30286
30287 2009-12-31  Bruno Haible  <bruno@clisp.org>
30288
30289         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30290         SYS_UTSNAME_H.
30291
30292 2009-12-31  Bruno Haible  <bruno@clisp.org>
30293
30294         spawn: Fix misapplied patch.
30295         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30296         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30297         warnings for GNULIB_POSIXCHECK.
30298
30299 2009-12-31  Bruno Haible  <bruno@clisp.org>
30300
30301         times: Update after sys_times changed.
30302         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30303         * modules/times (Files): Add it.
30304         (configure.ac): Invoke gl_FUNC_TIMES.
30305
30306 2009-12-31  Bruno Haible  <bruno@clisp.org>
30307
30308         Use AC_C_INLINE where necessary.
30309         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30312         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30313         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30314         * m4/mbiter.m4 (gl_MBITER): Likewise.
30315         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30316         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30317         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30318         * modules/u64 (configure.ac): Likewise.
30319
30320 2009-12-31  Bruno Haible  <bruno@clisp.org>
30321
30322         Use AC_C_INLINE instead of module 'inline' where possible.
30323         * modules/inline (Description): Clarify purpose.
30324         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30325         * modules/count-one-bits (Depends-on): Remove inline.
30326         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30327         * modules/openat (Depends-on): Remove inline.
30328         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30329         instead of depending on module 'inline'.
30330         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30331         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30332         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30333         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30334         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30335         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30336         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30337         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30338         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30339         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30340         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30341         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30342         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30343         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30344         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30345         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30346         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30347         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30348         Likewise.
30349         * modules/unictype/property-ascii-hex-digit (Depends-on,
30350         configure.ac): Likewise.
30351         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30352         configure.ac): Likewise.
30353         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30354         configure.ac): Likewise.
30355         * modules/unictype/property-bidi-block-separator (Depends-on,
30356         configure.ac): Likewise.
30357         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30358         configure.ac): Likewise.
30359         * modules/unictype/property-bidi-common-separator (Depends-on,
30360         configure.ac): Likewise.
30361         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30362         Likewise.
30363         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30364         configure.ac): Likewise.
30365         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30366         configure.ac): Likewise.
30367         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30368         configure.ac): Likewise.
30369         * modules/unictype/property-bidi-european-digit (Depends-on,
30370         configure.ac): Likewise.
30371         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30372         configure.ac): Likewise.
30373         * modules/unictype/property-bidi-left-to-right (Depends-on,
30374         configure.ac): Likewise.
30375         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30376         configure.ac): Likewise.
30377         * modules/unictype/property-bidi-other-neutral (Depends-on,
30378         configure.ac): Likewise.
30379         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30380         Likewise.
30381         * modules/unictype/property-bidi-segment-separator (Depends-on,
30382         configure.ac): Likewise.
30383         * modules/unictype/property-bidi-whitespace (Depends-on,
30384         configure.ac): Likewise.
30385         * modules/unictype/property-combining (Depends-on, configure.ac):
30386         Likewise.
30387         * modules/unictype/property-composite (Depends-on, configure.ac):
30388         Likewise.
30389         * modules/unictype/property-currency-symbol (Depends-on,
30390         configure.ac): Likewise.
30391         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30392         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30393         Likewise.
30394         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30395         configure.ac): Likewise.
30396         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30397         Likewise.
30398         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30399         Likewise.
30400         * modules/unictype/property-extender (Depends-on, configure.ac):
30401         Likewise.
30402         * modules/unictype/property-format-control (Depends-on, configure.ac):
30403         Likewise.
30404         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30405         Likewise.
30406         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30407         Likewise.
30408         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30409         Likewise.
30410         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30411         Likewise.
30412         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30413         Likewise.
30414         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30415         Likewise.
30416         * modules/unictype/property-id-start (Depends-on, configure.ac):
30417         Likewise.
30418         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30419         Likewise.
30420         * modules/unictype/property-ids-binary-operator (Depends-on,
30421         configure.ac): Likewise.
30422         * modules/unictype/property-ids-trinary-operator (Depends-on,
30423         configure.ac): Likewise.
30424         * modules/unictype/property-ignorable-control (Depends-on,
30425         configure.ac): Likewise.
30426         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30427         Likewise.
30428         * modules/unictype/property-join-control (Depends-on, configure.ac):
30429         Likewise.
30430         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30431         Likewise.
30432         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30433         Likewise.
30434         * modules/unictype/property-logical-order-exception (Depends-on,
30435         configure.ac): Likewise.
30436         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30437         Likewise.
30438         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30439         * modules/unictype/property-non-break (Depends-on, configure.ac):
30440         Likewise.
30441         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30442         Likewise.
30443         * modules/unictype/property-numeric (Depends-on, configure.ac):
30444         Likewise.
30445         * modules/unictype/property-other-alphabetic (Depends-on,
30446         configure.ac): Likewise.
30447         * modules/unictype/property-other-default-ignorable-code-point
30448         (Depends-on, configure.ac): Likewise.
30449         * modules/unictype/property-other-grapheme-extend (Depends-on,
30450         configure.ac): Likewise.
30451         * modules/unictype/property-other-id-continue (Depends-on,
30452         configure.ac): Likewise.
30453         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30454         Likewise.
30455         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30456         Likewise.
30457         * modules/unictype/property-other-math (Depends-on, configure.ac):
30458         Likewise.
30459         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30460         Likewise.
30461         * modules/unictype/property-paired-punctuation (Depends-on,
30462         configure.ac): Likewise.
30463         * modules/unictype/property-paragraph-separator (Depends-on,
30464         configure.ac): Likewise.
30465         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30466         Likewise.
30467         * modules/unictype/property-pattern-white-space (Depends-on,
30468         configure.ac): Likewise.
30469         * modules/unictype/property-private-use (Depends-on, configure.ac):
30470         Likewise.
30471         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30472         Likewise.
30473         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30474         Likewise.
30475         * modules/unictype/property-radical (Depends-on, configure.ac):
30476         Likewise.
30477         * modules/unictype/property-sentence-terminal (Depends-on,
30478         configure.ac): Likewise.
30479         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30480         Likewise.
30481         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30482         * modules/unictype/property-terminal-punctuation (Depends-on,
30483         configure.ac): Likewise.
30484         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30485         Likewise.
30486         * modules/unictype/property-unassigned-code-value (Depends-on,
30487         configure.ac): Likewise.
30488         * modules/unictype/property-unified-ideograph (Depends-on,
30489         configure.ac): Likewise.
30490         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30491         Likewise.
30492         * modules/unictype/property-variation-selector (Depends-on,
30493         configure.ac): Likewise.
30494         * modules/unictype/property-white-space (Depends-on, configure.ac):
30495         Likewise.
30496         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30497         Likewise.
30498         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30499         Likewise.
30500         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30501         Likewise.
30502         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30503         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30504         Likewise.
30505
30506 2009-12-31  Bruno Haible  <bruno@clisp.org>
30507
30508         Remove unnecessary AC_C_INLINE invocation.
30509         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30510         since 2009-08-21.
30511
30512 2009-12-31  Jim Meyering  <meyering@redhat.com>
30513
30514         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30515         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30516         With this change, we can all remove the gpg_key_ID = ... definition
30517         from our respective cfg.mk files.
30518
30519         maint.mk: create announcement template in ~/, not in /tmp
30520         * top/maint.mk (emit_upload_commands): Adjust.
30521         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30522         Remove temporary file, .ci-msg.
30523
30524 2009-12-31  Eric Blake  <ebb9@byu.net>
30525
30526         link-warning: always build headers with link warnings
30527         * modules/arpa_inet (Makefile.am): Always build replacement
30528         header.
30529         * modules/ctype (Makefile.am): Likewise.
30530         * modules/dirent (Makefile.am): Likewise.
30531         * modules/inttypes (Makefile.am): Likewise.
30532         * modules/langinfo (Makefile.am): Likewise.
30533         * modules/locale (Makefile.am): Likewise.
30534         * modules/spawn (Makefile.am): Likewise.
30535         * modules/sys_file (Makefile.am): Likewise.
30536         * modules/sys_ioctl (Makefile.am): Likewise.
30537         * modules/sys_select (Makefile.am): Likewise.
30538         * modules/sys_socket (Makefile.am): Likewise.
30539         * modules/sys_times (Makefile.am): Likewise.
30540         * modules/sys_utsname (Makefile.am): Likewise.
30541         * modules/sys_wait (Makefile.am): Likewise.
30542         * modules/wchar (Makefile.am): Likewise.
30543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30544         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30545         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30546         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30547         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30548         Likewise.
30549         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30550         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30552         Likewise.
30553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30554         Likewise.
30555         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30557         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30561         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30562         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30563         (gl_WCHAR_H_DEFAULTS): Likewise.
30564
30565 2009-12-31  Eric Blake  <ebb9@byu.net>
30566
30567         signal, spawn: use link warnings
30568         * lib/signal.in.h (sigset_t): Make unconditional.
30569         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30570         (sigpending, sigprocmask, sigaction): Add link warnings.
30571         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30572         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30573         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30574         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30575         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30576         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30577         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30578         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30579         (posix_spawn_file_actions_destroy)
30580         (posix_spawn_file_actions_addopen)
30581         (posix_spawn_file_actions_addclose)
30582         (posix_spawn_file_actions_adddup2): Likewise.
30583         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30584         * tests/test-signal.c (main): Enhance test.
30585
30586         spawn: improve wrapper support
30587         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30588         (gl_SPAWN_H_DEFAULTS): New defaults.
30589         * modules/spawn (Makefile.am): Substitute them.
30590         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30591         Only declare if missing or broken.
30592
30593         sys_times, sys_utsname: use include_next
30594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30595         header.
30596         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30598         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30599         * modules/sys_times (Depends-on): Add include_next.
30600         (Makefile.am): Substitute additional values.
30601         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30602         * lib/sys_times.in.h (includes): Include native header, if
30603         available.
30604         * lib/sys_utsname.in.h (includes): Likewise.
30605         * tests/test-sys_times.c (main): Enhance test.
30606
30607         fdutimensat: revert prior patch
30608         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30609         utimens.h.
30610         Reported by Bruno Haible.
30611
30612 2009-12-30  Eric Blake  <ebb9@byu.net>
30613
30614         sys_wait: drop link-warning dependency
30615         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30616         link-warning efforts.
30617         * lib/sys_wait.in.h: Likewise.
30618
30619         fdutimensat: remove bogus dependency
30620         * modules/fdutimensat (Depends-on): Drop inline.
30621
30622         unistd: fix typo
30623         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30624
30625 2009-12-30  Bruno Haible  <bruno@clisp.org>
30626
30627         Fix compilation error with Solaris cc.
30628         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30629         * lib/unicase/u16-is-invariant.c: Likewise.
30630         * lib/unicase/u32-is-invariant.c: Likewise.
30631         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30632
30633 2009-12-30  Bruno Haible  <bruno@clisp.org>
30634
30635         Fix test crash.
30636         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30637         locales.
30638         Reported by Simon Josefsson <simon@josefsson.org>.
30639
30640 2009-12-30  Bruno Haible  <bruno@clisp.org>
30641
30642         Fix compilation error on most platforms.
30643         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30644         Reported by Simon Josefsson <simon@josefsson.org>
30645         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30646
30647 2009-12-30  Eric Blake  <ebb9@byu.net>
30648
30649         futimens, utimensat: work around ntfs-3g bug
30650         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30651         a ctime bug is present, and expand workaround to cover ntfs-3g.
30652         * lib/utimens.c (fdutimens, lutimens): Likewise.
30653         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30654         (validate_timespec): Adjust return value.
30655         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30657         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30658
30659 2009-12-29  Eric Blake  <ebb9@byu.net>
30660
30661         link-warning: make usage consistent
30662         * modules/ctype (Depends-on): Add link-warning.
30663         (Makefile.am): Update rules accordingly.
30664         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30665         * modules/locale (Depends-on, Makefile.am): Likewise.
30666         * modules/sys_file (Makefile.am): Likewise.
30667         * modules/getopt-posix (Makefile.am): Delete unused link warning
30668         efforts.
30669         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30670         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30671         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30672         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30673
30674         stdio: remove unused variables
30675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30677         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30678
30679         tests: test more substitute headers
30680         * modules/ctype-tests: New file.
30681         * modules/dirent-tests: Likewise.
30682         * modules/spawn-tests: Likewise.
30683         * modules/sys_file-tests: Likewise.
30684         * modules/sys_ioctl-tests: Likewise.
30685         * modules/sys_wait-tests: Likewise.
30686         * tests/test-ctype.c: Likewise.
30687         * tests/test-dirent.c: Likewise.
30688         * tests/test-spawn.c: Likewise.
30689         * tests/test-sys_file.c: Likewise.
30690         * tests/test-sys_ioctl.c: Likewise.
30691         * tests/test-sys_wait.c: Likewise.
30692         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30693         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30694         whether or not flock is in use.
30695
30696         tests: remove License section from module
30697         * modules/arpa_inet-tests: Remove unneeded section.
30698         * modules/byteswap-tests: Likewise.
30699         * modules/ceilf-tests: Likewise.
30700         * modules/ceill-tests: Likewise.
30701         * modules/crypto/des-tests: Likewise.
30702         * modules/crypto/gc-arcfour-tests: Likewise.
30703         * modules/crypto/gc-arctwo-tests: Likewise.
30704         * modules/crypto/gc-des-tests: Likewise.
30705         * modules/crypto/gc-hmac-md5-tests: Likewise.
30706         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30707         * modules/crypto/gc-md2-tests: Likewise.
30708         * modules/crypto/gc-md4-tests: Likewise.
30709         * modules/crypto/gc-md5-tests: Likewise.
30710         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30711         * modules/crypto/gc-rijndael-tests: Likewise.
30712         * modules/crypto/gc-sha1-tests: Likewise.
30713         * modules/crypto/gc-tests: Likewise.
30714         * modules/crypto/md2-tests: Likewise.
30715         * modules/crypto/md4-tests: Likewise.
30716         * modules/fcntl-h-tests: Likewise.
30717         * modules/floorf-tests: Likewise.
30718         * modules/floorl-tests: Likewise.
30719         * modules/frexp-nolibm-tests: Likewise.
30720         * modules/frexp-tests: Likewise.
30721         * modules/frexpl-nolibm-tests: Likewise.
30722         * modules/frexpl-tests: Likewise.
30723         * modules/getaddrinfo-tests: Likewise.
30724         * modules/inttypes-tests: Likewise.
30725         * modules/isfinite-tests: Likewise.
30726         * modules/isinf-tests: Likewise.
30727         * modules/ldexpl-tests: Likewise.
30728         * modules/locale-tests: Likewise.
30729         * modules/math-tests: Likewise.
30730         * modules/netdb-tests: Likewise.
30731         * modules/netinet_in-tests: Likewise.
30732         * modules/printf-frexp-tests: Likewise.
30733         * modules/printf-frexpl-tests: Likewise.
30734         * modules/priv-set-tests: Likewise.
30735         * modules/random_r-tests: Likewise.
30736         * modules/round-tests: Likewise.
30737         * modules/roundf-tests: Likewise.
30738         * modules/roundl-tests: Likewise.
30739         * modules/search-tests: Likewise.
30740         * modules/select-tests: Likewise.
30741         * modules/signal-tests: Likewise.
30742         * modules/stdbool-tests: Likewise.
30743         * modules/stddef-tests: Likewise.
30744         * modules/stdint-tests: Likewise.
30745         * modules/stdio-tests: Likewise.
30746         * modules/stdlib-tests: Likewise.
30747         * modules/string-tests: Likewise.
30748         * modules/strings-tests: Likewise.
30749         * modules/sys_select-tests: Likewise.
30750         * modules/sys_socket-tests: Likewise.
30751         * modules/sys_stat-tests: Likewise.
30752         * modules/sys_time-tests: Likewise.
30753         * modules/sys_utsname-tests: Likewise.
30754         * modules/sysexits-tests: Likewise.
30755         * modules/time-tests: Likewise.
30756         * modules/trunc-tests: Likewise.
30757         * modules/truncf-tests: Likewise.
30758         * modules/truncl-tests: Likewise.
30759         * modules/tsearch-tests: Likewise.
30760         * modules/unistd-tests: Likewise.
30761         * modules/wchar-tests: Likewise.
30762         * modules/wctype-tests: Likewise.
30763
30764         tests: fix license on several tests
30765         * tests/test-des.c: Update to GPLv3+.
30766         * tests/test-flock.c: Likewise.
30767         * tests/test-fsync.c: Likewise.
30768         * tests/test-futimens.h: Likewise.
30769         * tests/test-gc-arcfour.c: Likewise.
30770         * tests/test-gc-arctwo.c: Likewise.
30771         * tests/test-gc-des.c: Likewise.
30772         * tests/test-gc-hmac-md5.c: Likewise.
30773         * tests/test-gc-hmac-sha1.c: Likewise.
30774         * tests/test-gc-md2.c: Likewise.
30775         * tests/test-gc-md4.c: Likewise.
30776         * tests/test-gc-md5.c: Likewise.
30777         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30778         * tests/test-gc-rijndael.c: Likewise.
30779         * tests/test-gc-sha1.c: Likewise.
30780         * tests/test-gc.c: Likewise.
30781         * tests/test-getcwd.c: Likewise.
30782         * tests/test-link.c: Likewise.
30783         * tests/test-link.h: Likewise.
30784         * tests/test-lutimens.h: Likewise.
30785         * tests/test-md2.c: Likewise.
30786         * tests/test-md4.c: Likewise.
30787         * tests/test-mkdir.h: Likewise.
30788         * tests/test-rename.c: Likewise.
30789         * tests/test-rename.h: Likewise.
30790         * tests/test-safe-alloc.c: Likewise.
30791         * tests/test-utimens-common.h: Likewise.
30792         * tests/test-utimens.h: Likewise.
30793
30794         maint: sync license texts
30795         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30796         * doc/gpl-3.0.texi: Revert copyright year update.
30797         * doc/lgpl-3.0.texi: Likewise.
30798
30799 2009-12-29  Jim Meyering  <meyering@redhat.com>
30800
30801         update nearly all FSF copyright year lists to include 2009
30802         The files named by the following are exempted:
30803             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30804               test -f "$dst" && { echo "$dst"; continue; }
30805               test -d "$dst" || continue
30806               echo "$dst"/$(basename "$src")
30807             done > exempt
30808             git ls-files tests/unictype >> exempt
30809         In the remaining files, convert to all-interval notation if
30810         - there is already at least one year interval like 2000-2003
30811         - the file is maintained by me
30812         - the file is in lib/uni*/, where that style already prevails
30813         Otherwise, use update-copyright's default.
30814
30815 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30816         and Eric Blake  <ebb9@byu.net>
30817
30818         tests: don't require debug system() to pass
30819         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30820         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30821         * tests/test-unlink.h (test_unlink_func): Likewise.
30822         * tests/test-fstatat.c (main): ...into callers.
30823         * tests/test-lstat.c (main): Likewise.
30824         * tests/test-rmdir.c (main): Likewise.
30825         * tests/test-unlink.c (main): Likewise.
30826         * tests/test-unlinkat.c (main): Likewise.
30827         * tests/test-areadlink-with-size.c (main): Don't require a
30828         debug-only system call to pass, aiding cross-testing to mingw.
30829         * tests/test-areadlink.c (main): Likewise.
30830         * tests/test-areadlinkat-with-size.c (main): Likewise.
30831         * tests/test-areadlinkat.c (main): Likewise.
30832         * tests/test-canonicalize-lgpl.c (main): Likewise.
30833         * tests/test-canonicalize.c (main): Likewise.
30834         * tests/test-chown.c (main): Likewise.
30835         * tests/test-fchownat.c (main): Likewise.
30836         * tests/test-lchown.c (main): Likewise.
30837         * tests/test-fdutimensat.c (main): Likewise.
30838         * tests/test-futimens.c (main): Likewise.
30839         * tests/test-link.c (main): Likewise.
30840         * tests/test-linkat.c (main): Likewise.
30841         * tests/test-mkdir.c (main): Likewise.
30842         * tests/test-mkdirat.c (main): Likewise.
30843         * tests/test-mkfifo.c (main): Likewise.
30844         * tests/test-mkfifoat.c (main): Likewise.
30845         * tests/test-mknod.c (main): Likewise.
30846         * tests/test-readlink.c (main): Likewise.
30847         * tests/test-remove.c (main): Likewise.
30848         * tests/test-rename.c (main): Likewise.
30849         * tests/test-renameat.c (main): Likewise.
30850         * tests/test-symlink.c (main): Likewise.
30851         * tests/test-symlinkat.c (main): Likewise.
30852         * tests/test-utimens.c (main): Likewise.
30853         * tests/test-utimensat.c (main): Likewise.
30854
30855 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30856
30857         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30858         on $(UNUSED_PARAMETER_H) to avoid build failure.
30859
30860 2009-12-28  Jim Meyering  <meyering@redhat.com>
30861
30862         update-copyright: you may specify a max. line length other than 72
30863         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30864
30865         maint: use consistent FSF copyright line syntax
30866         * lib/posixtm.c: Add missing comma in FSF copyright line.
30867         * lib/posixtm.h: Likewise.
30868         * lib/getugroups.c: Add missing ", Inc.".
30869
30870         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30871         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30872         FSF copyright line.  Remove trailing blanks.
30873
30874 2009-12-28  Eric Blake  <ebb9@byu.net>
30875
30876         test-dup2: reduce dependencies
30877         * modules/cloexec (Configure.ac): Set witness.
30878         * modules/dup2-tests (Depends-on): Drop cloexec.
30879         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30880         not present.
30881         Suggested by Bruno Haible.
30882
30883 2009-12-26  Bruno Haible  <bruno@clisp.org>
30884
30885         Remove an unneeded dependency.
30886         * modules/fseterr (Depends-on): Remove dup2.
30887
30888 2009-12-26  Eric Blake  <ebb9@byu.net>
30889
30890         tests: use macros.h in more places
30891         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30892         (ASSERT_STREAM): Provide default of stderr.
30893         * tests/test-dirent-safer.c: Include macros.h, using alternate
30894         stream for assertions.
30895         * tests/test-dup-safer.c: Likewise.
30896         * tests/test-freopen-safer.c: Likewise.
30897         * tests/test-getopt.c: Likewise.
30898         * tests/test-openat-safer.c: Likewise.
30899         * tests/test-pipe.c: Likewise.
30900         * tests/test-popen-safer.c: Likewise.
30901         * modules/dirent-safer-tests (Files): Include macros.h.
30902         * modules/unistd-safer-tests (Files): Likewise.
30903         * modules/freopen-safer-tests (Files): Likewise.
30904         * modules/getopt-posix-tests (Files): Likewise.
30905         * modules/openat-safer-tests (Files): Likewise.
30906         * modules/pipe-tests (Files): Likewise.
30907
30908 2009-12-26  Bruno Haible  <bruno@clisp.org>
30909
30910         javacomp: Portability fix.
30911         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30912         that it also works on Solaris.
30913
30914 2009-12-26  Bruno Haible  <bruno@clisp.org>
30915
30916         localename: Fix storage allocation of gl_locale_name_thread's result.
30917         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30918         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30919         all platforms that have 'uselocale'.
30920         (gl_locale_name_thread_unsafe): New function, extracted from
30921         gl_locale_name_thread.
30922         (gl_locale_name_thread): Call struniq on all platforms that have
30923         'uselocale'.
30924         * tests/test-localename.c (test_locale_name_thread): Check that the
30925         resulting strings are permanently allocated.
30926         * modules/localename-tests (Depends-on): Add strdup.
30927
30928 2009-12-26  Bruno Haible  <bruno@clisp.org>
30929
30930         * tests/test-localename.c (categories): Fill in the strings.
30931
30932 2009-12-26  Jim Meyering  <meyering@redhat.com>
30933
30934         isdir: complete the removal of m4/isdir.m4
30935         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30936
30937         isdir: clean up, since at least grep still uses it
30938         * lib/isdir.c: Include "isdir.h".
30939         (S_ISDIR): Remove now-unneeded definition.
30940         * modules/isdir (Files): Add lib/isdir.h.
30941         * lib/isdir.h: New file, with declaration.
30942         * m4/isdir.m4: Remove file -- unneeded.
30943
30944 2009-12-25  Bruno Haible  <bruno@clisp.org>
30945
30946         selinux-h: Make generated .h files standalone.
30947         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30948         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30949         * lib/se-selinux.in.h: Likewise.
30950         * modules/selinux-h (Depends-on): Add unused-parameter.
30951         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30952         selinux/selinux.h and selinux/context.h.
30953         Suggested by Eric Blake.
30954
30955 2009-12-25  Bruno Haible  <bruno@clisp.org>
30956
30957         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30958         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30959         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30960         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30961         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30962
30963 2009-12-24  Bruno Haible  <bruno@clisp.org>
30964
30965         openat: Fix warning.
30966         * lib/openat-proc.c: Include <unistd.h>.
30967
30968 2009-12-24  Bruno Haible  <bruno@clisp.org>
30969
30970         New module 'unused-parameter'.
30971         * build-aux/unused-parameter.h: New file, extracted from earlier
30972         gnulib-common.m4.
30973         * modules/unused-parameter: New file.
30974         * lib/unistr.h: Include unused-parameter.h.
30975         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30976         _GL_UNUSED.
30977         * modules/unistr/base (Depends-on): Add unused-parameter.
30978
30979 2009-12-24  Bruno Haible  <bruno@clisp.org>
30980
30981         Add missing dependencies to 'extensions' module.
30982         * m4/extensions.m4: Add comment.
30983         * modules/accept4 (Depends-on): Add extensions.
30984         * modules/dup3 (Depends-on): Likewise.
30985         * modules/fcntl (Depends-on): Likewise.
30986         * modules/futimens (Depends-on): Likewise.
30987         * modules/mknod (Depends-on): Likewise.
30988         * modules/pipe2 (Depends-on): Likewise.
30989         * modules/stat-time (Depends-on): Likewise.
30990         * modules/strcasestr-simple (Depends-on): Likewise.
30991         * modules/strsignal (Depends-on): Likewise.
30992         * modules/utimensat (Depends-on): Likewise.
30993         * modules/localcharset (Depends-on): Likewise. Needed because of
30994         gl_FCNTL_O_FLAGS.
30995         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30996         AC_TYPE_MBSTATE_T.
30997         * modules/wcsnrtombs (Depends-on): Likewise.
30998         * modules/wcsrtombs (Depends-on): Likewise.
30999
31000 2009-12-24  Bruno Haible  <bruno@clisp.org>
31001
31002         binary-io: Avoid gcc warning due to SET_BINARY.
31003         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31004         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31005
31006 2009-12-24  Bruno Haible  <bruno@clisp.org>
31007
31008         Avoid future namespace pollution on glibc systems.
31009         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31010         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31011         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31012         glibc systems.
31013
31014 2009-12-24  Bruno Haible  <bruno@clisp.org>
31015
31016         Refactor common macros used in tests.
31017         * tests/macros.h: New file.
31018         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31019         and/or <stdlib.h>, if appropriate.
31020         (ASSERT, SIZEOF): Remove macros.
31021         * tests/test-areadlink-with-size.c: Likewise.
31022         * tests/test-areadlinkat.c: Likewise.
31023         * tests/test-areadlinkat-with-size.c: Likewise.
31024         * tests/test-argmatch.c: Likewise.
31025         * tests/test-argv-iter.c: Likewise.
31026         * tests/test-array-mergesort.c: Likewise.
31027         * tests/test-array_list.c: Likewise.
31028         * tests/test-array_oset.c: Likewise.
31029         * tests/test-avltree_list.c: Likewise.
31030         * tests/test-avltree_oset.c: Likewise.
31031         * tests/test-avltreehash_list.c: Likewise.
31032         * tests/test-base64.c: Likewise.
31033         * tests/test-binary-io.c: Likewise.
31034         * tests/test-bitrotate.c: Likewise.
31035         * tests/test-btowc.c: Likewise.
31036         * tests/test-byteswap.c: Likewise.
31037         * tests/test-c-ctype.c: Likewise.
31038         * tests/test-c-stack.c: Likewise.
31039         * tests/test-c-strcasecmp.c: Likewise.
31040         * tests/test-c-strcasestr.c: Likewise.
31041         * tests/test-c-strncasecmp.c: Likewise.
31042         * tests/test-c-strstr.c: Likewise.
31043         * tests/test-canonicalize-lgpl.c: Likewise.
31044         * tests/test-canonicalize.c: Likewise.
31045         * tests/test-carray_list.c: Likewise.
31046         * tests/test-ceilf1.c: Likewise.
31047         * tests/test-ceilf2.c: Likewise.
31048         * tests/test-ceill.c: Likewise.
31049         * tests/test-chown.c: Likewise.
31050         * tests/test-cloexec.c: Likewise.
31051         * tests/test-copy-acl.c: Likewise.
31052         * tests/test-copy-file.c: Likewise.
31053         * tests/test-count-one-bits.c: Likewise.
31054         * tests/test-dprintf-posix.c: Likewise.
31055         * tests/test-dup2.c: Likewise.
31056         * tests/test-dup3.c: Likewise.
31057         * tests/test-duplocale.c: Likewise.
31058         * tests/test-fbufmode.c: Likewise.
31059         * tests/test-fchdir.c: Likewise.
31060         * tests/test-fchownat.c: Likewise.
31061         * tests/test-fcntl-safer.c: Likewise.
31062         * tests/test-fcntl.c: Likewise.
31063         * tests/test-fdopendir.c: Likewise.
31064         * tests/test-fdutimensat.c: Likewise.
31065         * tests/test-fflush2.c: Likewise.
31066         * tests/test-file-has-acl.c: Likewise.
31067         * tests/test-filevercmp.c: Likewise.
31068         * tests/test-flock.c: Likewise.
31069         * tests/test-floorf1.c: Likewise.
31070         * tests/test-floorf2.c: Likewise.
31071         * tests/test-floorl.c: Likewise.
31072         * tests/test-fnmatch.c: Likewise.
31073         * tests/test-fopen.h: Likewise.
31074         * tests/test-fpending.c: Likewise.
31075         * tests/test-fprintf-posix.c: Likewise.
31076         * tests/test-fpurge.c: Likewise.
31077         * tests/test-freadable.c: Likewise.
31078         * tests/test-freadahead.c: Likewise.
31079         * tests/test-freading.c: Likewise.
31080         * tests/test-freadptr.c: Likewise.
31081         * tests/test-freadptr2.c: Likewise.
31082         * tests/test-freadseek.c: Likewise.
31083         * tests/test-freopen.c: Likewise.
31084         * tests/test-frexp.c: Likewise.
31085         * tests/test-frexpl.c: Likewise.
31086         * tests/test-fseek.c: Likewise.
31087         * tests/test-fseeko.c: Likewise.
31088         * tests/test-fstatat.c: Likewise.
31089         * tests/test-fstrcmp.c: Likewise.
31090         * tests/test-fsync.c: Likewise.
31091         * tests/test-ftell.c: Likewise.
31092         * tests/test-ftello.c: Likewise.
31093         * tests/test-func.c: Likewise.
31094         * tests/test-futimens.c: Likewise.
31095         * tests/test-fwritable.c: Likewise.
31096         * tests/test-fwriting.c: Likewise.
31097         * tests/test-getcwd.c: Likewise.
31098         * tests/test-getdate.c: Likewise.
31099         * tests/test-getdelim.c: Likewise.
31100         * tests/test-getdtablesize.c: Likewise.
31101         * tests/test-getgroups.c: Likewise.
31102         * tests/test-getline.c: Likewise.
31103         * tests/test-getndelim2.c: Likewise.
31104         * tests/test-glob.c: Likewise.
31105         * tests/test-hash.c: Likewise.
31106         * tests/test-i-ring.c: Likewise.
31107         * tests/test-iconv-utf.c: Likewise.
31108         * tests/test-iconv.c: Likewise.
31109         * tests/test-idpriv-drop.c: Likewise.
31110         * tests/test-idpriv-droptemp.c: Likewise.
31111         * tests/test-inet_ntop.c: Likewise.
31112         * tests/test-inet_pton.c: Likewise.
31113         * tests/test-isblank.c: Likewise.
31114         * tests/test-isfinite.c: Likewise.
31115         * tests/test-isinf.c: Likewise.
31116         * tests/test-isnan.c: Likewise.
31117         * tests/test-isnand.h: Likewise.
31118         * tests/test-isnanf.h: Likewise.
31119         * tests/test-isnanl.h: Likewise.
31120         * tests/test-lchown.c: Likewise.
31121         * tests/test-ldexpl.c: Likewise.
31122         * tests/test-link.c: Likewise.
31123         * tests/test-linkat.c: Likewise.
31124         * tests/test-linked_list.c: Likewise.
31125         * tests/test-linkedhash_list.c: Likewise.
31126         * tests/test-localename.c: Likewise.
31127         * tests/test-lseek.c: Likewise.
31128         * tests/test-lstat.c: Likewise.
31129         * tests/test-mbmemcasecmp.c: Likewise.
31130         * tests/test-mbmemcasecoll.c: Likewise.
31131         * tests/test-mbrtowc.c: Likewise.
31132         * tests/test-mbscasecmp.c: Likewise.
31133         * tests/test-mbscasestr1.c: Likewise.
31134         * tests/test-mbscasestr2.c: Likewise.
31135         * tests/test-mbscasestr3.c: Likewise.
31136         * tests/test-mbscasestr4.c: Likewise.
31137         * tests/test-mbschr.c: Likewise.
31138         * tests/test-mbscspn.c: Likewise.
31139         * tests/test-mbsinit.c: Likewise.
31140         * tests/test-mbsncasecmp.c: Likewise.
31141         * tests/test-mbsnrtowcs.c: Likewise.
31142         * tests/test-mbspbrk.c: Likewise.
31143         * tests/test-mbspcasecmp.c: Likewise.
31144         * tests/test-mbsrchr.c: Likewise.
31145         * tests/test-mbsrtowcs.c: Likewise.
31146         * tests/test-mbsspn.c: Likewise.
31147         * tests/test-mbsstr1.c: Likewise.
31148         * tests/test-mbsstr2.c: Likewise.
31149         * tests/test-mbsstr3.c: Likewise.
31150         * tests/test-memchr.c: Likewise.
31151         * tests/test-memchr2.c: Likewise.
31152         * tests/test-memcmp.c: Likewise.
31153         * tests/test-memmem.c: Likewise.
31154         * tests/test-memrchr.c: Likewise.
31155         * tests/test-mkdir.c: Likewise.
31156         * tests/test-mkdirat.c: Likewise.
31157         * tests/test-mkfifo.c: Likewise.
31158         * tests/test-mkfifoat.c: Likewise.
31159         * tests/test-mknod.c: Likewise.
31160         * tests/test-nanosleep.c: Likewise.
31161         * tests/test-nl_langinfo.c: Likewise.
31162         * tests/test-obstack-printf.c: Likewise.
31163         * tests/test-open.c: Likewise.
31164         * tests/test-openat.c: Likewise.
31165         * tests/test-pipe-filter-gi1.c: Likewise.
31166         * tests/test-pipe-filter-gi2-main.c: Likewise.
31167         * tests/test-pipe-filter-ii1.c: Likewise.
31168         * tests/test-pipe-filter-ii2-main.c: Likewise.
31169         * tests/test-pipe2.c: Likewise.
31170         * tests/test-popen.h: Likewise.
31171         * tests/test-posixtm.c: Likewise.
31172         * tests/test-pread.c: Likewise.
31173         * tests/test-printf-frexp.c: Likewise.
31174         * tests/test-printf-frexpl.c: Likewise.
31175         * tests/test-printf-posix.c: Likewise.
31176         * tests/test-priv-set.c: Likewise.
31177         * tests/test-quotearg.c: Likewise.
31178         * tests/test-random_r.c: Likewise.
31179         * tests/test-rawmemchr.c: Likewise.
31180         * tests/test-rbtree_list.c: Likewise.
31181         * tests/test-rbtree_oset.c: Likewise.
31182         * tests/test-rbtreehash_list.c: Likewise.
31183         * tests/test-readlink.c: Likewise.
31184         * tests/test-remove.c: Likewise.
31185         * tests/test-rename.c: Likewise.
31186         * tests/test-renameat.c: Likewise.
31187         * tests/test-rmdir.c: Likewise.
31188         * tests/test-round1.c: Likewise.
31189         * tests/test-roundf1.c: Likewise.
31190         * tests/test-roundl.c: Likewise.
31191         * tests/test-safe-alloc.c: Likewise.
31192         * tests/test-sameacls.c: Likewise.
31193         * tests/test-set-mode-acl.c: Likewise.
31194         * tests/test-setenv.c: Likewise.
31195         * tests/test-sigaction.c: Likewise.
31196         * tests/test-signbit.c: Likewise.
31197         * tests/test-sleep.c: Likewise.
31198         * tests/test-snprintf-posix.c: Likewise.
31199         * tests/test-snprintf.c: Likewise.
31200         * tests/test-sprintf-posix.c: Likewise.
31201         * tests/test-stat-time.c: Likewise.
31202         * tests/test-stat.c: Likewise.
31203         * tests/test-strcasestr.c: Likewise.
31204         * tests/test-strchrnul.c: Likewise.
31205         * tests/test-strerror.c: Likewise.
31206         * tests/test-striconv.c: Likewise.
31207         * tests/test-striconveh.c: Likewise.
31208         * tests/test-striconveha.c: Likewise.
31209         * tests/test-strsignal.c: Likewise.
31210         * tests/test-strstr.c: Likewise.
31211         * tests/test-strtod.c: Likewise.
31212         * tests/test-strverscmp.c: Likewise.
31213         * tests/test-symlink.c: Likewise.
31214         * tests/test-symlinkat.c: Likewise.
31215         * tests/test-trunc1.c: Likewise.
31216         * tests/test-trunc2.c: Likewise.
31217         * tests/test-truncf1.c: Likewise.
31218         * tests/test-truncf2.c: Likewise.
31219         * tests/test-truncl.c: Likewise.
31220         * tests/test-uname.c: Likewise.
31221         * tests/test-unlink.c: Likewise.
31222         * tests/test-unlinkat.c: Likewise.
31223         * tests/test-unsetenv.c: Likewise.
31224         * tests/test-usleep.c: Likewise.
31225         * tests/test-utimens.c: Likewise.
31226         * tests/test-utimensat.c: Likewise.
31227         * tests/test-vasnprintf-posix.c: Likewise.
31228         * tests/test-vasnprintf-posix2.c: Likewise.
31229         * tests/test-vasnprintf.c: Likewise.
31230         * tests/test-vasprintf-posix.c: Likewise.
31231         * tests/test-vasprintf.c: Likewise.
31232         * tests/test-vdprintf-posix.c: Likewise.
31233         * tests/test-vfprintf-posix.c: Likewise.
31234         * tests/test-vprintf-posix.c: Likewise.
31235         * tests/test-vsnprintf-posix.c: Likewise.
31236         * tests/test-vsnprintf.c: Likewise.
31237         * tests/test-vsprintf-posix.c: Likewise.
31238         * tests/test-wcrtomb.c: Likewise.
31239         * tests/test-wcsnrtombs.c: Likewise.
31240         * tests/test-wcsrtombs.c: Likewise.
31241         * tests/test-wctype.c: Likewise.
31242         * tests/test-wcwidth.c: Likewise.
31243         * tests/test-xfprintf-posix.c: Likewise.
31244         * tests/test-xmemdup0.c: Likewise.
31245         * tests/test-xprintf-posix.c: Likewise.
31246         * tests/test-xvasprintf.c: Likewise.
31247         * tests/unicase/test-locale-language.c: Likewise.
31248         * tests/unicase/test-mapping-part1.h: Likewise.
31249         * tests/unicase/test-predicate-part1.h: Likewise.
31250         * tests/unicase/test-u8-casecmp.c: Likewise.
31251         * tests/unicase/test-u8-casecoll.c: Likewise.
31252         * tests/unicase/test-u8-casefold.c: Likewise.
31253         * tests/unicase/test-u8-is-cased.c: Likewise.
31254         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31255         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31256         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31257         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31258         * tests/unicase/test-u8-tolower.c: Likewise.
31259         * tests/unicase/test-u8-totitle.c: Likewise.
31260         * tests/unicase/test-u8-toupper.c: Likewise.
31261         * tests/unicase/test-u16-casecmp.c: Likewise.
31262         * tests/unicase/test-u16-casecoll.c: Likewise.
31263         * tests/unicase/test-u16-casefold.c: Likewise.
31264         * tests/unicase/test-u16-is-cased.c: Likewise.
31265         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31266         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31267         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31268         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31269         * tests/unicase/test-u16-tolower.c: Likewise.
31270         * tests/unicase/test-u16-totitle.c: Likewise.
31271         * tests/unicase/test-u16-toupper.c: Likewise.
31272         * tests/unicase/test-u32-casecmp.c: Likewise.
31273         * tests/unicase/test-u32-casecoll.c: Likewise.
31274         * tests/unicase/test-u32-casefold.c: Likewise.
31275         * tests/unicase/test-u32-is-cased.c: Likewise.
31276         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31277         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31278         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31279         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31280         * tests/unicase/test-u32-tolower.c: Likewise.
31281         * tests/unicase/test-u32-totitle.c: Likewise.
31282         * tests/unicase/test-u32-toupper.c: Likewise.
31283         * tests/unicase/test-ulc-casecmp.c: Likewise.
31284         * tests/unicase/test-ulc-casecoll.c: Likewise.
31285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31289         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31290         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31291         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31292         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31293         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31294         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31295         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31296         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31297         * tests/unictype/test-bidi_byname.c: Likewise.
31298         * tests/unictype/test-bidi_name.c: Likewise.
31299         * tests/unictype/test-bidi_of.c: Likewise.
31300         * tests/unictype/test-bidi_test.c: Likewise.
31301         * tests/unictype/test-block_list.c: Likewise.
31302         * tests/unictype/test-block_of.c: Likewise.
31303         * tests/unictype/test-block_test.c: Likewise.
31304         * tests/unictype/test-categ_and.c: Likewise.
31305         * tests/unictype/test-categ_and_not.c: Likewise.
31306         * tests/unictype/test-categ_byname.c: Likewise.
31307         * tests/unictype/test-categ_name.c: Likewise.
31308         * tests/unictype/test-categ_none.c: Likewise.
31309         * tests/unictype/test-categ_of.c: Likewise.
31310         * tests/unictype/test-categ_or.c: Likewise.
31311         * tests/unictype/test-categ_test_withtable.c: Likewise.
31312         * tests/unictype/test-combining.c: Likewise.
31313         * tests/unictype/test-decdigit.c: Likewise.
31314         * tests/unictype/test-digit.c: Likewise.
31315         * tests/unictype/test-mirror.c: Likewise.
31316         * tests/unictype/test-numeric.c: Likewise.
31317         * tests/unictype/test-pr_byname.c: Likewise.
31318         * tests/unictype/test-pr_test.c: Likewise.
31319         * tests/unictype/test-predicate-part1.h: Likewise.
31320         * tests/unictype/test-scripts.c: Likewise.
31321         * tests/unictype/test-sy_c_ident.c: Likewise.
31322         * tests/unictype/test-sy_java_ident.c: Likewise.
31323         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31324         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31325         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31326         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31327         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31328         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31329         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31330         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31331         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31332         * tests/uninorm/test-compat-decomposition.c: Likewise.
31333         * tests/uninorm/test-composition.c: Likewise.
31334         * tests/uninorm/test-decomposing-form.c: Likewise.
31335         * tests/uninorm/test-decomposition.c: Likewise.
31336         * tests/uninorm/test-u8-nfc.c: Likewise.
31337         * tests/uninorm/test-u8-nfd.c: Likewise.
31338         * tests/uninorm/test-u8-nfkc.c: Likewise.
31339         * tests/uninorm/test-u8-nfkd.c: Likewise.
31340         * tests/uninorm/test-u8-normcmp.c: Likewise.
31341         * tests/uninorm/test-u8-normcoll.c: Likewise.
31342         * tests/uninorm/test-u16-nfc.c: Likewise.
31343         * tests/uninorm/test-u16-nfd.c: Likewise.
31344         * tests/uninorm/test-u16-nfkc.c: Likewise.
31345         * tests/uninorm/test-u16-nfkd.c: Likewise.
31346         * tests/uninorm/test-u16-normcmp.c: Likewise.
31347         * tests/uninorm/test-u16-normcoll.c: Likewise.
31348         * tests/uninorm/test-u32-nfc.c: Likewise.
31349         * tests/uninorm/test-u32-nfd.c: Likewise.
31350         * tests/uninorm/test-u32-nfkc.c: Likewise.
31351         * tests/uninorm/test-u32-nfkd.c: Likewise.
31352         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31353         * tests/uninorm/test-u32-normcmp.c: Likewise.
31354         * tests/uninorm/test-u32-normcoll.c: Likewise.
31355         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31356         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31357         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31358         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31359         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31360         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31361         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31362         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31363         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31364         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31365         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31366         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31367         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31368         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31369         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31370         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31371         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31372         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31373         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31374         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31375         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31376         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31377         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31378         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31379         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31380         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31381         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31382         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31383         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31384         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31385         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31386         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31387         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31388         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31389         * tests/uniwidth/test-u8-width.c: Likewise.
31390         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31391         * tests/uniwidth/test-u16-width.c: Likewise.
31392         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31393         * tests/uniwidth/test-u32-width.c: Likewise.
31394         * tests/uniwidth/test-uc_width.c: Likewise.
31395         * tests/uniwidth/test-uc_width2.c: Likewise.
31396         * modules/acl-tests (Files): Add tests/macros.h.
31397         * modules/areadlink-tests (Files): Likewise.
31398         * modules/areadlink-with-size-tests (Files): Likewise.
31399         * modules/areadlinkat-tests (Files): Likewise.
31400         * modules/areadlinkat-with-size-tests (Files): Likewise.
31401         * modules/argmatch-tests (Files): Likewise.
31402         * modules/argv-iter-tests (Files): Likewise.
31403         * modules/array-list-tests (Files): Likewise.
31404         * modules/array-mergesort-tests (Files): Likewise.
31405         * modules/array-oset-tests (Files): Likewise.
31406         * modules/avltree-list-tests (Files): Likewise.
31407         * modules/avltree-oset-tests (Files): Likewise.
31408         * modules/avltreehash-list-tests (Files): Likewise.
31409         * modules/base64-tests (Files): Likewise.
31410         * modules/binary-io-tests (Files): Likewise.
31411         * modules/bitrotate-tests (Files): Likewise.
31412         * modules/btowc-tests (Files): Likewise.
31413         * modules/byteswap-tests (Files): Likewise.
31414         * modules/c-ctype-tests (Files): Likewise.
31415         * modules/c-stack-tests (Files): Likewise.
31416         * modules/c-strcase-tests (Files): Likewise.
31417         * modules/c-strcasestr-tests (Files): Likewise.
31418         * modules/c-strstr-tests (Files): Likewise.
31419         * modules/canonicalize-lgpl-tests (Files): Likewise.
31420         * modules/canonicalize-tests (Files): Likewise.
31421         * modules/carray-list-tests (Files): Likewise.
31422         * modules/ceilf-tests (Files): Likewise.
31423         * modules/ceill-tests (Files): Likewise.
31424         * modules/chown-tests (Files): Likewise.
31425         * modules/cloexec-tests (Files): Likewise.
31426         * modules/copy-file-tests (Files): Likewise.
31427         * modules/count-one-bits-tests (Files): Likewise.
31428         * modules/dprintf-posix-tests (Files): Likewise.
31429         * modules/dup2-tests (Files): Likewise.
31430         * modules/dup3-tests (Files): Likewise.
31431         * modules/duplocale-tests (Files): Likewise.
31432         * modules/fbufmode-tests (Files): Likewise.
31433         * modules/fchdir-tests (Files): Likewise.
31434         * modules/fcntl-safer-tests (Files): Likewise.
31435         * modules/fcntl-tests (Files): Likewise.
31436         * modules/fdopendir-tests (Files): Likewise.
31437         * modules/fdutimensat-tests (Files): Likewise.
31438         * modules/fflush-tests (Files): Likewise.
31439         * modules/filevercmp-tests (Files): Likewise.
31440         * modules/flock-tests (Files): Likewise.
31441         * modules/floorf-tests (Files): Likewise.
31442         * modules/floorl-tests (Files): Likewise.
31443         * modules/fnmatch-tests (Files): Likewise.
31444         * modules/fopen-safer-tests (Files): Likewise.
31445         * modules/fopen-tests (Files): Likewise.
31446         * modules/fpending-tests (Files): Likewise.
31447         * modules/fprintf-posix-tests (Files): Likewise.
31448         * modules/fpurge-tests (Files): Likewise.
31449         * modules/freadable-tests (Files): Likewise.
31450         * modules/freadahead-tests (Files): Likewise.
31451         * modules/freading-tests (Files): Likewise.
31452         * modules/freadptr-tests (Files): Likewise.
31453         * modules/freadseek-tests (Files): Likewise.
31454         * modules/freopen-tests (Files): Likewise.
31455         * modules/frexp-nolibm-tests (Files): Likewise.
31456         * modules/frexp-tests (Files): Likewise.
31457         * modules/frexpl-nolibm-tests (Files): Likewise.
31458         * modules/frexpl-tests (Files): Likewise.
31459         * modules/fseek-tests (Files): Likewise.
31460         * modules/fseeko-tests (Files): Likewise.
31461         * modules/fstrcmp-tests (Files): Likewise.
31462         * modules/fsync-tests (Files): Likewise.
31463         * modules/ftell-tests (Files): Likewise.
31464         * modules/ftello-tests (Files): Likewise.
31465         * modules/func-tests (Files): Likewise.
31466         * modules/futimens-tests (Files): Likewise.
31467         * modules/fwritable-tests (Files): Likewise.
31468         * modules/fwriting-tests (Files): Likewise.
31469         * modules/getcwd-tests (Files): Likewise.
31470         * modules/getdate-tests (Files): Likewise.
31471         * modules/getdelim-tests (Files): Likewise.
31472         * modules/getdtablesize-tests (Files): Likewise.
31473         * modules/getgroups-tests (Files): Likewise.
31474         * modules/getline-tests (Files): Likewise.
31475         * modules/getndelim2-tests (Files): Likewise.
31476         * modules/glob-tests (Files): Likewise.
31477         * modules/hash-tests (Files): Likewise.
31478         * modules/i-ring-tests (Files): Likewise.
31479         * modules/iconv-tests (Files): Likewise.
31480         * modules/iconv_open-utf-tests (Files): Likewise.
31481         * modules/idpriv-drop-tests (Files): Likewise.
31482         * modules/idpriv-droptemp-tests (Files): Likewise.
31483         * modules/inet_ntop-tests (Files): Likewise.
31484         * modules/inet_pton-tests (Files): Likewise.
31485         * modules/isblank-tests (Files): Likewise.
31486         * modules/isfinite-tests (Files): Likewise.
31487         * modules/isinf-tests (Files): Likewise.
31488         * modules/isnan-tests (Files): Likewise.
31489         * modules/isnand-nolibm-tests (Files): Likewise.
31490         * modules/isnand-tests (Files): Likewise.
31491         * modules/isnanf-nolibm-tests (Files): Likewise.
31492         * modules/isnanf-tests (Files): Likewise.
31493         * modules/isnanl-nolibm-tests (Files): Likewise.
31494         * modules/isnanl-tests (Files): Likewise.
31495         * modules/lchown-tests (Files): Likewise.
31496         * modules/ldexpl-tests (Files): Likewise.
31497         * modules/link-tests (Files): Likewise.
31498         * modules/linkat-tests (Files): Likewise.
31499         * modules/linked-list-tests (Files): Likewise.
31500         * modules/linkedhash-list-tests (Files): Likewise.
31501         * modules/localename-tests (Files): Likewise.
31502         * modules/lseek-tests (Files): Likewise.
31503         * modules/lstat-tests (Files): Likewise.
31504         * modules/mbmemcasecmp-tests (Files): Likewise.
31505         * modules/mbmemcasecoll-tests (Files): Likewise.
31506         * modules/mbrtowc-tests (Files): Likewise.
31507         * modules/mbscasecmp-tests (Files): Likewise.
31508         * modules/mbscasestr-tests (Files): Likewise.
31509         * modules/mbschr-tests (Files): Likewise.
31510         * modules/mbscspn-tests (Files): Likewise.
31511         * modules/mbsinit-tests (Files): Likewise.
31512         * modules/mbsncasecmp-tests (Files): Likewise.
31513         * modules/mbsnrtowcs-tests (Files): Likewise.
31514         * modules/mbspbrk-tests (Files): Likewise.
31515         * modules/mbspcasecmp-tests (Files): Likewise.
31516         * modules/mbsrchr-tests (Files): Likewise.
31517         * modules/mbsrtowcs-tests (Files): Likewise.
31518         * modules/mbsspn-tests (Files): Likewise.
31519         * modules/mbsstr-tests (Files): Likewise.
31520         * modules/memchr-tests (Files): Likewise.
31521         * modules/memchr2-tests (Files): Likewise.
31522         * modules/memcmp-tests (Files): Likewise.
31523         * modules/memmem-tests (Files): Likewise.
31524         * modules/memrchr-tests (Files): Likewise.
31525         * modules/mkdir-tests (Files): Likewise.
31526         * modules/mkfifo-tests (Files): Likewise.
31527         * modules/mkfifoat-tests (Files): Likewise.
31528         * modules/mknod-tests (Files): Likewise.
31529         * modules/nanosleep-tests (Files): Likewise.
31530         * modules/nl_langinfo-tests (Files): Likewise.
31531         * modules/obstack-printf-tests (Files): Likewise.
31532         * modules/open-tests (Files): Likewise.
31533         * modules/openat-tests (Files): Likewise.
31534         * modules/pipe-filter-gi-tests (Files): Likewise.
31535         * modules/pipe-filter-ii-tests (Files): Likewise.
31536         * modules/pipe2-tests (Files): Likewise.
31537         * modules/popen-safer-tests (Files): Likewise.
31538         * modules/popen-tests (Files): Likewise.
31539         * modules/posixtm-tests (Files): Likewise.
31540         * modules/pread-tests (Files): Likewise.
31541         * modules/printf-frexp-tests (Files): Likewise.
31542         * modules/printf-frexpl-tests (Files): Likewise.
31543         * modules/printf-posix-tests (Files): Likewise.
31544         * modules/priv-set-tests (Files): Likewise.
31545         * modules/quotearg-tests (Files): Likewise.
31546         * modules/random_r-tests (Files): Likewise.
31547         * modules/rawmemchr-tests (Files): Likewise.
31548         * modules/rbtree-list-tests (Files): Likewise.
31549         * modules/rbtree-oset-tests (Files): Likewise.
31550         * modules/rbtreehash-list-tests (Files): Likewise.
31551         * modules/readlink-tests (Files): Likewise.
31552         * modules/remove-tests (Files): Likewise.
31553         * modules/rename-tests (Files): Likewise.
31554         * modules/renameat-tests (Files): Likewise.
31555         * modules/rmdir-tests (Files): Likewise.
31556         * modules/round-tests (Files): Likewise.
31557         * modules/roundf-tests (Files): Likewise.
31558         * modules/roundl-tests (Files): Likewise.
31559         * modules/safe-alloc-tests (Files): Likewise.
31560         * modules/setenv-tests (Files): Likewise.
31561         * modules/sigaction-tests (Files): Likewise.
31562         * modules/signbit-tests (Files): Likewise.
31563         * modules/sleep-tests (Files): Likewise.
31564         * modules/snprintf-posix-tests (Files): Likewise.
31565         * modules/snprintf-tests (Files): Likewise.
31566         * modules/sprintf-posix-tests (Files): Likewise.
31567         * modules/stat-tests (Files): Likewise.
31568         * modules/stat-time-tests (Files): Likewise.
31569         * modules/strcasestr-tests (Files): Likewise.
31570         * modules/strchrnul-tests (Files): Likewise.
31571         * modules/strerror-tests (Files): Likewise.
31572         * modules/striconv-tests (Files): Likewise.
31573         * modules/striconveh-tests (Files): Likewise.
31574         * modules/striconveha-tests (Files): Likewise.
31575         * modules/strsignal-tests (Files): Likewise.
31576         * modules/strstr-tests (Files): Likewise.
31577         * modules/strtod-tests (Files): Likewise.
31578         * modules/strverscmp-tests (Files): Likewise.
31579         * modules/symlink-tests (Files): Likewise.
31580         * modules/symlinkat-tests (Files): Likewise.
31581         * modules/trunc-tests (Files): Likewise.
31582         * modules/truncf-tests (Files): Likewise.
31583         * modules/truncl-tests (Files): Likewise.
31584         * modules/uname-tests (Files): Likewise.
31585         * modules/unicase/cased-tests (Files): Likewise.
31586         * modules/unicase/ignorable-tests (Files): Likewise.
31587         * modules/unicase/locale-language-tests (Files): Likewise.
31588         * modules/unicase/tolower-tests (Files): Likewise.
31589         * modules/unicase/totitle-tests (Files): Likewise.
31590         * modules/unicase/toupper-tests (Files): Likewise.
31591         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31592         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31593         * modules/unicase/u8-casefold-tests (Files): Likewise.
31594         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31595         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31596         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31597         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31598         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31599         * modules/unicase/u8-tolower-tests (Files): Likewise.
31600         * modules/unicase/u8-totitle-tests (Files): Likewise.
31601         * modules/unicase/u8-toupper-tests (Files): Likewise.
31602         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31603         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31604         * modules/unicase/u16-casefold-tests (Files): Likewise.
31605         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31606         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31607         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31608         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31609         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31610         * modules/unicase/u16-tolower-tests (Files): Likewise.
31611         * modules/unicase/u16-totitle-tests (Files): Likewise.
31612         * modules/unicase/u16-toupper-tests (Files): Likewise.
31613         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31614         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31615         * modules/unicase/u32-casefold-tests (Files): Likewise.
31616         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31617         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31618         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31619         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31620         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31621         * modules/unicase/u32-tolower-tests (Files): Likewise.
31622         * modules/unicase/u32-totitle-tests (Files): Likewise.
31623         * modules/unicase/u32-toupper-tests (Files): Likewise.
31624         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31625         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31626         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31627         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31628         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31629         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31630         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31631         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31632         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31633         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31634         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31635         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31636         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31637         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31638         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31639         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31640         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31641         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31642         * modules/unictype/block-list-tests (Files): Likewise.
31643         * modules/unictype/block-of-tests (Files): Likewise.
31644         * modules/unictype/block-test-tests (Files): Likewise.
31645         * modules/unictype/category-C-tests (Files): Likewise.
31646         * modules/unictype/category-Cc-tests (Files): Likewise.
31647         * modules/unictype/category-Cf-tests (Files): Likewise.
31648         * modules/unictype/category-Cn-tests (Files): Likewise.
31649         * modules/unictype/category-Co-tests (Files): Likewise.
31650         * modules/unictype/category-Cs-tests (Files): Likewise.
31651         * modules/unictype/category-L-tests (Files): Likewise.
31652         * modules/unictype/category-Ll-tests (Files): Likewise.
31653         * modules/unictype/category-Lm-tests (Files): Likewise.
31654         * modules/unictype/category-Lo-tests (Files): Likewise.
31655         * modules/unictype/category-Lt-tests (Files): Likewise.
31656         * modules/unictype/category-Lu-tests (Files): Likewise.
31657         * modules/unictype/category-M-tests (Files): Likewise.
31658         * modules/unictype/category-Mc-tests (Files): Likewise.
31659         * modules/unictype/category-Me-tests (Files): Likewise.
31660         * modules/unictype/category-Mn-tests (Files): Likewise.
31661         * modules/unictype/category-N-tests (Files): Likewise.
31662         * modules/unictype/category-Nd-tests (Files): Likewise.
31663         * modules/unictype/category-Nl-tests (Files): Likewise.
31664         * modules/unictype/category-No-tests (Files): Likewise.
31665         * modules/unictype/category-P-tests (Files): Likewise.
31666         * modules/unictype/category-Pc-tests (Files): Likewise.
31667         * modules/unictype/category-Pd-tests (Files): Likewise.
31668         * modules/unictype/category-Pe-tests (Files): Likewise.
31669         * modules/unictype/category-Pf-tests (Files): Likewise.
31670         * modules/unictype/category-Pi-tests (Files): Likewise.
31671         * modules/unictype/category-Po-tests (Files): Likewise.
31672         * modules/unictype/category-Ps-tests (Files): Likewise.
31673         * modules/unictype/category-S-tests (Files): Likewise.
31674         * modules/unictype/category-Sc-tests (Files): Likewise.
31675         * modules/unictype/category-Sk-tests (Files): Likewise.
31676         * modules/unictype/category-Sm-tests (Files): Likewise.
31677         * modules/unictype/category-So-tests (Files): Likewise.
31678         * modules/unictype/category-Z-tests (Files): Likewise.
31679         * modules/unictype/category-Zl-tests (Files): Likewise.
31680         * modules/unictype/category-Zp-tests (Files): Likewise.
31681         * modules/unictype/category-Zs-tests (Files): Likewise.
31682         * modules/unictype/category-and-not-tests (Files): Likewise.
31683         * modules/unictype/category-and-tests (Files): Likewise.
31684         * modules/unictype/category-byname-tests (Files): Likewise.
31685         * modules/unictype/category-name-tests (Files): Likewise.
31686         * modules/unictype/category-none-tests (Files): Likewise.
31687         * modules/unictype/category-of-tests (Files): Likewise.
31688         * modules/unictype/category-or-tests (Files): Likewise.
31689         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31690         * modules/unictype/combining-class-tests (Files): Likewise.
31691         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31692         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31693         * modules/unictype/ctype-blank-tests (Files): Likewise.
31694         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31695         * modules/unictype/ctype-digit-tests (Files): Likewise.
31696         * modules/unictype/ctype-graph-tests (Files): Likewise.
31697         * modules/unictype/ctype-lower-tests (Files): Likewise.
31698         * modules/unictype/ctype-print-tests (Files): Likewise.
31699         * modules/unictype/ctype-punct-tests (Files): Likewise.
31700         * modules/unictype/ctype-space-tests (Files): Likewise.
31701         * modules/unictype/ctype-upper-tests (Files): Likewise.
31702         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31703         * modules/unictype/decimal-digit-tests (Files): Likewise.
31704         * modules/unictype/digit-tests (Files): Likewise.
31705         * modules/unictype/mirror-tests (Files): Likewise.
31706         * modules/unictype/numeric-tests (Files): Likewise.
31707         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31708         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31709         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31710         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31711         Likewise.
31712         * modules/unictype/property-bidi-block-separator-tests (Files):
31713         Likewise.
31714         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31715         Likewise.
31716         * modules/unictype/property-bidi-common-separator-tests (Files):
31717         Likewise.
31718         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31719         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31720         Likewise.
31721         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31722         Likewise.
31723         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31724         Likewise.
31725         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31726         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31727         Likewise.
31728         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31729         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31730         Likewise.
31731         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31732         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31733         * modules/unictype/property-bidi-segment-separator-tests (Files):
31734         Likewise.
31735         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31736         * modules/unictype/property-byname-tests (Files): Likewise.
31737         * modules/unictype/property-combining-tests (Files): Likewise.
31738         * modules/unictype/property-composite-tests (Files): Likewise.
31739         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31740         * modules/unictype/property-dash-tests (Files): Likewise.
31741         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31742         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31743         Likewise.
31744         * modules/unictype/property-deprecated-tests (Files): Likewise.
31745         * modules/unictype/property-diacritic-tests (Files): Likewise.
31746         * modules/unictype/property-extender-tests (Files): Likewise.
31747         * modules/unictype/property-format-control-tests (Files): Likewise.
31748         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31749         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31750         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31751         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31752         * modules/unictype/property-hyphen-tests (Files): Likewise.
31753         * modules/unictype/property-id-continue-tests (Files): Likewise.
31754         * modules/unictype/property-id-start-tests (Files): Likewise.
31755         * modules/unictype/property-ideographic-tests (Files): Likewise.
31756         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31757         * modules/unictype/property-ids-trinary-operator-tests (Files):
31758         Likewise.
31759         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31760         * modules/unictype/property-iso-control-tests (Files): Likewise.
31761         * modules/unictype/property-join-control-tests (Files): Likewise.
31762         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31763         * modules/unictype/property-line-separator-tests (Files): Likewise.
31764         * modules/unictype/property-logical-order-exception-tests (Files):
31765         Likewise.
31766         * modules/unictype/property-lowercase-tests (Files): Likewise.
31767         * modules/unictype/property-math-tests (Files): Likewise.
31768         * modules/unictype/property-non-break-tests (Files): Likewise.
31769         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31770         * modules/unictype/property-numeric-tests (Files): Likewise.
31771         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31772         * modules/unictype/property-other-default-ignorable-code-point-tests
31773         (Files): Likewise.
31774         * modules/unictype/property-other-grapheme-extend-tests (Files):
31775         Likewise.
31776         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31777         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31778         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31779         * modules/unictype/property-other-math-tests (Files): Likewise.
31780         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31781         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31782         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31783         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31784         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31785         * modules/unictype/property-private-use-tests (Files): Likewise.
31786         * modules/unictype/property-punctuation-tests (Files): Likewise.
31787         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31788         * modules/unictype/property-radical-tests (Files): Likewise.
31789         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31790         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31791         * modules/unictype/property-space-tests (Files): Likewise.
31792         * modules/unictype/property-terminal-punctuation-tests (Files):
31793         Likewise.
31794         * modules/unictype/property-test-tests (Files): Likewise.
31795         * modules/unictype/property-titlecase-tests (Files): Likewise.
31796         * modules/unictype/property-unassigned-code-value-tests (Files):
31797         Likewise.
31798         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31799         * modules/unictype/property-uppercase-tests (Files): Likewise.
31800         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31801         * modules/unictype/property-white-space-tests (Files): Likewise.
31802         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31803         * modules/unictype/property-xid-start-tests (Files): Likewise.
31804         * modules/unictype/property-zero-width-tests (Files): Likewise.
31805         * modules/unictype/scripts-tests (Files): Likewise.
31806         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31807         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31808         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31809         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31810         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31811         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31812         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31813         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31814         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31815         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31816         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31817         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31818         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31819         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31820         * modules/uninorm/composition-tests (Files): Likewise.
31821         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31822         * modules/uninorm/decomposition-tests (Files): Likewise.
31823         * modules/uninorm/filter-tests (Files): Likewise.
31824         * modules/uninorm/nfc-tests (Files): Likewise.
31825         * modules/uninorm/nfd-tests (Files): Likewise.
31826         * modules/uninorm/nfkc-tests (Files): Likewise.
31827         * modules/uninorm/nfkd-tests (Files): Likewise.
31828         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31829         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31830         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31831         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31832         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31833         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31834         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31835         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31836         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31837         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31838         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31839         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31840         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31841         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31842         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31843         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31844         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31845         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31846         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31847         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31848         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31849         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31850         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31851         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31852         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31853         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31854         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31855         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31856         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31857         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31858         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31859         * modules/uniwidth/u8-width-tests (Files): Likewise.
31860         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31861         * modules/uniwidth/u16-width-tests (Files): Likewise.
31862         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31863         * modules/uniwidth/u32-width-tests (Files): Likewise.
31864         * modules/uniwidth/width-tests (Files): Likewise.
31865         * modules/unlink-tests (Files): Likewise.
31866         * modules/unsetenv-tests (Files): Likewise.
31867         * modules/usleep-tests (Files): Likewise.
31868         * modules/utimens-tests (Files): Likewise.
31869         * modules/utimensat-tests (Files): Likewise.
31870         * modules/vasnprintf-posix-tests (Files): Likewise.
31871         * modules/vasnprintf-tests (Files): Likewise.
31872         * modules/vasprintf-posix-tests (Files): Likewise.
31873         * modules/vasprintf-tests (Files): Likewise.
31874         * modules/vdprintf-posix-tests (Files): Likewise.
31875         * modules/vfprintf-posix-tests (Files): Likewise.
31876         * modules/vprintf-posix-tests (Files): Likewise.
31877         * modules/vsnprintf-posix-tests (Files): Likewise.
31878         * modules/vsnprintf-tests (Files): Likewise.
31879         * modules/vsprintf-posix-tests (Files): Likewise.
31880         * modules/wcrtomb-tests (Files): Likewise.
31881         * modules/wcsnrtombs-tests (Files): Likewise.
31882         * modules/wcsrtombs-tests (Files): Likewise.
31883         * modules/wctype-tests (Files): Likewise.
31884         * modules/wcwidth-tests (Files): Likewise.
31885         * modules/xmemdup0-tests (Files): Likewise.
31886         * modules/xprintf-posix-tests (Files): Likewise.
31887         * modules/xvasprintf-tests (Files): Likewise.
31888
31889 2009-12-24  Eric Blake  <ebb9@byu.net>
31890
31891         test-nanosleep: fix typo
31892         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31893         patch.
31894         Reported by Bruno Haible.
31895
31896 2009-12-24  Bruno Haible  <bruno@clisp.org>
31897
31898         Reduce namespace pollution on glibc systems.
31899         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31900         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31901         systems.
31902         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31903         <getopt.h> on glibc systems.
31904         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31905         systems.
31906         * lib/fcntl.c: Include <unistd.h> here instead.
31907
31908 2009-12-24  Bruno Haible  <bruno@clisp.org>
31909
31910         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31911
31912 2009-12-24  Eric Blake  <ebb9@byu.net>
31913
31914         tests: add signature checks
31915         * tests/signature.h (SIGNATURE_CHECK): New file.
31916         * modules/atexit-tests (Files): Use it.
31917         * modules/btowc-tests (Files): Likewise.
31918         * modules/canonicalize-lgpl-tests (Files): Likewise.
31919         * modules/ceilf-tests (Files): Likewise.
31920         * modules/ceill-tests (Files): Likewise.
31921         * modules/chown-tests (Files): Likewise.
31922         * modules/dprintf-posix-tests (Files): Likewise.
31923         * modules/dup2-tests (Files): Likewise.
31924         * modules/dup3-tests (Files): Likewise.
31925         * modules/duplocale-tests (Files): Likewise.
31926         * modules/fchdir-tests (Files): Likewise.
31927         * modules/fcntl-tests (Files): Likewise.
31928         * modules/fdopendir-tests (Files): Likewise.
31929         * modules/fflush-tests (Files): Likewise.
31930         * modules/flock-tests (Files): Likewise.
31931         * modules/floorf-tests (Files): Likewise.
31932         * modules/floorl-tests (Files): Likewise.
31933         * modules/fnmatch-tests (Files): Likewise.
31934         * modules/fopen-tests (Files): Likewise.
31935         * modules/fprintf-posix-tests (Files): Likewise.
31936         * modules/freopen-tests (Files): Likewise.
31937         * modules/frexp-nolibm-tests (Files): Likewise.
31938         * modules/frexp-tests (Files): Likewise.
31939         * modules/frexpl-nolibm-tests (Files): Likewise.
31940         * modules/frexpl-tests (Files): Likewise.
31941         * modules/fseek-tests (Files): Likewise.
31942         * modules/fseeko-tests (Files): Likewise.
31943         * modules/fsync-tests (Files): Likewise.
31944         * modules/ftell-tests (Files): Likewise.
31945         * modules/ftello-tests (Files): Likewise.
31946         * modules/futimens-tests (Files): Likewise.
31947         * modules/getaddrinfo-tests (Files): Likewise.
31948         * modules/getcwd-tests (Files): Likewise.
31949         * modules/getdelim-tests (Files): Likewise.
31950         * modules/getdtablesize-tests (Files): Likewise.
31951         * modules/getgroups-tests (Files): Likewise.
31952         * modules/gethostname-tests (Files): Likewise.
31953         * modules/getline-tests (Files): Likewise.
31954         * modules/getopt-posix-tests (Files): Likewise.
31955         * modules/gettimeofday-tests (Files): Likewise.
31956         * modules/glob-tests (Files): Likewise.
31957         * modules/iconv-tests (Files): Likewise.
31958         * modules/inet_ntop-tests (Files): Likewise.
31959         * modules/inet_pton-tests (Files): Likewise.
31960         * modules/isblank-tests (Files): Likewise.
31961         * modules/lchown-tests (Files): Likewise.
31962         * modules/ldexpl-tests (Files): Likewise.
31963         * modules/link-tests (Files): Likewise.
31964         * modules/linkat-tests (Files): Likewise.
31965         * modules/lseek-tests (Files): Likewise.
31966         * modules/lstat-tests (Files): Likewise.
31967         * modules/mbrtowc-tests (Files): Likewise.
31968         * modules/mbsinit-tests (Files): Likewise.
31969         * modules/mbsnrtowcs-tests (Files): Likewise.
31970         * modules/mbsrtowcs-tests (Files): Likewise.
31971         * modules/memchr-tests (Files): Likewise.
31972         * modules/memcmp-tests (Files): Likewise.
31973         * modules/memmem-tests (Files): Likewise.
31974         * modules/memrchr-tests (Files): Likewise.
31975         * modules/mkdir-tests (Files): Likewise.
31976         * modules/mkfifo-tests (Files): Likewise.
31977         * modules/mkfifoat-tests (Files): Likewise.
31978         * modules/mknod-tests (Files): Likewise.
31979         * modules/nanosleep-tests (Files): Likewise.
31980         * modules/nl_langinfo-tests (Files): Likewise.
31981         * modules/obstack-printf-tests (Files): Likewise.
31982         * modules/open-tests (Files): Likewise.
31983         * modules/openat-tests (Files): Likewise.
31984         * modules/perror-tests (Files): Likewise.
31985         * modules/pipe2-tests (Files): Likewise.
31986         * modules/poll-tests (Files): Likewise.
31987         * modules/popen-tests (Files): Likewise.
31988         * modules/posix_spawn-tests (Files): Likewise.
31989         * modules/posix_spawnp-tests (Files): Likewise.
31990         * modules/pread-tests (Files): Likewise.
31991         * modules/printf-posix-tests (Files): Likewise.
31992         * modules/pty-tests (Files): Likewise.
31993         * modules/random_r-tests (Files): Likewise.
31994         * modules/rawmemchr-tests (Files): Likewise.
31995         * modules/readlink-tests (Files): Likewise.
31996         * modules/remove-tests (Files): Likewise.
31997         * modules/rename-tests (Files): Likewise.
31998         * modules/renameat-tests (Files): Likewise.
31999         * modules/rmdir-tests (Files): Likewise.
32000         * modules/round-tests (Files): Likewise.
32001         * modules/roundf-tests (Files): Likewise.
32002         * modules/roundl-tests (Files): Likewise.
32003         * modules/select-tests (Files): Likewise.
32004         * modules/setenv-tests (Files): Likewise.
32005         * modules/sigaction-tests (Files): Likewise.
32006         * modules/sleep-tests (Files): Likewise.
32007         * modules/snprintf-posix-tests (Files): Likewise.
32008         * modules/snprintf-tests (Files): Likewise.
32009         * modules/sprintf-posix-tests (Files): Likewise.
32010         * modules/stat-tests (Files): Likewise.
32011         * modules/strcasestr-tests (Files): Likewise.
32012         * modules/strchrnul-tests (Files): Likewise.
32013         * modules/strerror-tests (Files): Likewise.
32014         * modules/strsignal-tests (Files): Likewise.
32015         * modules/strstr-tests (Files): Likewise.
32016         * modules/strtod-tests (Files): Likewise.
32017         * modules/strverscmp-tests (Files): Likewise.
32018         * modules/symlink-tests (Files): Likewise.
32019         * modules/symlinkat-tests (Files): Likewise.
32020         * modules/times-tests (Files): Likewise.
32021         * modules/trunc-tests (Files): Likewise.
32022         * modules/truncf-tests (Files): Likewise.
32023         * modules/truncl-tests (Files): Likewise.
32024         * modules/tsearch-tests (Files): Likewise.
32025         * modules/uname-tests (Files): Likewise.
32026         * modules/unlink-tests (Files): Likewise.
32027         * modules/unsetenv-tests (Files): Likewise.
32028         * modules/usleep-tests (Files): Likewise.
32029         * modules/utimensat-tests (Files): Likewise.
32030         * modules/vasprintf-tests (Files): Likewise.
32031         * modules/vdprintf-posix-tests (Files): Likewise.
32032         * modules/vfprintf-posix-tests (Files): Likewise.
32033         * modules/vprintf-posix-tests (Files): Likewise.
32034         * modules/vsnprintf-posix-tests (Files): Likewise.
32035         * modules/vsnprintf-tests (Files): Likewise.
32036         * modules/vsprintf-posix-tests (Files): Likewise.
32037         * modules/wcrtomb-tests (Files): Likewise.
32038         * modules/wcsnrtombs-tests (Files): Likewise.
32039         * modules/wcsrtombs-tests (Files): Likewise.
32040         * modules/wcwidth-tests (Files): Likewise.
32041         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32042         * tests/test-isinf.c (isinf): Likewise.
32043         * tests/test-isnan.c (isnan): Likewise.
32044         * tests/test-signbit.c (signbit): Likewise.
32045         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32046         declaration, either as macro or with correct signature.
32047         (select): Ensure function under test is declared with correct
32048         signature in correct header.
32049         * tests/test-atexit.c (atexit): Likewise.
32050         * tests/test-btowc.c (btowc): Likewise.
32051         * tests/test-canonicalize-lgpl.c (realpath)
32052         (canonicalize_file_name): Likewise.
32053         * tests/test-ceilf1.c (ceilf): Likewise.
32054         * tests/test-ceill.c (ceill): Likewise.
32055         * tests/test-chown.c (chown): Likewise.
32056         * tests/test-dprintf-posix.c (dprintf): Likewise.
32057         * tests/test-dup2.c (dup2): Likewise.
32058         * tests/test-dup3.c (dup3): Likewise.
32059         * tests/test-duplocale.c (duplocale): Likewise.
32060         * tests/test-fchdir.c (fchdir): Likewise.
32061         * tests/test-fchownat.c (fchownat): Likewise.
32062         * tests/test-fcntl.c (fcntl): Likewise.
32063         * tests/test-fdopendir.c (fdopendir): Likewise.
32064         * tests/test-fflush.c (fflush): Likewise.
32065         * tests/test-flock.c (flock): Likewise.
32066         * tests/test-floorf1.c (floorf): Likewise.
32067         * tests/test-floorl.c (floorl): Likewise.
32068         * tests/test-fnmatch.c (fnmatch): Likewise.
32069         * tests/test-fopen.c (fopen): Likewise.
32070         * tests/test-fprintf-posix.c (fprintf): Likewise.
32071         * tests/test-freopen.c (freopen): Likewise.
32072         * tests/test-frexp.c (frexp): Likewise.
32073         * tests/test-frexpl.c (frexpl): Likewise.
32074         * tests/test-fseek.c (fseek): Likewise.
32075         * tests/test-fseeko.c (fseeko): Likewise.
32076         * tests/test-fstatat.c (fstatat): Likewise.
32077         * tests/test-fsync.c (fsync): Likewise.
32078         * tests/test-ftell.c (ftell): Likewise.
32079         * tests/test-ftello.c (ftello): Likewise.
32080         * tests/test-futimens.c (futimens): Likewise.
32081         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32082         (gai_strerror): Likewise.
32083         * tests/test-getcwd.c (getcwd): Likewise.
32084         * tests/test-getdelim.c (getdelim): Likewise.
32085         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32086         * tests/test-getgroups.c (getgroups): Likewise.
32087         * tests/test-gethostname.c (gethostname): Likewise.
32088         * tests/test-getline.c (getline): Likewise.
32089         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32090         Likewise.
32091         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32092         * tests/test-glob.c (glob, globfree): Likewise.
32093         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32094         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32095         * tests/test-inet_pton.c (inet_pton): Likewise.
32096         * tests/test-isblank.c (isblank): Likewise.
32097         * tests/test-lchown.c (lchown): Likewise.
32098         * tests/test-ldexpl.c (ldexpl): Likewise.
32099         * tests/test-link.c (link): Likewise.
32100         * tests/test-linkat.c (linkat): Likewise.
32101         * tests/test-lseek.c (lseek): Likewise.
32102         * tests/test-lstat.c (lstat): Likewise.
32103         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32104         * tests/test-mbsinit.c (mbsinit): Likewise.
32105         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32106         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32107         * tests/test-memchr.c (memchr): Likewise.
32108         * tests/test-memcmp.c (memcmp): Likewise.
32109         * tests/test-memmem.c (memmem): Likewise.
32110         * tests/test-memrchr.c (memrchr): Likewise.
32111         * tests/test-mkdir.c (mkdir): Likewise.
32112         * tests/test-mkdirat.c (mkdirat): Likewise.
32113         * tests/test-mkfifo.c (mkfifo): Likewise.
32114         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32115         * tests/test-mknod.c (mknod): Likewise.
32116         * tests/test-nanosleep.c (nanosleep): Likewise.
32117         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32118         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32119         Likewise.
32120         * tests/test-open.c (open): Likewise.
32121         * tests/test-openat.c (openat): Likewise.
32122         * tests/test-perror.c (perror): Likewise.
32123         * tests/test-pipe2.c (pipe2): Likewise.
32124         * tests/test-poll.c (poll): Likewise.
32125         * tests/test-popen.c (popen, pclose): Likewise.
32126         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32127         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32128         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32129         (posix_spawn_file_actions_destroy)
32130         (posix_spawn_file_actions_addclose)
32131         (posix_spawn_file_actions_addopen)
32132         (posix_spawn_file_actions_adddup2): Likewise.
32133         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32134         * tests/test-pread.c (pread): Likewise.
32135         * tests/test-printf-posix.c (printf): Likewise.
32136         * tests/test-pty.c (openpty, forkpty): Likewise.
32137         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32138         (random_r): Likewise.
32139         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32140         * tests/test-readlink.c (readlink): Likewise.
32141         * tests/test-remove.c (remove): Likewise.
32142         * tests/test-rename.c (rename): Likewise.
32143         * tests/test-renameat.c (renameat): Likewise.
32144         * tests/test-rmdir.c (rmdir): Likewise.
32145         * tests/test-round1.c (round): Likewise.
32146         * tests/test-roundf1.c (roundf): Likewise.
32147         * tests/test-roundl.c (roundl): Likewise.
32148         * tests/test-setenv.c (setenv): Likewise.
32149         * tests/test-sigaction.c (sigaction): Likewise.
32150         * tests/test-sleep.c (sleep): Likewise.
32151         * tests/test-snprintf.c (snprintf): Likewise.
32152         * tests/test-sprintf-posix.c (sprintf): Likewise.
32153         * tests/test-stat.c (stat): Likewise.
32154         * tests/test-stpncpy.c (stpncpy): Likewise.
32155         * tests/test-strcasestr.c (strcasestr): Likewise.
32156         * tests/test-strchrnul.c (strchrnul): Likewise.
32157         * tests/test-strerror.c (strerror): Likewise.
32158         * tests/test-strsignal.c (strsignal): Likewise.
32159         * tests/test-strstr.c (strstr): Likewise.
32160         * tests/test-strtod.c (strtod): Likewise.
32161         * tests/test-strverscmp.c (strverscmp): Likewise.
32162         * tests/test-symlink.c (symlink): Likewise.
32163         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32164         * tests/test-times.c (times): Likewise.
32165         * tests/test-trunc1.c (trunc): Likewise.
32166         * tests/test-truncf1.c (truncf): Likewise.
32167         * tests/test-truncl.c (truncl): Likewise.
32168         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32169         Likewise.
32170         * tests/test-uname.c (uname): Likewise.
32171         * tests/test-unlink.c (unlink): Likewise.
32172         * tests/test-unlinkat.c (unlinkat): Likewise.
32173         * tests/test-unsetenv.c (unsetenv): Likewise.
32174         * tests/test-usleep.c (usleep): Likewise.
32175         * tests/test-utimensat.c (utimensat): Likewise.
32176         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32177         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32178         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32179         * tests/test-vprintf-posix.c (vprintf): Likewise.
32180         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32181         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32182         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32183         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32184         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32185         * tests/test-wcwidth.c (wcwidth): Likewise.
32186
32187         build: pull in conditional headers during GNULIB_POSIXCHECK
32188         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32189         definitions from any conditionally-included headers.
32190         * lib/stdlib.in.h (includes): Likewise.
32191         * lib/unistd.in.h (includes): Likewise.
32192
32193 2009-12-24  Bruno Haible  <bruno@clisp.org>
32194
32195         * tests/test-argv-iter.c: Include header file being tested immediately
32196         after config.h.
32197         * tests/test-base64.c: Likewise.
32198         * tests/test-flock.c: Likewise.
32199         * tests/test-fsync.c: Likewise.
32200         * tests/test-getdate.c: Likewise.
32201         * tests/test-getndelim2.c: Likewise.
32202         * tests/test-isfinite.c: Likewise.
32203         * tests/test-isinf.c: Likewise.
32204         * tests/test-strerror.c: Likewise.
32205         * tests/test-strsignal.c: Likewise.
32206
32207 2009-12-23  Eric Blake  <ebb9@byu.net>
32208
32209         unistd: work around cygwin bug
32210         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32211         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32212         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32213
32214 2009-12-23  Bruno Haible  <bruno@clisp.org>
32215
32216         localename: More tests.
32217         * tests/test-localename.c (SIZEOF): New macro.
32218         (categories): New variable.
32219         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32220         test_locale_name_default): Add test w.r.t. thread locale.
32221         (test_locale_name_thread): New function.
32222         (main): Invoke it.
32223
32224         localename: Make aware of thread locale.
32225         * lib/localename.h (gl_locale_name_thread): New declaration.
32226         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32227         behaviour with respect to thread locale.
32228         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32229         <langinfo.h>, glthread/lock.h.
32230         (SIZE_BITS): New macro.
32231         (string_hash): New function.
32232         (struct hash_node): New type.
32233         (HASH_TABLE_SIZE): New macro.
32234         (struniq_hash_table, struniq_lock): New variables.
32235         (struniq): New function.
32236         (gl_locale_name_thread): New function.
32237         (gl_locale_name): Invoke it.
32238         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32239         * modules/localename (Depends-on): Add lock.
32240         Reported by Mike Gran <spk121@yahoo.com>.
32241
32242 2009-12-23  Eric Blake  <ebb9@byu.net>
32243
32244         va-args: new module
32245         * modules/va-args: New file.
32246         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32247         * MODULES.html.sh (Core language properties): Mention it.
32248
32249         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32250         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32251         named alias for __attribute__((__unused__)).
32252         * lib/chown.c: Update client.
32253         * lib/fchmodat.c: Likewise.
32254         * lib/fts.c: Likewise.
32255         * lib/getdate.y: Likewise.
32256         * lib/getgroups.c: Likewise.
32257         * lib/getopt.c: Likewise.
32258         * lib/getugroups.c: Likewise.
32259         * lib/mkdir.c: Likewise.
32260         * lib/mkfifo.c: Likewise.
32261         * lib/mkfifoat.c: Likewise.
32262         * lib/mknod.c: Likewise.
32263         * lib/mknodat.c: Likewise.
32264         * lib/readlink.c: Likewise.
32265         * lib/se-context.in.h: Likewise.
32266         * lib/se-selinux.in.h: Likewise.
32267         * lib/sockets.c: Likewise.
32268         * lib/symlink.c: Likewise.
32269         * lib/symlinkat.c: Likewise.
32270         * lib/unicodeio.c: Likewise.
32271         * lib/unistr.h: Likewise.
32272         * tests/test-areadlink.c: Likewise.
32273         * tests/test-areadlinkat.c: Likewise.
32274         * tests/test-filenamecat.c: Likewise.
32275         * tests/test-fseeko.c: Likewise.
32276         * tests/test-ftello.c: Likewise.
32277         * tests/test-getdate.c: Likewise.
32278         * tests/test-getgroups.c: Likewise.
32279         * tests/test-gethostname.c: Likewise.
32280         * tests/test-quotearg.c: Likewise.
32281         * tests/test-version-etc.c: Likewise.
32282         * tests/test-xalloc-die.c: Likewise.
32283         * tests/test-xfprintf-posix.c: Likewise.
32284         * tests/test-xprintf-posix.c: Likewise.
32285         * tests/test-xvasprintf.c: Likewise.
32286
32287         tests: avoid compiler warnings
32288         * tests/test-fcntl.c (main): Delete unused parameters.
32289         * tests/test-freopen-safer.c (main): Likewise.
32290         * tests/test-xalloc-die.c (main): Mark unused parameters.
32291         * tests/test-fseeko.c (main): Likewise.
32292         * tests/test-ftello.c (main): Likewise.
32293         * tests/test-nanosleep.c (main): Avoid declaration warning.
32294         * tests/test-sleep.c (main): Likewise.
32295         * tests/test-unsetenv.c (main): Silence warning about string
32296         literal.
32297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32298
32299 2009-12-23  Bruno Haible  <bruno@clisp.org>
32300
32301         * tests/test-localename.c (test_locale_name): New function, extracted
32302         from main. Also test mixed situations.
32303         (test_locale_name_posix, test_locale_name_environ,
32304         test_locale_name_default): New functions.
32305         (main): Invoke them all.
32306         * modules/localename-tests (configure.ac): Test for newlocale.
32307
32308 2009-12-23  Bruno Haible  <bruno@clisp.org>
32309
32310         unistd: Ensure getcwd gets declared before being overridden.
32311         * lib/unistd.in.h: Conditionally include <io.h>.
32312
32313 2009-12-22  Bruno Haible  <bruno@clisp.org>
32314
32315         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32316         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32317         (gl_WCHAR_H): Invoke it.
32318         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32319         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32320         Reported by Karl Berry <karl@freefriends.org>.
32321
32322 2009-12-22  Eric Blake  <ebb9@byu.net>
32323
32324         math, unistd: avoid redundant includes
32325         * lib/math.in.h (isnan): No need to re-include <math.h>.
32326         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32327
32328         getsubopt: work around cygwin bug
32329         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32330         avoid conflicting with system getsubopt.
32331         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32332         bug.
32333
32334         getopt: synchronize from glibc
32335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32336         parameter order.  Adjust all callers.
32337         (_getopt_internal_r, main): Adjust quoting in error messages.
32338         Drop considerations for outdated POSIX 1003.2 error message.
32339         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32340         callers.
32341         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32342
32343         test-getopt: test stderr behavior
32344         * modules/getopt-posix-tests (Depends-on): Add dup2.
32345         * tests/test-getopt.c (ASSERT): Avoid stderr.
32346         (main): Move stderr to a temporary file.
32347         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32348         Instead, add parameter to inform caller if output occurred.
32349         (test_getopt): Adjust all existing tests to expect silence, and
32350         add new tests of leading ":".
32351         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32352         glibc shortcomings with leading "-:" or "+:" in optstring.
32353         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32354         Likewise.
32355         * doc/posix-functions/getopt.texi (getopt): Likewise.
32356
32357         test-getopt: enhance test
32358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32359         supports optind=0.
32360         * tests/test-getopt.c (OPTIND_MIN): Move...
32361         * tests/test-getopt.h (OPTIND_MIN): ...here.
32362         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32363         Require that optind=0 works, since modern BSD supports it in
32364         addition to optreset, and since coreutils expects it.
32365         (test_getopt_long_only): New test.
32366         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32367         glibc shortcomings with 'W;', and enforcement of optind=0.
32368         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32369         Likewise.
32370
32371 2009-12-21  Bruno Haible  <bruno@clisp.org>
32372
32373         localename: Improvements for MacOS X and Cygwin.
32374         * lib/localename.h (gl_locale_name_environ): New declaration.
32375         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32376         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32377         (gl_locale_name_posix): Invoke it.
32378         (gl_locale_name_default): Add comments. Use Windows native API also on
32379         Cygwin.
32380
32381 2009-12-21  Bruno Haible  <bruno@clisp.org>
32382
32383         Update list of Win32 locale ids.
32384         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32385         (LANG_SAMI): Renamed from LANG_SAAMI.
32386         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32387         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32388         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32389         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32390         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32391         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32392         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32393         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32394         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32395         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32396         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32397         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32398         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32399         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32400         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32401         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32402         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32403         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32404         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32405         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32406         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32407         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32408         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32409         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32410         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32411         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32412         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32413         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32414         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32415         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32416         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32417         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32418         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32419         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32420         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32421         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32422         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32423         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32424         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32425         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32426         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32427         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32428         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32429         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32430         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32431         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32432         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32433         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32434         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32435         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32436         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32437         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32438         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32439         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32440         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32441         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32442         Add more languages and countries for Sami, Sorbian. Add more countries
32443         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32444         for Pashto. Change country for Syriac, Tswana.
32445
32446 2009-12-21  Eric Blake  <ebb9@byu.net>
32447
32448         test-utimens: avoid spurious failure
32449         * tests/test-chown.h (nap): Factor...
32450         * tests/nap.h: ...into new file.
32451         * tests/test-lchown.h (nap): Avoid duplication.
32452         * tests/test-utimens-common.h (nap): Use shared implementation,
32453         necessary on file systems with 1-second resolution.
32454         * modules/chown-tests (Files): Include new file.
32455         * modules/fdutimensat-tests (Files): Likewise.
32456         * modules/futimens-tests (Files): Likewise.
32457         * modules/lchown-tests (Files): Likewise.
32458         * modules/openat-tests (Files): Likewise.
32459         * modules/utimens-tests (Files): Likewise.
32460         * modules/utimensat-tests (Files): Likewise.
32461
32462 2009-12-19  Eric Blake  <ebb9@byu.net>
32463
32464         futimens, utimensat: work around Linux bug
32465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32467         * lib/utimensat.c (rpl_utimensat): Work around it.
32468         * lib/futimens.c (rpl_futimens): Adjust comment.
32469
32470         utimens: work around Linux ctime bug
32471         * lib/utimens.c (detect_ctime_bug): New helper function.
32472         (update_timespec): Differentiate between workaround needed for
32473         this bug vs. what is needed for systems that lack utimensat.
32474         (fdutimens, lutimens): Work around bug.
32475
32476         utimens: check for ctime update
32477         * tests/test-utimens-common.h (check_ctime): Define.
32478         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32479         * tests/test-futimens.h (test_futimens): Likewise.
32480         * tests/test-lutimens.h (test_lutimens): Likewise.
32481         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32482         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32483
32484 2009-12-19  Bruno Haible  <bruno@clisp.org>
32485
32486         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32487         * tests/test-dprintf-posix2.sh: New file.
32488         * tests/test-dprintf-posix2.c: New file.
32489         * modules/dprintf-posix-tests (Files): Add them.
32490         (configure.ac): Check for getrlimit and setrlimit.
32491         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32492
32493 2009-12-19  Bruno Haible  <bruno@clisp.org>
32494
32495         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32496         * tests/test-fprintf-posix3.sh: New file.
32497         * tests/test-fprintf-posix3.c: New file.
32498         * modules/fprintf-posix-tests (Files): Add them.
32499         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32500
32501 2009-12-19  Eric Blake  <ebb9@byu.net>
32502
32503         dirfd: fix prototype
32504         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32505         * lib/dirfd.c (dirfd): Likewise.
32506
32507         canonicalize: reduce memory usage
32508         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32509         allocation to size.
32510         Reported by Solar Designer <solar@openwall.com>.
32511
32512 2009-12-19  Bruno Haible  <bruno@clisp.org>
32513
32514         New module attribute 'Applicability'.
32515         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32516         * gnulib-tool: New option --extract-applicability.
32517         (func_usage): Document it.
32518         (sed_extract_prog): Recognize it.
32519         (func_get_applicability): New function.
32520         (func_import): Generalize handling of 'link-warning' module.
32521         * modules/link-warning (Applicability): New section.
32522         * modules/arg-nonnull (Applicability): New section.
32523         Repoted by Simon Josefsson <simon@josefsson.org>.
32524
32525 2009-12-19  Bruno Haible  <bruno@clisp.org>
32526
32527         fflush: tweak
32528         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32529         * lib/fseeko.c (rpl_fseeko): Likewise.
32530
32531 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32532
32533         * lib/gl_list.h: Fix typo in comment.
32534
32535 2009-12-16  Eric Blake  <ebb9@byu.net>
32536
32537         fcntl: use to simplify other modules
32538         * modules/cloexec (Depends-on): Add fcntl.
32539         * modules/fchdir (Depends-on): Likewise.
32540         * modules/fd-safer-flag (Depends-on): Likewise.
32541         * modules/unistd-safer (Depends-on): Likewise.
32542         * modules/dup3 (configure.ac): Set module indicator.
32543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32544         missing.
32545         * lib/fchdir.c (_gl_register_dup): Fix comment.
32546         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32547         * lib/dup-safer.c (dup_safer): Likewise.
32548         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32549         * lib/dup3.c (dup3): Likewise.
32550         * tests/test-fchdir.c (main): Enhance test.
32551         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32552
32553         fcntl: port portions of fcntl to mingw
32554         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32555         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32556         replacement for mingw.
32557         * modules/fcntl (Description): Update.
32558         (Depends-on): Add dup2.
32559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32560         * modules/fcntl-h (Makefile.am): Substitute it.
32561         * lib/fcntl.in.h (fcntl): Update declaration.
32562         (F_DUPFD, F_GETFD): New macros, when needed.
32563         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32564         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32565         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32566         we now guarantee.
32567
32568         fcntl: work around cygwin bug in F_DUPFD
32569         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32570         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32571         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32572         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32573         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32574
32575         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32576         * modules/fcntl (Files): List new files.
32577         (configure.ac): Run a test.
32578         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32579         * lib/fcntl.c (rpl_fcntl): Likewise.
32580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32581         (gl_FCNTL_H): Always replace fcntl.h.
32582         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32583         * lib/fcntl.in.h (fcntl): Declare replacement.
32584         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32585         needed, plus a witness.
32586         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32587         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32588         * tests/test-fcntl.c: New file.
32589         * modules/fcntl-tests: Likewise.
32590
32591         binary-io: avoid potential compilation warning
32592         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32593         directives.
32594
32595         fflush: avoid compilation error on NetBSD
32596         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32597         between off_t and fpos_t, since the latter is sometimes a struct.
32598         * lib/fseeko.c (rpl_fseeko): Likewise.
32599         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32600
32601 2009-12-15  Eric Blake  <ebb9@byu.net>
32602
32603         fcntl-h, stdio, sys_ioctl: fix declarations
32604         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32605         function must not take arguments.
32606         * lib/sys_ioctl.in.h (ioctl): Likewise.
32607         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32608         (open): Add a link warning.
32609
32610 2009-12-15  Jim Meyering  <meyering@redhat.com>
32611
32612         areadlink, areadlink-with-size: relax license to LGPLv2+
32613         * modules/areadlink (License): Relax to LGPLv2+.
32614         * modules/areadlink-with-size (License): Likewise.
32615
32616 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32617             Bruno Haible  <bruno@clisp.org>
32618
32619         *printf: Fix memory leak.
32620         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32621         * lib/vfprintf.c (vfprintf): Likewise.
32622         * lib/dprintf.c (dprintf): Likewise.
32623         * lib/vdprintf.c (vdprintf): Likewise.
32624
32625 2009-12-14  Eric Blake  <ebb9@byu.net>
32626
32627         accept4: adjust module dependencies
32628         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32629
32630         utimens: one more try at avoiding compiler warning
32631         * lib/utimens.c (lutimens): Lower scope of result.
32632
32633 2009-12-13  Bruno Haible  <bruno@clisp.org>
32634
32635         Move the malloc checking from module 'list' to new module 'xlist'.
32636         * modules/xlist: New file.
32637         * lib/gl_xlist.h: New file.
32638         * lib/gl_xlist.c: New file.
32639         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32640         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32641         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32642         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32643         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32644         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32645         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32646         gl_sortedlist_nx_add): New declarations.
32647         (struct gl_list_implementation): Rename and change methods accordingly.
32648         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32649         (gl_list_nx_create): Renamed from gl_list_create.
32650         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32651         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32652         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32653         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32654         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32655         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32656         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32657         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32658         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32659         gl_list_create_empty.
32660         (gl_list_nx_create): Renamed from gl_list_create.
32661         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32662         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32663         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32664         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32665         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32666         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32667         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32668         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32669         * lib/gl_array_list.c: Don't include xalloc.h.
32670         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32671         NULL upon out-of-memory.
32672         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32673         out-of-memory.
32674         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32675         Change return type to 'int'.
32676         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32677         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32678         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32679         upon out-of-memory.
32680         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32681         upon out-of-memory.
32682         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32683         upon out-of-memory.
32684         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32685         upon out-of-memory.
32686         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32687         out-of-memory.
32688         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32689         Update.
32690         (gl_array_list_implementation): Update.
32691         * lib/gl_carray_list.c: Don't include xalloc.h.
32692         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32693         Return NULL upon out-of-memory.
32694         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32695         out-of-memory.
32696         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32697         Change return type to 'int'.
32698         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32699         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32700         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32701         upon out-of-memory.
32702         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32703         upon out-of-memory.
32704         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32705         out-of-memory.
32706         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32707         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32708         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32709         Update.
32710         (gl_carray_list_implementation): Update.
32711         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32712         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32713         gl_linked_create_empty. Return NULL upon out-of-memory.
32714         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32715         out-of-memory.
32716         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32717         Change return type to 'int'. Return -1 upon out-of-memory.
32718         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32719         out-of-memory.
32720         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32721         upon out-of-memory.
32722         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32723         upon out-of-memory.
32724         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32725         NULL upon out-of-memory.
32726         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32727         upon out-of-memory.
32728         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32729         out-of-memory.
32730         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32731         Update.
32732         * lib/gl_linked_list.c: Don't include xalloc.h.
32733         (gl_linked_list_implementation): Update.
32734         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32735         (add_to_bucket): Change return type to 'int'.
32736         (gl_linkedhash_list_implementation): Update.
32737         * lib/gl_anytree_list1.h (free_subtree): New function.
32738         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32739         gl_tree_create_empty. Return NULL upon out-of-memory.
32740         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32741         Change return type to 'int'. Return -1 upon out-of-memory.
32742         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32743         out-of-memory.
32744         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32745         (gl_tree_remove_node): New function, moved here from
32746         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32747         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32748         Update.
32749         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32750         malloc, not xmalloc. Return NULL upon out-of-memory.
32751         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32752         out-of-memory.
32753         (gl_tree_remove_node_from_tree): New function, extracted from
32754         gl_tree_remove_node.
32755         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32756         upon out-of-memory.
32757         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32758         out-of-memory.
32759         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32760         upon out-of-memory.
32761         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32762         upon out-of-memory.
32763         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32764         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32765         not xmalloc. Return NULL upon out-of-memory.
32766         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32767         out-of-memory.
32768         (gl_tree_remove_node_from_tree): New function, extracted from
32769         gl_tree_remove_node.
32770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32771         upon out-of-memory.
32772         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32773         out-of-memory.
32774         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32775         upon out-of-memory.
32776         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32777         upon out-of-memory.
32778         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32779         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32780         gl_anytree_list1.h before gl_anyavltree_list2.h.
32781         (gl_avltree_list_implementation): Update.
32782         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32783         gl_anytree_list1.h before gl_anyavltree_list2.h.
32784         (gl_rbtree_list_implementation): Update.
32785         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32786         Change return type to 'int'. Return -1 upon out-of-memory. Use
32787         __builtin_expect.
32788         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32789         (gl_avltreehash_list_implementation): Update.
32790         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32791         (gl_rbtreehash_list_implementation): Update.
32792         * modules/array-list (Depends-on): Remove xalloc.
32793         * modules/carray-list (Depends-on): Likewise.
32794         * modules/linked-list (Depends-on): Likewise.
32795         * modules/linkedhash-list (Depends-on): Likewise.
32796         * modules/avltree-list (Depends-on): Likewise.
32797         * modules/rbtree-list (Depends-on): Likewise.
32798         * modules/avltreehash-list (Depends-on): Likewise.
32799         * modules/rbtreehash-list (Depends-on): Likewise.
32800
32801         * modules/xsublist: New file.
32802         * lib/gl_xsublist.h: New file.
32803         * lib/gl_xsublist.c: New file.
32804         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32805         (gl_sublist_nx_create): New declaration.
32806         * lib/gl_sublist.c: Don't include xalloc.h.
32807         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32808         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32809         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32810         Change return type to 'int'. Return -1 upon out-of-memory.
32811         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32812         upon out-of-memory.
32813         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32814         NULL upon out-of-memory.
32815         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32816         upon out-of-memory.
32817         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32818         NULL upon out-of-memory.
32819         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32820         NULL upon out-of-memory.
32821         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32822         upon out-of-memory.
32823         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32824         (gl_sublist_list_implementation): Update.
32825         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32826         upon out-of-memory.
32827         * modules/sublist (Depends-on): Remove xalloc.
32828
32829         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32830         * tests/test-carray_list.c: Likewise.
32831         * tests/test-linked_list.c: Likewise.
32832         * tests/test-linkedhash_list.c: Likewise.
32833         * tests/test-avltree_list.c: Likewise.
32834         * tests/test-rbtree_list.c: Likewise.
32835         * tests/test-avltreehash_list.c: Likewise.
32836         * tests/test-rbtreehash_list.c: Likewise.
32837         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32838         * modules/carray-list-tests (Makefile.am): Likewise.
32839         * modules/linked-list-tests (Makefile.am): Likewise.
32840         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32841         * modules/avltree-list-tests (Makefile.am): Likewise.
32842         * modules/rbtree-list-tests (Makefile.am): Likewise.
32843         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32844         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32845
32846         * NEWS: Mention the changes.
32847
32848         * lib/clean-temp.c: Include gl_xlist.h.
32849         * modules/clean-temp (Depends-on): Add xlist.
32850
32851         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32852         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32853
32854         * tests/test-array_oset.c: Include gl_xlist.h.
32855         * modules/array-oset-tests (Depends-on): Add xlist.
32856
32857         Reported by José E. Marchesi <jemarch@gnu.org>.
32858
32859 2009-12-13  Bruno Haible  <bruno@clisp.org>
32860
32861         Move the malloc checking from module 'oset' to new module 'xoset'.
32862         * modules/xoset: New file.
32863         * lib/gl_xoset.h: New file.
32864         * lib/gl_xoset.c: New file.
32865         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32866         declarations.
32867         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32868         (struct gl_oset_implementation): Rename and change methods accordingly.
32869         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32870         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32871         'int'. Mark as __warn_unused_result__.
32872         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32873         gl_oset_create_empty.
32874         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32875         'int'.
32876         * lib/gl_array_oset.c: Don't include xalloc.h.
32877         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32878         malloc, not xmalloc.
32879         (grow): Change return type to 'int'. Don't call xalloc_die.
32880         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32881         to 'int'.
32882         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32883         'int'.
32884         (gl_array_oset_implementation): Update.
32885         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32886         gl_tree_create_empty.
32887         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32888         'int'.
32889         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32890         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32891         xmalloc.
32892         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32893         not xmalloc.
32894         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32895         xmalloc.
32896         (gl_avltree_oset_implementation): Update.
32897         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32898         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32899         xmalloc.
32900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32901         not xmalloc.
32902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32903         xmalloc.
32904         (gl_rbtree_oset_implementation): Update.
32905         * modules/array-oset (Depends-on): Remove xalloc.
32906         * modules/avltree-oset (Depends-on): Likewise.
32907         * modules/rbtree-oset (Depends-on): Likewise.
32908         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32909         * tests/test-avltree_oset.c: Likewise.
32910         * tests/test-rbtree_oset.c: Likewise.
32911         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32912         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32913         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32914         * NEWS: Mention the change.
32915
32916 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32917
32918         maint.mk: allow a project to override release-prep commands
32919         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32920         commands into a new rule.
32921         (release-prep): New rule.
32922         (release-prep-hook): New overridable variable.
32923
32924 2009-12-13  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32927
32928 2009-12-13  Jim Meyering  <meyering@redhat.com>
32929
32930         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32931         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32932
32933 2009-12-12  Bruno Haible  <bruno@clisp.org>
32934
32935         duplocale: Tweak.
32936         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32937
32938 2009-12-12  Karl Berry  <karl@gnu.org>
32939
32940         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32941
32942 2009-12-12  Bruno Haible  <bruno@clisp.org>
32943
32944         * m4/po.m4: Undo incorrect untabification.
32945
32946 2009-12-12  Bruno Haible  <bruno@clisp.org>
32947
32948         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32949         * modules/c-strtod (Depends-on): Add locale.
32950         * modules/c-strtold (Depends-on): Likewise.
32951
32952 2009-12-12  Bruno Haible  <bruno@clisp.org>
32953
32954         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32955
32956 2009-12-11  Eric Blake  <ebb9@byu.net>
32957
32958         setenv: relax requirement in light of POSIX ruling
32959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32960         not NULL.
32961         * tests/test-setenv.c (main): Relax test.
32962         * tests/test-unsetenv.c (main): Likewise.
32963         * doc/posix-functions/setenv.texi (setenv): Document this.
32964         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32965
32966 2009-12-11  Bruno Haible  <bruno@clisp.org>
32967
32968         New module 'fd-safer-flag'.
32969         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32970         * lib/dup-safer.c (dup_safer_flag): Remove function.
32971         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32972         * lib/fd-safer.c (fd_safer_flag): Remove function.
32973         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32974         * modules/cloexec (configure.ac): Drop indicator macro.
32975         * modules/fd-safer-flag: New file.
32976         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32977         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32978         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32979
32980 2009-12-11  Bruno Haible  <bruno@clisp.org>
32981
32982         Tests for module 'nl_langinfo'.
32983         * modules/nl_langinfo-tests: New file.
32984         * tests/test-nl_langinfo.sh: New file.
32985         * tests/test-nl_langinfo.c: New file.
32986
32987         New module 'nl_langinfo'.
32988         * lib/nl_langinfo.c: New file.
32989         * m4/nl_langinfo.m4: New file.
32990         * modules/nl_langinfo: New file.
32991         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32992
32993 2009-12-11  Bruno Haible  <bruno@clisp.org>
32994
32995         Tests for module 'langinfo'.
32996         * modules/langinfo-tests: New file.
32997         * tests/test-langinfo.c: New file.
32998
32999         New module 'langinfo'.
33000         * lib/langinfo.in.h: New file.
33001         * m4/langinfo_h.m4: New file.
33002         * modules/langinfo: New file.
33003         * doc/posix-headers/langinfo.texi: Mention the new module.
33004
33005 2009-12-11  Bruno Haible  <bruno@clisp.org>
33006
33007         * lib/config.charset: Untabify.
33008
33009 2009-12-11  Bruno Haible  <bruno@clisp.org>
33010
33011         * modules/unistd-safer (configure.ac): Drop indicator macro.
33012
33013 2009-12-11  Bruno Haible  <bruno@clisp.org>
33014
33015         Move pipe2-safer code to its own file.
33016         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33017         * lib/pipe-safer.c (pipe2_safer): Remove function.
33018         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33019         (Makefile.am): Add it to lib_SOURCES.
33020
33021 2009-12-10  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33024
33025 2009-12-10  Bruno Haible  <bruno@clisp.org>
33026
33027         Declare which arguments expect non-NULL values, for GCC and clang.
33028         * build-aux/arg-nonnull.h: New file.
33029         * modules/arg-nonnull: New file.
33030         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33031         (inet_ntop, inet_pton): Use it.
33032         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33033         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33034         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33035         (open, openat): Use it.
33036         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33037         (fnmatch): Use it.
33038         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33039         (getopt, getopt_long, getopt_long_only): Use it.
33040         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33041         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33042         Use it.
33043         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33044         (iconv_open): Use it.
33045         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33046         (strtoimax, strtoumax): Use it.
33047         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33048         (duplocale): Use it.
33049         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33050         (frexp, frexpl): Use it.
33051         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33052         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33053         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33054         (tsearch, tfind, tdelete, twalk): Use it.
33055         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33056         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33057         sigpending): Use it.
33058         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33059         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33060         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33061         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33062         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33063         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33064         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33065         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33066         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33067         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33068         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33069         Use it.
33070         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33071         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33072         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33073         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33074         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33075         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33076         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33077         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33078         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33079         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33080         strtoull, unsetenv): Use it.
33081         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33082         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33083         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33084         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33085         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33086         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33087         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33088         (strcasecmp, strncasecmp): Use it.
33089         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33090         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33091         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33092         rpl_setsockopt): Use it.
33093         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33094         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33095         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33096         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33097         (gettimeofday): Use it.
33098         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33099         (times): Use it.
33100         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33101         (uname): Use it.
33102         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33103         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33104         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33105         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33106         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33107         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33108         unlinkat, write): Use it.
33109         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33110         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33111         * lib/argv-iter.h: Include arg-nonnull.h.
33112         (_ATTRIBUTE_NONNULL_): Remove macro.
33113         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33114         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33115         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33116         optimization.
33117         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33118         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33119         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33120         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33121         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33122         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33123         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33124         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33125         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33126         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33127         * modules/dirent (Depends-on): Add arg-nonnull.
33128         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33129         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33130         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33131         * modules/fnmatch (Depends-on): Add arg-nonnull.
33132         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33133         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33134         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33135         * modules/glob (Depends-on): Add arg-nonnull.
33136         (Makefile.am): Insert arg-nonnull.h into glob.h.
33137         * modules/iconv_open (Depends-on): Add arg-nonnull.
33138         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33139         * modules/inttypes (Depends-on): Add arg-nonnull.
33140         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33141         * modules/locale (Depends-on): Add arg-nonnull.
33142         (Makefile.am): Insert arg-nonnull.h into locale.h.
33143         * modules/math (Depends-on): Add arg-nonnull.
33144         (Makefile.am): Insert arg-nonnull.h into math.h.
33145         * modules/netdb (Depends-on): Add arg-nonnull.
33146         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33147         * modules/search (Depends-on): Add arg-nonnull.
33148         (Makefile.am): Insert arg-nonnull.h into search.h.
33149         * modules/signal (Depends-on): Add arg-nonnull.
33150         (Makefile.am): Insert arg-nonnull.h into signal.h.
33151         * modules/spawn (Depends-on): Add arg-nonnull.
33152         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33153         * modules/stdio (Depends-on): Add arg-nonnull.
33154         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33155         * modules/stdlib (Depends-on): Add arg-nonnull.
33156         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33157         * modules/string (Depends-on): Add arg-nonnull.
33158         (Makefile.am): Insert arg-nonnull.h into string.h.
33159         * modules/strings (Depends-on): Add arg-nonnull.
33160         (Makefile.am): Insert arg-nonnull.h into strings.h.
33161         * modules/sys_socket (Depends-on): Add arg-nonnull.
33162         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33163         * modules/sys_stat (Depends-on): Add arg-nonnull.
33164         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33165         * modules/sys_time (Depends-on): Add arg-nonnull.
33166         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33167         * modules/sys_times (Depends-on): Add arg-nonnull.
33168         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33169         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33170         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33171         * modules/time (Depends-on): Add arg-nonnull.
33172         (Makefile.am): Insert arg-nonnull.h into time.h.
33173         * modules/unistd (Depends-on): Add arg-nonnull.
33174         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33175         * modules/wchar (Depends-on): Add arg-nonnull.
33176         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33177         * modules/argv-iter (Depends-on): Add arg-nonnull.
33178         * tests/test-canonicalize.c (null_ptr): New function.
33179         (main): Use it.
33180         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33181         (main): Use it.
33182         * tests/test-memmem.c (null_ptr): New function.
33183         (main): Use it.
33184         Reported by Jim Meyering.
33185
33186 2009-12-10  Bruno Haible  <bruno@clisp.org>
33187
33188         Use spaces for indentation, not tabs.
33189         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33190         * m4/*.m4: Untabify.
33191         * build-aux/*.h: Untabify.
33192         * tests/**/*.[hc]: Untabify.
33193         * README: New section "Indent with spaces, not TABs", based on
33194         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33195         * NEWS: Mention the change.
33196
33197 2009-12-10  Bruno Haible  <bruno@clisp.org>
33198
33199         pty test: Fix link error.
33200         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33201         test_pty_LDADD.
33202
33203 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33204
33205         * modules/pty: New file.
33206         * modules/pty-tests: New file.
33207         * m4/pty.m4: New file.
33208         * tests/test-pty.c: New file.
33209         * doc/glibc-headers/pty.texi: Modified.
33210         * doc/glibc-functions/forkpty.texi: Modified.
33211         * doc/glibc-functions/openpty.texi: Modified.
33212
33213 2009-12-10  Bruno Haible  <bruno@clisp.org>
33214
33215         Avoid syntax error in C++ mode.
33216         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33217
33218 2009-12-10  Bruno Haible  <bruno@clisp.org>
33219
33220         Use sed with option -e.
33221         * gnulib-tool (func_version, func_emit_copyright_notice,
33222         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33223         option -e to sed.
33224         * modules/link-warning (Makefile.am): Likewise.
33225
33226 2009-12-10  Jim Meyering  <meyering@redhat.com>
33227
33228         mgetgroups: do not write bytes beyond end of malloc'd buffer
33229         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33230         username, we call getgroups with a one-element-shorter buffer,
33231         but still told it the length was original, max_n_groups.
33232
33233 2009-12-09  Eric Blake  <ebb9@byu.net>
33234
33235         cloexec: relax license
33236         * modules/cloexec (Maintainer): Add myself.
33237         (License): Use LGPL, not GPL.
33238
33239         link-warning: optimize generation
33240         * modules/link-warning (Makefile.am): Reduce process usage.
33241
33242 2009-12-09  Bruno Haible  <bruno@clisp.org>
33243
33244         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33245         workaround was added on 2009-11-17.
33246
33247 2009-12-09  Jim Meyering  <meyering@redhat.com>
33248             Bruno Haible  <bruno@clisp.org>
33249
33250         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33251         * modules/link-warning (Makefile.am): Make the comment-removing sed
33252         command more robust in the face of bootstrap-prepended comment lines.
33253
33254 2009-12-09  Bruno Haible  <bruno@clisp.org>
33255
33256         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33257         most one group.
33258
33259 2009-12-09  Simon Josefsson <simon@josefsson.org>
33260             Bruno Haible  <bruno@clisp.org>
33261
33262         * build-aux/link-warning.h: Add copyright notice.
33263         * modules/link-warning (Makefile.am): Generate link-warning.h from
33264         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33265         * NEWS: Mention change in link-warning module.
33266         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33267         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33268         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33269         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33270         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33271         * modules/math (Makefile.am): Add dependency to math.h.
33272         * modules/search (Makefile.am): Add dependency to search.h.
33273         * modules/signal (Makefile.am): Add dependency to signal.h.
33274         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33275         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33276         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33277         * modules/string (Makefile.am): Add dependency to string.h.
33278         * modules/strings (Makefile.am): Add dependency to strings.h.
33279         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33280         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33281         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33282         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33283         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33284         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33285         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33286         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33287         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33288
33289 2009-12-09  Bruno Haible  <bruno@clisp.org>
33290
33291         fchdir: Optimize away rpl_fstat when possible.
33292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33293         REPLACE_OPEN_DIRECTORY.
33294         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33295
33296 2009-12-09  Bruno Haible  <bruno@clisp.org>
33297
33298         * lib/fchdir.c: Update comment.
33299
33300 2009-12-09  Bruno Haible  <bruno@clisp.org>
33301
33302         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33303
33304 2009-12-08  Eric Blake  <ebb9@byu.net>
33305
33306         fchdir: avoid memory leak on re-registration.
33307         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33308
33309 2009-12-08  Jim Meyering  <meyering@redhat.com>
33310
33311         init.sh: avoid Solaris 10 /bin/sh portability problem
33312         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33313         sourced script:
33314           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33315           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33316           bar
33317         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33318         and two tests used that idiom.
33319         * tests/init.sh: Update suggested usage comments.
33320         (path_prepend_): New function, to be used in place
33321         of the --src-path=DIR option.
33322         (setup_): Move PATH-prepending code into path_prepend_.
33323         * tests/test-pread.sh: Adapt to new usage.
33324         * tests/test-xalloc-die.sh: Likewise.
33325
33326 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33327
33328         * doc/gnulib.texi (Glibc pty.h): Add.
33329         * doc/glibc-functions/forkpty.texi: Add.
33330         * doc/glibc-functions/openpty.texi: Add.
33331         Suggested by Bruno Haible.
33332
33333 2009-12-08  Eric Blake  <ebb9@byu.net>
33334
33335         fchdir: fix logic bugs
33336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33337         * tests/test-fchdir.c (main): Enhance test.
33338         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33339         is in use.
33340
33341         dup2: fix logic bugs
33342         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33343         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33344         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33345         exists.
33346         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33347
33348 2009-12-07  Eric Blake  <ebb9@byu.net>
33349
33350         unlink: fix m4 detection
33351         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33352
33353         unistd-safer: add unit test
33354         * modules/unistd-safer-tests: New file.
33355         * tests/test-dup-safer.c: Likewise.
33356         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33357         * tests/test-dup2.c (setmode): Likewise.
33358         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33359
33360         cloexec: preserve text vs. binary across dup_cloexec
33361         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33362         mode.
33363         * modules/dup2-tests (Depends-on): Add binary-io.
33364         * modules/cloexec-tests (Depends-on): Likewise.
33365         * tests/test-dup2.c (setmode, is_mode): New helpers.
33366         (main): Add tests that translation mode is preserved.
33367         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33368         Reported by Bruno Haible.
33369
33370         mgetgroups: reduce duplicate listings
33371         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33372         resulting array.
33373         * tests/test-chown.h (test_chown): Simplify client.
33374         * tests/test-lchown.h (test_lchown): Likewise.
33375
33376 2009-12-06  Bruno Haible  <bruno@clisp.org>
33377
33378         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33379         value.
33380
33381 2009-12-06  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/progname.c: Include stdio.h, stdlib.h.
33384         (set_program_name): Reject a NULL argument.
33385
33386 2009-12-05  Eric Blake  <ebb9@byu.net>
33387
33388         pipe2-safer: new module
33389         * modules/pipe2-safer: New file.
33390         * lib/unistd-safer.h (pipe2_safer): New prototype.
33391         * lib/unistd--.h (pipe2): New wrapper.
33392         * lib/pipe-safer.c (pipe2_safer): New function.
33393         * modules/pipe (Depends-on): Add pipe2-safer.
33394         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33395
33396         stdlib-safer: preserve cloexec flag for mkostemp[s]
33397         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33398         fd_safer_flag.
33399
33400         unistd-safer: allow preservation of cloexec status via flag
33401         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33402         prototypes.
33403         * lib/dup-safer.c (dup_safer_flag): New function.
33404         * lib/fd-safer.c (fd_safer_flag): Likewise.
33405         * modules/cloexec (configure.ac): Set witness.
33406
33407         test-dup2: enhance test
33408         * modules/dup2-tests (Depends-on): Add cloexec.
33409         * tests/test-dup2.c (main): Enhance test.
33410
33411         cloexec: add dup_cloexec
33412         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33413         header and comments.
33414         * lib/cloexec.c (set_cloexec_flag): Add comments.
33415         (dup_cloexec): New function, with mingw implementation borrowed
33416         from...
33417         * lib/w32spawn.h (dup_noinherit): ...here.
33418         * modules/execute (Depends-on): Add cloexec.
33419         * modules/pipe (Depends-on): Likewise.
33420         * modules/cloexec (Depends-on): Add dup2.
33421         * modules/cloexec-tests (Files): New file.
33422         * tests/test-cloexec.c: Likewise.
33423
33424         test-xalloc-die: fix test for mingw
33425         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33426         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33427         directory and .exe suffix off argv[0] output.
33428
33429         test-fseeko: fix test for mingw
33430         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33431         than undefining fseek, so test will pass on mingw.
33432
33433 2009-12-05  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/progname.h (set_program_name): Clarify specification.
33436         * lib/progname.c (set_program_name): Likewise.
33437         Reported by Jim Meyering.
33438
33439 2009-12-05  Jim Meyering  <meyering@redhat.com>
33440
33441         maint.mk: backslash-escape parens in default regexp
33442         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33443         backslash-escape the literal parentheses.
33444
33445         maint.mk: news-date-check: use grep -E
33446         * top/maint.mk (today): Define a Make variable, not a...
33447         (news-date-check): ...shell variable.
33448         (news-date-regexp): Use the Make variable.
33449         Use grep's -E option.  Change the failing diagnostic to mention
33450         the variable, $(news-date-regexp).
33451
33452 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33453
33454         maintainer-makefile: allow customization of NEWS entry format
33455         * top/maint.mk (news-date-regexp): New overridable variable.
33456         (news-date-check): Use it.
33457
33458 2009-12-04  Eric Blake  <ebb9@byu.net>
33459
33460         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33461         * lib/mgetgroups.h (xgetgroups): New prototype.
33462         * lib/mgetgroups.c (xgetgroups): New wrapper.
33463         (mgetgroups): Handle ENOSYS.
33464         * modules/mgetgroups (Depends-on): Add realloc.
33465         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33466
33467         mgetgroups: avoid argument promotion issues with -1
33468         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33469         for invalid gid_t.
33470         * tests/test-chown.h (getegid, test_chown): Likewise.
33471         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33472
33473 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33474
33475         exclude: Fix header file problems.
33476         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33477
33478 2009-12-01  Jim Meyering  <meyering@redhat.com>
33479
33480         fts: fts_open: do not let an empty string cause immediate failure
33481         This is required in support of GNU rm, for which the command
33482         "rm A '' B" must process and remove both A and B, in spite of
33483         the empty string argument.
33484         * lib/fts.c (fts_open): Do not let the presence of an empty string
33485         cause fts_open to fail immediately.  Most fts-using tools must be
33486         able to process all arguments, in order, and can be expected to
33487         diagnose such arguments themselves.
33488
33489 2009-11-30  Eric Blake  <ebb9@byu.net>
33490
33491         utimens: fix compilation error
33492         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33493         Declare variable at right scope.
33494
33495 2009-11-29  Jim Meyering  <meyering@redhat.com>
33496
33497         bootstrap: handle perl-5.11's changed --version output
33498         * build-aux/bootstrap (get_version): Handle perl separately,
33499         since perl-5.11's --version output is different.
33500
33501 2009-11-28  Jim Meyering  <meyering@redhat.com>
33502
33503         userspec: depend on the inttostr module, too
33504         * modules/userspec (Depends-on): Add inttostr.
33505
33506         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33507         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33508         number of MAXUID when it evaluates to (uid_t) -1.
33509         Likewise for group ID.  Reported by Matt McCutchen in
33510         <http://savannah.gnu.org/bugs/?28113>
33511
33512         userspec: reformat to use spaces, not TABs
33513         * lib/userspec.c: Expand TABs to spaces.
33514         Add Emacs' "indent-tabs-mode: nil" hint.
33515
33516 2009-11-27  Eric Blake  <ebb9@byu.net>
33517
33518         getopt-gnu: flush out another BSD bug
33519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33520         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33521         flush out BSD bug.
33522         * tests/test-getopt.h (test_getopt): End lists with NULL.
33523         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33524         (test_getopt_long_posix): Enhance test.
33525         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33526         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33527         getopt-gnu.
33528         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33529         Likewise.
33530
33531 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33532
33533         * modules/idpriv-droptemp-tests (Notice): Fix text.
33534
33535 2009-11-27  Jim Meyering  <meyering@redhat.com>
33536
33537         test-xalloc-die: avoid spurious failure due to libtool argv difference
33538         In a libtool-enabled project, this test would fail due to a difference
33539         in the emitted program name, e.g.,
33540         -test-xalloc-die: memory exhausted
33541         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33542         Use program to avoid that.
33543         * modules/xalloc-die-tests (Depends-on): Add progname.
33544         * tests/test-xalloc-die.c: Include progname.h".
33545         (program_name): Remove decl.
33546         (main): Call set_program_name.
33547         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33548
33549 2009-11-26  Richard Jones  <rjones@redhat.com>
33550
33551         w32sock: leave win32 error in place.
33552         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33553
33554 2009-11-26  Eric Blake  <ebb9@byu.net>
33555
33556         init.sh: suggest to use skip_ and fail_ functions in comments
33557         * tests/init.sh: Add a sentence.
33558
33559 2009-11-25  Bruno Haible  <bruno@clisp.org>
33560
33561         init.sh: add documentation in comments
33562         * tests/init.sh: Add some developer and user documentation.
33563
33564 2009-11-26  Jim Meyering  <meyering@redhat.com>
33565
33566         init.sh: accommodate even those who specify bogus srcdir manually
33567         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33568         configure-time tests to be sanitized, so that there is no need to
33569         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33570         (with no double quotes) suffices.  However, since tests may be
33571         invoked manually, and since you may explicitly set srcdir to the
33572         name of a directory containing spaces, do quote its uses here.
33573         * tests/test-pread.sh: Likewise.
33574         Suggested by Bruno Haible.
33575
33576         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33577         * tests/test-pread.sh: Write no data into the pipe, because
33578         test-pread actually reads none.  This avoids a diagnostic,
33579         "bash: echo: write error: Broken pipe", that arises in the unusual
33580         event something is ignoring SIGPIPE, and might be interpreted
33581         as some sort of failure.  Reported by Bruno Haible.
33582
33583 2009-11-25  Jim Meyering  <meyering@redhat.com>
33584
33585         test-pread: cover failure with ESPIPE and EINVAL
33586         * tests/test-pread.c (main): Test for failure, too.
33587         * tests/test-pread.sh: Invoke with stdin on a pipe.
33588         Suggested by Eric Blake.
33589
33590         pread: improvement and fix
33591         * modules/pread (Depends-on): Depend on lseek, for portability to
33592         e.g., mingw.  Suggested by Eric Blake.
33593         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33594
33595         unistd.in.h: correct declaration of pread
33596         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33597         Reported by Richard W.M. Jones.
33598
33599         test-pread.sh: distribute the test script
33600         * modules/pread-tests (Files): Include test-pread.sh.
33601
33602         test-pread.sh: clean up
33603         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33604         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33605         That is unnecessary, since it's always ".".
33606         Suggestion from Eric Blake.
33607
33608         test-pread.sh: make executable
33609         * tests/test-pread.sh: Set executable bit.
33610         Reported by Eric Blake.
33611
33612         correct typo in test-pread.sh
33613         * tests/test-pread.sh: Add #! line.
33614
33615         test pread
33616         * tests/test-pread.c: New file.
33617         * tests/test-pread.sh: Likewise.
33618         * modules/pread-tests: Likewise.
33619
33620         pread: new module
33621         * modules/pread: New file.
33622         * lib/unistd.in.h (pread): Define/declare.
33623         * lib/pread.c (pread): New file.
33624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33625         * modules/unistd (Makefile.am): Substitute witnesses.
33626         * doc/posix-functions/pread.texi (pread): Update.
33627         * MODULES.html.sh: Add pread.
33628
33629 2009-11-25  Jim Meyering  <meyering@redhat.com>
33630
33631         tests/init.sh: new file to be used via most *.sh tests
33632         * tests/init.sh: New file.
33633
33634 2009-11-25  Eric Blake  <ebb9@byu.net>
33635
33636         utimens: work around older Linux failure with symlinks
33637         * lib/utimens.c (lutimensat_works_really): New variable.
33638         (fdutimens, lutimens): Use it to manage kernels that support
33639         nanosecond times on files, but not on symlinks.
33640         Reported by OndÅ™ej Vašík.
33641
33642         utimes: fix configure grammar
33643         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33644
33645 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33646
33647         regex: Fix fastmap for multibyte character ranges.
33648         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33649         characters when a multibyte character range is included.
33650
33651 2009-11-22  Andy Wingo  <wingo@pobox.com>
33652
33653         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33654         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33655
33656 2009-11-24  Bruno Haible  <bruno@clisp.org>
33657
33658         doc: Most *_l functions exist in MacOS X 10.5.
33659         * doc/posix-functions/duplocale.texi: Update platforms list.
33660         * doc/posix-functions/freelocale.texi: Likewise.
33661         * doc/posix-functions/newlocale.texi: Likewise.
33662         * doc/posix-functions/uselocale.texi: Likewise.
33663         * doc/posix-functions/isalnum_l.texi: Likewise.
33664         * doc/posix-functions/isalpha_l.texi: Likewise.
33665         * doc/posix-functions/isblank_l.texi: Likewise.
33666         * doc/posix-functions/iscntrl_l.texi: Likewise.
33667         * doc/posix-functions/isdigit_l.texi: Likewise.
33668         * doc/posix-functions/isgraph_l.texi: Likewise.
33669         * doc/posix-functions/islower_l.texi: Likewise.
33670         * doc/posix-functions/isprint_l.texi: Likewise.
33671         * doc/posix-functions/ispunct_l.texi: Likewise.
33672         * doc/posix-functions/isspace_l.texi: Likewise.
33673         * doc/posix-functions/isupper_l.texi: Likewise.
33674         * doc/posix-functions/iswalnum_l.texi: Likewise.
33675         * doc/posix-functions/iswalpha_l.texi: Likewise.
33676         * doc/posix-functions/iswblank_l.texi: Likewise.
33677         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33678         * doc/posix-functions/iswctype_l.texi: Likewise.
33679         * doc/posix-functions/iswdigit_l.texi: Likewise.
33680         * doc/posix-functions/iswgraph_l.texi: Likewise.
33681         * doc/posix-functions/iswlower_l.texi: Likewise.
33682         * doc/posix-functions/iswprint_l.texi: Likewise.
33683         * doc/posix-functions/iswpunct_l.texi: Likewise.
33684         * doc/posix-functions/iswspace_l.texi: Likewise.
33685         * doc/posix-functions/iswupper_l.texi: Likewise.
33686         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33687         * doc/posix-functions/isxdigit_l.texi: Likewise.
33688         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33689         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33690         * doc/posix-functions/strcoll_l.texi: Likewise.
33691         * doc/posix-functions/strfmon_l.texi: Likewise.
33692         * doc/posix-functions/strftime_l.texi: Likewise.
33693         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33694         * doc/posix-functions/strxfrm_l.texi: Likewise.
33695         * doc/posix-functions/tolower_l.texi: Likewise.
33696         * doc/posix-functions/toupper_l.texi: Likewise.
33697         * doc/posix-functions/towctrans_l.texi: Likewise.
33698         * doc/posix-functions/towlower_l.texi: Likewise.
33699         * doc/posix-functions/towupper_l.texi: Likewise.
33700         * doc/posix-functions/wcscoll_l.texi: Likewise.
33701         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33702         * doc/posix-functions/wctrans_l.texi: Likewise.
33703         * doc/posix-functions/wctype_l.texi: Likewise.
33704         * doc/glibc-functions/strptime_l.texi: Likewise.
33705         * doc/glibc-functions/strtod_l.texi: Likewise.
33706         * doc/glibc-functions/strtof_l.texi: Likewise.
33707         * doc/glibc-functions/strtol_l.texi: Likewise.
33708         * doc/glibc-functions/strtold_l.texi: Likewise.
33709         * doc/glibc-functions/strtoll_l.texi: Likewise.
33710         * doc/glibc-functions/strtoul_l.texi: Likewise.
33711         * doc/glibc-functions/strtoull_l.texi: Likewise.
33712         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33713         * doc/glibc-functions/wcstod_l.texi: Likewise.
33714         * doc/glibc-functions/wcstof_l.texi: Likewise.
33715         * doc/glibc-functions/wcstol_l.texi: Likewise.
33716         * doc/glibc-functions/wcstold_l.texi: Likewise.
33717         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33718         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33719         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33720
33721 2009-11-24  Bruno Haible  <bruno@clisp.org>
33722
33723         duplocale: Fix logic bug.
33724         * lib/duplocale.c: Don't include <langinfo.h>.
33725         (_NL_LOCALE_NAME): Remove macro.
33726         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33727         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33728
33729 2009-11-23  Jim Meyering  <meyering@redhat.com>
33730
33731         test-update-copyright: don't hard-code /usr/bin/perl
33732         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33733         perl to print the current year.  Gilles Espinasse reported that
33734         the replaced use of perl was hard-coded as /usr/bin/perl.
33735
33736 2009-11-23  Bruno Haible  <bruno@clisp.org>
33737
33738         duplocale: Add support for glibc 2.3.x.
33739         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33740
33741 2009-11-22  Bruno Haible  <bruno@clisp.org>
33742
33743         vasnprintf: Tiny optimization.
33744         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33745         MacOS X.
33746
33747 2009-11-22  Bruno Haible  <bruno@clisp.org>
33748
33749         Tests for module 'duplocale'.
33750         * modules/duplocale-tests: New file.
33751         * tests/test-duplocale.c: New file.
33752
33753         New module 'duplocale'.
33754         * m4/duplocale.m4: New file.
33755         * lib/locale.in.h (duplocale): New declaration.
33756         * lib/duplocale.c: New file.
33757         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33758         gl_LOCALE_H_DEFAULTS): New macros.
33759         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33760         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33761         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33762         REPLACE_DUPLOCALE.
33763         * modules/duplocale: New file.
33764         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33765
33766 2009-11-22  Bruno Haible  <bruno@clisp.org>
33767
33768         * modules/locale-tests (configure.ac): Test for newlocale function.
33769         * tests/test-locale.c: When the system has extended locale functions,
33770         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33771
33772         locale: Make locale_t available when possible.
33773         * lib/locale.in.h: Include <xlocale.h> when it exists.
33774         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33775         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33776         * modules/locale (Depends-on): Add extensions.
33777         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33778         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33779
33780 2009-11-22  Bruno Haible  <bruno@clisp.org>
33781
33782         Add comments.
33783         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33784         invocation.
33785         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33786         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33787         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33788
33789 2009-11-22  Bruno Haible  <bruno@clisp.org>
33790
33791         error: account for the possibility of freopen (stdout).
33792         * lib/error.c: Include <unistd.h>.
33793         (flush_stdout): New function, extracted from error and error_at_line.
33794         Determine stdout's fd dynamically.
33795         (error, error_at_line): Invoke flush_stdout.
33796         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33797         * modules/error (Depends-on): Add unistd.
33798
33799 2009-11-22  Bruno Haible  <bruno@clisp.org>
33800
33801         diffseq: Add comment.
33802         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33803
33804 2009-11-22  Jim Meyering  <meyering@redhat.com>
33805
33806         c-stack: avoid defining an unused static function
33807         * lib/c-stack.c (find_stack_direction): Do not define this function
33808         when it will not be used.
33809
33810         diffseq: avoid spurious gcc warnings
33811         * lib/diffseq.h (IF_LINT2): Define.
33812         (compareseq): Use it to initialize two members of "part".
33813         This avoids two used-uninitialized warnings.
33814
33815 2009-11-21  Jim Meyering  <meyering@redhat.com>
33816
33817         c-stack: avoid "ignoring return value of `write'" warning
33818         * lib/c-stack.c: Include "ignore-value.h".
33819         (die): Explicitly ignore each write return value.
33820         * modules/c-stack (Depends-on): Add ignore-value.
33821
33822 2009-11-21  Bruno Haible  <bruno@clisp.org>
33823
33824         diffseq: reduce scope of variable 'best'.
33825         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33826         variable, earlier used for two different purposes.
33827
33828 2009-11-21  Jim Meyering  <meyering@redhat.com>
33829
33830         diffseq: remove useless assignment to "best"
33831         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33832         assignment.  At that point "best" is already guaranteed to be zero.
33833
33834 2009-11-20  Eric Blake  <ebb9@byu.net>
33835
33836         build: mention ftp redirector in release announcements
33837         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33838         values that used to come from cfg.mk; mention FTP redirect URL.
33839         * build-aux/announce-gen: Mention the mirror list.
33840         Suggested by Karl Berry.
33841
33842         nanosleep: improve port to mingw
33843         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33845         LIB_NANOSLEEP, but only when needed.
33846         * modules/select (Link): Document LIBSOCKET.
33847         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33848         enough.
33849
33850         nanosleep: work around cygwin bug
33851         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33852         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33853         bug.
33854         (getnow): Delete, not needed.
33855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33856         LIB_CLOCK_GETTIME.
33857         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33858         clock-time, gettime.
33859         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33860         bug.
33861         * modules/nanosleep-tests: New test.
33862         * tests/test-nanosleep.c: New file.
33863
33864         sleep: work around cygwin bug
33865         * lib/sleep.c (rpl_sleep): Work around the bug.
33866         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33867         (gl_PREREQ_SLEEP): Delete unused macro.
33868         * modules/sleep (Depends-on): Add verify.
33869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33870         * modules/unistd (Makefile.am): Substitute witness.
33871         * lib/unistd.in.h (sleep): Update prototype.
33872         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33873         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33874         * modules/sleep-tests (Depends-on): Check for alarm.
33875
33876 2009-11-20  Jim Meyering  <meyering@redhat.com>
33877
33878         maint.mk: improve sc_prohibit_magic_number_exit
33879         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33880         so it does not match uses like System.exit(1).
33881         Add comments showing how to correct all offenders.
33882
33883 2009-11-19  Eric Blake  <ebb9@byu.net>
33884
33885         xalloc-die-tests: add missing library
33886         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33887
33888         test-xvasprintf: silence compiler warnings
33889         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33890         empty string from gcc.
33891
33892 2009-11-19  Jim Meyering  <meyering@redhat.com>
33893
33894         xfreopen: new module, from coreutils
33895         * modules/xfreopen: New module.
33896         * lib/xfreopen.c: New file.
33897         * lib/xfreopen.h: New file.
33898         * MODULES.html.sh (File stream based Input/Output"): Add it.
33899
33900 2009-11-19  Eric Blake  <ebb9@byu.net>
33901
33902         manywarnings: depend on warnings
33903         * modules/manywarnings (Depends-on): Add warnings.
33904
33905         build: avoid compiler warnings
33906         * lib/select.c (rpl_select): Delete unused variable.
33907         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33908
33909 2009-11-18  Eric Blake  <ebb9@byu.net>
33910
33911         tests: avoid false negative with --with-packager
33912         * tests/test-version-etc.sh: Discard packager information.
33913         * tests/test-argp-version-etc-1.sh: Likewise.
33914         Reported by Mike Frysinger.
33915
33916         utimens: fix regression on Solaris
33917         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33918         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33919         can only change fd timestamps via futimesat.  Instead, use an
33920         additional witness macro to avoid BSD bug.
33921         Reported by Jim Meyering.
33922
33923 2009-11-17  Eric Blake  <ebb9@byu.net>
33924
33925         usleep: use it to simplify tests
33926         * modules/stat-time-tests (Depends-on): Add usleep.
33927         (configure.ac): Drop usleep check.
33928         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33929         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33930         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33931         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33932         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33933         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33934         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33935         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33936         Likewise.
33937         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33938         * tests/test-lchown.h (nap): Likewise.
33939         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33940         * tests/test-stat-time.c (nap): Likewise.
33941         * tests/test-utimens-common.h (nap): Update comments.
33942
33943         usleep: new module
33944         * modules/usleep: New file.
33945         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33946         * lib/usleep.c (usleep): Likewise.
33947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33948         * modules/unistd (Makefile.am): Substitute witnesses.
33949         * lib/unistd.in.h (usleep): Add declaration.
33950         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33951         * MODULES.html.sh (Date and time): Likewise.
33952         * modules/usleep-tests (Depends-on): New test.
33953         * tests/test-usleep.c: New file.
33954
33955         chown: work around OpenBSD bug
33956         * lib/chown.c (rpl_chown): Work around the bug.
33957         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33958         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33960         * modules/chown (Depends-on): Add stdbool.
33961         * modules/lchown (Depends-on): Likewise.
33962         * doc/posix-functions/chown.texi (chown): Document the bug.
33963         * doc/posix-functions/lchown.texi (lchown): Likewise.
33964         * tests/test-lchown.h (test_chown): Relax test.
33965
33966         mkstemp: avoid conflict with C++ keyword template
33967         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33968         * lib/mkostemp.c (mkostemp): Likewise.
33969         * lib/mkostemps.c (mkostemps): Likewise.
33970         * lib/mkstemp.c (mkstemp): Likewise.
33971         * lib/mkstemps.c (mkstemps): Likewise.
33972
33973         xalloc-die-tests: optimize
33974         * tests/test-xalloc-die.sh: Reduce number of processes.
33975
33976 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33977
33978         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33979         patch from ludo@gnu.org (Ludovic Courtès).
33980
33981 2009-11-17  Jim Meyering  <meyering@redhat.com>
33982
33983         version-etc: use proper license string
33984         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33985         * modules/version-etc-fsf: Likewise.
33986
33987 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33988
33989         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33990         printed to stdout.  Deal with EOL differences.
33991
33992 2009-11-17  Eric Blake  <ebb9@byu.net>
33993
33994         unsetenv: work around Solaris bug
33995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33996         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33997         Reported by Jim Meyering.
33998
33999         vasnprintf: avoid compiler warnings
34000         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34001         variables.
34002         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34003
34004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34005
34006         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34007         settings since xalloc-die is no longer the self test,
34008         xalloc-die.sh is.
34009
34010 2009-11-17  Jim Meyering  <meyering@redhat.com>
34011
34012         test-xalloc-die.sh: make the code agree with the commit log
34013         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34014         at the end, just in case you happen to have a test-xalloc-die
34015         program in some other PATH directory.
34016
34017         test-xalloc-die.sh: fix a portability bug
34018         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34019         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34020         Otherwise, argv[0] (as often seen in diagnostics) would be too
34021         system-dependent, sometimes with, and sometimes without the leading "./".
34022
34023         version-etc-fsf: relax license to LGPLv3+
34024         * modules/version-etc-fsf (License): Relax license.
34025
34026 2009-11-16  Eric Blake  <ebb9@byu.net>
34027
34028         xalloc-die-tests: avoid printing null pointer
34029         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34030         shell script.
34031         * tests/test-xalloc-die.c (program_name): Declare.
34032         * tests/test-xalloc-die.sh (tmpfiles): New file.
34033
34034         setenv, unsetenv: work around various bugs
34035         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34036         (setenv) [HAVE_SETENV]: Work around bugs.
34037         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34039         for bugs.
34040         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34041         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34043         * modules/stdlib (Makefile.am): Update substitutions.
34044         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34045         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34046         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34047         * modules/setenv-tests: New test.
34048         * modules/unsetenv-tests: Likewise.
34049         * tests/test-setenv.c: New file.
34050         * tests/test-unsetenv.c: Likewise.
34051
34052 2009-11-16  Jim Meyering  <meyering@redhat.com>
34053
34054         version-etc: relax license to LGPLv3+
34055         * modules/version-etc (License): Relax license.
34056
34057         better AC_REQUIRE expanded-before-required-warning avoidance
34058         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34059         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34060         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34061         which is no longer needed.
34062
34063 2009-11-16  Eric Blake  <ebb9@byu.net>
34064
34065         test-freading: clean up temporary file
34066         * tests/test-freading.c (main): Remove file on success, and use
34067         ASSERT more liberally.
34068         Reported by Jim Meyering.
34069
34070 2009-11-16  Jim Meyering  <meyering@redhat.com>
34071
34072         avoid new AC_REQUIRE expanded-before-required warnings
34073         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34074         merely using it.
34075         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34076         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34077
34078 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34079
34080         * tests/test-xalloc-die.c: New file.
34081         * modules/xalloc-die-tests: New file.
34082         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34083         XFAIL_TESTS so it can be appended by modules.
34084
34085 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34086
34087         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34088         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34089
34090 2009-11-14  Eric Blake  <ebb9@byu.net>
34091
34092         fnmatch: avoid compiler warning
34093         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34094         to silence compiler warning about mismatch signedness in ?:.
34095         Reported by Robert Millan.
34096
34097         intprops: add double-inclusion guard
34098         * lib/intprops.h: Allow idempotent includes.
34099         Suggested by Bruce Korb.
34100
34101         openat: detect Solaris fchownat bug
34102         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34103         penalizing glibc chownat when only lchownat is broken.
34104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34105         trailing slash bugs.
34106         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34107         * modules/openat-tests (Files): Include more files.
34108         (Depends-on): Add mgetgroups, sleep, stat-time.
34109         (configure.ac): Add additional checks.
34110         (Makefile.am): Build new test.
34111         * tests/test-fchownat.c: New file.
34112
34113         lchown: detect Solaris and FreeBSD bug
34114         * lib/lchown.c (rpl_lchown): Work around bug.
34115         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34117         * modules/unistd (Makefile.am): Populate it.
34118         * lib/unistd.in.h (lchown): Update declaration.
34119         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34120         * modules/lchown-tests: New file.
34121         * tests/test-lchown.h (test_lchown): Likewise.
34122         * tests/test-lchown.c (main): Likewise.
34123
34124         chown: detect Solaris and FreeBSD bug
34125         * lib/chown.c (rpl_chown): Work around bug.
34126         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34127         (gl_PREREQ_CHOWN): Delete.
34128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34129         * modules/unistd (Makefile.am): Populate it.
34130         * lib/unistd.in.h (chown): Update declaration.
34131         * lib/lchown.c (chown): Update client.
34132         * modules/lchown (Depends-on): Add lstat.
34133         * doc/posix-functions/chown.texi (chown): Document the bug.
34134         * doc/posix-functions/getgroups.texi (getgroups): Document
34135         getgroups pitfall.
34136         * modules/chown-tests: New file.
34137         * tests/test-chown.h (test_chown): Likewise.
34138         * tests/test-chown.c (main): Likewise.
34139
34140 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34141
34142         gnulib-tool: correctly detect absence of m4 directories
34143         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34144
34145 2009-11-14  Jim Meyering  <meyering@redhat.com>
34146
34147         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34148         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34149
34150 2009-11-14  John W. Eaton  <jwe@gnu.org>
34151
34152         strftime.h: wrap funtion declaration in extern "C" block
34153         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34154
34155 2009-11-13  Eric Blake  <ebb9@byu.net>
34156
34157         getgroups: avoid compiler warning
34158         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34159
34160         getgroups: work around FreeBSD bug
34161         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34162         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34163         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34164         * tests/test-getgroups.c (main): Fix buffer overrun.
34165
34166         getgroups: avoid compilation failure
34167         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34168         * modules/getgroups (Depends-on): Add stdint.
34169
34170 2009-11-13  Jim Meyering  <meyering@redhat.com>
34171
34172         test-getgroups: avoid compilation failure
34173         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34174
34175 2009-11-13  Eric Blake  <ebb9@byu.net>
34176
34177         mgetgroups: new module, taken from coreutils
34178         * modules/mgetgroups: New file.
34179         * lib/mgetgroups.h: Likewise.
34180         * lib/mgetgroups.c (mgetgroups): Likewise.
34181         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34182         * MODULES.html.sh (Users and groups): Mention it.
34183
34184         getgroups: don't expose GETGROUPS_T to user
34185         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34186         an element at a time if GETGROUPS_T is wrong size.
34187         * lib/getugroups.h (getugroups): Change signature.
34188         * lib/unistd.in.h (getgroups): Likewise.
34189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34190         signature needs fixing.
34191         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34192         AC_TYPE_GETGROUPS.
34193         * modules/group-member (Depends-on): Add getgroups.
34194         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34195         (group_member): Rely on getgroups replacement.
34196         * lib/getugroups.c (getugroups): Use gid_t.
34197         * tests/test-getgroups.c (main): Likewise.
34198         * NEWS: Mention the signature change.
34199         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34200         problem with signature.
34201         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34202         GETGROUPS_T is still useful for setgroups.
34203
34204         getgroups, getugroups: provide stubs for mingw
34205         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34206         * lib/getugroups.c (getugroups): Likewise.
34207         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34208         function.  Modernize replacement scheme.
34209         (gl_PREREQ_GETGROUPS): Delete.
34210         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34211         * modules/getgroups (configure.ac): Declare witness.
34212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34213         * modules/unistd (Depends-on): Substitute witness.
34214         * lib/unistd.in.h (getgroups): Declare replacement.
34215
34216         getgroups: avoid calling exit
34217         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34218         drop xalloc.
34219         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34220         dependencies.
34221         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34222         exiting, in the rare case of malloc failure.
34223
34224         getgroups: fix logic error
34225         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34226         has more than 20 groups.
34227         * modules/getgroups-tests: New test.
34228         * tests/test-getgroups.c: New file.
34229
34230 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34231
34232         * tests/test-base64.c: Improve.
34233
34234 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34235
34236         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34237         Blake <ebb9@byu.net>.
34238
34239 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34240
34241         * tests/test-xvasprintf.c: Add %s%s related checks.
34242
34243 2009-11-12  Eric Blake  <ebb9@byu.net>
34244
34245         version-etc: match standards.texi style
34246         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34247         and use <> only for URLs.
34248
34249 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34250
34251         fts: do not fail on a submount during traversal
34252         * lib/fts.c (fts_build): Read the stat info again after opening
34253         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34254         Original report at http://bugzilla.redhat.com/501848.
34255
34256 2009-11-12  Jim Meyering  <meyering@redhat.com>
34257
34258         bootstrap: sync from coreutils
34259         * build-aux/bootstrap (bootstrap_epilogue): New function.
34260         Use git_modules_config in one more place.  This make bootstrap's
34261         --gnulib-srcdir option more useful for testing.
34262
34263         bootstrap: generalize autoheader check
34264         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34265         AC_CONFIG_HEADERS.
34266
34267 2009-11-11  Eric Blake  <ebb9@byu.net>
34268
34269         mkfifoat: use new modules for Solaris and BSD bugs
34270         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34271         * lib/mkfifoat.c (mknodat): Split...
34272         * lib/mknodat.c (mknodat): ...into new file.
34273         * modules/mkfifoat (Files): Ship new file.
34274         (Depends-on): Add mkfifo, mknod.
34275         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34276         (Depends-on): Add symlink.
34277         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34278         redundant with test_mkfifo.h.
34279         (do_mkfifoat, do_mknodat): New helpers.
34280
34281         mknod: new module
34282         * modules/mknod: New file.
34283         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34284         * lib/mknod.c (mknod): Likewise.
34285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34286         defaults.
34287         * modules/sys_stat (Makefile.am): Substitute them.
34288         * lib/sys_stat.in.h (mknod): Declare replacement.
34289         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34290         Document it.
34291         * doc/posix-functions/mknod.texi (mknod): Likewise.
34292         * modules/mknod-tests: New test.
34293         * tests/test-mknod.c: Likewise.
34294
34295         mkfifo: new module
34296         * modules/mkfifo: New file.
34297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34298         * lib/mkfifo.c (mkfifo): Likewise.
34299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34300         defaults.
34301         * modules/sys_stat (Makefile.am): Substitute them.
34302         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34303         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34304         Document it.
34305         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34306         * modules/mkfifo-tests: New test.
34307         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34308         from test-mkfifoat.c.
34309         * tests/test-mkfifo.c: New file.
34310
34311         readlink: detect FreeBSD bug
34312         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34313         slash on symlink.
34314         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34315         * tests/test-readlink.h (test_readlink): Enhance test.
34316
34317         symlink: detect FreeBSD bug
34318         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34319         slash on symlink.
34320         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34321         * tests/test-symlink.h (test_symlink): Enhance test.
34322
34323 2009-11-10  Eric Blake  <ebb9@byu.net>
34324
34325         link: detect FreeBSD bug
34326         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34327         symlink.
34328         * doc/posix-functions/link.texi (link): Document the bug.
34329         * tests/test-link.h (test_link): Enhance test.
34330         * tests/test-linkat.c (main): Update caller.
34331
34332         unlink, remove: detect FreeBSD bug
34333         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34334         slash on symlink.
34335         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34336         * doc/posix-functions/remove.texi (remove): Likewise.
34337         * tests/test-unlink.h (test_unlink): Enhance test.
34338         * tests/test-remove.c (main): Likewise.
34339
34340 2009-11-09  Eric Blake  <ebb9@byu.net>
34341
34342         rename: detect FreeBSD bug
34343         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34344         slash on symlink.
34345         * modules/renameat-tests (Depends-on): Add filenamecat.
34346         * tests/test-rename.h (test_rename): Allow one more errno.
34347         * tests/test-renameat.c (main): Likewise.
34348         * doc/posix-functions/rename.texi (rename): Document the bug.
34349
34350         open: detect FreeBSD bug
34351         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34352         symlink.
34353         * doc/posix-functions/open.texi (open): Document the bug.
34354         * doc/posix-functions/utimes.texi (utimes): Likewise.
34355         * tests/test-open.h (test_open): Add parameters, and test symlink
34356         handling.
34357         * tests/test-open.c (main): Adjust caller.
34358         * tests/test-fcntl-safer.c (main): Likewise.
34359         * modules/open-tests (Depends-on): Add stdbool, symlink.
34360         * modules/fcntl-safer-tests (Depends-on): Likewise.
34361         * tests/test-openat.c (main): Add test-open tests.
34362
34363         stat: detect FreeBSD bug
34364         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34365         symlink.
34366         * doc/posix-functions/stat.texi (stat): Document the bug.
34367         * tests/test-stat.h (test_stat_func): Add argument.
34368         * tests/test-stat.c (main): Adjust caller.
34369         * tests/test-fstatat.c (main): Likewise.
34370         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34371         Reported by Jim Meyering.
34372
34373 2009-11-09  James Youngman  <jay@gnu.org>
34374
34375         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34376         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34377
34378 2009-11-08  Jim Meyering  <meyering@redhat.com>
34379
34380         utimens: remove invalid futimesat call
34381         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34382         It used the file descriptor of the target file as the DIR_FD
34383         parameter and NULL as the file name.  That caused failure with
34384         errno == EFAULT on FreeBSD-8.0-rc2
34385
34386 2009-11-07  Eric Blake  <ebb9@byu.net>
34387
34388         fflush, freadseek: use fseeko, not fseek
34389         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34390         (clear_ungetc_buffer): Avoid potential problems on large files.
34391         * lib/freadseek.c (freadseek): Likewise.
34392         * modules/freadseek (Depends-on): Add fseeko.
34393         * modules/fseek (configure.ac): Set a witness.
34394         * tests/test-fflush.c (main): Use fseeko.
34395         * tests/test-fpurge.c (fseek): Disable link warning.
34396         * tests/test-freadable.c (fseek): Likewise.
34397         * tests/test-freading.c (fseek): Likewise.
34398         * tests/test-fseeko.c (fseek): Likewise.
34399         * tests/test-ftell.c (fseek): Likewise.
34400         * tests/test-ftello.c (fseek): Likewise.
34401         * tests/test-fwritable.c (fseek): Likewise.
34402         * tests/test-fwriting.c (fseek): Likewise.
34403
34404 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34405
34406         * modules/memchr (Depends-on): Drop getpagesize dependency.
34407
34408 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34409
34410         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34411         Reported by Ludovic Courtès.
34412         * build-aux/pmccabe2html: Improve example usage.
34413         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34414
34415 2009-11-06  Jim Meyering  <meyering@redhat.com>
34416
34417         do-release-commit-and-tag: New module.
34418         Automate the release-commit and tag process.
34419         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34420         * modules/do-release-commit-and-tag: New file.
34421         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34422
34423 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34424
34425         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34426         because test-select.c uses inet_pton.
34427
34428 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34429
34430         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34431         GETADDRINFO_LIB.  Bump serial number.
34432         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34433         Suggested by Eric Blake <ebb9@byu.net>.
34434
34435 2009-11-05  Eric Blake  <ebb9@byu.net>
34436
34437         strtod: detect darwin bug
34438         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34439         Reported by Leo Davis.
34440
34441         freopen-safer: new module
34442         * modules/freopen-safer: New module.
34443         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34444         * lib/freopen-safer.c (freopen_safer): New file.
34445         * lib/stdio-safer.h (freopen_safer): New declaration.
34446         * lib/stdio--.h (freopen): New override.
34447         * MODULES.html.sh (File stream based Input/Output): Mention it.
34448         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34449         freopen-safer module.
34450         * doc/posix-functions/stderr.texi (stderr): Likewise.
34451         * doc/posix-functions/stdin.texi (stdin): Likewise.
34452         * doc/posix-functions/stdout.texi (stdout): Likewise.
34453         * modules/freopen-safer-tests: New test.
34454         * tests/test-reopen-safer.c: New file.
34455
34456 2009-11-05  Jim Meyering  <meyering@redhat.com>
34457
34458         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34459         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34460
34461 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34462
34463         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34464
34465 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34466
34467         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34468
34469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34470
34471         Fix link error.
34472         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34473         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34474
34475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34476
34477         * tests/test-func.c: Also test value of __func__.
34478
34479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34480
34481         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34482         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34483
34484 2009-11-05  Bruno Haible  <bruno@clisp.org>
34485
34486         Fix link error.
34487         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34488         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34489         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34490
34491 2009-11-05  Bruno Haible  <bruno@clisp.org>
34492
34493         Tests for module 'inet_pton'.
34494         * modules/inet_pton-tests: New file.
34495         * tests/test-inet_pton.c: New file.
34496
34497 2009-11-05  Bruno Haible  <bruno@clisp.org>
34498
34499         Tests for module 'inet_ntop'.
34500         * modules/inet_ntop-tests: New file.
34501         * tests/test-inet_ntop.c: New file.
34502
34503 2009-11-04  Eric Blake  <ebb9@byu.net>
34504
34505         stdlib-safer: wrap all mkstemp variants
34506         * modules/mkostemp (configure.ac): Set witness.
34507         * modules/mkostemps (configure.ac): Likewise.
34508         * modules/mkstemps (configure.ac): Likewise.
34509         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34510         (mkstemps_safer): Wrap more functions.
34511         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34512         wrapping.
34513         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34514         (mkstemps_safer): Implement the wrappers.
34515
34516         mkstemps, mkostemps: new modules
34517         * modules/mkostemps: New module.
34518         * modules/mkstemps: Likewise.
34519         * lib/mkostemps.c (mkostemps): New file.
34520         * lib/mkstemps.c (mkstemps): Likewise.
34521         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34522         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34524         * modules/stdlib (Makefile.am): Substitute them.
34525         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34526         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34527         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34528         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34529         * MODULES.html.sh (File system functions): Mention them.
34530
34531         tempname: resync from glibc
34532         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34533         same values for __GT_FILE as glibc.  Abort even when assertions
34534         are disabled.
34535         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34536         match its value otherwise.  Allow idempotent inclusion.
34537         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34538         * lib/mkostemp.c (mkostemp): Likewise.
34539         * lib/mkstemp.c (mkstemp): Likewise.
34540         * lib/tmpfile.c (tmpfile): Likewise.
34541         * NEWS: Document this.
34542
34543         utimens: fix use of futimens on older Linux
34544         * lib/utimens.c (fdutimens): Use updated, rather than original,
34545         timespec to avoid bug in older Linux kernel.
34546         Reported by Simon Josefsson.
34547
34548 2009-11-04  Bruno Haible  <bruno@clisp.org>
34549
34550         Make num_processors more flexible and consistent.
34551         * lib/nproc.h (enum nproc_query): New type.
34552         (num_processors): Add a 'query' argument.
34553         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34554         (num_processors): Add a 'query' argument. Test the value of the
34555         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34556         mingw, count the number of CPUs available for the current process.
34557         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34558         Check for sched_getaffinity and sched_getaffinity_np.
34559         * modules/nproc (Depends-on): Add c-ctype, extensions.
34560         * NEWS: Mention the change.
34561
34562 2009-11-03  Bruno Haible  <bruno@clisp.org>
34563
34564         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34565
34566 2009-11-03  Jim Meyering  <meyering@redhat.com>
34567
34568         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34569         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34570         if it is defined.
34571
34572 2009-11-02  Eric Blake  <ebb9@byu.net>
34573
34574         mktime, timegm: share common declaration
34575         * lib/mktime-internal.h: New file.
34576         * lib/mktime.c: Use it rather than open-coding a declaration.
34577         * lib/timegm.c: Likewise.
34578         * modules/mktime (Files): Ship it.
34579         * modules/timegm (Files): Likewise.
34580         Suggested by Bruno Haible.
34581
34582         test-update-copyright: update test to match script changes
34583         * tests/test-update-copyright.sh: Avoid hard-coding perl
34584         location.  Don't update *.bak created by earlier runs.
34585
34586 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34587             Simon Josefsson  <simon@josefsson.org>
34588             Bruno Haible  <bruno@clisp.org>
34589
34590         Fix link error on Solaris 8.
34591         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34592         also in libnsl. Define also INET_PTON_LIB.
34593         * modules/inet_pton (Link): New section.
34594
34595 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34596             Bruno Haible  <bruno@clisp.org>
34597
34598         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34599         * modules/inet_ntop (Link): New section.
34600         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34601
34602 2009-11-02  Eric Blake  <ebb9@byu.net>
34603
34604         maint: avoid compiler warnings in m4 macros
34605         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34607
34608 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34609
34610         * m4/pmccabe2html.m4: Remove file.
34611         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34612         function.  Change maintainer.
34613         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34614         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34615         Courtès).
34616
34617 2009-10-31  Eric Blake  <ebb9@byu.net>
34618
34619         fseeko: fix m4 regression
34620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34621         regression from 2009-10-27.
34622         Reported by Ralf Wildenhues.
34623
34624 2009-10-31  Jim Meyering  <meyering@redhat.com>
34625
34626         inttostr: aesthetics and improved (compile-time) safety
34627         Define inttype_is_signed rather than inttype_is_unsigned,
34628         since the sole use is via "#if inttype_is_signed".
34629         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34630         inttype_is_unsigned.
34631         * lib/offtostr.c (inttype_is_signed): Likewise.
34632         * lib/uinttostr.c (inttype_is_signed): Likewise.
34633         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34634         * lib/inttostr.c (inttostr): Use verify to cross-check the
34635         inttype_is_signed value and the signedness of the actual type.
34636         * modules/inttostr (Depends-on): Add verify.
34637
34638 2009-10-30  Eric Blake  <ebb9@byu.net>
34639
34640         build: avoid compiler warnings
34641         * lib/fchmodat.c (lchmod): Mark unused variables.
34642         * lib/getopt.c (_getopt_initialize): Likewise.
34643         * lib/mktime.c (__mktime_internal): Provide prototype.
34644         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34645         older gcc that do not understand #pragma GCC diagnostic.
34646         * lib/uinttostr.c (inttype_is_unsigned): Define.
34647         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34648
34649 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34650
34651         stat: fix compilation on AIX
34652         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34653         only see struct stat64.
34654
34655 2009-10-30  Eric Blake  <ebb9@byu.net>
34656
34657         exclude: make more robust
34658         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34659         rather than masking a coding bug.
34660         Suggested by Bruno Haible.
34661
34662 2009-10-30  Jim Meyering  <meyering@redhat.com>
34663
34664         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34665         Rather than putting #!/usr/bin/perl on the first line,
34666         start with a variant of what's recommended by "man perlrun" that
34667         invokes the first "perl" program from your shell's search path.
34668         * build-aux/gitlog-to-changelog: Replace #!... as above.
34669         Add a "Local Variables" perl mode setting.
34670         Prompted by a patch from Ludovic Courtès.
34671         Improved by Eric Blake.
34672         * build-aux/useless-if-before-free: Likewise.
34673         * build-aux/announce-gen: Likewise.
34674         * build-aux/update-copyright: Likewise.
34675
34676 2009-10-29  Eric Blake  <ebb9@byu.net>
34677
34678         filenamecat-lgpl: adjust clients
34679         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34680         filenamecat.
34681         * modules/renameat (Depends-on): Likewise.
34682
34683         filenamecat: split into filenamecat-lgpl
34684         * modules/filenamecat-lgpl: New module.
34685         * modules/filenamecat (Files): Move library-safe files into
34686         filenamecat-lgpl.
34687         (Depends-on): Add filenamecat-lgpl.
34688         (configure.ac): Declare witness.
34689         * lib/filenamecat.h (file_name_concat): Only declare when using
34690         GPL module.
34691         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34692         Move...
34693         * lib/filenamecat-lgpl.c: ...into new file.
34694         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34695         (gl_FILE_NAME_CONCAT): Use it.
34696         * MODULES.html.sh (File system functions): Mention new module.
34697
34698         argp: avoid memory leak
34699         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34700         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34701         base_name, since the latter malloc()s and can call exit().
34702         Leak introduced 2006-07-03.
34703
34704         dirname-lgpl: adjust clients that don't need full dirname
34705         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34706         * modules/filenamecat (Depends-on): Likewise.
34707         * modules/linkat (Depends-on): Likewise.
34708         * modules/mkancesdirs (Depends-on): Likewise.
34709         * modules/mkdir (Depends-on): Likewise.
34710         * modules/openat (Depends-on): Likewise.
34711         * modules/savewd (Depends-on): Likewise.
34712         * modules/rename (Depends-on): Likewise.
34713         (License): Relax license.
34714         * modules/mkdir-tests (Depends-on): Drop progname.
34715         (Makefile.am): Delete unneeded LDADD.
34716         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34717
34718         dirname: split into dirname-lgpl
34719         * modules/dirname-lgpl: New module.
34720         * modules/dirname (Files): Move library-safe files into
34721         dirname-lgpl.
34722         (Depends-on): Add dirname-lgpl.
34723         (configure.ac): Declare witness.
34724         * modules/double-slash-root (License): Relax license.
34725         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34726         module.
34727         * lib/dirname.c (dir_len, mdir_name): Move...
34728         * lib/dirname-lgpl.c: ...into new file.
34729         * lib/basename.c (last_component, base_len): Move...
34730         * lib/basename-lgpl.c: ...into new file.
34731         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34732         (gl_DIRNAME): Use it.
34733         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34734         Mention new module.
34735         * modules/dirname-tests (Depends-on): Add progname.
34736         * tests/test-dirname.c (program_name): Delete.
34737
34738         mkdir: make safe for libraries
34739         * modules/mkdir (Depends-on): Drop xalloc.
34740         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34741         exit.
34742
34743         tests: avoid some compiler warnings
34744         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34745         literals.
34746         * tests/test-memchr.c (main): Avoid type mismatch.
34747         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34748         * tests/test-base64.c (main): Likewise.
34749         * tests/test-getdelim.c (main): Likewise.
34750         * tests/test-gethostname.c (main): Likewise.
34751         * tests/test-getline.c (main): Likewise.
34752         * tests/test-netinet_in.c (main): Likewise.
34753         * tests/test-select.c (open_server_socket, main): Likewise.
34754         * tests/test-select-stdin.c (main): Likewise.
34755         * tests/test-sockets.c (main): Likewise.
34756         * tests/test-strsignal.c (main): Likewise.
34757         * tests/test-sys_select.c (main): Likewise.
34758         * tests/test-sys_socket.c (main): Likewise.
34759         * tests/test-u64.c (main): Likewise.
34760         * tests/test-xfprintf-posix.c (main): Likewise.
34761         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34762
34763         sockets: avoid compiler warning
34764         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34765
34766         maint: detect usage(1) and other suspicious exits
34767         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34768
34769 2009-10-29  Jim Meyering  <meyering@redhat.com>
34770
34771         timespec: long-to-int truncation could make timespec_cmp malfunction
34772         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34773         a multiple of 2^32 nanoseconds as no difference.
34774
34775 2009-10-28  Jim Meyering  <meyering@redhat.com>
34776
34777         fprintftime: wrap macro code argument in "do {...} while(0)"
34778         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34779         cpy macro must be a statement that can be followed by a semicolon.
34780         Now that the else clause contains a comment and is hence longer
34781         than one line, I require curly braces.  That in turn requires
34782         that we wrap this code block in the standard do...while(0).
34783
34784         fprintftime: remove stray semicolon from previous change
34785         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34786
34787         fprintftime: avoid a warning about ignored fwrite return value
34788         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34789         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34790         that is unsafe.
34791         * modules/fprintftime (Depends-on): Add ignore-value.
34792
34793         exclude: avoid an unwarranted warning
34794         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34795
34796 2009-10-27  Eric Blake  <ebb9@byu.net>
34797
34798         fseek: avoid compilation failure when fflush is replaced
34799         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34800         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34801         module is in use.
34802         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34803         module is not in use; since REPLACE_FSEEK worked otherwise.
34804         (GNULIB_FTELLO): Likewise for ftell.
34805         Reported by Ian Beckwith and others.
34806
34807 2009-10-27  Bruno Haible  <bruno@clisp.org>
34808
34809         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34810         Reported by Jim Meyering.
34811
34812 2009-10-27  Jim Meyering  <jim@meyering.net>
34813             Bruno Haible  <bruno@clisp.org>
34814
34815         Avoid warning despite dropping the return value of fwrite.
34816         * lib/unicodeio.c: Include ignore-value.h.
34817         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34818         * modules/unicodeio (Depends-on): Add ignore-value.
34819
34820 2009-10-26  Eric Blake  <ebb9@byu.net>
34821
34822         areadlinkat: fix fallback path
34823         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34824         pointer and zero.
34825
34826 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34827
34828         Use a better IO block size for modern systems
34829         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34830         * lib/md2.c: Likewise.
34831         * lib/md4.c: Likewise.
34832         * lib/md5.c: Likewise.
34833         * lib/sha1.c: Likewise.
34834         * lib/sha256.c: Likewise.
34835         * lib/sha512.c: Likewise.
34836
34837 2009-10-22  Eric Blake  <ebb9@byu.net>
34838
34839         tests: avoid several compiler warnings
34840         * tests/test-getcwd.c (main): Avoid buffer underflow.
34841         * tests/test-getdate.c (main): String literals are not safe with
34842         putenv, so use setenv.  Declare unused argument.
34843         * modules/getdate-tests (Depends-on): Add setenv.
34844         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34845         problems with string literals in char *.
34846         * tests/test-hash.c (main): Avoid shadowing declaration.
34847         (insert_new): Treat string literals as char const *.
34848         * tests/test-getopt.h (test_getopt): Likewise.
34849         (getopt_loop): Alter types to minimize casting elsewhere.
34850         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34851         (test_getopt_long_posix): Likewise.
34852         (do_getopt_long): Add wrapper to minimize casting.
34853         * tests/test-atexit.c (clear_temp_file): Use void.
34854         * tests/test-areadlink-with-size.c (main): Declare unused
34855         arguments.
34856         * tests/test-areadlink.c (main): Likewise.
34857         * tests/test-areadlinkat-with-size.c (main): Likewise.
34858         * tests/test-areadlinkat.c (main): Likewise.
34859         * tests/test-canonicalize-lgpl.c (main): Likewise.
34860         * tests/test-canonicalize.c (main): Likewise.
34861         * tests/test-dirent-safer.c (main): Likewise.
34862         * tests/test-dirname.c (main): Likewise.
34863         * tests/test-dup2.c (main): Likewise.
34864         * tests/test-fchdir.c (main): Likewise.
34865         * tests/test-fcntl-h.c (main): Likewise.
34866         * tests/test-fcntl-safer.c (main): Likewise.
34867         * tests/test-fdopendir.c (main): Likewise.
34868         * tests/test-fdutimensat.c (main): Likewise.
34869         * tests/test-fflush.c (main): Likewise.
34870         * tests/test-filenamecat.c (main): Likewise.
34871         * tests/test-filevercmp.c (main): Likewise.
34872         * tests/test-fopen-safer.c (main): Likewise.
34873         * tests/test-fopen.c (main): Likewise.
34874         * tests/test-fpending.c (main): Likewise.
34875         * tests/test-fpurge.c (main): Likewise.
34876         * tests/test-freading.c (main): Likewise.
34877         * tests/test-fstatat.c (main): Likewise.
34878         * tests/test-fsync.c (main): Likewise.
34879         * tests/test-futimens.c (main): Likewise.
34880         * tests/test-getndelim2.c (main): Likewise.
34881         * tests/test-gettimeofday.c (main): Likewise.
34882         * tests/test-getopt.c (main): Likewise.
34883         * tests/test-i-ring.c (main): Likewise.
34884         * tests/test-inttypes.c (main): Likewise.
34885         * tests/test-link.c (main): Likewise.
34886         * tests/test-lstat.c (main): Likewise.
34887         * tests/test-math.c (main): Likewise.
34888         * tests/test-md5.c (main): Likewise.
34889         * tests/test-memchr2.c (main): Likewise.
34890         * tests/test-memrchr.c (main): Likewise.
34891         * tests/test-mkdir.c (main): Likewise.
34892         * tests/test-mkdirat.c (main): Likewise.
34893         * tests/test-mkfifoat.c (main): Likewise.
34894         * tests/test-open.c (main): Likewise.
34895         * tests/test-openat-safer.c (main): Likewise.
34896         * tests/test-openat.c (main): Likewise.
34897         * tests/test-quotearg.c (main): Likewise.
34898         * tests/test-rawmemchr.c (main): Likewise.
34899         * tests/test-readlink.c (main): Likewise.
34900         * tests/test-remove.c (main): Likewise.
34901         * tests/test-rename.c (main): Likewise.
34902         * tests/test-renameat.c (main): Likewise.
34903         * tests/test-rmdir.c (main): Likewise.
34904         * tests/test-sha1.c (main): Likewise.
34905         * tests/test-signal.c (main): Likewise.
34906         * tests/test-sigaction.c (main): Likewise.
34907         * tests/test-stat.c (main): Likewise.
34908         * tests/test-stat-time.c (main): Likewise.
34909         * tests/test-stddef.c (main): Likewise.
34910         * tests/test-stdint.c (main): Likewise.
34911         * tests/test-stdio.c (main): Likewise.
34912         * tests/test-stdlib.c (main): Likewise.
34913         * tests/test-strchrnul.c (main): Likewise.
34914         * tests/test-strerror.c (main): Likewise.
34915         * tests/test-string.c (main): Likewise.
34916         * tests/test-strtod.c (main): Likewise.
34917         * tests/test-strverscmp.c (main): Likewise.
34918         * tests/test-symlink.c (main): Likewise.
34919         * tests/test-symlinkat.c (main): Likewise.
34920         * tests/test-sys_stat.c (main): Likewise.
34921         * tests/test-sys_time.c (main): Likewise.
34922         * tests/test-time.c (main): Likewise.
34923         * tests/test-unistd.c (main): Likewise.
34924         * tests/test-unlink.c (main): Likewise.
34925         * tests/test-unlinkat.c (main): Likewise.
34926         * tests/test-utimens.c (main): Likewise.
34927         * tests/test-utimensat.c (main): Likewise.
34928         * tests/test-version-etc.c (main): Likewise.
34929         * tests/test-wchar.c (main): Likewise.
34930         * tests/test-wctype.c (main): Likewise.
34931         * tests/test-xprintf-posix.c (main): Likewise.
34932         * tests/test-posixtm.c (main): Likewise.
34933         (STREQ): Delete unused macro.
34934         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34935         shadowed variables.
34936         * tests/test-memchr.c (main): Likewise.
34937
34938 2009-10-21  Eric Blake  <ebb9@byu.net>
34939
34940         areadlinkat: avoid failure on older glibc
34941         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34942         rather than mis-comparing 0 against FUNC_RESULT of char*.
34943
34944 2009-10-21  Bruno Haible  <bruno@clisp.org>
34945
34946         * modules/stpncpy (License): Relicense under LGPLv2+.
34947         Reported by David Lutterkort <lutter@redhat.com>.
34948
34949 2009-10-20  Eric Blake  <ebb9@byu.net>
34950
34951         utimensat: work around Solaris 9 bug
34952         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34953         has trailing slash bugs.
34954         * tests/test-lutimens.h (test_lutimens): Enhance test.
34955         * tests/test-utimens.h (test_utimens): Likewise.
34956         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34957         * doc/posix-functions/utimes.texi (utimes): Likewise.
34958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34959         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34960         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34961         * doc/posix-functions/futimens.texi (futimens): Likewise.
34962
34963         fdutimensat: new module
34964         * modules/fdutimensat: New file.
34965         * lib/fdutimensat.c (fdutimensat): Likewise.
34966         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34967         * MODULES.html.sh (File system functions): Mention module.
34968         * modules/fdutimensat-tests: New test.
34969         * tests/test-fdutimensat.c: Likewise.
34970
34971         doc: regenerate INSTALL
34972         * doc/INSTALL: Reflect recent autoconf update.
34973         * doc/INSTALL.ISO: Likewise.
34974         * doc/INSTALL.UTF-8: Likewise.
34975
34976 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34977
34978         acl: warn if ACL support is not detected
34979         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34980
34981 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34982
34983         * lib/nproc.h: Add extern "C" block for C++.
34984
34985 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34986             Bruno Haible  <bruno@clisp.org>
34987
34988         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34989         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34990         * doc/posix-functions/isalpha.texi: Likewise.
34991         * doc/posix-functions/isblank.texi: Likewise.
34992         * doc/posix-functions/iscntrl.texi: Likewise.
34993         * doc/posix-functions/isdigit.texi: Likewise.
34994         * doc/posix-functions/isgraph.texi: Likewise.
34995         * doc/posix-functions/islower.texi: Likewise.
34996         * doc/posix-functions/isprint.texi: Likewise.
34997         * doc/posix-functions/ispunct.texi: Likewise.
34998         * doc/posix-functions/isspace.texi: Likewise.
34999         * doc/posix-functions/isupper.texi: Likewise.
35000         * doc/posix-functions/isxdigit.texi: Likewise.
35001
35002 2009-10-18  Bruno Haible  <bruno@clisp.org>
35003
35004         Tests for module 'isblank'.
35005         * modules/isblank-tests: New file.
35006         * tests/test-isblank.c: New file.
35007
35008         New module 'isblank'.
35009         * lib/isblank.c: New file.
35010         * m4/isblank.m4: New file.
35011         * modules/isblank: New file.
35012         * doc/posix-functions/isblank.texi: Mention the new module.
35013
35014 2009-10-18  Bruno Haible  <bruno@clisp.org>
35015
35016         New module 'ctype'.
35017         * lib/ctype.in.h: New file.
35018         * m4/ctype.m4: New file.
35019         * modules/ctype: New file.
35020         * doc/posix-headers/ctype.texi: Mention the new module.
35021
35022 2009-10-18  Jim Meyering  <meyering@redhat.com>
35023
35024         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35025         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35026         right after its initialization, rather than farther down.
35027         Keeping these in close proximity makes it easier to ensure
35028         that each such variable is initialized.  E.g.,
35029
35030             LIB_CLOCK_GETTIME=
35031             AC_SUBST([LIB_CLOCK_GETTIME])
35032
35033         This change also increments these serial numbers.
35034         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35037
35038 2009-10-18  Bruno Haible  <bruno@clisp.org>
35039
35040         Don't let environment variables perturb build.
35041         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35042         (gl_PREREQ_GETHRXTIME): ... not here.
35043
35044 2009-10-18  Bruno Haible  <bruno@clisp.org>
35045
35046         Avoid symlink attack in localcharset module.
35047         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35048         (O_NOFOLLOW): Define fallback.
35049         (get_charset_aliases): Don't open the file if it is a symbolic link.
35050         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35051         gl_FCNTL_H.
35052         (gl_FCNTL_H): Require it.
35053         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35054         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35055         Reported by Fergal Glynn <fglynn@veracode.com>.
35056
35057 2009-10-18  Bruno Haible  <bruno@clisp.org>
35058
35059         Implement nproc for mingw.
35060         * lib/nproc.c: Include <windows.h>
35061         (num_processors): On native Windows platforms, try GetSystemInfo.
35062
35063 2009-10-18  Bruno Haible  <bruno@clisp.org>
35064
35065         Implement nproc for IRIX.
35066         * lib/nproc.c: Include <sys/sysmp.h>.
35067         (num_processors): On IRIX systems, try sysmp.
35068         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35069
35070 2009-10-18  Bruno Haible  <bruno@clisp.org>
35071
35072         Implement nproc for HP-UX.
35073         * lib/nproc.c: Include <sys/pstat.h>
35074         (num_processors): On HP-UX systems, try pstat_getdynamic.
35075         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35076         pstat_getdynamic.
35077
35078 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35079             Bruno Haible  <bruno@clisp.org>
35080
35081         Implement nproc for NetBSD, OpenBSD.
35082         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35083         (ARRAY_SIZE): New macro.
35084         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35085         * m4/nproc.m4: New file.
35086         * modules/nproc (Files): Add m4/nproc.m4.
35087         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35088         (Makefile.am): Instead, augment lib_SOURCES.
35089
35090 2009-10-18  Bruno Haible  <bruno@clisp.org>
35091
35092         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35093         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35094         sys/param.h.
35095
35096 2009-10-16  Eric Blake  <ebb9@byu.net>
35097
35098         utimensat: new module
35099         * modules/utimensat: New file.
35100         * lib/utimensat.c (utimensat): Likewise.
35101         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35102         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35103         so we can work around Linux bugs.
35104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35105         * modules/sys_stat (Makefile.am): Substitute them.
35106         * lib/sys_stat.in.h (utimensat): Declare it.
35107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35109         * modules/utimensat-tests: New test.
35110         * tests/test-utimensat.c: Likewise.
35111
35112         utimens: let lutimens work on non-symlinks
35113         * lib/utimens.c (lutimens): Fall back to utimens rather than
35114         failing with ENOSYS, when file is not a symlink.
35115         (utimens): Reduce redirection.
35116         * tests/test-lutimens.h (test_lutimens): Update test to cover
35117         non-symlinks.
35118         * tests/test-utimens.h (test_utimens): Update test to cover
35119         symlinks.
35120         * tests/test-utimens.c (main): Update caller.
35121
35122         utimens: cache whether utimensat syscall works
35123         * lib/utimens.c (utimensat_works_really): New cache variable.
35124         (fdutimens, lutimens): Use it to avoid failing syscall.
35125
35126         test-stat-time, test-utimens: improve portability
35127         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35128         ext4 on alpha, and for cygwin.
35129         * tests/test-utimens-common.h: New file.
35130         (nap): Factor delays into single function.
35131         * tests/test-lutimens.h (test_lutimens): Use new header.
35132         * tests/test-futimens.h (test_futimens): Likewise.
35133         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35134         timestamps to occur from same machine, as was done previously for
35135         test_utimens.
35136         * modules/utimens-tests (Files): Ship new file.
35137         * modules/futimens-tests (Files): Likewise.
35138         Reported in part by Jim Meyering.
35139
35140         sys_stat: sort replacement declarations
35141         * lib/sys_stat.in.h: Sort declarations.
35142         * lib/futimens.c (futimens): Fix typo.
35143
35144 2009-10-15  Jim Meyering  <meyering@redhat.com>
35145
35146         don't let environment settings perturb build
35147         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35148         could cause a configure-time and/or build-time malfunction.
35149         Typically, a configure-time function-in-library test is performed
35150         via code like this:
35151
35152           LIB_VAR=
35153           AC_SUBST([LIB_VAR])
35154           prefix_saved_LIBS=$LIBS
35155             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35156                        [test "$ac_cv_search_FUNC" = "none required" ||
35157                         LIB_VAR=$ac_cv_search_FUNC])
35158           LIBS=$prefix_saved_LIBS
35159
35160         However, in each of the files affected by this change, the LIB_VAR=
35161         initialization was omitted.  Thus, when set in the environment, its
35162         value would propagate into generated Makefiles when FUNC is not found
35163         in LIB_NAME.
35164         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35165         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35167
35168 2009-10-14  Eric Blake  <ebb9@byu.net>
35169
35170         fchdir: avoid infinite recursion in mingw
35171         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35172         recursing.
35173
35174         test-stat-time: port to mingw
35175         * tests/test-stat-time.c (force_unlink): Return a value.
35176         (test_ctime) [W32]: Fix compilation error.
35177         (nap): Don't call usleep with too large an argument.  Use
35178         force_unlink.
35179         * doc/pastposix-functions/usleep.texi (usleep): Document the
35180         portability issue.
35181
35182 2009-10-13  Jim Meyering  <meyering@redhat.com>
35183
35184         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35185         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35186         * modules/pipe-filter-ii: Likewise.
35187         * modules/sys_socket-tests: Likewise.
35188         * modules/tsearch-tests: Likewise.
35189         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35190         (check): Depend on it.
35191
35192 2009-10-12  Eric Blake  <ebb9@byu.net>
35193
35194         utimens-tests: port to NFS file systems
35195         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35196         comparisons to avoid spurious failures from timestamp drift
35197         between NFS machines.
35198
35199 2009-10-12  Eric Blake  <ebb9@byu.net>
35200
35201         stat-time-tests: minor cleanups
35202         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35203         * tests/test-stat-time.c (nap): Separate assignment from call.
35204         Suggested by Paolo Bonzini and Bruno Haible.
35205
35206         sys_stat: guarantee struct timespec
35207         * lib/sys_stat.in.h (includes): Always include <time.h>
35208         * modules/sys_stat (Depends-on): Add time.
35209         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35210         mode_t permission values.
35211         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35212         get at subsecond timestamps.
35213
35214 2009-10-10  Eric Blake  <ebb9@byu.net>
35215
35216         futimens: new module
35217         * modules/futimens: New file.
35218         * lib/futimens.c (futimens): Likewise.
35219         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35220         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35221         we can work around Linux bugs.
35222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35223         * modules/sys_stat (Makefile.am): Substitute them.
35224         * lib/sys_stat.in.h (futimens): Declare it.
35225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35226         * doc/posix-functions/futimens.texi (futimens): Likewise.
35227         * modules/futimens-tests: New test.
35228         * tests/test-futimens.c: Likewise.
35229
35230         utimens: introduce fdutimens
35231         * lib/utimens.h (fdutimens): New prototype.
35232         * lib/utimens.c (gl_futimens): Move guts...
35233         (fdutimens): ...to new interface.
35234         * tests/test-utimens.c (do_fdutimens): Use it.
35235
35236         utimens: add UTIME_NOW and UTIME_OMIT support
35237         * lib/utimens.c (validate_timespec, update_timespec): New helper
35238         functions.
35239         (gl_futimens, lutimens): Use them.
35240         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35241         stdbool, sys_stat.
35242         (Link): Mention resulting library dependency.
35243         * modules/utimecmp (Link): Likewise.
35244         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35245         (Makefile.am): Pick up library dependency.
35246         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35247         definition.
35248         * tests/test-sys_stat.c: Test the definitions.
35249         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35250         * NEWS: Document library dependency.
35251
35252         utimecmp: support symlink timestamps
35253         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35254         hashing when possible.  Use pathconf when available.
35255         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35256         * modules/utimecmp (Depends-on): Add lstat.
35257
35258         utimens: add lutimens interface
35259         * lib/utimens.c (lutimens): New function.
35260         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35261         * lib/utimens.h (lutimens): Declare new interface.
35262         * tests/test-utimens.c (main): Enhance test.
35263         * tests/test-lutimens.h (test_lutimens): New file.
35264         * modules/utimens-tests (Files): Distribute it.
35265         (Depends-on): Add symlink.
35266         (configure.ac): Check for usleep.
35267
35268         utimens: validate futimens usage
35269         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35270         fewer syscalls on failure later on.  Avoid compiler warning on
35271         mingw.
35272         * modules/utimens (Depends-on): Add dup2.
35273
35274         utimens: add test
35275         * modules/utimens-tests: New test.
35276         * tests/test-utimens.h: New file.
35277         * tests/test-futimens.h: Likewise.
35278         * tests/test-utimens.c: Likewise.
35279
35280         doc: mention timestamp portability issues
35281         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35282         instead.
35283         * doc/posix-functions/utime.texi (utime): Likewise.
35284         * doc/posix-functions/utimes.texi (utimes): Likewise.
35285         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35286         instead.
35287         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35288         module.
35289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35290         Mention weakness with symlink timestamps.
35291         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35292         to utimensat/futimens instead.
35293         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35294
35295         test-dup2: enhance test
35296         * tests/test-dup2.c (main): Also check AT_FDCWD.
35297
35298         test-stat-time: avoid more spurious failures
35299         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35300         xfs; and avoid race if the two timestamps cross quantization edge.
35301
35302         relocatable: prefer 'file system' over 'filesystem'
35303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35304         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35305         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35306         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35307         * lib/relocatable.c (compute_curr_prefix): Likewise.
35308
35309 2009-10-10  Jim Meyering  <meyering@redhat.com>
35310
35311         stat-time-tests: check for the usleep function
35312         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35313
35314 2009-10-10  Bruno Haible  <bruno@clisp.org>
35315
35316         * modules/xnanosleep: Put the Link section after the Include section.
35317
35318 2009-10-09  Eric Blake  <ebb9@byu.net>
35319
35320         dup2: work around FreeBSD 6.1 bug
35321         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35322         * doc/posix-functions/dup2.texi (dup2): Document it.
35323         Reported by Nelson H. F. Beebe and Jim Meyering.
35324
35325         test-stat-time: port to buggy NFS clients
35326         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35327         (test_ctime): Also skip test if mtime and ctime are skewed.
35328
35329         maint: prefer 'file system' over 'filesystem'
35330         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35331         * doc/posix-functions/lstat.texi (lstat): Likewise.
35332         * lib/file-has-acl.c (file_has_acl): Likewise.
35333         * lib/fwriteerror.c [TEST]: Likewise.
35334         * tests/test-areadlink.h (test_areadlink): Likewise.
35335         * tests/test-areadlinkat-with-size.c (main): Likewise.
35336         * tests/test-areadlinkat.c (main): Likewise.
35337         * tests/test-canonicalize-lgpl.c (main): Likewise.
35338         * tests/test-canonicalize.c (main): Likewise.
35339         * tests/test-fstatat.c (main): Likewise.
35340         * tests/test-linkat.c (main): Likewise.
35341         * tests/test-lstat.h (test_lstat_func): Likewise.
35342         * tests/test-mkdir.h (test_mkdir): Likewise.
35343         * tests/test-readlink.h (test_readlink): Likewise.
35344         * tests/test-remove.c (main): Likewise.
35345         * tests/test-rename.h (test_rename): Likewise.
35346         * tests/test-renameat.c (main): Likewise.
35347         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35348         * tests/test-symlink.h (test_symlink): Likewise.
35349         * tests/test-symlinkat.c (main): Likewise.
35350         * tests/test-unlink.h (test_unlink_func): Likewise.
35351         * tests/test-unlinkat.c (main): Likewise.
35352
35353         maint: make realtime library usage explicit
35354         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35355         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35356         * modules/settime (Link): Likewise.
35357         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35358
35359         test-stat-time: speed up execution
35360         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35361         warning on mingw.
35362         (nap): New helper function.
35363         (prepare_test): Use it to reduce sleep time.
35364         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35365         execution.
35366         * modules/stat-time-tests (configure.ac): Check for usleep.
35367
35368 2009-10-09  Jim Meyering  <meyering@redhat.com>
35369
35370         selinux-h: always use getfilecon wrappers
35371         * lib/getfilecon.c: New file.
35372         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35373         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35374         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35375         (fgetfilecon): Provide a stub.
35376         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35377         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35378         file unconditionally.
35379         When <selinux/selinux.h> is found, arrange to use wrappers.
35380         * modules/selinux-h (Files): Add getfilecon.c.
35381         (Makefile.am): Substitute include-next-related bits
35382         into the now-always-generated selinux/selinux.h file.
35383         * doc/glibc-functions/lgetfilecon.texi: New file.
35384         * doc/glibc-functions/fgetfilecon.texi: New file.
35385         * doc/glibc-functions/getfilecon.texi: New file.
35386         * doc/glibc-functions/getfilecon-desc.texi: New file.
35387         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35388         which to pull in the new files.
35389         * MODULES.html.sh (Misc): Add selinux-h.
35390
35391 2009-10-08  Jim Meyering  <meyering@redhat.com>
35392
35393         unistd: fix comment typo
35394         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35395
35396 2009-10-08  Eric Blake  <ebb9@byu.net>
35397
35398         areadlink: use SIZE_MAX consistently
35399         * modules/areadlink (Depends-on): Add stdint.
35400         * modules/areadlink-with-size (Depends-on): Likewise.
35401         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35402         gives NULL; drop sys/types, since unistd gives size_t; and add
35403         stdint for SIZE_MAX.
35404         (SIZE_MAX): Rely on headers.
35405         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35406         and add stdint.
35407         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35408         (SIZE_MAX): Likewise.
35409         (INITIAL_BUF_SIZE): Turn into enum.
35410         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35411
35412 2009-10-08  Jim Meyering  <meyering@redhat.com>
35413
35414         areadlinkat: avoid compilation failure
35415         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35416         Fix typo in comment.
35417
35418 2009-10-07  Eric Blake  <ebb9@byu.net>
35419
35420         areadlinkat-with-size: new module
35421         * modules/areadlinkat-with-size: New module.
35422         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35423         * lib/areadlink.h (areadlinkat): Declare it.
35424         * MODULES.html.sh (File system functions): Mention it.
35425         * modules/areadlinkat-with-size-tests: New test.
35426         * tests/test-areadlinkat-with-size.c: New file.
35427
35428         xreadlinkat: new module
35429         * modules/xreadlinkat: New module.
35430         * lib/xreadlinkat.c (xreadlinkat): New file.
35431         * lib/xreadlink.h (xreadlinkat): Declare it.
35432         * MODULES.html.sh (File system functions): Mention it.
35433
35434         areadlinkat: new module
35435         * lib/at-func.c (FUNC_FAIL): New define.
35436         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35437         * modules/areadlinkat: New module.
35438         * lib/linkat.c (areadlinkat): Move...
35439         * lib/areadlinkat.c (areadlinkat): ...to new file.
35440         * lib/areadlink.h (areadlinkat): Declare it.
35441         * modules/linkat (Depends-on): Add areadlinkat.
35442         * MODULES.html.sh (File system functions): Mention it.
35443         * modules/areadlinkat-tests: New test.
35444         * tests/test-areadlinkat.c: New file.
35445
35446         areadlink, areadlink-with-size: add tests
35447         * modules/areadlink-tests: New test.
35448         * modules/areadlink-with-size-tests: Likewise.
35449         * tests/test-areadlink.h: New file.
35450         * tests/test-areadlink.c: Likewise.
35451         * tests/test-areadlink-with-size.c: Likewise.
35452
35453         maint: minor cleanups
35454         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35455         _UNUSED_PARAMETER_ instead.
35456         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35457         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35458         * modules/linkat-tests (Files): Distribute test-link.h.
35459
35460         openat, utimens: whitespace cleanup
35461         * lib/openat.c: Prefer space throughout, rather than mix of 8
35462         spaces vs. tabs.
35463         * lib/at-func.c: Likewise.
35464         * lib/utimens.c: Likewise.
35465
35466         openat: avoid using wrong fd
35467         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35468         working directory chooses same fd.
35469         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35470
35471         mkdir, mkdirat: fix cygwin 1.5.x bug
35472         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35473         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35474         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35475         bug.
35476         (gl_PREREQ_MKDIR): Delete unused macro.
35477         * modules/mkdir (Files): Track file rename.
35478         (configure.ac): Update macro name.
35479         * modules/openat (Depends-on): Add mkdir.
35480         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35481
35482         mkdir, mkdirat: add tests
35483         * modules/mkdir-tests: New test.
35484         * tests/test-mkdir.h: New file.
35485         * tests/test-mkdir.c: Likewise.
35486         * tests/test-mkdirat.c: Likewise.
35487         * modules/openat-tests (Files): Add new files.
35488         (Makefile.am): Run new test.
35489
35490 2009-10-06  Eric Blake  <ebb9@byu.net>
35491
35492         doc: tweak *at function documentation
35493         * doc/posix-functions/faccessat.texi (faccessat): Mention
35494         known issue with replacement.
35495         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35496         * doc/posix-functions/linkat.texi (linkat): Likewise.
35497         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35498         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35499         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35500         * doc/posix-functions/renameat.texi (renameat): Likewise.
35501         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35502
35503         openat: fix GNU/Hurd bug in unlinkat
35504         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35505         broken.
35506         * doc/posix-functions/unlink.texi (unlink): Document this.
35507         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35508
35509         fdopendir: fix GNU/Hurd bug
35510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35511         allowing non-directory fds.
35512         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35514         * modules/dirent (Makefile.am): Substitute it.
35515         * lib/dirent.in.h (fdopendir): Declare replacement.
35516         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35517         * tests/test-fdopendir.c (main): Test something other than
35518         /dev/null, since on Hurd that behaves like a directory.
35519
35520         test-symlink: port to GNU/Hurd
35521         * tests/test-symlink.h (test_symlink): Relax expected errno.
35522
35523         doc: tweak more cygwin information
35524         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35525         now compatible with glibc.
35526         * doc/posix-functions/getopt.texi (getopt): Likewise.
35527
35528         getopt-gnu: add another test
35529         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35530         guarantee behavior relied on by m4.
35531         * tests/test-getopt.c (main): Use it.
35532         * modules/getopt-posix-tests (Depends-on): Add setenv.
35533         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35534
35535         getopt: fix compilation on darwin
35536         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35537         include.
35538         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35539         Reported by Ludovic Courtès.
35540
35541 2009-10-06  Bruno Haible  <bruno@clisp.org>
35542
35543         * modules/size_max (Description): Discourage its use.
35544         Reported by Simon Josefsson.
35545
35546 2009-10-06  Jim Meyering  <meyering@redhat.com>
35547
35548         linkat: avoid compilation failure
35549         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35550
35551 2009-10-05  Eric Blake  <ebb9@byu.net>
35552
35553         linkat: support Linux 2.6.17
35554         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35555         linkat on Linux, but allow cache variable override.
35556         * lib/linkat.c (rpl_linkat): Define override.
35557         * modules/linkat (Depends-on): Add symlinkat.
35558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35559         * modules/unistd (Makefile.am): Substitute it.
35560         * lib/unistd.in.h (linkat): Declare replacement.
35561         Reported by Pádraig Brady.
35562
35563         quotearg: port test to systems with C.UTF-8 locale
35564         * tests/test-quotearg.c (struct result_strings): Add another
35565         member, differentiating between C.ASCII and C.UTF-8 handling.
35566         (compare_strings): Add parameter.
35567         (main): Adjust all callers.
35568
35569         getopt: avoid clash with FreeBSD _getopt_internal
35570         * lib/getopt.in.h (_getopt_internal): Override the name.
35571         * lib/getopt_int.h (includes): Pick up any overrides.
35572         Reported by Reuben Thomas.
35573
35574         hash: allow C89 compilation
35575         * lib/hash.c (check_tuning): Move declaration before statement.
35576         Reported by Reuben Thomas.
35577
35578 2009-10-05  Karl Berry  <karl@gnu.org>
35579
35580         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35581
35582 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35583             Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/uname.c (uname): Use a table-driven algorithm to compute
35586         Windows NT versions.
35587
35588 2009-10-04  Bruno Haible  <bruno@clisp.org>
35589
35590         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35591         program_invocation_short_name.
35592         * modules/progname (configure.ac): Test for presence of
35593         program_invocation_short_name.
35594         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35595
35596 2009-10-04  Bruno Haible  <bruno@clisp.org>
35597
35598         * lib/progname.c (set_program_name): Fix comment.
35599         Reported by Jim Meyering.
35600
35601 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35602             Bruno Haible  <bruno@clisp.org>
35603
35604         * lib/uname.c: Include <string.h>.
35605         (uname): Do only one call to GetVersionEx in the common case.
35606
35607 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35608             Bruno Haible  <bruno@clisp.org>
35609
35610         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35611         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35612         (uname): Add support for Windows CE and various non-x86 CPU types.
35613
35614 2009-10-03  Bruno Haible  <bruno@clisp.org>
35615
35616         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35617         invocation to tests/configure.ac.
35618         Reported by Ian Beckwith <ianb@erislabs.net>.
35619
35620 2009-10-02  Eric Blake  <ebb9@byu.net>
35621
35622         fchdir: avoid compiler warning
35623         * lib/fchdir.c (canonicalize_file_name)
35624         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35625
35626         test-open: support mingw errno values
35627         * tests/test-open.h (test_open): Relax test.
35628         * tests/test-fopen.h (test_fopen): Likewise.
35629         * tests/test-openat-safer.c (main): Likewise.
35630
35631         open: fix opening directory on mingw
35632         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35633
35634         test-open: on GNU/Hurd, /dev/null is a directory
35635         * tests/test-fopen.h (main): Rename...
35636         (test_fopen): ...to this.  Use a guaranteed non-directory when
35637         confirming open behavior on trailing slash.
35638         * tests/test-openat-safer.c (main): Likewise.
35639         * tests/test-open.h (main): Likewise....
35640         (test_open): ...to this.
35641         * tests/test-fopen.c (main): Adjust caller.
35642         * tests/test-fopen-safer.c (main): Likewise.
35643         * tests/test-open.c (main): Likewise.
35644         * tests/test-fcntl-safer.c (main): Likewise.
35645         Reported by Samuel Thibault.
35646
35647         rename, fchdir: don't ignore chdir failure
35648         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35649         * lib/rename.c (rpl_rename) [W32]: Likewise.
35650         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35651         an empty destination directory if source cannot be renamed,
35652         although there is still possibility for failure.
35653         * doc/posix-functions/rename.texi (rename): Document the race.
35654         Reported by Jim Meyering.
35655
35656         maint: cleanup whitespace in recent commits
35657         * lib/rename.c (rpl_rename): Remove tabs.
35658         * tests/test-link.h (test_link): Likewise.
35659         * lib/fchdir.c (get_name): Likewise.
35660         Reported by Jim Meyering.
35661
35662 2009-10-02  Ben Pfaff  <blp@gnu.org>
35663
35664         relocatable-prog-wrapper: Add missing dependency on
35665         double-slash-root.
35666         * modules/relocatable-prog-wrapper: Add dependency.
35667         Reported by Ian Beckwith <ianb@erislabs.net>.
35668
35669 2009-10-02  Eric Blake  <ebb9@byu.net>
35670
35671         renameat: fix Solaris bugs
35672         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35673         needed fixing.
35674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35675         * modules/stdio (Makefile.am): Substitute it.
35676         * lib/stdio.in.h (renameat): Declare replacement.
35677         * lib/renameat.c (rpl_renameat): Implement fix.
35678
35679         renameat: new module
35680         * modules/renameat: New file.
35681         * lib/renameat.c (renameat): Likewise.
35682         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35684         * modules/stdio (Makefile.am): Substitute them.
35685         * lib/stdio.in.h (renameat): Declare it.
35686         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35687         * doc/posix-functions/renameat.texi (renameat): Likewise.
35688         * modules/renameat-tests: New test.
35689         * tests/test-renameat.c: Likewise.
35690
35691         rename: fix mingw bugs
35692         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35693         directory overwrite bugs.
35694
35695         rename: fix another cygwin 1.5 bug
35696         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35697         checks.
35698         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35699         unnecessary cygwin workarounds.  Also work around bug with moving
35700         full directory onto an empty one.
35701         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35702
35703         rename-dest-slash: merge into rename module
35704         * modules/rename-dest-slash (Status): Mark obsolete.
35705         (Depends-on): Add rename.
35706         (Files): Let rename do it all.
35707         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35708         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35709         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35710         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35711         * lib/rename.c (rpl_rename): Update comments.
35712
35713         rename: fix cygwin 1.5.x bugs
35714         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35715         * lib/rename.c (rpl_rename): Work around them.
35716         * modules/rename (Depends-on): Add same-inode.
35717
35718         rename: fix Solaris 10 bug
35719         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35720         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35721         was the only bug.
35722
35723         rename: fix Solaris 9 bug
35724         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35725         on non-directory.  Avoid calling exit.
35726         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35727         strdup.
35728         * modules/rename-tests (Depends-on): Drop lstat.
35729         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35730         (gl_PREREQ_RENAME): Delete unused macro.
35731
35732         rename-dest-slash: fix NetBSD bug
35733         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35734         links.
35735         * modules/rename-dest-slash (Depends-on): Add same-inode.
35736
35737         rename-tests: new test, exposes several platform bugs
35738         * modules/rename-tests: New file.
35739         * tests/test-rename.h: Likewise.
35740         * tests/test-rename.c: Likewise.
35741         * doc/posix-functions/rename.texi (rename): Improve documentation,
35742         including bugs that will eventually be fixed in gnulib.
35743
35744 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35745
35746         * lib/uname.c: Include <stdlib.h>
35747         (uname): Assume version info is available.
35748
35749 2009-10-02  Jim Meyering  <meyering@redhat.com>
35750
35751         gnu-web-doc-update: correct --help output
35752         * build-aux/gnu-web-doc-update: Make --help output relevant.
35753
35754         gnu-web-doc-update: add standard options
35755         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35756
35757         gnu-web-doc-update: New module.
35758         Use this script to automatically update the on-line web documentation
35759         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35760         * modules/gnu-web-doc-update: New file, from coreutils.
35761         * build-aux/gnu-web-doc-update: New script.
35762
35763 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35764
35765         link: LoadLibrary is not needed.
35766         * lib/link.c: Use GetModuleHandle.
35767
35768 2009-10-01  Eric Blake  <ebb9@byu.net>
35769
35770         getopt: bump serial number
35771         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35772         change.
35773
35774         tests: tighten link, rmdir, and remove tests
35775         * tests/test-link.h (includes): No need to use <config.h> here.
35776         Clean up if directory hard link was created, otherwise test for
35777         trailing '.'.
35778         * tests/test-linkat.c (main): Simplify.
35779         * tests/test-remove.c (main): Enhance test for trailing '.'.
35780         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35781
35782 2009-10-01  Jim Meyering  <meyering@redhat.com>
35783
35784         maint.mk: requiring "make major" was annoying, for a "minor" release.
35785         What is intended is "stable", to contrast with alpha and beta,
35786         so require "make stable", not "make major".
35787         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35788         (get_tool_versions): Likewise.
35789         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35790
35791 2009-09-30  Ben Pfaff  <blp@gnu.org>
35792
35793         Fix broken build of replacement for Windows tmpfile().
35794         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35795         flags argument added along with the 'mkostemp' module.
35796
35797 2009-09-28  Bruno Haible  <bruno@clisp.org>
35798
35799         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35800         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35801         to 'remove_elt'.
35802         (gl_list_remove): Update.
35803         * lib/gl_list.c (gl_list_remove): Update.
35804         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35805         to 'remove_elt'.
35806         (gl_oset_remove): Update.
35807         * lib/gl_list.c (gl_oset_remove): Update.
35808         Reported by Eric Blake.
35809
35810 2009-09-28  Eric Blake  <ebb9@byu.net>
35811
35812         doc: mention yet more cygwin 1.7 status
35813         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35814         cygwin.
35815         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35816         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35817
35818         argp: fix test failure
35819         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35820         that are not upper-case.  Pass correct range to tolower.
35821
35822 2009-09-27  Jim Meyering  <meyering@redhat.com>
35823
35824         test-yesno: work around sparc-dash here-document infelicity
35825         Without this change, the literal \177 byte in a here document
35826         would make dash 0.5.5.1-3 access uninitialized memory.
35827         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35828         Instead, use a marker, "@", and filter through tr to create the desired
35829         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35830
35831 2009-09-27  Bruno Haible  <bruno@clisp.org>
35832
35833         Disable untested support for new flavours of ACLs on AIX.
35834         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35835         progress.
35836         * lib/set-mode-acl.c (qset_acl): Likewise.
35837
35838 2008-12-07  Bruno Haible  <bruno@clisp.org>
35839
35840         Add support for new flavours of ACLs on AIX. (Untested.)
35841         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35842         (file_has_acl): Add support for newer AIX.
35843         * lib/set-mode-acl.c (qset_acl): Likewise.
35844         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35845         Rainer Tammer <tammer@tammer.net>.
35846
35847 2009-09-26  Eric Blake  <ebb9@byu.net>
35848
35849         argp: fix compilation of getopt
35850         * lib/getopt.in.h (includes): Use different guard than glibc.
35851         Reported by Sergey Poznyakoff.
35852
35853         doc: mention more cygwin 1.7 status
35854         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35855         bug.
35856         * doc/posix-functions/execl.texi (execl): Likewise.
35857         * doc/posix-functions/execle.texi (execle): Likewise.
35858         * doc/posix-functions/execlp.texi (execlp): Likewise.
35859         * doc/posix-functions/execv.texi (execv): Likewise.
35860         * doc/posix-functions/execve.texi (execve): Likewise.
35861         * doc/posix-functions/execvp.texi (execvp): Likewise.
35862         * doc/glibc-functions/canonicalize_file_name.texi
35863         (canonicalize_file_name): Cygwin 1.7 now provides this.
35864         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35865         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35866         on AT_SYMLINK_NOFOLLOW.
35867
35868 2009-09-24  Eric Blake  <ebb9@byu.net>
35869
35870         test-linkat: make test more robust
35871         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35872
35873         getopt: fix inclusion guards for cygwin
35874         * modules/getopt-posix (Depends-on): Add include-next.
35875         (Makefile.am): Substitute more items in replacement header.
35876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35877         <getopt.h>.
35878         * lib/getopt.in.h (includes): Use split inclusion guard, and
35879         prefer <getopt.h> over include <unistd.h> when one is present.
35880         (option): Also override name of 'struct option'.
35881
35882         same-inode: revert prior change; it is not yet ready
35883         * NEWS: Undo mention of this change.
35884         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35885         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35886         * lib/cycle-check.c (cycle_check): Likewise.
35887         * lib/same.c (same_name): Likewise.
35888         * lib/at-func2.c (at_func2): Likewise.
35889
35890 2009-09-23  Eric Blake  <ebb9@byu.net>
35891
35892         linkat: new module
35893         * modules/linkat: New file.
35894         * lib/at-func2.c (at_func2): Likewise.
35895         * lib/linkat.c (linkat): Likewise.
35896         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35897         * lib/openat-priv.h (at_func2): Add declaration.
35898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35899         * modules/unistd (Makefile.am): Substitute them.
35900         * lib/unistd.in.h (linkat): Declare it.
35901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35902         * doc/posix-functions/linkat.texi (linkat): Likewise.
35903         * doc/posix-functions/link.texi (link): Tweak wording.
35904         * tests/test-link.c (main): Move guts...
35905         * tests/test-link.h (test_link): ...into new file.
35906         * modules/linkat-tests: New test.
35907         * tests/test-linkat.c: Likewise.
35908         * modules/link-tests (Files): Ship new file.
35909         (Depends-on): Add stdbool.
35910
35911         dirname: add library-safe mdir_name
35912         * lib/dirname.h (mdir_name): New prototype.
35913         * lib/dirname.c (dir_name): Move guts...
35914         (mdir_name): ...to new function that avoids xalloc_die.
35915
35916         fchdir: another mingw fix
35917         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35918         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35919         on mingw (where it has not yet been ported), and make it optional
35920         elsewhere.
35921         (_gl_register_fd): Use it.
35922
35923         same-inode: make SAME_INODE tri-state, to port to mingw
35924         * NEWS: Mention this change.
35925         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35926         st_ino always being 0.
35927         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35928         * lib/cycle-check.c (cycle_check): Likewise.
35929         * lib/same.c (same_name): Likewise.
35930
35931         lstat: avoid mingw compilation error
35932         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35933         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35934         lstat ourselves.
35935         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35936         was adequate.
35937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35938         the checks for lstat.
35939         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35940
35941         link: fix test failure on Solaris 9
35942         * lib/link.c (rpl_link): Don't assume link will catch bogus
35943         trailing slash on source.
35944
35945         test-symlinkat: enhance test
35946         * tests/test-readlink.c (main): Move guts...
35947         * tests/test-readlink.h (test_readlink): ...into new file.
35948         * tests/test-symlink.c (main): Move guts...
35949         * tests/test-symlink.h (test_symlink): ...into new file.
35950         * tests/test-symlinkat.c (main): Use new files for further
35951         coverage.
35952         (do_symlink, do_readlink): New helper functions.
35953         * modules/symlink-tests (Files): Ship new file.
35954         (Depends-on): Add stdbool.
35955         * modules/readlink-tests (Files): Ship new file.
35956         (Depends-on): Add stdbool.
35957         * modules/symlinkat-tests (Files): Use new files.
35958
35959 2009-09-23  Eric Blake  <ebb9@byu.net>
35960
35961         readlink: document portability issue with symlink length
35962         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35963         systems have bogus st_size on symlinks, and mention the
35964         areadlink-with-size module.
35965         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35966         * doc/posix-functions/readlink.texi (readlink): Mention the
35967         areadlink module, and ERANGE failure.
35968         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35969         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35970
35971         readlink: fix Solaris 9 bug with trailing slash
35972         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35973         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35974         * doc/posix-functions/readlink.texi (readlink): Document this.
35975         * modules/readlink-tests: New test.
35976         * tests/test-readlink.c: Likewise.
35977
35978         readlink: fix cygwin 1.5.x bug with return type
35979         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35980         * lib/unistd.in.h (readlink): Use ssize_t.
35981         * lib/readlink.c (readlink): Likewise.
35982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35983         * modules/unistd (Makefile.am): Substitute it.
35984         * lib/unistd.in.h (readlink): Declare replacement.
35985         * doc/posix-functions/readlink.texi (readlink): Document this.
35986
35987         symlink: use throughout gnulib
35988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35989         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35990         symlink is not used.
35991         * modules/symlinkat (Depends-on): Add symlink.
35992         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35993         * modules/canonicalize-tests (Depends-on): Likewise.
35994         * modules/lstat-tests (Depends-on): Likewise.
35995         * modules/openat-tests (Depends-on): Likewise.
35996         * modules/remove-tests (Depends-on): Likewise.
35997         * modules/rmdir-tests (Depends-on): Likewise.
35998         * modules/unlink-tests (Depends-on): Likewise.
35999         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36000         * tests/test-canonicalize.c (symlink): Likewise.
36001         * tests/test-fstatat.c (symlink): Likewise.
36002         * tests/test-lstat.c (symlink): Likewise.
36003         * tests/test-remove.c (symlink): Likewise.
36004         * tests/test-rmdir.c (symlink): Likewise.
36005         * tests/test-unlink.c (symlink): Likewise.
36006         * tests/test-unlinkat.c (symlink): Likewise.
36007
36008         symlink: new module, for Solaris 9 bug
36009         * modules/symlink: New file.
36010         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36011         * lib/symlink.c: Likewise.
36012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36013         * modules/unistd (Makefile.am): Substitute them.
36014         * lib/unistd.in.h (symlink): Declare replacement.
36015         * MODULES.html.sh (File system functions): Mention it.
36016         * doc/posix-functions/symlink.texi (symlink): Likewise.
36017         * modules/symlink-tests: New test.
36018         * tests/test-symlink.c: Likewise.
36019
36020 2009-09-23  Bruno Haible  <bruno@clisp.org>
36021
36022         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36023         when needed.
36024         Test case: gnulib-tool --import --with-tests atexit inttypes.
36025         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36026
36027 2009-09-23  Bruno Haible  <bruno@clisp.org>
36028
36029         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36030         subcommand, not in a subshell.
36031
36032 2009-09-22  Eric Blake  <ebb9@byu.net>
36033
36034         unistd: sort replacement declarations
36035         * lib/unistd.in.h: Sort declarations.
36036
36037         open, openat: minor optimization
36038         * lib/open.c (open): If open succeeded, len is non-zero.
36039         * lib/openat.c (rpl_openat): Likewise.
36040
36041         link-follow: ensure correct result
36042         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36044         distinguish between possible failures.
36045
36046 2009-09-21  Eric Blake  <ebb9@byu.net>
36047
36048         fts: avoid compiler warning
36049         * lib/fts.c (dirent_inode_sort_may_be_useful)
36050         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36051
36052 2009-09-19  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/progreloc.c (canonicalize_file_name): New declaration.
36055
36056 2009-09-19  Eric Blake  <ebb9@byu.net>
36057
36058         link: fix quoting
36059         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36060
36061         openat: fix openat bugs on Solaris 9
36062         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36063         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36064         * modules/openat (Depends-on): Add open.
36065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36066         * modules/fcntl-h (Makefile.am): Substitute it.
36067         * lib/fcntl.in.h (openat): Declare replacement.
36068         * doc/posix-functions/openat.texi (openat): Document this.
36069
36070         openat: move fstatat and unlinkat into correct files
36071         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36072         compiled.
36073         * lib/openat.c (fstatat, unlinkat): Move...
36074         * lib/fstatat.c (fstatat): ...into correct files.
36075         * lib/unlinkat.c (unlinkat): Likewise.
36076
36077         openat: fix unlinkat bugs on Solaris 9
36078         * lib/unlinkat.c (unlinkat): New file.
36079         * modules/openat (Depends-on): Add unlink.
36080         (Files): Distribute it.
36081         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36082         trailing slash behavior is broken.
36083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36084         * modules/unistd (Makefile.am): Substitute it.
36085         * lib/unistd.in.h (unlinkat): Declare replacement.
36086         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36087
36088         openat: fix fstatat bugs on Solaris 9
36089         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36090         stat.
36091         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36092
36093         test-unlinkat: enhance test, to expose Solaris 9 bug
36094         * tests/test-unlink.c (main): Factor guts...
36095         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36096         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36097         * tests/test-rmdir.c (main): Adjust caller.
36098         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36099         (unlinker): New helper function.
36100         (rmdirat): Enhance check.
36101         * modules/rmdir-tests (Depends-on): Add stdbool.
36102         * modules/unlink-tests (Depends-on): Likewise.
36103         (Files): Add test-unlink.h.
36104         * modules/openat-tests (Files): Likewise.
36105         (Depends-on): Add unlinkdir.
36106
36107         test-fstatat: new test, to expose Solaris 9 bugs
36108         * tests/test-stat.c (main): Factor guts...
36109         * tests/test-stat.h (test_stat_func): ...into new file.
36110         * tests/test-lstat.c (main): Factor guts...
36111         * tests/test-lstat.h (test_lstat_func): ...into new file.
36112         * tests/test-fstatat.c: New file.
36113         * modules/stat-tests (Files): Add test-stat.h.
36114         * modules/lstat-tests (Files): Add test-lstat.h.
36115         (Depends-on): Add stdbool.
36116         * modules/openat-tests (Depends-on): Add pathmax.
36117         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36118         (Makefile.am): Run new test.
36119
36120         remove: new module, for mingw and Solaris 9 bugs
36121         * modules/remove: New file.
36122         * lib/remove.c: Likewise.
36123         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36125         * modules/stdio (Makefile.am): Use them.
36126         * lib/stdio.in.h (remove): Declare replacement.
36127         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36128         * doc/posix-functions/remove.texi (remove): Likewise.
36129         * modules/remove-tests: New test.
36130         * tests/test-remove.c: Likewise.
36131
36132         unlink: new module, for Solaris 9 bug
36133         * modules/unlink: New file.
36134         * lib/unlink.c: Likewise.
36135         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36137         * modules/unistd (Makefile.am): Use them.
36138         * lib/unistd.in.h (stat): Declare replacement.
36139         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36140         * doc/posix-functions/unlink.texi (unlink): Likewise.
36141         * modules/unlink-tests: New test.
36142         * tests/test-unlink.c: Likewise.
36143
36144         lstat: fix Solaris 9 bug
36145         * lib/lstat.c (lstat): Also check for trailing slash on
36146         non-symlink, non-directories.  Use stat module to simplify logic.
36147         * doc/posix-functions/lstat.texi (lstat): Document it.
36148         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36149         (configure.ac): Check for symlink.
36150         * tests/test-lstat.c (main): Add more tests.
36151
36152         stat: add as dependency to other modules
36153         * modules/chown (Depends-on): Add stat.
36154         * modules/euidaccess (Depends-on): Likewise.
36155         * modules/fchdir (Depends-on): Likewise.
36156         * modules/isdir (Depends-on): Likewise.
36157         * modules/link (Depends-on): Likewise.
36158         * modules/lstat (Depends-on): Likewise.
36159         * modules/mkdir-p (Depends-on): Likewise.
36160         * modules/modechange (Depends-on): Likewise.
36161         * modules/open (Depends-on): Likewise.
36162         * modules/readlink (Depends-on): Likewise.
36163         * modules/same (Depends-on): Likewise.
36164
36165         stat: fix Solaris 9 bug
36166         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36167         slash.
36168         * lib/stat.c (rpl_stat): Work around it.
36169         * doc/posix-functions/stat.texi (stat): Update documentation.
36170
36171         stat: new module, for mingw bug
36172         * modules/stat: New file.
36173         * lib/stat.c: Likewise.
36174         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36176         * modules/sys_stat (Makefile.am): Use them.
36177         * lib/sys_stat.in.h (stat): Declare replacement.
36178         * lib/openat.c (fstatat): Deal with lstat and stat being function
36179         macros.
36180         * modules/openat (Depends-on): Add inline.
36181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36182         * doc/posix-functions/stat.texi (stat): Likewise.
36183         * modules/stat-tests: New test.
36184         * tests/test-stat.c: Likewise.
36185
36186 2009-09-19  Jim Meyering  <meyering@redhat.com>
36187
36188         syntax-check: detect unnecessary inclusion of canonicalize.h
36189         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36190
36191 2009-09-19  Eric Blake  <ebb9@byu.net>
36192
36193         canonicalize-lgpl: adjust clients to use correct header
36194         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36195         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36196         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36197         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36198         * lib/progreloc.c (includes): Likewise.
36199
36200 2009-09-19  Jim Meyering  <meyering@redhat.com>
36201
36202         test-posixtm.c: correct a comment
36203         * tests/test-posixtm.c: Correct first-line comment.
36204         Spotted by Eric Blake.
36205
36206 2009-09-16  Jim Meyering  <meyering@redhat.com>
36207
36208         posixtm-tests: make T const-correct; add a test case
36209         * tests/test-posixtm.c (T): Declare const.
36210         Add a test for -(2^31+1).
36211         Remove useless can-succeed-only-in-2002 test.
36212
36213         posixtm-tests: adjust the sole failing test
36214         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36215         expected output matches what mktime now produces.  Cross-checked via
36216         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36217
36218         posixtm: move #ifdef'd tests into a new module
36219         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36220         * tests/test-posixtm.c: ... this new file.
36221         * modules/posixtm-tests: New module.
36222
36223 2009-09-19  Eric Blake  <ebb9@byu.net>
36224
36225         openat: simplify use of at-func.c
36226         * lib/at-func.c (includes): Include prerequisites here, to
36227         simplify requirements on client files.
36228         * lib/openat-priv.h: Add double-inclusion guard.
36229         * lib/faccessat.c (includes): Simplify.
36230         * lib/fchmodat.c (includes): Likewise.
36231         * lib/fchownat.c (includes): Likewise.
36232         * lib/mkdirat.c (includes): Likewise.
36233         * lib/mkfifoat.c (includes): Likewise.
36234         * lib/symlinkat.c (includes): Likewise.
36235
36236         openat: allow return of fd 0
36237         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36238         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36239         unistd-safer.
36240         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36241         <fcntl.h>; this module does not leak fds.
36242         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36243         must be allowed to return 0, leaving openat_safer to add the
36244         safety.
36245         (openat_permissive): Avoid writing to just-opened fd 2 if
36246         restoring the current directory fails.
36247         * lib/openat-die.c (openat_restore_fail): Add comment.
36248         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36249         (save_cwd): Guarantee safe fd, but without use of open_safer.
36250         * tests/test-openat.c: New test.
36251         * modules/openat-tests (Files, Makefile.am): Distribute and build
36252         new file.
36253
36254         relocatable-prog-wrapper: fix build
36255         * modules/relocatable-prog-wrapper (Files): Update name of
36256         canonicalize m4 file, broken on 2009-09-17.
36257         Reported by emad hajjar <aleppos@hotmail.com>.
36258
36259 2009-09-19  Bruno Haible  <bruno@clisp.org>
36260
36261         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36262         * lib/safe-alloc.c: Likewise.
36263         Reported by Ian Beckwith <ianb@erislabs.net>.
36264
36265 2009-09-18  Bruno Haible  <bruno@clisp.org>
36266
36267         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36268         Reported by <erobles@sensacd.com.mx>.
36269
36270 2009-09-17  Eric Blake  <ebb9@byu.net>
36271
36272         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36273         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36274         slashes when checking if last component is missing.
36275         * tests/test-canonicalize.c (main): Test this.
36276
36277         canonicalize, canonicalize-lgpl: honor // if distinct from /
36278         * modules/canonicalize (Files): Add double-slash-root.m4.
36279         * modules/canonicalize-lgpl (Files): Likewise.
36280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36281         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36282         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36283         fallback definition.
36284         (canonicalize_filename_mode): Use it to protect //.
36285         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36286         (__realpath): Likewise.
36287         * tests/test-canonicalize.c (main): Test this.
36288         * tests/test-canonicalize-lgpl.c (main): Likewise.
36289         * modules/canonicalize-tests (Depends-on): Add same-inode.
36290         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36291
36292         canonicalize-lgpl: fix glibc bug with trailing slash
36293         * m4/canonicalize-lgpl.m4: Move contents...
36294         * m4/canonicalize.m4: ...here.
36295         (gl_CANONICALIZE_LGPL): Factor realpath check...
36296         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36297         glibc 2.3.5 bug, fixed 2005-04-27.
36298         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36299         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36300         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36301         * modules/canonicalize-lgpl (Files): Manage file rename.
36302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36303         * modules/stdlib (Makefile.am): Substitute witness.
36304         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36305         is needed.
36306         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36307         replacement is required.
36308         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36309         * doc/glibc-functions/canonicalize_file_name.texi
36310         (canonicalize_file_name): Document this.
36311         * doc/posix-functions/realpath.texi (realpath): Likewise.
36312
36313         canonicalize-lgpl: reject non-directory with trailing slash
36314         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36315         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36316         catches failures in glibc 2.3.5.
36317         * tests/test-canonicalize.c (main): Likewise.
36318
36319         canonicalize-lgpl: use native realpath if it works
36320         * lib/canonicalize-lgpl.c (realpath): Guard with
36321         FUNC_REALPATH_WORKS.
36322         * lib/stdlib.in.h (realpath): Make declaration optional based on
36323         HAVE_REALPATH.
36324         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36325         native realpath works.
36326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36327         * modules/stdlib (Makefile.am): Substitute witness.
36328
36329         canonicalize, canonicalize-lgpl: use <stdlib.h>
36330         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36331         (Include): Mention <stdlib.h>.
36332         (configure.ac): Mention functions we provide.
36333         * modules/canonicalize (configure.ac): Likewise.
36334         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36335         realpath if canonicalize_file_name is missing.
36336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36337         * modules/stdlib (Makefile.am): Substitute witnesses.
36338         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36339         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36340         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36341         * NEWS: Document this.
36342         * doc/glibc-functions/canonicalize_file_name.texi
36343         (canonicalize_file_name): Likewise.
36344         * doc/posix-functions/realpath.texi (realpath): Likewise.
36345         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36346
36347         test-canonicalize: consolidate into single C program
36348         * tests/test-canonicalize.sh: Delete; move setup into...
36349         * tests/test-canonicalize.c (main): ...the program, making it
36350         easier to run in debugger.  Add some tests.
36351         * modules/canonicalize-tests (Files): Remove unused file.
36352         (Depends-on): Add progname.
36353         (configure.ac, Makefile.am): Simplify.
36354
36355         test-canonicalize-lgpl: consolidate into single C program
36356         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36357         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36358         easier to run in debugger.  Add some tests.
36359         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36360         (configure.ac, Makefile.am): Simplify.
36361
36362         canonicalize: avoid resolvepath
36363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36364         unnecessary checks.
36365         * lib/canonicalize.c (includes): Simplify.
36366         (canonicalize_file_name): Drop resolvepath implementation.
36367         * modules/canonicalize (Depends-on): Drop filenamecat.
36368
36369         canonicalize: don't lose errno
36370         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36371         over calls to free.
36372
36373         canonicalize: simplify errno handling
36374         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36375         assignment.
36376
36377         canonicalize, canonicalize-lgpl: update module dependencies
36378         * modules/canonicalize (Depends-on): Add extensions, lstat,
36379         pathmax, stdlib.
36380         (Files): Drop pathmax.h.
36381         (configure.ac): Adjust macro name.
36382         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36383         lstat, stdlib, sys_stat.
36384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36385         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36386         extensions.
36387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36388         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36389         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36390         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36391         declaration, if available.
36392         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36393         we can rely on the readlink module.
36394         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36395         (includes): Use <unistd.h> unconditionally.
36396
36397 2009-09-17  Eric Blake  <ebb9@byu.net>
36398
36399         maint: make Include sections of modules consistent
36400         * modules/alloca: Use only header name; no need to list #include.
36401         * modules/alloca-opt: Likewise.
36402         * modules/arpa_inet: Likewise.
36403         * modules/canon-host: Likewise.
36404         * modules/configmake: Likewise.
36405         * modules/dirent: Likewise.
36406         * modules/eealloc: Likewise.
36407         * modules/environ: Likewise.
36408         * modules/fchdir: Likewise.
36409         * modules/fcntl: Likewise.
36410         * modules/fcntl-h: Likewise.
36411         * modules/gethrxtime: Likewise.
36412         * modules/gettime: Likewise.
36413         * modules/ignore-value: Likewise.
36414         * modules/inet_ntop: Likewise.
36415         * modules/inet_pton: Likewise.
36416         * modules/inttypes: Likewise.
36417         * modules/isnand-nolibm: Likewise.
36418         * modules/isnanf-nolibm: Likewise.
36419         * modules/mbchar: Likewise.
36420         * modules/mbfile: Likewise.
36421         * modules/mbiter: Likewise.
36422         * modules/mbuiter: Likewise.
36423         * modules/netdb: Likewise.
36424         * modules/netinet_in: Likewise.
36425         * modules/nproc: Likewise.
36426         * modules/pagealign_alloc: Likewise.
36427         * modules/poll: Likewise.
36428         * modules/printf-frexp: Likewise.
36429         * modules/pthread: Likewise.
36430         * modules/putenv: Likewise.
36431         * modules/random_r: Likewise.
36432         * modules/relocatable-prog: Likewise.
36433         * modules/search: Likewise.
36434         * modules/select: Likewise.
36435         * modules/selinux-h: Likewise.
36436         * modules/settime: Likewise.
36437         * modules/signal: Likewise.
36438         * modules/size_max: Likewise.
36439         * modules/socklen: Likewise.
36440         * modules/ssize_t: Likewise.
36441         * modules/stdarg: Likewise.
36442         * modules/stdbool: Likewise.
36443         * modules/stddef: Likewise.
36444         * modules/stdint: Likewise.
36445         * modules/stdio: Likewise.
36446         * modules/stdlib: Likewise.
36447         * modules/string: Likewise.
36448         * modules/strings: Likewise.
36449         * modules/sys_file: Likewise.
36450         * modules/sys_ioctl: Likewise.
36451         * modules/sys_select: Likewise.
36452         * modules/sys_socket: Likewise.
36453         * modules/sys_stat: Likewise.
36454         * modules/sys_time: Likewise.
36455         * modules/sys_times: Likewise.
36456         * modules/sys_utsname: Likewise.
36457         * modules/sys_wait: Likewise.
36458         * modules/sysexits: Likewise.
36459         * modules/time: Likewise.
36460         * modules/times: Likewise.
36461         * modules/tmpfile: Likewise.
36462         * modules/trim: Likewise.
36463         * modules/unistd: Likewise.
36464         * modules/wchar: Likewise.
36465         * modules/wctype: Likewise.
36466
36467 2009-09-17  Bruno Haible  <bruno@clisp.org>
36468
36469         Make getdate.y compile on QNX and NetBSD 5 / i386.
36470         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36471         TIME_T_FITS_IN_LONG_INT.
36472         * lib/getdate.y (long_time_t): New type.
36473         (relative_time): Change type of 'seconds' field to long_time_t.
36474         (get_date): Update types of local variables. Check against overflow
36475         during conversion from long_time_t to time_t.
36476         Reported by Matt Kraai <kraai@ftbfs.org>
36477         and Hasso Tepper <hasso@netbsd.org>.
36478
36479 2009-09-17  Bruno Haible  <bruno@clisp.org>
36480
36481         * modules/COPYING: Update copyright years.
36482         * modules/README: Likeiwse.
36483         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36484         Reported by Ian Beckwith <ianb@erislabs.net>.
36485
36486 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36487
36488         * users.txt: Update references for gnuit package.
36489
36490 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36491
36492         * m4/getdelim.m4: Fix typo in copyright line.
36493
36494 2009-09-17  Bruno Haible  <bruno@clisp.org>
36495
36496         * lib/atoll.c: Use the standard header with GPL copyright.
36497         * lib/argz.in.h: Likewise.
36498         * lib/glob.c: Likewise.
36499         * lib/glob-libc.h: Likewise.
36500         * lib/random_r.c: Likewise.
36501         * lib/siglist.h: Likewise.
36502         * lib/strsignal.c: Likewise.
36503         Reported by Ian Beckwith <ianb@erislabs.net>.
36504
36505 2009-09-17  Eric Blake  <ebb9@byu.net>
36506
36507         rmdir: ensure correct dependency order
36508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36509
36510 2009-09-17  Bruno Haible  <bruno@clisp.org>
36511
36512         Disable assertion that fails on NetBSD 5 / i386.
36513         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36514         Reported by Sam Steingold <sds@gnu.org>
36515         and Hasso Tepper <hasso@netbsd.org>.
36516
36517 2009-09-16  Eric Blake  <ebb9@byu.net>
36518
36519         unlinkdir: port to mingw
36520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36521         on which no one can unlink a directory.
36522
36523         stdlib: sort witness names
36524         * modules/stdlib (Makefile.am): Sort replacements.
36525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36526         * lib/stdlib.in.h: Likewise.
36527
36528         parse-duration-tests: avoid link failure
36529         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36530         LIBINTL.
36531         Reported by Tom G. Christensen.
36532
36533         openat-tests: ensure unlinkat behaves like rmdir
36534         * tests/test-rmdir.c (main): Factor guts...
36535         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36536         * modules/rmdir-tests (Files): Ship new file.
36537         * modules/openat-tests: New test.
36538         * tests/test-unlinkat.c: Likewise.
36539
36540         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36541         * modules/rmdir-errno (Status, Notice): Now obsolete.
36542
36543         rmdir: work around cygwin 1.5.x and mingw bugs
36544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36545         * lib/rmdir.c (rmdir): Work around it.
36546         * modules/rmdir (Status, Notice): No longer obsolete.
36547         (Files): Add dos.m4.
36548         (Depends-on): Add unistd.
36549         (configure.ac): Set witnesses.
36550         (License): Relax to LGPLv2+.
36551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36552         * modules/unistd (Makefile.am): Substitute witnesses.
36553         * lib/unistd.in.h (rmdir): Declare replacement.
36554         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36555         * modules/rmdir-tests: New tests.
36556         * tests/test-rmdir.c: Likewise.
36557
36558 2009-09-15  Eric Blake  <ebb9@byu.net>
36559
36560         fchdir: improve use of replacement functions
36561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36563         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36564         REPLACE_CLOSEDIR.
36565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36566         * modules/sys_stat (Makefile.am): Substitute correct witness.
36567         * modules/dirent (Makefile.am): Likewise.
36568         * modules/unistd (Makefile.am): Likewise.
36569         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36570         * lib/unistd.in.h (dup): Likewise.
36571         * lib/sys_stat.in.h (fstat): Likewise.
36572
36573         maint: ignore gnulib-tool temp files
36574         * .gitignore: Ignore files created during gnulib-tool --test.
36575
36576 2009-09-13  Jim Meyering  <meyering@redhat.com>
36577
36578         posixtm: don't reject a time that specify "60" as the number of seconds
36579         * lib/posixtm.c (posixtime): The code to reject invalid dates
36580         would also reject a time specified with the .60 suffix.
36581         But POSIX allows that, in order to accommodate leap seconds.
36582         So don't reject it.
36583         (main): Adjust tests accordingly.
36584         * modules/posixtm (Depends-on): Add stpcpy.
36585
36586 2009-09-11  Jim Meyering  <meyering@redhat.com>
36587
36588         announce-gen: include [$release_type] in emitted Subject:
36589         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36590         e.g., [stable] in the emitted Subject: line.
36591
36592 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36593
36594         Remove obsolete macros from several modules.
36595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36596         obsolete Autoconf macros with their modern counterparts.
36597         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36598         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36601         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36605         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36606         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36607         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36609         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36610         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36612         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36613         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36614         * m4/time_r.m4 (gl_TIME_R): Likewise.
36615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36616         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36617         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36618
36619         Fix copyright header in build-aux scripts.
36620         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36621         recommendation.
36622         * build-aux/ncftpput-ftp: Likewise.
36623         * build-aux/update-copyright: Likewise.
36624
36625 2009-09-09  Eric Blake  <ebb9@byu.net>
36626
36627         test-link: allow Linux choice of errno
36628         * tests/test-link.c (main): Relax test for alternate error.
36629
36630         strndup: fix improper m4 caching
36631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36632         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36633         (gl_PREREQ_STRNDUP): Delete.
36634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36635         * modules/string (Makefile.am): Substitute it.
36636         * lib/string.in.h (strndup): Modernize prototype.
36637
36638         getcwd: port to mingw
36639         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36640         different from the POSIX assumptions made throughout the getcwd
36641         module; fortunately, the mingw getcwd does not need replacement.
36642         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36643         * modules/getcwd-tests: New test.
36644         * tests/test-getcwd.c: Likewise.
36645
36646         link: fix platform bugs
36647         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36648         * lib/link.c (link): Work around them.  Fix related mingw bug.
36649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36650         * modules/unistd (Makefile.am): Substitute it.
36651         * lib/unistd.in.h (link): Declare replacement.
36652         * doc/posix-functions/link.texi (link): Document this.
36653         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36654
36655         test-link: consolidate into single C program, test more cases
36656         * tests/test-link.sh: Delete.
36657         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36658         at least Cygwin and Solaris.
36659         * modules/link-tests (Files): Remove unused file.
36660         (Depends-on): Add errno, sys_stat.
36661         (Makefile.am): Simplify.
36662
36663 2009-09-08  Bruno Haible  <bruno@clisp.org>
36664
36665         Work around towlower, towupper bug on mingw.
36666         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36667         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36668         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36669         * doc/posix-functions/towupper.texi: Likewise.
36670         Reported by Eric Blake.
36671
36672 2009-09-08  Jim Meyering  <meyering@redhat.com>
36673
36674         build: don't try to run autoheader if we don't use it
36675         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36676         is not used in configure.ac.
36677
36678 2009-09-08  Eric Blake  <ebb9@byu.net>
36679
36680         euidaccess: fix compilation error
36681         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36682
36683         rawmemchr: relax license
36684         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36685         okay.
36686         Reported by Jim Meyering.
36687
36688         mkfifoat: new module
36689         * modules/mkfifoat: New file.
36690         * lib/mkfifoat.c: Likewise.
36691         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36693         * modules/sys_stat (Makefile.am): Use them.
36694         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36695         * MODULES.html.sh (File system functions): Mention module.
36696         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36697         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36698         * modules/mkfifoat-tests: New test.
36699         * tests/test-mkfifoat.c: Likewise.
36700
36701         strchrnul: relax license
36702         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36703         okay.
36704         Reported by Jim Meyering.
36705
36706 2009-09-08  Eric Blake  <ebb9@byu.net>
36707
36708         fstatat: fix compilation on Solaris
36709         * lib/fstatat.c (includes): Add fcntl.h.
36710         Reported by Pádraig Brady.
36711
36712 2009-09-07  Eric Blake  <ebb9@byu.net>
36713
36714         rename: modernize replacement
36715         * modules/rename (Depends-on): Add stdio.
36716         (configure.ac): Declare witness.
36717         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36718         stdio take care of replacement.
36719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36720         * modules/stdio (Makefile.am): Substitute them.
36721         * lib/stdio.in.h (rename): Declare replacement.
36722         * lib/rename.c (includes): Allow cross-compilation to non-windows
36723         machines.
36724         * doc/posix-functions/rename.texi (rename): Improve
36725         documentation.
36726
36727         stdio: sort witness names
36728         * modules/stdio (Makefile.am): Sort replacements.
36729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36730         * lib/stdio.in.h: Likewise.
36731
36732         getcwd: minor cleanups
36733         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36734         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36735
36736         openat: provide more convenience names
36737         * modules/faccessat (configure.ac): Add C witness.
36738         * lib/unistd.in.h (readlinkat): Fix typo.
36739         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36740         convenience wrappers.
36741         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36742         wrappers in syntax checks.
36743
36744 2009-09-06  Eric Blake  <ebb9@byu.net>
36745
36746         doc: fix comments in recent patches
36747         * lib/faccessat.c: Mention correct function.
36748         * lib/fchmodat.c: Likewise.
36749         * lib/fchownat.c: Likewise.
36750         * lib/symlinkat.c: Likewise.
36751         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36752         constants.
36753
36754         faccessat, symlinkat: continue cleanup of previous patch
36755         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36757         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36759         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36760         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36761         set.
36762
36763 2009-09-06  Bruno Haible  <bruno@clisp.org>
36764
36765         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36766         (fstatat): Declare if GNULIB_FSTATAT is set.
36767         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36768         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36769         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36770         * modules/fcntl-h (Files): Remove m4/openat.m4.
36771         * modules/sys_stat (Files): Remove m4/openat.m4.
36772         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36773         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36774         * modules/unistd (Files): Remove m4/openat.m4.
36775         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36776         GNULIB_OPENAT.
36777         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36778         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36780         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36781         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36782         gl_OPENAT_DEFAULTS.
36783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36784         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36785         Don't require gl_OPENAT_DEFAULTS.
36786         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36787         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36788         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36789         (gl_OPENAT_DEFAULTS): Remove macro.
36790
36791 2009-09-06  Bruno Haible  <bruno@clisp.org>
36792
36793         * modules/openat (configure.ac): Remove unneeded witness.
36794
36795 2009-09-06  Bruno Haible  <bruno@clisp.org>
36796
36797         Set errno to ENOSYS when a function is entirely unsupported.
36798         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36799         EOPNOTSUPP.
36800         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36801         * modules/chown (Depends-on): Remove errno.
36802
36803 2009-09-06  Bruno Haible  <bruno@clisp.org>
36804
36805         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36806
36807 2009-09-06  Bruno Haible  <bruno@clisp.org>
36808
36809         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36810
36811 2009-09-06  Ben Pfaff  <blp@gnu.org>
36812             Bruno Haible  <bruno@clisp.org>
36813
36814         Work around a glibc bug in strtok_r.
36815         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36816         Undefine if UNDEFINE_STRTOK_R is set.
36817         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36819         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36821         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36822         UNDEFINE_STRTOK_R.
36823         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36824
36825 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36826
36827         exclude: minor fix
36828         * lib/exclude.c: Include wctype.h
36829
36830 2009-09-06  Akim Demaille  <demaille@gostai.com>
36831
36832         bootstrap: improve error message
36833         * build-aux/bootstrap (find_tool): Upon failure, report the list
36834         of candidates.
36835         Honor the initial value of the envvar.
36836
36837 2009-09-05  Eric Blake  <ebb9@byu.net>
36838
36839         symlinkat: new module
36840         * modules/symlinkat: New file.
36841         * lib/symlinkat.c: Likewise.
36842         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36844         * modules/unistd (Makefile.am): Use them.
36845         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36846         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36847         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36848         * MODULES.html.sh (File system functions): Mention module.
36849         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36850         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36851         * modules/symlinkat-tests: New test.
36852         * tests/test-symlinkat.c: Likewise.
36853
36854         test-openat-safer: add more checks
36855         * tests/test-openat-safer.c (main): Check more code paths.
36856
36857 2009-09-05  Jim Meyering  <meyering@redhat.com>
36858
36859         syntax-check: detect unnecessary inclusion of openat.h
36860         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36861
36862 2009-09-05  Bruno Haible  <bruno@clisp.org>
36863
36864         Support towlower, towupper.
36865         * doc/posix-functions/towlower.texi: Mention module wctype.
36866         * doc/posix-functions/towupper.texi: Likewise.
36867         * lib/wctype.in.h (towlower, towupper): New functions.
36868         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36869         (ASSERT): New macro.
36870         (e): New variable.
36871         (main): Test also towlower, towupper. Test WEOF argument.
36872         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36873
36874 2009-09-05  Bruno Haible  <bruno@clisp.org>
36875
36876         Fix conversion behaviour when the input is invalid.
36877         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36878         mark occurring in first pass of indirect conversion.
36879         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36880         input.
36881         Found by clang's static analyzer.
36882
36883 2009-09-05  Bruno Haible  <bruno@clisp.org>
36884
36885         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36886         where direct conversion is possible.
36887
36888 2009-09-04  Eric Blake  <ebb9@byu.net>
36889
36890         openat: fail with ENOENT on empty name
36891         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36892         buffer.
36893
36894         link-follow: fix logic bug in prior patch
36895         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36896         reversed sense of yes and no in prior patch.  Avoid confusing
36897         compilation failure with desired semantics.
36898
36899         link-follow: accomodate mingw and cross-compilation
36900         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36901         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36902         cross-compilation results to -1, to make linkat easier to
36903         implement when cross-compiling.  Trivially support mingw.
36904         * modules/link-follow (configure.ac): Call new name.
36905         * NEWS: Mention this.
36906
36907 2009-09-03  Eric Blake  <ebb9@byu.net>
36908
36909         faccessat: compile replacement
36910         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36911         needed.
36912
36913         fts: fix compilation error
36914         * lib/fts.c (includes): Re-add "openat.h", for
36915         openat_needs_fchdir.
36916
36917         faccessat: new module
36918         * modules/faccessat: New file.
36919         * lib/faccessat.c: Likewise.
36920         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36922         * modules/unistd (Makefile.am): Use it.
36923         * lib/unistd.in.h (faccessat): Declare it.
36924         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36925         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36926         * MODULES.html.sh (File system functions): Mention it.
36927         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36928         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36929
36930         euidaccess: prefer POSIX over non-standard implementation
36931         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36932         * lib/euidaccess.c (euidaccess): Use it if available.
36933
36934         openat: make template easier to use
36935         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36936         AT_FUNC_F2 to be undefined.
36937         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36938         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36939         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36940         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36941         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36942         Likewise.
36943         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36944         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36945         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36946         Likewise.
36947
36948         openat: declare in POSIX headers
36949         * NEWS: Mention this.
36950         * modules/openat (configure.ac): Declare witnesses.
36951         (Depends-on): Add fcntl-h, sys_stat, unistd.
36952         (Include): Mention correct headers.
36953         * modules/fcntl-h (Depends-on): Add link-warning.
36954         (Files): Add openat.m4.
36955         (Makefile.am): Substitute witnesses.
36956         * modules/sys_stat (Files, Makefile.am): Likewise.
36957         * modules/unistd (Files, Makefile.am): Likewise.
36958         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36959         (gl_OPENAT_DEFAULTS): New macro.
36960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36962         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36963         (SYS_STAT_H): Remove unused variable.
36964         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36965         * lib/fcntl--.h (includes): Remove unneeded header.
36966         * lib/openat-safer.c (includes): Likewise.
36967         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36968         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36969         appropriate headers.
36970         (__OPENAT_PREFIX): Delete.
36971         * lib/fcntl.in.h (openat): Provide declaration.
36972         (AT_FDCWD): Fix Solaris bug.
36973         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36974         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36975         * lib/fchmodat.c (includes):  Adjust to find declaration.
36976         * lib/fchownat.c (includes): Likewise.
36977         * lib/mkdirat.c (includes): Likewise.
36978         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36979         still visible.
36980
36981 2009-09-02  Eric Blake  <ebb9@byu.net>
36982
36983         errno: use consistently
36984         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36985         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36986         * lib/canonicalize.c (ELOOP): Likewise.
36987         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36988         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36989         * lib/lchown.c (EOPNOTSUPP): Likewise.
36990         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36991         * lib/savewd.c (ESTALE): Likewise.
36992         * lib/settime.c (ENOSYS): Likewise.
36993         * lib/utimens.c (ENOSYS): Likewise.
36994         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36995         * lib/chdir-safer.c (ELOOP): Likewise.
36996         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36997         * modules/c-stack (Depends-on): Add errno.
36998         * modules/canonicalize (Depends-on): Likewise.
36999         * modules/chdir-safer (Depends-on): Likewise.
37000         * modules/fdopendir (Depends-on): Likewise.
37001         * modules/inet_ntop (Depends-on): Likewise.
37002         * modules/inet_pton (Depends-on): Likewise.
37003         * modules/lchown (Depends-on): Likewise.
37004         * modules/openat (Depends-on): Likewise.
37005         * modules/savewd (Depends-on): Likewise.
37006         * modules/settime (Depends-on): Likewise.
37007         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37008
37009         fts: avoid leaking fds
37010         * modules/fts (Depends-on): Add cloexec.
37011         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37012         flag.
37013
37014         fts: make directory fds more robust
37015         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37016         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37017
37018         backupfile, chdir-long, fts, savedir: make safer
37019         * lib/backupfile.c (includes): Use "dirent--.h", since
37020         numbered_backup can write to stderr during readdir.
37021         * lib/savedir.c (includes): Likewise.
37022         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37023         emulation can write to stderr on failure.
37024         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37025         * lib/getcwd.c: Document why opendir_safer is unused.
37026         * lib/glob.c: Likewise.
37027         * lib/scandir.c: Likewise.
37028         * lib/openat-proc.c: Likewise, for open_safer.
37029         * modules/backupfile (Depends-on): Add dirent-safer.
37030         * modules/savedir (Depends-on): Likewise.
37031         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37032         * modules/chdir-long (Depends-on): Add openat-safer.
37033
37034         openat-safer: new module
37035         * modules/openat-safer: New file.
37036         * lib/openat-safer.c: Likewise.
37037         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37038         * lib/fcntl-safer.h (openat_safer): Declare.
37039         * lib/fcntl--.h (openat): Override.
37040         * MODULES.html.sh (File descriptor based I/O): Mention it.
37041         * lib/openat.h: Add double-inclusion guards.
37042         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37043         "fcntl--.h", so we can implement openat.
37044         * modules/openat-safer-tests: New test.
37045         * tests/test-openat-safer.c: New file.
37046
37047         dirent-safer: new module
37048         * modules/dirent-safer: New file.
37049         * lib/dirent--.h: Likewise.
37050         * lib/dirent-safer.h: Likewise.
37051         * lib/opendir-safer.c: Likewise.
37052         * m4/dirent-safer.m4: Likewise.
37053         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37054         * modules/dirent-safer-tests: New test.
37055         * tests/test-dirent-safer.c: New file.
37056         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37057
37058         fdopendir: optimize on mingw
37059         * lib/unistd.in.h (_gl_directory_name): New prototype.
37060         * lib/fchdir.c (_gl_directory_name): Implement it.
37061         (fchdir): Use it to simplify implementation.
37062         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37063         fchdir, when available, to avoid calling [f]chdir().
37064
37065         fdopendir: split into its own module
37066         * lib/openat.c (fdopendir): Move...
37067         * lib/fdopendir.c: ...into new file.
37068         * modules/fdopendir: New module.
37069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37070         * modules/openat (Depends-on): Add fdopendir.
37071         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37072         fdopendir here.
37073         * modules/savedir (Depends-on): Only need fdopendir, not full
37074         openat.
37075         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37076         * lib/openat.h (fdopendir): Drop prototype.
37077         * lib/dirent.in.h (fdopendir): Provide prototype.
37078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37079         * modules/dirent (Makefile.am): Substitute them.
37080         * MODULES.html.sh (File system functions): Mention it.
37081         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37082         * modules/fdopendir-tests: New file.
37083         * tests/test-fdopendir.c: Likewise.
37084
37085         fchdir: use more consistent macro convention
37086         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37087         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37088         REPLACE_FCHDIR, rather than relying on config.h macros.
37089         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37090         inside a single make-time REPLACE_FCHDIR block, rather than using
37091         the config.h FCHDIR_REPLACEMENT.
37092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37093         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37094         Manage fstat replacement.
37095         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37096         REPLACE_FCHDIR.
37097         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37098         (Makefile.am): Substitute REPLACE_FCHDIR.
37099         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37100         FCHDIR_REPLACEMENT.
37101         * lib/dup-safer.c (dup_safer): Likewise.
37102         * lib/dup2.c (rpl_dup2): Likewise.
37103         * lib/dup3.c (rpl_dup3): Likewise.
37104         * lib/open.c (rpl_open): Likewise.
37105
37106         fchdir: simplify error handling, and support dup3
37107         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37108         stdbool, malloc-posix, realloc-posix.
37109         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37110         (ensure_dirs_slot): Return false on allocation failure.
37111         (rpl_dup2): Delete.
37112         (_gl_register_dup): New function.
37113         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37114         (_gl_register_fd): Close fd on allocation failure.
37115         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37116         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37117         prototype.
37118         (rpl_dup2_fchdir): Delete prototype.
37119         * lib/open.c (open): Update caller.
37120         * lib/dup2.c (dup2): Track fchdir metadata.
37121         * lib/dup3.c (dup3): Likewise.
37122         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37124
37125 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37126
37127         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37128         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37129         don't pass arguments to AC_OUTPUT.
37130
37131 2009-09-02  Bruno Haible  <bruno@clisp.org>
37132
37133         * modules/mkdtemp (License): Relicense under LGPLv2+.
37134         Reported by Paolo Bonzini.
37135
37136 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37137
37138         Replace uses of obsolete autoconf macros in Jim's modules.
37139         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37140         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37141         can evoke a warning from autoconf when run with -Wobsolete
37142         enabled.  They were declared obsolete for good reasons (see
37143         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37144         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37145         should not continue using the deprecated macros.
37146         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37147         obsolete Autoconf macros with modern counterparts.
37148         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37149         * m4/dos.m4 (gl_AC_DOS): Likewise.
37150         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37152         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37153         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37154         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37156         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37157         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37159         Likewise.
37160         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37161         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37162         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37163         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37164         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37165         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37166
37167 2009-09-01  Eric Blake  <ebb9@byu.net>
37168
37169         fchdir: fix off-by-one bug in previous patch
37170         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37171         (_gl_unregister_fd): Delete useless if.
37172
37173 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37174
37175         maint.mk: sort the list of syntax-check rules
37176         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37177         easier to get a sense of progress when the rules are run sequentially
37178         and take a long time.
37179
37180 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37181
37182         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37183         * modules/netinet_in: Likewise.
37184         * modules/sys_file: Likewise.
37185         * modules/sys_ioctl: Likewise.
37186         * modules/sys_select: Likewise.
37187         * modules/sys_socket: Likewise.
37188         * modules/sys_stat: Likewise.
37189         * modules/sys_time: Likewise.
37190         * modules/sys_times: Likewise.
37191         * modules/sys_utsname: Likewise.
37192         * modules/sys_wait: Likewise.
37193
37194 2009-09-01  Jim Meyering  <meyering@redhat.com>
37195
37196         fts: help ensure that return values are not ignored
37197         * lib/fts_.h (__GNUC_PREREQ): Define.
37198         (__attribute_warn_unused_result__): Define.
37199         (fts_children, fts_close, fts_open, fts_read): Declare with
37200         __attribute_warn_unused_result__.
37201
37202         fts: fts_close now fails also when closing a dir file descriptor fails
37203         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37204         and propagate to caller, along with errno.
37205
37206         announce-gen: correct formatting in --help output
37207         * build-aux/announce-gen (usage): Move the one-line description in
37208         --help output "up", to where it belongs, just after Usage:.
37209
37210 2009-08-31  Eric Blake  <ebb9@byu.net>
37211
37212         fchdir: port to mingw
37213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37214         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37215         opened, then use a substitute.
37216         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37217         replacement.
37218         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37219         (_gl_register_fd): No need to check stat if open already filters
37220         all directories.
37221         (fchdir): Fix error condition to match POSIX.
37222         * modules/fchdir (Depends-on): Add sys_stat.
37223         * doc/posix-functions/open.texi (open): Document the limitation.
37224         * modules/fchdir-tests: New file.
37225         * tests/test-fchdir.c: Likewise.
37226
37227         canonicalize: allow cross-testing from cygwin to mingw
37228         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37229         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37230         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37231         Likewise.
37232         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37233         target does not support symlinks.
37234         * tests/test-canonicalize-lgpl.sh: Likewise.
37235
37236         chown: avoid compilation warning on mingw
37237         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37238         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37239         mingw.
37240         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37241         * modules/chown (Depends-on): Add errno.
37242
37243 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37244
37245         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37246         command.
37247
37248 2009-08-31  Jim Meyering  <meyering@redhat.com>
37249
37250         canonicalize: remove useless initialization
37251         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37252         initialization of local, "end".
37253
37254 2009-08-30  Bruno Haible  <bruno@clisp.org>
37255
37256         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37257         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37258         ENOSYS.
37259
37260 2009-08-30  Bruno Haible  <bruno@clisp.org>
37261
37262         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37263         /usr/xpg4/bin/tr when it exists.
37264         * tests/test-pipe-filter-gi1.sh: Likewise.
37265
37266 2009-08-30  Bruno Haible  <bruno@clisp.org>
37267
37268         Work around deficient /usr/bin/id program on Solaris.
37269         * tests/test-file-has-acl.sh (ID): New variable.
37270         * tests/test-set-mode-acl.sh (ID): Likewise.
37271         * tests/test-copy-acl.sh (ID): Likewise.
37272         * tests/test-copy-file.sh (ID): Likewise.
37273
37274 2009-08-30  Bruno Haible  <bruno@clisp.org>
37275
37276         New module 'xstriconveh'.
37277         * lib/xstriconveh.h: New file.
37278         * lib/xstriconveh.c: New file.
37279         * modules/xstriconveh: New file.
37280
37281 2009-08-30  Bruno Haible  <bruno@clisp.org>
37282
37283         Make it easier to use mem_cd_iconveh.
37284         * lib/striconveh.h (iconveh_t): New type.
37285         (iconveh_open, iconveh_close): New declarations.
37286         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37287         with a single 'const iconveh_t *' argument.
37288         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37289         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37290         with a single 'const iconveh_t *' argument.
37291         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37292         * tests/test-striconveh.c (main): Update.
37293         * NEWS: Mention the change.
37294
37295 2009-08-30  Bruno Haible  <bruno@clisp.org>
37296
37297         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37298         problem.
37299
37300 2009-08-30  Bruno Haible  <bruno@clisp.org>
37301
37302         Work around iconv_open problem on Solaris.
37303         * lib/iconv_open-solaris.gperf: New file.
37304         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37306         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37307         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37308         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37309         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37310
37311 2009-08-29  Jim Meyering  <meyering@redhat.com>
37312
37313         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37314         * top/maint.mk (cvs-check): Remove target; it was just an alias
37315         to the better-named vc-diff-check.
37316         (maintainer-distcheck): Remove rule.  It was used only from
37317         the (alpha/beta/major) target, and all of its commands but one
37318         were coreutils-specific.
37319         (vc-dist): Remove rule.
37320         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37321         Run vc-diff-check, not vc-dist.
37322         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37323
37324 2009-08-27  Bruno Haible  <bruno@clisp.org>
37325
37326         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37327         of 0.
37328
37329 2009-08-27  Bruno Haible  <bruno@clisp.org>
37330
37331         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37332         compilers.
37333         * doc/func.texi: Document the SunPRO C bug.
37334
37335 2009-08-27  Bruno Haible  <bruno@clisp.org>
37336
37337         Fix link error on Solaris.
37338         * tests/test-parse-duration.c (xstrdup): Remove function.
37339
37340 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37341
37342         ignore-value: handle pointer types, too
37343         * lib/ignore-value.h (__attribute__): Remove definition.
37344         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37345         of a more concise and more-often effective "(void) i" statement.
37346         (ignore_ptr): New function to suppress warnings from functions that
37347         return pointers, and to make it explicit that one function doesn't
37348         handle all cases.
37349
37350 2009-08-25  Bruno Haible  <bruno@clisp.org>
37351
37352         dup2: work around a Linux bug.
37353         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37354         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37355         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37356         Reported by Simon Josefsson.
37357
37358 2009-08-25  Jim Meyering  <meyering@redhat.com>
37359
37360         libguestfs uses gnulib
37361         * users.txt: Add libguestfs.
37362
37363 2009-08-24  Eric Blake  <ebb9@byu.net>
37364
37365         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37366         * lib/pipe2.c (includes): Add binary-io.h.
37367         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37368
37369 2009-08-24  Bruno Haible  <bruno@clisp.org>
37370
37371         Tolerate declared but missing accept4 syscall.
37372         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37373         available.
37374         * lib/sys_socket.in.h (accept4): If the function is already present,
37375         override it.
37376         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37377         * modules/accept4 (Makefile.am): Compile accept4.c always.
37378         Reported by Paolo Bonzini and Eric Blake.
37379
37380 2009-08-23  Bruno Haible  <bruno@clisp.org>
37381
37382         New module 'accept4'.
37383         * lib/sys_socket.in.h (accept4): New declaration.
37384         * lib/accept4.c: New file.
37385         * m4/accept4.m4: New file.
37386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37387         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37388         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37389         HAVE_ACCEPT4.
37390         * modules/accept4: New file.
37391         * doc/glibc-functions/accept4.texi: Mention the new module.
37392
37393 2009-08-24  Jim Meyering  <meyering@redhat.com>
37394
37395         progname: also set global program_invocation_name, when possible
37396         Before this change, a libtool-enabled program that calls glibc's
37397         error function would report the program name as
37398         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37399         * modules/progname (configure.ac): Check for a declaration of
37400         program_invocation_name.
37401         * lib/progname.c:  Include <errno.h>.
37402         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37403         Set program_invocation_name.
37404
37405 2009-08-23  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/dup3.c: Include <string.h>.
37408
37409 2009-08-23  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37412         * lib/pipe2.c (pipe2): Likewise.
37413         Suggested by Eric Blake.
37414
37415 2009-08-23  Bruno Haible  <bruno@clisp.org>
37416
37417         Tolerate declared but missing dup3 syscall.
37418         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37419         * lib/unistd.in.h (dup3): If the function is already present,
37420         override it.
37421         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37422         * modules/dup3 (Makefile.am): Compile dup3.c always.
37423         Reported by Paolo Bonzini.
37424
37425 2009-08-23  Bruno Haible  <bruno@clisp.org>
37426
37427         Tolerate declared but missing pipe2 syscall.
37428         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37429         available.
37430         * lib/unistd.in.h (pipe2): If the function is already present,
37431         override it.
37432         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37433         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37434         Reported by Paolo Bonzini.
37435
37436 2009-08-23  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/pipe2.c (pipe2): Move #ifs inside function.
37439
37440 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37441
37442         quotearg: document limitations of quote_these_too
37443         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37444         those limitations are created.
37445         * lib/quotearg.h (set_char_quoting): Document that digits and
37446         letters that are special after backslash are not permitted.
37447         (quotearg_char): Cross-reference set_char_quoting documentation.
37448
37449 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37450
37451         quotearg: implement custom_quoting_style
37452         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37453         right_quote fields.
37454         (set_custom_quoting): New public function.
37455         (quotearg_buffer_restyled): Add left_quote and right_quote
37456         arguments, handle them very much like locale quoting, and update
37457         all uses.
37458         (quotearg_n_custom): New public function.
37459         (quotearg_n_custom_mem): New public function.
37460         (quotearg_custom): New public function.
37461         (quotearg_custom_mem): New public function.
37462         * lib/quotearg.h: Prototype and document new public functions.
37463         (enum quoting_style): For escape_quoting_style and
37464         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37465         ignored even though they're otherwise like c_quoting_style.
37466         Add custom_quoting_style member and document with comparison to
37467         clocale_quoting_style.
37468         * tests/test-quotearg.c (custom_quotes): New array.
37469         (custom_results): New array.
37470         (main): Extend to test custom quoting.
37471
37472 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37473
37474         quotearg: fix right quote escaping when it's in quote_these_too
37475         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37476         quote, be sure to prepend only one backslash.
37477         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37478         (main): Test it.
37479
37480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37481
37482         quotearg-tests: test escaping of embedded locale quotes
37483         * tests/test-quotearg.c (struct result_strings): Add member for
37484         new input.
37485         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37486         (inputs): Add new input.
37487         (results_g): Add expected results.
37488         (flag_results): Likewise.
37489         (locale_results): Likewise.
37490         (compare_strings): Check those.
37491
37492 2009-08-23  Bruno Haible  <bruno@clisp.org>
37493
37494         Tests for module 'dup3'.
37495         * modules/dup3-tests: New file.
37496         * tests/test-dup3.c: New file.
37497
37498         New module 'dup3'.
37499         * lib/unistd.in.h (dup3): New declaration.
37500         * lib/dup3.c: New file.
37501         * m4/dup3.m4: New file.
37502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37503         HAVE_DUP3.
37504         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37505         * modules/dup3: New file.
37506         * doc/glibc-functions/dup3.texi: Mention the new module.
37507
37508 2009-08-23  Bruno Haible  <bruno@clisp.org>
37509
37510         Tweak the dup2 test.
37511         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37512         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37513         the test file is still empty. Fix argument order of lseek.
37514
37515 2009-08-23  Bruno Haible  <bruno@clisp.org>
37516
37517         Avoid test link errors when the modules getopt-gnu, gettext are used.
37518         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37520
37521 2009-08-23  Bruno Haible  <bruno@clisp.org>
37522
37523         Fix getdtablesize() on mingw.
37524         * lib/getdtablesize.c (getdtablesize): Implement differently.
37525         * lib/unistd.in.h (getdtablesize): Improve comment.
37526
37527 2009-08-23  Bruno Haible  <bruno@clisp.org>
37528
37529         New module 'mkostemp'.
37530         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37531         * lib/stdlib.in.h (mksotemp): New declaration.
37532         * lib/mkostemp.c: New file, from glibc with modifications.
37533         * lib/tempname.h (GT_FILE): Remove outdated comment.
37534         (gen_tempname): Add flags argument.
37535         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37536         (__GT_FILE): Map to 1.
37537         (small_open, large_open): Remove macros.
37538         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37539         * lib/mkstemp.c (mkstemp): Update.
37540         * lib/mkdtemp.c (mkdtemp): Likewise.
37541         * m4/mkostemp.m4: New file.
37542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37543         HAVE_MKOSTEMP.
37544         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37545         HAVE_MKOSTEMP.
37546         * modules/mkostemp: New file, based on modules/mkstemp.
37547         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37548         * NEWS: Mention the change.
37549
37550 2009-08-23  Bruno Haible  <bruno@clisp.org>
37551
37552         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37553         Reported by Eric Blake.
37554
37555 2009-08-23  Bruno Haible  <bruno@clisp.org>
37556
37557         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37558         Reported by Eric Blake.
37559
37560 2009-08-23  Bruno Haible  <bruno@clisp.org>
37561
37562         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37563         * modules/pipe2 (Depends-on): Likewise.
37564
37565 2009-08-23  Eric Blake  <ebb9@byu.net>
37566
37567         fcntl-h: add O_TTY_INIT support
37568         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37569         * tests/test-fcntl-h.c (o): Test it.
37570         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37571
37572         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37573         * modules/fcntl: Move <fcntl.h> header replacement...
37574         * modules/fcntl-h: ...to new name, so as not to collide with
37575         like-named function.
37576         * tests/test-fcntl.c: Rename...
37577         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37578         * modules/fcntl-tests: Rename...
37579         * modules/fcntl-h-tests: ...to this.  Update test file name.
37580         * modules/chdir-long (Depends-on): Update clients.
37581         * modules/chdir-safer (Depends-on): Likewise.
37582         * modules/fcntl-safer (Depends-on): Likewise.
37583         * modules/fts (Depends-on): Likewise.
37584         * modules/mkancesdirs (Depends-on): Likewise.
37585         * modules/mkdir-p (Depends-on): Likewise.
37586         * modules/open (Depends-on): Likewise.
37587         * modules/savewd (Depends-on): Likewise.
37588         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37589         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37590
37591 2009-08-22  Bruno Haible  <bruno@clisp.org>
37592
37593         * modules/binary-io (License): Relicense under LGPL.
37594         * modules/pipe2 (License): Likewise.
37595
37596 2009-08-22  Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37599         return value.
37600         * lib/pipe-filter-gi.c (filter_init): Likewise.
37601         Reported by Eric Blake.
37602
37603 2009-08-22  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37606         * modules/pipe (Depends-on): Add pipe2.
37607
37608 2009-08-22  Bruno Haible  <bruno@clisp.org>
37609
37610         Tests for module 'pipe2'.
37611         * modules/pipe2-tests: New file.
37612         * tests/test-pipe2.c: New file.
37613
37614         New module 'pipe2'.
37615         * lib/unistd.in.h (pipe2): New declaration.
37616         * lib/pipe2.c: New file.
37617         * m4/pipe2.m4: New file.
37618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37619         HAVE_PIPE2.
37620         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37621         * modules/pipe2: New file.
37622         * doc/glibc-functions/pipe2.texi: Mention the new module.
37623
37624 2009-08-22  Bruno Haible  <bruno@clisp.org>
37625
37626         Reference some new glibc functions.
37627         * doc/glibc-functions/accept4.texi: New file.
37628         * doc/glibc-functions/dup3.texi: New file.
37629         * doc/glibc-functions/mkostemp.texi: New file.
37630         * doc/glibc-functions/pipe2.texi: New file.
37631         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37632         (Glibc sys/socket.h): Refer to accept4.
37633         (Glibc unistd.h): Refer to dup3, pipe2.
37634         Reported by Eric Blake.
37635
37636 2009-08-22  Jim Meyering  <meyering@redhat.com>
37637             Bruno Haible  <bruno@clisp.org>
37638
37639         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37640         This makes it so packages using automake-1.11's silent-rules option
37641         can print e.g., a single "GEN    configmake.h" line, rather than
37642         the 30+ statements that perform the job.  If you want to see the
37643         actual commands, you can still run "make V=1".
37644         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37645         so that make output is abbreviated when those variables are defined
37646         appropriately.
37647         * modules/argz: Likewise.
37648         * modules/arpa_inet: Likewise.
37649         * modules/byteswap: Likewise.
37650         * modules/configmake: Likewise.
37651         * modules/dirent: Likewise.
37652         * modules/errno: Likewise.
37653         * modules/fcntl: Likewise.
37654         * modules/float: Likewise.
37655         * modules/fnmatch: Likewise.
37656         * modules/getopt-posix: Likewise.
37657         * modules/glob: Likewise.
37658         * modules/iconv_open: Likewise.
37659         * modules/inttypes: Likewise.
37660         * modules/localcharset: Likewise.
37661         * modules/locale: Likewise.
37662         * modules/math: Likewise.
37663         * modules/netdb: Likewise.
37664         * modules/netinet_in: Likewise.
37665         * modules/poll: Likewise.
37666         * modules/posix_spawnp-tests: Likewise.
37667         * modules/sched: Likewise.
37668         * modules/search: Likewise.
37669         * modules/selinux-h: Likewise.
37670         * modules/signal: Likewise.
37671         * modules/spawn: Likewise.
37672         * modules/stdarg: Likewise.
37673         * modules/stdbool: Likewise.
37674         * modules/stddef: Likewise.
37675         * modules/stdint: Likewise.
37676         * modules/stdio: Likewise.
37677         * modules/stdlib: Likewise.
37678         * modules/string: Likewise.
37679         * modules/strings: Likewise.
37680         * modules/sys_file: Likewise.
37681         * modules/sys_ioctl: Likewise.
37682         * modules/sys_select: Likewise.
37683         * modules/sys_socket: Likewise.
37684         * modules/sys_stat: Likewise.
37685         * modules/sys_time: Likewise.
37686         * modules/sys_times: Likewise.
37687         * modules/sys_utsname: Likewise.
37688         * modules/sys_wait: Likewise.
37689         * modules/sysexits: Likewise.
37690         * modules/time: Likewise.
37691         * modules/unistd: Likewise.
37692         * modules/wchar: Likewise.
37693         * modules/wctype: Likewise.
37694
37695 2009-08-22  Jim Meyering  <meyering@redhat.com>
37696
37697         announce-gen: detect write failure
37698         * build-aux/announce-gen: Add Coda at end.
37699         Remove equivalent-but-more-verbose block at top.
37700
37701 2009-08-19  Akim Demaille  <demaille@gostai.com>
37702
37703         bootstrap: --help to stdout.
37704         * bootstrap (usage): Don't send --help to stderr.
37705         Use a here doc instead of a long string.
37706
37707 2009-08-21  Eric Blake  <ebb9@byu.net>
37708
37709         test-popen-safer: split from test-popen
37710         * tests/test-popen.c (main): Move...
37711         * tests/test-popen.h: ...into new file.
37712         * tests/test-popen-safer2.c: New file.
37713         * modules/popen-tests (Files): Add test-popen.h.
37714         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37715         Suggested by Bruno Haible.
37716
37717         test-fcntl-safer: split from test-open
37718         * tests/test-open.c (main): Move...
37719         * tests/test-open.h: ...into new file.
37720         * tests/test-fcntl-safer.c: New file.
37721         * modules/open-tests (Files): Add test-open.h.
37722         * modules/fcntl-safer-tests: New file.
37723         Suggested by Bruno Haible.
37724
37725         test-fopen-safer: split from test-fopen
37726         * tests/test-fopen.c (main): Move...
37727         * tests/test-fopen.h: ...into new file.
37728         * tests/test-fopen-safer.c: New file.
37729         * modules/fopen-tests (Files): Add test-fopen.h.
37730         * modules/fopen-safer-tests: New file.
37731         Suggested by Bruno Haible.
37732
37733 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37734
37735         popen-safer: test O_CLOEXEC at run-time.
37736         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37737
37738 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37739
37740         fcntl: move more flags to the header
37741         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37742         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37743         * lib/fcntl.in.h: Do both things here.
37744
37745 2009-08-21  Jim Meyering  <meyering@redhat.com>
37746
37747         consistently remove $@-t before redirecting to it
37748         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37749         * modules/alloca-opt: Likewise.
37750         * modules/byteswap: Likewise.
37751         * modules/fnmatch: Likewise.
37752         * modules/getopt-posix: Likewise.
37753         * modules/glob: Likewise.
37754         * modules/poll: Likewise.
37755         * modules/posix_spawnp-tests: Likewise.
37756         * modules/sys_socket: Likewise.
37757         * modules/sysexits: Likewise.
37758
37759 2009-08-21  Eric Blake  <ebb9@byu.net>
37760
37761         popen: simplify access to original popen
37762         * lib/popen.c (rpl_popen): No need to worry about popen being a
37763         macro.
37764         Reported by Bruno Haible.
37765
37766 2009-08-20  Eric Blake  <ebb9@byu.net>
37767
37768         build: avoid some compiler warnings
37769         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37770         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37771         type.
37772         (new_exclude_segment, excluded_file_pattern_p)
37773         (excluded_file_name_p): Reduce scope.
37774         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37775         old-style declaration.
37776
37777 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37778
37779         * tests/test-exclude1.sh: Handle Windows EOL.
37780         * tests/test-exclude2.sh: Likewise.
37781         * tests/test-exclude3.sh: Likewise.
37782         * tests/test-exclude4.sh: Likewise.
37783         * tests/test-exclude5.sh: Likewise.
37784         * tests/test-exclude6.sh: Likewise.
37785         * tests/test-exclude7.sh: Likewise.
37786
37787 2009-08-19  Akim Demaille  <demaille@gostai.com>
37788
37789         bootstrap: find sha1sum when named gsha1sum.
37790         * bootstrap (find_tool): New.
37791         ($SHA1SUM): New.
37792         Use it.
37793
37794 2009-08-20  Jim Meyering  <meyering@redhat.com>
37795
37796         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37797         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37798         expression that converts "." in a file name to "\." in the resulting
37799         regexp.  Start with a dummy statement, so that prior shell variable
37800         definitions are expanded portably.  Reported by Simon Josefsson.
37801
37802 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37803
37804         Fix polling for writeability of a screen buffer.
37805         * lib/poll.c: Distinguish input and screen buffers for the
37806         Win32 implementation.
37807         * lib/select.c: Likewise.
37808
37809 2009-08-19  Eric Blake  <ebb9@byu.net>
37810
37811         popen-safer: prevent popen from clobbering std descriptors
37812         * modules/popen-safer: New file.
37813         * lib/popen-safer.c: Likewise.
37814         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37815         * lib/stdio--.h (popen): Provide override.
37816         * lib/stdio-safer.h (popen_safer): Provide declaration.
37817         * tests/test-popen.c (includes): Partially test this.
37818         * modules/popen-safer-tests: New file, for more tests.
37819         * tests/test-popen-safer.c: Likewise.
37820         * MODULES.html.sh (file stream based Input/Output): Mention it.
37821
37822         tests: test some of the *-safer modules
37823         * modules/fopen-safer (Depends-on): Add fopen.
37824         * modules/fcntl-safer (Depends-on): Add fcntl.
37825         * modules/stdlib-safer (Depends-on): Add stdlib.
37826         (configure.ac): Set indicator.
37827         * modules/unistd-safer (configure.ac): Likewise.
37828         * modules/tmpfile-safer (configure.ac): Likewise.
37829         (Depends-on): Add tmpfile.
37830         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37831         active.
37832         * tests/test-fopen.c (includes): Test safer versions when they are
37833         in use.
37834         * tests/test-open.c (includes): Likewise.
37835
37836         popen: fix cygwin 1.5 bug when stdin closed
37837         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37838         * modules/popen: New file.
37839         * modules/popen-tests: Likewise.
37840         * tests/test-popen.c: Likewise.
37841         * m4/popen.m4: Likewise.
37842         * lib/popen.c: Likewise.
37843         * lib/stdio.in.h (popen): New declaration.
37844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37845         * modules/stdio (Makefile.am): Likewise.
37846         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37847
37848 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37849
37850         maint.mk: give full control over update-copyright exclusions
37851         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37852         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37853         (update-copyright): Don't force inclusion of top-level
37854         ChangeLog.  Don't force exclusion of all COPYING files, but make
37855         them the default exclusion instead.
37856
37857 2009-08-16  Bruno Haible  <bruno@clisp.org>
37858
37859         Fix test failures on Solaris 10.
37860         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37861         tests when Solaris iconv() is used.
37862         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37863         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37864         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37865         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37866         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37867
37868 2009-08-16  Bruno Haible  <bruno@clisp.org>
37869
37870         Fix test failures on Solaris 10.
37871         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37872         'tr' program and pass it as first argument.
37873         * tests/test-pipe-filter-gi1.sh: Likewise.
37874         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37875         program as first argument.
37876         * tests/test-pipe-filter-gi1.c (main): Likewise.
37877
37878 2009-08-16  Eric Blake  <ebb9@byu.net>
37879
37880         fpurge: fix previous commits
37881         * modules/fpurge (Makefile.am): Make replacement conditional,
37882         partially reverting 2007-04-29 change; missed in previous
37883         attempt.
37884         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37885         is missing.
37886
37887 2009-08-16  Bruno Haible  <bruno@clisp.org>
37888
37889         Clarify fpurge's effect on the file position.
37890         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37891         * tests/test-fpurge.c (main): Make a second pass for checking the file
37892         position.
37893
37894 2009-08-16  Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37897         declaration of fpurge is missing.
37898         * tests/test-fpurge.c (main): Check that the file has not more contents
37899         than expected. Close the file before removing it.
37900
37901 2009-08-15  Eric Blake  <ebb9@byu.net>
37902
37903         fpurge: don't wrap working cygwin implementation
37904         * lib/fpurge.c (fpurge): Fix comment typo.
37905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37906         1.7 to avoid replacement.
37907         * tests/test-fpurge.c (main): Enhance test.
37908
37909 2009-08-15  Eric Blake  <ebb9@byu.net>
37910         and Jim Meyering  <meyering@redhat.com>
37911
37912         test-update-copyright: skip if perl is insufficient
37913         * tests/test-update-copyright.sh: Failure to run maintainer tool
37914         should not cause testsuite failure on cygwin 1.5.
37915
37916 2009-08-14  Eric Blake  <ebb9@byu.net>
37917
37918         doc: mention more functions added in cygwin 1.7.0
37919         * doc/posix-headers/limits.texi (limits.h): Update for recent
37920         cygwin additions.
37921         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37922         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37923         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37924         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37925         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37926
37927 2009-08-14  Eric Blake  <ebb9@byu.net>
37928
37929         maint.mk: simplify update-copyright rule
37930         * top/maint.mk (update-copyright-local): Delete, and document how
37931         to do it in cfg.mk instead.
37932         (update-copyright-exclude-regexp): Delete, and document how to do
37933         it in .x-update-copyright instead.
37934         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37935         exclude ChangeLog.
37936
37937 2009-08-14  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37940
37941 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37942
37943         maint.mk: support update-copyright-env
37944         * top/maint.mk (update-copyright-env): Define place-holder.
37945         (update-copyright): Expand $(update-copyright-env) before
37946         invoking update-copyright.
37947
37948 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37949
37950         update-copyright: implement forced reformatting
37951         * build-aux/update-copyright: Implement and document
37952         UPDATE_COPYRIGHT_FORCE.
37953         * tests/test-update-copyright.sh: Test it.
37954
37955 2009-08-14  Eric Blake  <ebb9@byu.net>
37956         and Bruno Haible  <bruno@clisp.org>
37957
37958         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37959         * tests/test-locale.c: Revert previous patch related to NULL.
37960         * tests/test-stdio.c: Likewise.
37961         * tests/test-stdlib.c: Likewise.
37962         * tests/test-string.c: Likewise.
37963         * tests/test-unistd.c: Likewise.
37964         * modules/time-tests (Depends-on): Add verify.
37965         * modules/wchar-tests (Depends-on): Likewise.
37966         * tests/test-time.c: Test for NULL compliance.
37967         * tests/test-wchar.c: Likewise.
37968         * modules/locale (Depends-on): Add stddef.
37969         * modules/stdio (Depends-on): Likewise.
37970         * modules/stdlib (Depends-on): Likewise.
37971         * modules/string (Depends-on): Likewise.
37972         * modules/time (Depends-on): Likewise.
37973         * modules/unistd (Depends-on): Likewise.
37974         * modules/wchar (Depends-on): Likewise.
37975         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37976         * lib/stdlib.in.h (includes): Likewise.
37977         * lib/string.in.h (includes): Likewise.
37978         * lib/time.in.h (includes): Likewise.
37979         * lib/unistd.in.h (includes): Likewise.
37980         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37981         replaced.
37982         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37983         * m4/stddef_h.m4: New file.
37984         * modules/stddef: Likewise.
37985         * lib/stddef.in.h: Likewise.
37986         * modules/stddef-tests: Likewise.
37987         * tests/test-stddef.c: Likewise.
37988         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37989         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37990         * doc/posix-headers/locale.texi (locale.h): Likewise.
37991         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37992         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37993         * doc/posix-headers/string.texi (string.h): Likewise.
37994         * doc/posix-headers/time.texi (time.h): Likewise.
37995         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37996         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37997
37998 2009-08-14  Eric Blake  <ebb9@byu.net>
37999
38000         doc: improve git diff of texinfo files
38001         * .gitattributes: Add rule for *.texi files, with hint on how to
38002         use it.
38003         Copied from m4, and based on a report by Bruno Haible.
38004
38005 2009-08-14  Bruno Haible  <bruno@clisp.org>
38006
38007         Disable multithread support by default on Cygwin 1.5.x for real.
38008         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38009
38010 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38011
38012         update-copyright: much ado about intervals
38013         * build-aux/update-copyright: Implement and document
38014         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38015         of copyright year intervals.
38016         Also, document UPDATE_COPYRIGHT_YEAR.
38017         * tests/test-update-copyright.sh: Test it.
38018
38019         update-copyright: convert 2-digit to 4-digit years
38020         * build-aux/update-copyright: Implement and document.
38021         * tests/test-update-copyright.sh: Update.
38022
38023 2009-08-14  Jim Meyering  <meyering@redhat.com>
38024
38025         test-exclude: avoid coreutils "make check" failure
38026         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38027         just as in test-argmatch.c.
38028
38029 2009-08-13  Eric Blake  <ebb9@byu.net>
38030
38031         test-dup2: fix bad assumption
38032         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38033         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38034
38035         test-version-etc: fix CRLF portability issue
38036         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38037         recognize \r.
38038         * tests/test-argp-version-etc-1.sh: Likewise.
38039
38040         getopt: update client modules
38041         * modules/argp (Depends-on): Use getopt-gnu.
38042         * modules/git-merge-changelog (Depends-on): Likewise.
38043         * modules/long-options (Depends-on): Likewise.
38044         * modules/xstrtol (Depends-on): Likewise.
38045
38046 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38047
38048         * tests/test-version-etc.sh: Don't fail on different
38049         project/version.  Don't fail on CRLF differences.  Rewrite to use
38050         multiple -e instead of multiple sed forks, suggested by Eric Blake
38051         <ebb9@byu.net>.
38052         * tests/test-argp-version-etc-1.sh: Likewise.
38053
38054 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38055
38056         * tests/test-version-etc.sh: Don't fail on different
38057         project/version.
38058
38059 2009-08-12  Bruno Haible  <bruno@clisp.org>
38060
38061         Tests for modules 'getopt-posix', 'getopt-gnu'.
38062         * modules/getopt-posix-tests: New file.
38063         * tests/test-getopt.c: New file.
38064         * tests/test-getopt.h: New file.
38065         * tests/test-getopt_long.h: New file.
38066
38067         New modules 'getopt-posix', 'getopt-gnu'.
38068         * modules/getopt-gnu: New file, renamed from modules/getopt.
38069         * modules/getopt-posix: New file.
38070         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38071         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38072         (gl_GETOPT): Remove macro.
38073         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38074         Disable the test against BSD systems that declare optreset. Test
38075         against mingw bug. Test against lack of support of optional arguments
38076         on many platforms.
38077         * doc/glibc-headers/getopt.texi: Update module name and list of
38078         relevant platforms.
38079         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38080         'getopt-gnu' and more portability problems.
38081         * NEWS: Mention the changes.
38082
38083 2009-08-12  Bruno Haible  <bruno@clisp.org>
38084
38085         Ensure that optarg etc. get declared by <unistd.h>.
38086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38087         AC_USE_SYSTEM_EXTENSIONS.
38088         * modules/getopt (Depends-on): Add 'extensions'.
38089
38090 2009-08-12  Bruno Haible  <bruno@clisp.org>
38091
38092         Avoid test link errors.
38093         * modules/pipe-filter-ii-tests (Makefile.am): Define
38094         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38095         * modules/pipe-filter-gi-tests (Makefile.am): Define
38096         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38098
38099 2009-08-12  Bruno Haible  <bruno@clisp.org>
38100
38101         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38102         gl_GETOPT_SUBSTITUTE before.
38103         (gl_GETOPT): Use it.
38104         * m4/argp.m4 (gl_ARGP): Update.
38105         Reported by Sergey Poznyakoff.
38106
38107         * m4/getopt.m4: Reorder macros.
38108         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38109         (gl_GETOPT_SUBSTITUTE): Remove macro.
38110
38111 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38112
38113         Minor improvement in gitlog-to-changelog
38114
38115         * build-aux/gitlog-to-changelog: New option `--format' makes
38116         output format string configurable.
38117
38118 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38119
38120         Optimize exclude: use hash tables for non-wildcard patterns.
38121
38122         * lib/exclude.c: Include hash.h and mbuiter.h
38123         (struct exclude_pattern, exclude_segment): New data types.
38124         (struct exclude): Rewrite.
38125         (fnmatch_pattern_has_wildcards): New function.
38126         (new_exclude_segment, free_exclude_segment): New functions.
38127         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38128         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38129         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38130         * modules/exclude: Depend on hash and mbuiter.
38131
38132         * modules/exclude-tests: New file.
38133         * tests/test-exclude.c: New file.
38134         * tests/test-exclude1.sh: New file.
38135         * tests/test-exclude2.sh: New file.
38136         * tests/test-exclude3.sh: New file.
38137         * tests/test-exclude4.sh: New file.
38138         * tests/test-exclude5.sh: New file.
38139         * tests/test-exclude6.sh: New file.
38140         * tests/test-exclude7.sh: New file.
38141
38142 2009-08-12  Bruno Haible  <bruno@clisp.org>
38143
38144         Ensure that getopt() gets declared by <unistd.h>.
38145         * lib/unistd.in.h: Conditionally include getopt.h.
38146         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38147         Set GNULIB_UNISTD_H_GETOPT.
38148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38149         GNULIB_UNISTD_H_GETOPT.
38150         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38151
38152 2009-08-12  Bruno Haible  <bruno@clisp.org>
38153
38154         Clarify logic.
38155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38156         gl_replace_getopt instead of GETOPT_H.
38157
38158 2009-08-12  Bruno Haible  <bruno@clisp.org>
38159
38160         * m4/getopt.m4: Add comments.
38161
38162 2009-08-12  Bruno Haible  <bruno@clisp.org>
38163
38164         Disable multithread support by default on Cygwin 1.5.x.
38165         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38166         set gl_use_threads=no if not specified otherwise.
38167
38168 2009-08-11  Bruno Haible  <bruno@clisp.org>
38169
38170         Avoid compilation error on NetBSD 5.0.
38171         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38172         * tests/test-stdio.c: Likewise.
38173         * tests/test-stdlib.c: Likewise.
38174         * tests/test-string.c: Likewise.
38175         * tests/test-unistd.c: Likewise.
38176         Reported by Greg Troxel <gdt@ir.bbn.com>
38177         at <https://savannah.gnu.org/support/?106973>.
38178
38179 2009-08-11  Bruno Haible  <bruno@clisp.org>
38180
38181         * modules/dup2-tests (Depends-on): Remove close.
38182
38183         Undo 2009-07-19 commit.
38184         * modules/acl-tests (Depends-on): Remove close.
38185         * modules/binary-io-tests (Depends-on): Likewise.
38186         * modules/closein-tests (Depends-on): Likewise.
38187         * modules/flock-tests (Depends-on): Likewise.
38188         * modules/fsync-tests (Depends-on): Likewise.
38189         * modules/lseek-tests (Depends-on): Likewise.
38190         * modules/pipe-tests (Depends-on): Likewise.
38191         * modules/posix_spawn-tests (Depends-on): Likewise.
38192         * modules/posix_spawnp-tests (Depends-on): Likewise.
38193         * modules/stat-time-tests (Depends-on): Likewise.
38194         * modules/yesno-tests (Depends-on): Likewise.
38195
38196 2009-08-10  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38199
38200 2009-08-10  Bruno Haible  <bruno@clisp.org>
38201
38202         Fix a gcc warning.
38203         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38204
38205 2009-08-10  Bruno Haible  <bruno@clisp.org>
38206
38207         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38208         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38209         not only the first time.
38210         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38211         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38212         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38213         is 1, not only the the first time.
38214
38215 2009-08-10  Bruno Haible  <bruno@clisp.org>
38216
38217         Make it possible to use module 'gethostname' without module 'close'.
38218         * lib/unistd.in.h (close): Evoke a link error only if
38219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38222         * modules/unistd (Makefile.am): Substitute
38223         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38224         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38228         * modules/sys_ioctl (Makefile.am): Substitute
38229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38230         * modules/socket (configure.ac): On native Windows, set
38231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38232         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38233         Reported by Sam Steingold <sds@gnu.org>.
38234
38235 2009-08-10  Bruno Haible  <bruno@clisp.org>
38236
38237         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38238         * modules/ioctl (configure.ac): Likewise.
38239
38240 2009-08-10  Bruno Haible  <bruno@clisp.org>
38241
38242         Avoid collision between gnulib wrapper and libintl wrapper.
38243         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38244         already defined in intl/printf.c.
38245         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38246         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38247
38248 2009-08-09  Bruno Haible  <bruno@clisp.org>
38249
38250         Make <sys/select.h> really self-contained, also on Solaris 10.
38251         * lib/sys_select.in.h: Include <string.h>.
38252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38253         Solaris 10 problem.
38254         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38255         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38256         Reported by Jim Meyering.
38257
38258 2009-08-09  Bruno Haible  <bruno@clisp.org>
38259
38260         Avoid warnings from 'aclocal' that are due to a use of macro name
38261         AM_XGETTEXT_OPTION that is not defined in automake.
38262         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38263         automake.
38264         * modules/error (configure.ac): Likewise.
38265         * modules/propername (configure.ac): Likewise.
38266         * modules/vasprintf (configure.ac): Likewise.
38267         * modules/verror (configure.ac): Likewise.
38268         * modules/xprintf (configure.ac): Likewise.
38269         * modules/xvasprintf (configure.ac): Likewise.
38270
38271 2009-08-08  Bruno Haible  <bruno@clisp.org>
38272
38273         Avoid compilation error in C++ mode.
38274         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38275         Reported by Sam Steingold <sds@gnu.org>.
38276
38277 2009-08-08  Bruno Haible  <bruno@clisp.org>
38278
38279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38280         for the various Unix platforms.
38281         * doc/posix-headers/limits.texi: Update platforms list regarding
38282         HOST_NAME_MAX.
38283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38284
38285 2009-08-07  Jim Meyering  <meyering@redhat.com>
38286
38287         selinux-at: fix typo in a comment
38288         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38289         Spotted by Paolo Bonzini.
38290
38291         selinux-at: remove redundant m4 code, add documentation
38292         * modules/selinux-at (configure.ac): Remove redundant code.
38293         LIB_SELINUX is already set via the dependent module, selinux-h.
38294         (Include): Add quotes around selinux-at.h.
38295         * lib/selinux-at.h: Add documentation.
38296         Reported by Bruno Haible in
38297         http://marc.info/?l=gnulib-bug&m=124958988300749
38298
38299 2009-08-07  Bruno Haible  <bruno@clisp.org>
38300
38301         Avoid link error on MacOS X 10.3 and 10.4.
38302         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38303         on non-ELF systems.
38304         * lib/argp-pv.c (argp_program_version): Likewise.
38305         Reported by Simon Josefsson.
38306
38307 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38308
38309         * tests/test-version-etc.sh: Use $EXEEXT.
38310
38311 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38312
38313         update-copyright: update documentation to point to maint.mk
38314         * build-aux/update-copyright: Here.
38315
38316 2009-08-06  Jim Meyering  <meyering@redhat.com>
38317
38318         maint.mk: support update-copyright-local
38319         * top/maint.mk (update-copyright-local): Define place-holder.
38320         (update-copyright): Depend on $(update-copyright-local).
38321
38322 2009-08-06  Jim Meyering  <meyering@redhat.com>
38323
38324         selinux-at: new module
38325         Initially written for coreutils, this module will soon be
38326         used by findutils, too.
38327         * MODULES.html.sh [Misc]: Add selinux-at.
38328         * lib/selinux-at.h: New file, from coreutils.
38329         * lib/selinux-at.c: Likewise.
38330         * modules/selinux-at: Likewise.
38331         (License): Change from LGPL to GPL, since it depends
38332         on the GPL'd openat module.
38333
38334         doc: update README
38335         * README: Remove references to cogito.
38336         Remove cvs-repo-updating instructions from 2007.
38337         Don't imply that CVS is better if you have limited disk space.
38338
38339 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38340
38341         update-copyright: support C-style comments
38342         * build-aux/update-copyright: Implement and document.
38343         * tests/test-update-copyright.sh: Test.
38344
38345 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38346
38347         update-copyright: support omitted "(C)"
38348         * build-aux/update-copyright: Implement and document.  Also,
38349         allow variable whitespace before "(C)".
38350         * tests/test-update-copyright.sh: Test.
38351
38352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38353
38354         update-copyright: don't trip on non-FSF copyright statements
38355         * build-aux/update-copyright: Fix so that the first correctly
38356         formatted FSF copyright statement is recognized no matter what
38357         appears before it.  Update documentation.
38358         * tests/test-update-copyright.sh: Test that.
38359
38360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38361
38362         update-copyright: clean up code a little
38363         * build-aux/update-copyright: Append "_re" to the name of any
38364         variable holding a regular expression.
38365         Replace "old" and "new" with "stmt" in variable names.
38366         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38367         handled correctly.
38368         Format code more consistently.
38369
38370 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38371
38372         update-copyright-tests: improve portability
38373         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38374         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38375
38376 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38377
38378         update-copyright: support @copyright{} and &copy;
38379         * build-aux/update-copyright: Implement and document.
38380         * tests/test-update-copyright.sh: Test.
38381
38382 2009-08-04  Jim Meyering  <meyering@redhat.com>
38383
38384         update-copyright-tests: correctly test EOL=\r\n handling
38385         * tests/test-update-copyright.sh: Put \r at the end of some lines
38386         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38387
38388         maint.mk: make update-copyright exclusion list more configurable
38389         * top/maint.mk (update-copyright): Default to excluding COPYING,
38390         but allow an override, in case someone does want to update that file.
38391
38392         maint.mk: don't update copyright date in COPYING
38393         * top/maint.mk (update-copyright): Exclude COPYING.
38394
38395         maint.mk: add a copyright-updating rule
38396         * top/maint.mk (update-copyright): New rule.
38397         Derived from coreutils/Makefile.am.
38398
38399         update-copyright: rename some variables
38400         * build-aux/update-copyright: Rename a few variables for clarity.
38401         Tweak syntax.  List Joel E. Denny as coauthor.
38402
38403 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38404
38405         update-copyright: fix bug for 2-digit last year and add tests
38406         * build-aux/update-copyright: Fix bug.
38407         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38408         specified.
38409         * modules/update-copyright-tests: New
38410         * tests/test-update-copyright.sh: New.
38411
38412 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38413
38414         update-copyright: handle leading tabs in line prefix
38415         * build-aux/update-copyright: Count leading tabs as 8 spaces
38416         when computing margin.  This helps with the formatting of
38417         ChangeLogs, for example.
38418         Fix documentation a little.
38419
38420 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38421
38422         update-copyright: support EOL=\r\n
38423         * build-aux/update-copyright: Implement that.
38424
38425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38426
38427         update-copyright: automatically format copyright statements
38428         * build-aux/update-copyright: Implement that.
38429         Also, be a little more predictable and safer by always failing
38430         when the full copyright format is not perfectly recognized as an
38431         unbroken whole.  Discussed at
38432         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38433         Rewrite documentation.
38434
38435 2009-08-03  Bruno Haible  <bruno@clisp.org>
38436
38437         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38438
38439 2009-08-02  Bruno Haible  <bruno@clisp.org>
38440
38441         Tests for module 'uname'.
38442         * modules/uname-tests: New file.
38443         * tests/test-uname.c: New file.
38444
38445         New module 'uname'.
38446         * lib/uname.c: New file.
38447         * m4/uname.m4: New file.
38448         * modules/uname: New file.
38449         * doc/posix-functions/uname.texi: Mention the new module.
38450
38451 2009-08-02  Bruno Haible  <bruno@clisp.org>
38452
38453         Tests for module 'sys_utsname'.
38454         * modules/sys_utsname-tests: New file.
38455         * tests/test-sys_utsname.c: New file.
38456
38457         New module 'sys_utsname'.
38458         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38459         * m4/sys_utsname_h.m4: New file.
38460         * modules/sys_utsname: New file.
38461         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38462
38463 2009-08-02  Bruno Haible  <bruno@clisp.org>
38464
38465         Implicitly initialize the sockets library.
38466         * lib/gethostname.c: Include sockets.h.
38467         (rpl_gethostname): Invoke gl_sockets_startup.
38468         * lib/socket.c: Include sockets.h.
38469         (rpl_socket): Invoke gl_sockets_startup.
38470         * modules/gethostname (Depends-on): Add sockets.
38471         * modules/socket (Depends-on): Likewise.
38472         * tests/test-poll.c: Don't include sockets.h.
38473         (main): Don't invoke gl_sockets_startup.
38474         * tests/test-select.c: Don't include sockets.h.
38475         (main): Don't invoke gl_sockets_startup.
38476
38477 2009-08-02  Bruno Haible  <bruno@clisp.org>
38478
38479         Allow multiple calls to gl_sockets_startup.
38480         * lib/sockets.c (initialized_sockets_version): New variable.
38481         (gl_sockets_startup): Do nothing if already called for this or a higher
38482         version.
38483         (gl_sockets_cleanup): Reset initialized_sockets_version.
38484
38485 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38486
38487         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38488         different project/version.
38489
38490 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38491             Bruno Haible  <bruno@clisp.org>
38492
38493         Tests for module 'pipe-filter-gi'.
38494         * modules/pipe-filter-gi-tests: New file.
38495         * tests/test-pipe-filter-gi1.sh: New file.
38496         * tests/test-pipe-filter-gi1.c: New file.
38497         * tests/test-pipe-filter-gi2.sh: New file.
38498         * tests/test-pipe-filter-gi2-main.c: New file.
38499         * tests/test-pipe-filter-gi2-child.c: New file.
38500
38501         New module 'pipe-filter-gi'.
38502         * lib/pipe-filter-gi.c: New file.
38503         * modules/pipe-filter-gi: New file.
38504
38505 2009-08-02  Bruno Haible  <bruno@clisp.org>
38506             Paolo Bonzini  <bonzini@gnu.org>
38507
38508         Tests for module 'pipe-filter-ii'.
38509         * modules/pipe-filter-ii-tests: New file.
38510         * tests/test-pipe-filter-ii1.sh: New file.
38511         * tests/test-pipe-filter-ii1.c: New file.
38512         * tests/test-pipe-filter-ii2.sh: New file.
38513         * tests/test-pipe-filter-ii2-main.c: New file.
38514         * tests/test-pipe-filter-ii2-child.c: New file.
38515
38516         New module 'pipe-filter-ii'.
38517         * lib/pipe-filter.h: New file.
38518         * lib/pipe-filter-ii.c: New file.
38519         * lib/pipe-filter-aux.h: New file.
38520         * modules/pipe-filter-ii: New file.
38521
38522 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38523
38524         * lib/gc-libgcrypt.c: Change copyright to FSF.
38525         * lib/gc-gnulib.c: Likewise.
38526
38527 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38528
38529         * lib/gethostname.c: Include limits.h.
38530
38531 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38532             Bruno Haible  <bruno@clisp.org>
38533
38534         Ensure HOST_NAME_MAX as part of the gethostname module.
38535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38536         define also HOST_NAME_MAX.
38537         * tests/test-gethostname.c: Include <limits.h>.
38538         (main): Check also HOST_NAME_MAX.
38539         * doc/posix-headers/limits.texi: Document the mingw problem.
38540
38541 2009-08-02  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38544         Add comments.
38545
38546 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38547
38548         * lib/gethostname.c: Add Windows wrapper.
38549         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38550         * modules/gethostname: Depend on sys_socket & errno, for also
38551         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38552         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38553
38554 2009-07-31  Jim Meyering  <meyering@redhat.com>
38555
38556         getloadavg: fix symbol name in comment
38557         * lib/getloadavg.c: Correct a typo I introduced when adding
38558         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38559         Matt Kraai spotted the problem.
38560
38561 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38562
38563         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38564         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38565         code also if ! defined N_NAME_POINTER.
38566         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38567         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38568         but the n_name member is a 12-byte array.
38569
38570 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38571
38572         update-copyright: generalize comment handling
38573         * build-aux/update-copyright: Handle copyright statements
38574         within more comment styles.
38575         Document usage.
38576         Report any file with an external copyright holder or parse failure.
38577
38578 2009-07-29  Jim Meyering  <meyering@redhat.com>
38579
38580         mktime: correct setting of REPLACE_MKTIME
38581         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38582
38583         update-copyright: new module
38584         * modules/update-copyright: New file.
38585         * build-aux/update-copyright: New file.
38586         * MODULES.html.sh (maint+release support): Add update-copyright.
38587
38588 2009-07-27  Bruno Haible  <bruno@clisp.org>
38589
38590         Fix compilation error when <ctime> is used and mktime is replaced.
38591         * lib/time.in.h (mktime): New declaration.
38592         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38593         REPLACE_MKTIME instead of defining mktime in config.h.
38594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38595         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38596         Reported by Ross McFarland <rwmcfa1@neces.com>.
38597
38598 2009-07-27  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38601         Reported by Matt Kraai <mkraai@beckman.com>.
38602
38603 2009-07-25  Jim Meyering  <meyering@redhat.com>
38604
38605         maint.mk: avoid warnings about missing files
38606         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38607         diagnostic when .prev-version does not exist.
38608         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38609         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38610         nonexistent cfg.mk.
38611         Suggestions from Simon Josefsson.
38612
38613 2009-07-25  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38616         defined as macros. Needed on QNX 6.4.1.
38617         Reported by Matt Kraai <mkraai@beckman.com>.
38618
38619 2009-07-23  Jim Meyering  <meyering@redhat.com>
38620
38621         maint.mk: invoke "make dist" with a working value of XZ_OPT
38622         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38623
38624 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38625
38626         Make fseeko.c compile on QNX.
38627         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38628
38629 2009-07-22  Peter Simons  <simons@cryp.to>
38630
38631         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38632         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38633         * lib/md4.h: Likewise.
38634         * lib/md5.h: Likewise.
38635         * lib/sha1.h: Likewise.
38636         * lib/sha256.h: Likewise.
38637         * lib/sha512.h: Likewise.
38638
38639         tests-sha1: don't assign literal string to 'char *' variable
38640         * tests/test-sha1.c (main): Declare locals with "const" to match
38641         attributes of the right hand side.
38642
38643 2009-07-21  Eric Blake  <ebb9@byu.net>
38644
38645         dup2: fix more mingw problems
38646         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38647         fd to itself.
38648         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38649         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38650         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38651         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38652         care of mingw bugs.
38653
38654 2009-07-21  Jim Meyering  <meyering@redhat.com>
38655
38656         vc-list-files: avoid failure when /bin/sh is dash
38657         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38658         On some Debian based systems, /bin/sh is a symlink to dash, and running
38659         this command would omit the "/" following each 'tests' prefix:
38660           dash -x build-aux/vc-list-files -C . tests
38661         That is because bash and dash work differently:
38662           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38663           bash ok
38664           dash odd
38665
38666 2009-07-21  Eric Blake  <ebb9@byu.net>
38667
38668         dup2-tests: test previous patch
38669         * modules/dup2-tests: New file.
38670         * tests/test-dup2.c: Likewise.
38671         * tests/test-open.c (main): Avoid unspecified behavior.
38672         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38673         test.
38674
38675         dup2: work around mingw and cygwin 1.5 bug
38676         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38678         * modules/unistd (Makefile.am): Substitute it.
38679         * lib/unistd.in.h (dup2): Declare the replacement.
38680         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38681         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38682         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38683         * modules/execute (Depends-on): Add dup2.
38684         * modules/fseterr (Depends-on): Likewise.
38685         * modules/pipe (Depends-on): Likewise.
38686         * modules/posix_spawn-internal (Depends-on): Likewise.
38687
38688 2009-07-21  Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/.gitattributes: New file.
38691
38692 2009-07-20  Bruno Haible  <bruno@clisp.org>
38693
38694         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38695         (main): Use it.
38696
38697 2009-07-20  Eric Blake  <ebb9@byu.net>
38698
38699         test-pipe: make a bit more robust.
38700         * tests/test-pipe.c (myerr): Allow error messages regardless of
38701         what we do to stderr.
38702         (test_pipe): Rearrange to avoid deadlock.
38703         (child_main): Try a larger read, to ensure we avoided deadlock.
38704         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38705         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38706         if misused.
38707
38708 2009-07-19  Jim Meyering  <meyering@redhat.com>
38709
38710         fts: avoid false-positive cycle-detection
38711         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38712         for each new command line argument.
38713
38714 2009-07-19  Bruno Haible  <bruno@clisp.org>
38715
38716         Fix build error on mingw with the modules sys_select and unistd.
38717         * modules/acl-tests (Depends-on): Add close.
38718         * modules/binary-io-tests (Depends-on): Likewise.
38719         * modules/closein-tests (Depends-on): Likewise.
38720         * modules/flock-tests (Depends-on): Likewise.
38721         * modules/fsync-tests (Depends-on): Likewise.
38722         * modules/lseek-tests (Depends-on): Likewise.
38723         * modules/pipe-tests (Depends-on): Likewise.
38724         * modules/posix_spawn-tests (Depends-on): Likewise.
38725         * modules/posix_spawnp-tests (Depends-on): Likewise.
38726         * modules/stat-time-tests (Depends-on): Likewise.
38727         * modules/yesno-tests (Depends-on): Likewise.
38728
38729 2009-07-19  Bruno Haible  <bruno@clisp.org>
38730
38731         Unify conditionals.
38732         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38733         macros, not at the compiler macros.
38734         * lib/pipe.c: Likewise.
38735         * lib/execute.c: Likewise.
38736         * lib/spawni.c: Likewise.
38737
38738 2009-07-19  Bruno Haible  <bruno@clisp.org>
38739
38740         Fix handling of closed stdin/stdout/stderr on mingw.
38741         * lib/w32spawn.h: Include unistd.h.
38742         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38743         file descriptor with O_NOINHERIT flag.
38744         (fd_safer_noinherit): New function, based on fd-safer.c.
38745         (dup_safer_noinherit): New function, based on dup-safer.c.
38746         (undup_safer_noinherit): New function.
38747         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38748         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38749         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38750         instead of fd_safer.
38751         * tests/test-pipe.c: Include <windows.h>.
38752         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38753         result.
38754
38755         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38756         from main.
38757         (test_pipe): Pass an extra argument for disambiguation.
38758         (main): Invoke parent_main or child_main.
38759
38760         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38761         consistently.
38762
38763 2009-07-18  Eric Blake  <ebb9@byu.net>
38764
38765         test-pipe: fix mingw build
38766         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38767
38768 2009-07-18  Bruno Haible  <bruno@clisp.org>
38769
38770         * modules/pipe-tests (Makefile.am): Fix typo.
38771
38772 2009-07-18  Eric Blake  <ebb9@byu.net>
38773
38774         error: fix mingw build
38775         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38776         Reported by Bruno Haible.
38777
38778         error: avoid undefined use of stdout
38779         * lib/error.c (error, error_at_line): Check that fd 1 is open
38780         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38781         is handling faults and the close_stdout module wants to report the
38782         detection of closed stdout as an error.
38783
38784 2009-07-17  Eric Blake  <ebb9@byu.net>
38785
38786         pipe: be robust in face of closed fds
38787         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38788         should cause child to misbehave.
38789         * modules/pipe-tests: New module.
38790         * tests/test-pipe.c: New file.
38791         * tests/test-pipe.sh: New file.
38792         Reported by Akim Demaille.
38793
38794 2009-07-14  Bruno Haible  <bruno@clisp.org>
38795
38796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38797         Reported by anonymous kc.
38798
38799 2009-07-07  Jim Meyering  <meyering@redhat.com>
38800
38801         maint.mk: don't look for translatable strings in *.m4 or *.mk
38802         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38803         when searching for translatable strings.
38804
38805 2009-07-05  Jim Meyering  <meyering@redhat.com>
38806
38807         remove superfluous parentheses in STREQ definition
38808         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38809         * lib/getugroups.c (STREQ): Likewise.
38810         * lib/fnmatch.c (STREQ): Likewise.
38811         Spotted by Bruno Haible.
38812
38813 2009-07-04  Jim Meyering  <meyering@redhat.com>
38814
38815         argv-iter: new module
38816         * MODULES.html.sh: Add argv-iter.
38817         * lib/argv-iter.c, lib/argv-iter.h: New files.
38818         * modules/argv-iter: New file.
38819         * modules/argv-iter-tests: New file.
38820         * tests/test-argv-iter.c: Test it.
38821
38822 2009-07-04  Bruno Haible  <bruno@clisp.org>
38823
38824         Fix assertion.
38825         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38826         contains more exact copies of a given entry than file2, leave the extra
38827         copies unpaired rather than aborting.
38828         Reported by Eric Blake.
38829
38830 2009-07-02  Bruno Haible  <bruno@clisp.org>
38831
38832         Speedup git-merge-changelog for git cherry-pick.
38833         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38834         (entries_mapping_get): New function, extracted from compute_mapping.
38835         (entries_mapping_reverse_get): New function.
38836         (compute_mapping): Add a 'full' argument. Return the result in a
38837         'struct entries_mapping'.
38838         (main): Update. Access the mappings through entries_mapping_get.
38839         Reported by Eric Blake.
38840
38841 2009-07-02  Bruno Haible  <bruno@clisp.org>
38842
38843         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38844         best_i.
38845
38846 2009-07-02  Bruno Haible  <bruno@clisp.org>
38847
38848         Speed up approximate search for matching ChangeLog entries.
38849         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38850         argument. Call fstrcmp_bounded instead of fstrcmp.
38851         (compute_mapping, try_split_merged_entry, main): Update callers.
38852
38853 2009-07-02  Bruno Haible  <bruno@clisp.org>
38854
38855         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38856
38857 2009-06-30  Bruno Haible  <bruno@clisp.org>
38858
38859         Reduce the number of uc_is_cased calls.
38860         * lib/unicase.h (casing_suffix_context_t): Add
38861         'first_char_except_ignorable' field.
38862         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38863         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38864         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38865         Update initializer.
38866         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38867         case-ignorable characters.
38868         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38869         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38870         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38871         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38872         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38873
38874 2009-06-30  Bruno Haible  <bruno@clisp.org>
38875
38876         Tests for module 'unicase/ignorable'.
38877         * modules/unicase/ignorable-tests: New file.
38878         * tests/unicase/test-ignorable.c: New file, generated by
38879         gen-uni-tables.
38880
38881         Tests for module 'unicase/cased'.
38882         * modules/unicase/cased-tests: New file.
38883         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38884         * tests/unicase/test-predicate-part1.h: New file, derived from
38885         tests/unictype/test-predicate-part1.h.
38886         * tests/unicase/test-predicate-part2.h: New file, same as
38887         tests/unictype/test-predicate-part2.h.
38888
38889         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38890         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38891         (output_casing_properties): New function.
38892         (main): Call it.
38893         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38894         * lib/unicase/cased.c: Include unictype/bitmap.h.
38895         (uc_is_cased): Define through a bitmap lookup.
38896         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38897         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38898         (uc_is_case_ignorable): Define through a bitmap lookup.
38899         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38900         lib/unictype/bitmap.h.
38901         (Depends-on): Add inline. Clean up.
38902         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38903         lib/unictype/bitmap.h.
38904         (Depends-on): Add inline. Clean up.
38905         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38906         recognition.
38907         * tests/unicase/test-u16-tolower.c (main): Likewise.
38908         * tests/unicase/test-u32-tolower.c (main): Likewise.
38909
38910 2009-06-30  Bruno Haible  <bruno@clisp.org>
38911
38912         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38913         * lib/unicase/u16-casemap.c: Likewise.
38914         * lib/unicase/u32-casemap.c: Likewise.
38915
38916 2009-06-29  Bruno Haible  <bruno@clisp.org>
38917
38918         Define u32_casefold as a wrapper around u32_ct_casefold.
38919         * lib/unicase/u32-casefold.c: Update.
38920         * modules/unicase/u32-casefold (Depends-on): Add
38921         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38922         unicase/empty-suffix-context. Clean up.
38923
38924         Define u16_casefold as a wrapper around u16_ct_casefold.
38925         * lib/unicase/u16-casefold.c: Update.
38926         * modules/unicase/u16-casefold (Depends-on): Add
38927         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38928         unicase/empty-suffix-context. Clean up.
38929
38930         Define u8_casefold as a wrapper around u8_ct_casefold.
38931         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38932         * lib/unicase/u8-casefold.c: Update.
38933         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38934         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38935
38936         Define u32_totitle as a wrapper around u32_ct_totitle.
38937         * lib/unicase/u32-totitle.c: Update.
38938         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38939         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38940
38941         Define u16_totitle as a wrapper around u16_ct_totitle.
38942         * lib/unicase/u16-totitle.c: Update.
38943         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38944         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38945
38946         Define u8_totitle as a wrapper around u8_ct_totitle.
38947         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38948         functions.
38949         (FUNC): Delegate to U_CT_TOTITLE.
38950         * lib/unicase/u8-totitle.c: Update.
38951         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38953
38954         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38955         invocation.
38956         * modules/unicase/u32-tolower (Depends-on): Add
38957         unicase/empty-prefix-context, unicase/empty-suffix-context.
38958
38959         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38960         invocation.
38961         * modules/unicase/u16-tolower (Depends-on): Add
38962         unicase/empty-prefix-context, unicase/empty-suffix-context.
38963
38964         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38965         * modules/unicase/u8-tolower (Depends-on): Add
38966         unicase/empty-prefix-context, unicase/empty-suffix-context.
38967
38968         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38969         invocation.
38970         * modules/unicase/u32-toupper (Depends-on): Add
38971         unicase/empty-prefix-context, unicase/empty-suffix-context.
38972
38973         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38974         invocation.
38975         * modules/unicase/u16-toupper (Depends-on): Add
38976         unicase/empty-prefix-context, unicase/empty-suffix-context.
38977
38978         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38979         * modules/unicase/u8-toupper (Depends-on): Add
38980         unicase/empty-prefix-context, unicase/empty-suffix-context.
38981
38982         New module 'unicase/u32-ct-casefold'.
38983         * lib/unicase/u32-ct-casefold.c: New file.
38984         * modules/unicase/u32-ct-casefold: New file.
38985
38986         New module 'unicase/u16-ct-casefold'.
38987         * lib/unicase/u16-ct-casefold.c: New file.
38988         * modules/unicase/u16-ct-casefold: New file.
38989
38990         New module 'unicase/u8-ct-casefold'.
38991         * lib/unicase/u8-ct-casefold.c: New file.
38992         * lib/unicase/u-ct-casefold.h: New file, derived from
38993         lib/unicase/u-casefold.h.
38994         * modules/unicase/u8-ct-casefold: New file.
38995
38996         New module 'unicase/u32-ct-totitle'.
38997         * lib/unicase/u32-ct-totitle.c: New file.
38998         * modules/unicase/u32-ct-totitle: New file.
38999
39000         New module 'unicase/u16-ct-totitle'.
39001         * lib/unicase/u16-ct-totitle.c: New file.
39002         * modules/unicase/u16-ct-totitle: New file.
39003
39004         New module 'unicase/u8-ct-totitle'.
39005         * lib/unicase/u8-ct-totitle.c: New file.
39006         * lib/unicase/u-ct-totitle.h: New file, derived from
39007         lib/unicase/u-totitle.h.
39008         * modules/unicase/u8-ct-totitle: New file.
39009
39010         New module 'unicase/u32-ct-tolower'.
39011         * lib/unicase/u32-ct-tolower.c: New file.
39012         * modules/unicase/u32-ct-tolower: New file.
39013
39014         New module 'unicase/u16-ct-tolower'.
39015         * lib/unicase/u16-ct-tolower.c: New file.
39016         * modules/unicase/u16-ct-tolower: New file.
39017
39018         New module 'unicase/u8-ct-tolower'.
39019         * lib/unicase/u8-ct-tolower.c: New file.
39020         * modules/unicase/u8-ct-tolower: New file.
39021
39022         New module 'unicase/u32-ct-toupper'.
39023         * lib/unicase/u32-ct-toupper.c: New file.
39024         * modules/unicase/u32-ct-toupper: New file.
39025
39026         New module 'unicase/u16-ct-toupper'.
39027         * lib/unicase/u16-ct-toupper.c: New file.
39028         * modules/unicase/u16-ct-toupper: New file.
39029
39030         New module 'unicase/u8-ct-toupper'.
39031         * lib/unicase/u8-ct-toupper.c: New file.
39032         * modules/unicase/u8-ct-toupper: New file.
39033
39034         Add context arguments to u*_casemap functions.
39035         * lib/unicase/unicasemap.h: Include unicase.h.
39036         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39037         suffix_context arguments.
39038         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39039         functions.
39040         (FUNC): Add prefix_context and suffix_context arguments. Use
39041         uc_is_cased and uc_is_case_ignorable.
39042         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39043         * lib/unicase/u16-casemap.c: Likewise.
39044         * lib/unicase/u32-casemap.c: Likewise.
39045         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39047         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39049         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39050         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39051
39052         New module 'unicase/u32-suffix-context'.
39053         * lib/unicase/u32-suffix-context.c: New file.
39054         * modules/unicase/u32-suffix-context: New file.
39055
39056         New module 'unicase/u16-suffix-context'.
39057         * lib/unicase/u16-suffix-context.c: New file.
39058         * modules/unicase/u16-suffix-context: New file.
39059
39060         New module 'unicase/u8-suffix-context'.
39061         * lib/unicase/u8-suffix-context.c: New file.
39062         * lib/unicase/u-suffix-context.h: New file.
39063         * modules/unicase/u8-suffix-context: New file.
39064
39065         New module 'unicase/empty-suffix-context'.
39066         * lib/unicase/empty-suffix-context.c: New file.
39067         * modules/unicase/empty-suffix-context: New file.
39068
39069         New module 'unicase/u32-prefix-context'.
39070         * lib/unicase/u32-prefix-context.c: New file.
39071         * modules/unicase/u32-prefix-context: New file.
39072
39073         New module 'unicase/u16-prefix-context'.
39074         * lib/unicase/u16-prefix-context.c: New file.
39075         * modules/unicase/u16-prefix-context: New file.
39076
39077         New module 'unicase/u8-prefix-context'.
39078         * lib/unicase/u8-prefix-context.c: New file.
39079         * lib/unicase/u-prefix-context.h: New file.
39080         * lib/unicase/context.h: New file.
39081         * modules/unicase/u8-prefix-context: New file.
39082
39083         New module 'unicase/empty-prefix-context'.
39084         * lib/unicase/empty-prefix-context.c: New file.
39085         * modules/unicase/empty-prefix-context: New file.
39086
39087         New module 'unicase/ignorable'.
39088         * lib/unicase/ignorable.c: New file.
39089         * modules/unicase/ignorable: New file.
39090
39091         New module 'unicase/cased'.
39092         * lib/unicase/caseprop.h: New file.
39093         * lib/unicase/cased.c: New file.
39094         * modules/unicase/cased: New file.
39095
39096         New functions for case mapping of substrings.
39097         * lib/unicase.h (casing_prefix_context_t): New type.
39098         (unicase_empty_prefix_context): New variable.
39099         (u8_casing_prefix_context, u16_casing_prefix_context,
39100         u32_casing_prefix_context, u8_casing_prefixes_context,
39101         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39102         declarations.
39103         (casing_suffix_context_t): New type.
39104         (unicase_empty_suffix_context): New variable.
39105         (u8_casing_suffix_context, u16_casing_suffix_context,
39106         u32_casing_suffix_context, u8_casing_suffixes_context,
39107         u16_casing_suffixes_context, u32_casing_suffixes_context,
39108         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39109         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39110         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39111         declarations.
39112
39113 2009-06-28  Jim Meyering  <meyering@redhat.com>
39114
39115         boostrap: indent only with spaces
39116         * build-aux/bootstrap: Indent only with spaces, never TABs.
39117
39118         bootstrap: split long lines
39119         * build-aux/bootstrap: Keep line length < 80.
39120
39121         bootstrap: sync from coreutils
39122         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39123         just as autoreconf does.  Verify a list of prerequisite
39124         package-name,version-number pairs if defined in bootstrap.conf.
39125         Refer to README-prereq, if prerequisites are not satisfied.
39126
39127 2009-06-27  Eric Blake  <ebb9@byu.net>
39128
39129         tests: add test for bogus NULL definition
39130         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39131         * tests/test-stdlib.c: Likewise.
39132         * tests/test-string.c: Likewise.
39133         * tests/test-locale.c: Likewise.
39134         * tests/test-unistd.c: Likewise.
39135         * modules/stdio-tests (Depends-on): Add verify.
39136         * modules/stdlib-tests (Depends-on): Likewise.
39137         * modules/string-tests (Depends-on): Likewise.
39138         * modules/locale-tests (Depends-on): Likewise.
39139         * modules/unistd-tests (Depends-on): Likewise.
39140
39141 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39142
39143         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39144         self-explaining comment.
39145         * m4/selinux-selinux-h: Update serial.
39146         (gl_LIBSELINUX): New macro, adding a warning for missing development
39147         packages to code extracted from...
39148         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39149         Add warning for missing development packages here, too.
39150
39151 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39152
39153         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39154
39155 2009-06-25  Eric Blake  <ebb9@byu.net>
39156
39157         version-etc: fix regression
39158         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39159         gcc.
39160         (version_etc): Use it, to catch bugs with trailing NULL.
39161         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39162         (version_etc_va): Fix logic bug.
39163         * modules/version-etc-tests: Add test.
39164         * tests/test-version-etc.c: New file.
39165         * tests/test-version-etc.sh: Likewise.
39166
39167 2009-06-25  Sam Steingold  <sds@gnu.org>
39168
39169         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39170         mbtowc declaration.
39171
39172 2009-06-25  Eric Blake  <ebb9@byu.net>
39173
39174         fpurge: migrate into <stdio.h>
39175         * lib/fpurge.h: Delete...
39176         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39177         * lib/fpurge.c (fpurge): Change declaring header.
39178         * modules/fpurge (Files): Drop deleted file.
39179         (Depends-on): Add stdio.
39180         (configure.ac): Set witness.
39181         * modules/stdio (Makefile.am): Support fpurge macros.
39182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39184         * lib/fflush.c: Update client.
39185         * tests/test-fpurge.c: Likewise.
39186         * NEWS: Mention the change.
39187
39188 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39189
39190         * lib/argp-version-etc.c (program_authors): Add const
39191         qualifier.
39192         * lib/version-etc.c: Fix typos in the comments.
39193         * modules/argp-version-etc: Depends on version-etc.
39194
39195 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39196
39197         argp-version-etc: new module.
39198
39199         * lib/argp-version-etc.c: New file.
39200         * lib/argp-version-etc.h: New file.
39201         * modules/argp-version-etc: New file.
39202         * modules/argp-version-etc-tests: New file.
39203         * tests/test-argp-version-etc.c: New test.
39204         * tests/test-argp-version-etc-1.sh: New test.
39205
39206 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39207
39208         Provide additional interfaces and documentation for version-etc
39209         module.
39210
39211         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39212         interfaces.
39213         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39214         prototypes.
39215
39216 2009-06-24  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39219         HAVE_LIB${NAME} macro.
39220         Reported by Sam Steingold <sds@gnu.org>.
39221
39222 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39223
39224         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39225         needed.
39226
39227 2009-06-21  Bruno Haible  <bruno@clisp.org>
39228
39229         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39230         work.
39231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39232         together with LIB${NAME}, LTLIB${NAME}.
39233         Reported by Sam Steingold <sds@gnu.org>.
39234
39235 2009-06-20  Jim Meyering  <meyering@redhat.com>
39236
39237         tests: make sc_require_test_exit_idiom more generic
39238         * top/maint.mk (Exit_witness_file): New overridable variable.
39239         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39240         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39241
39242 2009-06-19  Jim Meyering  <meyering@redhat.com>
39243
39244         hash: reverse order of src/dst parameters in an internal interface
39245         * lib/hash.c (transfer_entries): Reverse order of parameters to
39246         put DST before SRC.  Adjust callers.
39247
39248         tests: test-hash: avoid wholesale duplication
39249         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39250         Instead, use a loop and add a single conditional.
39251
39252         tests: test-hash: allow seed selection via a command line argument
39253         * tests/test-hash.c (get_seed): New function.
39254         (main): Use it.
39255
39256 2009-06-19  Eric Blake  <ebb9@byu.net>
39257
39258         hash: avoid memory leak on allocation failure
39259         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39260         failure.  Factor repeated algorithm...
39261         (transfer_entries): ...into new helper routine.
39262         (hash_delete): React to hash_rehash return value.
39263
39264         hash: reduce memory pressure in hash_rehash no-op case
39265         * lib/hash.c (next_prime): Avoid overflow.
39266         (hash_initialize): Factor bucket size computation...
39267         (compute_bucket_size): ...into new helper function.
39268         (hash_rehash): Use new function and open coding to reduce memory
39269         pressure, and avoid a memory leak in USE_OBSTACK code.
39270         Reported by Jim Meyering.
39271
39272 2009-06-18  Eric Blake  <ebb9@byu.net>
39273
39274         hash: make rotation more obvious
39275         * modules/hash (Depends-on): Add bitrotate and stdint.
39276         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39277         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39278         (SIZE_MAX): Rely on headers for definition.
39279         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39280         (raw_hasher): Use rotr_sz.
39281         Suggested by Jim Meyering.
39282
39283         hash: fix memory leak in last patch
39284         * lib/hash.c (hash_rehash): Avoid memory leak.
39285
39286         hash: avoid no-op rehashing
39287         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39288
39289         hash: provide default callback functions
39290         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39291         (hash_initialize): Use them as defaults.
39292         * tests/test-hash.c (main): Test this.
39293
39294         hash: minor optimization
39295         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39296         when possible.
39297         (hash_initialize): Document this promise.
39298         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39299         * tests/test-hash.c (hash_compare_strings): Test this.
39300
39301 2009-06-18  Bruno Haible  <bruno@clisp.org>
39302
39303         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39304         going to be replaced anyway.
39305
39306 2009-06-18  Bruno Haible  <bruno@clisp.org>
39307
39308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39309         in one place.
39310         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39311         be replaced anyway.
39312
39313 2009-06-18  Eric Blake  <ebb9@byu.net>
39314
39315         hash: check for resize before insertion
39316         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39317         threshold before insertion, so that a pathological hash_rehash
39318         that fills every bucket can still trigger another rehash.
39319
39320 2009-06-18  Jim Meyering  <meyering@redhat.com>
39321
39322         hash-tests: add a loop around the small tests
39323         * tests/test-hash.c (main): Repeat small tests with selected
39324         small initial table sizes.
39325
39326 2009-06-17  Eric Blake  <ebb9@byu.net>
39327
39328         hash: minor cleanups
39329         * lib/hash.h (hash_entry): Make opaque, by moving...
39330         * lib/hash.c (hash_entry): ...here.
39331         (hash_insert): Clarify restrictions on what can be inserted.
39332         (hash_get_next): Clarify when it is safe to remove an element
39333         during traversal.
39334         (check_tuning): Skip verification when tuning is known safe.
39335         (hash_initialize): Clarify restrictions on tuning.
39336
39337 2009-06-17  Jim Meyering  <jim@meyering.net>
39338         and Eric Blake  <ebb9@byu.net>
39339
39340         hash-tests: new module
39341         * modules/hash-tests: New file.
39342         * tests/test-hash.c: New file.
39343
39344 2009-06-17  Eric Blake  <ebb9@byu.net>
39345
39346         strstr-simple: document new module
39347         * MODULES.html.sh: Document new module.
39348
39349         strstr, strcasestr: replace on platforms with broken memchr
39350         * modules/strstr: Split into...
39351         * modules/strstr-simple: ...new module that does not care about
39352         performance, but does care about glibc bug.
39353         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39354         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39355         if platform memchr is broken, per Debian bug 521737.
39356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39357         memchr.
39358         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39359         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39360         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39361         * modules/mountlist (Depends-on): Add strstr-simple.
39362         * modules/gen-uni-tables (Depends-on): Likewise.
39363         * modules/argz (Depends-on): Add strstr.
39364
39365 2009-06-17  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/posix_spawn-internal (Depends-on): Add errno.
39368
39369 2009-06-17  Bruno Haible  <bruno@clisp.org>
39370
39371         Define missing ESTALE on Interix 3.5.
39372         * lib/errno.in.h (ESTALE): Assign a value if missing.
39373         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39375         missing.
39376         * doc/posix-headers/errno.texi: Mention the Interix bug.
39377         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39378
39379 2009-06-15  Eric Blake  <ebb9@byu.net>
39380
39381         memchr, memchr2: add valgrind exception
39382         * lib/memchr.valgrind: New file.
39383         * lib/memchr2.valgrind: New file.
39384         * modules/memchr (Files): Distribute valgrind file.
39385         * modules/memchr2 (Files): Likewise.
39386
39387         docs: memchr is no longer obsolete
39388         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39389         * lib/string.in.h (memchr): Simplify logic.
39390
39391 2009-06-14  Jim Meyering  <meyering@redhat.com>
39392
39393         link-follow: fix the "checking..." message to not mention trailing slash
39394         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39395         never considered trailing slashes.
39396
39397 2009-06-14  Bruno Haible  <bruno@clisp.org>
39398
39399         * m4/memchr.m4: Mention also the bug on IA-64.
39400         * doc/posix-functions/memchr.texi: Likewise.
39401
39402 2009-06-12  Eric Blake  <ebb9@byu.net>
39403
39404         memchr: detect broken x86_64 and alpha implementations
39405         * modules/memchr-tests (Depends-on): Move mmap detection...
39406         * modules/memchr (Depends-on): ...here.
39407         (configure.ac): Set indicator.
39408         * lib/string.in.h (memchr): Declare replacement.
39409         * modules/string (Makefile.am): Trigger replacement.
39410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39411         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39412         bugs.
39413         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39414         * modules/getpagesize (License): Relax license.
39415
39416 2009-06-11  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/idpriv.h: Add more references.
39419
39420 2009-06-08  Bruno Haible  <bruno@clisp.org>
39421
39422         Tests for module 'idpriv-droptemp'.
39423         * modules/idpriv-droptemp-tests: New file.
39424         * tests/test-idpriv-droptemp.sh: New file.
39425         * tests/test-idpriv-droptemp.su.sh: New file.
39426         * tests/test-idpriv-droptemp.c: New file.
39427
39428         New module 'idpriv-droptemp'.
39429         * lib/idpriv-droptemp.c: New file.
39430         * modules/idpriv-droptemp: New file.
39431
39432 2009-06-08  Bruno Haible  <bruno@clisp.org>
39433
39434         Tests for module 'idpriv-drop'.
39435         * modules/idpriv-drop-tests: New file.
39436         * tests/test-idpriv-drop.sh: New file.
39437         * tests/test-idpriv-drop.su.sh: New file.
39438         * tests/test-idpriv-drop.c: New file.
39439
39440         New module 'idpriv-drop'.
39441         * lib/idpriv.h: New file.
39442         * lib-idpriv-drop.c: New file.
39443         * m4/idpriv.m4: New file.
39444         * modules/idpriv-drop: New file.
39445
39446 2009-06-08  Bruno Haible  <bruno@clisp.org>
39447
39448         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39449         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39450         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39451         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39452         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39453         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39454         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39455
39456 2009-06-08  Eric Blake  <ebb9@byu.net>
39457
39458         test-strstr: use memory fence, when possible
39459         * tests/test-strstr.c (main): Use memory fence, in order to be
39460         more likely to trigger Debian bug 521737.
39461         * modules/strstr-tests (Files): Pull in additional files.
39462
39463         memchr: no longer obsolete, for wider field testing
39464         * modules/memchr (Status, Notice): Delete, this module is no
39465         longer obsolete.
39466         * modules/vasnprintf (Depends-on): Add memchr.
39467
39468 2009-06-07  Jim Meyering  <meyering@redhat.com>
39469
39470         hash: declare some functions with the warn_unused_result attribute
39471         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39472
39473 2009-06-07  Bruno Haible  <bruno@clisp.org>
39474
39475         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39476         Reported by Eric Blake.
39477
39478 2009-06-06  Eric Blake  <ebb9@byu.net>
39479
39480         test-alignof: fix typo with long double
39481         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39482         compiler error.
39483
39484 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39485
39486         Escape non-texinfo { and }s.
39487         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39488         markup error.
39489
39490 2009-06-04  Jim Meyering  <meyering@redhat.com>
39491
39492         gitlog-to-changelog: don't infloop on an empty commit log
39493         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39494         Reported by Boris Petersen <transacid@centerim.org>.
39495
39496 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39497
39498         version-etc: extend for packagers
39499         Add three new configure options, intended for packagers:
39500           --with-packager="packager name"
39501           --with-packager-version="packager-specific version"
39502           --with-packager-bug-reports="packager bug reporting"
39503         An example with coreutils:
39504           $ ./configure \
39505             --with-packager=Gentoo \
39506             --with-packager-bug-report=http://bugs.gentoo.org/ \
39507             --with-packager-version="patchset 1.6"
39508           $ ./src/ls --version | head -n2
39509           ls (GNU coreutils) 7.1-dirty
39510           Packaged by Gentoo (patchset 1.6)
39511         Note that the bug reporting info via --help doesn't show up because
39512         coreutils uses its own custom emit_bug_reporting_address() implementation
39513         in src/system.h.  If it didn't, it'd look like:
39514           $ ./src/ls --help | tail -n4
39515           Report bugs to <bug-coreutils@gnu.org>.
39516           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39517           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39518           General help using GNU software: <http://www.gnu.org/gethelp/>.
39519         * lib/version-etc.c: Print new information, if provided.
39520         * m4/version-etc.m4: New file.
39521         * modules/version-etc (Files): Add m4/version-etc.m4.
39522         (configure.ac): Add gl_VERSION_ETC.
39523
39524 2009-05-31  Bruno Haible  <bruno@clisp.org>
39525
39526         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39527         and 'int64_t'.
39528         * modules/alignof-tests (Dependencies): Add stdint.
39529         Reported by Eric Blake.
39530
39531 2009-05-31  Bruno Haible  <bruno@clisp.org>
39532
39533         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39534         restriction due to compiler bugs.
39535         Reported by Eric Blake.
39536
39537 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39538             Bruno Haible  <bruno@clisp.org>
39539
39540         Fix test-alignof failure.
39541         * lib/alignof.h (alignof_slot): New macro.
39542         (alignof_type): New macro, with the same semantics as the previous
39543         'alignof'.
39544         (alignof): Alias to alignof_slot.
39545         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39546         check that the results are usable as constant expressions.
39547
39548 2009-05-31  Bruno Haible  <bruno@clisp.org>
39549
39550         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39551         * tests/test-memchr.c (main): Check that memchr does not read past the
39552         first occurrence of the byte.
39553         * tests/test-strstr.c (main): Update comment.
39554         Suggested by Eric Blake.
39555
39556 2009-05-30  Bruno Haible  <bruno@clisp.org>
39557
39558         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39559         detail how to use dumpbin.
39560         Reported by David Byron <dbyron@dbyron.com>.
39561
39562 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39563
39564         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39565
39566 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39567
39568         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39569
39570 2009-05-28  Bruno Haible  <bruno@clisp.org>
39571
39572         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39573         build-aux/ files.
39574
39575 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39576
39577         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39578
39579 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39580
39581         * gnulib-tool (sed_transform_main_lib_file)
39582         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39583         regexps.
39584
39585 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39586
39587         * tests/test-strstr.c: Add another self-test.
39588         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39589         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39590
39591 2009-05-23  Bruno Haible  <bruno@clisp.org>
39592
39593         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39594         change.
39595
39596 2009-05-21  Bruno Haible  <bruno@clisp.org>
39597
39598         Simplify use of mode_t varargs.
39599         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39600         uses 'mode_t' or 'int'.
39601         * lib/openat.c (openat): Likewise.
39602         * lib/open-safer.c (open_safer): Likewise.
39603         * m4/mode_t.m4: New file.
39604         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39605         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39606         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39607         * modules/open (Files): Add m4/mode_t.m4.
39608         * modules/openat (Files): Likewise.
39609         * modules/fcntl-safer (Files): Likewise.
39610         Suggested by Eric Blake.
39611
39612 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39613
39614         * doc/glibc-functions/fallocate.texi: New file.
39615         * doc/gnulib.texi: Include it.
39616
39617 2009-05-21  Eric Blake  <ebb9@byu.net>
39618             Bruno Haible  <bruno@clisp.org>
39619
39620         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39621         invocations.
39622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39623
39624 2009-05-21  Eric Blake  <ebb9@byu.net>
39625             Bruno Haible  <bruno@clisp.org>
39626
39627         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39628         include_next. Fix of 2008-11-20 commit.
39629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39630         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39631         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39632         NEXT_MATH_H.
39633         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39634         instead of NEXT_MATH_H.
39635
39636 2009-05-21  Bruno Haible  <bruno@clisp.org>
39637
39638         Avoid redefinition warnings for SIZE_MAX.
39639         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39640         Reported by Simon Josefsson.
39641
39642 2009-05-21  Bruno Haible  <bruno@clisp.org>
39643
39644         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39645         AC_CACHE_VAL.
39646
39647 2009-05-20  Bruno Haible  <bruno@clisp.org>
39648
39649         Make zeroptr.h work on mingw.
39650         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39651         mprotect.
39652         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39653         * modules/memchr2-tests (configure.ac): Likewise.
39654         * modules/memcmp-tests (configure.ac): Likewise.
39655         * modules/memmem-tests (configure.ac): Likewise.
39656         * modules/memrchr-tests (configure.ac): Likewise.
39657         Reported by Simon Josefsson.
39658
39659 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39660
39661         * tests/test-glob.c: Include string.h for strcmp prototype.
39662
39663 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39664
39665         * modules/getdelim (Depends-on): Add explicit stdint, although it
39666         was implicitly already pulled in via realloc-posix.
39667         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39668
39669 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39670
39671         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39672         G. Christensen" <tgc@jupiterrise.com>.
39673         * m4/sys_socket_h.m4: Check for sa_family_t.
39674         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39675         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39676         * tests/test-sys_socket.c: Check that sa_family_t works.
39677
39678 2009-05-18  Eric Blake  <ebb9@byu.net>
39679
39680         maint.mk: allow gnulib_dir in VPATH build
39681         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39682
39683 2009-05-15  Jim Meyering  <meyering@redhat.com>
39684
39685         maint.mk: Give gnulib_dir a default definition.
39686         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39687         Thus, most packages no longer need to specify this variable in cfg.mk
39688
39689 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39690
39691         rename.m4: fix typos that would make non-mingw cross-configure fail
39692         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39693
39694 2009-05-13  Eric Blake  <ebb9@byu.net>
39695
39696         mmap-anon: avoid out-of-order autoconf expansion
39697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39698         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39699         * modules/memchr-tests (Depends-on): Add extensions.
39700         * modules/memchr2-tests (Depends-on): Add extensions.
39701         * modules/memcmp-tests (Depends-on): Add extensions.
39702         * modules/memmem-tests (Depends-on): Add extensions.
39703         * modules/memrchr-tests (Depends-on): Add extensions.
39704
39705 2009-05-13  Bruno Haible  <bruno@clisp.org>
39706
39707         Make some tests ISO C 99 compliant.
39708         * tests/zerosize-ptr.h: New file.
39709         * tests/test-memchr.c: Include zerosize-ptr.h.
39710         (main): Use a zero-size object pointer instead of NULL.
39711         * tests/test-memchr2.c: Include zerosize-ptr.h.
39712         (main): Use a zero-size object pointer instead of NULL.
39713         * tests/test-memcmp.c: Include zerosize-ptr.h.
39714         (main): Use a zero-size object pointer instead of NULL.
39715         * tests/test-memmem.c: Include zerosize-ptr.h.
39716         (main): Use a zero-size object pointer instead of NULL.
39717         * tests/test-memrchr.c: Include zerosize-ptr.h.
39718         (main): Use a zero-size object pointer instead of NULL.
39719         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39720         m4/mmap-anon.m4.
39721         (Depends-on): Add getpagesize.
39722         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39723         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39724         m4/mmap-anon.m4.
39725         (Depends-on): Add getpagesize.
39726         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39727         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39728         m4/mmap-anon.m4.
39729         (Depends-on): Add getpagesize.
39730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39731         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39732         m4/mmap-anon.m4.
39733         (Depends-on): Add getpagesize.
39734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39735         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39736         m4/mmap-anon.m4.
39737         (Depends-on): Add getpagesize.
39738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39739
39740 2009-05-12  Bruno Haible  <bruno@clisp.org>
39741
39742         Tests for module 'alignof'.
39743         * modules/alignof-tests: New file.
39744         * tests/test-alignof.c: New file.
39745
39746 2009-05-12  Bruno Haible  <bruno@clisp.org>
39747
39748         Fix alignof macro.
39749         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39750         vendor compilers that are always correct.
39751
39752 2009-05-12  Bruno Haible  <bruno@clisp.org>
39753
39754         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39756         not whether its fully works.
39757
39758 2009-05-12  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39761
39762 2009-05-12  Jim Meyering  <meyering@redhat.com>
39763
39764         * top/maint.mk: Adjust backslash alignment.
39765
39766 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39767
39768         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39769
39770 2009-05-11  Eric Blake  <ebb9@byu.net>
39771
39772         argp: avoid undefined behavior
39773         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39774         macros.
39775
39776 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39777
39778         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39779         user.name to prevent git commit from complaining.
39780
39781 2009-05-10  Bruno Haible  <bruno@clisp.org>
39782
39783         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39784         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39785         it rewrites every file name only once.
39786         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39787
39788 2009-05-08  Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39791         instead of 'max'.
39792
39793 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39794
39795         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39796         sockaddr_storage test.
39797
39798 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39799
39800         * modules/sys_socket (Makefile.am): Substitute
39801         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39802         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39803         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39804         * tests/test-sys_socket.c: Check sockaddr_storage.
39805
39806 2009-05-08  Bruno Haible  <bruno@clisp.org>
39807
39808         New module 'alignof'.
39809         * lib/alignof.h: New file.
39810         * modules/alignof: New file.
39811
39812 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39813             Bruno Haible  <bruno@clisp.org>
39814
39815         Fix test-file-has-acl on FreeBSD.
39816         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39817         mask is implicitly added.
39818         * tests/test-file-has-acl.c: Include <signal.h>.
39819         (main): Terminate the test after 5 seconds.
39820         * modules/acl-tests (configure.ac): Check for alarm function.
39821
39822 2009-05-04  Bruno Haible  <bruno@clisp.org>
39823
39824         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39826         * modules/errno (configure.ac): Drop AC_REQUIRE.
39827         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39828         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39829
39830 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39831
39832         * modules/glob-tests: New module.
39833         * tests/test-glob.c: Add.
39834
39835 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39836
39837         * modules/fnmatch-tests: New module.
39838         * tests/test-fnmatch.c: Add.
39839
39840 2009-05-04  Eric Blake  <ebb9@byu.net>
39841
39842         maint: make the new no-submodule-changes rule VPATH-safe
39843         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39844
39845 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39846             Bruno Haible  <bruno@clisp.org>
39847
39848         acl: Fix infinite loop on FreeBSD.
39849         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39850         of return value from acl_get_entry.
39851         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39852         Likewise.
39853
39854 2009-05-03  Bruno Haible  <bruno@clisp.org>
39855
39856         * lib/acl-internal.h (acl_entries): Clarify return value.
39857         * lib/acl_entries.c (acl_entries): Likewise.
39858
39859 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39860
39861         Bug fix in acl module.
39862         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39863
39864 2009-05-03  Bruno Haible  <bruno@clisp.org>
39865
39866         Create gperf-generated file in the source dir, not in the build dir.
39867         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39868         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39869         * modules/unicase/locale-language (unicase/locale-languages.h):
39870         Likewise.
39871         * modules/unicase/special-casing (unicase/special-casing-table.h):
39872         Likewise.
39873         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39874         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39875         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39876         Reported by Ralf Wildenhues.
39877
39878 2009-05-03  Bruno Haible  <bruno@clisp.org>
39879
39880         * modules/fnmatch (Description, configure.ac): Taken from
39881         fnmatch-posix.
39882         * modules/fnmatch-posix: Turn into a symbolic reference to the
39883         'fnmatch' module, and deprecate.
39884         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39885
39886 2009-05-03  Bruno Haible  <bruno@clisp.org>
39887
39888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39889         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39890         Reported by Ralf Wildenhues.
39891
39892 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39893
39894         * m4/fnmatch.m4: Fix fnmatch re-define.
39895
39896 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39897
39898         priv-set: new module and tests; adapt write-any-file
39899         * lib/priv-set.c: New file.
39900         * lib/priv-set.h: New file.
39901         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39902         * lib/write-any-file.c: Simplify by using priv-set module.
39903         * m4/priv-set.m4: New file.
39904         * modules/priv-set: New file.
39905         * modules/unlinkdir: Add dependency on priv-set module.
39906         * modules/write-any-file: Likewise.
39907
39908         Tests for module 'priv-set'.
39909         * modules/priv-set-tests: New file.
39910         * tests/test-priv-set.c: New file.
39911
39912 2009-05-03  Jim Meyering  <meyering@redhat.com>
39913             Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39916         use the converted UTF-8 variant of the name instead.
39917
39918 2009-05-03  Jim Meyering  <meyering@redhat.com>
39919
39920         tests: tighten some getdate tests
39921         * tests/test-getdate.c (main): Tighten tests: require equality,
39922         not just greater than.  Set TZ envvar to UTC0.
39923
39924 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39925
39926         getdate: correctly interpret "next monday" when run on a Monday
39927         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39928         that e.g., "next tues" (when run on a tuesday) results in a date
39929         that is one week in the future, and not today's date.
39930         I.e., add a week when the wday is the same as the current one.
39931         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39932         and earlier by Martin Bernreuther and Jan Minář.
39933         * tests/test-getdate.c (main): Check that "next DAY" is always in
39934         the future and that "last DAY" is always in the past.
39935
39936 2009-05-02  Jim Meyering  <meyering@redhat.com>
39937
39938         build: ensure that a release build fails when a submodule is unclean
39939         * top/maint.mk (no-submodule-changes): New rule.
39940         (alpha beta major): Depend on it.
39941
39942 2009-05-02  Bruno Haible  <bruno@clisp.org>
39943
39944         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39945         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39946         shell variable gl_fnmatch_required to detect which variant is
39947         requested.
39948         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39949         gl_FUNC_FNMATCH_POSIX.
39950         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39951         exclude fnmatch-posix.
39952
39953 2009-05-02  Bruno Haible  <bruno@clisp.org>
39954
39955         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39956         * modules/mbsrtowcs (License): Change to LGPLv2+.
39957         * modules/strnlen1 (License): Likewise.
39958         Reported by Simon Josefsson.
39959
39960 2009-05-02  Bruno Haible  <bruno@clisp.org>
39961
39962         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39963         "cross".
39964         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39965         gnulib-tool was called with option --source-base=lib.
39966
39967 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39968
39969         Use automake *-local hooks without commands, for extensibility.
39970         * modules/localcharset (Makefile.am): Rename install-exec-local
39971         rule to install-exec-localcharset, and make it a prerequisite of
39972         install-exec-local.  Likewise, rename the uninstall-local rule to
39973         uninstall-localcharset, and make it a prerequisite of the former.
39974
39975 2009-05-01  Bruno Haible  <bruno@clisp.org>
39976
39977         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39978         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39979         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39981         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39982         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39983         m4/locale-zh.m4, m4/codeset.m4.
39984
39985         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39986         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39987         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39988         m4/locale-zh.m4.
39989
39990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39991         REPLACE_WCRTOMB if mbstate_t must be replaced.
39992         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39993         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39994
39995 2009-05-01  Bruno Haible  <bruno@clisp.org>
39996
39997         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39998         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39999         dngettext, dcngettext, textdomain, bindtextdomain,
40000         bind_textdomain_codeset): Undefine before redefining.
40001
40002 2009-04-30  Bruno Haible  <bruno@clisp.org>
40003
40004         Fix bug introduced on 2009-04-25.
40005         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40006         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40007         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40008         is defined.
40009         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40010         is defined.
40011         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40012         is defined.
40013         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40014
40015 2009-04-28  Bruno Haible  <bruno@clisp.org>
40016
40017         Comment tweaks.
40018         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40019         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40020         * lib/unicase.h (u*_casexfrm): Likewise.
40021         Reported by Paolo Bonzini.
40022
40023 2009-04-28  Bruno Haible  <bruno@clisp.org>
40024
40025         Fix a compilation error.
40026         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40027         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40028         Reported by Jim Meyering.
40029
40030 2009-04-27  Bruno Haible  <bruno@clisp.org>
40031
40032         New module 'libunistring'.
40033         * modules/libunistring: New file.
40034         * m4/libunistring.m4: New file.
40035         * MODULES.html.sh (Unicode string functions): Add it.
40036
40037 2009-04-27  Eric Blake  <ebb9@byu.net>
40038
40039         maint.mk: allow package-specific header to provide <config.h>
40040         * top/maint.mk (sc_require_config_h): New variable.
40041         (sc_require_config_h, sc_require_config_h_first): Use it.
40042
40043 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40044
40045         * top/maint.mk (sc_avoid_if_before_free): Except
40046         useless-if-before-free script.
40047
40048 2009-04-27  Eric Blake  <ebb9@byu.net>
40049
40050         maintainer-makefile: depend on all required helper scripts
40051         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40052         useless-if-before-free.
40053         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40054         version, rather than assuming gnulib checkout is available.
40055         Reported by Simen Josefsson.
40056
40057 2009-04-26  Bruno Haible  <bruno@clisp.org>
40058
40059         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40060         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40061         "../" or "..".
40062
40063 2009-04-26  Bruno Haible  <bruno@clisp.org>
40064
40065         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40066         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40067         AC_LIB_HAVE_LINKFLAGS.
40068
40069 2009-04-26  Bruno Haible  <bruno@clisp.org>
40070
40071         Simplify calling convention of u*_conv_from_encoding.
40072         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40073         u32_conv_from_encoding): Expect a resultbuf argument and return the
40074         result directly as a pointer.
40075         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40076         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40077         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40078         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40079         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40080         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40081         Update.
40082         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40083         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40084         * lib/vasnprintf.c (VASNPRINTF): Update.
40085         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40086         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40087         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40088         * NEWS: Mention the change.
40089
40090 2009-04-26  Bruno Haible  <bruno@clisp.org>
40091
40092         Simplify calling convention of u*_conv_to_encoding.
40093         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40094         u32_conv_to_encoding): Expect a resultbuf argument and return the
40095         result directly as a pointer.
40096         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40097         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40098         freeing scaled_offsets if mem_iconveha failed.
40099         * lib/unicase/u-casexfrm.h (FUNC): Update.
40100         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40101         * lib/vasnprintf.c (VASNPRINTF): Update.
40102         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40103         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40104         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40105         * NEWS: Mention the change.
40106
40107 2009-04-26  Bruno Haible  <bruno@clisp.org>
40108
40109         Avoid test failures on AIX and OSF/1.
40110         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40111         malloc(0).
40112         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40113         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40114         Likewise.
40115         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40116         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40117         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40118         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40119         * doc/posix-functions/malloc.texi: Document the portability problem
40120         related to malloc(0).
40121
40122 2009-04-26  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40125         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40126         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40127
40128 2009-04-25  Bruno Haible  <bruno@clisp.org>
40129
40130         Avoid link error when creating a namespace clean library.
40131         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40132         as macro with arguments if already defined as an alias.
40133         * lib/signbitf.c (gl_signbitf): Don't undefine.
40134         * lib/signbitd.c (gl_signbitd): Don't undefine.
40135         * lib/signbitl.c (gl_signbitl): Don't undefine.
40136
40137 2009-04-25  Jim Meyering  <meyering@redhat.com>
40138
40139         vc-list-files: fix another quoting bug
40140         * build-aux/vc-list-files: Avoid sed backslash expansion
40141         of pathological directory names.
40142
40143 2009-04-25  Eric Blake  <ebb9@byu.net>
40144
40145         vc-list-files: fix shell quoting error
40146         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40147         timestamp.
40148
40149 2009-04-25  Jim Meyering  <meyering@redhat.com>
40150
40151         vc-list-files: restore lost functionality with subdir argument
40152         * build-aux/vc-list-files: When given a non-"." sub-directory
40153         argument, substitute the $dir/ prefix back onto each resulting name.
40154         Otherwise, coreutils' root_tests check would fail.
40155
40156 2009-04-24  Eric Blake  <ebb9@byu.net>
40157
40158         vc-list-files: ignore git symlinks
40159         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40160         than ls-files, to ignore git symlinks.
40161
40162         maint.mk: import improvements from m4
40163         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40164         (move_if_change): Delete unused macro.
40165         (news-date-check, vc-diff-check): Support VPATH builds.
40166         (announcement): Likewise.  Split --bootstrap-tools list...
40167         (boostrap-tools): ...into separate list, which can be overridden
40168         in cfg.mk.
40169         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40170         requiring dependency on useless-if-before-free module.
40171         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40172         Support VPATH builds.
40173
40174 2009-04-24  Jim Meyering  <meyering@redhat.com>
40175
40176         maint.mk: remove coreutils-specific rules and variables
40177         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40178         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40179         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40180
40181         maint.mk: remove obsolete rule
40182         * top/maint.mk (rel-check): Remove rule.
40183         (WGET, WGETFLAGS): Remove now-unused variables.
40184
40185 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40186
40187         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40188         consistency.
40189
40190         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40191         '$(PATH_SEPARATOR)' instead of ':'.
40192
40193 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40194
40195         * lib/getopt1.c (main): Use 'const' for static array.
40196
40197 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40198
40199         * top/maint.mk: Sync with coreutils.
40200         * NEWS: Explain incompatibilities.
40201
40202 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40203             Bruno Haible  <bruno@clisp.org>
40204
40205         Fix cross-compilation results.
40206         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40207         statement, as third argument of AC_TRY_RUN.
40208         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40209         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40210         Likewise.
40211         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40212         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40213         Likewise.
40214         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40215         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40216         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40217
40218 2009-04-20  Bruno Haible  <bruno@clisp.org>
40219
40220         Avoid test failure on mingw.
40221         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40222
40223 2009-04-20  Bruno Haible  <bruno@clisp.org>
40224
40225         Avoid compilation error on mingw.
40226         * modules/localename-tests (Depends-on): Add locale.
40227
40228 2009-04-19  Bruno Haible  <bruno@clisp.org>
40229
40230         Support for building a shared library on Windows platforms.
40231         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40232         (main): Test the presence of UNINORM_NFC here.
40233         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40234         (main): Test the presence of UNINORM_NFD here.
40235         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40236         (main): Test the presence of UNINORM_NFKC here.
40237         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40238         (main): Test the presence of UNINORM_NFKD here.
40239
40240 2009-04-19  Bruno Haible  <bruno@clisp.org>
40241
40242         Avoid a compiler warning.
40243         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40244         Change type of variable 'sequence'.
40245
40246 2009-04-19  Bruno Haible  <bruno@clisp.org>
40247
40248         * modules/configmake (Makefile.am): When the contents of configmake.h
40249         does not change, arrange to preserve its modification time.
40250
40251 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40252
40253         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40254         gettext domain.
40255
40256 2009-04-16  Jim Meyering  <meyering@redhat.com>
40257
40258         useless-if-before-free: improve conversion code
40259         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40260         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40261
40262 2009-04-14  Bruno Haible  <bruno@clisp.org>
40263
40264         * modules/fcntl (Depends-on): Add extensions.
40265         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40266
40267 2009-04-12  Ben Pfaff  <blp@gnu.org>
40268
40269         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40270         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40271
40272 2009-03-20  Ben Pfaff  <blp@gnu.org>
40273
40274         Make rename replace existing destinations on Windows.
40275         * m4/rename.m4: Add test for Mingw.
40276         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40277         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40278         * doc/posix-functions/rename.texi: Document.
40279
40280 2009-04-10  Bruno Haible  <bruno@clisp.org>
40281
40282         New include file "iconveh.h".
40283         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40284         * lib/striconveh.h: Include it.
40285         (enum iconv_ilseq_handler): Remove definition.
40286         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40287         striconveh.h.
40288         * lib/striconveha.c: Include striconveh.h.
40289         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40290         * modules/striconveh (Files): Add lib/iconveh.h.
40291         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40292         lib/striconveh.h.
40293
40294 2009-04-10  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/uniconv.h: Update comment.
40297
40298 2009-04-10  Bruno Haible  <bruno@clisp.org>
40299
40300         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40301         always.
40302         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40303         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40304         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40305         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40306         "unistring-notinline.h", so that the function gets defined always.
40307         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40308         * lib/unistr/u8-uctomb.c: Likewise.
40309         * lib/unistr/u16-mbtouc.c: Likewise.
40310         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40311         * lib/unistr/u16-uctomb.c: Likewise.
40312         * lib/unistr/u32-mbtouc.c: Likewise.
40313         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40314         * lib/unistr/u32-uctomb.c: Likewise.
40315
40316 2009-04-10  Bruno Haible  <bruno@clisp.org>
40317
40318         Mark 'utime' obsolete.
40319         * modules/utime (Status, Notice): New sections.
40320         Suggested by Jim Meyering.
40321
40322         Fix cross-compile guess for utime test.
40323         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40324         autoconf.
40325         * doc/posix-functions/utime.texi: Give more precisions.
40326         Reported by Jan <ipif@ymail.com>.
40327
40328 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40329
40330         filevercmp: correct today's change
40331         * lib/filevercmp.c: Also handle coreutils' test inputs.
40332         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40333
40334         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40335         for reporting it.
40336         * lib/filevercmp.c: Special handle for "", "." and "..".
40337         * tests/test-filevercmp.c: Enlarge the set suite.
40338
40339 2009-04-07  Jim Meyering  <meyering@redhat.com>
40340
40341         useless-if-before-free: show how to remove braced useless free, too
40342         * build-aux/useless-if-before-free: still only in a comment, though.
40343
40344 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40345
40346         maint.mk: import changes to syntax-check macros from coreutils
40347         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40348         Use them in the relevant macros.
40349
40350 2009-04-06  Bruno Haible  <bruno@clisp.org>
40351
40352         Fix unportable use of bit-fields.
40353         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40354         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40355         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40356
40357 2009-04-06  Bruno Haible  <bruno@clisp.org>
40358
40359         Avoid test failures on AIX and OSF/1.
40360         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40361         that malloc(0) = NULL.
40362         * tests/unicase/test-u8-tolower.c (check): Likewise.
40363         * tests/unicase/test-u8-totitle.c (check): Likewise.
40364         * tests/unicase/test-u8-toupper.c (check): Likewise.
40365         * tests/unicase/test-u16-casefold.c (check): Likewise.
40366         * tests/unicase/test-u16-tolower.c (check): Likewise.
40367         * tests/unicase/test-u16-totitle.c (check): Likewise.
40368         * tests/unicase/test-u16-toupper.c (check): Likewise.
40369         * tests/unicase/test-u32-casefold.c (check): Likewise.
40370         * tests/unicase/test-u32-tolower.c (check): Likewise.
40371         * tests/unicase/test-u32-totitle.c (check): Likewise.
40372         * tests/unicase/test-u32-toupper.c (check): Likewise.
40373         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40374         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40375         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40376         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40377         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40378         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40379         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40380         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40381         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40382         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40383         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40384         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40385
40386 2009-04-05  Bruno Haible  <bruno@clisp.org>
40387
40388         Work around an autoconf limitation.
40389         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40390         comment line if it would be longer than 3 KB.
40391
40392 2009-04-05  Bruno Haible  <bruno@clisp.org>
40393
40394         Avoid test failure with libiconv-1.13.
40395         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40396         of the expected test results.
40397
40398 2009-04-05  Bruno Haible  <bruno@clisp.org>
40399
40400         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40401         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40402         that it should be installed.
40403
40404 2009-04-05  Bruno Haible  <bruno@clisp.org>
40405
40406         * gnulib-tool: New option --copy-file.
40407         (func_usage): Document it.
40408         (func_dest_tmpfilename): Moved out of func_import.
40409         (func_add_file, func_update_file): New functions, extracted from
40410         func_import.
40411         (func_import): Update.
40412
40413 2009-04-05  Karl Berry  <karl@gnu.org>
40414
40415         * README: prominently mention gnulib-tool.
40416         Rearrange sections so getting the code is near the top.
40417
40418 2009-04-05  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/unicase.h: Mention u*_cmp2.
40421         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40422         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40423         * lib/unicase/ulc-casecmp.c: Likewise.
40424         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40425         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40426         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40427         unistr/u8-cmp.
40428         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40429         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40430         unistr/u16-cmp.
40431         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40432         unistr/u32-cmp.
40433
40434         * lib/uninorm.h: Mention u*_cmp2.
40435         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40436         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40437         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40438         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40439         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40440         unistr/u8-cmp.
40441         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40442         unistr/u16-cmp.
40443         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40444         unistr/u32-cmp.
40445
40446         New module 'unistr/u32-cmp2'.
40447         * lib/unistr/u32-cmp2.c: New file.
40448         * modules/unistr/u32-cmp2: New file.
40449
40450         New module 'unistr/u16-cmp2'.
40451         * lib/unistr/u16-cmp2.c: New file.
40452         * modules/unistr/u16-cmp2: New file.
40453
40454         New module 'unistr/u8-cmp2'.
40455         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40456         * lib/unistr/u8-cmp2.c: New file.
40457         * lib/unistr/u-cmp2.h: New file.
40458         * modules/unistr/u8-cmp2: New file.
40459
40460 2009-04-05  Bruno Haible  <bruno@clisp.org>
40461
40462         * lib/unictype.h (uc_property_is_valid): New macro.
40463         * tests/unictype/test-pr_byname.c (main): Use it.
40464
40465         * lib/unistr.h: Doc fixes.
40466         * lib/uniconv.h: Doc fixes.
40467         * lib/unictype.h: Doc fixes.
40468
40469 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40470
40471         Port coreutils 7.2 to Solaris 8.
40472
40473         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40474         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40475         for Solaris 8.  This is a bit of a hack, as it means it's the
40476         caller's responsibility to add -lnsl if needed, but most likely it
40477         won't be needed since only getaddrinfo uses this and getaddrinfo
40478         isn't needed on Solaris 8.
40479
40480         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40481         problem to Solaris 8 encountered with coreutils 7.2, which
40482         resulted in a message "fnmatch.c:292: warning: passing argument 4
40483         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40484         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40485
40486 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40487
40488         * m4/ld-version-script.m4: Add FIXME comment.
40489
40490 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40491
40492         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40493         SOVERSION variable.
40494
40495 2009-04-02  Bruno Haible  <bruno@clisp.org>
40496
40497         * Makefile (info, html, dvi, pdf): Combine the rules.
40498         Suggested by Jim Meyering.
40499
40500 2009-04-01  Bruno Haible  <bruno@clisp.org>
40501
40502         * Makefile (info, html, dvi, pdf): New targets.
40503         Reported by Reuben Thomas <rrt@sc3d.org>.
40504
40505 2009-04-01  Bruno Haible  <bruno@clisp.org>
40506
40507         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40508         can be put into PATH.
40509         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40510
40511 2009-04-01  Bruno Haible  <bruno@clisp.org>
40512
40513         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40514
40515 2009-04-01  Bruno Haible  <bruno@clisp.org>
40516
40517         Rename module 'visibility'.
40518         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40519         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40520         * doc/gnulib.texi: Update.
40521         * MODULES.html.sh (Misc): Update.
40522         * NEWS: Mention the change.
40523
40524 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40525
40526         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40527         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40528         Eric Blake <ebb9@byu.net> for review.
40529         * MODULES.html.sh: Add lib-msvc-compat.
40530         * doc/gnulib.texi: Link to new section.
40531         * m4/ld-output-def.m4: New file.
40532         * doc/ld-output-def.texi: New file.
40533
40534 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40535
40536         Rename ld-version-script to lib-symbol-versions.  Suggested by
40537         Bruno Haible <bruno@clisp.org>.
40538         * modules/ld-version-script: Renamed to lib-symbol-versions.
40539         * doc/ld-version-script.texi: Fix module name.
40540         * MODULES.html.sh: Add lib-symbol-versions.
40541
40542 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40543
40544         * modules/u64-tests: New file.
40545         * tests/test-u64.c: New file.
40546
40547 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40548
40549         * MODULES.html.sh: Mention u64.
40550         * modules/u64: New module.
40551         * modules/crypto/sha512: Depend on u64 module instead of providing
40552         u64.h.
40553
40554 2009-03-27  Eric Blake  <ebb9@byu.net>
40555
40556         test-strerror: make debugging EAI_SYSTEM easier
40557         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40558         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40559         failure was EAI_SYSTEM.
40560
40561 2009-03-25  Bruno Haible  <bruno@clisp.org>
40562
40563         Fix a problem with --enable-relocatable on Solaris 7.
40564         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40565         since 2008-02-24.
40566
40567 2009-03-25  Eric Blake  <ebb9@byu.net>
40568
40569         test-sockets: avoid gcc warning
40570         * tests/test-sockets.c (main): Silence compiler warning.
40571
40572 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40573
40574         New modules nproc, pthread, contributed by Glen Lenker.
40575
40576         * MODULES.html.sh: Add pthread, nproc.
40577         * lib/nproc.c: New file.
40578         * lib/nproc.h: New file.
40579         * lib/pthread.in.h: New file.
40580         * m4/pthread.m4: New file.
40581         * modules/nproc: New file.
40582         * modules/pthread: New file.
40583
40584 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40585
40586         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40587         New variable.
40588
40589 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40590
40591         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40592         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40593         * tests/test-filevercmp.c: Add tests for backup suffixes.
40594
40595 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40596
40597         * modules/stdlib (Depends-on): Add stdint, needed when defining
40598         struct random_data on, for example, HP-UX 10.20.  Reported by
40599         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40600
40601 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40602
40603         * lib/readline.c (readline): Call fflush on stdout after printing
40604         prompt.
40605
40606 2009-03-20  Bruno Haible  <bruno@clisp.org>
40607
40608         Remove dependency from 'close' module to -lws2_32 on native Windows.
40609         * lib/close-hook.h: New file.
40610         * lib/close-hook.c: New file.
40611         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40612         w32sock.h.
40613         (_gl_close_fd_maybe_socket): Remove function.
40614         (rpl_close): Invoke execute_all_close_hooks instead of
40615         _gl_close_fd_maybe_socket.
40616         * lib/sockets.c: Include close-hook.h, w32sock.h.
40617         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40618         (close_sockets_hook): New variable.
40619         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40620         (gl_sockets_cleanup): Unregister it.
40621         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40622         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40623         * modules/close-hook: New file.
40624         * modules/close (Files): Remove lib/w32sock.h.
40625         (Depends-on): Add close-hook.
40626         (Link): Remove section.
40627         * modules/sockets (Files): Add lib/w32sock.h.
40628         (Depends-on): Add close-hook.
40629         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40630         invocation.
40631         * NEWS: Mention that LIB_CLOSE is gone.
40632
40633 2009-03-23  Eric Blake  <ebb9@byu.net>
40634
40635         signal-tests: test previous patch
40636         * tests/test-signal.c: New file.
40637         * modules/signal-tests: Likewise.
40638
40639         signal.h: always support 'volatile sig_atomic_t'
40640         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40641         (gl_SIGNAL_H_DEFAULTS): Add a default.
40642         * modules/signal (Makefile.am): Substitute if needed.
40643         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40644         users can blindly add volatile.
40645         * doc/posix-headers/signal.texi (signal.h): Document it.
40646         Reported by Matthew Woehlke.
40647
40648 2009-03-23  Jim Meyering  <meyering@redhat.com>
40649
40650         pathmax: PATH_MAX: use pathconf only when available
40651         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40652         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40653         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40654         This avoids a link failure in a PSP cross-compilation environment
40655         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40656
40657         * lib/vasnprintf.c (divide): Fix typo in comment.
40658
40659 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40660
40661         * gnulib-tool (func_filter_filelist): Fix comment.
40662
40663 2009-03-20  Bruno Haible  <bruno@clisp.org>
40664
40665         Make sockets.h self-contained.
40666         * lib/sockets.c: Include sockets.h first.
40667         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40668
40669 2009-03-19  Eric Blake  <ebb9@byu.net>
40670
40671         doc: mention more functions added in cygwin 1.7.0
40672         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40673         addition.
40674         * doc/posix-functions/log2f.texi: Likewise.
40675
40676 2009-03-19  Jim Meyering  <meyering@redhat.com>
40677
40678         fsusage: avoid syntax error due to statement-before-declaration
40679         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40680         after all declarations.  Reported by Matthew Woehlke in
40681         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40682
40683 2009-03-18  Eric Blake  <ebb9@byu.net>
40684
40685         build-aux/compile: sync from automake
40686         * build-aux/compile: New file, from automake.
40687         * config/srclist.txt: Mention build-aux/compile.
40688
40689 2009-03-17  Bruno Haible  <bruno@clisp.org>
40690
40691         * lib/git-merge-changelog.c: Fix typo in comment.
40692         Reported by Reuben Thomas <rrt@sc3d.org>.
40693
40694 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40695
40696         * m4/regex.m4: update and improve help for
40697         --without-included-regex.
40698
40699 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40700
40701         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40702         failure on missing include files.
40703
40704 2009-03-17  Eric Blake  <ebb9@byu.net>
40705
40706         doc: mention more functions added in cygwin 1.7.0
40707         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40708         addition.
40709         * doc/posix-functions/fwscanf.texi: Likewise.
40710         * doc/posix-functions/swprintf.texi: Likewise.
40711         * doc/posix-functions/swscanf.texi: Likewise.
40712         * doc/posix-functions/vfwprintf.texi: Likewise.
40713         * doc/posix-functions/vfwscanf.texi: Likewise.
40714         * doc/posix-functions/vswprintf.texi: Likewise.
40715         * doc/posix-functions/vswscanf.texi: Likewise.
40716         * doc/posix-functions/vwprintf.texi: Likewise.
40717         * doc/posix-functions/vwscanf.texi: Likewise.
40718         * doc/posix-functions/wcscasecmp.texi: Likewise.
40719         * doc/posix-functions/wcsdup.texi: Likewise.
40720         * doc/posix-functions/wcsftime.texi: Likewise.
40721         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40722         * doc/posix-functions/wprintf.texi: Likewise.
40723         * doc/posix-functions/wscanf.texi: Likewise.
40724         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40725
40726 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40727
40728         maint.mk: really add $(AM_MAKEFLAGS)
40729         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40730         was inadvertently omitted in the last commit.
40731         Spotted by Bruno Haible.
40732
40733         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40734         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40735         $(AM_MAKEFLAGS)' rather than plain `make'.
40736
40737         gnulib-tool: execute $MAKE not make
40738         * gnulib-tool: Default $MAKE to 'make'.
40739         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40740         than make.  Initialize $MAKE in the do-autobuild script.
40741
40742         gnulib-tool: use $MAKE not make in generated files
40743         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40744         make, in generated files.  Initialize $MAKE in the do-autobuild
40745         script.
40746
40747         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40748
40749         GNUmakefile: disable parallelism only for multiple, recursive targets
40750         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40751         additions in the Makefile.
40752         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40753         by Automake.
40754         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40755         are listed on the command line and at least one of them is
40756         listed in $(ALL_RECURSIVE_TARGETS).
40757
40758 2009-03-14  Bruno Haible  <bruno@clisp.org>
40759
40760         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40761         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40762         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40763         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40764         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40765         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40766         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40767         unistr/u8-uctomb.
40768         * modules/unistr/u8-strchr (Depends-on): Likewise.
40769         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40770         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40771         unistr/u16-uctomb.
40772         * modules/unistr/u16-strchr (Depends-on): Likewise.
40773         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40774
40775 2009-03-12  Bruno Haible  <bruno@clisp.org>
40776
40777         Work around select() bug on Interix 3.5.
40778         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40779         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40780         * m4/select.m4: New file.
40781         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40782         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40783         * modules/select (Files): Add m4/select.m4.
40784         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40785         * modules/nanosleep (Depends-on): Add select.
40786         * modules/poll (Depends-on): Likewise.
40787         * doc/posix-functions/select.texi: Mention the Interix bug.
40788         Reported by Markus Duft <mduft@gentoo.org>.
40789
40790         * lib/select.c: Renamed from lib/winsock-select.c.
40791         * modules/select (Files): Add lib/select.c, remove
40792         lib/winsock-select.c.
40793         (configure.ac): Update.
40794
40795 2009-03-12  Jim Meyering  <meyering@redhat.com>
40796
40797         avoid gcc warnings about unused macro definitions
40798         * lib/readtokens.c (STREQ): Remove unused definition.
40799         * lib/xmalloc.c (SIZE_MAX): Likewise.
40800         * lib/openat-die.c (N_): Likewise.
40801         * lib/mountlist.c (SIZE_MAX): Remove definition.
40802         Instead, include <stdint.h>.
40803         * lib/readutmp.c: Likewise.
40804         * modules/readutmp (Depends-on): Add stdint.
40805         * modules/mountlist (Depends-on): Add stdint.
40806         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40807
40808 2009-03-10  Bruno Haible  <bruno@clisp.org>
40809
40810         Tests for module 'mbmemcasecoll'.
40811         * modules/mbmemcasecoll-tests: New file.
40812         * tests/test-mbmemcasecoll1.sh: New file.
40813         * tests/test-mbmemcasecoll2.sh: New file.
40814         * tests/test-mbmemcasecoll3.sh: New file.
40815         * tests/test-mbmemcasecoll.c: New file.
40816
40817         New module 'mbmemcasecoll'.
40818         * lib/mbmemcasecoll.h: New file.
40819         * lib/mbmemcasecoll.c: New file.
40820         * modules/mbmemcasecoll: New file.
40821
40822         * tests/test-mbmemcasecmp.h: New file, extracted from
40823         tests/test-mbmemcasecmp.c.
40824         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40825         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40826         (main): Update.
40827         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40828
40829 2009-03-09  Bruno Haible  <bruno@clisp.org>
40830
40831         Tests for module 'mbmemcasecmp'.
40832         * modules/mbmemcasecmp-tests: New file.
40833         * tests/test-mbmemcasecmp1.sh: New file.
40834         * tests/test-mbmemcasecmp2.sh: New file.
40835         * tests/test-mbmemcasecmp3.sh: New file.
40836         * tests/test-mbmemcasecmp.c: New file.
40837
40838         New module 'mbmemcasecmp'.
40839         * lib/mbmemcasecmp.h: New file.
40840         * lib/mbmemcasecmp.c: New file.
40841         * modules/mbmemcasecmp: New file.
40842
40843 2009-03-09  Bruno Haible  <bruno@clisp.org>
40844
40845         Tests for module 'unicase/ulc-casecoll'.
40846         * modules/unicase/ulc-casecoll-tests: New file.
40847         * tests/unicase/test-ulc-casecoll1.sh: New file.
40848         * tests/unicase/test-ulc-casecoll2.sh: New file.
40849         * tests/unicase/test-ulc-casecoll.c: New file.
40850
40851         New module 'unicase/ulc-casecoll'.
40852         * lib/unicase.h (ulc_casecoll): New declaration.
40853         * lib/unicase/ulc-casecoll.c: New file.
40854         * modules/unicase/ulc-casecoll: New file.
40855
40856         New module 'unicase/ulc-casexfrm'.
40857         * lib/unicase.h (ulc_casexfrm): New declaration.
40858         * lib/unicase/ulc-casexfrm.c: New file.
40859         * modules/unicase/ulc-casexfrm: New file.
40860
40861 2009-03-09  Bruno Haible  <bruno@clisp.org>
40862
40863         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40864         invocations.
40865
40866         * m4/mbscasecmp.m4: Remove file.
40867         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40868         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40869
40870         * m4/mbscasestr.m4: Remove file.
40871         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40872         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40873
40874         * m4/mbschr.m4: Remove file.
40875         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40876         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40877
40878         * m4/mbscspn.m4: Remove file.
40879         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40880         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40881
40882         * m4/mbslen.m4: Remove file.
40883         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40884         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40885
40886         * m4/mbsncasecmp.m4: Remove file.
40887         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40888         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40889
40890         * m4/mbsnlen.m4: Remove file.
40891         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40892         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40893
40894         * m4/mbspbrk.m4: Remove file.
40895         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40896         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40897
40898         * m4/mbspcasecmp.m4: Remove file.
40899         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40900         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40901
40902         * m4/mbsrchr.m4: Remove file.
40903         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40904         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40905
40906         * m4/mbssep.m4: Remove file.
40907         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40908         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40909
40910         * m4/mbsspn.m4: Remove file.
40911         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40912         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40913
40914         * m4/mbsstr.m4: Remove file.
40915         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40916         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40917
40918         * m4/mbstok_r.m4: Remove file.
40919         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40920         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40921
40922         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40923
40924         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40925         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40926
40927         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40928
40929 2009-03-08  Bruno Haible  <bruno@clisp.org>
40930
40931         Tests for module 'unicase/ulc-casecmp'.
40932         * modules/unicase/ulc-casecmp-tests: New file.
40933         * tests/unicase/test-ulc-casecmp1.sh: New file.
40934         * tests/unicase/test-ulc-casecmp2.sh: New file.
40935         * tests/unicase/test-ulc-casecmp.c: New file.
40936
40937         New module 'unicase/ulc-casecmp'.
40938         * lib/unicase.h (ulc_casecmp): New declaration.
40939         * lib/unicase/ulc-casecmp.c: New file.
40940         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40941         'const SRC_UNIT *'.
40942         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40943         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40944         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40945         * modules/unicase/ulc-casecmp: New file.
40946
40947         Tests for module 'unicase/u32-is-cased'.
40948         * modules/unicase/u32-is-cased-tests: New file.
40949         * tests/unicase/test-u32-is-cased.c: New file.
40950
40951         Tests for module 'unicase/u16-is-cased'.
40952         * modules/unicase/u16-is-cased-tests: New file.
40953         * tests/unicase/test-u16-is-cased.c: New file.
40954
40955         Tests for module 'unicase/u8-is-cased'.
40956         * modules/unicase/u8-is-cased-tests: New file.
40957         * tests/unicase/test-u8-is-cased.c: New file.
40958         * tests/unicase/test-is-cased.h: New file.
40959
40960         New module 'unicase/u32-is-cased'.
40961         * lib/unicase/u32-is-cased.c: New file.
40962         * modules/unicase/u32-is-cased: New file.
40963
40964         New module 'unicase/u16-is-cased'.
40965         * lib/unicase/u16-is-cased.c: New file.
40966         * modules/unicase/u16-is-cased: New file.
40967
40968         New module 'unicase/u8-is-cased'.
40969         * lib/unicase/u8-is-cased.c: New file.
40970         * lib/unicase/u-is-cased.h: New file.
40971         * modules/unicase/u8-is-cased: New file.
40972
40973         Tests for module 'unicase/u32-is-casefolded'.
40974         * modules/unicase/u32-is-casefolded-tests: New file.
40975         * tests/unicase/test-u32-is-casefolded.c: New file.
40976
40977         Tests for module 'unicase/u16-is-casefolded'.
40978         * modules/unicase/u16-is-casefolded-tests: New file.
40979         * tests/unicase/test-u16-is-casefolded.c: New file.
40980
40981         Tests for module 'unicase/u8-is-casefolded'.
40982         * modules/unicase/u8-is-casefolded-tests: New file.
40983         * tests/unicase/test-u8-is-casefolded.c: New file.
40984         * tests/unicase/test-is-casefolded.h: New file.
40985
40986         New module 'unicase/u32-is-casefolded'.
40987         * lib/unicase/u32-is-casefolded.c: New file.
40988         * modules/unicase/u32-is-casefolded: New file.
40989
40990         New module 'unicase/u16-is-casefolded'.
40991         * lib/unicase/u16-is-casefolded.c: New file.
40992         * modules/unicase/u16-is-casefolded: New file.
40993
40994         New module 'unicase/u8-is-casefolded'.
40995         * lib/unicase/u8-is-casefolded.c: New file.
40996         * modules/unicase/u8-is-casefolded: New file.
40997
40998         Tests for module 'unicase/u32-is-titlecase'.
40999         * modules/unicase/u32-is-titlecase-tests: New file.
41000         * tests/unicase/test-u32-is-titlecase.c: New file.
41001
41002         Tests for module 'unicase/u16-is-titlecase'.
41003         * modules/unicase/u16-is-titlecase-tests: New file.
41004         * tests/unicase/test-u16-is-titlecase.c: New file.
41005
41006         Tests for module 'unicase/u8-is-titlecase'.
41007         * modules/unicase/u8-is-titlecase-tests: New file.
41008         * tests/unicase/test-u8-is-titlecase.c: New file.
41009         * tests/unicase/test-is-titlecase.h: New file.
41010
41011         New module 'unicase/u32-is-titlecase'.
41012         * lib/unicase/u32-is-titlecase.c: New file.
41013         * modules/unicase/u32-is-titlecase: New file.
41014
41015         New module 'unicase/u16-is-titlecase'.
41016         * lib/unicase/u16-is-titlecase.c: New file.
41017         * modules/unicase/u16-is-titlecase: New file.
41018
41019         New module 'unicase/u8-is-titlecase'.
41020         * lib/unicase/u8-is-titlecase.c: New file.
41021         * modules/unicase/u8-is-titlecase: New file.
41022
41023         Tests for module 'unicase/u32-is-lowercase'.
41024         * modules/unicase/u32-is-lowercase-tests: New file.
41025         * tests/unicase/test-u32-is-lowercase.c: New file.
41026
41027         Tests for module 'unicase/u16-is-lowercase'.
41028         * modules/unicase/u16-is-lowercase-tests: New file.
41029         * tests/unicase/test-u16-is-lowercase.c: New file.
41030
41031         Tests for module 'unicase/u8-is-lowercase'.
41032         * modules/unicase/u8-is-lowercase-tests: New file.
41033         * tests/unicase/test-u8-is-lowercase.c: New file.
41034         * tests/unicase/test-is-lowercase.h: New file.
41035
41036         New module 'unicase/u32-is-lowercase'.
41037         * lib/unicase/u32-is-lowercase.c: New file.
41038         * modules/unicase/u32-is-lowercase: New file.
41039
41040         New module 'unicase/u16-is-lowercase'.
41041         * lib/unicase/u16-is-lowercase.c: New file.
41042         * modules/unicase/u16-is-lowercase: New file.
41043
41044         New module 'unicase/u8-is-lowercase'.
41045         * lib/unicase/u8-is-lowercase.c: New file.
41046         * modules/unicase/u8-is-lowercase: New file.
41047
41048         Tests for module 'unicase/u32-is-uppercase'.
41049         * modules/unicase/u32-is-uppercase-tests: New file.
41050         * tests/unicase/test-u32-is-uppercase.c: New file.
41051
41052         Tests for module 'unicase/u16-is-uppercase'.
41053         * modules/unicase/u16-is-uppercase-tests: New file.
41054         * tests/unicase/test-u16-is-uppercase.c: New file.
41055
41056         Tests for module 'unicase/u8-is-uppercase'.
41057         * modules/unicase/u8-is-uppercase-tests: New file.
41058         * tests/unicase/test-u8-is-uppercase.c: New file.
41059         * tests/unicase/test-is-uppercase.h: New file.
41060
41061         New module 'unicase/u32-is-uppercase'.
41062         * lib/unicase/u32-is-uppercase.c: New file.
41063         * modules/unicase/u32-is-uppercase: New file.
41064
41065         New module 'unicase/u16-is-uppercase'.
41066         * lib/unicase/u16-is-uppercase.c: New file.
41067         * modules/unicase/u16-is-uppercase: New file.
41068
41069         New module 'unicase/u8-is-uppercase'.
41070         * lib/unicase/u8-is-uppercase.c: New file.
41071         * modules/unicase/u8-is-uppercase: New file.
41072
41073         New module 'unicase/u32-is-invariant'.
41074         * lib/unicase/u32-is-invariant.c: New file.
41075         * modules/unicase/u32-is-invariant: New file.
41076
41077         New module 'unicase/u16-is-invariant'.
41078         * lib/unicase/u16-is-invariant.c: New file.
41079         * modules/unicase/u16-is-invariant: New file.
41080
41081         New module 'unicase/u8-is-invariant'.
41082         * lib/unicase/u8-is-invariant.c: New file.
41083         * lib/unicase/invariant.h: New file.
41084         * lib/unicase/u-is-invariant.h: New file.
41085         * modules/unicase/u8-is-invariant: New file.
41086
41087         Tests for module 'unicase/u32-casecoll'.
41088         * modules/unicase/u32-casecoll-tests: New file.
41089         * tests/unicase/test-u32-casecoll.c: New file.
41090
41091         Tests for module 'unicase/u16-casecoll'.
41092         * modules/unicase/u16-casecoll-tests: New file.
41093         * tests/unicase/test-u16-casecoll.c: New file.
41094
41095         Tests for module 'unicase/u8-casecoll'.
41096         * modules/unicase/u8-casecoll-tests: New file.
41097         * tests/unicase/test-u8-casecoll.c: New file.
41098
41099         New module 'unicase/u32-casecoll'.
41100         * lib/unicase/u32-casecoll.c: New file.
41101         * modules/unicase/u32-casecoll: New file.
41102
41103         New module 'unicase/u16-casecoll'.
41104         * lib/unicase/u16-casecoll.c: New file.
41105         * modules/unicase/u16-casecoll: New file.
41106
41107         New module 'unicase/u8-casecoll'.
41108         * lib/unicase/u8-casecoll.c: New file.
41109         * lib/unicase/u-casecoll.h: New file.
41110         * modules/unicase/u8-casecoll: New file.
41111
41112         New module 'unicase/u32-casexfrm'.
41113         * lib/unicase/u32-casexfrm.c: New file.
41114         * modules/unicase/u32-casexfrm: New file.
41115
41116         New module 'unicase/u16-casexfrm'.
41117         * lib/unicase/u16-casexfrm.c: New file.
41118         * modules/unicase/u16-casexfrm: New file.
41119
41120         New module 'unicase/u8-casexfrm'.
41121         * lib/unicase/u8-casexfrm.c: New file.
41122         * lib/unicase/u-casexfrm.h: New file.
41123         * modules/unicase/u8-casexfrm: New file.
41124
41125         Tests for module 'unicase/u32-casecmp'.
41126         * modules/unicase/u32-casecmp-tests: New file.
41127         * tests/unicase/test-u32-casecmp.c: New file.
41128
41129         Tests for module 'unicase/u16-casecmp'.
41130         * modules/unicase/u16-casecmp-tests: New file.
41131         * tests/unicase/test-u16-casecmp.c: New file.
41132
41133         Tests for module 'unicase/u8-casecmp'.
41134         * modules/unicase/u8-casecmp-tests: New file.
41135         * tests/unicase/test-u8-casecmp.c: New file.
41136         * tests/unicase/test-casecmp.h: New file.
41137
41138         New module 'unicase/u32-casecmp'.
41139         * lib/unicase/u32-casecmp.c: New file.
41140         * modules/unicase/u32-casecmp: New file.
41141
41142         New module 'unicase/u16-casecmp'.
41143         * lib/unicase/u16-casecmp.c: New file.
41144         * modules/unicase/u16-casecmp: New file.
41145
41146         New module 'unicase/u8-casecmp'.
41147         * lib/unicase/u8-casecmp.c: New file.
41148         * lib/unicase/u-casecmp.h: New file.
41149         * modules/unicase/u8-casecmp: New file.
41150
41151         Tests for module 'unicase/u32-casefold'.
41152         * modules/unicase/u32-casefold-tests: New file.
41153         * tests/unicase/test-u32-casefold.c: New file.
41154
41155         Tests for module 'unicase/u16-casefold'.
41156         * modules/unicase/u16-casefold-tests: New file.
41157         * tests/unicase/test-u16-casefold.c: New file.
41158
41159         Tests for module 'unicase/u8-casefold'.
41160         * modules/unicase/u8-casefold-tests: New file.
41161         * tests/unicase/test-u8-casefold.c: New file.
41162
41163         New module 'unicase/u32-casefold'.
41164         * lib/unicase/u32-casefold.c: New file.
41165         * modules/unicase/u32-casefold: New file.
41166
41167         New module 'unicase/u16-casefold'.
41168         * lib/unicase/u16-casefold.c: New file.
41169         * modules/unicase/u16-casefold: New file.
41170
41171         New module 'unicase/u8-casefold'.
41172         * lib/unicase/u8-casefold.c: New file.
41173         * lib/unicase/u-casefold.h: New file.
41174         * modules/unicase/u8-casefold: New file.
41175
41176         New module 'unicase/tocasefold'.
41177         * lib/unicase/casefold.h: New file.
41178         * lib/unicase/tocasefold.c: New file.
41179         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41180         * modules/unicase/tocasefold: New file.
41181
41182         Tests for module 'unicase/u32-totitle'.
41183         * modules/unicase/u32-totitle-tests: New file.
41184         * tests/unicase/test-u32-totitle.c: New file.
41185
41186         Tests for module 'unicase/u16-totitle'.
41187         * modules/unicase/u16-totitle-tests: New file.
41188         * tests/unicase/test-u16-totitle.c: New file.
41189
41190         Tests for module 'unicase/u8-totitle'.
41191         * modules/unicase/u8-totitle-tests: New file.
41192         * tests/unicase/test-u8-totitle.c: New file.
41193
41194         New module 'unicase/u32-totitle'.
41195         * lib/unicase/u32-totitle.c: New file.
41196         * modules/unicase/u32-totitle: New file.
41197
41198         New module 'unicase/u16-totitle'.
41199         * lib/unicase/u16-totitle.c: New file.
41200         * modules/unicase/u16-totitle: New file.
41201
41202         New module 'unicase/u8-totitle'.
41203         * lib/unicase/u8-totitle.c: New file.
41204         * lib/unicase/u-totitle.h: New file.
41205         * modules/unicase/u8-totitle: New file.
41206
41207         Tests for module 'unicase/u32-tolower'.
41208         * modules/unicase/u32-tolower-tests: New file.
41209         * tests/unicase/test-u32-tolower.c: New file.
41210
41211         Tests for module 'unicase/u16-tolower'.
41212         * modules/unicase/u16-tolower-tests: New file.
41213         * tests/unicase/test-u16-tolower.c: New file.
41214
41215         Tests for module 'unicase/u8-tolower'.
41216         * modules/unicase/u8-tolower-tests: New file.
41217         * tests/unicase/test-u8-tolower.c: New file.
41218
41219         New module 'unicase/u32-tolower'.
41220         * lib/unicase/u32-tolower.c: New file.
41221         * modules/unicase/u32-tolower: New file.
41222
41223         New module 'unicase/u16-tolower'.
41224         * lib/unicase/u16-tolower.c: New file.
41225         * modules/unicase/u16-tolower: New file.
41226
41227         New module 'unicase/u8-tolower'.
41228         * lib/unicase/u8-tolower.c: New file.
41229         * modules/unicase/u8-tolower: New file.
41230
41231         Tests for module 'unicase/u32-toupper'.
41232         * modules/unicase/u32-toupper-tests: New file.
41233         * tests/unicase/test-u32-toupper.c: New file.
41234
41235         Tests for module 'unicase/u16-toupper'.
41236         * modules/unicase/u16-toupper-tests: New file.
41237         * tests/unicase/test-u16-toupper.c: New file.
41238
41239         Tests for module 'unicase/u8-toupper'.
41240         * modules/unicase/u8-toupper-tests: New file.
41241         * tests/unicase/test-u8-toupper.c: New file.
41242
41243         New module 'unicase/u32-toupper'.
41244         * lib/unicase/u32-toupper.c: New file.
41245         * modules/unicase/u32-toupper: New file.
41246
41247         New module 'unicase/u16-toupper'.
41248         * lib/unicase/u16-toupper.c: New file.
41249         * modules/unicase/u16-toupper: New file.
41250
41251         New module 'unicase/u8-toupper'.
41252         * lib/unicase/u8-toupper.c: New file.
41253         * modules/unicase/u8-toupper: New file.
41254
41255         New module 'unicase/u32-casemap'.
41256         * lib/unicase/u32-casemap.c: New file.
41257         * modules/unicase/u32-casemap: New file.
41258
41259         New module 'unicase/u16-casemap'.
41260         * lib/unicase/u16-casemap.c: New file.
41261         * modules/unicase/u16-casemap: New file.
41262
41263         New module 'unicase/u8-casemap'.
41264         * lib/unicase/unicasemap.h: New file.
41265         * lib/unicase/u8-casemap.c: New file.
41266         * lib/unicase/u-casemap.h: New file.
41267         * modules/unicase/u8-casemap: New file.
41268
41269         New module 'unicase/special-casing'.
41270         * lib/unicase/special-casing.h: New file.
41271         * lib/unicase/special-casing.c: New file.
41272         * lib/unicase/special-casing-table.gperf: New file, generated by
41273         gen-uni-tables.c.
41274         * modules/unicase/special-casing: New file.
41275
41276         Tests for module 'unicase/locale-language'.
41277         * modules/unicase/locale-language-tests: New file.
41278         * tests/unicase/test-locale-language.sh: New file.
41279         * tests/unicase/test-locale-language.c: New file.
41280
41281         New module 'unicase/locale-language'.
41282         * lib/unicase/locale-language.c: New file.
41283         * lib/unicase/locale-languages.gperf: New file.
41284         * modules/unicase/locale-language: New file.
41285
41286         Generate more tables for case conversion and case folding.
41287         * lib/gen-uni-tables.c (SCC_*): New enum items.
41288         (struct special_casing_rule): New type.
41289         (casing_rules, num_casing_rules, allocated_casing_rules): New
41290         variables.
41291         (add_casing_rule, fill_casing_rules): New functions.
41292         (struct casefold_rule): New type.
41293         (casefolding_rules, num_casefolding_rules,
41294         allocated_casefolding_rules): New variables.
41295         (fill_casefolding_rules): New function.
41296         (unicode_casefold): New variable.
41297         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41298         sort_casing_rules, output_casing_rules): New functions.
41299         (main): Accept to more arguments: SpecialCasing.txt and
41300         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41301         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41302         Output mapping for casefolding.
41303
41304         * lib/unicase.h: Include stdbool.h, uninorm.h.
41305         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41306         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41307         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41308         arguments.
41309         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41310         resultp arguments.
41311         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41312         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41313         resultp arguments.
41314         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41315         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41316         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41317         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41318         declarations.
41319         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41320
41321 2009-03-08  Bruno Haible  <bruno@clisp.org>
41322
41323         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41324         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41325         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41326         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41327
41328 2009-03-07  Bruno Haible  <bruno@clisp.org>
41329
41330         Adjust u*_normcmp, u*_normcoll API.
41331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41332         u16_normcoll, u32_normcoll): Change failure conventions.
41333         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41334         errno and return -1.
41335         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41336
41337 2009-03-07  Bruno Haible  <bruno@clisp.org>
41338
41339         Tests for module 'uninorm/u32-normcoll'.
41340         * modules/uninorm/u32-normcoll-tests: New file.
41341         * tests/uninorm/test-u32-normcoll.c: New file.
41342
41343         Tests for module 'uninorm/u16-normcoll'.
41344         * modules/uninorm/u16-normcoll-tests: New file.
41345         * tests/uninorm/test-u16-normcoll.c: New file.
41346
41347         Tests for module 'uninorm/u8-normcoll'.
41348         * modules/uninorm/u8-normcoll-tests: New file.
41349         * tests/uninorm/test-u8-normcoll.c: New file.
41350
41351 2009-03-07  Bruno Haible  <bruno@clisp.org>
41352
41353         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41354         tests/uninorm/test-u32-normcmp.c.
41355         * tests/uninorm/test-u32-normcmp.c: Include it.
41356         (test_nonascii): New function, extracted from main. Add some more
41357         tests.
41358         (main): Invoke test_ascii and test_nonascii.
41359         * modules/uninorm/u32-normcmp-tests (Files): Add
41360         tests/uninorm/test-u32-normcmp.h.
41361         (Depends-on): Remove uninorm/u32-normcmp.
41362
41363         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41364         tests/uninorm/test-u16-normcmp.c.
41365         * tests/uninorm/test-u16-normcmp.c: Include it.
41366         (test_nonascii): New function, extracted from main. Add some more
41367         tests.
41368         (main): Invoke test_ascii and test_nonascii.
41369         * modules/uninorm/u16-normcmp-tests (Files): Add
41370         tests/uninorm/test-u16-normcmp.h.
41371         (Depends-on): Remove uninorm/u16-normcmp.
41372
41373         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41374         tests/uninorm/test-u8-normcmp.c.
41375         * tests/uninorm/test-u8-normcmp.c: Include it.
41376         (test_nonascii): New function, extracted from main. Add some more
41377         tests.
41378         (main): Invoke test_ascii and test_nonascii.
41379         * modules/uninorm/u8-normcmp-tests (Files): Add
41380         tests/uninorm/test-u8-normcmp.h.
41381         (Depends-on): Remove uninorm/u8-normcmp.
41382
41383 2009-03-07  Bruno Haible  <bruno@clisp.org>
41384
41385         New module 'uninorm/u32-normcoll'.
41386         * lib/uninorm/u32-normcoll.c: New file.
41387         * modules/uninorm/u32-normcoll: New file.
41388
41389         New module 'uninorm/u16-normcoll'.
41390         * lib/uninorm/u16-normcoll.c: New file.
41391         * modules/uninorm/u16-normcoll: New file.
41392
41393         New module 'uninorm/u8-normcoll'.
41394         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41395         declarations.
41396         * lib/uninorm/u8-normcoll.c: New file.
41397         * lib/uninorm/u-normcoll.h: New file.
41398         * modules/uninorm/u8-normcoll: New file.
41399
41400         New module 'uninorm/u32-normxfrm'.
41401         * lib/uninorm/u32-normxfrm.c: New file.
41402         * modules/uninorm/u32-normxfrm: New file.
41403
41404         New module 'uninorm/u16-normxfrm'.
41405         * lib/uninorm/u16-normxfrm.c: New file.
41406         * modules/uninorm/u16-normxfrm: New file.
41407
41408         New module 'uninorm/u8-normxfrm'.
41409         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41410         declarations.
41411         * lib/uninorm/u8-normxfrm.c: New file.
41412         * lib/uninorm/u-normxfrm.h: New file.
41413         * modules/uninorm/u8-normxfrm: New file.
41414
41415 2009-03-07  Bruno Haible  <bruno@clisp.org>
41416
41417         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41418         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41419         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41420
41421 2009-03-07  Bruno Haible  <bruno@clisp.org>
41422
41423         New module 'memxfrm'.
41424         * lib/memxfrm.h: New file.
41425         * lib/memxfrm.c: New file.
41426         * modules/memxfrm: New file.
41427
41428 2009-03-07  Bruno Haible  <bruno@clisp.org>
41429
41430         New module 'memcmp2'.
41431         * lib/memcmp2.h: New file.
41432         * lib/memcmp2.c: New file.
41433         * modules/memcmp2: New file.
41434
41435 2009-03-07  Bruno Haible  <bruno@clisp.org>
41436
41437         Tests for module 'uninorm/decomposing-form'.
41438         * modules/uninorm/decomposing-form-tests: New file.
41439         * tests/uninorm/test-decomposing-form.c: New file.
41440
41441         New module 'uninorm/decomposing-form'.
41442         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41443         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41444         Add 'decomposing_variant' field.
41445         * lib/uninorm/decomposing-form.c: New file.
41446         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41447         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41448         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41449         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41450         * modules/uninorm/decomposing-form: New file.
41451         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41452         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41453
41454 2009-03-07  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41457         strings.
41458
41459 2009-03-06  Bruno Haible  <bruno@clisp.org>
41460
41461         Tests for module 'uninorm/u32-normcmp'.
41462         * tests/uninorm/test-u32-normcmp.c: New file.
41463         * modules/uninorm/u32-normcmp-tests: New file.
41464
41465         Tests for module 'uninorm/u16-normcmp'.
41466         * tests/uninorm/test-u16-normcmp.c: New file.
41467         * modules/uninorm/u16-normcmp-tests: New file.
41468
41469         Tests for module 'uninorm/u8-normcmp'.
41470         * tests/uninorm/test-u8-normcmp.c: New file.
41471         * modules/uninorm/u8-normcmp-tests: New file.
41472
41473         New module 'uninorm/u32-normcmp'.
41474         * lib/uninorm/u32-normcmp.c: New file.
41475         * modules/uninorm/u32-normcmp: New file.
41476
41477         New module 'uninorm/u16-normcmp'.
41478         * lib/uninorm/u16-normcmp.c: New file.
41479         * modules/uninorm/u16-normcmp: New file.
41480
41481         New module 'uninorm/u8-normcmp'.
41482         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41483         declarations.
41484         * lib/uninorm/u8-normcmp.c: New file.
41485         * lib/uninorm/u-normcmp.h: New file.
41486         * modules/uninorm/u8-normcmp: New file.
41487
41488 2009-03-06  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41491         Reported by Eric Blake.
41492
41493 2009-03-06  Eric Blake  <ebb9@byu.net>
41494             Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41497         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41498         condition.
41499         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41500         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41501         condition.
41502         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41503
41504 2009-03-06  Eric Blake  <ebb9@byu.net>
41505
41506         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41507         to avoid compiler warnings.
41508         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41509
41510 2009-03-05  Bruno Haible  <bruno@clisp.org>
41511
41512         * tests/test-ftell.c (main): Disable test beyond end of file on
41513         FreeMiNT.
41514         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41515
41516 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41517
41518         * lib/filevercmp.c: Move hidden files up in ordering.
41519         * tests/test-filevercmp.c: Add tests for hidden files.
41520
41521 2009-03-04  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41524         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41525         AM_CFLAGS.
41526         Reported by Simon Josefsson.
41527
41528 2009-03-03  Bruno Haible  <bruno@clisp.org>
41529
41530         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41531         Reported by Simon Josefsson.
41532
41533         * doc/ld-version-script.texi: Update node reference.
41534
41535 2009-03-03  Bruno Haible  <bruno@clisp.org>
41536
41537         * modules/visibility (License): Change to 'unlimited'.
41538         Suggested by Simon Josefsson.
41539
41540 2009-03-03  Jim Meyering  <meyering@redhat.com>
41541
41542         unlinkdir: cannot_unlink_dir may modify process state
41543         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41544         it's neither thread-safe nor appropriate for use in a library.
41545
41546 2009-03-03  Eric Blake  <ebb9@byu.net>
41547
41548         test-closein: silence test under Darwin
41549         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41550         care if it dies from EPIPE or EBADF.
41551
41552 2009-03-03  Bruno Haible  <bruno@clisp.org>
41553
41554         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41555         earlier.
41556         * doc/visibility.texi: Fix @node and @section.
41557
41558 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41559
41560         * doc/gnulib.texi: Link to sections for ld version script and
41561         visibility.
41562         * doc/visibility.texi: Add @node and @section.
41563         * modules/ld-version-script: New module.
41564         * m4/ld-version-script.m4: New file.
41565         * doc/ld-version-script.texi: New file.
41566
41567 2009-03-02  David Lutterkort  <lutter@redhat.com>
41568
41569         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41571
41572 2009-03-02  Bruno Haible  <bruno@clisp.org>
41573
41574         * doc/visibility.texi: Mention libtool's -export-symbols option.
41575
41576 2009-03-02  Jim Meyering  <meyering@redhat.com>
41577
41578         announce-gen: new option: --no-print-checksums
41579         * build-aux/announce-gen (usage): Describe it.
41580         (print_checksums): Print a newline here, not in the [*] footnote.
41581         (main): Honor it.
41582
41583 2009-03-01  Bruno Haible  <bruno@clisp.org>
41584
41585         Use socklen_t in the native Windows replacements prototypes.
41586         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41587         instead of 'int'.
41588         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41589         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41590         * modules/getsockopt (Depends-on): Add socklen.
41591         * modules/setsockopt (Depends-on): Add socklen.
41592
41593 2009-03-01  Bruno Haible  <bruno@clisp.org>
41594
41595         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41596         least 4.2.
41597
41598 2009-03-01  Eric Blake  <ebb9@byu.net>
41599             Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41602         error messages.
41603         * lib/wait-process.c (wait_subprocess): Omit error message about
41604         deadly signal sent to the child of termsigp != NULL.
41605
41606 2009-03-01  Eric Blake  <ebb9@byu.net>
41607
41608         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41609
41610 2009-03-01  Bruno Haible  <bruno@clisp.org>
41611
41612         Avoid a gcc warning.
41613         * tests/test-sched.c (b): Make global.
41614         Reported by Eric Blake.
41615
41616 2009-01-19  Martin Lambers  <marlam@marlam.de>
41617
41618         Provide POSIX semantics for socket timeout options on W32.
41619         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41620         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41621         * modules/setsockopt: Depend on sys_time module for struct timeval.
41622         * modules/getsockopt: Depend on sys_time module for struct timeval.
41623
41624 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41625
41626         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41627         __USE_GNU, for consistency with netdb.in.h.
41628         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41629
41630 2009-03-01  Bruno Haible  <bruno@clisp.org>
41631
41632         More support for FreeMiNT.
41633         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41634         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41635
41636 2009-03-01  Bruno Haible  <bruno@clisp.org>
41637
41638         More support for FreeMiNT.
41639         * lib/fpurge.c (fpurge): Correct last commit.
41640         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41641
41642 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41643
41644         Fix unportable awk script in vc-list-files.
41645         * build-aux/vc-list-files: In the replacement awk script, use
41646         substr with a second argument of 1, not zero.
41647         Report by Simon Josefsson.
41648
41649 2009-02-28  Bruno Haible  <bruno@clisp.org>
41650
41651         More support for FreeMiNT.
41652         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41653         to FreeMiNT today.
41654         * lib/fwriting.c (fwriting): Likewise.
41655         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41656
41657 2009-02-28  Bruno Haible  <bruno@clisp.org>
41658
41659         * tests/test-freadseek.c (main): Disable test beyond end of file on
41660         FreeMiNT.
41661         * tests/test-ftello.c (main): Likewise.
41662         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41663
41664 2009-02-28  Bruno Haible  <bruno@clisp.org>
41665
41666         Add tentative support for FreeMiNT.
41667         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41668         * lib/fpurge.c (fpurge): Likewise.
41669         * lib/freadable.c (freadable): Likewise.
41670         * lib/freading.c (freading): Likewise.
41671         * lib/freadptr.c (freadptr): Likewise.
41672         * lib/freadseek.c (freadptrinc): Likewise.
41673         * lib/fseeko.c (rpl_fseeko): Likewise.
41674         * lib/fseterr.c (fseterr): Likewise.
41675         * lib/fwritable.c (fwritable): Likewise.
41676         * lib/fwriting.c (fwriting): Likewise.
41677         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41678         Hourihane.
41679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41680
41681 2009-02-28  Bruno Haible  <bruno@clisp.org>
41682
41683         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41684         SIGCHLD.
41685         Reported by Jim Meyering.
41686
41687 2009-02-28  Bruno Haible  <bruno@clisp.org>
41688
41689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41690         Mention the results of these tests on various platforms.
41691         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41692         order.
41693         * doc/posix-functions/printf.texi: Likewise.
41694         * doc/posix-functions/snprintf.texi: Likewise.
41695         * doc/posix-functions/sprintf.texi: Likewise.
41696         * doc/posix-functions/vfprintf.texi: Likewise.
41697         * doc/posix-functions/vprintf.texi: Likewise.
41698         * doc/posix-functions/vsnprintf.texi: Likewise.
41699         * doc/posix-functions/vsprintf.texi: Likewise.
41700         * doc/glibc-functions/obstack_printf.texi: Likewise.
41701         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41702
41703 2009-02-28  Bruno Haible  <bruno@clisp.org>
41704
41705         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41706         Reported by Loïc Minier <lool@dooz.org>.
41707
41708 2009-02-27  Bruno Haible  <bruno@clisp.org>
41709
41710         * gnulib-tool (func_import): Make the sed expression used to create the
41711         sed script for updating the .gitignore file POSIX compliant.
41712         Reported by Eric Blake.
41713
41714 2009-02-27  Bruno Haible  <bruno@clisp.org>
41715
41716         * gnulib-tool (sed): Don't alias as "sed --posix".
41717         Reported by Eric Blake.
41718
41719 2009-02-27  Bruno Haible  <bruno@clisp.org>
41720
41721         Avoid test link errors.
41722         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41723         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41724         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41725         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41727
41728 2009-02-27  Bruno Haible  <bruno@clisp.org>
41729
41730         Avoid spurious "(cached)" in configure output.
41731         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41732         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41733         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41735         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41736         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41738         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41739         Reported by Eric Blake.
41740
41741 2009-02-27  Eric Blake  <ebb9@byu.net>
41742
41743         printf: fix regression in previous patch
41744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41745
41746 2009-02-27  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41749         value.
41750         * lib/stdint.in.h: Likewise.
41751         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41752
41753 2009-02-27  Eric Blake  <ebb9@byu.net>
41754
41755         doc: mention more functions added in cygwin 1.7.0
41756         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41757         addition.
41758         * doc/posix-functions/open_wmemstream.texi: Likewise.
41759         * doc/posix-functions/wcsnlen.texi: Likewise.
41760         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41761         * doc/posix-functions/wcstod.texi: Likewise.
41762         * doc/posix-functions/wcstof.texi: Likewise.
41763         * doc/posix-functions/wcstoimax.texi: Likewise.
41764         * doc/posix-functions/wcstok.texi: Likewise.
41765         * doc/posix-functions/wcstoumax.texi: Likewise.
41766
41767         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41768         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41769         * doc/posix-functions/fprintf.texi: Update.
41770         * doc/posix-functions/printf.texi: Update.
41771         * doc/posix-functions/snprintf.texi: Update.
41772         * doc/posix-functions/sprintf.texi: Update.
41773         * doc/posix-functions/vfprintf.texi: Update.
41774         * doc/posix-functions/vprintf.texi: Update.
41775         * doc/posix-functions/vsnprintf.texi: Update.
41776         * doc/posix-functions/vsprintf.texi: Update.
41777         * doc/glibc-functions/obstack_printf.texi: Update.
41778         * doc/glibc-functions/obstack_vprintf.texi: Update.
41779
41780 2009-02-26  Eric Blake  <ebb9@byu.net>
41781
41782         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41783         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41784         compilation bug by using runtime conversion.
41785         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41786         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41787         * modules/ceill-tests (Files): Use nan.h.
41788         * modules/floorl-tests (Files): Likewise.
41789         * modules/frexpl-tests (Files): Likewise.
41790         * modules/isnanl-tests (Files): Likewise.
41791         * modules/ldexpl-tests (Files): Likewise.
41792         * modules/roundl-tests (Files): Likewise.
41793         * modules/truncl-tests (Files): Likewise.
41794         * tests/test-ceill.c (main): Use a working NaN.
41795         * tests/test-floorl.c (main): Likewise.
41796         * tests/test-frexpl.c (main): Likewise.
41797         * tests/test-isnan.c (test_long_double): Likewise.
41798         * tests/test-isnanl.h (main): Likewise.
41799         * tests/test-ldexpl.h (main): Likewise.
41800         * tests/test-roundl.h (main): Likewise.
41801         * tests/test-truncl.h (main): Likewise.
41802         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41803
41804 2009-02-26  Eric Blake  <ebb9@byu.net>
41805             Bruno Haible  <bruno@clisp.org>
41806
41807         Work around a *printf bug with %ls on Solaris.
41808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41809         precision is specified, sprintf stops converting the wide string
41810         argument when the number of bytes that have been produced by this
41811         conversion equals or exceeds the precision.
41812         * doc/posix-functions/fprintf.texi: Update.
41813         * doc/posix-functions/printf.texi: Update.
41814         * doc/posix-functions/snprintf.texi: Update.
41815         * doc/posix-functions/sprintf.texi: Update.
41816         * doc/posix-functions/vfprintf.texi: Update.
41817         * doc/posix-functions/vprintf.texi: Update.
41818         * doc/posix-functions/vsnprintf.texi: Update.
41819         * doc/posix-functions/vsprintf.texi: Update.
41820         * doc/glibc-functions/obstack_printf.texi: Update.
41821         * doc/glibc-functions/obstack_vprintf.texi: Update.
41822
41823 2009-02-26  Eric Blake  <ebb9@byu.net>
41824
41825         stdlib: favor compiler check of random.h
41826         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41827         to avoid an ObjC random.h installed by Swarm.
41828
41829 2009-02-26  Bruno Haible  <bruno@clisp.org>
41830
41831         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41832         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41833         Reported by Gary V. Vaughan <gary@gnu.org>.
41834
41835 2009-02-26  Bruno Haible  <bruno@clisp.org>
41836
41837         Fix *printf behaviour regarding the %ls directive.
41838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41839         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41840         NEED_PRINTF_DIRECTIVE_LS.
41841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41842         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41844         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41845         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41846         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41847         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41852         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41856         * doc/posix-functions/fprintf.texi: Update.
41857         * doc/posix-functions/printf.texi: Update.
41858         * doc/posix-functions/snprintf.texi: Update.
41859         * doc/posix-functions/sprintf.texi: Update.
41860         * doc/posix-functions/vfprintf.texi: Update.
41861         * doc/posix-functions/vprintf.texi: Update.
41862         * doc/posix-functions/vsnprintf.texi: Update.
41863         * doc/posix-functions/vsprintf.texi: Update.
41864         * doc/glibc-functions/obstack_printf.texi: Update.
41865         * doc/glibc-functions/obstack_vprintf.texi: Update.
41866         Reported by Eric Blake.
41867
41868 2009-02-25  Bruno Haible  <bruno@clisp.org>
41869
41870         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41871         with known value.
41872         Reported by Gary V. Vaughan <gary@gnu.org>.
41873
41874 2009-02-25  Bruno Haible  <bruno@clisp.org>
41875
41876         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41877         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41878         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41879         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41880         Reported by Gary V. Vaughan <gary@gnu.org>.
41881
41882 2009-02-25  Bruno Haible  <bruno@clisp.org>
41883
41884         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41885         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41886         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41887         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41888         Reported by Gary V. Vaughan <gary@gnu.org>.
41889
41890 2009-02-25  Eric Blake  <ebb9@byu.net>
41891
41892         tests: skip fseek/ftell tests if ungetc is broken
41893         * m4/ungetc.m4: New file.
41894         * modules/fseek-tests: Split test, so ungetc dependency is
41895         separate from rest of test.
41896         * modules/fseeko-tests: Likewise.
41897         * modules/ftell-tests: Likewise.
41898         * modules/ftello-tests: Likewise.
41899         * tests/test-fseek.c (main): Isolate ungetc dependency.
41900         * tests/test-fseeko.c (main): Likewise.
41901         * tests/test-ftell.c (main): Likewise.
41902         * tests/test-ftello.c (main): Likewise.
41903         * tests/test-fseek2.sh: New file.
41904         * tests/test-fseeko2.sh: Likewise.
41905         * tests/test-ftell2.sh: Likewise.
41906         * tests/test-ftello2.sh: Likewise.
41907
41908 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41909
41910         test-getaddrinfo: fix usage of skip return code 77
41911         * tests/test-gettaddrinfo.c: Return skip code 77 only
41912         for first occurance of skip (4x77 is not 77)
41913
41914 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41915
41916         strtod: avoid C99 decl-after-statement
41917         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41918
41919 2009-02-24  Eric Blake  <ebb9@byu.net>
41920
41921         strtod: detect HP-UX 11.31 bug
41922         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41923         Reported by Gary V. Vaughan.
41924
41925 2009-02-23  Bruno Haible  <bruno@clisp.org>
41926
41927         Fix invalid read past end of memory block.
41928         * lib/vasnprintf.c (DCHAR_SET): Define.
41929         (local_wcslen): Define only when needed.
41930         (local_strnlen, local_wcsnlen): New functions.
41931         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41932         directives that involve a conversion ourselves.
41933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41934         wcsnlen, mbrtowc, wcrtomb.
41935         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41936         * tests/test-vasprintf-posix.c (test_function): Likewise.
41937         * tests/test-snprintf-posix.h (test_function): Likewise.
41938         * tests/test-sprintf-posix.h (test_function): Likewise.
41939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41940
41941 2009-02-22  Bruno Haible  <bruno@clisp.org>
41942
41943         Implement new clarified decomposition of Hangul syllables.
41944         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41945         of type LTV, return only a pairwise decomposition.
41946         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41947         Likewise.
41948         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41949         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41950         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41951
41952 2009-02-22  Bruno Haible  <bruno@clisp.org>
41953
41954         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41955         zero-length results and shrink excess allocated memory.
41956         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41957         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41958         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41959         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41960         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41961         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41962         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41963         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41964         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41965         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41966         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41967         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41968
41969 2009-02-21  Bruno Haible  <bruno@clisp.org>
41970
41971         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41972         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41973         spaces after a period. Put a space between a macro name and its
41974         argument list. Trivial rewordings.
41975         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41976         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41977         (main): Return 0 explicitly.
41978
41979 2009-02-21  Bruno Haible  <bruno@clisp.org>
41980
41981         Tests for module 'uninorm/filter'.
41982         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41983         * modules/uninorm/filter-tests: New file.
41984
41985         New module 'uninorm/filter'.
41986         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41987         uninorm_filter_flush, uninorm_filter_free): New declarations.
41988         * lib/uninorm/uninorm-filter.c: New file.
41989         * modules/uninorm/filter: New file.
41990
41991 2009-02-21  Bruno Haible  <bruno@clisp.org>
41992
41993         Tests for module 'uninorm/nfkc'.
41994         * tests/uninorm/test-nfkc.c: New file.
41995         * tests/uninorm/test-u8-nfkc.c: New file.
41996         * tests/uninorm/test-u16-nfkc.c: New file.
41997         * tests/uninorm/test-u32-nfkc.c: New file.
41998         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41999         * tests/uninorm/test-u32-nfkc-big.c: New file.
42000         * modules/uninorm/nfkc-tests: New file.
42001
42002         New module 'uninorm/nfkc'.
42003         * lib/uninorm/nfkc.c: New file.
42004         * modules/uninorm/nfkc: New file.
42005
42006         Tests for module 'uninorm/nfkd'.
42007         * tests/uninorm/test-nfkd.c: New file.
42008         * tests/uninorm/test-u8-nfkd.c: New file.
42009         * tests/uninorm/test-u16-nfkd.c: New file.
42010         * tests/uninorm/test-u32-nfkd.c: New file.
42011         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42012         * tests/uninorm/test-u32-nfkd-big.c: New file.
42013         * modules/uninorm/nfkd-tests: New file.
42014
42015         New module 'uninorm/nfkd'.
42016         * lib/uninorm/nfkd.c: New file.
42017         * modules/uninorm/nfkd: New file.
42018
42019         Tests for module 'uninorm/nfc'.
42020         * tests/uninorm/test-nfc.c: New file.
42021         * tests/uninorm/test-u8-nfc.c: New file.
42022         * tests/uninorm/test-u16-nfc.c: New file.
42023         * tests/uninorm/test-u32-nfc.c: New file.
42024         * tests/uninorm/test-u32-nfc-big.sh: New file.
42025         * tests/uninorm/test-u32-nfc-big.c: New file.
42026         * modules/uninorm/nfc-tests: New file.
42027
42028         New module 'uninorm/nfc'.
42029         * lib/uninorm/nfc.c: New file.
42030         * modules/uninorm/nfc: New file.
42031
42032         Tests for module 'uninorm/nfd'.
42033         * tests/uninorm/test-nfd.c: New file.
42034         * tests/uninorm/test-u8-nfd.c: New file.
42035         * tests/uninorm/test-u16-nfd.c: New file.
42036         * tests/uninorm/test-u32-nfd.c: New file.
42037         * tests/uninorm/test-u32-nfd-big.sh: New file.
42038         * tests/uninorm/test-u32-nfd-big.c: New file.
42039         * tests/uninorm/test-u32-normalize-big.h: New file.
42040         * tests/uninorm/test-u32-normalize-big.c: New file.
42041         * tests/uninorm/NormalizationTest.txt: New file, created from
42042         Unicode 5.1.0 NormalizationTest.txt.
42043         * modules/uninorm/nfd-tests: New file.
42044
42045         New module 'uninorm/nfd'.
42046         * lib/uninorm/nfd.c: New file.
42047         * modules/uninorm/nfd: New file.
42048
42049         New module 'uninorm/u32-normalize'.
42050         * lib/uninorm/u32-normalize.c: New file.
42051         * modules/uninorm/u32-normalize: New file.
42052
42053         New module 'uninorm/u16-normalize'.
42054         * lib/uninorm/u16-normalize.c: New file.
42055         * modules/uninorm/u16-normalize: New file.
42056
42057         New module 'uninorm/u8-normalize'.
42058         * lib/uninorm/u8-normalize.c: New file.
42059         * lib/uninorm/normalize-internal.h: New file.
42060         * lib/uninorm/u-normalize-internal.h: New file.
42061         * modules/uninorm/u8-normalize: New file.
42062
42063         New module 'uninorm/decompose-internal'.
42064         * lib/uninorm/decompose-internal.c: New file.
42065         * modules/uninorm/decompose-internal: New file.
42066
42067         Tests for module 'uninorm/composition'.
42068         * tests/uninorm/test-composition.c: New file.
42069         * modules/uninorm/composition-tests: New file.
42070
42071         New module 'uninorm/composition'.
42072         * lib/uninorm/composition.c: New file.
42073         * lib/uninorm/composition-table.gperf: New file, generated by
42074         gen-uni-tables.
42075         * modules/uninorm/composition: New file.
42076
42077         Tests for module 'uninorm/compat-decomposition'.
42078         * tests/uninorm/test-compat-decomposition.c: New file.
42079         * modules/uninorm/compat-decomposition-tests: New file.
42080
42081         New module 'uninorm/compat-decomposition'.
42082         * lib/uninorm/decompose-internal.h: New file.
42083         * lib/uninorm/compat-decomposition.c: New file.
42084         * modules/uninorm/compat-decomposition: New file.
42085
42086         Tests for module 'uninorm/canonical-decomposition'.
42087         * tests/uninorm/test-canonical-decomposition.c: New file.
42088         * modules/uninorm/canonical-decomposition-tests: New file.
42089
42090         New module 'uninorm/canonical-decomposition'.
42091         * lib/uninorm/canonical-decomposition.c: New file.
42092         * modules/uninorm/canonical-decomposition: New file.
42093
42094         Tests for module 'uninorm/decomposition'.
42095         * tests/uninorm/test-decomposition.c: New file.
42096         * modules/uninorm/decomposition-tests: New file.
42097
42098         New module 'uninorm/decomposition'.
42099         * lib/uninorm/decomposition.c: New file.
42100         * modules/uninorm/decomposition: New file.
42101
42102         New module 'uninorm/decomposition-table'.
42103         * lib/uninorm/decomposition-table.h: New file.
42104         * lib/uninorm/decomposition-table.c: New file.
42105         * lib/uninorm/decomposition-table1.h: New file, generated by
42106         gen-uni-tables.
42107         * lib/uninorm/decomposition-table2.h: New file, generated by
42108         gen-uni-tables.
42109         * modules/uninorm/decomposition-table: New file.
42110
42111         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42112         (UC_DECOMP_*): New enumeration items.
42113         (get_decomposition): New function.
42114         (struct decomp_table): New type.
42115         (output_decomposition, output_decomposition_tables): New functions.
42116         (unicode_composition_exclusions): New variable.
42117         (fill_composition_exclusions, debug_output_composition_tables): New
42118         functions.
42119         (main): Accept one more argument. Invoke fill_composition_exclusions.
42120         Output decomposition and composition tables.
42121
42122         New module 'uninorm/base'.
42123         * lib/uninorm.h: New file.
42124         * lib/unictype.h: Update comment.
42125         * modules/uninorm/base: New file.
42126
42127 2009-02-21  David Lutterkort  <lutter@redhat.com>
42128
42129         Tests for module 'safe-alloc'.
42130         * tests/test-safe-alloc.c: New file.
42131         * modules/safe-alloc-tests: New file.
42132
42133         New module 'safe-alloc'.
42134         * lib/safe-alloc.h: New file.
42135         * lib/safe-alloc.c: New file.
42136         * m4/safe-alloc.m4: New file.
42137         * modules/safe-alloc: New file.
42138         * doc/safe-alloc.texi: New file.
42139         * doc/gnulib.texi: Include it.
42140         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42141         safe-alloc.
42142
42143 2009-02-18  Bruno Haible  <bruno@clisp.org>
42144
42145         Fix link error on non-glibc systems.
42146         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42147         variable.
42148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42149
42150 2009-02-18  Jim Meyering  <meyering@redhat.com>
42151
42152         fts: avoid used-uninitialized error due to recent change
42153         * lib/fts.c (fts_read): Guard uses of the new member,
42154         parent->fts_n_dirs_remaining, since it's not relevant for
42155         the parent of a directory specified on the command-line.
42156
42157 2009-02-17  James Youngman  <jay@gnu.org>
42158             Bruno Haible  <bruno@clisp.org>
42159
42160         * m4/include_next.m4: Reformulate comment.
42161
42162 2009-02-16  Jim Meyering  <meyering@redhat.com>
42163
42164         fts: add #if guards so that the fts_lgpl module still builds
42165         * lib/fts.c: Guard just-added hash-table-using parts with
42166         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42167         Reported by Simon Josefsson.
42168
42169 2009-02-15  Bruno Haible  <bruno@clisp.org>
42170
42171         * modules/array-mergesort-tests: New file.
42172         * tests/test-array-mergesort.c: New file.
42173
42174         New module 'array-mergesort'.
42175         * modules/array-mergesort: New file.
42176         * lib/array-mergesort.h: New file.
42177
42178 2009-02-15  Bruno Haible  <bruno@clisp.org>
42179
42180         Fix 2009-02-07 commit.
42181         * lib/gen-uni-tables.c (output_predicate, output_category,
42182         output_combclass, output_bidi_category, output_decimal_digit,
42183         output_digit, output_numeric, output_mirror, output_scripts,
42184         output_ident_category, output_simple_mapping): Fix format directives.
42185         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42186
42187 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42188
42189         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42190         fixes are available from IBM.
42191
42192 2009-02-13  Jim Meyering  <meyering@redhat.com>
42193
42194         fts: arrange not to stat non-directories in more cases
42195         This makes GNU find (when it doesn't need to stat each file)
42196         *much* more efficient at traversing reiserfs file systems.
42197         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42198         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42199         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42200         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42201         (leaf_optimization_applies): New function.
42202         (LCO_hash, LCO_compare): New helper functions.
42203         (link_count_optimize_ok): New function.
42204         (fts_stat): Initialize new member (if dir).
42205         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42206         we've just stat'ed a directory.  Skip the stat call when possible.
42207         ---
42208         Note this AFS-related exchange:
42209         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42210         and note find's pioctl call in find/fstype.c.
42211         But that is necessary only if you want to enable the
42212         optimization for AFS, and for now, I don't.
42213
42214         fts: move a function definition "up" (no semantic change)
42215         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42216         "up" to precede upcoming use of a related function.
42217
42218 2009-02-11  Jim Meyering  <meyering@redhat.com>
42219
42220         fts: correct internal computation of nlinks (optimization-related)
42221         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42222         whether the current entry is a directory, so don't test it.
42223
42224 2009-02-10  Bruno Haible  <bruno@clisp.org>
42225
42226         Tests for module 'uniwbrk/ulc-wordbreaks'.
42227         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42228         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42229         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42230
42231         Tests for module 'uniwbrk/u32-wordbreaks'.
42232         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42233         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42234
42235         Tests for module 'uniwbrk/u16-wordbreaks'.
42236         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42237         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42238
42239         Tests for module 'uniwbrk/u8-wordbreaks'.
42240         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42241         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42242
42243 2009-02-10  Bruno Haible  <bruno@clisp.org>
42244
42245         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42246         property.
42247         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42248         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42249         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42250
42251 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42252
42253         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42254         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42255
42256 2009-02-10  Bruno Haible  <bruno@clisp.org>
42257
42258         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42259         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42260         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42261         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42262         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42263         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42264
42265 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42266
42267         * lib/sockets.h (gl_fd_to_handle): New function.
42268
42269         * tests/test-sockets.c: Call gl_fd_to_handle.
42270
42271 2009-02-09  Bruno Haible  <bruno@clisp.org>
42272
42273         * doc/havelib.texi: Document the conventions on bi-arch systems.
42274
42275 2009-02-08  Bruno Haible  <bruno@clisp.org>
42276
42277         Document the AC_LIB_LINKFLAGS macro.
42278         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42279         * doc/gnulib.texi: Include it.
42280
42281 2009-02-08  Bruno Haible  <bruno@clisp.org>
42282
42283         Fix wrong order of sections, compared to TOC.
42284         * doc/gnulib.texi: Include relocatable-maint.texi after the
42285         "Regular expressions" node, not before.
42286
42287 2009-02-08  Bruno Haible  <bruno@clisp.org>
42288
42289         Tests for module 'unicase/totitle'.
42290         * modules/unicase/totitle-tests: New file.
42291
42292         Tests for module 'unicase/tolower'.
42293         * modules/unicase/tolower-tests: New file.
42294
42295         Tests for module 'unicase/toupper'.
42296         * modules/unicase/toupper-tests: New file.
42297         * tests/unicase/test-mapping-part1.h: New file.
42298         * tests/unicase/test-mapping-part2.h: New file.
42299
42300         New module 'unicase/totitle'.
42301         * modules/unicase/totitle: New file.
42302         * lib/unicase/totitle.c: New file.
42303
42304         New module 'unicase/tolower'.
42305         * modules/unicase/tolower: New file.
42306         * lib/unicase/tolower.c: New file.
42307
42308         New module 'unicase/toupper'.
42309         * modules/unicase/toupper: New file.
42310         * lib/unicase/toupper.c: New file.
42311         * lib/unicase/simple-mapping.h: New file.
42312
42313         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42314         (mapping_table): New structure.
42315         (output_simple_mapping): New function.
42316         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42317         * modules/gen-uni-tables (Description): Update.
42318         * lib/unicase/toupper.h: New file, automatically generated by
42319         gen-uni-tables.
42320         * lib/unicase/tolower.h: New file, automatically generated by
42321         gen-uni-tables.
42322         * lib/unicase/totitle.h: New file, automatically generated by
42323         gen-uni-tables.
42324         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42325         gen-uni-tables.
42326         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42327         gen-uni-tables.
42328         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42329         gen-uni-tables.
42330
42331         New module 'unicase/base'.
42332         * modules/unicase/base: New file.
42333         * lib/unicase.h: New file.
42334
42335 2009-02-08  Bruno Haible  <bruno@clisp.org>
42336
42337         New module 'uniwbrk/ulc-wordbreaks'.
42338         * modules/uniwbrk/ulc-wordbreaks: New file.
42339         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42340
42341         New module 'uniwbrk/u32-wordbreaks'.
42342         * modules/uniwbrk/u32-wordbreaks: New file.
42343         * lib/uniwbrk/u32-wordbreaks.c: New file.
42344
42345         New module 'uniwbrk/u16-wordbreaks'.
42346         * modules/uniwbrk/u16-wordbreaks: New file.
42347         * lib/uniwbrk/u16-wordbreaks.c: New file.
42348
42349         New module 'uniwbrk/u8-wordbreaks'.
42350         * modules/uniwbrk/u8-wordbreaks: New file.
42351         * lib/uniwbrk/u8-wordbreaks.c: New file.
42352         * lib/uniwbrk/u-wordbreaks.h: New file.
42353
42354         New module 'uniwbrk/table'.
42355         * modules/uniwbrk/table: New file.
42356         * lib/uniwbrk/wbrktable.h: New file.
42357         * lib/uniwbrk/wbrktable.c: New file.
42358
42359         New module 'uniwbrk/wordbreak-property'.
42360         * modules/uniwbrk/wordbreak-property: New file.
42361         * lib/uniwbrk/wordbreak-property.c: New file.
42362
42363         * lib/gen-uni-tables.c (WBP_*): New enum items.
42364         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42365         (unicode_org_wbp): New variable.
42366         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42367         New functions.
42368         (wbp_table): New structure.
42369         (output_wbp, output_wbrk_tables): New functions.
42370         (main): Accept additional argument. Invoke fill_org_wbp,
42371         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42372         output_wbrk_tables.
42373         * modules/gen-uni-tables (Description): Update.
42374         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42375         gen-uni-tables.
42376
42377         New module 'uniwbrk/base'.
42378         * modules/uniwbrk/base: New file.
42379         * lib/uniwbrk.h: New file.
42380
42381 2009-02-08  Bruno Haible  <bruno@clisp.org>
42382
42383         Update to Unicode 5.1.0.
42384         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42385         U+2185..U+2188.
42386         (is_property_default_ignorable_code_point): Don't include characters
42387         of category Cc or Cs and not-a-characters.
42388         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42389         U+0D79, U+109E, U+109F, U+A60C.
42390         * lib/unictype/bidi_of.h: Regenerated.
42391         * lib/unictype/blocks.h: Regenerated.
42392         * lib/unictype/categ_C.h: Regenerated.
42393         * lib/unictype/categ_Cf.h: Regenerated.
42394         * lib/unictype/categ_Cn.h: Regenerated.
42395         * lib/unictype/categ_L.h: Regenerated.
42396         * lib/unictype/categ_Ll.h: Regenerated.
42397         * lib/unictype/categ_Lm.h: Regenerated.
42398         * lib/unictype/categ_Lo.h: Regenerated.
42399         * lib/unictype/categ_Lu.h: Regenerated.
42400         * lib/unictype/categ_M.h: Regenerated.
42401         * lib/unictype/categ_Mc.h: Regenerated.
42402         * lib/unictype/categ_Me.h: Regenerated.
42403         * lib/unictype/categ_Mn.h: Regenerated.
42404         * lib/unictype/categ_N.h: Regenerated.
42405         * lib/unictype/categ_Nd.h: Regenerated.
42406         * lib/unictype/categ_Nl.h: Regenerated.
42407         * lib/unictype/categ_No.h: Regenerated.
42408         * lib/unictype/categ_P.h: Regenerated.
42409         * lib/unictype/categ_Pd.h: Regenerated.
42410         * lib/unictype/categ_Pe.h: Regenerated.
42411         * lib/unictype/categ_Pf.h: Regenerated.
42412         * lib/unictype/categ_Pi.h: Regenerated.
42413         * lib/unictype/categ_Po.h: Regenerated.
42414         * lib/unictype/categ_Ps.h: Regenerated.
42415         * lib/unictype/categ_S.h: Regenerated.
42416         * lib/unictype/categ_Sk.h: Regenerated.
42417         * lib/unictype/categ_Sm.h: Regenerated.
42418         * lib/unictype/categ_So.h: Regenerated.
42419         * lib/unictype/categ_of.h: Regenerated.
42420         * lib/unictype/combining.h: Regenerated.
42421         * lib/unictype/ctype_alnum.h: Regenerated.
42422         * lib/unictype/ctype_alpha.h: Regenerated.
42423         * lib/unictype/ctype_graph.h: Regenerated.
42424         * lib/unictype/ctype_lower.h: Regenerated.
42425         * lib/unictype/ctype_print.h: Regenerated.
42426         * lib/unictype/ctype_punct.h: Regenerated.
42427         * lib/unictype/ctype_upper.h: Regenerated.
42428         * lib/unictype/decdigit.h: Regenerated.
42429         * lib/unictype/digit.h: Regenerated.
42430         * lib/unictype/mirror.h: Regenerated.
42431         * lib/unictype/numeric.h: Regenerated.
42432         * lib/unictype/pr_alphabetic.h: Regenerated.
42433         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42434         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42435         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42436         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42437         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42438         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42439         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42440         * lib/unictype/pr_combining.h: Regenerated.
42441         * lib/unictype/pr_dash.h: Regenerated.
42442         * lib/unictype/pr_decimal_digit.h: Regenerated.
42443         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42444         * lib/unictype/pr_deprecated.h: Regenerated.
42445         * lib/unictype/pr_diacritic.h: Regenerated.
42446         * lib/unictype/pr_extender.h: Regenerated.
42447         * lib/unictype/pr_format_control.h: Regenerated.
42448         * lib/unictype/pr_grapheme_base.h: Regenerated.
42449         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42450         * lib/unictype/pr_grapheme_link.h: Regenerated.
42451         * lib/unictype/pr_id_continue.h: Regenerated.
42452         * lib/unictype/pr_id_start.h: Regenerated.
42453         * lib/unictype/pr_ideographic.h: Regenerated.
42454         * lib/unictype/pr_ignorable_control.h: Regenerated.
42455         * lib/unictype/pr_lowercase.h: Regenerated.
42456         * lib/unictype/pr_math.h: Regenerated.
42457         * lib/unictype/pr_numeric.h: Regenerated.
42458         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42459         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42460         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42461         * lib/unictype/pr_other_id_continue.h: Regenerated.
42462         * lib/unictype/pr_other_lowercase.h: Regenerated.
42463         * lib/unictype/pr_other_math.h: Regenerated.
42464         * lib/unictype/pr_punctuation.h: Regenerated.
42465         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42466         * lib/unictype/pr_soft_dotted.h: Regenerated.
42467         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42468         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42469         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42470         * lib/unictype/pr_uppercase.h: Regenerated.
42471         * lib/unictype/pr_xid_continue.h: Regenerated.
42472         * lib/unictype/pr_xid_start.h: Regenerated.
42473         * lib/unictype/pr_zero_width.h: Regenerated.
42474         * lib/unictype/scripts.h: Regenerated.
42475         * lib/unictype/scripts_byname.gperf: Regenerated.
42476         * lib/unictype/sy_java_ident.h: Regenerated.
42477         * lib/unilbrk/lbrkprop1.h: Regenerated.
42478         * lib/unilbrk/lbrkprop2.h: Regenerated.
42479         * tests/unictype/test-categ_C.c: Regenerated.
42480         * tests/unictype/test-categ_Cf.c: Regenerated.
42481         * tests/unictype/test-categ_Cn.c: Regenerated.
42482         * tests/unictype/test-categ_L.c: Regenerated.
42483         * tests/unictype/test-categ_Ll.c: Regenerated.
42484         * tests/unictype/test-categ_Lm.c: Regenerated.
42485         * tests/unictype/test-categ_Lo.c: Regenerated.
42486         * tests/unictype/test-categ_Lu.c: Regenerated.
42487         * tests/unictype/test-categ_M.c: Regenerated.
42488         * tests/unictype/test-categ_Mc.c: Regenerated.
42489         * tests/unictype/test-categ_Me.c: Regenerated.
42490         * tests/unictype/test-categ_Mn.c: Regenerated.
42491         * tests/unictype/test-categ_N.c: Regenerated.
42492         * tests/unictype/test-categ_Nd.c: Regenerated.
42493         * tests/unictype/test-categ_Nl.c: Regenerated.
42494         * tests/unictype/test-categ_No.c: Regenerated.
42495         * tests/unictype/test-categ_P.c: Regenerated.
42496         * tests/unictype/test-categ_Pd.c: Regenerated.
42497         * tests/unictype/test-categ_Pe.c: Regenerated.
42498         * tests/unictype/test-categ_Pf.c: Regenerated.
42499         * tests/unictype/test-categ_Pi.c: Regenerated.
42500         * tests/unictype/test-categ_Po.c: Regenerated.
42501         * tests/unictype/test-categ_Ps.c: Regenerated.
42502         * tests/unictype/test-categ_S.c: Regenerated.
42503         * tests/unictype/test-categ_Sk.c: Regenerated.
42504         * tests/unictype/test-categ_Sm.c: Regenerated.
42505         * tests/unictype/test-categ_So.c: Regenerated.
42506         * tests/unictype/test-ctype_alnum.c: Regenerated.
42507         * tests/unictype/test-ctype_alpha.c: Regenerated.
42508         * tests/unictype/test-ctype_graph.c: Regenerated.
42509         * tests/unictype/test-ctype_lower.c: Regenerated.
42510         * tests/unictype/test-ctype_print.c: Regenerated.
42511         * tests/unictype/test-ctype_punct.c: Regenerated.
42512         * tests/unictype/test-ctype_upper.c: Regenerated.
42513         * tests/unictype/test-decdigit.h: Regenerated.
42514         * tests/unictype/test-digit.h: Regenerated.
42515         * tests/unictype/test-numeric.h: Regenerated.
42516         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42517         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42518         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42519         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42520         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42521         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42522         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42523         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42524         * tests/unictype/test-pr_combining.c: Regenerated.
42525         * tests/unictype/test-pr_dash.c: Regenerated.
42526         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42527         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42528         * tests/unictype/test-pr_deprecated.c: Regenerated.
42529         * tests/unictype/test-pr_diacritic.c: Regenerated.
42530         * tests/unictype/test-pr_extender.c: Regenerated.
42531         * tests/unictype/test-pr_format_control.c: Regenerated.
42532         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42533         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42534         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42535         * tests/unictype/test-pr_id_continue.c: Regenerated.
42536         * tests/unictype/test-pr_id_start.c: Regenerated.
42537         * tests/unictype/test-pr_ideographic.c: Regenerated.
42538         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42539         * tests/unictype/test-pr_lowercase.c: Regenerated.
42540         * tests/unictype/test-pr_math.c: Regenerated.
42541         * tests/unictype/test-pr_numeric.c: Regenerated.
42542         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42543         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42544         Regenerated.
42545         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42546         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42547         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42548         * tests/unictype/test-pr_other_math.c: Regenerated.
42549         * tests/unictype/test-pr_punctuation.c: Regenerated.
42550         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42551         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42552         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42553         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42554         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42555         * tests/unictype/test-pr_uppercase.c: Regenerated.
42556         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42557         * tests/unictype/test-pr_xid_start.c: Regenerated.
42558         * tests/unictype/test-pr_zero_width.c: Regenerated.
42559
42560         Update to Unicode 5.1.0.
42561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42562         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42563         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42564         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42565         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42566         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42567         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42568         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42569         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42570         (nonspacing_table_ind): Update.
42571         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42572
42573         Update to Unicode 5.1.0.
42574         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42575         code transform.
42576         * lib/uniname/uniname.c (unicode_character_name,
42577         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42578         * lib/uniname/uninames.h: Regenerated.
42579         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42580
42581 2009-02-07  Bruno Haible  <bruno@clisp.org>
42582
42583         Merge gen-ctype and gen-lbrk into a single program.
42584         * lib/gen-uni-tables.c: New file, incorporating
42585         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42586         Add directory prefixes to the names of the generated files.
42587         * lib/unictype/gen-ctype.c: Remove file.
42588         * lib/unilbrk/gen-lbrk.c: Remove file.
42589         * modules/gen-uni-tables: New file.
42590         * modules/unictype/gen-ctype: Remove file.
42591         * modules/unilbrk/gen-lbrk: Remove file.
42592
42593 2009-02-07  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42596
42597         New module 'unistr/u32-strcoll'.
42598         * modules/unistr/u32-strcoll: New file.
42599         * lib/unistr/u32-strcoll.c: New file.
42600
42601         New module 'unistr/u16-strcoll'.
42602         * modules/unistr/u16-strcoll: New file.
42603         * lib/unistr/u16-strcoll.c: New file.
42604
42605         New module 'unistr/u8-strcoll'.
42606         * modules/unistr/u8-strcoll: New file.
42607         * lib/unistr/u8-strcoll.c: New file.
42608         * lib/unistr/u-strcoll.h: New file.
42609
42610 2009-02-07  Bruno Haible  <bruno@clisp.org>
42611
42612         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42613         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42614         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42615         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42616         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42617         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42618
42619 2009-02-07  Bruno Haible  <bruno@clisp.org>
42620
42621         Make 64-bit clean.
42622         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42623         output_combclass, output_bidi_category, output_decimal_digit,
42624         output_digit, output_numeric, output_mirror, output_scripts,
42625         output_ident_category): Use proper width specifier in format strings.
42626
42627 2009-02-07  Bruno Haible  <bruno@clisp.org>
42628
42629         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42630         failure behaviour.
42631
42632 2009-02-07  Jim Meyering  <meyering@redhat.com>
42633
42634         regex: avoid compilation failure with upcoming gcc-4.4
42635         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42636         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42637         "... error: integer overflow in preprocessor expression".
42638
42639 2009-02-05  Ben Pfaff  <blp@gnu.org>
42640
42641         Fix link errors on Windows when close module is used.
42642         * modules/close: Add $(LIB_CLOSE) to Link section.
42643         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42644         $(LIB_CLOSE) on Windows.
42645
42646 2009-02-05  Jim Meyering  <meyering@redhat.com>
42647
42648         still avoid unused-parameter warnings, but do it cleanly
42649         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42650         (get_fs_usage): Cast to void instead.
42651         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42652         (dev_from_mount_options, read_file_system_list): Cast to void.
42653         Prompted by Bruno Haible.
42654
42655 2009-02-04  Jim Meyering  <meyering@redhat.com>
42656
42657         fsusage.c: correct copyright year
42658         * lib/fsusage.c: Reflect year in which the change is pushed into
42659
42660         avoid misc. warnings
42661         * lib/fsusage.c (UNUSED_PARAM): Define.
42662         (get_fs_usage): Mark parameter "disk" as unused.
42663         * lib/getugroups.c (getgrent): Use "void" in prototype.
42664         * lib/mountlist.c: Mark unused parameters.
42665         (read_file_system_list): Declare a local with "const".
42666         * lib/nanosleep.c (getnow): Declare static.
42667         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42668
42669         dirfd: set errno upon failure
42670         * lib/dirfd.c: Include <errno.h>.
42671         Set errno to ENOTSUP when returning -1.
42672         * modules/dirfd (Depends-on): Add errno.
42673         Suggested by John Kodis <kodis@comcast.net>.
42674
42675 2009-02-01  Bruno Haible  <bruno@clisp.org>
42676
42677         Don't assume sizeof (long) >= sizeof (void *).
42678         * lib/memcmp.c: Include stdint.h.
42679         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42680         srcp2 to 'const byte *'.
42681         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42682         types to uintptr_t.
42683         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42684         * modules/memcmp (Depends-on): Add stdint.
42685         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42686
42687 2009-01-30  Eric Blake  <ebb9@byu.net>
42688
42689         fix more require-before-expand issues
42690         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42691         expand, AC_PROG_AWK.
42692         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42693
42694 2009-01-28  Eric Blake  <ebb9@byu.net>
42695
42696         version-etc: use consistent URL formatting
42697         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42698         Improve formatting.  Use fputs for string without %.
42699
42700 2009-01-28  Jim Meyering  <meyering@redhat.com>
42701
42702         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42703         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42704         "underquoted definition of NAME" from autoconf-2.59.
42705
42706 2009-01-28  Bruno Haible  <bruno@clisp.org>
42707
42708         * doc/gnulib.texi: Add "Obsolete modules" to index.
42709
42710 2009-01-28  Jim Meyering  <meyering@redhat.com>
42711
42712         useless-if-before-free: recognize more variants
42713         * build-aux/useless-if-before-free: Also recognize e.g.,
42714         if (NULL != p) free (p);
42715
42716 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42717
42718         test-getaddrinfo: skip (don't fail) this test when there's no network
42719         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42720         on the presumption that it means you lack network access.
42721
42722 2009-01-26  Jim Meyering  <meyering@redhat.com>
42723
42724         fflush: avoid warnings on modern systems
42725         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42726         pos and result, into scopes where they're used.
42727
42728 2009-01-26  Eric Blake  <ebb9@byu.net>
42729
42730         Silence warning reintroduced by recent extensions patch.
42731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42732         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42733         autoconf.
42734
42735         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42736         * m4/00gnulib.m4: New file.
42737         * gnulib-tool (func_get_filelist): Always use it.
42738         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42739         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42740
42741 2009-01-25  Bruno Haible  <bruno@clisp.org>
42742
42743         Make test-quotearg work on MacOS X and AIX.
42744         * tests/test-quotearg.sh: New file.
42745         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42746         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42747         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42748         include <libintl.h>.
42749         (fake_locale): Remove variable.
42750         (gettext, dgettext, dcgettext): Remove functions.
42751         (main): Instead of setting a fake locale, set a real locale. Call
42752         textdomain and bindtextdomain.
42753         * modules/quotearg-tests (Files): Add the new files.
42754         (Depends-on): Add gettext, setenv, unsetenv.
42755         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42756         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42757         Augment TESTS_ENVIRONMENT.
42758
42759 2009-01-25  Bruno Haible  <bruno@clisp.org>
42760
42761         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42762         fr_FR.ISO8859-1 locale on MacOS X.
42763         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42764         ja_JP.eucJP locale on MacOS X.
42765         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42766         zh_CN.GB18030 locale on MacOS X.
42767
42768 2009-01-25  Bruno Haible  <bruno@clisp.org>
42769
42770         Avoid link errors on MacOS X 10.3.
42771         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42772         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42773
42774 2009-01-25  Bruno Haible  <bruno@clisp.org>
42775
42776         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42777         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42778         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42779         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42780         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42781         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42782         posix_spawnattr_init, posix_spawnattr_setsigmask,
42783         posix_spawnattr_setflags, posix_spawnattr_destroy.
42784
42785         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42786         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42787         * modules/execute (Files): Remove m4/posix_spawn.m4.
42788         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42789         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42790         posix_spawnattr_init, posix_spawnattr_setsigmask,
42791         posix_spawnattr_setflags, posix_spawnattr_destroy.
42792
42793 2009-01-25  Bruno Haible  <bruno@clisp.org>
42794
42795         * lib/glthread/threadlib.c: Include <stdlib.h>.
42796
42797 2009-01-25  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/glthread/threadlib.c (dummy): New declaration.
42800
42801 2009-01-25  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42804         multibyte characters also for the GB18030 encoding. Don't crash when
42805         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42806
42807 2009-01-25  Bruno Haible  <bruno@clisp.org>
42808
42809         Avoid redefining 'struct random_data' on OSF/1 5.1.
42810         * lib/stdlib.in.h: Include <random.h> if it exists.
42811         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42812         HAVE_RANDOM_H. Include <random.h> when testing whether
42813         'struct random_data' exists.
42814         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42815
42816 2009-01-25  Bruno Haible  <bruno@clisp.org>
42817
42818         Don't install charset.alias on MacOS X >= 10.3.
42819         * lib/localcharset.c (DARWIN7): New macro.
42820         (get_charset_aliases): Hardcode the result for Darwin7.
42821         * modules/localcharset (install-exec-local): Don't install
42822         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42823
42824 2009-01-25  Bruno Haible  <bruno@clisp.org>
42825
42826         Don't install charset.alias on mingw and Cygwin.
42827         * modules/localcharset (install-exec-local): Don't install
42828         charset.alias on mingw and Cygwin, if the file does not yet exist.
42829         The result for these platforms is hardcoded in localcharset.c.
42830
42831 2009-01-25  Bruno Haible  <bruno@clisp.org>
42832
42833         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42835         before requiring AC_USE_SYSTEM_EXTENSIONS.
42836
42837 2009-01-25  Jim Meyering  <meyering@redhat.com>
42838
42839         c-strtod: avoid warnings
42840         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42841         "assignment discards qualifiers from pointer target type" warnings.
42842
42843 2009-01-24  Bruno Haible  <bruno@clisp.org>
42844
42845         Add support for non-UTF-8 locales on MacOS X.
42846         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42847         canonical encodings. For Darwin 7 and newer, don't map traditional
42848         encodings to UTF-8.
42849         Reported by Vincent Lefevre <vincent@vinc17.org>
42850         at <http://savannah.gnu.org/bugs/?25235>.
42851
42852 2009-01-24  Bruno Haible  <bruno@clisp.org>
42853
42854         * doc/gnulib.texi (Obsolete modules): New section.
42855         Reported by Mike Frysinger <vapier@gentoo.org>.
42856
42857 2009-01-24  Bruno Haible  <bruno@clisp.org>
42858
42859         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42860         (%.dvi): New rule.
42861
42862 2009-01-24  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42865         Reported by Eric Blake.
42866
42867 2009-01-24  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42870         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42871         Reported by Gary V. Vaughan <gary@gnu.org>.
42872
42873 2009-01-24  Bruno Haible  <bruno@clisp.org>
42874
42875         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42876
42877 2009-01-23  Bruno Haible  <bruno@clisp.org>
42878
42879         Make c-strtod, c-strtold usable in libraries.
42880         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42881         (C_STRTOD): Call strdup instead of xstrdup.
42882         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42883         * modules/c-strtold (Depends-on): Likewise.
42884         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42885         * NEWS: Mention the change.
42886         Reported by Michael Gold <mgold@ncf.ca>.
42887
42888 2009-01-23  Jim Meyering  <meyering@redhat.com>
42889
42890         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42891         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42892         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42893
42894 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42895
42896         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42897         GNU CoreUtils.
42898         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42899         * modules/version-etc (Description): Update.
42900
42901 2009-01-22  Bruno Haible  <bruno@clisp.org>
42902
42903         Cache the C locale object.
42904         * lib/c-strtod.c (c_locale_cache): New variable.
42905         (c_locale): New function.
42906         (C_STRTOD): Use it, and don't call freelocale.
42907         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42908         Suggested by Paolo Bonzini.
42909
42910 2009-01-21  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42913         conditions other than overflow.
42914
42915 2009-01-21  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/c-strtod.c: Include errno.h.
42918         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42919         value from STRTOD_L and STRTOD.
42920
42921 2009-01-21  Bruno Haible  <bruno@clisp.org>
42922         and Jim Meyering  <meyering@redhat.com>
42923
42924         nanosleep: skip configure test (fail it) for apple universal builds
42925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42926         universal builds, assume that nanosleep does not work.
42927         * modules/nanosleep (Depends-on): Add multiarch.
42928
42929         mktime: skip configure test (fail it) for apple universal builds
42930         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42931         universal builds, assume that mktime does not work.
42932         * modules/mktime (Depends-on): Add multiarch.
42933
42934 2009-01-21  Eric Blake  <ebb9@byu.net>
42935
42936         multiarch: avoid expand-before-require warning
42937         * modules/multiarch (configure.ac): Require, rather than expand,
42938         gl_MULTIARCH.
42939         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42940         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42941         enforce that all clients require it.  Partial reversion of
42942         2008-12-29 patch.
42943
42944         error: avoid expand-before-require warning
42945         * modules/errno (configure.ac): Require, rather than expand,
42946         gl_HEADER_ERRNO_H.
42947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42948         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42949         enforce that all clients require it.
42950
42951         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42952         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42953         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42954         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42955
42956 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42957
42958         Revert:
42959         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42960
42961         regex: do not depend on obsolete modules.
42962         * modules/regex: Remove memcmp and memmove.
42963
42964 2009-01-20  Bruno Haible  <bruno@clisp.org>
42965
42966         Make the 'link' module link on Windows NT 4.
42967         * lib/link.c (_WIN32_WINNT): Don't define.
42968         (CreateHardLinkFuncType): New type.
42969         (CreateHardLinkFunc, initialized): New variables.
42970         (initialize): New function.
42971         (link): Invoke CreateHardLink indirectly through the function pointer.
42972
42973 2009-01-20  Bruno Haible  <bruno@clisp.org>
42974
42975         Fix compilation failure on mingw.
42976         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42977
42978 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42979
42980         * doc/c-strtod.texi: Mention a couple of restrictions.
42981
42982 2009-01-20  Jim Meyering  <meyering@redhat.com>
42983
42984         gettimeofday: move more declarations out of functions
42985         * lib/gettimeofday.c: Move extern declarations of tzset and
42986         gmtime out of containing functions.  Prompted by Bruno Haible.
42987
42988 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42989
42990         regex: do not depend on obsolete modules.
42991         * modules/regex: Remove memcmp and memmove.
42992
42993 2009-01-19  Bruno Haible  <bruno@clisp.org>
42994
42995         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42996         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42997         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42998         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42999         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43000
43001 2009-01-19  Bruno Haible  <bruno@clisp.org>
43002
43003         * tests/test-link.c: Include <errno.h>.
43004         (main): Exit with code 77 when a hard link cannot be created due to
43005         the file system.
43006         * tests/test-link.sh: Skip test when a hard link cannot be created due
43007         to the file system.
43008         Suggested by Eric Blake.
43009
43010 2009-01-19  Martin Lambers  <marlam@marlam.de>
43011
43012         * modules/link-tests: New file.
43013         * tests/test-link.sh: New file.
43014         * tests/test-link.c: New file.
43015
43016 2009-01-19  Eric Blake  <ebb9@byu.net>
43017
43018         doc: mention another function added in cygwin 1.7.0
43019         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43020         Another new function in cygwin 1.7.
43021
43022 2009-01-19  Bruno Haible  <bruno@clisp.org>
43023
43024         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43025         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43026         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43027         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43028         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43029         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43030         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43031         * m4/md4.m4 (gl_MD4): Likewise.
43032         * m4/md5.m4 (gl_MD5): Likewise.
43033         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43034         * m4/sha1.m4 (gl_SHA1): Likewise.
43035         * m4/sha256.m4 (gl_SHA256): Likewise.
43036         * m4/sha512.m4 (gl_SHA512): Likewise.
43037
43038 2009-01-19  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/uniname/uniname-tests (Depends-on): Add progname.
43041         * tests/uniname/test-uninames.c: Include progname.h.
43042         (main): Call set_program_name.
43043
43044         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43045         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43046         (main): Call set_program_name.
43047
43048         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43049         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43050         (main): Call set_program_name.
43051
43052         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43053         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43054         (main): Call set_program_name.
43055
43056         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43057         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43058         (main): Call set_program_name.
43059
43060         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43061         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43062         (main): Call set_program_name.
43063
43064         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43065         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43066         (main): Call set_program_name.
43067
43068         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43069         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43070         (main): Call set_program_name.
43071
43072         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43073         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43074         (main): Call set_program_name.
43075
43076 2009-01-19  Eric Blake  <ebb9@byu.net>
43077
43078         test-unistd: test previous patch
43079         * tests/test-unistd.c: Test *_FILENO macros.
43080
43081         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43082         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43083         Guarantee a definition.
43084         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43085         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43086         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43087         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43088         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43089         Likewise.
43090         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43091         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43092         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43093         Likewise.
43094         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43095         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43096         (STDERR_FILENO): Likewise.
43097         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43098         (STDERR_FILENO): Likewise.
43099         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43100         (STDERR_FILENO): Likewise.
43101         Reported by Elbert Pol.
43102
43103 2009-01-19  Eric Blake  <ebb9@byu.net>
43104
43105         doc: mention more functions added in cygwin 1.7.0
43106         * doc/posix-functions/abort.texi (abort): Update wording related
43107         to cygwin.
43108         * doc/posix-functions/daylight.texi (daylight): Likewise.
43109         * doc/posix-functions/optarg.texi (optarg): Likewise.
43110         * doc/posix-functions/optarg.texi (opterr): Likewise.
43111         * doc/posix-functions/optarg.texi (optind): Likewise.
43112         * doc/posix-functions/optarg.texi (optopt): Likewise.
43113         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43114         worked in 1.5.x, and was withdrawn in 1.7.
43115         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43116         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43117         cygwin versions.
43118         * doc/posix-functions/perror.texi (perror): Likewise.
43119         * doc/posix-functions/printf.texi (printf): Likewise.
43120         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43121         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43122         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43123         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43124         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43125         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43126         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43127         Likewise.
43128         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43129         Likewise.
43130         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43131         this function.
43132         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43133         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43134         Likewise.
43135         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43136         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43137         * doc/posix-functions/confstr.texi (confstr): Likewise.
43138         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43139         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43140         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43141         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43142         * doc/posix-functions/fputws.texi (fputws): Likewise.
43143         * doc/posix-functions/fwide.texi (fwide): Likewise.
43144         * doc/posix-functions/getwc.texi (getwc): Likewise.
43145         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43146         * doc/posix-functions/putwc.texi (putwc): Likewise.
43147         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43148         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43149         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43150         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43151         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43152         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43153         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43154         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43155         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43156         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43157         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43158
43159 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43160
43161         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43162         * lib/ioctl.c: Include <sys/ioctl.h>.
43163
43164 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43165
43166         * modules/getdate-tests (Depends-on): Add progname.
43167         * tests/test-getdate.c: Use progname module, to avoid link errors
43168         on non-glibc systems.
43169
43170 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43171
43172         * modules/filenamecat-tests (Depends-on): Add progname.
43173         * modules/fstrcmp-tests (Depends-on): Likewise.
43174
43175         * tests/test-filenamecat.c: Use progname module, to avoid link
43176         errors on non-glibc systems.
43177         * tests/test-fstrcmp.c: Likewise.
43178
43179 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43180
43181         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43182         * lib/gettimeofday.c: Move extern declaration out of function.
43183
43184 2009-01-18  Bruno Haible  <bruno@clisp.org>
43185
43186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43187         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43188         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43189
43190 2009-01-18  Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/strftime.c (MEMPCPY): Remove unused macro.
43193         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43194
43195 2009-01-18  Martin Lambers  <marlam@marlam.de>
43196
43197         New module 'link'.
43198         * lib/unistd.in.h (link): New declaration.
43199         * lib/link.c: New file.
43200         * m4/link.m4: New file.
43201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43202         HAVE_LINK.
43203         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43204         * modules/link: New file.
43205         * doc/posix-functions/link.texi: Mention the new module.
43206
43207 2009-01-18  Bruno Haible  <bruno@clisp.org>
43208
43209         * tests/test-avltree_list.c (main): Call set_program_name.
43210         * tests/test-avltree_oset.c (main): Likewise.
43211         * tests/test-obstack-printf.c: Include progname.h.
43212         (main): Call set_program_name.
43213         * tests/test-quotearg.c: Include progname.h.
43214         (main): Call set_program_name.
43215         * tests/test-xmemdup0.c: Include progname.h.
43216         (main): Call set_program_name.
43217
43218 2009-01-18  Bruno Haible  <bruno@clisp.org>
43219
43220         New module 'alphasort'.
43221         * lib/dirent.in.h (alphasort): New declaration.
43222         * lib/alphasort.c: New file, from glibc with modifications.
43223         * m4/alphasort.m4: New file.
43224         * modules/alphasort: New file.
43225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43226         HAVE_ALPHASORT.
43227         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43228         HAVE_ALPHASORT.
43229         * doc/posix-functions/alphasort.texi: Mention the new module and the
43230         portability problems.
43231
43232 2009-01-18  Bruno Haible  <bruno@clisp.org>
43233
43234         New module 'scandir'.
43235         * lib/dirent.in.h (scandir): New declaration.
43236         * lib/scandir.c: New file, from glibc with modifications.
43237         * m4/scandir.m4: New file.
43238         * modules/scandir: New file.
43239         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43240         HAVE_SCANDIR.
43241         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43242         HAVE_SCANDIR.
43243         * doc/posix-functions/scandir.texi: Mention the new module and the
43244         portability problems.
43245
43246 2009-01-17  Bruno Haible  <bruno@clisp.org>
43247
43248         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43249         Update documentation.
43250         (func_remove_suffix): Escape all dots in the suffix. Update
43251         documentation.
43252         (func_filter_filelist): Update documentation.
43253         Reported by Ralf Wildenhues.
43254
43255 2009-01-17  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/dprintf-posix-tests: New file.
43258         * tests/test-dprintf-posix.sh: New file.
43259         * tests/test-dprintf-posix.c: New file.
43260
43261         New modules 'dprintf', 'dprintf-posix'.
43262         * lib/stdio.in.h (dprintf): New declaration.
43263         * lib/dprintf.c: New file.
43264         * m4/dprintf.m4: New file.
43265         * m4/dprintf-posix.m4: New file.
43266         * modules/dprintf: New file.
43267         * modules/dprintf-posix: New file.
43268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43269         HAVE_DPRINTF, REPLACE_DPRINTF.
43270         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43271         HAVE_DPRINTF, REPLACE_DPRINTF.
43272         * doc/posix-functions/dprintf.texi: Mention the new modules.
43273
43274 2009-01-17  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/vdprintf-posix-tests: New file.
43277         * tests/test-vdprintf-posix.sh: New file.
43278         * tests/test-vdprintf-posix.c: New file.
43279
43280         New modules 'vdprintf', 'vdprintf-posix'.
43281         * lib/stdio.in.h (vdprintf): New declaration.
43282         * lib/vdprintf.c: New file.
43283         * m4/vdprintf.m4: New file.
43284         * m4/vdprintf-posix.m4: New file.
43285         * modules/vdprintf: New file.
43286         * modules/vdprintf-posix: New file.
43287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43288         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43289         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43290         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43291         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43292
43293 2009-01-17  Bruno Haible  <bruno@clisp.org>
43294
43295         Fix replacement of fopen on mingw.
43296         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43297         mingw.
43298
43299 2009-01-17  Bruno Haible  <bruno@clisp.org>
43300
43301         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43302         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43303
43304 2009-01-17  Bruno Haible  <bruno@clisp.org>
43305
43306         Avoid test-fflush2.sh failure on mingw.
43307         * tests/test-fflush2.c: Include binary-io.h.
43308         (main): Put standard input into binary mode.
43309         * modules/fflush-tests (Depends-on): Add binary-io.
43310
43311 2009-01-17  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/wchar.in.h: In another particular situation, include only the
43314         system's <wchar.h> file.
43315         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43316         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43317         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43318
43319 2009-01-17  Bruno Haible  <bruno@clisp.org>
43320
43321         Support for stripping executables in --enable-relocatable.
43322         * build-aux/install-reloc: Expect one more argument, or an environment
43323         variable RELOC_STRIP_PROG. If set, strip the destination program and
43324         its wrapper.
43325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43326         RELOC_STRIP_PROG.
43327         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43328         to set RELOCATABLE_STRIP.
43329         * NEWS: Mention the new Makefile requirement.
43330
43331 2009-01-17  Bruno Haible  <bruno@clisp.org>
43332
43333         * build-aux/install-reloc: Remove debugging information left over by
43334         C compiler on MacOS X.
43335
43336 2009-01-17  Bruno Haible  <bruno@clisp.org>
43337
43338         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43339         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43340         _NSGetExecutablePath.
43341
43342 2009-01-16  Jim Meyering  <meyering@redhat.com>
43343
43344         strerror: avoid warnings about discarding "const"
43345         * lib/strerror.c (rpl_strerror): Instead of returning a const
43346         string from each and every "case", use a variable, and add a single
43347         cast after the switch.
43348
43349 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43350
43351         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43352
43353 2009-01-16  Bruno Haible  <bruno@clisp.org>
43354
43355         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43356         array initializer syntax that also works in C++ mode.
43357         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43358
43359 2009-01-16  Jim Meyering  <meyering@redhat.com>
43360
43361         poll: suppress a warning
43362         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43363         to ignore "...unsigned expression < 0 is always false" warnings.
43364
43365 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43366
43367         poll: remove declarations of unused variables
43368         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43369         sockbuf and optlen.
43370
43371 2009-01-15  Bruno Haible  <bruno@clisp.org>
43372
43373         Make fflush-after-ungetc POSIX compliant on BSD systems.
43374         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43375         (clear_ungetc_buffer): Implement also for other systems.
43376         (rpl_fflush): On glibc systems, invoke
43377         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43378         clear_ungetc_buffer after fetching the stream's position, not before.
43379
43380 2009-01-15  Bruno Haible  <bruno@clisp.org>
43381
43382         Make fflush-after-ungetc POSIX compliant on glibc systems.
43383         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43384         after ungetc.
43385         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43386         (rpl_fflush): On glibc systems, simply call the system's fflush
43387         function after clearing the ungetc buffer.
43388         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43389         Instead, lseek only to the end of file, then use the system's fseeko
43390         for the rest. On glibc systems, reset the EOF indicator bit.
43391
43392 2009-01-15  Jim Meyering  <meyering@redhat.com>
43393
43394         openmp.m4: revert quote-adding change, for portability to older autoconf
43395         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43396         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43397         Simon Josefsson noticed the problem when using autoconf-2.61.
43398
43399 2009-01-15  Bruno Haible  <bruno@clisp.org>
43400
43401         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43402         * tests/test-fflush2.c (ASSERT): Always fail.
43403         (main): Add two tests for fflush() after ungetc(), taking into account
43404         the Austin Group's clarification.
43405         Suggested by Eric Blake.
43406
43407 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43408
43409         mktime.m4: remove K&R-style function prototypes
43410         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43411         for the Sun C++ compiler.
43412
43413 2009-01-14  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43416         while including <wchar.h>.
43417         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43418         the system's <wchar.h> file.
43419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43420
43421 2009-01-14  Bruno Haible  <bruno@clisp.org>
43422
43423         * m4/csharp.m4: Don't mention gettext on the serial number line.
43424         * m4/csharpexec.m4: Likewise.
43425         * m4/eaccess.m4: Likewise.
43426         * m4/javaexec.m4: Likewise.
43427         * m4/sig_atomic_t.m4: Likewise.
43428         * m4/tmpdir.m4: Likewise.
43429         * m4/intldir.m4: Bump gettext version.
43430         * m4/lib-ld.m4: Likewise.
43431
43432 2009-01-14  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/progname.c (set_program_name): Add more comments.
43435         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43436
43437 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43438
43439         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43440         were sys/stat.h does not define it.
43441
43442 2009-01-14  Jim Meyering  <meyering@redhat.com>
43443
43444         many *.m4 files: improve m4 quoting
43445         99% of this change was performed by running the following commands:
43446         git ls-files | grep '\.m4$' | xargs perl -pi \
43447           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43449           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43450           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43451         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43452         The remainder were to add Copyright dates, increment serial numbers,
43453         undo some changes in comments, exclude m4/intl.m4, and add quotes
43454         around the "1" in ",1" where the unusual spacing prohibited the
43455         above regexps from doing the job.  For more details, see
43456         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43457         * m4/acl.m4: Modified.
43458         * m4/afs.m4: Likewise.
43459         * m4/alloca.m4: Likewise.
43460         * m4/argp.m4: Likewise.
43461         * m4/argz.m4: Likewise.
43462         * m4/atexit.m4: Likewise.
43463         * m4/bison-i18n.m4: Likewise.
43464         * m4/bison.m4: Likewise.
43465         * m4/byteswap.m4: Likewise.
43466         * m4/c-stack.m4: Likewise.
43467         * m4/c-strtod.m4: Likewise.
43468         * m4/calloc.m4: Likewise.
43469         * m4/canonicalize-lgpl.m4: Likewise.
43470         * m4/chown.m4: Likewise.
43471         * m4/clock_time.m4: Likewise.
43472         * m4/codeset.m4: Likewise.
43473         * m4/copy-file.m4: Likewise.
43474         * m4/csharp.m4: Likewise.
43475         * m4/csharpcomp.m4: Likewise.
43476         * m4/csharpexec.m4: Likewise.
43477         * m4/d-ino.m4: Likewise.
43478         * m4/d-type.m4: Likewise.
43479         * m4/dirfd.m4: Likewise.
43480         * m4/double-slash-root.m4: Likewise.
43481         * m4/eaccess.m4: Likewise.
43482         * m4/eealloc.m4: Likewise.
43483         * m4/environ.m4: Likewise.
43484         * m4/errno_h.m4: Likewise.
43485         * m4/euidaccess.m4: Likewise.
43486         * m4/execute.m4: Likewise.
43487         * m4/fatal-signal.m4: Likewise.
43488         * m4/fchdir.m4: Likewise.
43489         * m4/fcntl_h.m4: Likewise.
43490         * m4/fileblocks.m4: Likewise.
43491         * m4/filenamecat.m4: Likewise.
43492         * m4/findprog.m4: Likewise.
43493         * m4/flexmember.m4: Likewise.
43494         * m4/fnmatch.m4: Likewise.
43495         * m4/fopen.m4: Likewise.
43496         * m4/fpending.m4: Likewise.
43497         * m4/fprintf-posix.m4: Likewise.
43498         * m4/free.m4: Likewise.
43499         * m4/frexp.m4: Likewise.
43500         * m4/frexpl.m4: Likewise.
43501         * m4/fsusage.m4: Likewise.
43502         * m4/ftruncate.m4: Likewise.
43503         * m4/gc-camellia.m4: Likewise.
43504         * m4/gc-random.m4: Likewise.
43505         * m4/gc.m4: Likewise.
43506         * m4/getaddrinfo.m4: Likewise.
43507         * m4/getcwd-abort-bug.m4: Likewise.
43508         * m4/getcwd-path-max.m4: Likewise.
43509         * m4/getdate.m4: Likewise.
43510         * m4/getdomainname.m4: Likewise.
43511         * m4/getgroups.m4: Likewise.
43512         * m4/gethostname.m4: Likewise.
43513         * m4/gethrxtime.m4: Likewise.
43514         * m4/getline.m4: Likewise.
43515         * m4/getloadavg.m4: Likewise.
43516         * m4/getndelim2.m4: Likewise.
43517         * m4/getpass.m4: Likewise.
43518         * m4/gettext.m4: Likewise.
43519         * m4/gettime.m4: Likewise.
43520         * m4/gettimeofday.m4: Likewise.
43521         * m4/gnulib-common.m4: Likewise.
43522         * m4/group-member.m4: Likewise.
43523         * m4/host-os.m4: Likewise.
43524         * m4/iconv.m4: Likewise.
43525         * m4/iconv_open.m4: Likewise.
43526         * m4/inet_ntop.m4: Likewise.
43527         * m4/inet_pton.m4: Likewise.
43528         * m4/inline.m4: Likewise.
43529         * m4/intldir.m4: Likewise.
43530         * m4/intlmacosx.m4: Likewise.
43531         * m4/intmax.m4: Likewise.
43532         * m4/intmax_t.m4: Likewise.
43533         * m4/inttypes.m4: Likewise.
43534         * m4/inttypes_h.m4: Likewise.
43535         * m4/inttypes-pri.m4: Likewise.
43536         * m4/isapipe.m4: Likewise.
43537         * m4/isnand.m4: Likewise.
43538         * m4/isnanf.m4: Likewise.
43539         * m4/isnanl.m4: Likewise.
43540         * m4/javacomp.m4: Likewise.
43541         * m4/javaexec.m4: Likewise.
43542         * m4/jm-winsz1.m4: Likewise.
43543         * m4/jm-winsz2.m4: Likewise.
43544         * m4/lchown.m4: Likewise.
43545         * m4/lcmessage.m4: Likewise.
43546         * m4/ldexpl.m4: Likewise.
43547         * m4/lib-ld.m4: Likewise.
43548         * m4/lib-link.m4: Likewise.
43549         * m4/libsigsegv.m4: Likewise.
43550         * m4/link-follow.m4: Likewise.
43551         * m4/localcharset.m4: Likewise.
43552         * m4/locale-fr.m4: Likewise.
43553         * m4/locale-ja.m4: Likewise.
43554         * m4/locale-tr.m4: Likewise.
43555         * m4/locale-zh.m4: Likewise.
43556         * m4/lock.m4: Likewise.
43557         * m4/longlong.m4: Likewise.
43558         * m4/ls-mntd-fs.m4: Likewise.
43559         * m4/lstat.m4: Likewise.
43560         * m4/malloc.m4: Likewise.
43561         * m4/mathl.m4: Likewise.
43562         * m4/mbrtowc.m4: Likewise.
43563         * m4/mbstate_t.m4: Likewise.
43564         * m4/mbswidth.m4: Likewise.
43565         * m4/memchr.m4: Likewise.
43566         * m4/memcmp.m4: Likewise.
43567         * m4/memcpy.m4: Likewise.
43568         * m4/memmem.m4: Likewise.
43569         * m4/memmove.m4: Likewise.
43570         * m4/mempcpy.m4: Likewise.
43571         * m4/memrchr.m4: Likewise.
43572         * m4/memset.m4: Likewise.
43573         * m4/minmax.m4: Likewise.
43574         * m4/mkdir-slash.m4: Likewise.
43575         * m4/mkdtemp.m4: Likewise.
43576         * m4/mktime.m4: Likewise.
43577         * m4/mmap-anon.m4: Likewise.
43578         * m4/mountlist.m4: Likewise.
43579         * m4/nanosleep.m4: Likewise.
43580         * m4/nls.m4: Likewise.
43581         * m4/nocrash.m4: Likewise.
43582         * m4/open.m4: Likewise.
43583         * m4/openat.m4: Likewise.
43584         * m4/openmp.m4: Likewise.
43585         * m4/pathmax.m4: Likewise.
43586         * m4/perl.m4: Likewise.
43587         * m4/physmem.m4: Likewise.
43588         * m4/pipe.m4: Likewise.
43589         * m4/po.m4: Likewise.
43590         * m4/poll.m4: Likewise.
43591         * m4/posixtm.m4: Likewise.
43592         * m4/posixver.m4: Likewise.
43593         * m4/printf-frexp.m4: Likewise.
43594         * m4/printf-frexpl.m4: Likewise.
43595         * m4/printf-posix.m4: Likewise.
43596         * m4/printf-posix-rpl.m4: Likewise.
43597         * m4/printf.m4: Likewise.
43598         * m4/progtest.m4: Likewise.
43599         * m4/putenv.m4: Likewise.
43600         * m4/readline.m4: Likewise.
43601         * m4/readlink.m4: Likewise.
43602         * m4/readutmp.m4: Likewise.
43603         * m4/realloc.m4: Likewise.
43604         * m4/regex.m4: Likewise.
43605         * m4/relocatable.m4: Likewise.
43606         * m4/relocatable-lib.m4: Likewise.
43607         * m4/rename-dest-slash.m4: Likewise.
43608         * m4/rename.m4: Likewise.
43609         * m4/rmdir-errno.m4: Likewise.
43610         * m4/rmdir.m4: Likewise.
43611         * m4/roundf.m4: Likewise.
43612         * m4/roundl.m4: Likewise.
43613         * m4/rpmatch.m4: Likewise.
43614         * m4/save-cwd.m4: Likewise.
43615         * m4/selinux-selinux-h.m4: Likewise.
43616         * m4/setenv.m4: Likewise.
43617         * m4/settime.m4: Likewise.
43618         * m4/sig2str.m4: Likewise.
43619         * m4/sig_atomic_t.m4: Likewise.
43620         * m4/signalblocking.m4: Likewise.
43621         * m4/signbit.m4: Likewise.
43622         * m4/sigpipe.m4: Likewise.
43623         * m4/sockets.m4: Likewise.
43624         * m4/sockpfaf.m4: Likewise.
43625         * m4/st_dm_mode.m4: Likewise.
43626         * m4/stat-time.m4: Likewise.
43627         * m4/stdbool.m4: Likewise.
43628         * m4/stdint.m4: Likewise.
43629         * m4/stdint_h.m4: Likewise.
43630         * m4/stpcpy.m4: Likewise.
43631         * m4/stpncpy.m4: Likewise.
43632         * m4/strcase.m4: Likewise.
43633         * m4/strchrnul.m4: Likewise.
43634         * m4/strcspn.m4: Likewise.
43635         * m4/strdup.m4: Likewise.
43636         * m4/strftime.m4: Likewise.
43637         * m4/strndup.m4: Likewise.
43638         * m4/strnlen.m4: Likewise.
43639         * m4/strpbrk.m4: Likewise.
43640         * m4/strptime.m4: Likewise.
43641         * m4/strsep.m4: Likewise.
43642         * m4/strtod.m4: Likewise.
43643         * m4/strtoimax.m4: Likewise.
43644         * m4/strtok_r.m4: Likewise.
43645         * m4/strtol.m4: Likewise.
43646         * m4/strtoll.m4: Likewise.
43647         * m4/strtoul.m4: Likewise.
43648         * m4/strtoull.m4: Likewise.
43649         * m4/strtoumax.m4: Likewise.
43650         * m4/strverscmp.m4: Likewise.
43651         * m4/threadlib.m4: Likewise.
43652         * m4/timegm.m4: Likewise.
43653         * m4/tm_gmtoff.m4: Likewise.
43654         * m4/tmpdir.m4: Likewise.
43655         * m4/tmpfile.m4: Likewise.
43656         * m4/tzset.m4: Likewise.
43657         * m4/uintmax_t.m4: Likewise.
43658         * m4/unlinkdir.m4: Likewise.
43659         * m4/unlocked-io.m4: Likewise.
43660         * m4/uptime.m4: Likewise.
43661         * m4/userspec.m4: Likewise.
43662         * m4/utimbuf.m4: Likewise.
43663         * m4/utime.m4: Likewise.
43664         * m4/utimes-null.m4: Likewise.
43665         * m4/utimes.m4: Likewise.
43666         * m4/vararrays.m4: Likewise.
43667         * m4/vasnprintf.m4: Likewise.
43668         * m4/vfprintf-posix.m4: Likewise.
43669         * m4/vprintf-posix.m4: Likewise.
43670         * m4/wait-process.m4: Likewise.
43671         * m4/wchar_t.m4: Likewise.
43672         * m4/wint_t.m4: Likewise.
43673         * m4/write-any-file.m4: Likewise.
43674         * m4/yield.m4: Likewise.
43675
43676 2009-01-13  Bruno Haible  <bruno@clisp.org>
43677
43678         Avoid test-copy-file.sh failures when ACL support insufficient.
43679         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43680         TESTS_ENVIRONMENT.
43681         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43682         Reported by Jim Meyering.
43683
43684 2009-01-13  Bruno Haible  <bruno@clisp.org>
43685
43686         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43687         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43688         * modules/unistdio/u8-printf-parse (Files): Likewise.
43689         * modules/unistdio/u32-printf-parse (Files): Likewise.
43690         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43691
43692 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43693
43694         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43695         and m4/inttypes_h.m4 too.
43696
43697 2009-01-12  Eric Blake  <ebb9@byu.net>
43698
43699         tests: IRIX 6.2 cc can't compile -0.0 into .data
43700         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43701         rather than at compile-time.
43702         * tests/test-floorl.c (minus_zero): Likewise.
43703         * tests/test-frexpl.c (minus_zero): Likewise.
43704         * tests/test-isnan.c (minus_zerol): Likewise.
43705         * tests/test-isnanl.h (minus_zero): Likewise.
43706         * tests/test-ldexpl.c (minus_zero): Likewise.
43707         * tests/test-roundl.c (minus_zero): Likewise.
43708         * tests/test-signbit.c (minus_zerol): Likewise.
43709         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43710         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43711         * tests/test-truncl.c (minus_zero): Likewise.
43712         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43713         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43714         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43715
43716 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43717
43718         regex: fix glibc bug 9697
43719         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43720         handling.
43721
43722 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43723
43724         regex: fix glibc bug 697
43725         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43726         being NULL also if there are no backreferences.
43727
43728 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43729
43730         regex: merge glibc changes
43731         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43732         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43733         re_string_skip_chars, re_string_reconstruct): Likewise.
43734         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43735
43736 2009-01-07  Jim Meyering  <meyering@redhat.com>
43737
43738         poll: filter through cppi
43739         * lib/poll.c: Indent cpp directives to reflect nesting.
43740
43741 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43742
43743         poll: don't return uninitialized
43744         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43745
43746 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43747
43748         avoid compile failure on AIX 6.1
43749         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43750         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43751
43752 2009-01-04  Jim Meyering  <meyering@redhat.com>
43753
43754         remove duplicate inclusion of <stdio.h>
43755         * tests/test-fprintf-posix.c: Likewise.
43756         * tests/test-printf-posix.c: Likewise.
43757         * tests/test-snprintf-posix.c: Likewise.
43758         * tests/test-sprintf-posix.c: Likewise.
43759         * tests/test-vasprintf-posix.c: Likewise.
43760         * tests/test-vfprintf-posix.c: Likewise.
43761         * tests/test-vprintf-posix.c: Likewise.
43762         * tests/test-vsnprintf-posix.c: Likewise.
43763         * tests/test-vsprintf-posix.c: Likewise.
43764
43765 2009-01-03  Jim Meyering  <meyering@redhat.com>
43766
43767         gnulib-tool: fix sed-based filtering
43768         * gnulib-tool (func_filter_filelist): Remove extra backslash
43769         in sed_fff_filter definition.
43770
43771 2009-01-02  Jim Meyering  <meyering@redhat.com>
43772
43773         strftime: avoid compilation failure on Solaris 2.6
43774         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43775         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43776         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43777         be available.  Reported by Tom G. Christensen.  Details in
43778         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43779
43780 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43781             Bruno Haible  <bruno@clisp.org>
43782
43783         Speed up gnulib-tool by doing more string processing through shell
43784         built-ins.
43785         * gnulib-tool (fast_func_append): New variable.
43786         (func_remove_prefix, func_remove_suffix): New functions.
43787         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43788         (func_filter_filelist): New function.
43789         (func_get_dependencies): Use func_remove_suffix instead of sed.
43790         (func_get_automake_snippet): Use func_filter_filelist instead of a
43791         subshell and sed invocation.
43792
43793 2009-01-01  Bruno Haible  <bruno@clisp.org>
43794
43795         Fix a security bug.
43796         * gnulib-tool (func_import, import, update): Don't allow the characters
43797         '"', '$', '`', '\' in macro arguments that become part of commands that
43798         are evaluated.
43799
43800 2009-01-01  Bruno Haible  <bruno@clisp.org>
43801
43802         * gnulib-tool (func_reset_sigpipe): Add more comments.
43803
43804 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43805
43806         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43807         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43808         already know the answer.
43809
43810 2009-01-01  Jim Meyering  <meyering@redhat.com>
43811
43812         * lib/version-etc.c (version_etc_va): Update copyright year.
43813
43814 2008-12-30  Bruno Haible  <bruno@clisp.org>
43815
43816         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43817         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43818         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43819
43820 2008-12-29  Eric Blake  <ebb9@byu.net>
43821
43822         multiarch: avoid autoconf AC_REQUIRE bug
43823         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43824         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43825         2.63 and older.
43826         Reported by Bruno Haible, and analyzed in
43827         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43828
43829 2008-12-29  Bruno Haible  <bruno@clisp.org>
43830
43831         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43832         files in subdirectories correctly.
43833         Reported by Ralf Wildenhues.
43834
43835 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43836
43837         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43838         rather than 'join FILE -', for Solaris join.
43839
43840 2008-12-29  Bruno Haible  <bruno@clisp.org>
43841
43842         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43843         quoting.
43844         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43845         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43846         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43847         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43848         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43849         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43850         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43851         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43852         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43853         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43854         * m4/nls.m4 (AM_NLS): Likewise.
43855         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43856         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43857         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43858         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43859         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43860         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43861         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43862         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43863         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43864         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43865         * m4/xsize.m4 (gl_XSIZE): Likewise.
43866         Suggested by Jim Meyering.
43867
43868 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43869
43870         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43871         * lib/parse-duration.c: use a switch instead of cascading if's.
43872
43873 2008-12-29  Eric Blake  <ebb9@byu.net>
43874
43875         wchar.h: supply WEOF on Irix 5.3
43876         * lib/wchar.in.h (wint_t): Also supply WEOF.
43877         * lib/wctype.in.h (wint_t): Likewise.
43878         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43879         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43880         Reported by Tom G. Christensen.
43881
43882 2008-12-26  Bruno Haible  <bruno@clisp.org>
43883
43884         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43885         i486, i586, i686.
43886
43887 2008-12-26  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43890
43891 2008-12-26  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43894         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43895         not __STDC_CONSTANT_MACROS.
43896         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43897
43898 2008-12-25  Bruno Haible  <bruno@clisp.org>
43899
43900         Add support for universal builds to vasnprintf.
43901         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43902         universal builds, guess no.
43903         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43904         * modules/vasprintf-posix (Depends-on): Likewise.
43905         * modules/fprintf-posix (Depends-on): Likewise.
43906         * modules/vfprintf-posix (Depends-on): Likewise.
43907         * modules/snprintf-posix (Depends-on): Likewise.
43908         * modules/vsnprintf-posix (Depends-on): Likewise.
43909         * modules/sprintf-posix (Depends-on): Likewise.
43910         * modules/vsprintf-posix (Depends-on): Likewise.
43911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43918
43919         Add support for universal builds to <inttypes.h>.
43920         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43921         _SCNu64_PREFIX): In Apple
43922         universal builds, define directly, using _LP64.
43923         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43924         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43925         * modules/inttypes (Depends-on): Add multiarch.
43926         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43927
43928         Add support for universal builds to <stdint.h>.
43929         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43930         universal builds, define directly, using _LP64.
43931         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43932         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43933         and size_t.
43934         * modules/stdint (Depends-on): Add multiarch.
43935         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43936
43937         New module 'multiarch'.
43938         * modules/multiarch: New file.
43939         * m4/multiarch.m4: New file.
43940
43941 2008-12-25  Bruno Haible  <bruno@clisp.org>
43942
43943         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43944
43945 2008-12-25  Bruno Haible  <bruno@clisp.org>
43946
43947         * modules/btowc (License): Relicense under LGPLv2+.
43948         * modules/mbsinit (License): Likewise.
43949         * modules/mbrtowc (License): Likewise.
43950         * modules/wcrtomb (License): Likewise.
43951         * modules/streq (License): Likewise.
43952         Reported by David Lutterkort <lutter@redhat.com>.
43953
43954 2008-12-23  Bruno Haible  <bruno@clisp.org>
43955
43956         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43957
43958 2008-12-23  Bruno Haible  <bruno@clisp.org>
43959
43960         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43962         GETADDRINFO_LIB, not in LIBS.
43963         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43964         * modules/canon-host (Link): Likewise.
43965         * NEWS: Mention the change.
43966         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43967         GETADDRINFO_LIB.
43968
43969 2008-12-22  Bruno Haible  <bruno@clisp.org>
43970
43971         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43972         * doc/posix-functions/iswalpha_l.texi: Likewise.
43973         * doc/posix-functions/iswblank_l.texi: Likewise.
43974         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43975         * doc/posix-functions/iswctype_l.texi: Likewise.
43976         * doc/posix-functions/iswdigit_l.texi: Likewise.
43977         * doc/posix-functions/iswgraph_l.texi: Likewise.
43978         * doc/posix-functions/iswlower_l.texi: Likewise.
43979         * doc/posix-functions/iswprint_l.texi: Likewise.
43980         * doc/posix-functions/iswpunct_l.texi: Likewise.
43981         * doc/posix-functions/iswspace_l.texi: Likewise.
43982         * doc/posix-functions/iswupper_l.texi: Likewise.
43983         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43984         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43985         * doc/posix-functions/open_wmemstream.texi: Likewise.
43986         * doc/posix-functions/swscanf.texi: Likewise.
43987         * doc/posix-functions/towctrans_l.texi: Likewise.
43988         * doc/posix-functions/towlower.texi: Likewise.
43989         * doc/posix-functions/towlower_l.texi: Likewise.
43990         * doc/posix-functions/towupper.texi: Likewise.
43991         * doc/posix-functions/towupper_l.texi: Likewise.
43992         * doc/posix-functions/vfwprintf.texi: Likewise.
43993         * doc/posix-functions/vfwscanf.texi: Likewise.
43994         * doc/posix-functions/vswscanf.texi: Likewise.
43995         * doc/posix-functions/vwprintf.texi: Likewise.
43996         * doc/posix-functions/vwscanf.texi: Likewise.
43997         * doc/posix-functions/wcpcpy.texi: Likewise.
43998         * doc/posix-functions/wcpncpy.texi: Likewise.
43999         * doc/posix-functions/wcscasecmp.texi: Likewise.
44000         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44001         * doc/posix-functions/wcscoll_l.texi: Likewise.
44002         * doc/posix-functions/wcsdup.texi: Likewise.
44003         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44004         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44005         * doc/posix-functions/wcsnlen.texi: Likewise.
44006         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44007         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44008         * doc/posix-functions/wctrans_l.texi: Likewise.
44009         * doc/posix-functions/wctype_l.texi: Likewise.
44010         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44011         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44012         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44013         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44014         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44015         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44016         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44017         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44018         * doc/glibc-functions/wcschrnul.texi: Likewise.
44019         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44020         * doc/glibc-functions/wcstod_l.texi: Likewise.
44021         * doc/glibc-functions/wcstof_l.texi: Likewise.
44022         * doc/glibc-functions/wcstol_l.texi: Likewise.
44023         * doc/glibc-functions/wcstold_l.texi: Likewise.
44024         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44025         * doc/glibc-functions/wcstoq.texi: Likewise.
44026         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44027         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44028         * doc/glibc-functions/wcstouq.texi: Likewise.
44029         * doc/glibc-functions/wmempcpy.texi: Likewise.
44030
44031 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44032             Eric Blake  <ebb9@byu.net>
44033             Paolo Bonzini  <bonzini@gnu.org>
44034             Bruno Haible  <bruno@clisp.org>
44035
44036         Make c-stack work on Haiku.
44037         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44038         (c_stack_action): Use SA_ONSTACK flag.
44039
44040 2008-12-22  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44043
44044 2008-12-22  Bruno Haible  <bruno@clisp.org>
44045
44046         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44047         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44048         being overridden.
44049         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44050         New macros.
44051         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44053         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44054         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44055
44056 2008-12-22  Bruno Haible  <bruno@clisp.org>
44057
44058         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44059         from test code.
44060
44061 2008-12-22  Eric Blake  <ebb9@byu.net>
44062
44063         Avoid gcc warnings on cygwin.
44064         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44065         Avoid unused variable.
44066         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44067         Likewise.
44068
44069 2008-12-22  Bruno Haible  <bruno@clisp.org>
44070
44071         Remove HAVE_MBRTOWC conditionals.
44072         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44073         (mbscasecmp): Assume mbrtowc function.
44074         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44075         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44076         * lib/mbschr.c: Include mbuiter.h unconditionally.
44077         (mbschr): Assume mbrtowc function.
44078         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44079         (mbscspn): Assume mbrtowc function.
44080         * lib/mbslen.c: Include mbuiter.h unconditionally.
44081         (mbslen): Assume mbrtowc function.
44082         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44083         (mbsncasecmp): Assume mbrtowc function.
44084         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44085         (mbsnlen): Assume mbrtowc function.
44086         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44087         (mbspbrk): Assume mbrtowc function.
44088         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44089         (mbspcasecmp): Assume mbrtowc function.
44090         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44091         (mbsrchr): Assume mbrtowc function.
44092         * lib/mbssep.c: Include mbuiter.h unconditionally.
44093         (mbssep): Assume mbrtowc function.
44094         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44095         (mbsspn): Assume mbrtowc function.
44096         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44097         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44098         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44099         (mbstok_r): Assume mbrtowc function.
44100         * lib/propername.c: Include mbuiter.h unconditionally.
44101         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44102         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44103         (trim2): Assume mbrtowc function.
44104         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44105         (mbsnwidth): Assume mbrtowc function.
44106         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44107         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44108         fallback definitions.
44109         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44110
44111 2008-12-22  Bruno Haible  <bruno@clisp.org>
44112
44113         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44114
44115 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44116
44117         * modules/regex: Request emulations for the mb*/wc* functions we need.
44118         * m4/regex.m4: Don't look for those functions here.
44119         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44120
44121 2008-12-22  Bruno Haible  <bruno@clisp.org>
44122
44123         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44124
44125 2008-12-21  Bruno Haible  <bruno@clisp.org>
44126
44127         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44128         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44129         (Include): Remove conditionalization.
44130         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44131         (Include): Remove conditionalization.
44132         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44133         (Include): Remove conditionalization.
44134         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44135         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44136         * NEWS: Mention the change.
44137         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44138         via Sergey Poznyakoff <gray@gnu.org.ua>.
44139
44140 2008-12-21  Bruno Haible  <bruno@clisp.org>
44141
44142         * MODULES.html.sh (Extended multibyte and wide character utilities
44143         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44144         wcrtomb, wcsrtombs.
44145         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44146         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44147         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44148         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44149
44150 2008-12-21  Bruno Haible  <bruno@clisp.org>
44151
44152         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44153
44154 2008-12-21  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/wcsnrtombs-tests: New file.
44157         * tests/test-wcsnrtombs1.sh: New file.
44158         * tests/test-wcsnrtombs2.sh: New file.
44159         * tests/test-wcsnrtombs3.sh: New file.
44160         * tests/test-wcsnrtombs4.sh: New file.
44161         * tests/test-wcsnrtombs.c: New file.
44162
44163         New module 'wcsnrtombs'.
44164         * lib/wchar.in.h (wcsnrtombs): New declaration.
44165         * lib/wcsnrtombs.c: New file.
44166         * lib/wcsrtombs-state.c: New file.
44167         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44168         (internal_state): Remove variable.
44169         * m4/wcsnrtombs.m4: New file.
44170         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44171         compilation units.
44172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44173         HAVE_WCSNRTOMBS.
44174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44175         HAVE_WCSNRTOMBS.
44176         * modules/wcsnrtombs: New file.
44177         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44178         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44179
44180 2008-12-21  Bruno Haible  <bruno@clisp.org>
44181
44182         * modules/wcsrtombs-tests: New file.
44183         * tests/test-wcsrtombs1.sh: New file.
44184         * tests/test-wcsrtombs2.sh: New file.
44185         * tests/test-wcsrtombs3.sh: New file.
44186         * tests/test-wcsrtombs4.sh: New file.
44187         * tests/test-wcsrtombs.c: New file.
44188
44189         New module 'wcsrtombs'.
44190         * lib/wchar.in.h (wcsrtombs): New declaration.
44191         * lib/wcsrtombs.c: New file.
44192         * m4/wcsrtombs.m4: New file.
44193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44194         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44196         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44197         * modules/wcsrtombs: New file.
44198         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44199         bugs.
44200
44201 2008-12-21  Bruno Haible  <bruno@clisp.org>
44202
44203         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44204         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44205         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44206         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44207         if not correct.
44208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44209         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44210         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44211         m4/locale-zh.m4, m4/codeset.m4.
44212         * doc/posix-functions/wcrtomb.texi: Document the bug.
44213
44214 2008-12-21  Bruno Haible  <bruno@clisp.org>
44215
44216         Work around a btowc() bug on IRIX 6.5.
44217         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44218         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44219         REPLACE_WTOBC if not.
44220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44221         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44222         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44223
44224 2008-12-21  Bruno Haible  <bruno@clisp.org>
44225
44226         * modules/wcrtomb-tests: New file.
44227         * tests/test-wcrtomb.sh: New file.
44228         * tests/test-wcrtomb.c: New file.
44229
44230         New module 'wcrtomb'.
44231         * lib/wchar.in.h (wcrtomb): New declaration.
44232         * lib/wcrtomb.c: New file.
44233         * m4/wcrtomb.m4: New file.
44234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44235         HAVE_WCRTOMB.
44236         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44237         HAVE_WCRTOMB.
44238         * modules/wcrtomb: New file.
44239         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44240
44241 2008-12-21  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44244         * modules/mbsrtowcs (Files): Likewise.
44245         * modules/wctob (Files): Likewise.
44246         * modules/c-strcase-tests (Files): Likewise.
44247         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44248         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44249         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44250         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44251         * modules/vasnprintf-posix-tests (Files): Likewise.
44252
44253 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44254
44255         gitlog-to-changelog: pass all command-line arguments to git-log
44256         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44257         it is sometimes convenient to filter the commits in various ways.
44258         gitlog-to-changelog only allows --since to specify a start date,
44259         but git-log itself supports many other filtering mechanisms.
44260         At the moment, I want to filter by branch name.  Rather than
44261         adding a --branch option to gitlog-to-changelog, it seems more
44262         flexible to simply pass all options directly to git-log and let
44263         git do the work.  Notice that this effectively makes --since a
44264         redundant option for gitlog-to-changelog, but removing it would
44265         require current usage to change since calls would then require
44266         an additional '--'.
44267
44268 2008-12-21  Bruno Haible  <bruno@clisp.org>
44269
44270         * modules/mbsnrtowcs-tests: New file.
44271         * tests/test-mbsnrtowcs1.sh: New file.
44272         * tests/test-mbsnrtowcs2.sh: New file.
44273         * tests/test-mbsnrtowcs3.sh: New file.
44274         * tests/test-mbsnrtowcs4.sh: New file.
44275         * tests/test-mbsnrtowcs.c: New file.
44276
44277         New module 'mbsnrtowcs'.
44278         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44279         * lib/mbsnrtowcs.c: New file.
44280         * lib/mbsrtowcs-state.c: New file.
44281         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44282         (internal_state): Remove variable.
44283         * m4/mbsnrtowcs.m4: New file.
44284         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44285         compilation units.
44286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44287         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44288         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44289         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44290         * modules/mbsnrtowcs: New file.
44291         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44292         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44293         portability problem.
44294
44295 2008-12-21  Bruno Haible  <bruno@clisp.org>
44296
44297         Work around mbsrtowcs bug.
44298         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44299         (gl_FUNC_MBSRTOWCS): Invoke it.
44300         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44301         m4/locale-zh.m4.
44302         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44303
44304 2008-12-21  Bruno Haible  <bruno@clisp.org>
44305
44306         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44307
44308 2008-12-21  Bruno Haible  <bruno@clisp.org>
44309
44310         Update doc for AIX.
44311         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44312         16-bit wchar_t type.
44313         * doc/posix-functions/btowc.texi: Likewise.
44314         * doc/posix-functions/fgetwc.texi: Likewise.
44315         * doc/posix-functions/fgetws.texi: Likewise.
44316         * doc/posix-functions/fputwc.texi: Likewise.
44317         * doc/posix-functions/fputws.texi: Likewise.
44318         * doc/posix-functions/fwide.texi: Likewise.
44319         * doc/posix-functions/fwprintf.texi: Likewise.
44320         * doc/posix-functions/fwscanf.texi: Likewise.
44321         * doc/posix-functions/getwchar.texi: Likewise.
44322         * doc/posix-functions/getwc.texi: Likewise.
44323         * doc/posix-functions/iswalnum.texi: Likewise.
44324         * doc/posix-functions/iswalpha.texi: Likewise.
44325         * doc/posix-functions/iswblank.texi: Likewise.
44326         * doc/posix-functions/iswcntrl.texi: Likewise.
44327         * doc/posix-functions/iswctype.texi: Likewise.
44328         * doc/posix-functions/iswdigit.texi: Likewise.
44329         * doc/posix-functions/iswgraph.texi: Likewise.
44330         * doc/posix-functions/iswlower.texi: Likewise.
44331         * doc/posix-functions/iswprint.texi: Likewise.
44332         * doc/posix-functions/iswpunct.texi: Likewise.
44333         * doc/posix-functions/iswspace.texi: Likewise.
44334         * doc/posix-functions/iswupper.texi: Likewise.
44335         * doc/posix-functions/iswxdigit.texi: Likewise.
44336         * doc/posix-functions/mbrtowc.texi: Likewise.
44337         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44338         * doc/posix-functions/mbstowcs.texi: Likewise.
44339         * doc/posix-functions/mbtowc.texi: Likewise.
44340         * doc/posix-functions/putwchar.texi: Likewise.
44341         * doc/posix-functions/putwc.texi: Likewise.
44342         * doc/posix-functions/swprintf.texi: Likewise.
44343         * doc/posix-functions/tolower.texi: Likewise.
44344         * doc/posix-functions/toupper.texi: Likewise.
44345         * doc/posix-functions/towctrans.texi: Likewise.
44346         * doc/posix-functions/ungetwc.texi: Likewise.
44347         * doc/posix-functions/vswprintf.texi: Likewise.
44348         * doc/posix-functions/wcrtomb.texi: Likewise.
44349         * doc/posix-functions/wcscat.texi: Likewise.
44350         * doc/posix-functions/wcschr.texi: Likewise.
44351         * doc/posix-functions/wcscmp.texi: Likewise.
44352         * doc/posix-functions/wcscoll.texi: Likewise.
44353         * doc/posix-functions/wcscpy.texi: Likewise.
44354         * doc/posix-functions/wcscspn.texi: Likewise.
44355         * doc/posix-functions/wcsftime.texi: Likewise.
44356         * doc/posix-functions/wcslen.texi: Likewise.
44357         * doc/posix-functions/wcsncat.texi: Likewise.
44358         * doc/posix-functions/wcsncmp.texi: Likewise.
44359         * doc/posix-functions/wcsncpy.texi: Likewise.
44360         * doc/posix-functions/wcspbrk.texi: Likewise.
44361         * doc/posix-functions/wcsrchr.texi: Likewise.
44362         * doc/posix-functions/wcsrtombs.texi: Likewise.
44363         * doc/posix-functions/wcsspn.texi: Likewise.
44364         * doc/posix-functions/wcsstr.texi: Likewise.
44365         * doc/posix-functions/wcstod.texi: Likewise.
44366         * doc/posix-functions/wcstof.texi: Likewise.
44367         * doc/posix-functions/wcstoimax.texi: Likewise.
44368         * doc/posix-functions/wcstok.texi: Likewise.
44369         * doc/posix-functions/wcstold.texi: Likewise.
44370         * doc/posix-functions/wcstoll.texi: Likewise.
44371         * doc/posix-functions/wcstol.texi: Likewise.
44372         * doc/posix-functions/wcstombs.texi: Likewise.
44373         * doc/posix-functions/wcstoull.texi: Likewise.
44374         * doc/posix-functions/wcstoul.texi: Likewise.
44375         * doc/posix-functions/wcstoumax.texi: Likewise.
44376         * doc/posix-functions/wcswidth.texi: Likewise.
44377         * doc/posix-functions/wcsxfrm.texi: Likewise.
44378         * doc/posix-functions/wctob.texi: Likewise.
44379         * doc/posix-functions/wctomb.texi: Likewise.
44380         * doc/posix-functions/wctrans.texi: Likewise.
44381         * doc/posix-functions/wctype.texi: Likewise.
44382         * doc/posix-functions/wcwidth.texi: Likewise.
44383         * doc/posix-functions/wmemchr.texi: Likewise.
44384         * doc/posix-functions/wmemcmp.texi: Likewise.
44385         * doc/posix-functions/wmemcpy.texi: Likewise.
44386         * doc/posix-functions/wmemmove.texi: Likewise.
44387         * doc/posix-functions/wmemset.texi: Likewise.
44388         * doc/posix-functions/wprintf.texi: Likewise.
44389         * doc/posix-functions/wscanf.texi: Likewise.
44390
44391 2008-12-21  Bruno Haible  <bruno@clisp.org>
44392
44393         Update doc for HP-UX 11.11.
44394         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44395         in HP-UX version 11.00, not in all versions of HP-UX 11.
44396         * doc/posix-functions/fwide.texi: Likewise.
44397         * doc/posix-functions/fwprintf.texi: Likewise.
44398         * doc/posix-functions/fwscanf.texi: Likewise.
44399         * doc/posix-functions/inet_ntop.texi: Likewise.
44400         * doc/posix-functions/inet_pton.texi: Likewise.
44401         * doc/posix-functions/mbrlen.texi: Likewise.
44402         * doc/posix-functions/mbrtowc.texi: Likewise.
44403         * doc/posix-functions/mbsinit.texi: Likewise.
44404         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44405         * doc/posix-functions/swprintf.texi: Likewise.
44406         * doc/posix-functions/swscanf.texi: Likewise.
44407         * doc/posix-functions/towctrans.texi: Likewise.
44408         * doc/posix-functions/vfwprintf.texi: Likewise.
44409         * doc/posix-functions/vswprintf.texi: Likewise.
44410         * doc/posix-functions/vwprintf.texi: Likewise.
44411         * doc/posix-functions/wcrtomb.texi: Likewise.
44412         * doc/posix-functions/wcsrtombs.texi: Likewise.
44413         * doc/posix-functions/wcsstr.texi: Likewise.
44414         * doc/posix-functions/wctob.texi: Likewise.
44415         * doc/posix-functions/wctrans.texi: Likewise.
44416         * doc/posix-functions/wmemchr.texi: Likewise.
44417         * doc/posix-functions/wmemcmp.texi: Likewise.
44418         * doc/posix-functions/wmemcpy.texi: Likewise.
44419         * doc/posix-functions/wmemmove.texi: Likewise.
44420         * doc/posix-functions/wmemset.texi: Likewise.
44421         * doc/posix-functions/wprintf.texi: Likewise.
44422         * doc/posix-functions/wscanf.texi: Likewise.
44423
44424 2008-12-21  Bruno Haible  <bruno@clisp.org>
44425
44426         Work around a portability problem.
44427         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44428         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44429
44430 2008-12-20  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44433         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44434         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44436         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44437
44438         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44439         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44440         set.
44441         (GNULIB_defined_mbstate_t): New macro.
44442         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44443         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44444         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44445         reuses the system's mbrtowc function but works around the bugs.
44446         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44447         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44448         macros.
44449         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44450         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44451         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44453         REPLACE_MBSINIT if mbsinit needs to be overridden.
44454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44455         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44456         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44457         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44458         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44459         m4/locale-zh.m4.
44460         (Depends): Add mbsinit.
44461         * modules/mbsinit (Depends): Add mbrtowc.
44462         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44463
44464 2008-12-20  Bruno Haible  <bruno@clisp.org>
44465
44466         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44467         so that there are no conversion errors on AIX.
44468         * tests/test-mbsrtowcs.c (main): LIkewise.
44469
44470 2008-12-20  Bruno Haible  <bruno@clisp.org>
44471
44472         Work around wctob bug on Solaris <= 9.
44473         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44474         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44476         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44477         * modules/wctob (Files): Add m4/locale-fr.m4.
44478         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44479
44480 2008-12-20  Bruno Haible  <bruno@clisp.org>
44481
44482         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44483         /dev/null.
44484         * tests/test-select-in.sh: Likewise.
44485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44486
44487 2008-12-20  Bruno Haible  <bruno@clisp.org>
44488
44489         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44490         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44491         Cygwin 1.5.x.
44492
44493 2008-12-20  Bruno Haible  <bruno@clisp.org>
44494
44495         Ensure mbstate_t is defined on HP-UX 11.11.
44496         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44497         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44498         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44499         AC_USE_SYSTEM_EXTENSIONS.
44500         * modules/fnmatch (Depends-on): Add extensions.
44501         * modules/mbrlen (Depends-on): Likewise.
44502         * modules/mbrtowc (Depends-on): Likewise.
44503         * modules/mbsinit (Depends-on): Likewise.
44504         * modules/mbsrtowcs (Depends-on): Likewise.
44505         * modules/mbswidth (Depends-on): Likewise.
44506         * modules/quotearg (Depends-on): Likewise.
44507         * modules/strftime (Depends-on): Likewise.
44508
44509 2008-12-20  Bruno Haible  <bruno@clisp.org>
44510
44511         Ensure wctob is declared on IRIX 6.5.
44512         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44513         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44514         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44516         of HAVE_WCTOB.
44517         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44518         HAVE_WCTOB.
44519         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44520
44521 2008-12-19  Bruno Haible  <bruno@clisp.org>
44522
44523         * modules/mbsrtowcs-tests: New file.
44524         * tests/test-mbsrtowcs1.sh: New file.
44525         * tests/test-mbsrtowcs2.sh: New file.
44526         * tests/test-mbsrtowcs3.sh: New file.
44527         * tests/test-mbsrtowcs4.sh: New file.
44528         * tests/test-mbsrtowcs.c: New file.
44529
44530         New module 'mbsrtowcs'.
44531         * lib/wchar.in.h (mbsrtowcs): New declaration.
44532         * lib/mbsrtowcs.c: New file.
44533         * m4/mbsrtowcs.m4: New file.
44534         * modules/mbsrtowcs: New file.
44535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44536         HAVE_MBSRTOWCS.
44537         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44538         HAVE_MBSRTOWCS.
44539         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44540
44541 2008-12-19  Bruno Haible  <bruno@clisp.org>
44542
44543         New module 'mbrlen'.
44544         * lib/wchar.in.h (mbrlen): New declaration.
44545         * lib/mbrlen.c: New file.
44546         * m4/mbrlen.m4: New file.
44547         * modules/mbrlen: New file.
44548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44549         HAVE_MBRLEN.
44550         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44551         HAVE_MBRLEN.
44552         * doc/posix-functions/mbrlen.texi: Document the new module.
44553
44554 2008-12-19  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44557         * modules/mbrtowc (Depends-on): Add verify.
44558         Suggested by Paul Eggert.
44559
44560 2008-12-18  Bruno Haible  <bruno@clisp.org>
44561
44562         * modules/mbsinit-tests: New file.
44563         * tests/test-mbsinit.sh: New file.
44564         * tests/test-mbsinit.c: New file.
44565
44566 2008-12-18  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/mbrtowc-tests: New file.
44569         * tests/test-mbrtowc1.sh: New file.
44570         * tests/test-mbrtowc2.sh: New file.
44571         * tests/test-mbrtowc3.sh: New file.
44572         * tests/test-mbrtowc4.sh: New file.
44573         * tests/test-mbrtowc.c: New file.
44574
44575         New module 'mbrtowc'.
44576         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44577         mbsinit and mbrtowc.
44578         (mbrtowc): New declaration.
44579         * lib/mbrtowc.c: New file.
44580         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44581         * modules/mbrtowc: New file.
44582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44583         HAVE_MBRTOWC.
44584         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44585         HAVE_MBRTOWC.
44586         * doc/posix-functions/mbrtowc.texi: Document the new module.
44587
44588 2008-12-18  Bruno Haible  <bruno@clisp.org>
44589
44590         New module 'wctob'.
44591         * lib/wchar.in.h (wctob): New declaration.
44592         * lib/wctob.c: New file.
44593         * m4/wctob.m4: New file.
44594         * modules/wctob: New file.
44595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44596         HAVE_WCTOB.
44597         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44598         * doc/posix-functions/wctob.texi: Document the new module.
44599
44600 2008-12-18  Bruno Haible  <bruno@clisp.org>
44601
44602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44603         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44604
44605 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44606
44607         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44608         G. Christensen" <tgc@jupiterrise.com>.
44609
44610         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44611         G. Christensen" <tgc@jupiterrise.com>.
44612
44613         * lib/flock.c: Need to include string.h.  Reported by "Tom
44614         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44615         <ebb9@byu.net>.
44616
44617 2008-12-18  Bruno Haible  <bruno@clisp.org>
44618
44619         * m4/locale-ja.m4: New file, from GNU gettext.
44620
44621 2008-12-17  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44624         Suggested by Eric Blake.
44625
44626 2008-12-17  Bruno Haible  <bruno@clisp.org>
44627
44628         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44629
44630 2008-12-17  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44633         * modules/mbsinit (Depends-on): Add verify.
44634         Suggested by Paul Eggert.
44635
44636 2008-12-17  Bruno Haible  <bruno@clisp.org>
44637
44638         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44639         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44640         gl_FUNC_MBRTOWC.
44641         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44642         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44643         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44644         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44645         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44646         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44647         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44648         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44649         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44650         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44651         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44652         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44653         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44654         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44655         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44656         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44657         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44658         * modules/trim (configure.ac): Likewise.
44659
44660 2008-12-17  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/btowc-tests: New file.
44663         * tests/test-btowc1.sh: New file.
44664         * tests/test-btowc2.sh: New file.
44665         * tests/test-btowc.c: New file.
44666
44667         New module 'btowc'.
44668         * lib/wchar.in.h (btowc): New declaration.
44669         * lib/btowc.c: New file.
44670         * m4/btowc.m4: New file.
44671         * modules/btowc: New file.
44672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44673         HAVE_BTOWC.
44674         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44675         * doc/posix-functions/btowc.texi: Document the new module.
44676
44677 2008-12-17  Bruno Haible  <bruno@clisp.org>
44678
44679         New module 'mbsinit'.
44680         * lib/wchar.in.h (mbsinit): New declaration.
44681         * lib/mbsinit.c: New file.
44682         * m4/mbsinit.m4: New file.
44683         * modules/mbsinit: New file.
44684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44685         HAVE_MBSINIT.
44686         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44687         HAVE_MBSINIT.
44688         * doc/posix-functions/mbsinit.texi: Document the new module.
44689
44690 2008-12-16  Bruno Haible  <bruno@clisp.org>
44691
44692         * lib/unistd.in.h: Add comment.
44693         * tests/test-environ.c: Don't include <stdlib.h>.
44694
44695 2008-12-16  Bruno Haible  <bruno@clisp.org>
44696
44697         * lib/parse-duration.h (parse_duration): Document return value
44698         convention.
44699         * lib/parse-duration.c: Include specification header first. Add
44700         comments.
44701         (_): Remove macro.
44702         (parse_year_month_day, parse_hour_minute_second): Move side effects
44703         outside of strchr call.
44704         (parse_non_iso8601): Move side effects outside of isspace call.
44705         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44706         call.
44707
44708 2008-12-16  Bruno Haible  <bruno@clisp.org>
44709
44710         * tests/test-parse-duration.sh: Produce no output when the test
44711         succeeds.
44712
44713 2008-12-16  Bruno Haible  <bruno@clisp.org>
44714
44715         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44716         expressions.
44717
44718 2008-12-15  Bruno Haible  <bruno@clisp.org>
44719
44720         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44721         * doc/glibc-functions/flistxattr.texi: Likewise.
44722         * doc/glibc-functions/fopencookie.texi: Likewise.
44723         * doc/glibc-functions/fremovexattr.texi: Likewise.
44724         * doc/glibc-functions/fsetxattr.texi: Likewise.
44725         * doc/glibc-functions/getxattr.texi: Likewise.
44726         * doc/glibc-functions/lgetxattr.texi: Likewise.
44727         * doc/glibc-functions/listxattr.texi: Likewise.
44728         * doc/glibc-functions/llistxattr.texi: Likewise.
44729         * doc/glibc-functions/lremovexattr.texi: Likewise.
44730         * doc/glibc-functions/lsetxattr.texi: Likewise.
44731         * doc/glibc-functions/removexattr.texi: Likewise.
44732         * doc/glibc-functions/setxattr.texi: Likewise.
44733         * doc/posix-functions/open_memstream.texi: Likewise.
44734
44735 2008-12-15  Eric Blake  <ebb9@byu.net>
44736
44737         Update doc for cygwin 1.7.
44738         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44739         functions.
44740         * doc/posix-functions/fchmodat.texi: Likewise.
44741         * doc/posix-functions/fchownat.texi: Likewise.
44742         * doc/posix-functions/fdopendir.texi: Likewise.
44743         * doc/posix-functions/fmemopen.texi: Likewise.
44744         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44745         * doc/posix-functions/fstatat.texi: Likewise.
44746         * doc/posix-functions/futimens.texi: Likewise.
44747         * doc/posix-functions/gai_strerror.texi: Likewise.
44748         * doc/posix-functions/getaddrinfo.texi: Likewise.
44749         * doc/posix-functions/getnameinfo.texi: Likewise.
44750         * doc/posix-functions/if_freenameindex.texi: Likewise.
44751         * doc/posix-functions/if_indextoname.texi: Likewise.
44752         * doc/posix-functions/if_nameindex.texi: Likewise.
44753         * doc/posix-functions/if_nametoindex.texi: Likewise.
44754         * doc/posix-functions/insque.texi: Likewise.
44755         * doc/posix-functions/linkat.texi: Likewise.
44756         * doc/posix-functions/llrint.texi: Likewise.
44757         * doc/posix-functions/llrintf.texi: Likewise.
44758         * doc/posix-functions/llrintl.texi: Likewise.
44759         * doc/posix-functions/lockf.texi: Likewise.
44760         * doc/posix-functions/lrintl.texi: Likewise.
44761         * doc/posix-functions/mkdirat.texi: Likewise.
44762         * doc/posix-functions/mkfifoat.texi: Likewise.
44763         * doc/posix-functions/mknodat.texi: Likewise.
44764         * doc/posix-functions/mq_close.texi: Likewise.
44765         * doc/posix-functions/mq_getattr.texi: Likewise.
44766         * doc/posix-functions/mq_notify.texi: Likewise.
44767         * doc/posix-functions/mq_open.texi: Likewise.
44768         * doc/posix-functions/mq_receive.texi: Likewise.
44769         * doc/posix-functions/mq_send.texi: Likewise.
44770         * doc/posix-functions/mq_setattr.texi: Likewise.
44771         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44772         * doc/posix-functions/mq_timedsend.texi: Likewise.
44773         * doc/posix-functions/mq_unlink.texi: Likewise.
44774         * doc/posix-functions/open_memstream.texi: Likewise.
44775         * doc/posix-functions/openat.texi: Likewise.
44776         * doc/posix-functions/posix_fadvise.texi: Likewise.
44777         * doc/posix-functions/posix_fallocate.texi: Likewise.
44778         * doc/posix-functions/posix_madvise.texi: Likewise.
44779         * doc/posix-functions/posix_memalign.texi: Likewise.
44780         * doc/posix-functions/posix_openpt.texi: Likewise.
44781         * doc/posix-functions/readlinkat.texi: Likewise.
44782         * doc/posix-functions/remque.texi: Likewise.
44783         * doc/posix-functions/renameat.texi: Likewise.
44784         * doc/posix-functions/rintl.texi: Likewise.
44785         * doc/posix-functions/sem_unlink.texi: Likewise.
44786         * doc/posix-functions/shm_open.texi: Likewise.
44787         * doc/posix-functions/shm_unlink.texi: Likewise.
44788         * doc/posix-functions/signgam.texi: Likewise.
44789         * doc/posix-functions/sigset.texi: Likewise.
44790         * doc/posix-functions/stpcpy.texi: Likewise.
44791         * doc/posix-functions/stpncpy.texi: Likewise.
44792         * doc/posix-functions/strerror.texi: Likewise.
44793         * doc/posix-functions/strtod.texi: Likewise.
44794         * doc/posix-functions/symlinkat.texi: Likewise.
44795         * doc/posix-functions/unlinkat.texi: Likewise.
44796         * doc/posix-functions/utimensat.texi: Likewise.
44797         * doc/glibc-functions/bindresvport.texi: Likewise.
44798         * doc/glibc-functions/dn_expand.texi: Likewise.
44799         * doc/glibc-functions/exp10.texi: Likewise.
44800         * doc/glibc-functions/exp10f.texi: Likewise.
44801         * doc/glibc-functions/fgetxattr.texi: Likewise.
44802         * doc/glibc-functions/flistxattr.texi: Likewise.
44803         * doc/glibc-functions/fopencookie.texi: Likewise.
44804         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44805         * doc/glibc-functions/fremovexattr.texi: Likewise.
44806         * doc/glibc-functions/fsetxattr.texi: Likewise.
44807         * doc/glibc-functions/getifaddrs.texi: Likewise.
44808         * doc/glibc-functions/getxattr.texi: Likewise.
44809         * doc/glibc-functions/lgetxattr.texi: Likewise.
44810         * doc/glibc-functions/listxattr.texi: Likewise.
44811         * doc/glibc-functions/llistxattr.texi: Likewise.
44812         * doc/glibc-functions/lremovexattr.texi: Likewise.
44813         * doc/glibc-functions/lsetxattr.texi: Likewise.
44814         * doc/glibc-functions/pow10.texi: Likewise.
44815         * doc/glibc-functions/pow10f.texi: Likewise.
44816         * doc/glibc-functions/rcmd_af.texi: Likewise.
44817         * doc/glibc-functions/removexattr.texi: Likewise.
44818         * doc/glibc-functions/res_init.texi: Likewise.
44819         * doc/glibc-functions/res_mkquery.texi: Likewise.
44820         * doc/glibc-functions/res_query.texi: Likewise.
44821         * doc/glibc-functions/res_querydomain.texi: Likewise.
44822         * doc/glibc-functions/res_send.texi: Likewise.
44823         * doc/glibc-functions/rresvport_af.texi: Likewise.
44824         * doc/glibc-functions/setxattr.texi: Likewise.
44825         * doc/glibc-functions/strcasestr.texi: Likewise.
44826
44827 2008-12-15  Bruno Haible  <bruno@clisp.org>
44828
44829         Fix compilation error on OSF/1 4.0.
44830         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44831         <sys/time.h>, simply delegate to the system header.
44832         Reported by Daniel Richard G. <oss@teragram.com>.
44833
44834 2008-12-15  Bruno Haible  <bruno@clisp.org>
44835
44836         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44837         * doc/posix-functions/fchmodat.texi: Likewise.
44838         * doc/posix-functions/fchownat.texi: Likewise.
44839         * doc/posix-functions/fdopendir.texi: Likewise.
44840         * doc/posix-functions/fstatat.texi: Likewise.
44841         * doc/posix-functions/mkdirat.texi: Likewise.
44842         * doc/posix-functions/unlinkat.texi: Likewise.
44843
44844 2008-12-14  Bruno Haible  <bruno@clisp.org>
44845
44846         Update doc for POSIX:2008.
44847         * doc/posix-functions/faccessat.texi: New file.
44848         * doc/posix-functions/fchmodat.texi: New file.
44849         * doc/posix-functions/fchownat.texi: New file.
44850         * doc/posix-functions/fdopendir.texi: New file.
44851         * doc/posix-functions/fstatat.texi: New file.
44852         * doc/posix-functions/futimens.texi: New file.
44853         * doc/posix-functions/linkat.texi: New file.
44854         * doc/posix-functions/mkdirat.texi: New file.
44855         * doc/posix-functions/mkfifoat.texi: New file.
44856         * doc/posix-functions/mknodat.texi: New file.
44857         * doc/posix-functions/open_wmemstream.texi: New file.
44858         * doc/posix-functions/openat.texi: New file.
44859         * doc/posix-functions/psiginfo.texi: New file.
44860         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44861         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44862         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44863         * doc/posix-functions/readlinkat.texi: New file.
44864         * doc/posix-functions/renameat.texi: New file.
44865         * doc/posix-functions/strerror_l.texi: New file.
44866         * doc/posix-functions/symlinkat.texi: New file.
44867         * doc/posix-functions/unlinkat.texi: New file.
44868         * doc/posix-functions/utimensat.texi: New file.
44869         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44870
44871 2008-12-14  Bruno Haible  <bruno@clisp.org>
44872
44873         Update doc for POSIX:2008.
44874         * doc/posix-functions/alphasort.texi: Renamed from
44875         doc/glibc-functions/alphasort.texi.
44876         * doc/posix-functions/dirfd.texi: Renamed from
44877         doc/glibc-functions/dirfd.texi.
44878         * doc/posix-functions/dprintf.texi: Renamed from
44879         doc/glibc-functions/dprintf.texi.
44880         * doc/posix-functions/duplocale.texi: Renamed from
44881         doc/glibc-functions/duplocale.texi.
44882         * doc/posix-functions/fexecve.texi: Renamed from
44883         doc/glibc-functions/fexecve.texi.
44884         * doc/posix-functions/fmemopen.texi: Renamed from
44885         doc/glibc-functions/fmemopen.texi.
44886         * doc/posix-functions/freelocale.texi: Renamed from
44887         doc/glibc-functions/freelocale.texi.
44888         * doc/posix-functions/getdate_err.texi: Renamed from
44889         doc/glibc-functions/getdate_err.texi.
44890         * doc/posix-functions/isalnum_l.texi: Renamed from
44891         doc/glibc-functions/isalnum_l.texi.
44892         * doc/posix-functions/isalpha_l.texi: Renamed from
44893         doc/glibc-functions/isalpha_l.texi.
44894         * doc/posix-functions/isblank_l.texi: Renamed from
44895         doc/glibc-functions/isblank_l.texi.
44896         * doc/posix-functions/iscntrl_l.texi: Renamed from
44897         doc/glibc-functions/iscntrl_l.texi.
44898         * doc/posix-functions/isdigit_l.texi: Renamed from
44899         doc/glibc-functions/isdigit_l.texi.
44900         * doc/posix-functions/isgraph_l.texi: Renamed from
44901         doc/glibc-functions/isgraph_l.texi.
44902         * doc/posix-functions/islower_l.texi: Renamed from
44903         doc/glibc-functions/islower_l.texi.
44904         * doc/posix-functions/isprint_l.texi: Renamed from
44905         doc/glibc-functions/isprint_l.texi.
44906         * doc/posix-functions/ispunct_l.texi: Renamed from
44907         doc/glibc-functions/ispunct_l.texi.
44908         * doc/posix-functions/isspace_l.texi: Renamed from
44909         doc/glibc-functions/isspace_l.texi.
44910         * doc/posix-functions/isupper_l.texi: Renamed from
44911         doc/glibc-functions/isupper_l.texi.
44912         * doc/posix-functions/iswalnum_l.texi: Renamed from
44913         doc/glibc-functions/iswalnum_l.texi.
44914         * doc/posix-functions/iswalpha_l.texi: Renamed from
44915         doc/glibc-functions/iswalpha_l.texi.
44916         * doc/posix-functions/iswblank_l.texi: Renamed from
44917         doc/glibc-functions/iswblank_l.texi.
44918         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44919         doc/glibc-functions/iswcntrl_l.texi.
44920         * doc/posix-functions/iswctype_l.texi: Renamed from
44921         doc/glibc-functions/iswctype_l.texi.
44922         * doc/posix-functions/iswdigit_l.texi: Renamed from
44923         doc/glibc-functions/iswdigit_l.texi.
44924         * doc/posix-functions/iswgraph_l.texi: Renamed from
44925         doc/glibc-functions/iswgraph_l.texi.
44926         * doc/posix-functions/iswlower_l.texi: Renamed from
44927         doc/glibc-functions/iswlower_l.texi.
44928         * doc/posix-functions/iswprint_l.texi: Renamed from
44929         doc/glibc-functions/iswprint_l.texi.
44930         * doc/posix-functions/iswpunct_l.texi: Renamed from
44931         doc/glibc-functions/iswpunct_l.texi.
44932         * doc/posix-functions/iswspace_l.texi: Renamed from
44933         doc/glibc-functions/iswspace_l.texi.
44934         * doc/posix-functions/iswupper_l.texi: Renamed from
44935         doc/glibc-functions/iswupper_l.texi.
44936         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44937         doc/glibc-functions/iswxdigit_l.texi.
44938         * doc/posix-functions/isxdigit_l.texi: Renamed from
44939         doc/glibc-functions/isxdigit_l.texi.
44940         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44941         doc/glibc-functions/mbsnrtowcs.texi.
44942         * doc/posix-functions/mkdtemp.texi: Renamed from
44943         doc/glibc-functions/mkdtemp.texi.
44944         * doc/posix-functions/newlocale.texi: Renamed from
44945         doc/glibc-functions/newlocale.texi.
44946         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44947         doc/glibc-functions/nl_langinfo_l.texi.
44948         * doc/posix-functions/open_memstream.texi: Renamed from
44949         doc/glibc-functions/open_memstream.texi.
44950         * doc/posix-functions/opterr.texi: Renamed from
44951         doc/glibc-functions/opterr.texi.
44952         * doc/posix-functions/optind.texi: Renamed from
44953         doc/glibc-functions/optind.texi.
44954         * doc/posix-functions/optopt.texi: Renamed from
44955         doc/glibc-functions/optopt.texi.
44956         * doc/posix-functions/psignal.texi: Renamed from
44957         doc/glibc-functions/psignal.texi.
44958         * doc/posix-functions/scandir.texi: Renamed from
44959         doc/glibc-functions/scandir.texi.
44960         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44961         doc/glibc-functions/sched_get_priority_min.texi.
44962         * doc/posix-functions/signgam.texi: Renamed from
44963         doc/glibc-functions/signgam.texi.
44964         * doc/posix-functions/stpcpy.texi: Renamed from
44965         doc/glibc-functions/stpcpy.texi.
44966         * doc/posix-functions/stpncpy.texi: Renamed from
44967         doc/glibc-functions/stpncpy.texi.
44968         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44969         doc/glibc-functions/strcasecmp_l.texi.
44970         * doc/posix-functions/strcoll_l.texi: Renamed from
44971         doc/glibc-functions/strcoll_l.texi.
44972         * doc/posix-functions/strfmon_l.texi: Renamed from
44973         doc/glibc-functions/strfmon_l.texi.
44974         * doc/posix-functions/strftime_l.texi: Renamed from
44975         doc/glibc-functions/strftime_l.texi.
44976         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44977         doc/glibc-functions/strncasecmp_l.texi.
44978         * doc/posix-functions/strndup.texi: Renamed from
44979         doc/glibc-functions/strndup.texi.
44980         * doc/posix-functions/strnlen.texi: Renamed from
44981         doc/glibc-functions/strnlen.texi.
44982         * doc/posix-functions/strsignal.texi: Renamed from
44983         doc/glibc-functions/strsignal.texi.
44984         * doc/posix-functions/strxfrm_l.texi: Renamed from
44985         doc/glibc-functions/strxfrm_l.texi.
44986         * doc/posix-functions/timer_gettime.texi: Renamed from
44987         doc/glibc-functions/timer_gettime.texi.
44988         * doc/posix-functions/tolower_l.texi: Renamed from
44989         doc/glibc-functions/tolower_l.texi.
44990         * doc/posix-functions/toupper_l.texi: Renamed from
44991         doc/glibc-functions/toupper_l.texi.
44992         * doc/posix-functions/towctrans_l.texi: Renamed from
44993         doc/glibc-functions/towctrans_l.texi.
44994         * doc/posix-functions/towlower_l.texi: Renamed from
44995         doc/glibc-functions/towlower_l.texi.
44996         * doc/posix-functions/towupper_l.texi: Renamed from
44997         doc/glibc-functions/towupper_l.texi.
44998         * doc/posix-functions/uselocale.texi: Renamed from
44999         doc/glibc-functions/uselocale.texi.
45000         * doc/posix-functions/vdprintf.texi: Renamed from
45001         doc/glibc-functions/vdprintf.texi.
45002         * doc/posix-functions/wcpcpy.texi:
45003         Renamed from doc/glibc-functions/wcpcpy.texi.
45004         * doc/posix-functions/wcpncpy.texi: Renamed from
45005         doc/glibc-functions/wcpncpy.texi.
45006         * doc/posix-functions/wcscasecmp.texi: Renamed from
45007         doc/glibc-functions/wcscasecmp.texi.
45008         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45009         doc/glibc-functions/wcscasecmp_l.texi.
45010         * doc/posix-functions/wcscoll_l.texi: Renamed from
45011         doc/glibc-functions/wcscoll_l.texi.
45012         * doc/posix-functions/wcsdup.texi: Renamed from
45013         doc/glibc-functions/wcsdup.texi.
45014         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45015         doc/glibc-functions/wcsncasecmp.texi.
45016         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45017         doc/glibc-functions/wcsncasecmp_l.texi.
45018         * doc/posix-functions/wcsnlen.texi: Renamed from
45019         doc/glibc-functions/wcsnlen.texi.
45020         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45021         doc/glibc-functions/wcsnrtombs.texi.
45022         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45023         doc/glibc-functions/wcsxfrm_l.texi.
45024         * doc/posix-functions/wctrans_l.texi: Renamed from
45025         doc/glibc-functions/wctrans_l.texi.
45026         * doc/posix-functions/wctype_l.texi: Renamed from
45027         doc/glibc-functions/wctype_l.texi.
45028         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45029         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45030         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45031         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45032         these subsections.
45033         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45034         Remove sections.
45035
45036 2008-12-14  Bruno Haible  <bruno@clisp.org>
45037
45038         Update doc for POSIX:2008.
45039         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45040
45041 2008-12-14  Bruno Haible  <bruno@clisp.org>
45042
45043         Update doc for POSIX:2008.
45044         * doc/pastposix-functions/bcmp.texi: Renamed from
45045         doc/posix-functions/bcmp.texi.
45046         * doc/pastposix-functions/bcopy.texi: Renamed from
45047         doc/posix-functions/bcopy.texi.
45048         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45049         doc/posix-functions/bsd_signal.texi.
45050         * doc/pastposix-functions/bzero.texi: Renamed from
45051         doc/posix-functions/bzero.texi.
45052         * doc/pastposix-functions/ecvt.texi: Renamed from
45053         doc/posix-functions/ecvt.texi.
45054         * doc/pastposix-functions/fcvt.texi: Renamed from
45055         doc/posix-functions/fcvt.texi.
45056         * doc/pastposix-functions/ftime.texi: Renamed from
45057         doc/posix-functions/ftime.texi.
45058         * doc/pastposix-functions/gcvt.texi: Renamed from
45059         doc/posix-functions/gcvt.texi.
45060         * doc/pastposix-functions/getcontext.texi: Renamed from
45061         doc/posix-functions/getcontext.texi.
45062         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45063         doc/posix-functions/gethostbyaddr.texi.
45064         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45065         doc/posix-functions/gethostbyname.texi.
45066         * doc/pastposix-functions/getwd.texi: Renamed from
45067         doc/posix-functions/getwd.texi.
45068         * doc/pastposix-functions/h_errno.texi: Renamed from
45069         doc/posix-functions/h_errno.texi.
45070         * doc/pastposix-functions/index.texi: Renamed from
45071         doc/posix-functions/index.texi.
45072         * doc/pastposix-functions/makecontext.texi: Renamed from
45073         doc/posix-functions/makecontext.texi.
45074         * doc/pastposix-functions/mktemp.texi: Renamed from
45075         doc/posix-functions/mktemp.texi.
45076         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45077         doc/posix-functions/pthread_attr_getstackaddr.texi.
45078         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45079         doc/posix-functions/pthread_attr_setstackaddr.texi.
45080         * doc/pastposix-functions/rindex.texi: Renamed from
45081         doc/posix-functions/rindex.texi.
45082         * doc/pastposix-functions/scalb.texi: Renamed from
45083         doc/posix-functions/scalb.texi.
45084         * doc/pastposix-functions/setcontext.texi: Renamed from
45085         doc/posix-functions/setcontext.texi.
45086         * doc/pastposix-functions/swapcontext.texi: Renamed from
45087         doc/posix-functions/swapcontext.texi.
45088         * doc/pastposix-functions/ualarm.texi: Renamed from
45089         doc/posix-functions/ualarm.texi.
45090         * doc/pastposix-functions/usleep.texi: Renamed from
45091         doc/posix-functions/usleep.texi.
45092         * doc/pastposix-functions/vfork.texi: Renamed from
45093         doc/posix-functions/vfork.texi.
45094         * doc/pastposix-functions/wcswcs.texi: Renamed from
45095         doc/posix-functions/wcswcs.texi.
45096         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45097         (Function Substitutes): Update.
45098
45099 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45100
45101         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45102         m4/strerror.m4.
45103
45104 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45105             Bruno Haible  <bruno@clisp.org>
45106
45107         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45108
45109 2008-12-13  Bruno Haible  <bruno@clisp.org>
45110
45111         * modules/strtoull (Depends-on): Remove unistd.
45112
45113 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45114
45115         * modules/strtoull (Depends-on): Add stdlib.
45116
45117 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45118
45119         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45120
45121 2008-12-10  Jim Meyering  <meyering@redhat.com>
45122
45123         gl_ASSERT: don't say assertions are disabled when they're not
45124         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45125         "checking whether to enable assertions... no", when they are in
45126         fact enabled.  This is solely a bug in the output of configure.
45127         In spite of saying "no", NDEBUG was not defined in that case.
45128         Also, as noted by Eric Blake, leave assertions enabled upon
45129         --enable-assert=INVALID.
45130
45131 2008-12-10  Bruno Haible  <bruno@clisp.org>
45132
45133         Change MODULES.html to refer to POSIX:2008 where possible.
45134         * MODULES.html.sh (POSIX2008_URL): New variable.
45135         (posix_headers): Remove sys/timeb, ucontext.
45136         (posix2001_headers): New variable.
45137         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45138         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45139         index, makecontext, mktemp, pthread_attr_getstackaddr,
45140         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45141         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45142         (posix2001_functions): New variable.
45143         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45144         otherwise.
45145
45146 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45147
45148         add missing include to parse-duration.c
45149         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45150         * modules/parse-duration (Depends-on): Add xalloc.
45151
45152         fix sed script reading maint.mk
45153         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45154         (syntax-check-rules): Use it.
45155
45156 2008-12-09  Bruno Haible  <bruno@clisp.org>
45157
45158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45159         MacOS X 10.4/PowerPC.
45160         Reported by Simon Josefsson.
45161
45162 2008-12-08  Jim Meyering  <meyering@redhat.com>
45163
45164         work around mingw's lack of some S_IF definitions
45165         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45166         Reported by Simon Josefsson.
45167
45168 2008-12-08  Bruno Haible  <bruno@clisp.org>
45169
45170         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45171         applied to variables. Needed on MacOS X 10.4/PowerPC.
45172         Reported by Simon Josefsson.
45173
45174 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45175         and Eric Blake  <ebb9@byu.net>
45176
45177         assert: honor --enable-assert
45178         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45179         order to honor --enable-assert, rather than treating it as a
45180         synonym for --disable-assert.
45181
45182 2008-12-08  Jim Meyering  <meyering@redhat.com>
45183
45184         * lib/posixtm.c: Remove now-useless declaration of mktime.
45185
45186         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45187
45188 2008-12-07  Bruno Haible  <bruno@clisp.org>
45189
45190         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45191         test_once): Mark functions as static.
45192         * tests/test-tls.c (test_tls): Likewise.
45193
45194 2008-12-07  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45197         iconv_register_autodetect.
45198
45199 2008-12-07  Jim Meyering  <meyering@redhat.com>
45200
45201         posixtm.c: avoid a warning
45202         * lib/posixtm.c (posixtime): Don't initialize tm0.
45203         It's no longer needed to placate gcc4's -Wuninitialized,
45204         and the attempt to placate would elicit a new warning.
45205
45206         unicodeio.c: mark unused parameters
45207         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45208         (fallback_failure_callback): Likewise.
45209
45210 2008-12-07  Bruno Haible  <bruno@clisp.org>
45211
45212         * gnulib-tool (func_create_testdir): When building the tests
45213         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45214         Reported by Simon Josefsson.
45215
45216 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45217
45218         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45219
45220 2008-12-06  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45223         Suggested by Eric Blake.
45224
45225 2008-12-06  Bruno Haible  <bruno@clisp.org>
45226
45227         Fix a c-stack test failure on MacOS X.
45228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45229         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45230         handler for SIGBUS as well.
45231         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45232         install a signal handler for SIGBUS as well.
45233         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45234
45235 2008-12-06  Bruno Haible  <bruno@clisp.org>
45236
45237         Advocacy documentation.
45238         * doc/gnulib-intro.texi (Benefits): New section.
45239         * doc/gnulib.texi: Update.
45240
45241 2008-12-06  Bruno Haible  <bruno@clisp.org>
45242
45243         Document the 'manywarnings' module.
45244         * doc/manywarnings.texi: New file.
45245         * doc/gnulib.texi: Include it.
45246
45247 2008-12-05  Eric Blake  <ebb9@byu.net>
45248
45249         tests: silence some gcc warnings
45250         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45251         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45252         type mismatches.
45253
45254 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45255             Bruno Haible  <bruno@clisp.org>
45256
45257         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45258
45259 2008-11-29  Jim Meyering  <meyering@redhat.com>
45260
45261         unicodeio.c: mark unused parameters
45262         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45263         (fallback_failure_callback): Likewise.
45264
45265         fts: fix a thinko
45266         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45267         (set_stat_type): Return S_IF*-valued "type" directly.
45268         Prompted by James Youngman's spotting a related bug.
45269         Confirmed by further testing through find.
45270
45271         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45272         * lib/fts.c (D_TYPE): Define.
45273         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45274         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45275         (s_ifmt_shift_bits): New function.
45276         (set_stat_type): New function.
45277         (fts_build): When not calling fts_stat, call set_stat_type
45278         to propagate dirent.d_type info to fts_read caller.
45279         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45280         fts_statp->st_mode type information may be valid.
45281
45282 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45283
45284         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45285         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45286         <sds@gnu.org>.
45287
45288 2008-11-20  Bruno Haible  <bruno@clisp.org>
45289
45290         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45291         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45292         INCLUDE_NEXT.
45293         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45294         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45295         * modules/math (Makefile.am): Substitute
45296         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45298
45299 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45300             Bruno Haible  <bruno@clisp.org>
45301
45302         * lib/stdint.in.h: Define all type macros so that their expansion is
45303         a single typedef'ed token. Fixes a compilation failure in Boost which
45304         does "using ::int8_t;".
45305
45306 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45307
45308         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45309         gl_MANYWARN_ALL_GCC.
45310         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45311         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45312         * modules/manywarnings: New file.
45313         * MODULES.html.sh: Mention manywarnings module.
45314
45315 2008-11-18  Bruno Haible  <bruno@clisp.org>
45316
45317         * doc/gnulib-tool.texi (Unit tests): New section.
45318
45319 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45320
45321         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45322         paths like 'lib/po/foo.po'.
45323
45324 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45325
45326         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45327         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45328
45329 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45330
45331         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45332         parameter works.
45333
45334 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45335
45336         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45337
45338 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45339
45340         * modules/parse-duration-tests: New file.
45341         * tests/test-parse-duration.sh: New file.
45342         * tests/test-parse-duration.c: New file.
45343
45344         New module 'parse-duration'.
45345         * lib/parse-duration.h: New file.
45346         * lib/parse-duration.c: New file.
45347         * modules/parse-duration: New file.
45348
45349 2008-11-17  Bruno Haible  <bruno@clisp.org>
45350
45351         * tests/test-select-out.sh: Comment out the first pipe test.
45352         Reported by Simon Josefsson.
45353
45354 2008-11-17  Bruno Haible  <bruno@clisp.org>
45355
45356         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45358         gl_HOSTENT.
45359
45360 2008-11-17  Bruno Haible  <bruno@clisp.org>
45361
45362         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45363         -lnetwork and -lnet. Needed for Haiku and BeOS.
45364
45365 2008-11-16  Bruno Haible  <bruno@clisp.org>
45366
45367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45368
45369 2008-11-16  Bruno Haible  <bruno@clisp.org>
45370
45371         Avoid test failure on Haiku.
45372         * tests/test-fsync.c: Include <errno.h>.
45373         (main): Don't require that fsync (0) fails.
45374
45375 2008-11-15  Bruno Haible  <bruno@clisp.org>
45376
45377         New module 'hostent'.
45378         * modules/hostent: New file.
45379         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45380
45381 2008-11-15  Bruno Haible  <bruno@clisp.org>
45382
45383         New module 'servent'.
45384         * modules/servent: New file.
45385         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45386
45387 2008-11-15  Bruno Haible  <bruno@clisp.org>
45388
45389         Avoid generating same test program with two different rules.
45390         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45391         test-frexp to test-frexp-nolibm.
45392         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45393         test-frexpl to test-frexpl-nolibm.
45394
45395 2008-11-15  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45398         $(FREXPL_LIBM).
45399
45400 2008-11-15  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/netdb.in.h: Activate the definitions also when the system's
45403         <netdb.h> has 'struct addrinfo'.
45404         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45405         EAI_OVERFLOW or AI_NUMERICSERV.
45406         * doc/posix-headers/netdb.texi: Document the problem.
45407
45408 2008-11-15  Bruno Haible  <bruno@clisp.org>
45409
45410         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45411
45412         Make the 'sched' module work on platforms where <sched.h> exists but
45413         is incomplete (such as Haiku).
45414         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45415         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45416         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45417         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45418         HAVE_STRUCT_SCHED_PARAM.
45419         * modules/sched (Depends-on): Add include_next.
45420         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45421         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45422         * doc/posix-headers/sched.texi: Document the issue.
45423
45424 2008-11-13  Jim Meyering  <meyering@redhat.com>
45425
45426         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45427         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45428         test would fail due to the difference in the Report bugs to ...
45429         line.  The expected address is empty, "<>", while the actual
45430         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45431
45432 2008-11-12  Bruno Haible  <bruno@clisp.org>
45433
45434         lstat: don't compile lstat.c on systems lacking lstat
45435         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45436         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45437         Reported by Daniel P. Berrange via Jim Meyering.
45438
45439 2008-11-12  Jim Meyering  <meyering@redhat.com>
45440
45441         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45442
45443 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45444
45445         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45446         instead.
45447
45448 2008-11-12  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/unicodeio.c: Include unistr.h.
45451         (utf8_wctomb): Remove function.
45452         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45453
45454 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45455
45456         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45457         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45458         <bruno@clisp.org>.
45459         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45460
45461 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45462
45463         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45464         * doc/gnulib.texi: Add section for warnings.
45465
45466 2008-11-11  Bruno Haible  <bruno@clisp.org>
45467
45468         * lib/sockets.h: Add a comment.
45469
45470 2008-11-11  Karl Berry  <karl@gnu.org>
45471
45472         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45473
45474 2008-11-11  Eric Blake  <ebb9@byu.net>
45475
45476         fdl.texi: avoid git symlinks
45477         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45478
45479 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45480
45481         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45482
45483 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45484
45485         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45486         (gl_WARN_ADD): Substitute $2 if literal.
45487
45488 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45489
45490         * m4/warning.m4: Remove.
45491
45492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45493
45494         * m4/warnings.m4: Almost complete rewrite. :-)
45495
45496 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45497
45498         * modules/warnings: New module.
45499         * m4/warnings.m4: New file.
45500         * MODULES.html.sh: Mention warnings module.
45501         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45502         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45503
45504 2008-11-10  Eric Blake  <ebb9@byu.net>
45505
45506         fdl.texi: make a symlink to the latest version
45507         * doc/standards.texi: Revert today's earlier change.
45508         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45509         * doc/fdl.texi: ...and replace this with a symlink to the newer
45510         fdl-1.3.texi.
45511
45512 2008-11-10  Bruno Haible  <bruno@clisp.org>
45513
45514         * tests/test-select-fd.c (main): Accept the result file name as fourth
45515         argument.
45516         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45517         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45518
45519 2008-11-10  Bruno Haible  <bruno@clisp.org>
45520
45521         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45522         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45523         as autoconf-substituted macros.
45524         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45526         gl_NETDB_H_DEFAULTS. Set these variables.
45527         * modules/netdb (Makefile.am): Substitute these variables.
45528
45529 2008-11-10  Eric Blake  <ebb9@byu.net>
45530
45531         standards.texi: include correct file for FDL 1.3
45532         * doc/standards.texi (GNU Free Documentation License): Change
45533         include file to pull in FDL 1.3, not 1.2.
45534
45535         fdl.texi: revert accidental change to license
45536         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45537
45538 2008-11-10  Bruno Haible  <bruno@clisp.org>
45539
45540         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45541         cross-compiling guesses also when the native compile gives no result.
45542
45543 2008-11-10  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/spawni.c (__spawni): Force variable into the stack.
45546
45547 2008-11-10  Bruno Haible  <bruno@clisp.org>
45548
45549         Add support for Haiku.
45550         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45551         glibc and BeOS, but also on Haiku.
45552         * lib/fpurge.c (fpurge): Likewise.
45553         * lib/freadable.c (freadable): Likewise.
45554         * lib/freadahead.c (freadahead): Likewise.
45555         * lib/freading.c (freading): Likewise.
45556         * lib/freadptr.c (freadptr): Likewise.
45557         * lib/freadseek.c (freadptrinc): Likewise.
45558         * lib/fseeko.c (rpl_fseeko): Likewise.
45559         * lib/fseterr.c (fseterr): Likewise.
45560         * lib/fwritable.c (fwritable): Likewise.
45561         * lib/fwriting.c (fwriting): Likewise.
45562         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45563
45564 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45565
45566         * lib/config.charset: Treat Haiku like BeOS.
45567
45568 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45569
45570         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45571         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45572
45573 2008-11-08  Bruno Haible  <bruno@clisp.org>
45574
45575         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45576         AC_CACHE_CHECK.
45577
45578 2008-11-08  Bruno Haible  <bruno@clisp.org>
45579
45580         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45581
45582 2008-11-08  Bruno Haible  <bruno@clisp.org>
45583
45584         * tests/test-select-fd.c: New file.
45585         * tests/test-select-in.sh: New file.
45586         * tests/test-select-out.sh: New file.
45587         * tests/test-select-stdin.c: New file.
45588         * modules/select-tests (Files): Add the new files.
45589         (Depends-on): Add gettimeofday.
45590         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45591         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45592         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45593
45594 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45595             Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45598
45599 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45600
45601         * build-aux/pmccabe2html: Added support for C++ source files.
45602
45603 2008-11-05  Ben Pfaff  <blp@gnu.org>
45604
45605         Fix lib/close.c build on Windows.
45606         * modules/close (Files): Add lib/w32sock.h.
45607
45608 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45609
45610         Accept Bison's NEWS format.
45611         * build-aux/announce-gen (print_news_deltas): Tweak
45612         $re_prefix.
45613
45614 2008-11-04  Bruno Haible  <bruno@clisp.org>
45615
45616         * modules/random_r (Maintainer): Add glibc.
45617
45618 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45619
45620         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45621         by karl@freefriends.org (Karl Berry).
45622         * doc/alloca.texi: Likewise.
45623         * doc/c-ctype.texi: Likewise.
45624         * doc/c-strcase.texi: Likewise.
45625         * doc/c-strcaseeq.texi: Likewise.
45626         * doc/c-strcasestr.texi: Likewise.
45627         * doc/c-strstr.texi: Likewise.
45628         * doc/c-strtod.texi: Likewise.
45629         * doc/c-strtold.texi: Likewise.
45630         * doc/ctime.texi: Likewise.
45631         * doc/error.texi: Likewise.
45632         * doc/fdl.texi: Likewise.
45633         * doc/gcd.texi: Likewise.
45634         * doc/getdate.texi: Likewise.
45635         * doc/gnulib-intro.texi: Likewise.
45636         * doc/gnulib-tool.texi: Likewise.
45637         * doc/gnulib.texi: Likewise.
45638         * doc/inet_ntoa.texi: Likewise.
45639         * doc/maintain.texi: Likewise.
45640         * doc/make-stds.texi: Likewise.
45641         * doc/quote.texi: Likewise.
45642         * doc/regexprops-generic.texi: Likewise.
45643         * doc/standards.texi: Likewise.
45644         * doc/verify.texi: Likewise.
45645         * doc/visibility.texi: Likewise.
45646         * doc/gnulib.texi (GNU Free Documentation License): Include
45647         fdl-1.3.texi instead of fdl.texi.
45648
45649 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45650
45651         * doc/fdl-1.3.texi: New file, from
45652         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45653         * modules/fdl-1.3: Add.
45654         * MODULES.html.sh: Add fdl-1.3.
45655
45656 2008-11-03  Bruno Haible  <bruno@clisp.org>
45657
45658         Make determination of absolute name of header file work with AIX xlc.
45659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45660         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45661         preprocessing.
45662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45663         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45664
45665 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45666
45667         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45668         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45669         <ludo@gnu.org>.
45670
45671 2008-11-02  Bruno Haible  <bruno@clisp.org>
45672
45673         Mark 'strpbrk' obsolete.
45674         * modules/strpbrk (Status, Notice): New sections.
45675         * modules/strtok_r (Depends-on): Add strpbrk.
45676
45677 2008-11-02  Bruno Haible  <bruno@clisp.org>
45678
45679         Mark 'strdup' obsolete.
45680         * modules/strdup (Status, Notice): New sections.
45681         * modules/findprog (Depends-on): Add strdup.
45682         * modules/getaddrinfo (Depends-on): Likewise.
45683         * modules/localename (Depends-on): Likewise.
45684         * modules/relocatable-lib (Depends-on): Likewise.
45685         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45686         * modules/relocatable-prog (Depends-on): Likewise.
45687         * modules/trim (Depends-on): Likewise.
45688         * modules/unictype/gen-ctype (Depends-on): Likewise.
45689         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45690
45691 2008-11-02  Bruno Haible  <bruno@clisp.org>
45692
45693         Mark 'strcspn' obsolete.
45694         * modules/strcspn (Status, Notice): New sections.
45695
45696 2008-11-02  Bruno Haible  <bruno@clisp.org>
45697
45698         Mark 'rmdir' obsolete.
45699         * modules/rmdir (Status, Notice): New sections.
45700         * modules/clean-temp (Depends-on): Add rmdir.
45701         * modules/openat (Depends-on): Likewise.
45702
45703 2008-11-02  Bruno Haible  <bruno@clisp.org>
45704
45705         Mark 'raise' obsolete.
45706         * modules/raise (Status, Notice): New sections.
45707         (Include): Specify <signal.h>.
45708         * modules/stdio (Depends-on): Add raise.
45709         * modules/write (Depends-on): Likewise.
45710
45711 2008-11-02  Bruno Haible  <bruno@clisp.org>
45712
45713         Mark 'memset' obsolete.
45714         * modules/memset (Status, Notice): New sections.
45715
45716 2008-11-02  Bruno Haible  <bruno@clisp.org>
45717
45718         Mark 'memmove' obsolete.
45719         * modules/memmove (Status, Notice): New sections.
45720         * modules/argp (Depends-on): Add memmove.
45721         * modules/argz (Depends-on): Likewise.
45722         * modules/canonicalize (Depends-on): Likewise.
45723         * modules/canonicalize-lgpl (Depends-on): Likewise.
45724         * modules/fts (Depends-on): Likewise.
45725         * modules/getcwd (Depends-on): Likewise.
45726         * modules/human (Depends-on): Likewise.
45727         * modules/regex (Depends-on): Likewise.
45728         * modules/striconveh (Depends-on): Likewise.
45729         * modules/trim (Depends-on): Likewise.
45730         * modules/unistr/u8-move (Depends-on): Likewise.
45731         * modules/unistr/u16-move (Depends-on): Likewise.
45732         * modules/unistr/u32-move (Depends-on): Likewise.
45733
45734 2008-11-02  Bruno Haible  <bruno@clisp.org>
45735
45736         Mark 'memcpy' obsolete.
45737         * modules/memcpy (Status, Notice): New sections.
45738
45739 2008-11-02  Bruno Haible  <bruno@clisp.org>
45740
45741         Mark 'memcmp' obsolete.
45742         * modules/memcmp (Status, Notice): New sections.
45743         * modules/argmatch (Depends-on): Add memchr.
45744         * modules/backupfile (Depends-on): Likewise.
45745         * modules/c-strcasestr (Depends-on): Likewise.
45746         * modules/crypto/des (Depends-on): Likewise.
45747         * modules/csharpcomp (Depends-on): Likewise.
45748         * modules/fnmatch (Depends-on): Likewise.
45749         * modules/git-merge-changelog (Depends-on): Likewise.
45750         * modules/isnand (Depends-on): Likewise.
45751         * modules/isnand-nolibm (Depends-on): Likewise.
45752         * modules/isnanf (Depends-on): Likewise.
45753         * modules/isnanf-nolibm (Depends-on): Likewise.
45754         * modules/isnanl (Depends-on): Likewise.
45755         * modules/isnanl-nolibm (Depends-on): Likewise.
45756         * modules/mbchar (Depends-on): Likewise.
45757         * modules/memcoll (Depends-on): Likewise.
45758         * modules/quotearg (Depends-on): Likewise.
45759         * modules/regex (Depends-on): Likewise.
45760         * modules/relocatable-prog (Depends-on): Likewise.
45761         * modules/same (Depends-on): Likewise.
45762         * modules/signbit (Depends-on): Likewise.
45763         * modules/strcasestr-simple (Depends-on): Likewise.
45764         * modules/unictype/gen-ctype (Depends-on): Likewise.
45765         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45766         * modules/uniname/uniname (Depends-on): Likewise.
45767         * modules/unistr/u8-cmp (Depends-on): Likewise.
45768
45769 2008-11-02  Bruno Haible  <bruno@clisp.org>
45770
45771         Mark 'memchr' obsolete.
45772         * modules/memchr (Status, Notice): New sections.
45773         * modules/argp (Depends-on): Add memchr.
45774         * modules/base64 (Depends-on): Likewise.
45775         * modules/c-strcasestr (Depends-on): Likewise.
45776         * modules/chdir-long (Depends-on): Likewise.
45777         * modules/fnmatch (Depends-on): Likewise.
45778         * modules/getsubopt (Depends-on): Likewise.
45779         * modules/git-merge-changelog (Depends-on): Likewise.
45780         * modules/glob (Depends-on): Likewise.
45781         * modules/strcasestr-simple (Depends-on): Likewise.
45782         * modules/strnlen (Depends-on): Likewise.
45783
45784 2008-11-02  Bruno Haible  <bruno@clisp.org>
45785
45786         Mark 'atexit' obsolete.
45787         * modules/atexit (Status, Notice): New sections.
45788         * modules/chdir-long (Depends-on): Add atexit.
45789         * modules/wait-process (Depends-on): Likewise.
45790
45791 2008-11-02  Bruno Haible  <bruno@clisp.org>
45792
45793         * gnulib-tool: New option --with-obsolete.
45794         (func_usage): Document it.
45795         (func_modules_transitive_closure): Drop obsolete dependencies if
45796         incobsolete is not true.
45797         (func_import): Read and save the incobsolete variable to the cache.
45798
45799 2008-11-02  Bruno Haible  <bruno@clisp.org>
45800
45801         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45802         * gnulib-tool: New option --extract-status.
45803         (func_usage): Document it.
45804         (sed_extract_prog): Recognize it.
45805         (func_get_status): New function.
45806
45807 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45808
45809         * modules/sockets (License): Change from LGPL to LGPLv2+.
45810
45811 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45812
45813         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45814
45815 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45816
45817         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45818         Mention times and sys_times.
45819         * modules/sys_times, modules/sys_times-tests: New modules.
45820         * modules/times, modules/times-tests: Likewise
45821         * m4/sys_times_h.m4: New file.
45822         * lib/sys_times.in.h: Likewise
45823         * lib/times.c: Likewise.
45824         * tests/test-sys_times.c: Likewise.
45825         * tests/test-times.c: Likewise.
45826         * doc/posix-headers/sys_times.texi: Update.
45827         * doc/posix-functions/times.texi: Update.
45828
45829 2008-10-28  Jim Meyering  <meyering@redhat.com>
45830
45831         * modules/tempname (Depends-on): Add lstat.
45832
45833         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45834
45835 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45836
45837         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45838         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45839         using idiom used elsewhere in gnulib.
45840
45841 2008-10-27  Jim Meyering  <meyering@redhat.com>
45842
45843         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45844
45845 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45846
45847         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45848         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45849         programs.
45850         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45851
45852 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45853
45854         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45855
45856 2008-10-27  Bruno Haible  <bruno@clisp.org>
45857
45858         * tests/test-lstat.c: Include <stdio.h>.
45859
45860 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45861
45862         * modules/lstat-tests: New module.
45863         * tests/test-lstat.c: New file.
45864
45865 2008-10-26  Jim Meyering  <meyering@redhat.com>
45866
45867         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45868
45869 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45870             Bruno Haible  <bruno@clisp.org>
45871
45872         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45873         * modules/configmake (Include): Add a note that the include must come
45874         after all system headers.
45875         * lib/javaversion.c: Include configmake.h after all other includes.
45876
45877 2008-10-26  Bruno Haible  <bruno@clisp.org>
45878
45879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45880         HAVE_STRUCT_RANDOM_DATA to 1.
45881         (gl_STDLIB_H): Simplify.
45882
45883 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45884
45885         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45886         substitute HAVE_STRUCT_RANDOM_DATA.
45887         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45888         random_data.
45889         * modules/stdlib (Makefile.am): Substitute
45890         HAVE_STRUCT_RANDOM_DATA.
45891
45892 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45893
45894         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45895         * doc/gnulib-intro.texi (Copyright): Likewise.
45896
45897 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45898
45899         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45900         findings.
45901
45902 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45903             Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/unistd.in.h: Include <winsock2.h>.
45906         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45907         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45908         Provide dummy declarations.
45909         (gethostname): Override.
45910         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45911         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45912         gl_PREREQ_SYS_H_WINSOCK2.
45913         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45914         * doc/posix-functions/gethostname.texi: More details.
45915
45916 2008-10-25  Bruno Haible  <bruno@clisp.org>
45917
45918         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45919         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45920         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45921
45922         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45923         here ...
45924         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45926         gl_UNISTD_H_DEFAULTS.
45927
45928 2008-10-25  Eric Blake  <ebb9@byu.net>
45929
45930         signbit: avoid spurious compiler failure
45931         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45932         declarations inside function.
45933
45934 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45935             Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45938         * modules/random_r (Depends-on): Add stdint.
45939
45940 2008-10-24  Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45943         Eggert.
45944         * modules/strerror (License): Likewise.
45945
45946 2008-10-24  Jim Meyering  <meyering@redhat.com>
45947
45948         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45949         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45950
45951 2008-10-24  Eric Blake  <ebb9@byu.net>
45952
45953         getgroups: fix compilation when getgroups is available
45954         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45955         but with <config.h> override of getgroups disabled.
45956
45957 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45958
45959         * doc/gnulib.texi (Header files): Add note about C++ problems.
45960         Explained by Bruno Haible <bruno@clisp.org>.
45961
45962 2008-10-23  Bruno Haible  <bruno@clisp.org>
45963
45964         Define a dummy SA_NODEFER macro on Interix.
45965         * lib/signal.in.h (SA_NODEFER): Define fallback.
45966         Reported by Aleksey Cheusov <cheusov@tut.by> via
45967         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45968
45969 2008-10-23  Bruno Haible  <bruno@clisp.org>
45970
45971         * modules/freadahead (License): Change to LGPLv2+.
45972         Suggested by Simon Josefsson.
45973
45974 2008-10-23  Jim Meyering  <meyering@redhat.com>
45975
45976         random_r: new module
45977         * modules/random_r: New file.
45978         * m4/random_r.m4: New file.
45979         * lib/random_r.c: New file, from glibc.
45980         * modules/random_r-tests: New file.
45981         * tests/test-random_r.c: New file.
45982         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45983          Declare.
45984         (RAND_MAX): Define.
45985         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45986         * modules/stdlib: Substitute them, too.
45987         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45988         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45989         * doc/glibc-functions/random_r.texi: Likewise.
45990         * doc/glibc-functions/setstate_r.texi: Likewise.
45991         * doc/glibc-functions/srandom_r.texi: Likewise.
45992         * config/srclist.txt: Mention it.
45993
45994 2008-10-23  David Lutterkort  <lutter@redhat.com>
45995
45996         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45997         link requirement
45998
45999 2008-10-23  Jim Meyering  <meyering@redhat.com>
46000
46001         selinux-h: mark parameters of stub functions as intentionally unused
46002         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46003         * lib/se-context.in.h: Likewise.
46004
46005 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46006
46007         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46008
46009 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46010
46011         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46012
46013 2008-10-22  Eric Blake  <ebb9@byu.net>
46014
46015         glthread/thread: avoid compiler warning
46016         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46017         Add unreachable abort to silence compiler.
46018
46019 2008-10-22  Eric Blake  <ebb9@byu.net>
46020
46021         netdb: also supply struct addrinfo for cygwin 1.5.x
46022         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46023         older cygwin.
46024         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46025         cygwin.
46026         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46027
46028 2008-10-22  Bruno Haible  <bruno@clisp.org>
46029
46030         * users.txt: Update entry about pspp.
46031
46032 2008-10-21  Bruno Haible  <bruno@clisp.org>
46033
46034         Simplification.
46035         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46036         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46037
46038         Simplification.
46039         * lib/ioctl.c (ioctl): Don't undefine.
46040         * lib/socket.c (socket): Don't undefine.
46041
46042         Remove unused module indicator macros.
46043         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46044         GNULIB_$1 as a C macro.
46045
46046         * doc/posix-functions/close.texi: Undo last change.
46047         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46048         Windows platforms.
46049
46050 2008-10-21  Bruno Haible  <bruno@clisp.org>
46051
46052         Add gethostname() declaration to <unistd.h>.
46053         * lib/unistd.in.h (gethostname): New declaration.
46054         * lib/gethostname.c: Include <unistd.h>.
46055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46056         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46058         and HAVE_GETHOSTNAME.
46059         * modules/gethostname (Depends-on): Add unistd.
46060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46061         (Include): Specify <unistd.h>.
46062         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46063         HAVE_GETHOSTNAME.
46064         * tests/test-gethostname.c: Include <unistd.h> first.
46065
46066 2008-10-21  Bruno Haible  <bruno@clisp.org>
46067
46068         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46069         * modules/select-tests (Depends-on): Likewise.
46070         Reported by Simon Josefsson.
46071
46072 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46073
46074         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46075         * lib/accept.c: New file, based on winsock.c.
46076         * lib/bind.c: New file, based on winsock.c.
46077         * lib/connect.c: New file, based on winsock.c.
46078         * lib/getpeername.c: New file, based on winsock.c.
46079         * lib/getsockname.c: New file, based on winsock.c.
46080         * lib/getsockopt.c: New file, based on winsock.c.
46081         * lib/ioctl.c: New file, based on winsock.c.
46082         * lib/listen.c: New file, based on winsock.c.
46083         * lib/recv.c: New file, based on winsock.c.
46084         * lib/recvfrom.c: New file, based on winsock.c.
46085         * lib/send.c: New file, based on winsock.c.
46086         * lib/sendto.c: New file, based on winsock.c.
46087         * lib/setsockopt.c: New file, based on winsock.c.
46088         * lib/shutdown.c: New file, based on winsock.c.
46089         * lib/socket.c: New file, based on winsock.c.
46090         * lib/w32sock.h: New file, based on winsock.c.
46091         * lib/winsock.c: Remove file.
46092         * modules/accept: Likewise.
46093         * modules/bind: Likewise.
46094         * modules/connect: Likewise.
46095         * modules/getpeername: Likewise.
46096         * modules/getsockname: Likewise.
46097         * modules/getsockopt: Likewise.
46098         * modules/ioctl: Likewise.
46099         * modules/listen: Likewise.
46100         * modules/recv: Likewise.
46101         * modules/recvfrom: Likewise.
46102         * modules/send: Likewise.
46103         * modules/sendto: Likewise.
46104         * modules/setsockopt: Likewise.
46105         * modules/shutdown: Likewise.
46106         * modules/socket: Use socket.c instead of winsock.c.
46107         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46108         * doc/posix-functions/accept.texi: Doc fix.
46109         * doc/posix-functions/bind.texi: Doc fix.
46110         * doc/posix-functions/close.texi: Doc fix.
46111         * doc/posix-functions/connect.texi: Doc fix.
46112         * doc/posix-functions/getpeername.texi: Doc fix.
46113         * doc/posix-functions/getsockname.texi: Doc fix.
46114         * doc/posix-functions/getsockopt.texi: Doc fix.
46115         * doc/posix-functions/ioctl.texi: Doc fix.
46116         * doc/posix-functions/listen.texi: Doc fix.
46117         * doc/posix-functions/recv.texi: Doc fix.
46118         * doc/posix-functions/recvfrom.texi: Doc fix.
46119         * doc/posix-functions/send.texi: Doc fix.
46120         * doc/posix-functions/sendto.texi: Doc fix.
46121         * doc/posix-functions/setsockopt.texi: Doc fix.
46122         * doc/posix-functions/shutdown.texi: Doc fix.
46123         * doc/posix-functions/socket.texi: Doc fix.
46124
46125 2008-10-20  Bruno Haible  <bruno@clisp.org>
46126
46127         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46128         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46129         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46130         as an alias for SIGABRT.
46131         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46132         (sigaction): Map it to SIGABRT.
46133         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46134
46135 2008-10-20  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/fts.c: Don't include lstat.h.
46138         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46139
46140         Move the lstat() declaration to <sys/stat.h>.
46141         * lib/lstat.h: Remove file.
46142         * lib/sys_stat.in.h: Add special invocation convention.
46143         (lstat): New declaration.
46144         * lib/lstat.c (orig_lstat): New function.
46145         (rpl_lstat): Use orig_lstat instead of lstat.
46146         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46147         AC_C_INLINE. Set REPLACE_LSTAT.
46148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46149         and REPLACE_LSTAT.
46150         * modules/lstat (Files): Remove lib/lstat.h.
46151         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46152         (Include): Specify <sys/stat.h> instead of lstat.h.
46153         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46154         REPLACE_LSTAT.
46155         * NEWS: Mention the change.
46156
46157 2008-10-20  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/posix_spawn-tests: New file.
46160         * tests/test-posix_spawn3.c: New file.
46161
46162 2008-10-20  Bruno Haible  <bruno@clisp.org>
46163
46164         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46165         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46166         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46167         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46168         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46169
46170 2008-10-20  Bruno Haible  <bruno@clisp.org>
46171
46172         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46173         of posix_spawn on AIX 5.3.
46174
46175 2008-10-20  Bruno Haible  <bruno@clisp.org>
46176
46177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46178
46179 2008-10-20  Bruno Haible  <bruno@clisp.org>
46180
46181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46182         of AC_LANG_PROGRAM.
46183
46184 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46185
46186         * lib/netdb.in.h: Don't define GNU specific constants until they
46187         are supported or needed.  Reported by Bruno Haible
46188         <bruno@clisp.org>.
46189
46190 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46191
46192         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46193
46194 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46195
46196         * lib/getaddrinfo.h: Remove file.
46197         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46198         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46199         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46200         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46201         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46202         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46203         * tests/test-getaddrinfo.c: Likewise.
46204         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46205         * NEWS: Mention change.
46206
46207 2008-10-19  Bruno Haible  <bruno@clisp.org>
46208
46209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46210
46211 2008-10-19  Bruno Haible  <bruno@clisp.org>
46212
46213         * lib/wait-process.c: Include simply <sys/wait.h>.
46214         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46215         WIFSTOPPED): Remove fallback definitions.
46216         * modules/wait-process (Depends-on): Add sys_wait.
46217
46218         New module 'sys_wait'.
46219         * modules/sys_wait: New file.
46220         * lib/sys_wait.in.h: New file, partially copied from
46221         lib/wait-process.c.
46222         * m4/sys_wait_h.m4: New file.
46223         * doc/posix-headers/sys_wait.texi: Mention the new module.
46224
46225 2008-10-19  Bruno Haible  <bruno@clisp.org>
46226
46227         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46228
46229 2008-10-19  Bruno Haible  <bruno@clisp.org>
46230
46231         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46232         * lib/wait-process.c (WAIT_T): Remove type.
46233         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46234         (wait_subprocess): Update.
46235
46236 2008-10-19  Bruno Haible  <bruno@clisp.org>
46237
46238         New module 'atoll'.
46239         * modules/atoll: New file.
46240         * lib/stdlib.in.h (atoll): New declaration.
46241         * lib/atoll.c: New file, from glibc with modifications.
46242         * m4/atoll.m4: New file.
46243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46244         HAVE_ATOLL.
46245         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46246         * doc/posix-functions/atoll.texi: Mention the new module.
46247
46248 2008-10-19  Bruno Haible  <bruno@clisp.org>
46249
46250         Add strtoull() declaration to <stdlib.h>.
46251         * lib/stdlib.in.h (strtoull): New declaration.
46252         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46253         Set HAVE_STRTOULL.
46254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46255         HAVE_STRTOULL.
46256         * modules/strtoull (Depends-on): Add stdlib.
46257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46258         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46259         HAVE_STRTOULL.
46260
46261 2008-10-19  Bruno Haible  <bruno@clisp.org>
46262
46263         Add strtoll() declaration to <stdlib.h>.
46264         * lib/stdlib.in.h (strtoll): New declaration.
46265         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46266         Set HAVE_STRTOLL.
46267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46268         HAVE_STRTOLL.
46269         * modules/strtoll (Depends-on): Add stdlib.
46270         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46271         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46272
46273 2008-10-19  Bruno Haible  <bruno@clisp.org>
46274
46275         * modules/bcopy (Depends-on): Add strings.
46276         (Include): Specify <strings.h>.
46277
46278 2008-10-19  Bruno Haible  <bruno@clisp.org>
46279
46280         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46281
46282 2008-10-19  Bruno Haible  <bruno@clisp.org>
46283
46284         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46285         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46286         mingw.
46287
46288 2008-10-19  Bruno Haible  <bruno@clisp.org>
46289
46290         * lib/atanl.c: Don't include isnanl.h.
46291         * lib/cosl.c: Likewise.
46292         * lib/ldexpl.c: Likewise.
46293         * lib/logl.c: Likewise.
46294         * lib/sinl.c: Likewise.
46295         * lib/sqrtl.c: Likewise.
46296         * lib/tanl.c: Likewise.
46297
46298         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46299         * lib/isnanf.h: Remove file.
46300         * lib/isnand.h: Remove file.
46301         * lib/isnanl.h: Remove file.
46302         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46303         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46304         macros.
46305         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46306         HAVE_ISNANF, don't define it as a C macro.
46307         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46308         HAVE_ISNAND, don't define it as a C macro.
46309         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46310         HAVE_ISNANL, don't define it as a C macro.
46311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46312         HAVE_ISNAN[FDL].
46313         * modules/isnanf (Files): Remove lib/isnanf.h.
46314         (Depends-on): Add math.
46315         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46316         (Include): Specify <math.h> instead of isnanf.h.
46317         * modules/isnand (Files): Remove lib/isnand.h.
46318         (Depends-on): Add math.
46319         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46320         (Include): Specify <math.h> instead of isnand.h.
46321         * modules/isnanl (Files): Remove lib/isnanl.h.
46322         (Depends-on): Add math.
46323         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46324         (Include): Specify <math.h> instead of isnanl.h.
46325         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46326         HAVE_ISNAN[FDL].
46327         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46328         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46329         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46330         * NEWS: Mention the change.
46331
46332 2008-10-18  Bruno Haible  <bruno@clisp.org>
46333
46334         Add getusershell(), setusershell(), endusershell() declarations to
46335         <unistd.h>.
46336         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46337         declarations.
46338         * lib/getusershell.c: Include unistd.h.
46339         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46340         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46341         HAVE_GETUSERSHELL.
46342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46343         and HAVE_GETUSERSHELL.
46344         * modules/getusershell (Depends-on): Add unistd, extensions.
46345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46346         (Include): Specify <unistd.h>.
46347         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46348         HAVE_GETUSERSHELL.
46349
46350 2008-10-18  Bruno Haible  <bruno@clisp.org>
46351
46352         Add a getloadavg() declaration to <stdlib.h>.
46353         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46354         getloadavg declaration.
46355         (getloadavg): New declaration.
46356         * lib/getloadavg.c: Include <stdlib.h> first.
46357         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46358         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46359         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46361         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46362         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46364         (Include): Specify <stdlib.h>.
46365         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46366         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46367
46368 2008-10-18  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/dirchownmod.c: Don't include lchmod.h.
46371
46372         Move the lchmod() declaration to <sys/stat.h>.
46373         * lib/lchmod.h: Remove file.
46374         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46375         (lchmod): New declaration, moved here from lib/lchown.h.
46376         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46377         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46379         and HAVE_LCHMOD.
46380         * modules/lchmod (Files): Remove lib/lchmod.h.
46381         (Depends-on): Add sys_stat, extensions.
46382         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46383         (Include): Specify <sys/stat.h> instead of lchmod.h.
46384         * modules/sys_stat (Depends-on): Add link-warning.
46385         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46386         definition of GL_LINK_WARNING.
46387         * NEWS: Mention the change.
46388
46389 2008-10-18  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/fchdir.c: Don't include dirfd.h.
46392         * lib/fts.c: Likewise.
46393         * lib/getcwd.c: Likewise.
46394         * lib/glob.c: Likewise.
46395
46396         Move the dirfd() declaration to <dirent.h>.
46397         * lib/dirfd.h: Remove file.
46398         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46399         (dirfd): New declaration.
46400         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46402         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46403         HAVE_DECL_DIRFD.
46404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46405         HAVE_DECL_DIRFD.
46406         * modules/dirfd (Files): Remove lib/dirfd.h.
46407         (Depends-on): Add dirent, extensions.
46408         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46409         (Include): Specify <dirent.h> instead of dirfd.h.
46410         * modules/dirent (Depends-on): Add link-warning.
46411         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46412         definition of GL_LINK_WARNING.
46413         * NEWS: Mention the change.
46414
46415 2008-10-18  Bruno Haible  <bruno@clisp.org>
46416
46417         Move the euidaccess() declaration to <unistd.h>.
46418         * lib/euidaccess.h: Remove file.
46419         * lib/unistd.in.h (euidaccess): New declaration.
46420         * lib/euidaccess.c: Don't include euidaccess.h.
46421         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46422         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46424         and HAVE_EUIDACCESS.
46425         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46426         (Depends-on): Add unistd.
46427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46428         (Include): Specify <unistd.h> instead of euidaccess.h.
46429         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46430         HAVE_EUIDACCESS.
46431         * NEWS: Mention the change.
46432
46433 2008-10-18  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46436
46437         Move the getdomainname() declaration to <unistd.h>.
46438         * lib/getdomainname.h: Remove file.
46439         * lib/unistd.in.h (getdomainname): New declaration.
46440         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46441         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46442         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46443         HAVE_GETDOMAINNAME.
46444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46445         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46446         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46447         (Depends-on): Add unistd, extensions.
46448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46449         (Includes): Specify <unistd.h> instead of getdomainname.h.
46450         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46451         HAVE_GETDOMAINNAME.
46452         * NEWS: Mention the change.
46453
46454 2008-10-18  Bruno Haible  <bruno@clisp.org>
46455
46456         * modules/dirent: New file.
46457         * m4/dirent_h.m4: New file.
46458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46459         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46460         * modules/fchdir (Files): Remove lib/dirent.in.h.
46461         (Depends-on): Add dirent.
46462         (Makefile.am): Move rules to modules/dirent.
46463         * doc/posix-headers/dirent.texi: Mention the new module.
46464
46465 2008-10-18  Bruno Haible  <bruno@clisp.org>
46466
46467         Avoid -Wunused-parameter warnings in public gnulib header files.
46468         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46469         macro.
46470         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46471
46472 2008-10-18  Bruno Haible  <bruno@clisp.org>
46473
46474         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46475         * doc/glibc-functions/error.texi: Mention the module 'error'.
46476         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46477         * doc/glibc-functions/getdomainname.texi: Mention the module
46478         'getdomainname'.
46479         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46480         * doc/glibc-functions/getpagesize.texi: Mention the module
46481         'getpagesize'.
46482         * doc/glibc-functions/getusershell.texi: Mention the module
46483         'getusershell'.
46484         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46485         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46486         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46487         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46488         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46489         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46490         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46491         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46492         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46493         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46494         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46495         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46496         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46497         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46498
46499 2008-10-17  Bruno Haible  <bruno@clisp.org>
46500
46501         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46502         HP-UX and IRIX, use -0.0L.
46503         * tests/test-ceill.c (minus_zero): Likewise.
46504         * tests/test-floorl.c (minus_zero): Likewise.
46505         * tests/test-frexpl.c (minus_zero): Likewise.
46506         * tests/test-isnan.c (minus_zerol): Likewise.
46507         * tests/test-isnanl.h (minus_zero): Likewise.
46508         * tests/test-ldexpl.c (minus_zero): Likewise.
46509         * tests/test-roundl.c (minus_zero): Likewise.
46510         * tests/test-signbit.c (minus_zerol): Likewise.
46511         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46512         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46513         * tests/test-truncl.c (minus_zero): Likewise.
46514         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46515         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46516         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46517         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46518
46519 2008-10-17  Bruno Haible  <bruno@clisp.org>
46520
46521         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46522         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46523         that it gets activated only for gcc >= 3.0.
46524         * lib/dirent.in.h: Likewise.
46525         * lib/errno.in.h: Likewise.
46526         * lib/fcntl.in.h: Likewise.
46527         * lib/float.in.h: Likewise.
46528         * lib/iconv.in.h: Likewise.
46529         * lib/inttypes.in.h: Likewise.
46530         * lib/locale.in.h: Likewise.
46531         * lib/math.in.h: Likewise.
46532         * lib/netdb.in.h: Likewise.
46533         * lib/netinet_in.in.h: Likewise.
46534         * lib/search.in.h: Likewise.
46535         * lib/signal.in.h: Likewise.
46536         * lib/spawn.in.h: Likewise.
46537         * lib/stdarg.in.h: Likewise.
46538         * lib/stdint.in.h: Likewise.
46539         * lib/stdio.in.h: Likewise.
46540         * lib/stdlib.in.h: Likewise.
46541         * lib/string.in.h: Likewise.
46542         * lib/strings.in.h: Likewise.
46543         * lib/sys_file.in.h: Likewise.
46544         * lib/sys_ioctl.in.h: Likewise.
46545         * lib/sys_select.in.h: Likewise.
46546         * lib/sys_socket.in.h: Likewise.
46547         * lib/sys_stat.in.h: Likewise.
46548         * lib/sys_time.in.h: Likewise.
46549         * lib/sysexits.in.h: Likewise.
46550         * lib/time.in.h: Likewise.
46551         * lib/unistd.in.h: Likewise.
46552         * lib/wchar.in.h: Likewise.
46553         * lib/wctype.in.h: Likewise.
46554         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46555
46556 2008-10-17  Jim Meyering  <meyering@redhat.com>
46557
46558         ignore-value: don't depend on inline module
46559         * modules/ignore-value (Depends-on): Remove 'inline'.
46560         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46561         Suggestion from Bruno Haible.
46562
46563 2008-10-17  Bruno Haible  <bruno@clisp.org>
46564
46565         New implementation of condition variables for Win32.
46566         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46567         (gl_linked_waitqueue_t): New type.
46568         (gl_cond_t): Use it.
46569         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46570         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46571         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46572         (glthread_cond_init_func, glthread_cond_wait_func,
46573         glthread_cond_timedwait_func, glthread_cond_signal_func,
46574         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46575         Reimplemented on the basis of gl_linked_waitqueue_t.
46576         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46577         gl_waitqueue_t.
46578         (gl_rwlock_t): Update.
46579         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46580
46581 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46582
46583         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46584         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46585
46586 2008-10-17  Jim Meyering  <meyering@redhat.com>
46587
46588         ignore-value: new module
46589         * modules/ignore-value: New file.
46590         * lib/ignore-value.h: New file.
46591         * MODULES.html.sh (Compiler warning management): New section,
46592         just for this module.  More to come.
46593
46594 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46595
46596         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46597         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46598         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46599
46600 2008-10-16  Jim Meyering  <meyering@redhat.com>
46601
46602         openat-die.c: avoid 'no previous prototype' warning
46603         * lib/openat-die.c: Include "openat.h".
46604         Reported by Reuben Thomas <rrt@sc3d.org>.
46605
46606 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46607
46608         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46609         * lib/netdb.in.h: Fix typo.
46610         Reported by Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/netdb.in.h: Include sys/socket.h for platforms without
46613         netdb.h, to get structures like hostent on MinGW.
46614         * modules/netdb (Depends-on): Add sys_socket.
46615
46616 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46617
46618         * modules/netdb, modules/netdb-tests: New file.
46619         * m4/netdb_h.m4: New file.
46620         * lib/netdb.in.h: Add, currently just an empty file pending
46621         definitions.
46622         * tests/test-netdb.c: New file.
46623         * doc/posix-headers/netdb.texi: Mention that we replace it if
46624         needed.
46625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46626         netdb.
46627
46628 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46629
46630         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46631         with code.
46632
46633 2008-10-13  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/glthread/cond.c (glthread_cond_wait_func,
46636         glthread_cond_timedwait_func): Add a comment.
46637
46638 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46639
46640         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46641         * tests/test-select.c: Likewise,
46642
46643 2008-10-13  Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/glthread/cond.c (glthread_cond_wait_func,
46646         glthread_cond_timedwait_func): Fix variable name.
46647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46648
46649 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46650
46651         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46653         struct sockaddr.sa_len.
46654         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46655
46656 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46657
46658         * build-aux/pmccabe2html: Add css and css_url parameters.
46659
46660 2008-10-12  Bruno Haible  <bruno@clisp.org>
46661
46662         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46663         calling aclx_get.
46664         Reported by Rainer Tammer <tammer@tammer.net>.
46665
46666 2008-10-12  Bruno Haible  <bruno@clisp.org>
46667
46668         Use msvcrt aware primitives for creation/termination of Win32 threads.
46669         * lib/glthread/thread.c: Include <process.h>.
46670         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46671         (wrapper_func): Update signature.
46672         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46673
46674 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46675             Bruno Haible  <bruno@clisp.org>
46676
46677         Provide a Win32 implementation of the 'cond' module.
46678         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46679         * lib/glthread/cond.c (glthread_cond_init_func,
46680         glthread_cond_wait_func, glthread_cond_timedwait_func,
46681         glthread_cond_signal_func, glthread_cond_broadcast_func,
46682         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46683         * modules/cond (Dependencies): Add gettimeofday.
46684
46685 2008-10-11  Bruno Haible  <bruno@clisp.org>
46686
46687         Make sleep work on older versions of mingw.
46688         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46689         only whether it exists.
46690         * doc/posix-functions/sleep.texi: Mention the problem with older
46691         versions of mingw.
46692
46693 2008-10-11  Bruno Haible  <bruno@clisp.org>
46694
46695         New module 'shutdown'.
46696         * modules/shutdown: New file.
46697         * lib/sys_socket.in.h (shutdown): New declaration.
46698         * lib/winsock.c (shutdown): New function.
46699         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46700         GNULIB_SHUTDOWN.
46701         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46702         * doc/posix-functions/shutdown.texi: Document the new module.
46703
46704 2008-10-11  Jim Meyering  <meyering@redhat.com>
46705
46706         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46707
46708 2008-10-11  Bruno Haible  <bruno@clisp.org>
46709
46710         New module 'fclose'.
46711         * modules/fclose: New file.
46712         * lib/stdio.in.h (fclose): New declaration.
46713         * lib/fclose.c: New file.
46714         * m4/fclose.m4: New file.
46715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46716         REPLACE_FCLOSE.
46717         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46718         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46719         REPLACE_FCLOSE.
46720         * modules/close (Depends-on): fclose.
46721         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46722
46723 2008-10-11  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46726         set errno and don't call _close.
46727
46728 2008-10-10  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46731         ACL, not afterwards. Fixes test failure on Cygwin.
46732
46733 2008-10-09  Ben Pfaff  <blp@gnu.org>
46734
46735         * build-aux/announce-gen: Fix gnulib version related part of usage
46736         message.  Die with a useful error message if no tarballs are
46737         found.
46738
46739 2008-10-10  Jim Meyering  <meyering@redhat.com>
46740
46741         bootstrap: use git's --depth=N option only if it's supported
46742         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46743         recognize the --depth option.  Reported by Pádraig Brady.
46744
46745 2008-10-09  Bruno Haible  <bruno@clisp.org>
46746
46747         New module 'ioctl'.
46748         * modules/ioctl: New file.
46749         * lib/sys_socket.in.h (ioctl): Remove declaration.
46750         * lib/winsock.c: Include <sys/ioctl.h>.
46751         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46752         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46753         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46754         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46755         * doc/posix-functions/ioctl.texi: Mention the new module.
46756
46757 2008-10-09  Bruno Haible  <bruno@clisp.org>
46758
46759         New module 'sys_ioctl'.
46760         * lib/sys_ioctl.in.h: New file.
46761         * m4/sys_ioctl_h.m4: New file.
46762         * modules/sys_ioctl: New file.
46763         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46764
46765 2008-10-09  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46768         * lib/winsock.c: Include <stdarg.h>.
46769         (rpl_ioctl): Change to second argument 'int' and then varargs.
46770
46771 2008-10-09  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46774         when the sys_socket module is present and the system has <winsock2.h>.
46775
46776 2008-10-09  Bruno Haible  <bruno@clisp.org>
46777
46778         * doc/posix-functions/close.texi: Mention module 'close' instead of
46779         module 'sys_socket'.
46780
46781 2008-10-09  Bruno Haible  <bruno@clisp.org>
46782
46783         * doc/glibc-headers/sys_ioctl.texi: New file.
46784         * doc/gnulib.texi: Include it.
46785
46786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46787             Bruno Haible  <bruno@clisp.org>
46788
46789         Combine the two replacements of 'close'.
46790         * lib/sys_socket.in.h (close): Define to a reminder to include
46791         <unistd.h>.
46792         (_gl_close_fd_maybe_socket): New declaration.
46793         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46794         * lib/winsock.c (close): Remove undefinition.
46795         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46796         needed for the gnulib module 'close'.
46797         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46798         define to an error symbol or to a warning, if suitable.
46799         * lib/close.c: Include <sys/socket.h>.
46800         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46801         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46802         UNISTD_H_HAVE_WINSOCK2_H.
46803         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46805         UNISTD_H_HAVE_WINSOCK2_H.
46806         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46807         (configure.ac): Set a module indicator.
46808         (Makefile.am): Substitute GNULIB_CLOSE.
46809         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46810         * modules/poll-tests (Depends-on): Add close.
46811         * modules/select-tests (Depends-on): Likewise.
46812
46813 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46814             Bruno Haible  <bruno@clisp.org>
46815
46816         New module 'close'.
46817         * modules/close: New file.
46818         * lib/unistd.in.h (close): Move declaration out of the
46819         FCHDIR_REPLACEMENT scope.
46820         (_gl_unregister_fd): New declaration.
46821         * lib/close.c: New file.
46822         * lib/fchdir.c (rpl_close): Remove function.
46823         * m4/close.m4: New file.
46824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46825         close.
46826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46827         REPLACE_CLOSE.
46828         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46829         REPLACE_CLOSE.
46830         * modules/fchdir (Depends-on): Add close.
46831
46832 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46833             Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/fcntl.in.h (open): Simplify conditionals.
46836         (_gl_register_fd): New declaration.
46837         * lib/fchdir.c (rpl_open): Remove function.
46838         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46839         also.
46840         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46842         open.
46843
46844 2008-10-09  Jim Meyering  <meyering@redhat.com>
46845
46846         GNUmakefile: use the more name-space-friendly "_version"
46847         * top/GNUmakefile (_dummy): Update.
46848         (_version): Rename from "version".
46849
46850 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46851             Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46854         rpl_close.
46855         (_gl_register_fd): New function, extracted from rpl_open.
46856         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46857         (rpl_open, rpl_opendir): Use _gl_register_fd.
46858
46859 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46860
46861         Fix organization of 'open' replacement.
46862         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46863         (gl_FUNC_OPEN): Use it.
46864         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46865
46866 2008-10-08  Bruno Haible  <bruno@clisp.org>
46867
46868         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46869
46870 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46871
46872         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46873         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46874         listen).
46875
46876 2008-10-08  Eric Blake  <ebb9@byu.net>
46877
46878         GNUmakefile: add 'make version' target
46879         * top/GNUmakefile (_curr-ver): Split version update rules...
46880         (version): ...into a target.
46881
46882 2008-10-07  Bruno Haible  <bruno@clisp.org>
46883
46884         Use a more portable replacement expression for -0.0L.
46885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46886         instead of -0.0L. Fix m4 quotation.
46887
46888         * tests/test-signbit.c: Include <float.h>.
46889         (minus_zero): New variable.
46890         (test_signbitl): Use minus_zero instead of -zero.
46891         * modules/signbit-tests (Depends-on): Add float.
46892
46893         * tests/test-ceill.c: Include <float.h>.
46894         (zero): Remove variable.
46895         (minus_zero): New variable.
46896         (main): Use minus_zero instead of -zero.
46897         * modules/ceill-tests (Depends-on): Add float.
46898
46899         * tests/test-floorl.c: Include <float.h>.
46900         (zero): Remove variable.
46901         (minus_zero): New variable.
46902         (main): Use minus_zero instead of -zero.
46903         * modules/floorl-tests (Depends-on): Add float.
46904
46905         * tests/test-roundl.c: Include <float.h>.
46906         (zero): Remove variable.
46907         (minus_zero): New variable.
46908         (main): Use minus_zero instead of -zero.
46909         * modules/roundl-tests (Depends-on): Add float.
46910
46911         * tests/test-truncl.c: Include <float.h>.
46912         (zero): Remove variable.
46913         (minus_zero): New variable.
46914         (main): Use minus_zero instead of -zero.
46915         * modules/truncl-tests (Depends-on): Add float.
46916
46917         * tests/test-frexpl.c (zero): Remove variable.
46918         (minus_zero): New variable.
46919         (main): Use minus_zero instead of -zero.
46920         * modules/frexpl-tests (Depends-on): Add float.
46921
46922         * tests/test-isnan.c (zerol): Remove variable.
46923         (minus_zerol): New variable.
46924         (test_long_double): Use minus_zerol instead of -zerol.
46925         * modules/isnan-tests (Depends-on): Add float.
46926
46927         * tests/test-isnanl.h (zero): Remove variable.
46928         (minus_zero): New variable.
46929         (main): Use minus_zero instead of -zero.
46930         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46931         * modules/isnanl-tests (Depends-on): Add float.
46932
46933         * tests/test-ldexpl.c (zero): Remove variable.
46934         (minus_zero): New variable.
46935         (main): Use minus_zero instead of -zero.
46936         * modules/ldexpl-tests (Depends-on): Add float.
46937
46938         * tests/test-snprintf-posix.h (zerol): Remove variable.
46939         (minus_zerol): New variable.
46940         (test_function): Use minus_zerol instead of -zerol.
46941         * modules/snprintf-posix-tests (Depends-on): Add float.
46942         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46943
46944         * tests/test-sprintf-posix.h (zerol): Remove variable.
46945         (minus_zerol): New variable.
46946         (test_function): Use minus_zerol instead of -zerol.
46947         * modules/sprintf-posix-tests (Depends-on): Add float.
46948         * modules/vsprintf-posix-tests (Depends-on): Add float.
46949
46950         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46951         (minus_zerol): New variable.
46952         (test_function): Use minus_zerol instead of -zerol.
46953         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46954
46955         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46956         (minus_zerol): New variable.
46957         (test_function): Use minus_zerol instead of -zerol.
46958         * modules/vasprintf-posix-tests (Depends-on): Add float.
46959
46960 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46961
46962         * MODULES.html.sh (Support for building documentation): Mention
46963         pmccabe2html.  Sort entries.
46964
46965         Add pmccabe2html module, from gnupdf.
46966         * build-aux/pmccabe.css: New file.
46967         * build-aux/pmccabe2html: New file.
46968         * m4/pmccabe2html.m4: New file.
46969         * modules/pmccabe2html: New file.
46970
46971 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46972
46973         flock: new module
46974         * MODULES.html.sh: Add to list of modules.
46975         * lib/flock.c: flock implementation for Windows and Unix systems
46976         which have fcntl.
46977         * doc/glibc-functions/flock.texi: Update documentation.
46978         * lib/sys_file.in.h: <sys/file.h> header file.
46979         * m4/flock.m4: M4 macros.
46980         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46981         * modules/flock: flock module.
46982         * modules/flock-tests: flock tests module.
46983         * modules/sys_file: sys/file.h module.
46984         * tests/test-flock.c: test suite for flock.
46985
46986 2008-10-06  Jim Meyering  <meyering@redhat.com>
46987
46988         bootstrap: check for LT_INIT more portably still ;-)
46989         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46990         Spotted by Bruno Haible.
46991
46992 2008-10-06  Eric Blake  <ebb9@byu.net>
46993
46994         test-signbit: avoid tripping Irix cc bug on -0.0L
46995         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46996         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46997         entire testsuite consistent and avoids an Irix 6.2 bug.
46998
46999 2008-10-05  Bruno Haible  <bruno@clisp.org>
47000             Jim Meyering  <jim@meyering.net>
47001
47002         Add an option for ignoring EPIPE during close_stdout.
47003         * lib/closeout.h: Include <stdbool.h>.
47004         (close_stdout_set_ignore_EPIPE): New declaration.
47005         * lib/closeout.c: Include <stdbool.h>.
47006         (ignore_EPIPE): New variable.
47007         (close_stdout_set_ignore_EPIPE): New function.
47008         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47009         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47010         failure.
47011         * modules/closeout (Depends-on): Add stdbool.
47012
47013 2008-10-05  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/accept: New file.
47016         * modules/bind: New file.
47017         * modules/connect: New file.
47018         * modules/getpeername: New file.
47019         * modules/getsockname: New file.
47020         * modules/getsockopt: New file.
47021         * modules/listen: New file.
47022         * modules/recv: New file.
47023         * modules/recvfrom: New file.
47024         * modules/send: New file.
47025         * modules/sendto: New file.
47026         * modules/setsockopt: New file.
47027         * modules/socket: New file.
47028         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47029         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47030         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47031         the particular module is requested. Add a link warning when the
47032         particular module is not requested.
47033         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47034         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47035         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47036         the particular module is requested.
47037         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47038         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47039         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47040         * modules/sys_socket (Depends-on): Add link-warning.
47041         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47042         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47043         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47044         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47045         GL_LINK_WARNING.
47046         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47047         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47048         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47049         * doc/posix-functions/getpeername.texi: Mention the new module
47050         'getpeername'.
47051         * doc/posix-functions/getsockname.texi: Mention the new module
47052         'getsockname'.
47053         * doc/posix-functions/getsockopt.texi: Mention the new module
47054         'getsockopt'.
47055         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47056         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47057         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47058         * doc/posix-functions/send.texi: Mention the new module 'send'.
47059         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47060         * doc/posix-functions/setsockopt.texi: Mention the new module
47061         'setsockopt'.
47062         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47063         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47064         listen, connect, accept.
47065         * modules/select-tests (Depends-on): Likewise.
47066
47067 2008-10-05  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/winsock.c (strerror): Remove unused #undef.
47070         (rpl_close): Remove unused local variable.
47071
47072         * modules/sys_socket (Depends-on); Add errno.
47073
47074 2008-10-05  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47077         (select): Add a link warning when the 'select' module is not used.
47078         * modules/sys_select (Depends-on): Add link-warning.
47079         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47080         Suggested by Paolo Bonzini.
47081
47082 2008-10-05  Jim Meyering  <meyering@redhat.com>
47083
47084         bootstrap: check for LT_INIT more portably
47085         * build-aux/bootstrap: Avoid using grep -E, since it's not
47086         portable enough.  Suggestion from Bruno Haible.
47087
47088 2008-10-05  Bruno Haible  <bruno@clisp.org>
47089
47090         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47091         as being fixed by gnulib.
47092
47093 2008-10-05  Bruno Haible  <bruno@clisp.org>
47094
47095         * modules/select-tests: New file, mostly copied from
47096         modules/sys_select-tests.
47097         * tests/test-select.c: New file, mostly copied from
47098         tests/test-sys_select.c.
47099         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47100         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47101         (Makefile.am): Remove test_sys_select_LDADD.
47102
47103         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47104         to an undefined symbol, for an error message.
47105         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47106         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47107         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47108         winsock-select.c here.
47109         * modules/sys_select (Files): Remove lib/winsock-select.c.
47110         (Depends-on): Remove alloca.
47111         (Makefile.am): Substitute GNULIB_SELECT.
47112         * modules/select: New file.
47113         * doc/posix-functions/select.texi: Update.
47114
47115 2008-10-05  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47118         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47119         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47120         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47121         getdtablesize.
47122         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47123         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47124
47125 2008-10-05  Bruno Haible  <bruno@clisp.org>
47126
47127         * modules/getdtablesize-tests: New file.
47128         * tests/test-getdtablesize.c: New file.
47129
47130         New module 'getdtablesize'.
47131         * lib/unistd.in.h (getdtablesize): New declaration.
47132         * lib/getdtablesize.c: New file.
47133         * m4/getdtablesize.m4: New file.
47134         * modules/getdtablesize: New file.
47135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47136         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47137         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47138         HAVE_GETDTABLESIZE.
47139         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47140
47141 2008-10-05  Bruno Haible  <bruno@clisp.org>
47142
47143         * modules/sched (Makefile.am): Fix typo.
47144         Reported by Simon Josefsson.
47145
47146 2008-10-05  Jim Meyering  <meyering@redhat.com>
47147
47148         bootstrap: check for LT_INIT, too
47149         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47150         are deprecated.  Suggestion from Ralf Wildenhues.
47151
47152 2008-10-05  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47155         overriding them by ours.
47156         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47157
47158 2008-10-05  Jim Meyering  <meyering@redhat.com>
47159
47160         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47161         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47162         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47163
47164 2008-10-04  Bruno Haible  <bruno@clisp.org>
47165
47166         * modules/dup2 (License): Change to LGPLv2+.
47167         * modules/sleep (License): Likewise.
47168         * modules/perror (License): Likewise.
47169         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47170         Blake.
47171         * modules/signal (License): Likewise.
47172         * modules/sigprocmask (License): Likewise.
47173         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47174         Meyering.
47175
47176 2008-10-04  Bruno Haible  <bruno@clisp.org>
47177
47178         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47179         Reported by Rainer Tammer <tammer@tammer.net>.
47180
47181 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47182             Bruno Haible  <bruno@clisp.org>
47183
47184         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47185         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47186         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47187
47188 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47189
47190         filevercmp: new module
47191         * lib/filevercmp.h: New function filevercmp comparing version strings.
47192         * lib/filevercmp.c: Implementation of filevercmp function.
47193         * modules/filevercmp: Module metadata.
47194         * tests/test-filevercmp.c: Unit test for new module.
47195         * modules/filevercmp-tests: Unit test metadata.
47196         * MODULES.html.sh: Add filevercmp module.
47197
47198 2008-10-03  Bruno Haible  <bruno@clisp.org>
47199
47200         * lib/c-ctype.h: Add comment.
47201         Reported by Jim Meyering.
47202
47203 2008-10-02  Bruno Haible  <bruno@clisp.org>
47204
47205         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47206
47207 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47208
47209         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47210         name of bootstrap.conf accordingly.
47211
47212 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47213
47214         * build-aux/bootstrap: Install git-merge-changelog configuration
47215         items into .gitconfig if needed.
47216
47217 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47218
47219         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47220         git repository, and initialize/update it accordingly.
47221
47222 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47223
47224         * modules/fsync-tests: New file.
47225         * tests/test-fsync.c: New file.
47226
47227         New module 'fsync'.
47228         * lib/fsync.c: New file.
47229         * m4/fsync.m4: New file.
47230         * modules/fsync: New file.
47231         * lib/unistd.in.h (fsync): New declaration.
47232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47233         GNULIB_FSYNC and HAVE_FSYNC.
47234         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47235         * MODULES.html.sh (posix_functions): Add fsync.
47236         * doc/posix-functions/fsync.texi: Mention the new module.
47237
47238 2008-10-02  Jim Meyering  <meyering@redhat.com>
47239
47240         fts.c: sync with similar code from coreutils' remove.c
47241         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47242         Guard also with "#if defined __linux__", since for now at least,
47243         this code is Linux-kernel-specific.
47244
47245 2008-10-02  Jim Meyering  <meyering@redhat.com>
47246
47247         fts: bug fixes
47248         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47249         Include <sys/vfs.h>, not <sys/statfs.h>.
47250
47251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47252         Include <sys/vfs.h>, not <sys/statfs.h>.
47253
47254 2008-10-01  Bruno Haible  <bruno@clisp.org>
47255
47256         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47258         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47259         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47260         * doc/posix-functions/posix_spawnp.texi: Likewise.
47261         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47262         whether posix_spawn actually works.
47263         * m4/pipe.m4 (gl_PIPE): Likewise.
47264         * modules/execute (Files): Add m4/posix_spawn.m4.
47265         * modules/pipe (Files): Add m4/posix_spawn.m4.
47266         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47267
47268 2008-10-01  Jim Meyering  <meyering@redhat.com>
47269
47270         remove trailing spaces
47271         * NEWS: Likewise.
47272         * lib/poll.c (poll): Likewise.
47273         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47274         * lib/winsock.c (rpl_close): Likewise.
47275         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47276         * modules/yield: Likewise.
47277         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47278         * tests/test-sys_select.c (connect_to_socket): Likewise.
47279
47280         fts.c: adjust a new interface to be more generally useful
47281         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47282         (fts_build): Adjust caller.
47283
47284 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47285
47286         * modules/cond-tests: New file.
47287         * tests/test-cond.c: New file.
47288
47289 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47290             Bruno Haible  <bruno@clisp.org>
47291
47292         * modules/cond (Dependencies): Add errno, time.
47293         * lib/glthread/cond.h: Include <time.h>.
47294         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47295         across platforms.
47296
47297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47298             Bruno Haible  <bruno@clisp.org>
47299
47300         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47301
47302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47303             Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/tls-tests (Depends-on): Add thread, yield.
47306         (configure.ac): Remove all checks.
47307         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47308         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47309         gl_thread_self): Remove definitions. Include glthread/thread.h and
47310         glthread/yield.h instead.
47311         (test_tls): Pass an additional NULL argument to gl_thread_join.
47312
47313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47314             Bruno Haible  <bruno@clisp.org>
47315
47316         * modules/lock-tests (Depends-on): Add thread, yield.
47317         (configure.ac): Remove all checks.
47318         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47319         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47320         gl_thread_self): Remove definitions. Include glthread/thread.h and
47321         glthread/yield.h instead.
47322         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47323         additional NULL argument to gl_thread_join.
47324
47325 2008-09-30  Bruno Haible  <bruno@clisp.org>
47326
47327         Fix the Win32 implementation of the 'thread' module.
47328         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47329         pointer type.
47330         (gl_thread_self): Invoke gl_thread_self_func.
47331         (gl_thread_self_func): New declaration.
47332         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47333         (do_init_self_key, init_self_key): New functions.
47334         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47335         Remove some fields.
47336         (running_threads, running_lock): Remove variables.
47337         (get_current_thread_handle): New function.
47338         (gl_thread_self_func, wrapper_func, glthread_create_func,
47339         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47340         simplified.
47341
47342 2008-09-30  Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47345         files.
47346
47347 2008-09-30  Jim Meyering  <meyering@redhat.com>
47348
47349         fts.m4: correct the test for statfs.f_type
47350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47351         when checking for statfs.f_type.
47352
47353 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47354
47355         tests: avoid some compiler warnings
47356         * tests/test-memchr.c (main): Pass NULL indirectly.
47357         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47358
47359 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47360
47361         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47362         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47363         exactly specified dayshifts.
47364         (dayshift): New rule.
47365         (rel): Add dayshift.
47366         (relative_time_table) [tomorrow, yesterday, today, now]:
47367         Use tDAY_SHIFT in place of tDAY_UNIT.
47368         * tests/test-getdate.c: Add tests for now-disallowed countable
47369         dayshifts, e.g., "4 yesterday ago".
47370
47371 2008-09-29  Bruno Haible  <bruno@clisp.org>
47372
47373         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47374         * tests/test-posix_spawn1.in.sh: Renamed from
47375         tests/test-posix_spawn.in.sh.
47376         * tests/test-posix_spawn2.c: New file.
47377         * tests/test-posix_spawn2.in.sh: New file.
47378         * modules/posix_spawnp-tests (Files): Update.
47379         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47380
47381 2008-09-29  Bruno Haible  <bruno@clisp.org>
47382
47383         Propagate effects of putenv/setenv/unsetenv to child processes.
47384         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47385         * lib/pipe.c (create_pipe): Likewise.
47386
47387 2008-09-29  Bruno Haible  <bruno@clisp.org>
47388
47389         Enable use of shell scripts as executables in mingw.
47390         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47391         run the program as a shell script.
47392         * lib/pipe.c (create_pipe): Likewise.
47393         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47394         resulting array.
47395
47396 2008-09-29  Eric Blake  <ebb9@byu.net>
47397
47398         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47399
47400 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47401
47402         * doc/posix-functions/accept.texi: Update mingw problems.
47403         * doc/posix-functions/bind.texi: Update mingw problems.
47404         * doc/posix-functions/close.texi: Update mingw problems.
47405         * doc/posix-functions/connect.texi: Update mingw problems.
47406         * doc/posix-functions/getpeername.texi: Update mingw problems.
47407         * doc/posix-functions/getsockname.texi: Update mingw problems.
47408         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47409         * doc/posix-functions/ioctl.texi: Update mingw problems.
47410         * doc/posix-functions/listen.texi: Update mingw problems.
47411         * doc/posix-functions/recv.texi: Update mingw problems.
47412         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47413         * doc/posix-functions/select.texi: Update mingw problems.
47414         * doc/posix-functions/send.texi: Update mingw problems.
47415         * doc/posix-functions/sendto.texi: Update mingw problems.
47416         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47417         * doc/posix-functions/socket.texi: Update mingw problems.
47418
47419 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47420             Bruno Haible  <bruno@clisp.org>
47421
47422         * lib/sys_select.in.h: Include sys/time.h.
47423         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47424         * modules/sys_select: Depend on sys_time.
47425         * tests/test-sys_select.c: Test that sys/select.h defines struct
47426         timeval fully.
47427
47428 2008-09-29  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47431         * lib/sys_select.in.h: Likewise.
47432
47433 2008-09-29  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47436
47437 2008-09-29  Bruno Haible  <bruno@clisp.org>
47438
47439         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47440         Set LIBSOCKET instead of augmenting LIBS.
47441         * modules/sockets (Link): New section.
47442         * modules/sockets-tests (test_sockets_LDADD): New variable.
47443         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47444         * modules/poll-tests (test_poll_LDADD): New variable.
47445         * NEWS: Document the change.
47446
47447 2008-09-29  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47450         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47451         ARPA_INET_H directly.
47452         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47453
47454 2008-09-28  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47457         from gl_HEADER_SYS_SOCKET.
47458         (gl_HEADER_SYS_SOCKET): Invoke it.
47459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47460
47461 2008-09-28  Bruno Haible  <bruno@clisp.org>
47462
47463         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47464         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47465         Needed on OSF/1 4.0.
47466
47467 2008-09-28  Bruno Haible  <bruno@clisp.org>
47468
47469         Override open more carefully.
47470         * lib/open.c (orig_open): New function.
47471         (rpl_open): Use orig_open instead of open.
47472         * lib/fcntl.in.h: Add special invocation convention.
47473         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47474         (gl_FUNC_OPEN): Invoke it.
47475
47476         Override freopen more carefully.
47477         * lib/freopen.c (orig_freopen): New function.
47478         (rpl_freopen): Use orig_freopen instead of freopen.
47479         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47480         (gl_FUNC_FREOPEN): Invoke it.
47481
47482         Override fopen more carefully.
47483         * lib/fopen.c (orig_fopen): New function.
47484         (rpl_fopen): Use orig_fopen instead of fopen.
47485         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47486         (gl_FUNC_FOPEN): Invoke it.
47487         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47488
47489 2008-09-28  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47492         SIGPIPE.
47493
47494 2008-09-28  Bruno Haible  <bruno@clisp.org>
47495
47496         * tests/test-sigaction.c (handler, main): Disable the check whether
47497         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47498         glibc systems with LinuxThreads.
47499
47500 2008-09-28  Bruno Haible  <bruno@clisp.org>
47501
47502         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47503
47504         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47505         with AIX xlc.
47506         * lib/fcntl.in.h (open): Likewise.
47507         Reported by Rainer Tammer <tammer@tammer.net>.
47508
47509 2008-09-28  Bruno Haible  <bruno@clisp.org>
47510
47511         * modules/posix_spawnp-tests: New file.
47512         * tests/test-posix_spawn.c: New file.
47513         * tests/test-posix_spawn.in.sh: New file.
47514
47515         New module 'posix_spawnp'.
47516         * modules/posix_spawnp: New file.
47517         * lib/spawnp.c: New file, from GNU libc with modifications.
47518         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47519
47520         New module 'posix_spawn'.
47521         * modules/posix_spawn: New file.
47522         * lib/spawn.c: New file, from GNU libc with modifications.
47523         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47524
47525         New module 'posix_spawnattr_destroy'.
47526         * modules/posix_spawnattr_destroy: New file.
47527         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47528         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47529         module.
47530
47531         New module 'posix_spawnattr_setsigmask'.
47532         * modules/posix_spawnattr_setsigmask: New file.
47533         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47534         modifications.
47535         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47536         new module.
47537
47538         New module 'posix_spawnattr_getsigmask'.
47539         * modules/posix_spawnattr_getsigmask: New file.
47540         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47541         modifications.
47542         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47543         new module.
47544
47545         New module 'posix_spawnattr_setsigdefault'.
47546         * modules/posix_spawnattr_setsigdefault: New file.
47547         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47548         modifications.
47549         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47550         new module.
47551
47552         New module 'posix_spawnattr_getsigdefault'.
47553         * modules/posix_spawnattr_getsigdefault: New file.
47554         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47555         modifications.
47556         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47557         new module.
47558
47559         New module 'posix_spawnattr_setschedpolicy'.
47560         * modules/posix_spawnattr_setschedpolicy: New file.
47561         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47562         modifications.
47563         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47564         new module.
47565
47566         New module 'posix_spawnattr_getschedpolicy'.
47567         * modules/posix_spawnattr_getschedpolicy: New file.
47568         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47569         modifications.
47570         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47571         new module.
47572
47573         New module 'posix_spawnattr_setschedparam'.
47574         * modules/posix_spawnattr_setschedparam: New file.
47575         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47576         modifications.
47577         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47578         new module.
47579
47580         New module 'posix_spawnattr_getschedparam'.
47581         * modules/posix_spawnattr_getschedparam: New file.
47582         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47583         modifications.
47584         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47585         new module.
47586
47587         New module 'posix_spawnattr_setpgroup'.
47588         * modules/posix_spawnattr_setpgroup: New file.
47589         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47590         modifications.
47591         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47592         module.
47593
47594         New module 'posix_spawnattr_getpgroup'.
47595         * modules/posix_spawnattr_getpgroup: New file.
47596         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47597         modifications.
47598         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47599         module.
47600
47601         New module 'posix_spawnattr_setflags'.
47602         * modules/posix_spawnattr_setflags: New file.
47603         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47604         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47605         module.
47606
47607         New module 'posix_spawnattr_getflags'.
47608         * modules/posix_spawnattr_getflags: New file.
47609         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47610         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47611         module.
47612
47613         New module 'posix_spawnattr_init'.
47614         * modules/posix_spawnattr_init: New file.
47615         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47616         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47617         module.
47618
47619         New module 'posix_spawn_file_actions_destroy'.
47620         * modules/posix_spawn_file_actions_destroy: New file.
47621         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47622         modifications.
47623         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47624         the new module.
47625
47626         New module 'posix_spawn_file_actions_addopen'.
47627         * modules/posix_spawn_file_actions_addopen: New file.
47628         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47629         modifications.
47630         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47631         the new module.
47632
47633         New module 'posix_spawn_file_actions_adddup2'.
47634         * modules/posix_spawn_file_actions_adddup2: New file.
47635         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47636         modifications.
47637         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47638         the new module.
47639
47640         New module 'posix_spawn_file_actions_addclose'.
47641         * modules/posix_spawn_file_actions_addclose: New file.
47642         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47643         modifications.
47644         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47645         the new module.
47646
47647         New module 'posix_spawn_file_actions_init'.
47648         * modules/posix_spawn_file_actions_init: New file.
47649         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47650         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47651         new module.
47652
47653         New module 'posix_spawn-internal'.
47654         * modules/posix_spawn-internal: New file.
47655         * lib/spawn_int.h: New file, from GNU libc with modifications.
47656         * lib/spawni.c: New file, from GNU libc with modifications.
47657         * m4/posix_spawn.m4: New file.
47658
47659         New module 'spawn'.
47660         * modules/spawn: New file.
47661         * lib/spawn.in.h: New file, from GNU libc with modifications.
47662         * m4/spawn_h.m4: New file.
47663         * doc/posix-headers/spawn.texi: Mention the new module.
47664
47665 2008-09-28  Bruno Haible  <bruno@clisp.org>
47666
47667         * modules/sched-tests: New file.
47668         * tests/test-sched.c: New file.
47669
47670         New module 'sched'.
47671         * modules/sched: New file.
47672         * lib/sched.in.h: New file.
47673         * m4/sched_h.m4: New file.
47674         * doc/posix-headers/sched.texi: Mention the new module.
47675
47676 2008-09-27  Eric Blake  <ebb9@byu.net>
47677
47678         Fix previous patch, and tweak references to $0.
47679         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47680         (func_version, func_gnulib_dir): Don't call this program
47681         gnulib-tool.
47682         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47683         with using $0 in function.
47684         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47685         (func_fatal_error): Reuse the name the user invoked us with.
47686
47687 2008-09-27  Bruno Haible  <bruno@clisp.org>
47688
47689         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47690         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47691         (gl_ICONV_H): Not here.
47692         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47693         instead of assigning ICONV_H directly.
47694
47695         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47697         WCHAR_H directly.
47698
47699 2008-09-27  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47702         * modules/arpa_inet (Depends-on): Add link-warning.
47703         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47704         * modules/unistd (Makefile.am): Likewise.
47705
47706 2008-09-26  Bruno Haible  <bruno@clisp.org>
47707
47708         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47709         variables.
47710         (func_version): Essentially copied from gnulib-tool.
47711         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47712         func_readlink): Copied from gnulib-tool.
47713
47714 2008-09-26  Bruno Haible  <bruno@clisp.org>
47715
47716         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47717         invoking git-version-gen.
47718
47719 2008-09-26  Bruno Haible  <bruno@clisp.org>
47720
47721         * posix-modules: Update to directory names changed on 2008-01-19.
47722         Remove commas in output before splitting into words. No more need to
47723         avoid 'ftruncate' since 2007-02-19.
47724
47725 2008-09-26  Bruno Haible  <bruno@clisp.org>
47726
47727         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47728
47729 2008-09-26  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47732         * modules/fwriteerror (Depends-on): Add errno.
47733
47734 2008-09-26  Bruno Haible  <bruno@clisp.org>
47735
47736         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47737         * tests/test-vc-list-files-cvs.sh: Likewise.
47738
47739 2008-09-26  Bruno Haible  <bruno@clisp.org>
47740
47741         * doc/posix-headers/sys_resource.texi: Reorder items.
47742
47743 2008-09-26  Jim Meyering  <meyering@redhat.com>
47744
47745         fts: tweak inode comparison function
47746         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47747         inode numbers, as documented.
47748
47749         fts: sort dirent entries on inode number before traversing
47750         This avoids a quadratic, seek-related performance penalty when
47751         operating on a directory containing many entries (measurable at 10k;
47752         3.5 hours at 2 million entries with a cold cache) on certain types
47753         of file systems, including ext3 and ext4, but not tmpfs.
47754         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47755         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47756         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47757         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47758         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47759         (fts_build): Set the stat.st_ino member from D_INO.
47760         If it is likely to be useful, sort dirent entries on inode number.
47761
47762         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47763         and the struct statfs.f_type member.
47764         * modules/fts (Depends-on): Add d-ino.
47765
47766 2008-09-26  Bruno Haible  <bruno@clisp.org>
47767
47768         * modules/sigpipe-die (Depends-on): Add sigpipe.
47769
47770         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47771         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47772         and GNULIB_STDIO_H_SIGPIPE are set.
47773         * lib/stdio-write.c: New file.
47774         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47775         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47776         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47777         REPLACE_STDIO_WRITE_FUNCS.
47778         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47779         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47780         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47781         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47782         * modules/stdio (Files): Add lib/stdio-write.c.
47783         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47784         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47785         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47786         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47787         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47788         REPLACE_FPRINTF_POSIX.
47789         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47790         REPLACE_PRINTF_POSIX.
47791         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47792         REPLACE_VFPRINTF_POSIX.
47793         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47794         REPLACE_VPRINTF_POSIX.
47795         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47796         SIGPIPE issue.
47797         * doc/posix-functions/fputc.texi: Likewise.
47798         * doc/posix-functions/fputs.texi: Likewise.
47799         * doc/posix-functions/fwrite.texi: Likewise.
47800         * doc/posix-functions/printf.texi: Likewise.
47801         * doc/posix-functions/putc.texi: Likewise.
47802         * doc/posix-functions/putchar.texi: Likewise.
47803         * doc/posix-functions/puts.texi: Likewise.
47804         * doc/posix-functions/vfprintf.texi: Likewise.
47805         * doc/posix-functions/vprintf.texi: Likewise.
47806
47807         * modules/safe-write (Depends-on): Add write.
47808
47809         * modules/sigpipe-tests: New file.
47810         * tests/test-sigpipe.c: New file.
47811         * tests/test-sigpipe.sh: New file.
47812
47813         * modules/write: New file.
47814         * lib/unistd.in.h: Include <sys/types.h>.
47815         (write): New declaration.
47816         * lib/write.c: New file.
47817         * m4/write.m4: New file.
47818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47819         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47820         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47821         GNULIB_WRITE, REPLACE_WRITE.
47822         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47823         and the SIGPIPE issue.
47824
47825         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47826         (raise): New declaration.
47827         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47828         (ext_signal): New function.
47829         (rpl_raise): New function.
47830         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47831         GNULIB_SIGNAL_H_SIGPIPE.
47832         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47833         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47834
47835         * modules/sigpipe: New file.
47836         * m4/sigpipe.m4: New file.
47837
47838 2008-09-25  Derek Price  <derek@ximbiot.com>
47839             Bruno Haible  <bruno@clisp.org>
47840
47841         * gnulib-tool (func_import): Report all license incompatibilities, not
47842         just the first one.
47843
47844 2008-09-25  Bruno Haible  <bruno@clisp.org>
47845
47846         * gnulib-tool (func_import): When computing the edits, consider not
47847         only the Makefile.ams that exist but also those that will be generated.
47848
47849 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47850
47851         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47852         fixes gnulib-tool --test warning about duplicate dependency.
47853
47854 2008-09-25  Bruno Haible  <bruno@clisp.org>
47855
47856         * gnulib-tool: Don't ask the user to perform edits in the generated
47857         Makefile.ams.
47858         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47859         apply to the Makefile.am being generated.
47860         (func_emit_tests_Makefile_am): Execute edits that apply to the
47861         Makefile.am being generated.
47862         (func_import): Setup list of Makefile.am edits before emitting the
47863         Makefile.ams, not at the end.
47864         (func_create_testdir): Update.
47865         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47866
47867 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47868
47869         * gnulib-tool (func_import): Store the --tests-base option in the
47870         comment in gnulib-cache.m4.
47871
47872 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47873
47874         * NEWS: Document increased portability that sys_select now provides.
47875
47876         * lib/sys_select.in.h: Install select wrapper.
47877         * lib/sys_socket.in.h: Use more descriptive name when there is no
47878         select wrapper.
47879         * lib/winsock-select.c: New.
47880         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47881         Require gl_HEADER_SYS_SOCKET.
47882         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47883         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47884         * tests/test-sys_select.c: Add functional tests.
47885
47886 2008-09-24  Eric Blake  <ebb9@byu.net>
47887
47888         open, fopen: close fd leak in last patch
47889         * lib/open.c (rpl_open): Close fd before returning error.
47890         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47891         * doc/posix-functions/open.texi (open): Document that Irix also
47892         has the bug.
47893         * doc/posix-functions/fopen.texi (fopen): Likewise.
47894         Reported by Paolo Bonzini.
47895
47896 2008-09-24  Bruno Haible  <bruno@clisp.org>
47897
47898         Ensure that a filename ending in a slash cannot be used to access a
47899         non-directory.
47900         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47901         to check whether it's really a directory.
47902         * lib/fopen.c: Include fcntl.h, unistd.h.
47903         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47904         and fdopen().
47905         * modules/fopen (Depends-on): Add unistd.
47906         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47907         * tests/test-fopen.c (main): Likewise.
47908         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47909         * doc/posix-functions/fopen.texi: Likewise.
47910         Reported by Eric Blake.
47911
47912 2008-09-23  Eric Blake  <ebb9@byu.net>
47913
47914         c-stack: avoid compiler optimizations when provoking overflow
47915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47916         recursion harder to optimize, to ensure a stack overflow occurs.
47917         * tests/test-c-stack.c (recurse): Likewise.
47918         Borrowed from libsigsegv.
47919
47920         c-stack: work around Irix sigaltstack bug
47921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47922         whether sigaltstack uses wrong end of stack_t (copied in part from
47923         libsigsegv).
47924         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47925         Irix bug, without requiring an over-allocation.
47926         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47927         bug.
47928
47929         fopen: document mingw bug on directories
47930         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47931         not allowing a stream visiting a directory, even though reading
47932         from such a stream is not portable.
47933
47934 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47935
47936         * lib/poll.c: Rewrite.
47937         * modules/poll: Depend on alloca.
47938
47939 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47940
47941         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47942         instead define prototypes for a full set of wrappers.  Ensure
47943         that Cygwin does not use the compatibility code, which is only
47944         for MinGW.
47945         * lib/winsock.c: New.
47946         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47947         * modules/sys_socket: Add lib/winsock.c.
47948
47949         * modules/poll-tests: Add errno and perror.
47950         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47951
47952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47953
47954         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47955
47956 2008-09-23  Bruno Haible  <bruno@clisp.org>
47957
47958         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47959         * doc/glibc-functions/*: Likewise.
47960
47961 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47962
47963         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47964         success.
47965
47966 2008-09-22  Eric Blake  <ebb9@byu.net>
47967             Bruno Haible  <bruno@clisp.org>
47968
47969         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47970         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47971         supply %A but mishandle pseudo-NaN.
47972         Reported by Simon Josefsson.
47973
47974 2008-09-21  Bruno Haible  <bruno@clisp.org>
47975
47976         * tests/test-lock.c (main): Tweak skip message.
47977         * tests/test-tls.c (main): Likewise.
47978
47979 2008-09-21  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47982         whether 'struct sigaction' has sa_sigaction here...
47983         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47984         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47985
47986 2008-09-21  Bruno Haible  <bruno@clisp.org>
47987
47988         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47989         section.
47990         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47991         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47992         the new section.
47993         (Support for obsolete systems lacking POSIX:2001): New section.
47994         (String handling <string.h>): Move strdup to the new section.
47995         Suggested by Simon Josefsson and Paolo Bonzini.
47996
47997 2008-09-21  Bruno Haible  <bruno@clisp.org>
47998
47999         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48000         exponents in %e and %g results on 'long double'. Needed for mingw's
48001         improved *printf functions.
48002         * tests/test-vasprintf-posix.c (test_function): Likewise.
48003         * tests/test-snprintf-posix.h (test_function): Likewise.
48004         * tests/test-sprintf-posix.h (test_function): Likewise.
48005         Reported by Eric Blake.
48006
48007 2008-09-21  Bruno Haible  <bruno@clisp.org>
48008
48009         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48010         * tests/test-sprintf-posix.h (test_function): Likewise.
48011
48012 2008-09-21  Bruno Haible  <bruno@clisp.org>
48013
48014         * modules/getpass (Depends-on): Add strdup-posix.
48015
48016         New module 'strdup-posix'.
48017         * modules/strdup-posix: New file.
48018         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48019         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48021         REPLACE_STRDUP.
48022         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48023         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48025         strdup-posix.
48026
48027         * modules/strdup (Depends-on): Remove malloc-posix.
48028
48029 2008-09-20  Bruno Haible  <bruno@clisp.org>
48030
48031         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48032         Wildenhues.
48033
48034 2008-09-20  Bruno Haible  <bruno@clisp.org>
48035
48036         Ensure that wint_t gets defined on IRIX 5.3.
48037         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48038         * lib/wctype.in.h (wint_t): Likewise.
48039         (__wctype_wint_t): Remove type.
48040         (isw*): Use wint_t instead of __wctype_wint_t.
48041         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48042         * modules/wchar (Files): Add m4/wint_t.m4.
48043         (Makefile.am): Substitute HAVE_WINT_T.
48044         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48045         * tests/test-wctype.c: Check that wint_t is defined.
48046         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48047         * doc/posix-headers/wctype.texi: Likewise.
48048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48049
48050 2008-09-18  Bruno Haible  <bruno@clisp.org>
48051
48052         * gnulib-tool (func_exit): Update comment.
48053
48054 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48055
48056         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48057         assumes strdup exists and does not depend on strdup to return
48058         ENOMEM on out of memory conditions.
48059
48060 2008-09-18  Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48063         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48064         digits for the exponent.
48065
48066 2008-09-18  Jim Meyering  <meyering@redhat.com>
48067             Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/vasnprintf.c (decimal_point_char): Define also if
48070         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48071
48072 2008-09-16  Bruno Haible  <bruno@clisp.org>
48073         and Eric Blake  <ebb9@byu.net>
48074
48075         vasnprintf: support Irix 5.3
48076         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48077         that mishandle long double infinity.
48078         Reported by Tom G. Christensen.
48079
48080 2008-09-16  Bruno Haible  <bruno@clisp.org>
48081
48082         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48083         Solaris 9.
48084         * doc/glibc-functions/alphasort.texi: Likewise.
48085         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48086
48087 2008-09-16  Jim Meyering  <meyering@redhat.com>
48088
48089         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48090         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48091         a umask modification leak out of a subshell.  Otherwise, the
48092         opensolaris /bin/sh would be accepted and thus cause unwarranted
48093         failures in the coreutils test suite.
48094
48095 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48096
48097         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48098         to succeed.
48099
48100 2008-09-16  Jim Meyering  <meyering@redhat.com>
48101
48102         avoid spurious test failure when library is built without ACL support
48103         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48104         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48105         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48106         * tests/test-copy-acl.sh: Likewise.
48107
48108 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48109
48110         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48111         based on character occurrence counts.
48112
48113 2008-09-15  Eric Blake  <ebb9@byu.net>
48114
48115         tests: avoid some compiler warnings
48116         * tests/test-memchr.c (main): Pass NULL indirectly.
48117         * tests/test-closein.c (main): Avoid unused variable.
48118
48119 2008-09-15  Bruno Haible  <bruno@clisp.org>
48120
48121         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48122         are missing on OpenBSD 4.0 individually.
48123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48124
48125 2008-09-15  Bruno Haible  <bruno@clisp.org>
48126
48127         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48128         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48129         * doc/posix-functions/perror.texi: Likewise.
48130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48131         is missing.
48132         Reported by Eric Blake.
48133
48134         * lib/errno.in.h: Use replacement values >= 2000.
48135         Reported by Eric Blake.
48136
48137 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48138
48139         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48140         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48141         limit.
48142         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48143         compareseq was aborted.
48144
48145 2008-09-14  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48148         yvec_edit_count.
48149         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48150         (fstrcmp_bounded): Simplify result computation accordingly.
48151
48152 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48153
48154         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48155         (fstrcmp): Define in terms of fstrcmp_bounded.
48156         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48157         lower_bound argument.
48158         Return quickly if the result is certainly < lower_bound.
48159         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48160
48161 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48162
48163         * lib/diffseq.h (EARLY_ABORT): New macro.
48164         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48165         evaluates to true.
48166
48167 2008-09-14  Bruno Haible  <bruno@clisp.org>
48168
48169         * modules/perror-tests: New file.
48170         * tests/test-perror.sh: New file.
48171         * tests/test-perror.c: New file.
48172
48173         New module 'perror'.
48174         * lib/stdio.in.h (perror): New declaration.
48175         * lib/perror.c: New file.
48176         * m4/perror.m4: New file.
48177         * modules/perror: New file.
48178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48179         * doc/posix-functions/perror.texi: Mention the perror module.
48180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48181         REPLACE_PERROR.
48182         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48183         REPLACE_PERROR.
48184
48185 2008-09-14  Bruno Haible  <bruno@clisp.org>
48186
48187         * modules/stdio (Makefile.am): Reorder to match the order in
48188         lib/stdio.in.h.
48189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48190
48191 2008-09-13  Bruno Haible  <bruno@clisp.org>
48192
48193         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48194
48195 2008-09-13  Bruno Haible  <bruno@clisp.org>
48196
48197         Extend strerror to cover the added errno values.
48198         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48199         (rpl_strerror): Provide error messages for the added errno values and
48200         for the WSA* values.
48201         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48202         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48203         strerror.
48204         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48205         * modules/strerror (Depends-on): Add errno.
48206         * doc/posix-functions/strerror.texi: Document the change.
48207         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48208         and EOVERFLOW.
48209
48210 2008-09-13  Bruno Haible  <bruno@clisp.org>
48211
48212         * modules/EOVERFLOW: Remove file.
48213         * m4/eoverflow.m4: Remove file.
48214         * modules/EOVERFLOW-tests: Remove file.
48215         * tests/test-EOVERFLOW.c: Remove file.
48216         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48217         * modules/ftell (Depends-on): Likewise.
48218         * modules/getdelim (Depends-on): Likewise.
48219         * modules/getugroups (Depends-on): Likewise.
48220         * modules/poll (Depends-on): Likewise.
48221         * modules/snprintf (Depends-on): Likewise.
48222         * modules/sprintf-posix (Depends-on): Likewise.
48223         * modules/vasnprintf (Depends-on): Likewise.
48224         * modules/vasprintf (Depends-on): Likewise.
48225         * modules/vfprintf-posix (Depends-on): Likewise.
48226         * modules/vsnprintf (Depends-on): Likewise.
48227         * modules/vsprintf-posix (Depends-on): Likewise.
48228         * modules/xvasprintf (Depends-on): Likewise.
48229         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48230         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48231         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48232         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48233         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48234         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48235         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48236         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48238         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48239         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48240         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48242         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48243         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48244         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48245         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48246         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48247         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48248         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48249         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48250         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48251         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48252         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48253         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48255         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48256         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48257         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48258         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48259         * MODULES.html.sh: Remove EOVERFLOW.
48260         * NEWS: Mention the change.
48261
48262 2008-09-13  Bruno Haible  <bruno@clisp.org>
48263
48264         * modules/errno-tests: New file.
48265         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48266
48267         * lib/errno.in.h: New file.
48268         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48269         * modules/errno: New file.
48270         * doc/posix-headers/errno.texi: Update documentation.
48271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48272
48273 2008-09-13  Bruno Haible  <bruno@clisp.org>
48274
48275         * tests/test-poll.c: Use #if for native Windows, rather than testing
48276         __MSVCRT__.
48277
48278 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48279             Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/glob.c: Don't include <pwd.h> on native Windows.
48282         (WINDOWS32): New macro.
48283         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48284
48285 2008-09-13  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48288         (ETIMEDOUT): Remove macro.
48289         (glthread_cond_timedwait_multithreaded): New declaration.
48290         (glthread_cond_timedwait): Use it.
48291         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48292         (glthread_cond_timedwait_multithreaded): New function.
48293
48294 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48295
48296         * modules/poll-tests: Do not check for io.h.
48297         * tests/test-poll.c: Check for __MSVCRT__ instead.
48298
48299 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48300
48301         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48302         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48303         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48304
48305 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48306
48307         * modules/poll-tests: New.
48308         * tests/test-poll.c: New.
48309
48310 2008-09-12  Eric Blake  <ebb9@byu.net>
48311
48312         frexp: test for NetBSD failure on -0.0
48313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48314         not all, bugs from NetBSD 3.0 have been fixed.
48315         * doc/posix-functions/frexp.texi (frexp): Document bug.
48316         Reported by Thomas Klausner.
48317
48318         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48319         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48320         literal -0.0.
48321         Reported by Jonathan C. Patschke <jp@centtech.com>.
48322
48323 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48324
48325         * lib/glthread/cond.h: Use dummy implementation also if
48326         USE_WIN32_THREADS.
48327
48328 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48329
48330         * modules/fnmatch-posix (License): Change to LGPLv2+.
48331         * modules/fnmatch-gnu (License): Likewise.
48332
48333 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48334
48335         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48336
48337 2008-09-11  Jim Meyering  <meyering@redhat.com>
48338
48339         * users.txt: Add gtk-vnc.
48340
48341 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48342
48343         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48344         rotate amounts.
48345
48346         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48347         required for 16-bit and 8-bit rotates.
48348         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48349         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48350         UINT8_MAX instead of hard-coded constants.
48351         Suggested by Paul Eggert.
48352
48353 2008-09-07  Bruno Haible  <bruno@clisp.org>
48354
48355         * tests/test-striconveh.c (main): Check behaviour when converting from
48356         UTF-7.
48357
48358         Make striconveh work better with stateful encodings.
48359         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48360         that iconv does not increment the inptr when returning -1/EINVAL.
48361
48362 2008-09-07  Bruno Haible  <bruno@clisp.org>
48363
48364         * build-aux/config.rpath: Update according to libtool-2.2.6.
48365         * build-aux/config.libpath: Likewise.
48366
48367 2008-09-06  Bruno Haible  <bruno@clisp.org>
48368
48369         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48370         * lib/freadptr.c (freadptr): Likewise.
48371         * lib/freadseek.c (freadptrinc): Likewise.
48372         Reported by Simon Josefsson.
48373
48374 2008-09-06  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/freadptr (License): Change to LGPLv2+.
48377         * modules/freadseek (License): Likewise.
48378         Suggested by Eric Blake.
48379
48380         * modules/memchr2 (License): Change to LGPLv2+.
48381         Approved by Eric Blake.
48382
48383 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48384             Bruno Haible  <bruno@clisp.org>
48385
48386         Make gnulib-tool work with native 'sed' on AIX.
48387         * gnulib-tool (sed_noop): New variable.
48388         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48389         func_add_or_update, func_create_testdir): Use it to initialize sed
48390         script variables.
48391         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48392
48393 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48394             Bruno Haible  <bruno@clisp.org>
48395
48396         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48397         also works after #include directives.
48398
48399 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48400
48401         getdate.y: reject an out-of-range timezone value
48402         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48403         the range [-24...+24].  When specified with only one or two digits,
48404         * tests/test-getdate.c: Tests for the fix.
48405         * doc/getdate.texi: Document this change.
48406
48407 2008-09-03  Bruno Haible  <bruno@clisp.org>
48408
48409         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48410
48411 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48412
48413         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48414         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48415         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48416         Blake <ebb9@byu.net>.
48417
48418         * tests/test-bitrotate.c: Add more test vectors.
48419
48420 2008-09-02  Eric Blake  <ebb9@byu.net>
48421
48422         vasnprintf-posix: handle large precision via %.*d
48423         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48424         when handling it ourselves.
48425         * tests/test-vasnprintf-posix.c (test_function): Add test.
48426         * tests/test-snprintf-posix.h (test_function): Likewise.
48427         * tests/test-sprintf-posix.h (test_function): Likewise.
48428         * tests/test-vasprintf-posix.c (test_function): Likewise.
48429         Reported by Alain Guibert.
48430
48431 2008-09-01  Eric Blake  <ebb9@byu.net>
48432
48433         c-stack: make configure-time check more robust
48434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48435         successful sigaction call.
48436         Reported by Tom G. Christensen.
48437
48438 2008-09-01  Bruno Haible  <bruno@clisp.org>
48439
48440         New module 'findprog-lgpl'.
48441         * modules/findprog-lgpl: New file.
48442         * lib/findprog-lgpl.c: New file.
48443         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48444         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48445         to decide whether to use strdup or xstrdup, concatenated_filename or
48446         xconcatenated_filename.
48447
48448 2008-09-01  Bruno Haible  <bruno@clisp.org>
48449
48450         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48451         'xconcat-filename' (GPL).
48452         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48453         (License): Change to LGPLv2+.
48454         * modules/xconcat-filename: New file.
48455         * lib/concat-filename.h (concatenated_filename): Change specification.
48456         (xconcatenated_filename): New declaration.
48457         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48458         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48459         memory situations.
48460         * lib/xconcat-filename.c: New file.
48461         * NEWS: Mention the change.
48462         * lib/findprog.c: Include concat-filename.h, not filename.h.
48463         (find_in_path): Use xconcatenated_filename instead of
48464         concatenated_filename.
48465         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48466         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48467         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48468         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48469         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48470         instead of concatenated_filename.
48471         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48472         (execute_java_class): Use xconcatenated_filename instead of
48473         concatenated_filename.
48474         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48475         * modules/javacomp (Depends-on): Likewise.
48476         * modules/javaexec (Depends-on): Likewise.
48477
48478 2008-09-01  Bruno Haible  <bruno@clisp.org>
48479
48480         Split module 'filename' into 'filename' and 'concat-filename'.
48481         * modules/filename: Keep only lib/filename.h.
48482         (License): Change to LGPLv2+.
48483         * modules/concat-filename: New file, extracted from modules/filename.
48484         * lib/filename.h (concatenated_filename): Remove declaration.
48485         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48486         * lib/concat-filename.c: Include concat-filename.h.
48487         * NEWS: Mention the change.
48488
48489 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48490
48491         * lib/bitrotate.h (rotl8, rotr8): Add.
48492
48493         * modules/bitrotate (configure.ac): Need
48494         AC_REQUIRE([AC_C_INLINE]).
48495         (Description): Mention stdint.h.  Reported by Bruno Haible
48496         <bruno@clisp.org>.
48497
48498         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48499         Paolo Bonzini <bonzini@gnu.org>.
48500
48501 2008-08-31  Bruno Haible  <bruno@clisp.org>
48502
48503         Assume Solaris specific bi-arch conventions on Solaris systems.
48504         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48505         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48507         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48508         like acl_libdirstem.
48509         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48510         acl_libdirstem.
48511         * NEWS: Mention the change.
48512         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48513
48514 2008-08-31  Jim Meyering  <meyering@redhat.com>
48515
48516         * lib/strftime.h: Add comments describing the two added arguments.
48517
48518         remove duplicate #include directives
48519         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48520         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48521
48522 2008-08-31  Bruno Haible  <bruno@clisp.org>
48523
48524         New module 'sigpipe-die'.
48525         * modules/sigpipe-die: New file.
48526         * lib/sigpipe-die.h: New file.
48527         * lib/sigpipe-die.c: New file.
48528         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48529
48530 2008-08-31  Bruno Haible  <bruno@clisp.org>
48531
48532         Don't override previously installed signal handlers.
48533         * lib/fatal-signal.c (saved_sigactions): New variable.
48534         (uninstall_handlers): Reset the signal to the saved handler, not
48535         to SIG_DFL (except when ignored).
48536         (install_handlers): Save the previous handlers.
48537
48538 2008-08-30  Bruno Haible  <bruno@clisp.org>
48539
48540         * gnulib-tool (func_reset_sigpipe): New function.
48541         (func_get_automake_snippet, func_modules_transitive_closure,
48542         func_import): Invoke it before a join command that reads from stdin,
48543         to avoid "echo: write error: Broken pipe" error messages on stderr.
48544         Reported by Sam Steingold <sds@gnu.org>.
48545
48546 2008-08-30  Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48549         Code copied from m4/open.m4.
48550         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48551         access and the filename ends in a slash. Code copied from lib/open.c.
48552         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48553         * tests/test-fopen.c (main): Check against bug with trailing slash.
48554
48555 2008-08-29  Bruno Haible  <bruno@clisp.org>
48556
48557         Avoid some "gcc -pedantic" warnings.
48558         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48559         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48560         * lib/dirent.in.h: Likewise.
48561         * lib/fcntl.in.h: Likewise.
48562         * lib/float.in.h: Likewise.
48563         * lib/iconv.in.h: Likewise.
48564         * lib/inttypes.in.h: Likewise.
48565         * lib/locale.in.h: Likewise.
48566         * lib/math.in.h: Likewise.
48567         * lib/netinet_in.in.h: Likewise.
48568         * lib/search.in.h: Likewise.
48569         * lib/signal.in.h: Likewise.
48570         * lib/stdarg.in.h: Likewise.
48571         * lib/stdint.in.h: Likewise.
48572         * lib/stdio.in.h: Likewise.
48573         * lib/stdlib.in.h: Likewise.
48574         * lib/string.in.h: Likewise.
48575         * lib/strings.in.h: Likewise.
48576         * lib/sys_select.in.h: Likewise.
48577         * lib/sys_socket.in.h: Likewise.
48578         * lib/sys_stat.in.h: Likewise.
48579         * lib/sys_time.in.h: Likewise.
48580         * lib/sysexits.in.h: Likewise.
48581         * lib/time.in.h: Likewise.
48582         * lib/unistd.in.h: Likewise.
48583         * lib/wchar.in.h: Likewise.
48584         * lib/wctype.in.h: Likewise.
48585         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48586         * modules/fchdir (Makefile.am): Likewise.
48587         * modules/fcntl (Makefile.am): Likewise.
48588         * modules/float (Makefile.am): Likewise.
48589         * modules/iconv_open (Makefile.am): Likewise.
48590         * modules/inttypes (Makefile.am): Likewise.
48591         * modules/locale (Makefile.am): Likewise.
48592         * modules/math (Makefile.am): Likewise.
48593         * modules/netinet_in (Makefile.am): Likewise.
48594         * modules/search (Makefile.am): Likewise.
48595         * modules/signal (Makefile.am): Likewise.
48596         * modules/stdarg (Makefile.am): Likewise.
48597         * modules/stdint (Makefile.am): Likewise.
48598         * modules/stdio (Makefile.am): Likewise.
48599         * modules/stdlib (Makefile.am): Likewise.
48600         * modules/string (Makefile.am): Likewise.
48601         * modules/strings (Makefile.am): Likewise.
48602         * modules/sys_select (Makefile.am): Likewise.
48603         * modules/sys_socket (Makefile.am): Likewise.
48604         * modules/sys_stat (Makefile.am): Likewise.
48605         * modules/sys_time (Makefile.am): Likewise.
48606         * modules/sysexits (Makefile.am): Likewise.
48607         * modules/time (Makefile.am): Likewise.
48608         * modules/unistd (Makefile.am): Likewise.
48609         * modules/wchar (Makefile.am): Likewise.
48610         * modules/wctype (Makefile.am): Likewise.
48611         Reported by Reuben Thomas <rrt@sc3d.org>.
48612
48613 2008-08-29  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48616         any more.
48617
48618 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48619
48620         * MODULES.html.sh (Misc): Add bitrotate.
48621
48622         * modules/bitrotate: New file.
48623
48624         * lib/bitrotate.h: New file.
48625
48626         * modules/bitrotate-tests: New file.
48627
48628         * tests/test-bitrotate.c: New file.
48629
48630         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48631         on the bitrotate module.
48632
48633         * lib/arctwo.c: Use new bitrotate module.
48634
48635 2008-08-29  Jim Meyering  <meyering@redhat.com>
48636
48637         bootstrap: merge changes from coreutils
48638         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48639         of copied files.  Remove a kludge, now that this is fixed.
48640         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48641         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48642         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48643
48644 2008-08-29  Bruno Haible  <bruno@clisp.org>
48645
48646         * MODULES.html.sh: Remove --cvs-urls option.
48647
48648 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48649
48650         maint.mk: adjust to file name change
48651         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48652
48653 2008-08-28  Jim Meyering  <meyering@redhat.com>
48654
48655         * modules/getndelim2 (License): Relicense to LGPLv2+.
48656         Approved by Richard Stallman for the version of 1995, and by
48657         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48658
48659 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48660
48661         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48662         dummy if one is not available.  Do not touch them if
48663         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48664         (getc_maybe_unlocked): New.
48665         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48666
48667 2008-08-26  Eric Blake  <ebb9@byu.net>
48668
48669         doc/INSTALL: resync from autoconf
48670         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48671         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48672         moving...
48673         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48674         * INSTALL: Regenerate.
48675         * INSTALL.ISO: New file.
48676         * INSTALL.UTF-8: Likewise.
48677
48678 2008-08-26  Jim Meyering  <meyering@redhat.com>
48679
48680         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48681         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48682         these definitions conditional, so that they may be overridden, too.
48683
48684 2008-08-26  Bruno Haible  <bruno@clisp.org>
48685
48686         Generate INSTALL file variants with prettier quotes.
48687         * doc/Makefile (INSTALL_PRELUDE): New macro.
48688         (INSTALL): Use it.
48689         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48690
48691 2008-08-26  Bruno Haible  <bruno@clisp.org>
48692
48693         Run makeinfo in an English locale.
48694         * doc/Makefile (MAKEINFO): New variable.
48695
48696 2008-08-26  Bruno Haible  <bruno@clisp.org>
48697
48698         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48699         Suggested by Eric Blake.
48700
48701 2008-08-25  Bruno Haible  <bruno@clisp.org>
48702
48703         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48704
48705 2008-08-25  Eric Blake  <ebb9@byu.net>
48706
48707         c-stack: test that stack overflow can be caught
48708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48709         that platform allows handling stack overflow; at least OS/2 EMX
48710         has sigaltstack, but crashes before transferring control to
48711         handler on stack overflow.
48712         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48713         check for HAVE_STACK_OVERFLOW_HANDLING.
48714         Reported by Elbert Pol.
48715
48716 2008-08-25  Bruno Haible  <bruno@clisp.org>
48717
48718         * doc/posix-functions/strftime.texi: Fix description of strftime
48719         module.
48720
48721 2008-08-24  Bruno Haible  <bruno@clisp.org>
48722
48723         * tests/uniwidth/test-uc_width2.c: New file.
48724         * tests/uniwidth/test-uc_width2.sh: New file.
48725         * modules/uniwidth/width-tests (Files): Add the new files.
48726         (TESTS): Add uniwidth/test-uc_width2.sh.
48727         (TESTS_ENVIRONMENT): New variable.
48728         (check_PROGRAMS): Add test-uc_width2.
48729         (test_uc_width2_SOURCES): New variable.
48730
48731         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48732         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48733         not 0x00AB.
48734         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48735
48736 2008-08-22  Eric Blake  <ebb9@byu.net>
48737
48738         test-lock, test-tls: mention why a test is skipped
48739         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48740         skipped.
48741         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48742
48743         count-one-bits: relax license
48744         * modules/count-one-bits (License): Relicense to LGPLv2+.
48745         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48746
48747 2008-08-22  Andreas Schwab  <schwab@suse.de>
48748
48749         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48750         Remove spurious space in assignment.
48751
48752 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48753
48754         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48755         Paul Eggert <eggert@CS.UCLA.EDU>.
48756
48757 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48758
48759         * modules/gettext: Add m4/threadlib.m4.
48760
48761 2008-08-19  Eric Blake  <ebb9@byu.net>
48762
48763         test-c-stack: fix compilation failure on FreeBSD 5.0
48764         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48765         headers before <sys/resource.h>.
48766         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48767         the bug.
48768         Reported by Nelson H. F. Beebe.
48769
48770         strverscmp: migrate from "strverscmp.h" to <string.h>
48771         * modules/string (Makefile.am): Add new hooks.
48772         * modules/strverscmp (Files): Remove strverscmp.h.
48773         (Depends-on): Add string.
48774         (configure.ac): Add indicator.
48775         (Include): Mention new header.
48776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48777         defaults.
48778         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48779         results.
48780         * lib/strverscmp.h: Delete.
48781         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48782         * tests/test-strverscmp.c (includes): Adjust client.
48783         * lib/check-version.c (includes): Likewise.
48784         * NEWS: Document the change.
48785
48786         strverscmp: add unit test
48787         * modules/strverscmp-tests: New file.
48788         * tests/test-strverscmp.c: Likewise.
48789
48790 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48791
48792         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48793         regarding Windows crypto stuff, from Mono.
48794
48795 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48796
48797         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48798         if present, for intel RND.  Return error on failures.
48799
48800 2008-08-18  Ben Pfaff  <blp@gnu.org>
48801
48802         gitlog-to-changelog: give better diagnostic for failed pipe-open
48803         * build-aux/gitlog-to-changelog: Improve error message: suggest
48804         that the version of Git may be too old.
48805
48806 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48807
48808         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48809         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48810
48811 2008-08-18  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48814         pthread_in_use().
48815
48816 2008-08-18  Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/glthread/threadlib.c: Include <pthread.h>.
48819
48820 2008-08-18  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48823         glthread_recursive_lock_* macros.
48824         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48825         Fix syntax error.
48826
48827 2008-08-18  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/glthread/thread.c: Avoid forcing a context switch right after
48830         thread creation.
48831
48832 2008-08-17  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48835         * lib/glthread/thread.h: Provide Win32 specific implementation.
48836         * modules/thread (Files): Add lib/glthread/thread.c.
48837         (Depends-on): Add lock.
48838         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48839
48840 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48841
48842         New module 'yield'.
48843         * modules/yield: New file.
48844         * lib/glthread/yield.h: New file.
48845         * m4/yield.m4: New file.
48846         * MODULES.html.sh (Multithreading): Add yield.
48847
48848 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48849
48850         New module 'thread'.
48851         * modules/thread: New file.
48852         * lib/glthread/thread.h: New file.
48853         * m4/thread.m4: New file.
48854         * MODULES.html.sh (Multithreading): Add thread.
48855
48856 2008-08-17  Bruno Haible  <bruno@clisp.org>
48857
48858         * lib/glthread/lock.h: Include <stdlib.h> always.
48859         * lib/glthread/tls.h: Likewise.
48860         * lib/glthread/cond.h: Likewise.
48861
48862 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48863
48864         New module 'cond'.
48865         * modules/cond: New file.
48866         * lib/glthread/cond.h: New file.
48867         * lib/glthread/cond.c: New file.
48868         * m4/cond.m4: New file.
48869         * MODULES.html.sh (Multithreading): Add cond.
48870
48871 2008-08-16  Eric Blake  <ebb9@byu.net>
48872
48873         c-stack: fix regression on Irix 5.3 from 2008-06-21
48874         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48875         sa_sigaction...
48876         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48877         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48879         * modules/signal (Makefile.am): Use the value.
48880         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48881         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48882         * doc/posix-headers/signal.texi (signal.h): Document this
48883         portability issue.
48884         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48885         Reported by Tom G. Christensen.
48886
48887 2008-08-17  Bruno Haible  <bruno@clisp.org>
48888
48889         New module 'threadlib'.
48890         * modules/threadlib: New file.
48891         * lib/glthread/threadlib.c: New file, extracted from
48892         lib/glthread/lock.c.
48893         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48894         functions.
48895         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48896         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48897         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48898         macros.
48899         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48900         (gl_DISABLE_THREADS): Remove macro.
48901         * modules/lock (Files): Remove build-aux/config.rpath.
48902         (Depends-on): Remove havelib. Add threadlib.
48903         (configure.ac-early): Remove section.
48904         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48905         * modules/tls (Depends-on): Remove lock. Add threadlib.
48906         (Link): New section, copied from threadlib.
48907         * MODULES.html.sh (Multithreading): Add threadlib.
48908
48909 2008-08-14  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48912         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48913         glthread_rwlock_unlock, glthread_rwlock_destroy,
48914         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48915         glthread_recursive_lock_destroy): Define as macros always.
48916         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48917         glthread_lock_lock.
48918         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48919         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48920         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48921         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48922         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48923         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48924         (glthread_recursive_lock_lock_func): Renamed from
48925         glthread_recursive_lock_lock.
48926         (glthread_recursive_lock_unlock_func): Renamed from
48927         glthread_recursive_lock_unlock.
48928         (glthread_recursive_lock_destroy_func): Renamed from
48929         glthread_recursive_lock_destroy.
48930
48931 2008-08-14  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/glthread/lock.h: Renamed from lib/lock.h.
48934         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48935         * lib/glthread/tls.h: Renamed from lib/tls.h.
48936         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48937         * lib/fstrcmp.c: Update includes.
48938         * lib/strsignal.c: Update includes.
48939         * modules/lock (Files, Makefile.am): Update.
48940         (Include): Change to "glthread/lock.h".
48941         * modules/tls (Files, Makefile.am): Update.
48942         (Include): Change to "glthread/tls.h".
48943         * tests/test-lock.c: Update includes.
48944         * tests/test-tls.c: Update includes.
48945         * NEWS: Mention the renamed header files.
48946
48947 2008-08-11  Jim Meyering  <meyering@redhat.com>
48948
48949         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48950
48951 2008-08-11  Eric Blake  <ebb9@byu.net>
48952
48953         test-c-stack: avoid C99-ism
48954         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48955         before statement.
48956         Reported by Alain Guibert.
48957
48958 2008-08-10  Jim Meyering  <meyering@redhat.com>
48959
48960         ensure that return value of uinttostr et al are not ignored
48961         * lib/inttostr.h (__GNUC_PREREQ): Define.
48962         (__attribute_warn_unused_result__): Define.
48963         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48964
48965 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48966
48967         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48968         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48969
48970 2008-08-07  Jim Meyering  <meyering@redhat.com>
48971
48972         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48973
48974         * modules/mkstemp (License): Relicense under LGPLv2+.
48975         * modules/tempname (License): Likewise.
48976
48977 2008-08-06  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/poll.c (poll): Further micro-optimization.
48980
48981 2008-08-06  Jim Meyering  <meyering@redhat.com>
48982
48983         inet_pton.c: use locale-independent tolower
48984         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48985         (inet_pton6): Use c_tolower rather than tolower.
48986         * modules/inet_pton (Depends-on): Add c-ctype.
48987
48988 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48989
48990         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48991         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48992
48993 2008-08-06  Jim Meyering  <meyering@redhat.com>
48994
48995         * modules/inet_pton (License): Relicense under LGPLv2+.
48996
48997 2008-08-03  Bruno Haible  <bruno@clisp.org>
48998
48999         Additional non-aborting API for lock and tls.
49000         * lib/lock.h: Include <errno.h>.
49001         (glthread_lock_init): New macro/function.
49002         (gl_lock_init): Define as wrapper around glthread_lock_init.
49003         (glthread_lock_lock): New macro/function.
49004         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49005         (glthread_lock_unlock): New macro/function.
49006         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49007         (glthread_lock_destroy): New macro/function.
49008         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49009         (glthread_rwlock_init): New macro/function.
49010         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49011         (glthread_rwlock_rdlock): New macro/function.
49012         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49013         (glthread_rwlock_wrlock): New macro/function.
49014         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49015         (glthread_rwlock_unlock): New macro/function.
49016         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49017         (glthread_rwlock_destroy): New macro/function.
49018         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49019         (glthread_recursive_lock_init): New macro/function.
49020         (gl_recursive_lock_init): Define as wrapper around
49021         glthread_recursive_lock_init.
49022         (glthread_recursive_lock_lock): New macro/function.
49023         (gl_recursive_lock_lock): Define as wrapper around
49024         glthread_recursive_lock_lock.
49025         (glthread_recursive_lock_unlock): New macro/function.
49026         (gl_recursive_lock_unlock): Define as wrapper around
49027         glthread_recursive_lock_unlock.
49028         (glthread_recursive_lock_destroy): New macro/function.
49029         (gl_recursive_lock_destroy): Define as wrapper around
49030         glthread_recursive_lock_destroy.
49031         (glthread_once): New macro/function.
49032         (gl_once): Define as wrapper around glthread_once.
49033         Update function declarations.
49034         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49035         glthread_rwlock_init. Return error code.
49036         (glthread_rwlock_rdlock_multithreaded): Renamed from
49037         glthread_rwlock_rdlock. Return error code.
49038         (glthread_rwlock_wrlock_multithreaded): Renamed from
49039         glthread_rwlock_wrlock. Return error code.
49040         (glthread_rwlock_unlock_multithreaded): Renamed from
49041         glthread_rwlock_unlock. Return error code.
49042         (glthread_rwlock_destroy_multithreaded): Renamed from
49043         glthread_rwlock_destroy. Return error code.
49044         (glthread_recursive_lock_init_multithreaded): Renamed from
49045         glthread_recursive_lock_init. Return error code.
49046         (glthread_recursive_lock_lock_multithreaded): Renamed from
49047         glthread_recursive_lock_lock. Return error code.
49048         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49049         glthread_recursive_lock_unlock. Return error code.
49050         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49051         glthread_recursive_lock_destroy. Return error code.
49052         (glthread_once_call): Make static.
49053         (glthread_once_multithreaded): Renamed from glthread_once.
49054         * lib/tls.h: Include <errno.h>.
49055         (glthread_tls_key_init): New macro/function.
49056         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49057         (glthread_tls_set): New macro/function.
49058         (gl_tls_set): Define as wrapper around glthread_tls_set.
49059         (glthread_tls_key_destroy): New macro/function.
49060         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49061         Update function declarations.
49062         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49063         glthread_tls_get.
49064         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49065
49066 2008-08-04  Eric Blake  <ebb9@byu.net>
49067
49068         gnumakefile: use space, not TAB, outside of targets
49069         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49070
49071 2008-08-02  Jim Meyering  <meyering@redhat.com>
49072
49073         getdate.y: avoid locale-dependent date parsing failure
49074         In Turkish locales, getdate would fail to recognize keywords
49075         containing a lowercase "i".  The solution is not to rely on
49076         locale-sensitive case-conversion.
49077         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49078         (lookup_word): Use c_toupper in place of toupper.
49079         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49080         Reported by Vefa Bicakci <bicave@superonline.com> in
49081         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49082         * modules/getdate (Depends-on): Add c-ctype.
49083
49084 2008-08-02  Bruno Haible  <bruno@clisp.org>
49085
49086         * gnulib-tool (func_import): When updating or creating a .gitignore
49087         file, prepend each added line with a slash, and ignore leading slashes
49088         from the existing lines.
49089         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49090
49091 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49092
49093         Portability fix for GNU make 3.79.1.
49094         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49095         versions do not understand.
49096
49097 2008-08-01  Bruno Haible  <bruno@clisp.org>
49098
49099         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49100         * tests/test-isnanf.h (zero): New variable.
49101         (main): Avoid literal -0.0f.
49102         * tests/test-isnand.h (zero): New variable.
49103         (main): Avoid literal -0.0.
49104         * tests/test-isnanl.h (zero): New variable.
49105         (main): Avoid literal -0.0L.
49106         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49107         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49108         -0.0, -0.0L.
49109         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49110         (test_signbitd): Avoid literal -0.0.
49111         (test_signbitl): Avoid literal -0.0L.
49112         * tests/test-ceilf1.c (zero): New variable.
49113         (main): Avoid literal -0.0f.
49114         * tests/test-ceill.c (zero): New variable.
49115         (main): Avoid literal -0.0L.
49116         * tests/test-floorf1.c (zero): New variable.
49117         (main): Avoid literal -0.0f.
49118         * tests/test-floorl.c (zero): New variable.
49119         (main): Avoid literal -0.0L.
49120         * tests/test-roundf1.c (zero): New variable.
49121         (main): Avoid literal -0.0f.
49122         * tests/test-round1.c (zero): New variable.
49123         (main): Avoid literal -0.0.
49124         * tests/test-roundl.c (zero): New variable.
49125         (main): Avoid literal -0.0L.
49126         * tests/test-truncf1.c (zero): New variable.
49127         (main): Avoid literal -0.0f.
49128         * tests/test-trunc1.c (zero): New variable.
49129         (main): Avoid literal -0.0.
49130         * tests/test-truncl.c (zero): New variable.
49131         (main): Avoid literal -0.0L.
49132         * tests/test-frexp.c (zero): New variable.
49133         (main): Avoid literal -0.0.
49134         * tests/test-frexpl.c (zero): New variable.
49135         (main): Avoid literal -0.0L.
49136         * tests/test-ldexpl.c (zero): New variable.
49137         (main): Avoid literal -0.0L.
49138         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49139         (zerod, zerol): New variables.
49140         (test_function): Avoid literals -0.0, -0.0L.
49141         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49142         (zerod, zerol): New variables.
49143         (test_function): Avoid literals -0.0, -0.0L.
49144         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49145         (zerod, zerol): New variables.
49146         (test_function): Avoid literals -0.0, -0.0L.
49147         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49148         (zerod, zerol): New variables.
49149         (test_function): Avoid literals -0.0, -0.0L.
49150         * tests/test-strtod.c (zero): New variable.
49151         (main): Avoid literal -0.0.
49152         Reported by Jonathan C. Patschke <jp@centtech.com>.
49153
49154 2008-07-31  Jim Meyering  <meyering@redhat.com>
49155
49156         sha256.h: correct definition of SHA224_DIGEST_SIZE
49157         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49158         Reported by Paulie Pena IV <paulie4@gmail.com>.
49159         Define as 224 / 8, rather than as a literal.
49160         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49161         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49162         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49163
49164 2008-07-31  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49167         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49168         Reported by Jonathan Patschke <jp@centtech.com>.
49169
49170 2008-07-31  Bruno Haible  <bruno@clisp.org>
49171
49172         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49173         Reported by Paolo Bonzini <bonzini@gnu.org>.
49174
49175 2008-07-30  Eric Blake  <ebb9@byu.net>
49176
49177         test-strtod: allow compilation without -lm
49178         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49179         Reported by Dennis Clarke <blastwave@gmail.com>.
49180
49181 2008-07-28  Jim Meyering  <meyering@redhat.com>
49182
49183         bootstrap: work also when there are no .po files in po/
49184         * build-aux/bootstrap (update_po_files): Complete the change
49185         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49186
49187 2008-07-27  Jim Meyering  <meyering@redhat.com>
49188
49189         * users.txt: Add zile.
49190
49191 2008-07-26  Ben Pfaff  <blp@gnu.org>
49192
49193         Add missing dependencies on new m4/exponent[fdl].m4 files.
49194         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49195         * modules/isnand-nolibm: Add m4/exponentd.m4.
49196         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49197         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49198         m4/isnan[fdl].m4, because the macros actually used moved.
49199         Reported by Jim Meyering.
49200
49201 2008-07-14  Ben Pfaff  <blp@gnu.org>
49202
49203         Add isinf module.
49204         * lib/isinf.c: New file.
49205         * lib/math.in.h: Define isinf macro if we have decided to replace
49206         it.
49207         * m4/isinf.m4: New file.
49208         * m4/math_h.m4: Initialize and substitute variables for isinf
49209         module.
49210         * modules/isinf: New file.
49211         * modules/isinf-tests: New file.
49212         * modules/math: Add substitutions for new module.
49213         * tests/test-isinf.c: New file.
49214         * doc/posix-functions/isinf.texi: Mention new module.
49215         * MODULES.html.sh: Mention new module.
49216
49217 2008-07-14  Ben Pfaff  <blp@gnu.org>
49218
49219         Factor out some macros for use by additional modules.
49220         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49221         exponentf.m4.
49222         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49223         exponentd.m4.
49224         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49225         file exponentl.m4.
49226         * m4/exponentf.m4: New file.
49227         * m4/exponentd.m4: New file.
49228         * m4/exponentl.m4: New file.
49229         * modules/isnanf: Use new file m4/exponentf.m4.
49230         * modules/isnand: Use new file m4/exponentd.m4.
49231         * modules/isnanl: Use new file m4/exponentl.m4.
49232
49233 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49234
49235         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49236         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49237         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49238         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49239
49240         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49241         readlink on platforms without PATH_MAX.
49242
49243 2008-07-21  Eric Blake  <ebb9@byu.net>
49244
49245         Warn, not fail, on stale version.
49246         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49247
49248         Don't allow installation with stale devel version number.
49249         * top/GNUmakefile (_is-install-target): New macro.
49250         (_curr-ver): Forbid installation with stale version number.
49251
49252 2008-07-20  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49255         TESTS_ENVIRONMENT.
49256         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49257
49258 2008-07-20  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/c-stack.h (c_stack_action): Add documentation.
49261         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49262
49263 2008-07-20  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49266         * modules/readlink (License): Likewise.
49267
49268 2008-07-17  Eric Blake  <ebb9@byu.net>
49269
49270         * modules/c-stack (Link): Fix typo.
49271
49272         Make c-stack use libsigsegv, when available.
49273         * modules/c-stack (Depends-on): Add libsigsegv.
49274         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49275         needed.
49276         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49277         (segv_handler, overflow_handler, c_stack_action)
49278         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49279         implementation when libsigsegv is available, but only when using
49280         the library is necessary.
49281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49282         comment, explaining why XSI check fails on Linux.
49283         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49284         * tests/test-c-stack2.sh: Tweak skip message.
49285         * NEWS: Document new link-time requirements.
49286
49287 2008-07-16  Eric Blake  <ebb9@byu.net>
49288
49289         c-stack: Expose false positives when not using libsigsegv.
49290         * modules/c-stack-tests (Files): Expand test.
49291         * tests/test-c-stack.c (main): Add means to conditionally trigger
49292         non-overflow SIGSEGV.
49293         * tests/test-c-stack2.sh: New file.
49294
49295 2008-07-14  Bruno Haible  <bruno@clisp.org>
49296
49297         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49298         Reported by Eric Blake.
49299
49300 2008-07-14  Sam Steingold  <sds@gnu.org>
49301             Bruno Haible  <bruno@clisp.org>
49302
49303         New module libsigsegv.
49304         * modules/libsigsegv: New file.
49305         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49306         modifications.
49307         * MODULES.html.sh (Signal handling): New section.
49308
49309 2008-07-14  Bruno Haible  <bruno@clisp.org>
49310
49311         * modules/unictype/ctype-* (Description): Add the word "function".
49312         Improves the resulting doc in MODULES.html.
49313
49314 2008-07-12  Ben Pfaff  <blp@gnu.org>
49315
49316         Add longlong module.
49317         * modules/longlong: New file.
49318
49319 2008-07-12  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49322         to empty.
49323
49324 2008-07-10  Ben Pfaff  <blp@gnu.org>
49325
49326         Add isnan module.
49327         * doc/posix-functions/isnan.texi: Mention new module.
49328         * lib/math.in.h: Define isnan macro if we have decided to replace
49329         it.
49330         * m4/isnan.m4: New file.
49331         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49332         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49333         also.
49334         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49335         redundancy.
49336         * m4/math_h.m4: Initialize and substitute variables for isnan
49337         module.
49338         * modules/isnan: New file.
49339         * modules/isnan-tests: New file.
49340         * modules/math: Add substitutions for new module.
49341         * tests/test-isnan.c: New file.
49342         * MODULES.html.sh: Mention new module.
49343
49344 2008-07-10  Ben Pfaff  <blp@gnu.org>
49345
49346         Add isnanf module.
49347         * lib/isnanf.m4: New file.
49348         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49349         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49350         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49351         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49352         * modules/isnanf: New file.
49353         * modules/isnanf-tests: New file.
49354         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49355         files.
49356         * tests/test-isnanf-nolibm.c: factored most of its contents into
49357         new file tests/test-isnanf.h.
49358         * tests/test-isnanf.h: New file.
49359         * tests/test-isnanf.c: New file.
49360         * MODULES.html.sh: Mention new module.
49361         * doc/glibc-functions/isnanf.texi: Mention new module.
49362
49363 2008-07-10  Ben Pfaff  <blp@gnu.org>
49364
49365         Add isnand module.
49366         * lib/isnand.h: New file.
49367         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49368         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49369         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49370         functionality also.
49371         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49372         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49373         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49374         * modules/isnand: New file.
49375         * modules/isnand-tests: New file.
49376         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49377         files.
49378         * tests/test-isnand-nolibm.c: factored most of its contents into
49379         new file tests/test-isnand.h.
49380         * tests/test-isnand.h: New file.
49381         * tests/test-isnand.c: New file.
49382         * MODULES.html.sh: Mention new module.
49383
49384 2008-07-10  Ben Pfaff  <blp@gnu.org>
49385
49386         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49387         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49388         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49389         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49390         * modules/isnanf-nolibm: Update references to renamed files.
49391         * modules/isnand-nolibm: Likewise.
49392         * modules/isnanf-nolibm-tests: Likewise.
49393         * modules/isnand-nolibm-tests: Likewise.
49394         * lib/frexp.c: Likewise.
49395         * lib/isfinite.c: Likewise.
49396         * lib/signbitd.c: Likewise.
49397         * lib/signbitf.c: Likewise.
49398         * lib/vasnprintf.c: Likewise.
49399         * tests/test-ceilf1.c: Likewise.
49400         * tests/test-ceilf2.c: Likewise.
49401         * tests/test-floorf1.c: Likewise.
49402         * tests/test-floorf2.c: Likewise.
49403         * tests/test-frexp.c: Likewise.
49404         * tests/test-round1.c: Likewise.
49405         * tests/test-round2.c: Likewise.
49406         * tests/test-roundf1.c: Likewise.
49407         * tests/test-strtod.c: Likewise.
49408         * tests/test-trunc1.c: Likewise.
49409         * tests/test-trunc2.c: Likewise.
49410         * tests/test-truncf1.c: Likewise.
49411         * tests/test-truncf2.c: Likewise.
49412         * NEWS: Mention the renamed header files.
49413
49414 2008-07-11  Jim Meyering  <meyering@redhat.com>
49415
49416         vc-list-files: make the last-resort awk code more portable
49417         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49418         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49419         does not support it.
49420
49421 2008-07-10  Eric Blake  <ebb9@byu.net>
49422
49423         Work with tar's bootstrap.
49424         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49425         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49426         an m4 comment.
49427
49428 2008-07-09  Jim Meyering  <meyering@redhat.com>
49429
49430         posix-shell.m4: fix typo that made this test malfunction
49431         * m4/posix-shell.m4: Remove capitalization in variable name.
49432
49433 2008-07-08  Bruno Haible  <bruno@clisp.org>
49434
49435         * m4/onceonly.m4: Update comments.
49436         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49437
49438 2008-07-04  Jim Meyering  <meyering@redhat.com>
49439
49440         * users.txt: Add vc-dwim.
49441         (bison, coreutils): Use the gitweb URL.
49442
49443 2008-07-03  Jim Meyering  <meyering@redhat.com>
49444
49445         * users.txt: Add libffcall.  From Sam Steingold.
49446
49447 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49448
49449         getdate.y: do not ignore TZ with relative day, month or year offset
49450         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49451         relative-date-handling, since otherwise, the latter would clobber the
49452         sole output (an updated Start value) of the tz-handling block.
49453         * tests/test-getdate.c: Tests for the fix
49454
49455 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49456
49457         Recognize 'foo_LIBRARIES += libgnu.a'.
49458         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49459         makefile snippet has already specified an installation location,
49460         also using '+='.
49461
49462 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49463
49464         getdate.y: factor out common actions
49465         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49466         Use them in place of open-coded actions.
49467
49468 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49469
49470         Add self-test for getdate module.
49471         * modules/getdate-tests: New file.
49472         * tests/test-getdate.c: New file.
49473
49474 2008-06-29  Bruno Haible  <bruno@clisp.org>
49475
49476         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49477         .gitignore.
49478         Reported by Sylvain Beucler <beuc@beuc.net>.
49479
49480 2008-06-29  Bruno Haible  <bruno@clisp.org>
49481
49482         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49483         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49484
49485 2008-06-29  Bruno Haible  <bruno@clisp.org>
49486
49487         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49488         EXTRA_DIST.
49489         Reported by Sylvain Beucler <beuc@beuc.net>.
49490
49491 2008-06-26  Jim Meyering  <meyering@redhat.com>
49492
49493         make several modules depend on the "open" module
49494         This provides slightly increased consistency when opening-for-write
49495         the name of a non-directory spelled with a trailing slash.
49496         * modules/chdir-safer: Likewise.
49497         * modules/chown: Likewise.
49498         * modules/clean-temp: Likewise.
49499         * modules/copy-file: Likewise.
49500         * modules/fchdir: Likewise.
49501         * modules/fcntl-safer: Likewise.
49502         * modules/pipe: Likewise.
49503         * modules/utime: Likewise.
49504         Prompted by Eric Blake and Bruno Haible.
49505
49506 2008-06-24  Andreas Schwab  <schwab@suse.de>
49507
49508         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49509         literals can be used as initializers for global variables.
49510
49511 2008-06-23  Eric Blake  <ebb9@byu.net>
49512
49513         Make gnulib-cache.m4 easier to diff.
49514         * gnulib-tool (func_import): Allow newlines when reading cached
49515         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49516
49517 2008-06-23  Bruno Haible  <bruno@clisp.org>
49518
49519         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49520         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49521         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49522         m4/signalblocking.m4.
49523         (gl_PREREQ_SIGACTION): Don't invoke it.
49524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49525         gl_PREREQ_SIG_HANDLER_H.
49526         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49527         Don't check for sigaction here.
49528
49529 2008-06-23  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49532         (install_handlers): Don't set the SA_RESETHAND flag.
49533
49534 2008-06-23  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/sigaction.m4: Comment fixes.
49537         * lib/signal.in.h: Likewise.
49538
49539 2008-06-23  Eric Blake  <ebb9@byu.net>
49540
49541         Fix typo.
49542         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49543
49544         Avoid SA_ namespace.
49545         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49546         Reported by Ralf Wildenhues.
49547
49548         Avoid test failure due to SA_RESTORER.
49549         * tests/test-sigaction.c (SA_MASK): New macro.
49550         (main): Avoid failing due to extension flags being set.
49551         Reported by Jim Meyering.
49552
49553         Revert use of sig-handler.h in sigprocmask.c.
49554         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49555         it requires the existence of struct sigaction.
49556         * lib/sigprocmask.c (handler_t): Restore typedef.
49557         (rpl_signal, old_handlers): Use local type.
49558
49559 2008-06-22  Bruno Haible  <bruno@clisp.org>
49560
49561         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49562         conditionally.
49563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49564
49565 2008-06-22  Bruno Haible  <bruno@clisp.org>
49566
49567         * doc/posix-functions/siginterrupt.texi: Move note.
49568
49569         * lib/signal.in.h (SA_RESTART): New macro.
49570         * lib/sigaction.c: Update comment.
49571
49572         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49573
49574         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49575         (gl_PREREQ_SIGPROCMASK): Invoke it.
49576         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49577
49578         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49579
49580         * lib/sigprocmask.c: Update a comment.
49581
49582 2008-06-21  Eric Blake  <ebb9@byu.net>
49583
49584         Use sigaction module rather than signal().
49585         * modules/c-stack (Depends-on): Add sigaction.
49586         * modules/fatal-signal (Depends-on): Likewise.
49587         * modules/nanosleep (Depends-on): Likewise.
49588         * modules/sigprocmask (Files): Add sig-handler.h.
49589         * modules/sigaction (Files): Likewise.
49590         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49591         Eggert.
49592         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49593         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49594         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49595         (init_fatal_signals): Likewise.
49596         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49597         (siginterrupt): Delete fallback.
49598         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49599         instead.
49600         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49601         siginterrupt.
49602
49603         New module sigaction, for mingw.
49604         * modules/sigaction: New module...
49605         * modules/sigaction-tests: ...and its test.
49606         * m4/sigaction.m4: New file.
49607         * lib/sigaction.c: Likewise.
49608         * tests/test-sigaction.c: Likewise.
49609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49610         * modules/signal (Makefile.am): Likewise.
49611         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49612         needed.
49613         * doc/posix-headers/signal.texi (signal.h): Mention provided
49614         types.
49615         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49616         that sigaction is preferable.
49617         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49618         module.
49619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49620         sigaction.
49621
49622         Improve robustness of sigprocmask by overriding signal.
49623         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49624         is in use.
49625         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49626         (SIGKILL, SIGSTOP): Provide fallbacks.
49627         (rpl_signal): Implement.
49628         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49629         signal can be called inside handlers.
49630
49631         Fix nanosleep module on mingw.
49632         * modules/nanosleep (Depends-on): Add sys_select.
49633         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49634
49635         Fix licensing of sigprocmask.
49636         * modules/raise (License): Relicense as LGPL.
49637
49638 2008-06-21  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49641         result if it contains question marks.
49642         Reported by Michael Geng <linux@michaelgeng.de>.
49643
49644 2008-06-19  Bruno Haible  <bruno@clisp.org>
49645
49646         Fix CVS-ism.
49647         * doc/gnulib.texi: Include updated-stamp.texi.
49648         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49649         (updated-stamp.texi): New rule.
49650         (gnulib.info): Depend on it.
49651         * doc/.gitignore: Add updated-stamp.texi.
49652         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49653
49654 2008-06-19  Bruno Haible  <bruno@clisp.org>
49655
49656         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49657         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49658
49659 2008-06-19  Eric Blake  <ebb9@byu.net>
49660
49661         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49662         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49663         Reported by Stepan Kasal.
49664
49665 2008-06-18  Bruno Haible  <bruno@clisp.org>
49666
49667         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49668         Reported by Eric Blake.
49669
49670 2008-06-18  Eric Blake  <ebb9@byu.net>
49671
49672         Work around cygwin 1.5.25 strsignal bug.
49673         * tests/test-strsignal.c: Allow for const char *.
49674         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49675
49676 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49677
49678         * users.txt: Update URL to article and add author/date
49679         information.
49680
49681 2008-06-17  Bruno Haible  <bruno@clisp.org>
49682
49683         New macro gl_DISABLE_THREADS.
49684         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49685         if the user did not pass --enable-threads or --disable-threads option.
49686         (gl_DISABLE_THREADS): New macro.
49687         Reported by Eric Blake <ebb9@byu.net>.
49688
49689 2008-06-17  Bruno Haible  <bruno@clisp.org>
49690
49691         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49692         when the macro ignores it.
49693         Based on a patch by Eric Blake <ebb9@byu.net>.
49694
49695 2008-06-17  Bruno Haible  <bruno@clisp.org>
49696
49697         * modules/tls (License): Change to LGPLv2+.
49698         Reported by Eric Blake.
49699
49700 2008-06-17  Eric Blake  <ebb9@byu.net>
49701
49702         Simplify c-stack prerequisites.
49703         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49705         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49706         check.
49707         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49708         <sys/resource.h>.
49709
49710         Move c-stack test into testsuite.
49711         * modules/c-stack-tests: New file.
49712         * lib/c-stack.c [DEBUG]: Move test program...
49713         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49714         fail test if sigaltstack is lacking.
49715         * tests/test-c-stack.sh: New driver file.
49716
49717 2008-06-16  Eric Blake  <ebb9@byu.net>
49718
49719         Use raise module consistently.
49720         * modules/fatal-signal (Depends-on): Add raise.
49721         * modules/sigprocmask (Depends-on): Likewise.
49722         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49723         * lib/sigprocmask.c (sigprocmask): Likewise.
49724         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49725         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49726
49727         Fix compliance bug in sigpending.
49728         * lib/sigprocmask.c (sigpending): Return pending array via
49729         parameter, not return value.
49730
49731 2008-06-14  Eric Blake  <ebb9@byu.net>
49732
49733         Improve obstack-printf test code.
49734         * tests/test-obstack-printf.c (test_function): Fix comment, and
49735         simplify usage of obstack_* in macros.  Add a test for coverage.
49736         Reported by Bruno Haible.
49737
49738 2008-06-14  Bruno Haible  <bruno@clisp.org>
49739
49740         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49741         array size as a constant, not as a const variable.
49742         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49743         AC_USE_SYSTEM_EXTENSIONS.
49744         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49745         Test whether the obstack_printf function actually exists.
49746         * modules/obstack-printf (Depends-on): Add extensions.
49747         (Include): Remove obstack.h.
49748         * modules/obstack-printf-posix (Depends-on): Add extensions.
49749         (Include): Remove obstack.h.
49750
49751 2008-06-13  Eric Blake  <ebb9@byu.net>
49752
49753         Add obstack-printf and obstack-printf-posix modules.
49754         * modules/obstack-printf: New file.
49755         * modules/obstack-printf-posix: Likewise.
49756         * MODULES.html.sh (Misc): Mention them.
49757         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49758         Likewise.
49759         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49760         Likewise.
49761         * modules/stdio (Makefile.am): Accomodate new modules.
49762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49763         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49764         Declare.
49765         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49766         functions.
49767         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49768         (gl_REPLACE_OBSTACK_PRINTF): New macros
49769         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49770         * tests/test-obstack-printf.c: New file.
49771         * modules/obstack-printf-tests: Likewise.
49772         * modules/obstack-printf-posix-tests: Likewise.
49773
49774 2008-06-11  Bruno Haible  <bruno@clisp.org>
49775
49776         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49777         * lib/open.c: Include errno.h.
49778         (open): Fail when attempting to write to a file that has a trailing
49779         slash.
49780         * tests/test-open.c (main): Test against trailing slash bug.
49781         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49782
49783 2008-06-10  Bruno Haible  <bruno@clisp.org>
49784
49785         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49786         for $? to work inside the trap command, with various /bin/sh-s.
49787         * tests/test-vc-list-files-cvs.sh: Likewise.
49788
49789 2008-06-10  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/acl-internal.h: Don't include gettext.h here.
49792         * lib/set-mode-acl.c: Include gettext.h here.
49793         * lib/copy-acl.c: Likewise.
49794
49795 2008-06-10  Bruno Haible  <bruno@clisp.org>
49796
49797         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49798         * lib/wait-process.c (wait_subprocess): Likewise.
49799         * lib/execute.h (execute): Add termsigp argument.
49800         * lib/execute.c (execute): Likewise.
49801         * lib/csharpcomp.c (compile_csharp_using_pnet,
49802         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49803         * lib/csharpexec.c (execute_csharp_using_pnet,
49804         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49805         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49806         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49807         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49808         is_jikes_present): Update.
49809         * lib/javaexec.c (execute_java_class): Update.
49810         * lib/javaversion.c (execute_and_read_line): Update.
49811         * NEWS: Document the changes.
49812         Reported by Eric Blake.
49813
49814 2008-06-10  Eric Blake  <ebb9@byu.net>
49815
49816         Add missing include.
49817         * tests/test-strstr.c (includes): Add <signal.h>.
49818         * tests/test-strcasestr.c (includes): Likewise.
49819         * tests/test-memmem.c (includes): Likewise.
49820
49821 2008-06-10  Bruno Haible  <bruno@clisp.org>
49822
49823         * lib/wait-process.c (wait_subprocess): Add an assertion.
49824
49825 2008-06-10  Bruno Haible  <bruno@clisp.org>
49826
49827         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49828
49829 2008-06-10  Bruno Haible  <bruno@clisp.org>
49830
49831         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49832         using alarm().
49833         * tests/test-strcasestr.c (main): Likewise.
49834         * tests/test-strstr.c (main): Likewise.
49835
49836 2008-06-09  Bruno Haible  <bruno@clisp.org>
49837
49838         Work around the Solaris 10 ACE ACLs ABI change.
49839         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49840         declare if ACL_NO_TRIVIAL is present.
49841         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49842         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49843         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49844         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49845         define if ACL_NO_TRIVIAL is present.
49846         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49847         and use the current ABI.
49848         (file_has_acl): Use same #if condition as elsewhere.
49849         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49850         in use, and use the current ABI.
49851         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49852         Reported by Jim Meyering.
49853
49854 2008-06-09  Eric Blake  <ebb9@byu.net>
49855
49856         Work around environments that (stupidly) ignore SIGALRM.
49857         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49858         before using alarm().
49859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49861         Reported by Ian Beckwith <ianb@erislabs.net>.
49862
49863         Produce autobuild blurb earlier in log.
49864         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49865
49866 2008-06-09  Jim Meyering  <meyering@redhat.com>
49867         and OndÅ™ej Vašík  <ovasik@redhat.com>
49868
49869         utimens.c: correct kernel bug work-around
49870         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49871         failure, not success, and the kernel bug we're trying to work
49872         around affects not just the utimensat call, but also the fallback
49873         futimens call.
49874         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49875         not success.
49876         [HAVE_FUTIMENS]: Use the same work-around, here.
49877
49878 2008-06-09  Jim Meyering  <meyering@redhat.com>
49879
49880         add more guards around definition of ACE_-related code
49881         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49882         ALLOW and ACE_OWNER are also defined.
49883
49884 2008-06-08  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/acl-internal.h: Add me as co-author.
49887         * lib/file-has-acl.c: Likewise.
49888         * lib/set-mode-acl.c: Likewise.
49889         * lib/copy-acl.c: Likewise.
49890
49891 2008-06-08  Bruno Haible  <bruno@clisp.org>
49892
49893         Add support for AIX ACLs.
49894         * lib/acl-internal.h (acl_nontrivial): New declaration.
49895         * lib/file-has-acl.c (acl_nontrivial): New function.
49896         (file_has_acl): Add implementation using AIX 4 ACL API.
49897         * lib/set-mode-acl.c (qset_acl): Likewise.
49898         * lib/copy-acl.c (qcopy_acl): Likewise.
49899
49900 2008-06-08  Bruno Haible  <bruno@clisp.org>
49901
49902         Add support for HP-UX ACLs.
49903         * lib/acl-internal.h (acl_nontrivial): New declaration.
49904         * lib/file-has-acl.c (acl_nontrivial): New function.
49905         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49906         * lib/set-mode-acl.c (qset_acl): Likewise.
49907         * lib/copy-acl.c (qcopy_acl): Likewise.
49908
49909 2008-06-08  Bruno Haible  <bruno@clisp.org>
49910
49911         Add support for Cygwin ACLs.
49912         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49913         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49914         the chmod_or_fchmod call.
49915         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49916
49917 2008-06-08  Bruno Haible  <bruno@clisp.org>
49918
49919         Fix bug with setuid modes in Solaris 10+ code.
49920         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49921         succeeded, when the mode contains some special bits.
49922
49923 2008-06-08  Bruno Haible  <bruno@clisp.org>
49924
49925         Add support for Solaris 7..10 ACLs.
49926         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49927         declarations.
49928         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49929         functions.
49930         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49931         * lib/set-mode-acl.c (qset_acl): Likewise.
49932         * lib/copy-acl.c (qcopy_acl): Likewise.
49933
49934 2008-06-08  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49937         declaration.
49938         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49939         (acl_access_nontrivial): Remove MacOS X case.
49940         (file_has_acl): Use acl_extended_nontrivial.
49941         * lib/copy-acl.c (qcopy_acl): Likewise.
49942
49943 2008-06-08  Bruno Haible  <bruno@clisp.org>
49944
49945         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49946
49947 2008-06-08  Jim Meyering  <meyering@redhat.com>
49948
49949         * modules/acl (Maintainer): Add Bruno Haible.
49950
49951 2008-06-07  Bruno Haible  <bruno@clisp.org>
49952
49953         Improve support for Tru64 ACLs.
49954         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49955         ACL on OSF/1.
49956
49957 2008-06-07  Bruno Haible  <bruno@clisp.org>
49958
49959         Add support for MacOS X ACLs.
49960         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49961         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49962         * lib/set-mode-acl.c (qset_acl): Likewise.
49963         * lib/copy-acl.c (qcopy_acl): Likewise.
49964
49965 2008-06-07  Bruno Haible  <bruno@clisp.org>
49966
49967         Fix memory leak introduced on 2008-05-22.
49968         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49969         use.
49970
49971 2008-06-07  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49974         to construct an empty ACL.
49975
49976 2008-06-07  Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49979         precisely.
49980         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49981
49982 2008-06-07  Bruno Haible  <bruno@clisp.org>
49983
49984         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49985         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49986
49987 2008-06-07  Bruno Haible  <bruno@clisp.org>
49988
49989         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49990         regardless of POSIX.
49991         * doc/posix-functions/_longjmp.texi: Likewise.
49992         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49993         SystemV platform in this case.
49994
49995 2008-06-06  Eric Blake  <ebb9@byu.net>
49996
49997         Document abort() bugs.
49998         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49999
50000         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50001         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50002         sigsetjmp.
50003         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50004         siglongjmp, but only as a macro.
50005         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50006         is obsolete.
50007         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50008
50009         Tweak documentation to cover cygwin argz bugs.
50010         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50011         argz bug fix; no code change needed since no cygwin releases
50012         occurred between the last fix and the bug being tested.
50013         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50014         module and recently fixed cygwin bugs.
50015         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50016         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50017         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50018         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50019         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50020         Likewise.
50021         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50022         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50023         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50024         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50025         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50026         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50027         Likewise.
50028
50029         Avoid gcc warning on cygwin.
50030         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50031         !ACL_NO_TRIVIAL]: Avoid unused variable.
50032
50033 2008-06-05  Eric Blake  <ebb9@byu.net>
50034
50035         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50036         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50037         git-version-gen fails to come up with a version.
50038         Reported by Simon Josefsson.
50039
50040 2008-06-05  Jim Meyering  <meyering@redhat.com>
50041             Paul Eggert  <eggert@cs.ucla.edu>
50042
50043         utimens.c: work around a probable Linux kernel bug
50044         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50045         appears to be a kernel bug that causes utimensat to return 280
50046         instead of 0, indicating success.
50047
50048 2008-06-04  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50051         2008-06-01 commit.
50052
50053 2008-06-04  Bruno Haible  <bruno@clisp.org>
50054
50055         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50056         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50057         (file_has_acl): Use it. Save errno afterwards.
50058         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50059
50060 2008-06-03  Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50063         draft code. Simplify #ifs.
50064         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50065         Put Solaris code after POSIX-draft code. Fix comments regarding
50066         Solaris 10, HP-UX. Mention Cygwin.
50067         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50068
50069 2008-06-03  Eric Blake  <ebb9@byu.net>
50070
50071         Provide fallback for older kernels.
50072         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50073         Provide runtime fallback if kernel lacks support.
50074         Reported by Mike Frysinger.
50075
50076 2008-06-02  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50079         it exists.
50080
50081 2008-06-02  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50084         * lib/copy-acl.c (qcopy_acl): Update comment.
50085
50086 2008-06-02  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50089         like ACL APIs.
50090
50091 2008-06-02  Bruno Haible  <bruno@clisp.org>
50092
50093         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50094         * tests/test-set-mode-acl.sh: Likewise.
50095         * tests/test-copy-acl.sh: Likewise.
50096         * tests/test-copy-file.sh: Likewise.
50097
50098 2008-06-02  Bruno Haible  <bruno@clisp.org>
50099
50100         * tests/test-file-has-acl.sh: Remove unused code.
50101
50102 2008-06-01  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50105         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50106         messages.
50107         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50108
50109 2008-06-01  Bruno Haible  <bruno@clisp.org>
50110
50111         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50112         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50113         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50114         APIs.
50115         * modules/acl-tests (configure.ac): Remove tests now contained in
50116         m4/acl.m4.
50117
50118 2008-06-02  Jim Meyering  <meyering@redhat.com>
50119
50120         announce-gen: use a better key-server host name
50121         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50122         it may be more consistently reliable.  Suggested by Werner Koch
50123         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50124
50125 2008-06-01  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50128         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50129
50130 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50131
50132         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50133
50134 2008-06-01  Bruno Haible  <bruno@clisp.org>
50135
50136         New ACL tests.
50137         * tests/test-file-has-acl.sh: New file.
50138         * tests/test-file-has-acl.c: New file.
50139         * tests/test-set-mode-acl.sh: New file.
50140         * tests/test-set-mode-acl.c: New file.
50141         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50142         * tests/test-copy-acl.c: New file.
50143         * modules/acl-tests: New file, based on modules/copy-file-tests.
50144         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50145         (Depends-on): Add acl-tests.
50146         (configure.ac): Remove checks.
50147         (Makefile.am): Don't create test-sameacls program here any more.
50148
50149 2008-06-01  Bruno Haible  <bruno@clisp.org>
50150
50151         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50152         * tests/test-sameacls.c: Include progname.h.
50153         (main): Invoke set_program_name. Portability fixes for MacOS X,
50154         Solaris, HP-UX.
50155
50156 2008-06-01  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50159         function.
50160         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50161
50162 2008-06-01  Bruno Haible  <bruno@clisp.org>
50163
50164         * modules/rpmatch (Depends-on): Add strdup.
50165
50166 2008-06-01  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/pipe.c: Include unistd-safer.h.
50169         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50170         * modules/pipe (Depends-on): Add unistd-safer.
50171
50172 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50173
50174         * modules/autobuild (configure.ac): Call AB_INIT.
50175
50176 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50177
50178         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50179         Suggested by Bruno Haible <bruno@clisp.org>.
50180
50181 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50182
50183         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50184         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50185         <bruno@clisp.org>.
50186
50187 2008-05-29  Eric Blake  <ebb9@byu.net>
50188
50189         Prefer new POSIX 200x interfaces over futimesat.
50190         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50191         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50192         when available.
50193         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50194
50195 2008-05-28  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/stpcpy (License): Change to LGPLv2+.
50198         Requested by David Lutterkort <dlutter@redhat.com>.
50199
50200 2008-05-27  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50203         current mingw.
50204         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50205
50206 2008-05-27  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/iconv_open (Link): New section, from module 'iconv'.
50209         * modules/striconv (Link): Likewise.
50210         * modules/striconveh (Link): Likewise.
50211         * modules/xstriconv (Link): Likewise.
50212         * modules/unicodeio (Link): Likewise.
50213         * modules/propername (Link): Likewise.
50214         Reported by Jim Meyering.
50215
50216 2008-05-26  Jim Meyering  <meyering@redhat.com>
50217
50218         sha256: do not artificially restrict buffer length to be < 2^32
50219         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50220         uint32_t to size_t.
50221         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50222         to match.
50223
50224         avoid unaligned access errors, e.g., on sparc
50225         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50226         direct access through a possibly-unaligned uint64* pointer.
50227         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50228         direct access through a possibly-unaligned uint32* pointer.
50229         Prompted by this patch from Tom "spot" Callaway:
50230         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50231
50232         sha512.c: fix typo in comment
50233         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50234
50235 2008-05-25  Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50238         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50239         (Makefile.am): Update lib_SOURCES.
50240
50241 2008-05-25  Bruno Haible  <bruno@clisp.org>
50242
50243         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50244
50245 2008-05-25  Jim Meyering  <meyering@redhat.com>
50246
50247         useless-if-before-free: freed expr may have white-space differences
50248         * build-aux/useless-if-before-free: Recognize cases in which the
50249         freed expression differs from the tested one in embedded white
50250         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50251         $1 was used, so we can't make any regexp shy.  Improved tests now
50252         detect this.
50253
50254         useless-if-before-free: accept white space in the expression.
50255         * build-aux/useless-if-before-free: For now, any white space
50256         in the expression must be identical in the free argument.
50257
50258         useless-if-before-free: efficiency tweak
50259         * build-aux/useless-if-before-free: Make the expression-matching
50260         regexp "shy".
50261         Make the *outer* regexp shy, not the expr-matching one.
50262
50263         update code-in-comment to accept cast of free arg
50264         * build-aux/useless-if-before-free: Update regexp.
50265
50266 2008-05-25  Bruno Haible  <bruno@clisp.org>
50267
50268         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50269         * modules/copy-file-tests (Files, Makefile.am): Update.
50270         * tests/test-copy-file.c (func_test_copy): Update.
50271
50272 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50273
50274         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50275
50276 2008-05-23  Bruno Haible  <bruno@clisp.org>
50277
50278         Improve support for ACLs on OSF/1.
50279         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50280         Remove fallback for unknown flavors of ACLs.
50281
50282 2008-05-22  Bruno Haible  <bruno@clisp.org>
50283
50284         Add support for ACLs on OSF/1.
50285         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50286         replacements.
50287         (acl_free_text): New macro fallback.
50288         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50289         acl_free.
50290         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50291         acl_free_text function. Require AC_C_INLINE.
50292
50293 2008-05-22  Bruno Haible  <bruno@clisp.org>
50294
50295         Make copy_acl work on MacOS X 10.5.
50296         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50297         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50298         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50299         If MODE_INSIDE_ACL, don't assume that every system has the same text
50300         representation for ACLs as FreeBSD.
50301         * lib/copy-acl.c (copy_acl): Add support for platforms with
50302         !MODE_INSIDE_ACL.
50303         * lib/file-has-acl.c (file_has_acl): Likewise.
50304         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50305         FreeBSD, MacOS X, or IRIX, respectively.
50306
50307 2008-05-22  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/acl.h: Don't include <sys/acl.h>.
50310         (GETACLCNT): Move fallback to lib/acl-internal.h.
50311         * lib/acl-internal.h: Include <sys/acl.h> here.
50312         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50313
50314 2008-05-22  Bruno Haible  <bruno@clisp.org>
50315
50316         Split off copy_acl function to separate file.
50317         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50318         * lib/acl.c (copy_acl): Moved function to separate file.
50319         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50320         * modules/acl (Files): Add lib/copy-acl.c.
50321         (Makefiles.am): Augment lib_SOURCES.
50322
50323 2008-05-22  Bruno Haible  <bruno@clisp.org>
50324
50325         * modules/copy-file-tests: New file.
50326         * tests/test-copy-file.sh: New file.
50327         * tests/test-copy-file.c: New file.
50328         * tests/test-copy-file-sameacls.c: New file.
50329
50330 2008-05-22  Eric Blake  <ebb9@byu.net>
50331
50332         Avoid gcc warning.
50333         * tests/test-memcmp.c (main): Pass NULL indirectly.
50334
50335 2008-05-21  Bruno Haible  <bruno@clisp.org>
50336
50337         Add reference doc about ACLs.
50338         * doc/acl-resources.txt: New file.
50339         * doc/acl-cygwin.txt: New file.
50340
50341 2008-05-21  Bruno Haible  <bruno@clisp.org>
50342
50343         Avoid one more warning from gcc.
50344         * lib/vasnprintf.c (IF_LINT): Update comments.
50345         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50346
50347 2008-05-21  Jim Meyering  <meyering@redhat.com>
50348
50349         avoid a warning from gcc
50350         * lib/vasnprintf.c (IF_LINT): Define.
50351         (scale10_round_decimal_long_double):
50352         Use it to avoid a "may be used uninitialized" warning.
50353         (scale10_round_decimal_double): Likewise.
50354
50355 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50356
50357         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50358         declared.
50359
50360 2008-05-20  Bruno Haible  <bruno@clisp.org>
50361
50362         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50363         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50364
50365 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50366
50367         * modules/memcmp-tests: New file.
50368         * tests/test-memcmp.c: New file.
50369
50370 2008-05-19  Bruno Haible  <bruno@clisp.org>
50371
50372         * modules/propername (Notice, configure.ac): Put quoted "..." into
50373         --keyword option.
50374         * lib/propername.h: Update comments accordingly.
50375         Reported by Eric Blake.
50376
50377 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50378
50379         * modules/getpass-gnu (Depends-on): Add fseeko.
50380
50381 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50382
50383         * modules/base64-tests: New file.
50384
50385 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50386
50387         * lib/base64.c (base64_decode_ctx): If a decode context structure
50388         was passed in use it to ignore newlines.  If a context structure
50389         was _not_ passed in, continue to treat newlines as garbage (this
50390         is the historical behavior).  Formerly base64_decode.
50391         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50392         takes a decode context structure.
50393         * lib/base64.h (base64_decode): Macro for four-argument calls.
50394         (base64_decode_alloc): Likewise.
50395         * lib/base64.c (base64_decode_ctx): If a decode context structure
50396         was passed in use it to ignore newlines.  If a context structure
50397         was _not_ passed in, continue to treat newlines as garbage (this
50398         is the historical behavior).  Formerly base64_decode.
50399         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50400         takes a decode context structure.
50401         * lib/base64.h (base64_decode): Macro for four-argument calls.
50402         (base64_decode_alloc): Likewise.
50403
50404 2008-05-19  Jim Meyering  <meyering@redhat.com>
50405
50406         avoid a warning from gcc
50407         * lib/trim.c (IF_LINT): Define.
50408         (trim2): Use it to avoid a "may be used uninitialized" warning.
50409
50410         Fix doc typo.
50411         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50412
50413 2008-05-19  Bruno Haible  <bruno@clisp.org>
50414
50415         * doc/glibc-functions/getpass.texi: Document limits of other
50416         implementations.
50417
50418 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50419             Bruno Haible <bruno@clisp.org>
50420
50421         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50422
50423 2008-05-18  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/propername: New file, from GNU gettext.
50426         * lib/propername.h: New file, from GNU gettext.
50427         * lib/propername.c: New file, from GNU gettext.
50428         * MODULES.html.sh (Internationalization functions): Add propername.
50429
50430 2008-05-16  Jim Meyering  <meyering@redhat.com>
50431             Bruno Haible  <bruno@clisp.org>
50432
50433         Avoid some warnings from "gcc -Wshadow".
50434         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50435
50436 2008-05-15  Eric Blake  <ebb9@byu.net>
50437
50438         Extend previous patch to cygwin 1.7.0.
50439         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50440         fast implementation in cygwin >= 1.7.0.
50441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50443
50444 2008-05-15  Bruno Haible  <bruno@clisp.org>
50445
50446         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50447         implementation in glibc >= 2.9.
50448         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50450
50451 2008-05-15  Bruno Haible  <bruno@clisp.org>
50452
50453         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50454         (Unicode string functions): Add unilbrk/*.
50455         Reported by Karl Berry.
50456
50457 2008-05-15  Eric Blake  <ebb9@byu.net>
50458
50459         Fix violation of <stdbool.h> replacement in regex.
50460         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50461         * lib/regexec.c (re_search_internal): Likewise.
50462         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50463
50464 2008-05-15  Jim Meyering  <meyering@redhat.com>
50465
50466         avoid distracting test output when git or cvs is not found
50467         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50468         * tests/test-vc-list-files-git.sh: Likewise.
50469
50470 2008-05-15  Eric Blake  <ebb9@byu.net>
50471
50472         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50473         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50474         glibc version.
50475         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50476         * doc/posix-functions/strstr.texi (strstr): Likewise.
50477         * lib/str-two-way.h (MAX): Sychronize with glibc.
50478
50479 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50480
50481         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50482         opr.ctx_type.
50483         (calc_first): Initialize constraint field.
50484         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50485         Fix grammar.
50486         (duplicate_node): Merge constraint field for all node types.
50487         (calc_eclosure_iter): Look at constraint field for all node types.
50488         * lib/regex_internal.c (create_cd_newstate): Don't look at
50489         opr.ctx_type.
50490
50491 2008-05-14  Bruno Haible  <bruno@clisp.org>
50492
50493         Help GCC to do better code generation.
50494         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50495         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50496         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50497         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50498         Declare with attribute 'malloc' if supported.
50499
50500 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50501
50502         use "echo STR|wc -c" rather than unportable "expr length STR"
50503         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50504         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50505
50506 2008-05-14  Jim Meyering  <meyering@redhat.com>
50507
50508         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50509         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50510         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50511         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50512         via Collin Lasse.
50513
50514 2008-05-14  Eric Blake  <ebb9@byu.net>
50515
50516         Avoid quadratic growth in gl_LIBSOURCES.
50517         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50518         Suggested by Bruno Haible.
50519
50520         Test xmemdup0.
50521         * modules/xmemdup0-tests: New file.
50522         * tests/test-xmemdup0.c: Likewise.
50523
50524 2008-05-13  Eric Blake  <ebb9@byu.net>
50525
50526         Split xmemdup0 into its own module.
50527         * modules/xmemdup0: New file.
50528         * lib/xmemdup0.h: Likewise.
50529         * lib/xmemdup0.c: Likewise.
50530         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50531         * lib/xalloc.h (xmemdup0): Remove.
50532         * lib/xmalloc.c (xmemdup0): Likewise.
50533
50534 2008-05-13  Eric Blake  <ebb9@byu.net>
50535             Bruno Haible  <bruno@clisp.org>
50536
50537         Reduce number of forks required during autoconf.
50538         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50539         and gl_LIBSOURCES_DIR.
50540         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50541         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50542         m4_syscmd per file.
50543         <m4_foreach_w>: Move...
50544         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50545
50546 2008-05-13  Eric Blake  <ebb9@byu.net>
50547
50548         * gnulib-tool: Fix various comment typos.
50549
50550 2008-05-12  Bruno Haible  <bruno@clisp.org>
50551
50552         Tailor the linebreaking algorithm.
50553         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50554
50555 2008-05-12  Bruno Haible  <bruno@clisp.org>
50556
50557         Update to Unicode 5.0.0.
50558         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50559         LBP_JV, LBP_JT. Redistribute values.
50560         (unilbrk_table): Change size.
50561         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50562         Unicode TR#14 rev. 22.
50563         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50564         LBP_JV, LBP_JT. Redistribute values.
50565         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50566         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50567         Update.
50568         * lib/unilbrk/lbrkprop1.h: Regenerated.
50569         * lib/unilbrk/lbrkprop2.h: Regenerated.
50570         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50571         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50572         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50573         Likewise.
50574         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50575         Likewise.
50576         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50577         result.
50578         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50579         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50580         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50581         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50582         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50583         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50584
50585 2008-05-11  Bruno Haible  <bruno@clisp.org>
50586
50587         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50588
50589 2008-05-11  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50592         * modules/unilbrk/gen-lbrk: New file.
50593
50594 2008-05-11  Bruno Haible  <bruno@clisp.org>
50595
50596         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50597         * m4/sha512.m4 (gl_SHA512): Likewise.
50598
50599 2008-05-11  Jim Meyering  <meyering@redhat.com>
50600
50601         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50602         * modules/crypto/sha256: New file.
50603         * modules/crypto/sha512: Likewise.
50604         * lib/sha256.c: Likewise.
50605         * lib/sha256.h: Likewise.
50606         * lib/sha512.c: Likewise.
50607         * lib/sha512.h: Likewise.
50608         * lib/u64.h: Likewise.
50609         * m4/sha256.m4: Likewise.
50610         * m4/sha512.m4: Likewise.
50611         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50612
50613 2008-05-10  Bruno Haible  <bruno@clisp.org>
50614
50615         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50616         (Input/Output <stdio.h>): Add xprintf.
50617         (Signal handling <signal.h>): Add strsignal.
50618         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50619         (Core language properties): Add func.
50620         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50621         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50622         strings.
50623         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50624         (Input/output): New section.
50625         (File system functions): Add openat-die, stat-macros.
50626         (Networking functions): Add sockets.
50627         (Unicode string functions): Add unictype/*.
50628         (Support for building libraries and executables): Add gperf.
50629         (Support for building documentation): Add agpl-3.0.
50630         (Misc): Add nocrash.
50631
50632 2008-05-10  Bruno Haible  <bruno@clisp.org>
50633
50634         * modules/unictype/gen-ctype: New file.
50635
50636 2008-05-10  Jim Meyering  <meyering@redhat.com>
50637
50638         Make chdir-safer.c more efficient on a system with no symlinks.
50639         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50640         also if ELOOP is zero.  Suggested by Bruno Haible.
50641
50642         Make chdir-safer.c slightly safer.
50643         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50644         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50645
50646         Avoid compile failure on systems without ELOOP (like mingw).
50647         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50648         Reported by Bruno Haible.
50649
50650 2008-05-10  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50653         (is_utf8_encoding): Use a case-insensitive comparison.
50654         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50655         streq.
50656
50657 2008-05-10  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50660         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50661         * lib/unilbrk/ulc-common.h (iconv_string_length,
50662         iconv_string_keeping_offsets): Remove declarations.
50663         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50664         Don't include <iconv.h>, streq.h, xsize.h.
50665         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50666         conversion.
50667         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50668         <iconv.h>, streq.h, xsize.h.
50669         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50670         conversion.
50671         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50672         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50673         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50674         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50675
50676 2008-05-10  Bruno Haible  <bruno@clisp.org>
50677
50678         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50679         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50680
50681         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50682         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50683
50684         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50685         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50686
50687         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50688         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50689
50690         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50691         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50692
50693         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50694         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50695
50696         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50697         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50698
50699         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50700         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50701
50702 2008-05-10  Bruno Haible  <bruno@clisp.org>
50703
50704         Split up 'linebreak' module.
50705         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50706         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50707         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50708         modifications.
50709         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50710         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50711         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50712         lib/linebreak.c.
50713         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50714         lib/linebreak.c.
50715         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50716         lib/linebreak.c.
50717         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50718         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50719         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50720         lib/linebreak.c.
50721         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50722         lib/linebreak.c.
50723         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50724         lib/linebreak.c.
50725         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50726         lib/linebreak.c.
50727         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50728         lib/linebreak.c.
50729         * modules/unilbrk/base: New file.
50730         * modules/unilbrk/tables: New file.
50731         * modules/unilbrk/u8-possible-linebreaks: New file.
50732         * modules/unilbrk/u16-possible-linebreaks: New file.
50733         * modules/unilbrk/u32-possible-linebreaks: New file.
50734         * modules/unilbrk/ulc-common: New file.
50735         * modules/unilbrk/ulc-possible-linebreaks: New file.
50736         * modules/unilbrk/u8-width-linebreaks: New file.
50737         * modules/unilbrk/u16-width-linebreaks: New file.
50738         * modules/unilbrk/u32-width-linebreaks: New file.
50739         * modules/unilbrk/ulc-width-linebreaks: New file.
50740         * lib/linebreak.h: Remove file.
50741         * lib/linebreak.c: Remove file.
50742         * m4/linebreak.m4: Remove file.
50743         * modules/linebreak: Remove file.
50744         * NEWS: Mention the changes.
50745
50746 2008-05-09  Eric Blake  <ebb9@byu.net>
50747
50748         Add xmemdup0.
50749         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50750         implementation.
50751         * lib/xmalloc.c (xmemdup0): New C implementation.
50752
50753 2008-05-08  Bruno Haible  <bruno@clisp.org>
50754
50755         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50756
50757 2008-05-07  Eric Blake  <ebb9@byu.net>
50758
50759         Support cross-compilation of <wctype.h>.
50760         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50761         AC_CACHE_CHECK.
50762
50763 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50764
50765         * build-aux/vc-list-files: Add support for bzr.
50766
50767 2008-05-03  Jim Meyering  <meyering@redhat.com>
50768
50769         avoid failed assertion with tight malloc
50770         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50771
50772 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50773
50774         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50775         are needed from arpa/inet.h.
50776         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50777         Reported by Bruno Haible.
50778
50779 2008-05-02  Jim Meyering  <meyering@redhat.com>
50780
50781         avoid compilation error on FreeBSD 6
50782         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50783
50784 2008-05-01  Jim Meyering  <meyering@redhat.com>
50785
50786         useless-if-before-free: correct --help's exit status description
50787         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50788         for one or more matches, etc.  Reported by Bruno Haible.
50789
50790         vc-list-files: make the stand-alone gnulib test work
50791         * modules/vc-list-files-tests (configure.ac):
50792         Define and AC_SUBST abs_aux_dir.
50793         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50794         $(abs_top_srcdir) to each script and having each of them
50795         duplicate the work of setting PATH, set PATH here, using
50796         the new variable, abs_aux_dir instead.
50797         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50798         * tests/test-vc-list-files-git.sh: Likewise.
50799         Reported by Bruno Haible.
50800
50801 2008-05-01  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50804         reallocation. Rename 'done' to 'found_delimiter'.
50805
50806 2008-05-01  Jim Meyering  <meyering@redhat.com>
50807
50808         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50809         * build-aux/vc-list-files: Use `...`, not $(...).
50810
50811 2008-04-30  Jim Meyering  <meyering@redhat.com>
50812
50813         add tests for vc-list-files
50814         * modules/vc-list-files-tests: New module.
50815         * tests/test-vc-list-files-cvs.sh: New file.
50816         * tests/test-vc-list-files-git.sh: New file.
50817
50818         avoid a warning from gcc
50819         * lib/getndelim2.c (IF_LINT): Define.
50820         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50821
50822         vc-list-files: work properly with build-aux/cvsu, too
50823         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50824         to all cvs-based clauses.
50825
50826         vc-list-files: work properly in the CVS+awk case, too
50827         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50828
50829         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50830         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50831         take more than one file argument, so .  Add quotes, just in case $dir
50832         ever contains a shell meta-character.  Prompted by Soren Hansen in
50833         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50834
50835 2008-04-29  Eric Blake  <ebb9@byu.net>
50836
50837         Optimize getndelim2 to use block operations when possible.
50838         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50839         freadseek, and memchr2.
50840         * lib/getndelim2.c (getndelim2): Use them for block reads.
50841
50842 2008-04-29  Bruno Haible  <bruno@clisp.org>
50843
50844         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50845         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50846         * modules/inet_ntop (Depends-on): Add extensions.
50847         * modules/inet_pton (Depends-on): Likewise.
50848         Reported by Simon Josefsson.
50849
50850 2008-04-29  Jim Meyering  <meyering@redhat.com>
50851
50852         When the is more than one match in a block, match all of them.
50853         * build-aux/useless-if-before-free: Iterate through each block
50854         until there are no more matches.
50855
50856         Fix broken useless-if-before-free script.
50857         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50858         the expression to match cast of argument to free-like function.
50859
50860 2008-04-29  Eric Blake  <ebb9@byu.net>
50861
50862         Use new header.
50863         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50864
50865 2008-04-29  Jim Meyering  <meyering@redhat.com>
50866
50867         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50868         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50869         by gnulib to exist and to declare e.g., inet_ntop.
50870         Don't include "inet_ntop.h", now removed.
50871
50872         * m4/arpa_inet_h.m4: Remove trailing blanks.
50873
50874 2008-04-29  Eric Blake  <ebb9@byu.net>
50875
50876         Silence valgrind on safe reads beyond potential array bounds.
50877         * lib/rawmemchr.valgrind: New file.
50878         * lib/strchrnul.valgrind: Likewise.
50879         * modules/rawmemchr (Files): Distribute new file.
50880         * modules/strchrnul (Files): Likewise.
50881         Suggested by Bruno Haible.
50882
50883 2008-04-29  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50886         (inet_ntop, inet_pton): Change portability warning's wording.
50887         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50888         Invoke gl_CHECK_NEXT_HEADERS.
50889         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50890         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50891         set ARPA_INET_H.
50892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50893         * modules/arpa_inet (Description): No longer only for systems that
50894         lack it.
50895         (Depends-on): Add include_next.
50896         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50897         HAVE_ARPA_INET_H.
50898
50899 2008-04-29  Jim Meyering  <meyering@redhat.com>
50900
50901         * modules/mkdir (License): Re-license as LGPLv2+.
50902
50903 2008-04-29  Bruno Haible  <bruno@clisp.org>
50904
50905         * modules/rawmemchr (Maintainer): Set to Eric.
50906         * modules/strchrnul (Maintainer): Likewise.
50907
50908 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50909
50910         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50911         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50912
50913         * modules/arpa_inet (arpa/inet.h): Use them.
50914
50915 2008-04-28  Eric Blake  <ebb9@byu.net>
50916
50917         Test getndelim2.
50918         * modules/getndelim2-tests: New file.
50919         * tests/test-getndelim2.c: Likewise.
50920         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50921         stream.
50922         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50923
50924         * MODULES.html.sh: Document new module.
50925
50926 2008-04-20  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/c-stack.c (die): Use raise.
50929         * modules/c-stack (Depends-on): Add raise.
50930
50931 2008-04-28  Bruno Haible  <bruno@clisp.org>
50932
50933         Expect rpmatch to be declared.
50934         * lib/yesno.c (rpmatch): Remove declaration.
50935
50936         Declare rpmatch.
50937         * lib/stdlib.in.h (rpmatch): New declaration.
50938         * lib/rpmatch.c: Include <stdlib.h> first.
50939         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50940         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50942         HAVE_RPMATCH.
50943         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50945         (Include): Set to <stdlib.h>.
50946         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50947         HAVE_RPMATCH.
50948         * NEWS: Document the change.
50949
50950 2008-04-28  Bruno Haible  <bruno@clisp.org>
50951
50952         Change rpmatch to use nl_langinfo when appropriate.
50953         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50954         (N_): New macro.
50955         (localized_pattern): New function/macro.
50956         (try): Remove match, nomatch arguments. Copy the pattern into safe
50957         memory before caching it.
50958         (rpmatch): Use localized_pattern. Add translator comments.
50959         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50960         Suggested by Eric Blake.
50961         * modules/rpmatch (Depends-on): Add stdbool.
50962
50963 2008-04-28  Eric Blake  <ebb9@byu.net>
50964
50965         Add rawmemchr module, matching glibc.
50966         * modules/string (Makefile.am): New indicator.
50967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50968         * lib/string.in.h (rawmemchr): Declare when appropriate.
50969         * modules/rawmemchr: New file.
50970         * m4/rawmemchr.m4: Likewise.
50971         * lib/rawmemchr.c: Likewise.
50972         * modules/rawmemchr-tests: Likewise.
50973         * tests/test-rawmemchr.c: Likewise.
50974         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50975         module.
50976         * modules/strchrnul (Depends-on): Add rawmemchr.
50977         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50978
50979         Whitespace cleanup.
50980         * tests/test-strchrnul.c: Reindent.
50981         * lib/strchrnul.c: Likewise.
50982
50983         Optimize and test strchrnul.
50984         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50985         * modules/strchrnul-tests: New file.
50986         * tests/test-strchrnul.c: Likewise.
50987
50988         Remove intprops dependency.
50989         * modules/memchr (Depends-on): Remove intprops.
50990         * modules/memrchr (Depends-on): Likewise.
50991         * modules/memchr2 (Depends-on): Likewise.
50992         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50993         * lib/memrchr.c (__memrchr): Likewise.
50994         * lib/memrchr2.c (memchr2): Likewise.
50995         Reported by Simon Josefsson.
50996
50997 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50998
50999         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51000         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51001
51002 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51003
51004         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51005
51006         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51007
51008         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51009
51010         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51011         declarations.
51012         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51013
51014         * m4/inet_pton.m4: Don't check for header files.
51015
51016         * m4/inet_ntop.m4: Don't check for header files.
51017
51018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51019
51020         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51021         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51022         trigger for cygwin).
51023         Reported by Bruno Haible  <bruno@clisp.org>.
51024
51025 2008-04-28  Bruno Haible  <bruno@clisp.org>
51026
51027         * doc/posix-functions/strdup.texi: Mention mingw problem.
51028
51029 2008-04-27  Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/stat-time-tests (Depends-on): Add sleep.
51032         * tests/test-stat-time.c (force_unlink): New function.
51033         (cleanup): Use it.
51034         (test_mtime): Remove the ctime related tests.
51035         (test_ctime): New function, containing the ctime related tests.
51036         (main): Call test_ctime, except on native Windows platforms.
51037
51038 2008-04-27  Bruno Haible  <bruno@clisp.org>
51039
51040         * lib/rpmatch.c (rpmatch): Add some comments.
51041         Reported by James Youngman <jay@gnu.org>.
51042
51043 2008-04-27  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51046         quiet NaNs.
51047
51048 2008-04-27  Bruno Haible  <bruno@clisp.org>
51049
51050         Make test-yesno.sh work on mingw.
51051         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51052         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51053         (main): Set stdin to binary mode.
51054         * modules/yesno-tests (Depends-on): Add binary-io.
51055
51056 2008-04-27  Bruno Haible  <bruno@clisp.org>
51057
51058         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51059         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51060         argument that lie outside the IEEE 854 domain.
51061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51062         (gl_ISFINITE): Use it.
51063         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51064
51065 2008-04-27  Bruno Haible  <bruno@clisp.org>
51066
51067         Allow local renaming in config.h.
51068         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51069
51070 2008-04-27  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/memchr.c (__memchr): Change type of 'i'.
51073         * lib/memchr2.c (memchr2): Likewise.
51074
51075 2008-04-26  Eric Blake  <ebb9@byu.net>
51076         and Bruno Haible  <bruno@clisp.org>
51077
51078         Optimize and test memrchr.
51079         * modules/memrchr (Depends-on): Add intprops.
51080         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51081         * modules/memrchr-tests: New file.
51082         * tests/test-memrchr.c: New file.
51083
51084 2008-04-26  Bruno Haible  <bruno@clisp.org>
51085
51086         Add tentative support for DragonFly BSD.
51087         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51088         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51089         fp.
51090         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51091         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51092         * lib/fpurge.c (fpurge): Likewise.
51093         * lib/freadable.c (freaadable): Likewise.
51094         * lib/freadahead.c (freadahead): Likewise.
51095         * lib/freading.c (freading): Likewise.
51096         * lib/freadptr.c (freadptr): Likewise.
51097         * lib/freadseek.c (freadptrinc): Likewise.
51098         * lib/fseeko.c (fseeko): Likewise.
51099         * lib/fseterr.c (fseterr): Likewise.
51100         * lib/fwritable.c (fwritable): Likewise.
51101         * lib/fwriting.c (fwriting): Likewise.
51102
51103 2008-04-26  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/stdio-impl.h: New file.
51106         * lib/fbufmode.c: Include stdio-impl.h.
51107         (fbufmode): Use fp_, remove redundant #defines.
51108         * lib/fflush.c: Include stdio-impl.h.
51109         (clear_ungetc_buffer): Remove redundant #defines.
51110         * lib/fpurge.c: Include stdio-impl.h.
51111         (fpurge): Remove redundant #defines.
51112         * lib/freadable.c: Include stdio-impl.h.
51113         (freadable): Remove redundant #defines.
51114         * lib/freadahead.c: Include stdio-impl.h.
51115         (freadahead): Remove redundant #defines.
51116         * lib/freading.c: Include stdio-impl.h.
51117         (freading): Remove redundant #defines.
51118         * lib/freadptr.c: Include stdio-impl.h.
51119         (freadptr): Remove redundant #defines.
51120         * lib/freadseek.c: Include stdio-impl.h.
51121         (freadptrinc): Remove redundant #defines.
51122         * lib/fseeko.c: Include stdio-impl.h.
51123         (rpl_fseeko): Remove redundant #defines.
51124         * lib/fseterr.c: Include stdio-impl.h.
51125         (fseterr): Remove redundant #defines.
51126         * lib/fwritable.c: Include stdio-impl.h.
51127         (fwritable: Remove redundant #defines.
51128         * lib/fwriting.c: Include stdio-impl.h.
51129         (fwriting): Remove redundant #defines.
51130         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51131         * modules/fflush (Files): Likewise.
51132         * modules/fpurge (Files): Likewise.
51133         * modules/freadable (Files): Likewise.
51134         * modules/freadahead (Files): Likewise.
51135         * modules/freading (Files): Likewise.
51136         * modules/freadptr (Files): Likewise.
51137         * modules/freadseek (Files): Likewise.
51138         * modules/fseeko (Files): Likewise.
51139         * modules/fseterr (Files): Likewise.
51140         * modules/fwritable (Files): Likewise.
51141         * modules/fwriting (Files): Likewise.
51142
51143 2008-04-26  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51146         restore_seek_optimization, update_fpos_cache): New functions, extracted
51147         from rpl_fflush.
51148         (rpl_fflush): Use them.
51149         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51150         (gl_REPLACE_FFLUSH): Use it.
51151
51152 2008-04-26  Bruno Haible  <bruno@clisp.org>
51153
51154         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51155         on Solaris.
51156         * tests/test-xstrtoimax.sh: Likewise.
51157         * tests/test-xstrtoumax.sh: Likewise.
51158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51159
51160 2008-04-26  Bruno Haible  <bruno@clisp.org>
51161
51162         * modules/memchr-tests: New file.
51163         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51164
51165 2008-04-26  Eric Blake  <ebb9@byu.net>
51166             Bruno Haible  <bruno@clisp.org>
51167
51168         * lib/memchr.c: Include intprops.h.
51169         (__memchr): Optimize parallel detection of matching bytes. Rename local
51170         variables. Add explanatory comments.
51171
51172 2008-04-26  Bruno Haible  <bruno@clisp.org>
51173
51174         Fix module 'memchr', broken since 2000-10-28.
51175         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51176
51177 2008-04-26  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51180         comments.
51181
51182 2008-04-25  Eric Blake  <ebb9@byu.net>
51183
51184         Use native fstatat on cygwin 1.7.0.
51185         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51186         first.
51187
51188 2008-04-23  Eric Blake  <ebb9@byu.net>
51189
51190         Improve memchr2 performance.
51191         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51192         NUL bytes.
51193         * modules/memchr2 (Depends-on): Use intprops.h.
51194
51195 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51196
51197         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51198         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51199         <blp@cs.stanford.edu>.
51200
51201 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51202
51203         * lib/arpa_inet.in.h: New file.
51204
51205         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51206         (Makefile.am): Sed in substitute header file.
51207
51208         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51209         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51210
51211         * modules/inet_ntop (configure.ac): Use
51212         gl_ARPA_INET_MODULE_INDICATOR.
51213
51214         * modules/inet_pton (configure.ac): Use
51215         gl_ARPA_INET_MODULE_INDICATOR.
51216
51217 2008-04-22  Jim Meyering  <meyering@redhat.com>
51218
51219         * modules/verify (License): Re-license as LGPLv2+.
51220
51221 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51222
51223         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51224         parameter to void* as per POSIX standard (MinGW uses char*).
51225
51226 2008-04-21  Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51229         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51230         Define to replacements if REPLACE_ISWCNTRL is 1.
51231         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51232         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51233         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51234         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51235         what it fixes.
51236         * doc/posix-functions/iswalpha.texi: Likewise.
51237         * doc/posix-functions/iswblank.texi: Likewise.
51238         * doc/posix-functions/iswcntrl.texi: Likewise.
51239         * doc/posix-functions/iswdigit.texi: Likewise.
51240         * doc/posix-functions/iswgraph.texi: Likewise.
51241         * doc/posix-functions/iswlower.texi: Likewise.
51242         * doc/posix-functions/iswprint.texi: Likewise.
51243         * doc/posix-functions/iswpunct.texi: Likewise.
51244         * doc/posix-functions/iswspace.texi: Likewise.
51245         * doc/posix-functions/iswupper.texi: Likewise.
51246         * doc/posix-functions/iswxdigit.texi: Likewise.
51247         Reported by Alain Guibert.
51248
51249 2008-04-21  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51252         Patch by Alain Guibert.
51253
51254 2008-04-21  Bruno Haible  <bruno@clisp.org>
51255
51256         Fix test failures on mingw.
51257         * tests/test-xstrtol.c (print_no_progname): New function.
51258         (main): Install it in error_print_progname hook.
51259         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51260         * tests/test-xstrtoimax.sh: Likewise.
51261         * tests/test-xstrtoumax.sh: Likewise.
51262
51263 2008-04-21  Bruno Haible  <bruno@clisp.org>
51264
51265         Fix test failure on mingw.
51266         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51267
51268 2008-04-21  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51271         Actually assign a value.
51272
51273 2008-04-20  Bruno Haible  <bruno@clisp.org>
51274
51275         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51276         take 2.
51277         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51278         'canonicalize-lgpl' module is also used.
51279         * lib/canonicalize-lgpl.c: Undo last change.
51280         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51281
51282 2008-04-20  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51285         config.h. Provide _mkdir based fallback for mingw.
51286         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51287         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51288         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51289         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51290         rather than defining mkdir in config.h.
51291         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51292         (gl_SYS_STAT_H_DEFAULTS): New macro.
51293         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51294         HAVE_IO_H any more.
51295         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51296         HAVE_DECL_MKDIR and HAVE_IO_H.
51297
51298 2008-04-20  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/isapipe.c: Port to native Windows platforms.
51301
51302 2008-04-20  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51305
51306 2008-04-21  Eric Blake  <ebb9@byu.net>
51307
51308         Work around preprocessors that don't handle UINTMAX_MAX.
51309         * lib/memchr2.c (memchr2): Avoid embedded #if.
51310         Reported by Alain Guibert, fix suggested by Bruno Haible.
51311
51312 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51313
51314         * doc/posix-functions/strftime.texi (strftime): Explain better
51315         Windows incompatibility.  Suggested by Micah Cowan
51316         <micah@cowan.name>.
51317
51318 2008-04-20  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51321         unistr/u8-mblen.
51322
51323 2008-04-20  Bruno Haible  <bruno@clisp.org>
51324
51325         Fix test failure on platforms with non-GNU iconv.
51326         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51327         (U_TO_U8): Use it, rather than u16_to_u8.
51328         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51329         units at the end of the input string.
51330         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51331
51332 2008-04-20  Bruno Haible  <bruno@clisp.org>
51333
51334         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51335         when the resulting length is 0.
51336         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51337
51338 2008-04-20  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51341         works.
51342         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51343
51344 2008-04-20  Bruno Haible  <bruno@clisp.org>
51345
51346         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51347         * modules/tsearch-tests (configure.ac): Test for initstate function.
51348
51349 2008-04-20  Bruno Haible  <bruno@clisp.org>
51350
51351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51352         for nlink_t if missing.
51353         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51354
51355 2008-04-19  Bruno Haible  <bruno@clisp.org>
51356
51357         Work around snprintf bug on Linux libc5.
51358         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51360         gl_SNPRINTF_SIZE1.
51361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51362         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51363         that test failed.
51364         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51365         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51366         * modules/snprintf (Files): Add m4/printf.m4.
51367         * modules/vsnprintf (Files): Likewise.
51368         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51369         * doc/posix-functions/vsnprintf.texi: Likewise.
51370
51371 2008-04-19  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51374         from 0.0058 to less than 10^-7.
51375
51376 2008-04-19  Bruno Haible  <bruno@clisp.org>
51377
51378         Fix rounding when a precision is given.
51379         * lib/vasnprintf.c (is_borderline): New function.
51380         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51381         9...9x.
51382         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51383         %e, %g.
51384         * tests/test-vasprintf-posix.c (test_function): Likewise.
51385         * tests/test-snprintf-posix.h (test_function): Likewise.
51386         * tests/test-sprintf-posix.h (test_function): Likewise.
51387         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51388         * tests/test-printf-posix.h (test_function): Likewise.
51389         * tests/test-printf-posix.output: Update.
51390         Reported by John Darrington <john@darrington.wattle.id.au> via
51391         Ben Pfaff <blp@cs.stanford.edu>.
51392
51393 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51394
51395         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51396         Suggested by Bruno Haible <bruno@clisp.org>.
51397
51398 2008-04-17  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51401         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51402         implementation.
51403         Patch by Bruce Merry <bmerry@gmail.com>.
51404
51405 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51406
51407         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51408         doesn't work under Windows.
51409
51410 2008-04-16  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51413         New macros.
51414         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51415         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51416         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51417         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51418         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51419         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51420         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51421         macros.
51422         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51423         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51424         Northern Sotho, Uighur.
51425
51426 2008-04-16  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51429         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51430         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51431         Reported by Daniel Bergström <daniel@octocode.com>.
51432
51433 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51437         function.
51438         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51439         New functions, mostly extracted from gl_locale_name_default.
51440         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51441
51442 2008-04-16  Eric Blake  <ebb9@byu.net>
51443
51444         Adjust strtod detection to catch glibc 2.7 bug.
51445         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51446         Reported by John Gatewood Ham.
51447
51448 2008-04-16  Bruno Haible  <bruno@clisp.org>
51449
51450         Add tentative support for Linux libc5.
51451         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51452         * lib/fpurge.c (fpurge): Likewise.
51453         * lib/freadable.c (freadable): Likewise.
51454         * lib/freadahead.c (freadahead): Likewise.
51455         * lib/freading.c (freading): Likewise.
51456         * lib/freadptr.c (freadptr): Likewise.
51457         * lib/freadseek.c (freadptrinc): Likewise.
51458         * lib/fseeko.c (rpl_fseeko): Likewise.
51459         * lib/fseterr.c (fseterr): Likewise.
51460         * lib/fwritable.c (fwritable): Likewise.
51461         * lib/fwriting.c (fwriting): Likewise.
51462         Reported by Alain Guibert <alguibert+bts@free.fr>.
51463
51464 2008-04-15  Bruno Haible  <bruno@clisp.org>
51465
51466         * modules/mathl (configure.ac): Define module indicator.
51467
51468 2008-04-15  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/logl.c (logl): Remove unused variables.
51471
51472 2008-04-15  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51475         fails.
51476
51477 2008-04-15  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/trim.c (trim2): Fix argument of isspace() macro.
51480
51481 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51482
51483         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51484         to 0.
51485         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51486
51487 2008-04-14  Bruno Haible  <bruno@clisp.org>
51488
51489         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51490         AC_LANG_PROGRAM argument.
51491         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51492         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51494         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51495         * m4/math_h.m4 (gl_MATH_H): Likewise.
51496         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51498         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51499         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51500         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51501         * m4/regex.m4 (gl_REGEX): Likewise.
51502         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51503         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51507         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51510
51511 2008-04-14  Jim Meyering  <meyering@redhat.com>
51512
51513         test-strtod: fix typos: s/abs/fabs/
51514         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51515
51516 2008-04-13  Bruno Haible  <bruno@clisp.org>
51517
51518         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51519         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51520         module is also used and while not building the reloc-wrapper.
51521
51522 2008-04-13  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51525
51526 2008-04-13  Bruno Haible  <bruno@clisp.org>
51527
51528         Fix AIX compilation failure introduced on 2008-04-02.
51529         * tests/test-frexp.c (exp): Undefine before redefining.
51530         * tests/test-frexpl.c (exp): Likewise.
51531
51532 2008-04-13  Bruno Haible  <bruno@clisp.org>
51533
51534         Work around a HP-UX stdio bug.
51535         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51536         * tests/test-ftello.c (main): Likewise.
51537         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51538         * doc/posix-functions/ftello.texi: Likewise.
51539
51540 2008-04-13  Bruno Haible  <bruno@clisp.org>
51541
51542         Make test-signbit pass on HP-UX/hppa.
51543         * tests/test-signbit.c (minus_zerol): New variable.
51544         (test_signbitl): Use it.
51545
51546 2008-04-13  Bruno Haible  <bruno@clisp.org>
51547
51548         Make truncl work on OSF/1 4.0.
51549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51550         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51551         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51553         HAVE_DECL_TRUNCL.
51554         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51555         HAVE_DECL_TRUNCL.
51556         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51557
51558 2008-04-13  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51561
51562 2008-04-13  Bruno Haible  <bruno@clisp.org>
51563
51564         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51565         expression, so as to avoid HP-UX 11 cc compiler bug.
51566
51567 2008-04-13  Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51570
51571 2008-04-13  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/git-merge-changelog.c: Remove empty declaration outside of
51574         functions.
51575
51576 2008-04-13  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51579
51580 2008-04-13  Bruno Haible  <bruno@clisp.org>
51581
51582         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51583         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51585         also if it exists but lacks definitions of the SHUT_* macros.
51586         * modules/sys_socket (Description): Update.
51587         Reported by Elbert Pol <e.pol@chello.nl>.
51588
51589 2008-04-13  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/localcharset.c (OS2): Don't redefine if already defined.
51592         Reported by Elbert Pol <e.pol@chello.nl>.
51593
51594 2008-04-13  Bruno Haible  <bruno@clisp.org>
51595
51596         * lib/binary-io.h [__EMX__]: Include <io.h>.
51597         Reported by Elbert Pol <e.pol@chello.nl>.
51598
51599 2008-04-12  Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/fpucw.h: Enable the definitions also for x86_64.
51602         Needed for NetBSD/x86_64.
51603         Reported by Thomas Klausner <tk@giga.or.at>.
51604
51605 2008-04-12  Bruno Haible  <bruno@clisp.org>
51606
51607         * tests/test-strtod.c: Include isnand.h.
51608         (main): Use isnand instead of isnan.
51609         Reported by Jim Meyering.
51610
51611 2008-04-12  Bruno Haible  <bruno@clisp.org>
51612
51613         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51614         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51615
51616 2008-04-12  Jim Meyering  <meyering@redhat.com>
51617
51618         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51619
51620 2008-04-12  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51623         Reported by Elbert Pol <e.pol@chello.nl>.
51624
51625 2008-04-12  Eric Blake  <ebb9@byu.net>
51626
51627         Work around Solaris 10 math.h bug.
51628         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51629         (gl_MATH_H_DEFAULTS): Set up default.
51630         * modules/math (Makefile.am): Replace new indicators.
51631         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51632         * tests/test-math.c (main): Test this.
51633         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51634         * doc/posix-headers/math.texi (math.h): Mention bug.
51635         Reported by Nelson H. F. Beebe and Jim Meyering.
51636
51637 2008-04-11  Bruno Haible  <bruno@clisp.org>
51638
51639         Adapt to future versions of Apple GCC.
51640         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51641         Reported by Peter O'Gorman <peter@pogma.com>.
51642
51643 2008-04-11  Bruno Haible  <bruno@clisp.org>
51644
51645         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51646
51647 2008-04-11  Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51650
51651         * modules/getaddrinfo-tests (Makefile.am): Define
51652         test_getaddrinfo_LDADD.
51653
51654 2008-04-11  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51657         (init): Fix syntax error.
51658         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51659         is declared.
51660
51661 2008-04-11  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51664         * modules/glob (Depends-on): Add stdbool.
51665
51666 2008-04-11  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/trim.c: Include <string.h>.
51669
51670 2008-04-11  Eric Blake  <ebb9@byu.net>
51671
51672         Avoid compile failure on OS/2.
51673         * lib/regex_internal.h (internal_function): Disable optimization
51674         on OS/2 (__EMX__), where it caused compiler error.
51675         Reported by Elbert Pol.
51676
51677 2008-04-11  Bruno Haible  <bruno@clisp.org>
51678
51679         Flush the standard error stream before aborting. Needed on mingw.
51680         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51681         * tests/test-array_list.c (ASSERT): Likewise.
51682         * tests/test-array_oset.c (ASSERT): Likewise.
51683         * tests/test-avltree_list.c (ASSERT): Likewise.
51684         * tests/test-avltree_oset.c (ASSERT): Likewise.
51685         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51686         * tests/test-binary-io.c (ASSERT): Likewise.
51687         * tests/test-byteswap.c (ASSERT): Likewise.
51688         * tests/test-c-ctype.c (ASSERT): Likewise.
51689         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51690         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51691         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51692         * tests/test-c-strstr.c (ASSERT): Likewise.
51693         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51694         * tests/test-canonicalize.c (ASSERT): Likewise.
51695         * tests/test-carray_list.c (ASSERT): Likewise.
51696         * tests/test-ceilf1.c (ASSERT): Likewise.
51697         * tests/test-ceilf2.c (ASSERT): Likewise.
51698         * tests/test-ceill.c (ASSERT): Likewise.
51699         * tests/test-count-one-bits.c (ASSERT): Likewise.
51700         * tests/test-fbufmode.c (ASSERT): Likewise.
51701         * tests/test-fflush2.c (ASSERT): Likewise.
51702         * tests/test-floorf1.c (ASSERT): Likewise.
51703         * tests/test-floorf2.c (ASSERT): Likewise.
51704         * tests/test-floorl.c (ASSERT): Likewise.
51705         * tests/test-fopen.c (ASSERT): Likewise.
51706         * tests/test-fpending.c (ASSERT): Likewise.
51707         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51708         * tests/test-fpurge.c (ASSERT): Likewise.
51709         * tests/test-freadable.c (ASSERT): Likewise.
51710         * tests/test-freadahead.c (ASSERT): Likewise.
51711         * tests/test-freading.c (ASSERT): Likewise.
51712         * tests/test-freadptr.c (ASSERT): Likewise.
51713         * tests/test-freadptr2.c (ASSERT): Likewise.
51714         * tests/test-freadseek.c (ASSERT): Likewise.
51715         * tests/test-freopen.c (ASSERT): Likewise.
51716         * tests/test-frexp.c (ASSERT): Likewise.
51717         * tests/test-frexpl.c (ASSERT): Likewise.
51718         * tests/test-fseek.c (ASSERT): Likewise.
51719         * tests/test-fseeko.c (ASSERT): Likewise.
51720         * tests/test-fstrcmp.c (ASSERT): Likewise.
51721         * tests/test-ftell.c (ASSERT): Likewise.
51722         * tests/test-ftello.c (ASSERT): Likewise.
51723         * tests/test-func.c (ASSERT): Likewise.
51724         * tests/test-fwritable.c (ASSERT): Likewise.
51725         * tests/test-fwriting.c (ASSERT): Likewise.
51726         * tests/test-getdelim.c (ASSERT): Likewise.
51727         * tests/test-getline.c (ASSERT): Likewise.
51728         * tests/test-i-ring.c (ASSERT): Likewise.
51729         * tests/test-iconv-utf.c (ASSERT): Likewise.
51730         * tests/test-iconv.c (ASSERT): Likewise.
51731         * tests/test-isfinite.c (ASSERT): Likewise.
51732         * tests/test-isnand.c (ASSERT): Likewise.
51733         * tests/test-isnanf.c (ASSERT): Likewise.
51734         * tests/test-isnanl.h (ASSERT): Likewise.
51735         * tests/test-ldexpl.c (ASSERT): Likewise.
51736         * tests/test-linked_list.c (ASSERT): Likewise.
51737         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51738         * tests/test-localename.c (ASSERT): Likewise.
51739         * tests/test-lseek.c (ASSERT): Likewise.
51740         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51741         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51742         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51743         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51744         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51745         * tests/test-mbschr.c (ASSERT): Likewise.
51746         * tests/test-mbscspn.c (ASSERT): Likewise.
51747         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51748         * tests/test-mbspbrk.c (ASSERT): Likewise.
51749         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51750         * tests/test-mbsrchr.c (ASSERT): Likewise.
51751         * tests/test-mbsspn.c (ASSERT): Likewise.
51752         * tests/test-mbsstr1.c (ASSERT): Likewise.
51753         * tests/test-mbsstr2.c (ASSERT): Likewise.
51754         * tests/test-mbsstr3.c (ASSERT): Likewise.
51755         * tests/test-memchr2.c (ASSERT): Likewise.
51756         * tests/test-memmem.c (ASSERT): Likewise.
51757         * tests/test-open.c (ASSERT): Likewise.
51758         * tests/test-printf-frexp.c (ASSERT): Likewise.
51759         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51760         * tests/test-printf-posix.c (ASSERT): Likewise.
51761         * tests/test-quotearg.c (ASSERT): Likewise.
51762         * tests/test-rbtree_list.c (ASSERT): Likewise.
51763         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51764         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51765         * tests/test-round1.c (ASSERT): Likewise.
51766         * tests/test-roundf1.c (ASSERT): Likewise.
51767         * tests/test-roundl.c (ASSERT): Likewise.
51768         * tests/test-signbit.c (ASSERT): Likewise.
51769         * tests/test-sleep.c (ASSERT): Likewise.
51770         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51771         * tests/test-snprintf.c (ASSERT): Likewise.
51772         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51773         * tests/test-stat-time.c (ASSERT): Likewise.
51774         * tests/test-strcasestr.c (ASSERT): Likewise.
51775         * tests/test-strerror.c (ASSERT): Likewise.
51776         * tests/test-striconv.c (ASSERT): Likewise.
51777         * tests/test-striconveh.c (ASSERT): Likewise.
51778         * tests/test-striconveha.c (ASSERT): Likewise.
51779         * tests/test-strsignal.c (ASSERT): Likewise.
51780         * tests/test-strstr.c (ASSERT): Likewise.
51781         * tests/test-strtod.c (ASSERT): Likewise.
51782         * tests/test-trunc1.c (ASSERT): Likewise.
51783         * tests/test-trunc2.c (ASSERT): Likewise.
51784         * tests/test-truncf1.c (ASSERT): Likewise.
51785         * tests/test-truncf2.c (ASSERT): Likewise.
51786         * tests/test-truncl.c (ASSERT): Likewise.
51787         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51788         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51789         * tests/test-vasnprintf.c (ASSERT): Likewise.
51790         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51791         * tests/test-vasprintf.c (ASSERT): Likewise.
51792         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51793         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51794         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51795         * tests/test-vsnprintf.c (ASSERT): Likewise.
51796         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51797         * tests/test-wcwidth.c (ASSERT): Likewise.
51798         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51799         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51800         * tests/test-xvasprintf.c (ASSERT): Likewise.
51801         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51802         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51803         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51804         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51805         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51806         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51807         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51808         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51809         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51810         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51811         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51812         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51813         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51814         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51815         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51816         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51817         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51818         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51819         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51820         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51821         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51822         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51823         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51824         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51825         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51826         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51827         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51828         * tests/unictype/test-combining.c (ASSERT): Likewise.
51829         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51830         * tests/unictype/test-digit.c (ASSERT): Likewise.
51831         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51832         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51833         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51834         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51835         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51836         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51837         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51838         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51839         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51840         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51841         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51842         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51843         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51844         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51845         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51846         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51847         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51848         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51849         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51850         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51851         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51852         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51853         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51854         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51855         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51856         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51857         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51858         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51859         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51860         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51861         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51862         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51863         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51864         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51865         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51866         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51867         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51868         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51869         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51870         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51871         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51872         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51873         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51874         Reported by Eric Blake.
51875
51876 2008-04-11  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/wchar.in.h: Tweak comment.
51879
51880 2008-04-11  Bruno Haible  <bruno@clisp.org>
51881
51882         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51883         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51884         gl_COMMON.
51885         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51886
51887 2008-04-11  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51890
51891 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51892
51893         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51894         of attempting to use non-existing /dev/*random.  Based on patch
51895         from Adam Strzelecki <ono@java.pl> in
51896         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51897
51898 2008-04-08  Bruno Haible  <bruno@clisp.org>
51899
51900         Add tentative support for emx+gcc.
51901         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51902         * lib/fpurge.c (fpurge): Likewise.
51903         * lib/freadable.c (freadable): Likewise.
51904         * lib/freadahead.c (freadahead): Likewise.
51905         * lib/freading.c (freading): Likewise.
51906         * lib/freadptr.c (freadptr): Likewise.
51907         * lib/freadseek.c (freadptrinc): Likewise.
51908         * lib/fseeko.c (rpl_fseeko): Likewise.
51909         * lib/fseterr.c (fseterr): Likewise.
51910         * lib/fwritable.c (fwritable): Likewise.
51911         * lib/fwriting.c (fwriting): Likewise.
51912         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51913
51914 2008-04-09  Eric Blake  <ebb9@byu.net>
51915
51916         Avoid some autoconf warnings.
51917         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51918         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51919         * m4/afs.m4 (gl_AFS): Likewise.
51920         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51921         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51922         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51923         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51924         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51925         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51926         (AC_CHECK_DECLS_ONCE): Likewise.
51927         Rename file...
51928         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51929         gnulib-tool requires autoconf 2.59 or better.
51930         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51931
51932 2008-04-08  Eric Blake  <ebb9@byu.net>
51933
51934         Use 'git describe --match' if present (added in git 1.5.5).
51935         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51936         if possible.
51937
51938 2008-04-08  Bruno Haible  <bruno@clisp.org>
51939
51940         Add tentative support for OpenServer.
51941         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51942         _ptr, _cnt.
51943         * lib/fpurge.c (fpurge): Likewise.
51944         * lib/freadable.c (freadable): Likewise.
51945         * lib/freadahead.c (freadahead): Likewise.
51946         * lib/freading.c (freading): Likewise.
51947         * lib/freadptr.c (freadptr): Likewise.
51948         * lib/freadseek.c (freadptrinc): Likewise.
51949         * lib/fseeko.c (rpl_fseeko): Likewise.
51950         * lib/fseterr.c (fseterr): Likewise.
51951         * lib/fwritable.c (fwritable): Likewise.
51952         * lib/fwriting.c (fwriting): Likewise.
51953         Reported by Roger Cornelius <rac@tenzing.org> and
51954         Brian K. White <brian@aljex.com>.
51955
51956 2008-04-06  Jim Meyering  <meyering@redhat.com>
51957
51958         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51959
51960 2008-04-06  Bruno Haible  <bruno@clisp.org>
51961
51962         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51963         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51964         * tests/test-printf-posix.sh: Likewise.
51965         * tests/test-vfprintf-posix.sh: Likewise.
51966         * tests/test-vprintf-posix.sh: Likewise.
51967         * tests/test-xprintf-posix.sh: Likewise.
51968
51969 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51970
51971         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51972         hide error from 'ls', needed on OS/2.
51973         Report by Elbert Pol <elbert.pol@gmail.com>.
51974
51975 2008-04-04  Eric Blake  <ebb9@byu.net>
51976
51977         Make test-fseeko.c failures meaningful.
51978         * tests/test-fseeko.c: Print line number on failure.
51979         * tests/test-fseek.c: Likewise.
51980         Reported by Nelson H. F. Beebe.
51981
51982         Improve strtod bug detection check.
51983         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51984         required for Solaris 10.
51985         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51986
51987 2008-04-04  Bruno Haible  <bruno@clisp.org>
51988
51989         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51990         by m4/setenv.m4.
51991
51992 2008-04-03  Eric Blake  <ebb9@byu.net>
51993
51994         Ensure sane .version contents.
51995         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51996         version string.
51997         * build-aux/git-version-gen: Improve documentation.
51998
51999         Make GNU make output nicer.
52000         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52001         MAKECMDGOALS to enforce message for all command line targets.  Set
52002         srcdir for use in maint.mk.
52003
52004         Another maintainer tweak.
52005         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52006         a target that regenerates version.
52007
52008 2008-04-03  Jim Meyering  <meyering@redhat.com>
52009
52010         vc-list-files: don't cause coreutils "make po-check" failure
52011         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52012
52013 2008-04-03  Eric Blake  <ebb9@byu.net>
52014
52015         Allow VPATH usage of vc-list-files.
52016         * build-aux/vc-list-files (scriptversion): Add timestamp.
52017         (options): Add --help, --version, -C.
52018         (CVS): Support installed cvsu.
52019
52020 2008-04-02  Bruno Haible  <bruno@clisp.org>
52021
52022         Avoid some "statement with no effect" warnings from gcc.
52023         * tests/test-wctype.c (main): Explicitly ignore unused values.
52024         Reported by Jim Meyering.
52025
52026 2008-04-02  Jim Meyering  <meyering@redhat.com>
52027
52028         Avoid some warnings from "gcc -Wshadow".
52029         * tests/test-frexp.c (exp): Define to a different identifier.
52030         * tests/test-frexpl.c (exp): Likewise.
52031
52032 2008-04-03  Jim Meyering  <meyering@redhat.com>
52033
52034         bootstrap: remove dangling *.[ch] symlinks from lib
52035         * build-aux/bootstrap [dangling symlink removal]: Move find's
52036         -depth option to precede all others, to avoid a warning.
52037         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52038
52039 2008-04-02  Bruno Haible  <bruno@clisp.org>
52040
52041         Avoid some warnings from "gcc -Wshadow".
52042         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52043         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52044         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52045         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52046         Reported by Jim Meyering.
52047
52048 2008-04-01  Bruno Haible  <bruno@clisp.org>
52049
52050         Fix test to work on IRIX 6.5 with cc.
52051         * tests/test-math.c (numeric_equal): New function.
52052         (main): Use it.
52053
52054 2008-04-01  Bruno Haible  <bruno@clisp.org>
52055
52056         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52057
52058 2008-04-01  Bruno Haible  <bruno@clisp.org>
52059
52060         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52061         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52062         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52063         (Depends-on): Remove math.
52064
52065         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52066         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52067         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52068         (Depends-on): Remove math.
52069
52070         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52071         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52072         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52073         (Depends-on): Remove math.
52074         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52075         (Depends-on): Remove math.
52076
52077         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52078         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52079         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52080         (Depends-on): Remove math.
52081         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52082         (Depends-on): Remove math.
52083
52084         * tests/test-round1.c: Include nan.h.
52085         (main): Use NaNd instead of NAN.
52086         * modules/round-tests (Files): Add tests/nan.h.
52087
52088         * tests/test-trunc1.c: Include nan.h.
52089         (main): Use NaNd instead of NAN.
52090         * modules/trunc-tests (Files): Add tests/nan.h.
52091
52092         * tests/test-roundf1.c: Include nan.h.
52093         (main): Use NaNf instead of NAN.
52094         * modules/roundf-tests (Files): Add tests/nan.h.
52095
52096         * tests/test-truncf1.c: Include nan.h.
52097         (main): Use NaNf instead of NAN.
52098         * modules/truncf-tests (Files): Add tests/nan.h.
52099
52100         * tests/test-ceilf1.c: Include nan.h.
52101         (main): Use NaNf instead of NAN.
52102         * modules/ceilf-tests (Files): Add tests/nan.h.
52103
52104         * tests/test-floorf1.c: Include nan.h.
52105         (main): Use NaNf instead of NAN.
52106         * modules/floorf-tests (Files): Add tests/nan.h.
52107
52108         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52109         (main): Use NaNf instead of NAN.
52110         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52111
52112         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52113         (main): Use NaNd instead of NAN.
52114         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52115
52116         * tests/test-frexp.c: Include nan.h.
52117         (main): Use NaNd instead of NAN.
52118         * modules/frexp-tests (Files): Add tests/nan.h.
52119
52120         * lib/isnan.c: Don't include <math.h>.
52121         (FUNC): Don't use NAN macro.
52122         * modules/isnand-nolibm (Depends-on): Remove math.
52123         * modules/isnanf-nolibm (Depends-on): Remove math.
52124         * modules/isnanl (Depends-on): Remove math.
52125         * modules/isnanl-nolibm (Depends-on): Remove math.
52126
52127         * tests/nan.h: New file.
52128
52129 2008-04-01  Eric Blake  <ebb9@byu.net>
52130
52131         Fix typos.
52132         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52133         values to be the right type.
52134
52135         For now, cater to gnulib strtod inaccuracies.
52136         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52137         fractional results.  While not as nice from a QoI perspective, it
52138         is a quicker patch than correctly implementing decimal to binary
52139         rounding.
52140
52141 2008-03-31  Eric Blake  <ebb9@byu.net>
52142
52143         Guarantee a definition of NAN.
52144         * lib/math.in.h (NAN): Define if missing.
52145         * tests/test-math.c (main): Test it.
52146         * doc/posix-headers/math.texi (math.h): Document this.
52147         * lib/isnan.c (rpl_isnand): Use it.
52148         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52149         * tests/test-floorf1.c (NaN): Likewise.
52150         * tests/test-frexp.c (NaN): Likewise.
52151         * tests/test-isnand.c (NaN): Likewise.
52152         * tests/test-isnanf.c (NaN): Likewise.
52153         * tests/test-round1.c (NaN): Likewise.
52154         * tests/test-roundf1.c (NaN): Likewise.
52155         * tests/test-snprintf-posix.h (NaN): Likewise.
52156         * tests/test-sprintf-posix.h (NaN): Likewise.
52157         * tests/test-trunc1.c (NaN): Likewise.
52158         * tests/test-truncf1.c (NaN): Likewise.
52159         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52160         * tests/test-vasprintf-posix.c (NaN): Likewise.
52161         * modules/isnand-nolibm (Depends-on): Add math.
52162         * modules/isnanf-nolibm (Depends-on): Likewise.
52163         * modules/isnanl (Depends-on): Likewise.
52164         * modules/isnanl-nolibm (Depends-on): Likewise.
52165         * modules/snprintf-posix-tests (Depends-on): Likewise.
52166         * modules/sprintf-posix-tests (Depends-on): Likewise.
52167         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52168         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52169         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52170         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52171
52172 2008-03-31  Bruno Haible  <bruno@clisp.org>
52173
52174         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52175         * doc/posix-functions/strtod.texi: Likewise.
52176
52177 2008-03-31  Bruno Haible  <bruno@clisp.org>
52178
52179         * tests/test-strtod.c (main): Don't use C99 syntax.
52180
52181 2008-03-31  Bruno Haible  <bruno@clisp.org>
52182
52183         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52184         Reported by Eric Blake.
52185
52186 2008-03-31  Jim Meyering  <meyering@redhat.com>
52187
52188         Don't compare actual signbit return values.
52189         * tests/test-strtod.c (main): Rather, compare only their
52190         zero/non-zero nature.
52191
52192 2008-03-31  Eric Blake  <ebb9@byu.net>
52193
52194         More strtod documentation.
52195         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52196         failures as distinct bugs.
52197
52198 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52201         Problem reported by Erik Benada in
52202         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52203
52204 2008-03-30  Bruno Haible  <bruno@clisp.org>
52205
52206         * tests/test-strtod.c: Add comments about which assertion fails on which
52207         platform.
52208         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52209
52210 2008-03-30  Eric Blake  <ebb9@byu.net>
52211
52212         Test signbit behavior on zeros.
52213         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52214         (test_signbitd, test_signbitl): Likewise.
52215
52216         More strtod touchups.
52217         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52218         sign of negative underflow, for now.  Use .5, not .1.
52219         * doc/posix-functions/strtod.texi (strtod): Mention these
52220         limitations.
52221         Reported by Jim Meyering.
52222
52223 2008-03-30  Bruno Haible  <bruno@clisp.org>
52224
52225         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52226         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52227
52228 2008-03-30  Bruno Haible  <bruno@clisp.org>
52229
52230         Avoid failure when attempting to return empty iconv results on some
52231         platforms.
52232         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52233         allocation, don't report ENOMEM when the resulting string is empty.
52234
52235 2008-03-30  Bruno Haible  <bruno@clisp.org>
52236
52237         Fix buffer overrun.
52238         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52239         Don't consider the width for tmp_length. Check count against tmp_length
52240         before doing the padding. Ensure enough allocation during padding.
52241
52242 2008-03-30  Eric Blake  <ebb9@byu.net>
52243
52244         strtod touchups.
52245         * lib/strtod.c (strtod): Avoid compiler warnings.
52246         Reported by Jim Meyering.
52247
52248 2008-03-30  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52251         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52252         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52253         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52254         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52255         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52256         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52257         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52258
52259         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52260         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52261         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52262         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52263         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52264         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52265         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52266         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52267
52268         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52269         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52270         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52271         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52272         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52273         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52274         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52275         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52276
52277         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52278         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52279
52280         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52281         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52282
52283         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52284         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52285
52286         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52288         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52289
52290         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52292         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52293
52294         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52296         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52297
52298         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52300         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52301
52302         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52303         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52305         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52306         (Depends-on): Add EOVERFLOW.
52307         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52308         (Depends-on): Add EOVERFLOW.
52309         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52310         (Depends-on): Add EOVERFLOW.
52311         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52312         (Depends-on): Add EOVERFLOW.
52313         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52314         (Depends-on): Add EOVERFLOW.
52315         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52316         (Depends-on): Add EOVERFLOW.
52317         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52318         (Depends-on): Add EOVERFLOW.
52319         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52320         (Depends-on): Add EOVERFLOW.
52321
52322         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52324         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52325
52326         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52328         * modules/snprintf (Depends-on): Add EOVERFLOW.
52329
52330         * lib/poll.c (EOVERFLOW): Remove fallback.
52331         * modules/poll (Depends-on): Add EOVERFLOW.
52332
52333         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52334         * modules/getugroups (Depends-on): Add EOVERFLOW.
52335
52336         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52337         * modules/getdelim (Depends-on): Add EOVERFLOW.
52338
52339         * lib/ftell.c (EOVERFLOW): Remove fallback.
52340         * modules/ftell (Depends-on): Add EOVERFLOW.
52341
52342         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52344         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52345
52346         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52347
52348         * modules/EOVERFLOW-tests: New file.
52349         * tests/test-EOVERFLOW.c: New file.
52350
52351         * modules/EOVERFLOW: New file.
52352         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52353
52354 2008-03-30  Bruno Haible  <bruno@clisp.org>
52355
52356         Fix bug introduced on 2007-06-10.
52357         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52358         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52359
52360 2008-03-30  Bruno Haible  <bruno@clisp.org>
52361
52362         Improve freadseek's efficiency after ungetc.
52363         * lib/freadseek.c: Include freadahead.h.
52364         (freadptrinc): New function, extracted from freadseek.
52365         (freadseek): Use it in a loop. Use freadahead to determine the number
52366         of loop iterations.
52367         * modules/freadseek (Depends-on): Add freadahead.
52368         (configure.ac): Require AC_C_INLINE.
52369
52370 2008-03-30  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/freadseek.c (freadseek): Don't ignore the return value of
52373         freadptr.
52374
52375 2008-03-29  Eric Blake  <ebb9@byu.net>
52376
52377         Add hex float support.
52378         * modules/strtod (Depends-on): Add c-ctype.
52379         (Link): Mention POW_LIB.
52380         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52381         whitespace between 'e' and exponent.
52382         * tests/test-strtod.c (main): Enable hex float tests.
52383         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52384         now provides.
52385
52386         Document various strtod bugs, with some fixes.
52387         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52388         "-0x", "inf", "nan", and hex constants.
52389         * doc/posix-functions/atof.texi (atof): Likewise.
52390         * modules/stdlib (Makefile.am): Support strtod.
52391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52392         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52393         detect additional strtod bugs.
52394         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52395         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52396         bool where appropriate.  Parse 'inf' and 'nan'.
52397         * tests/test-strtod.c: New file.
52398         * modules/strtod (Depends-on): Add stdbool, stdlib.
52399         (configure.ac): Turn on module indicator.
52400         * modules/strtod-tests: New module.
52401
52402 2008-03-29  Eric Blake  <ebb9@byu.net>
52403
52404         Fix ftell on mingw.
52405         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52406         * modules/ftell-tests (Depends-on): Add binary-io.
52407         * modules/ftello-tests (Depends-on): Likewise.
52408         * tests/test-ftell.c (main): Enhance test to cover behavior after
52409         ungetc.  Enforce binary mode.
52410         * tests/test-ftello.c (main): Likewise.
52411
52412         Pass test-freadseek on cygwin.
52413         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52414         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52415         ungetc buffer.
52416
52417         * tests/test-fflush2.c (main): Fix typo.
52418
52419 2008-03-29  Bruno Haible  <bruno@clisp.org>
52420
52421         * tests/test-fflush2.c (main): Temporarily disable the contents of
52422         this test.
52423         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52424         Reported by Eric Blake.
52425
52426 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52427
52428         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52429         (GC_SHA224_DIGEST_SIZE): Add.
52430
52431         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52432         (gc_hash_digest_length): Likewise.
52433         (gc_hash_buffer): Likewise.
52434
52435 2008-03-25  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52438         detail which gettext release to use.
52439         Reported by Simon Josefsson.
52440
52441 2008-03-26  Jim Meyering  <meyering@redhat.com>
52442
52443         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52444         * modules/gnumakefile (clean-GNUmakefile): Also, use
52445         test ... && ... || : syntax rather than if-then ... fi.
52446
52447         gnumakefile: Don't double-quote-expand $(VPATH) value.
52448         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52449
52450 2008-03-24  Eric Blake  <ebb9@byu.net>
52451
52452         Alter GNUmakefile to install into top directory.
52453         * modules/maintainer-makefile: Split, and add dependency...
52454         * modules/gnumakefile: to this new module.
52455         * build-aux/GNUmakefile: Move...
52456         * top/GNUmakefile: ...here.
52457         * build-aux/maint.mk: Move...
52458         * top/maint.mk: ...here.
52459         * MODULES.html.sh (Support for maintaining...): Document new
52460         module.
52461
52462 2008-03-23  Bruno Haible  <bruno@clisp.org>
52463
52464         * gnulib-tool: New options --vc-files, --no-vc-files.
52465         (func_usage): Document them.
52466         (vc_files): New variable.
52467         (func_import): Consider vc_files.
52468         (func_create_testdir): Set vc_files to empty.
52469         Suggested by Jim Meyering and Karl Berry.
52470
52471 2008-03-23  Bruno Haible  <bruno@clisp.org>
52472
52473         Fix regex compilation error on HP-UX 11.
52474         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52475         * modules/regex (Files): Add m4/mbstate_t.m4.
52476         Reported by Ton Voon <ton.voon@altinity.com>.
52477
52478 2008-03-23  Bruno Haible  <bruno@clisp.org>
52479
52480         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52481
52482 2008-03-23  Eric Blake  <ebb9@byu.net>
52483             Bruno Haible  <bruno@clisp.org>
52484
52485         Install files from top/ in the destination directory.
52486         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52487         augmentation also for the files from top/.
52488         (func_import, func_create_testdir): Rewrite file names:
52489         top/filename -> filename.
52490
52491 2008-03-23  Bruno Haible  <bruno@clisp.org>
52492
52493         Tweak "gnulib --version" output.
52494         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52495
52496 2008-03-23  Bruno Haible  <bruno@clisp.org>
52497
52498         Tweak "gnulib --version" output.
52499         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52500         rather than contents of ChangeLog, when possible.
52501
52502 2008-03-21  Eric Blake  <ebb9@byu.net>
52503
52504         More --version tweaks.
52505         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52506         date of last ChangeLog entry.
52507
52508 2008-03-21  Jim Meyering  <meyering@redhat.com>
52509
52510         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52511
52512 2008-03-20  Eric Blake  <ebb9@byu.net>
52513
52514         VPATH fix.
52515         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52516
52517 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52518
52519         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52520         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52521
52522 2008-03-20  Eric Blake  <ebb9@byu.net>
52523
52524         Sync GNUmakefile with coreutils.
52525         * build-aux/GNUmakefile (have-Makefile): Rename...
52526         (_have-Makefile): ...to this, for namespace consideration.
52527         (GNUmakefile.cfg): Include, if present.
52528         (_autoreconf): Define a default.
52529         (_is-dist-target): New rule for rebuilds to pick up intra-release
52530         version.
52531         (maint-cfg.mk): Rename...
52532         (cfg.mk): ...to this.
52533
52534 2008-03-18  Jim Meyering  <meyering@redhat.com>
52535
52536         New script and module: mktempd
52537         * MODULES.html.sh (maint+release support): Add mktempd.
52538         * build-aux/mktempd: New file.
52539         * modules/mktempd: New file.
52540
52541 2008-03-15  Jim Meyering  <meyering@redhat.com>
52542
52543         Undo last change.
52544         * lib/sha1.c, lib/md5.c: 63 != ~63.
52545         Reported by Andreas Schwab.
52546
52547         sha1.c, md5.c: Hoist a redundant expression.
52548         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52549         "ctx->buflen" only once, before calling *_process_block.
52550         * lib/md5.c (md5_process_bytes): Likewise.
52551
52552 2008-03-14  Eric Blake  <ebb9@byu.net>
52553
52554         Bump copyright year in files generated by gnulib-tool.
52555         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52556         gnulib-tool, rather than hard-coding it.
52557
52558         Fix 'gnulib-tool --version' output to work with git.
52559         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52560         (startup): ...here.
52561         (func_version): Use it to invoke git-version-gen, rather than
52562         relying on CVS keyword expansion.  Modernize wording.
52563         (cvsdatestamp, last_checkin_date, version): Kill unused
52564         variables.
52565
52566 2008-03-12  Jim Meyering  <meyering@redhat.com>
52567
52568         Recognize optional cast of the argument to free.
52569         * build-aux/useless-if-before-free: Update regexps.
52570
52571         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52572
52573 2008-03-11  Bruno Haible  <bruno@clisp.org>
52574
52575         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52576         by a single package.
52577         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52578         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52579         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52580         Reported by Sam Steingold <sds@gnu.org>.
52581
52582 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52583
52584         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52585         repositories.
52586
52587 2008-03-11  Bruno Haible  <bruno@clisp.org>
52588
52589         Avoid conflicts between local macro definitions.
52590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52591         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52592
52593 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52594             Bruno Haible  <bruno@clisp.org>
52595
52596         Make va_copy work with some version of xlc on AIX 5.1.
52597         * lib/stdarg.in.h: New file.
52598         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52599         On AIX, use a <stdarg.h> file substitute.
52600         * modules/stdarg (Files): Add lib/stdarg.in.h.
52601         (Depends-on): Add include_next.
52602         (Makefile.am): Build a stdarg.h substitute if requested.
52603         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52604
52605 2008-03-10  Bruno Haible  <bruno@clisp.org>
52606
52607         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52609         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52610
52611 2008-03-10  Bruno Haible  <bruno@clisp.org>
52612
52613         * modules/stdlib (Depends-on): Add include_next, remove
52614         absolute-header.
52615
52616 2008-03-09  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/freadahead.h (freadahead): Document more precisely.
52619         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52620         the sum of both buffer sizes.
52621         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52622         * NEWS: Document the change.
52623
52624 2008-03-09  Bruno Haible  <bruno@clisp.org>
52625
52626         Extend freadptr to return also the buffer size.
52627         * lib/freadptr.h (freadptr): Add sizep argument.
52628         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52629         (freadptr): Add sizep argument. Determine buffer size like freadahead
52630         does.
52631         * tests/test-freadptr.c: Don't include freadahead.h.
52632         (main): Adapt for new calling convention of freadptr.
52633         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52634         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52635         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52636         tests/test-freadptr2.sh.
52637         (Depends): Remove freadahead.
52638         (TESTS): Add test-freadptr2.sh.
52639         (check_PROGRAMS): Add test-freadptr2.
52640
52641 2008-03-09  Bruno Haible  <bruno@clisp.org>
52642
52643         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52644         Report and solution by Simon Josefsson.
52645
52646 2008-03-06  Bruno Haible  <bruno@clisp.org>
52647
52648         Make fflush after ungetc work on BSD platforms.
52649         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52650         * tests/test-fflush2.c: New file.
52651         * tests/test-fflush2.sh: New file.
52652         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52653         tests/test-fflush2.c.
52654         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52655         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52656
52657 2008-03-06  Eric Blake  <ebb9@byu.net>
52658
52659         Likewise for ftello.
52660         * modules/ftello (Dependencies): Add extensions.
52661         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52662
52663 2008-03-06  Bruno Haible  <bruno@clisp.org>
52664
52665         * modules/fseeko (Dependencies): Add extensions.
52666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52667         Needed on glibc systems.
52668
52669 2008-03-06  Bruno Haible  <bruno@clisp.org>
52670
52671         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52672         email address.
52673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52674
52675 2008-03-06  Bruno Haible  <bruno@clisp.org>
52676
52677         * users.txt: Add libgnupdf.
52678
52679 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52680
52681         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52682         (Header File Substitutes, Function Substitutes,
52683         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52684         (Build robot for gnulib): Fix typo.
52685
52686 2008-03-06  Bruno Haible  <bruno@clisp.org>
52687
52688         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52690
52691 2008-03-06  Bruno Haible  <bruno@clisp.org>
52692
52693         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52694         * doc/gnulib.texi: Include it.
52695
52696 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52697
52698         * modules/func (License): Change license to unlimited; there was
52699         no LGPL parts in the module anyway.
52700
52701 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52702
52703         * modules/__func__: Renamed to modules/func.
52704         * modules/__func__-tests: Renamed to modules/func-tests.
52705         * tests/test-__func__.c: Renamed to tests/test-func.c.
52706         * m4/__func__.m4: Renamed to m4/func.m4.
52707         * doc/gnulib.texi (__func__): Section renamed to func.
52708         Suggested by Eric Blake <ebb9@byu.net>.
52709
52710 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52711
52712         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52713         about __func__.  Make example self-contained.  Suggested by Eric
52714         Blake <ebb9@byu.net>.
52715
52716         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52717         Suggested by Eric Blake <ebb9@byu.net>.
52718
52719 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52720
52721         * modules/__func__: New file.
52722         * modules/__func__-tests: New file.
52723         * tests/test-__func__.c: New file.
52724         * m4/__func__.m4: New file.
52725         * doc/gnulib.texi (__func__): Document __func__ module.
52726
52727 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52728
52729         * modules/byteswap (License): Re-license as LGPLv2+.
52730
52731 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52732
52733         * doc/Makefile: Add pdf target.
52734
52735 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52736
52737         * modules/inline (License): Use 'unlimited', since there are only
52738         *.m4 files in this module.
52739
52740 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52741             Bruno Haible  <bruno@clisp.org>
52742
52743         Add support for HP C 7.1 on OpenVMS 8.3.
52744         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52745
52746 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52747
52748         Update VMS specifics.
52749         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52750
52751 2008-03-02  Jim Meyering  <meyering@redhat.com>
52752
52753         Remove the last dependency on the "free" module.
52754         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52755         Reported by Bob Proulx.
52756
52757         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52758
52759         Remove useless "if" tests before free.  Deprecate "free" module.
52760         * doc/posix-functions/free.texi: Mention that this
52761         module is no longer useful.
52762         * modules/free (Notice): Say this module is obsolete.
52763         * modules/readutmp (Depends-on): Remove free.
52764         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52765         * lib/putenv.c (putenv): Likewise.
52766         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52767         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52768         * tests/test-c-strcasestr.c (main): Likewise.
52769         * tests/test-c-strstr.c (main): Likewise.
52770         * tests/test-mbscasestr1.c (main): Likewise.
52771         * tests/test-mbscasestr2.c (main): Likewise.
52772         * tests/test-mbsstr1.c (main): Likewise.
52773         * tests/test-mbsstr2.c (main): Likewise.
52774         * tests/test-memmem.c (main): Likewise.
52775         * tests/test-strcasestr.c (main): Likewise.
52776         * tests/test-striconv.c (main): Likewise.
52777         * tests/test-striconveh.c (main): Likewise.
52778         * tests/test-striconveha.c (main): Likewise.
52779         * tests/test-strstr.c (main): Likewise.
52780
52781         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52782
52783         bootstrap: sync from coreutils again
52784         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52785
52786 2008-03-01  Jim Meyering  <meyering@redhat.com>
52787
52788         bootstrap: sync from coreutils
52789         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52790         also when the target doesn't exist.
52791
52792 2008-03-01  Eric Blake  <ebb9@byu.net>
52793
52794         Fix bugs in last patch.
52795         * lib/memchr2.c (memchr2): Fix typo.
52796         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52797         extension.
52798         Reported by Bruce Korb.
52799
52800         New module 'memchr2'.
52801         * modules/memchr2: New file.
52802         * modules/memchr2-tests: Likewise.
52803         * lib/memchr2.h: Likewise.
52804         * lib/memchr2.c: Likewise, based on memchr.c.
52805         * tests/test-memchr2.c: New test.
52806         * MODULES.html.sh (String handling): Add memchr2.
52807
52808 2008-02-29  Bruno Haible  <bruno@clisp.org>
52809
52810         * modules/freadseek-tests: New file.
52811         * tests/test-freadseek.sh: New file.
52812         * tests/test-freadseek.c: New file.
52813
52814         New module 'freadseek'.
52815         * modules/freadseek: New file.
52816         * lib/freadseek.h: New file.
52817         * lib/freadseek.c: New file.
52818         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52819
52820 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52821
52822         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52823         wydawca.
52824
52825         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52826         program_invocation_name and program_invocation_short_name are
52827         present.
52828
52829 2008-02-28  Bruno Haible  <bruno@clisp.org>
52830
52831         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52832         * tests/test-freadptr.sh: Also test non-seekable stdin.
52833
52834 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52835
52836         * build-aux/bootstrap (source_base, m4_base)
52837         (doc_base, tests_base): New variables.
52838         (gnulib_tool_options): Do not hardcode base directories, use
52839         the above variables instead.
52840
52841 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52842
52843         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52844
52845 2008-02-28  Bruno Haible  <bruno@clisp.org>
52846
52847         * modules/freadptr-tests: New file.
52848         * tests/test-freadptr.sh: New file.
52849         * tests/test-freadptr.c: New file.
52850
52851         New module 'freadptr'.
52852         * modules/freadptr: New file.
52853         * lib/freadptr.h: New file.
52854         * lib/freadptr.c: New file.
52855         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52856
52857 2008-02-26  Karl Berry  <karl@freefriends.org>
52858
52859         Sync from Libtool:
52860         * libltdl/argz.c (argz_add, argz_count): New functions.
52861         * libltdl/argz.in.h: Declare them.
52862         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52863
52864 2008-02-22  Bruno Haible  <bruno@clisp.org>
52865
52866         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52867         is a pointer type.  Needed for HP-UX 10.
52868         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52869         * doc/posix-functions/gmtime_r.texi: Likewise.
52870         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52871
52872 2008-02-24  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/environ-tests: New file.
52875         * tests/test-environ.c: New file.
52876
52877         New module 'environ'.
52878         * modules/environ: New file.
52879         * lib/unistd.in.h (environ): New declaration.
52880         * m4/environ.m4: New file.
52881         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52882         after use.
52883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52884         HAVE_DECL_ENVIRON.
52885         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52886         HAVE_DECL_ENVIRON.
52887         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52888         wrong claim that 'environ' is missing on some systems.
52889         * modules/execute (Depends-on): Add environ.
52890         * lib/execute.c (environ): Remove fallback declaration.
52891         * modules/pipe (Depends-on): Add environ.
52892         * lib/pipe.c (environ): Remove fallback declaration.
52893         * modules/setenv (Depends-on): Add environ.
52894         * lib/setenv.c (environ): Remove fallback declaration.
52895         * modules/unsetenv (Depends-on): Add environ.
52896         * lib/unsetenv.c (environ): Remove fallback declaration.
52897         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52898         m4/environ.m4.
52899         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52900         (gl_PREREQ_UNSETENV): Likewise.
52901
52902 2008-02-24  Bruno Haible  <bruno@clisp.org>
52903
52904         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52905
52906 2008-02-20  Bob Proulx  <bob@proulx.com>
52907
52908         Enable use of older two part flavor 'git describe'.
52909         * build-aux/git-version-gen: If using the older two part flavor of
52910         git version then recreate the third part now present in the
52911         newer three part flavor of git describe.
52912
52913 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52914
52915         * lib/fts.c (fts_build): Typo correction to comment.
52916
52917 2008-02-17  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52920         generating no-op conflicts.
52921
52922 2008-02-17  Bruno Haible  <bruno@clisp.org>
52923
52924         Speed up by 10%.
52925         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52926         result_entries, rather than an index-based loop.
52927
52928 2008-02-17  Bruno Haible  <bruno@clisp.org>
52929
52930         Speed up by 25%.
52931         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52932         'hashcode_cached'.
52933         (entry_create): New function.
52934         (entry_hashcode): Use the cached hashcode if possible.
52935         (read_changelog_file, try_split_merged_entry): Use entry_create.
52936
52937 2008-02-17  Bruno Haible  <bruno@clisp.org>
52938
52939         Speed up from O(n^2) to O(n) for long ChangeLog files.
52940         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52941         (read_changelog_file): Change implementation of entries_reversed list
52942         to rbtreehash.
52943         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52944
52945 2008-02-17  Bruno Haible  <bruno@clisp.org>
52946
52947         New option --split-merged-entry.
52948         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52949         (find_paragraph_end, try_split_merged_entry): New functions.
52950         (long_options): Add option --split-merged-entry.
52951         (usage): Document option --split-merged-entry.
52952         (main): Implement option --split-merged-entry.
52953         Reported by Eric Blake.
52954
52955 2008-02-17  Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/git-merge-changelog.c: Include c-strstr.h.
52958         (main): Support the "git pull --rebase" situation.
52959         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52960         Reported by Eric Blake.
52961
52962 2008-02-16  Eric Blake  <ebb9@byu.net>
52963
52964         Avoid doubling \ in common case of "c-maybe" quoting style.
52965         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52966         eliding outer quotes.
52967         * lib/quotearg.h: Document this.
52968         * tests/test-quotearg.c (result_strings, inputs, results_g)
52969         (flag_results, locale_results): Test it by adding a new string to
52970         each test group.
52971         (compare_strings): Test new string.
52972
52973 2008-02-13  Eric Blake  <ebb9@byu.net>
52974
52975         Avoid trigraph quoting in default output.
52976         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52977         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52978         unless explicitly requested.
52979         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52980
52981 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52982
52983         Don't rely on signed integer overflowing to negative value.
52984         * lib/getugroups.c (getugroups): Include <limits.h>.
52985         Instead, compare against INT_MAX, and increment only if the test passes.
52986
52987 2008-02-13  Jim Meyering  <meyering@redhat.com>
52988         and Eric Blake  <ebb9@byu.net>
52989
52990         Avoid shadowing warning and compile errors on Linux.
52991         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52992         forwarding macros on Linux.
52993         (dcgettext): Define a stub, for Linux.
52994         (results_g, main): Avoid warnings.
52995
52996 2008-02-12  Eric Blake  <ebb9@byu.net>
52997
52998         Silence warning in last patch.
52999         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53000
53001         Quotearg part 4: add tests, fix c-maybe colon quoting.
53002         * lib/quotearg.h: Improve documentation.
53003         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53004         escapes when adding outer quotes.  When quoting trigraphs, use
53005         valid C notation.  When quoting NUL, omit extra characters if next
53006         character is not digit.  Alter prototype.
53007         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53008         callers.
53009         * modules/quotearg-tests: New module.
53010         * tests/test-quotearg.c: New test.
53011
53012 2008-02-07  Eric Blake  <ebb9@byu.net>
53013
53014         Quotearg part 3: add flag to control outer quote elision.
53015         * lib/quotearg.h (c_maybe_quoting_style): New style.
53016         (enum quoting_flags): Better documentation of flags.
53017         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53018         c-maybe style.
53019         (quotearg_buffer_restyled): Handle new flag to elide outer
53020         quotes.
53021
53022         Quotearg part 2: add flag that can control NUL elision.
53023         * lib/quotearg.h (set_quoting_flags): New prototype.
53024         * lib/quotearg.c (struct quoting_options): Add flag field.
53025         (set_quoting_flags): New function.
53026         (quotearg_buffer_restyled): Add flags parameter.
53027         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53028         (quotearg_n_options): Set the flag, since length cannot be
53029         returned.
53030         (quoting_options_from_style): Default flags correctly.
53031
53032         Quotearg part 1: more wrappers, restore quotearg_char state.
53033         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53034         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53035         (quotearg_colon_mem): New wrappers.
53036         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53037         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53038         functions.
53039         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53040         (quotearg_colon_mem): New functions.
53041
53042 2008-02-11  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53045         library in the current directory: it does not work with parallel make.
53046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53047
53048 2008-02-11  Bruno Haible  <bruno@clisp.org>
53049
53050         * .gitattributes: New file.
53051
53052 2008-02-11  Jim Meyering  <meyering@redhat.com>
53053
53054         useless-if-before-free: Fix reversed exit values.
53055         * build-aux/useless-if-before-free: Use correct values
53056         for EXIT_MATCH and EXIT_NO_MATCH.
53057
53058         * build-aux/useless-if-before-free: Close stdout carefully.
53059
53060 2008-02-10  Bruno Haible  <bruno@clisp.org>
53061
53062         New module 'git-merge-changelog'.
53063         * modules/git-merge-changelog: New file.
53064         * lib/git-merge-changelog.c: New file.
53065
53066 2008-02-10  Jim Meyering  <meyering@redhat.com>
53067
53068         useless-if-before-free: New option: --list (-l).
53069
53070         useless-if-before-free: Don't exit immediately upon open failure.
53071         * build-aux/useless-if-before-free: Exit 2 for errors.
53072         Upon failure to open a file, don't exit immediately.
53073         Rather, just warn and continue with any remaining files.
53074
53075 2008-02-10  Bruno Haible  <bruno@clisp.org>
53076
53077         New abstract list operation 'node_set_value'.
53078         * lib/gl_list.h (gl_list_node_set_value): New function.
53079         (struct gl_list_implementation): New field node_set_value.
53080         * lib/gl_list.c (gl_list_node_set_value): New function.
53081         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53082         (gl_array_list_implementation): Update.
53083         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53084         (gl_carray_list_implementation): Update.
53085         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53086         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53087         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53088         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53089         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53090         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53091         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53092         Update.
53093         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53094         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53095         (gl_sublist_list_implementation): Update.
53096
53097 2008-02-10  Bruno Haible  <bruno@clisp.org>
53098
53099         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53100         Needed when ELEMENT is #defined to 'some_type *'.
53101
53102 2008-02-10  Jim Meyering  <meyering@redhat.com>
53103
53104         New script and module: useless-if-before-free
53105         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53106         * build-aux/useless-if-before-free: New file.
53107         * modules/useless-if-before-free: New file.
53108
53109         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53110
53111         xstrtol_error: Fix typo.
53112         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53113         s/exit_failure/exit_status/.
53114
53115 2008-02-09  Jim Meyering  <meyering@redhat.com>
53116
53117         New script and module: gitlog-to-changelog
53118         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53119         * modules/gitlog-to-changelog: New file.
53120         * build-aux/gitlog-to-changelog: New file.
53121
53122 2008-02-08  Jim Meyering  <meyering@redhat.com>
53123
53124         Avoid two "parameter unused" warnings.
53125         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53126         Mark "st" as used.
53127
53128         Use "git COMMAND", not "git-COMMAND".
53129         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53130         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53131         * build-aux/git-version-gen: Use "git status", not "git-status".
53132
53133 2008-02-07  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53136         Avoids a crash on Windows Vista.
53137         Reported by Adam Strzelecki <ono@java.pl> via
53138         Simon Josefsson <simon@josefsson.org>.
53139
53140 2008-02-06  Bruno Haible  <bruno@clisp.org>
53141
53142         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53143         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53144         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53146         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53148         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53149         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53157         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53158         left-adjust flag.
53159         * tests/test-snprintf-posix.h (test_function): Likewise.
53160         * tests/test-sprintf-posix.h (test_function): Likewise.
53161         * tests/test-vasprintf-posix.c (test_function): Likewise.
53162         * doc/posix-functions/fprintf.texi: Update.
53163         * doc/posix-functions/printf.texi: Update.
53164         * doc/posix-functions/snprintf.texi: Update.
53165         * doc/posix-functions/sprintf.texi: Update.
53166         * doc/posix-functions/vfprintf.texi: Update.
53167         * doc/posix-functions/vprintf.texi: Update.
53168         * doc/posix-functions/vsnprintf.texi: Update.
53169         * doc/posix-functions/vsprintf.texi: Update.
53170         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53171
53172 2008-02-06  Bruno Haible  <bruno@clisp.org>
53173
53174         Fix bug introduced on 2008-01-26.
53175         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53176
53177 2008-02-06  Bruno Haible  <bruno@clisp.org>
53178
53179         Fix bug introduced on 2007-06-10.
53180         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53181         !NEED_PRINTF_FLAG_ZERO.
53182
53183 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53184
53185         getloadavg: use libperfstat on AIX5
53186         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53187
53188 2008-02-03  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/diffseq.h: Add comments about required #includes.
53191         Reported by Michael Biggs <gnulib@doubleplum.net>.
53192
53193 2008-02-01  Bruno Haible  <bruno@clisp.org>
53194
53195         * users.txt: Add gnuit.
53196
53197 2008-01-31  Bruno Haible  <bruno@clisp.org>
53198
53199         * lib/md4.c (set_uint32): Mark as inline.
53200         * lib/md5.c (set_uint32): Likewise.
53201         * lib/sha1.c (set_uint32): Likewise.
53202         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53203         * m4/md5.m4 (gl_MD5): Likewise.
53204         * m4/sha1.m4 (gl_SHA1): Likewise.
53205
53206 2008-01-31  Jim Meyering  <meyering@redhat.com>
53207
53208         Use "sizeof VAR", rather than a literal "4".
53209         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53210         * lib/md4.c (md4_read_ctx): Likewise.
53211         * lib/sha1.c (sha1_read_ctx): Likewise.
53212
53213 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53214
53215         * tests/test-sha1.c: New file, based on test-md5.c.
53216
53217         * modules/crypto/sha1-tests: New file.
53218
53219 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53220
53221         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53222
53223 2008-01-31  Jim Meyering  <meyering@redhat.com>
53224
53225         Prefer "sizeof v" over the equivalent "4".
53226         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53227         * lib/md5.c (set_uint32): Likewise.
53228         * lib/sha1.c (set_uint32): Likewise.
53229
53230 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53231
53232         * lib/sha1.c (set_uint32): Mark function as static.
53233
53234 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53235
53236         md2: clarify comments to say that alignment is not required.
53237         * lib/md2.h: Remove warning about alignment in comment.
53238         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53239         never been required.
53240
53241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53242
53243         md4: adapt alignment constraint fix from sha1.
53244         * lib/md4.c (set_uint32): New function, from sha1.c
53245         (md4_read_ctx): Use it.
53246         (md4_finish_ctx): Doc fix.
53247         * lib/md4.h: Doc fix.
53248
53249 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53250
53251         md5: adapt alignment constraint fix from sha1.
53252         * lib/md5.c (set_uint32): New function, from sha1.c
53253         (md5_read_ctx): Use it.
53254         (md5_finish_ctx): Doc fix.
53255         * lib/md5.h: Doc fix.
53256
53257 2008-01-30  Peter Palfrader  <weasel@debian.org>
53258
53259         sha1: remove the result buffer alignment constraint
53260         * lib/sha1.c (set_uint32): New function.
53261         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53262         constraint.
53263         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53264         * lib/sha1.h: Likewise.
53265
53266 2008-01-30  Andreas Schwab  <schwab@suse.de>
53267             Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53270         correct definition of LDBL_MIN_EXP.
53271
53272 2008-01-30  Karl Berry  <karl@gnu.org>
53273
53274         * config/srclist-update: try to preserve x bit on updates.
53275         * config/srclistvars.sh: update for karl.
53276
53277 2008-01-29  Jim Meyering  <meyering@redhat.com>
53278
53279         vasnprintf.c: Avoid warning about unused label
53280         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53281         "overflow" label definition and associated code with the
53282         same cpp condition that guards the sole use of that label.
53283
53284 2008-01-26  Bruno Haible  <bruno@clisp.org>
53285
53286         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53287         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53288         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53289         * lib/isnanl-nolibm.h (isnanl): Likewise.
53290         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53291
53292 2008-01-26  Bruno Haible  <bruno@clisp.org>
53293
53294         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53295         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53296
53297 2008-01-26  Bruno Haible  <bruno@clisp.org>
53298
53299         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53300         GCC >= 4.0 built-in.
53301         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53302
53303 2008-01-26  Bruno Haible  <bruno@clisp.org>
53304
53305         Rename isnan, applicable to 'double' only, to isnand.
53306         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53307         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53308         (configure.ac): Update.
53309         (Include): Replace "isnan.h" with "isnand.h".
53310         * m4/isnand.m4: Renamed from m4/isnan.m4.
53311         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53312         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53313         instead of isnan.c.
53314         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53315         instead of HAVE_ISNAN_IN_LIBC.
53316         (isnand): Renamed from isnan.
53317         * lib/isnand.c: New file.
53318         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53319         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53320         (Makefile.am): Update.
53321         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53322         Include isnand.h instead of isnan.h.
53323         (main): Test isnand instead of isnan.
53324         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53325         isnan-nolibm.
53326         * modules/frexp (Depends-on): Likewise.
53327         * modules/frexp-tests (Depends-on): Likewise.
53328         * modules/frexp-nolibm (Depends-on): Likewise.
53329         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53330         * modules/isfinite (Depends-on): Likewise.
53331         * modules/round-tests (Depends-on): Likewise.
53332         * modules/signbit (Depends-on): Likewise.
53333         * modules/signbit-tests (Depends-on): Likewise.
53334         * modules/snprintf-posix (Depends-on): Likewise.
53335         * modules/sprintf-posix (Depends-on): Likewise.
53336         * modules/trunc-tests (Depends-on): Likewise.
53337         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53339         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53340         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53341         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53344         * modules/vasnprintf-posix (Depends-on): Likewise.
53345         * modules/vasprintf-posix (Depends-on): Likewise.
53346         * modules/vfprintf-posix (Depends-on): Likewise.
53347         * modules/vsnprintf-posix (Depends-on): Likewise.
53348         * modules/vsprintf-posix (Depends-on): Likewise.
53349         * lib/frexp.c: Include isnand.h instead of isnan.h.
53350         (ISNAN): Set to isnand instead of isnan.
53351         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53352         (gl_isfinited): Use isnand instead of isnan.
53353         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53354         (gl_signbitd): Use isnand instead of isnan.
53355         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53356         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53357         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53358         (main): Use isnand instead of isnan.
53359         * tests/test-round1.c: Include isnand.h.
53360         (main): Use isnand instead of isnan.
53361         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53362         (ISNAN): Set to isnand instead of isnan.
53363         * tests/test-trunc1.c: Include isnand.h.
53364         (main): Use isnand instead of isnan.
53365         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53366         (equal): Use isnand instead of isnan.
53367         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53368         isnand-nolibm.
53369         * NEWS: Mention the change.
53370
53371 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53372             Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53375         the GCC builtins for signbits are present and set
53376         REPLACE_SIGNBIT_USING_GCC if so.
53377         * lib/math.in.h (signbit): Define using GCC builtins if
53378         REPLACE_SIGNBIT_USING_GCC is set.
53379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53380         REPLACE_SIGNBIT_USING_GCC.
53381         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53382
53383 2008-01-25  Jim Meyering  <meyering@redhat.com>
53384
53385         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53386         * lib/poll.c: Include <config.h>, not "config.h".
53387         * tests/test-getaddrinfo.c: Likewise.
53388
53389 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53390
53391         * modules/sockets-tests: New file.
53392
53393 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53394
53395         * modules/sockets: New module, can be used to call WSA_Startup and
53396         WSA_Cleanup when needed.
53397
53398         * lib/sockets.h, lib/sockets.c: New files.
53399
53400         * m4/sockets.m4: New file.
53401
53402         * tests/test-sockets.c: New file.
53403
53404 2008-01-19  Bruno Haible  <bruno@clisp.org>
53405
53406         * doc/posix-headers: Renamed from doc/headers.
53407         * doc/posix-functions: Renamed from doc/functions.
53408         * doc/gnulib.texi: Update.
53409
53410 2008-01-19  Bruno Haible  <bruno@clisp.org>
53411
53412         * doc/glibc-functions/strcasestr.texi: Include contents of
53413         doc/functions/strcasestr.texi, fixing the list of platforms.
53414         * doc/functions/strcasestr.texi: Remove file.
53415
53416 2008-01-19  Bruno Haible  <bruno@clisp.org>
53417
53418         * doc/glibc-functions/memmem.texi: Include contents of
53419         doc/functions/memmem.texi.
53420         * doc/functions/memmem.texi: Remove file.
53421
53422 2008-01-18  Bruno Haible  <bruno@clisp.org>
53423
53424         * doc/glibc-functions/*.texi: New files.
53425         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53426         to use the new files.
53427
53428 2008-01-17  Bruno Haible  <bruno@clisp.org>
53429
53430         * tests/test-gethostname.c (main): Fix printf statement.
53431
53432 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53433
53434         * modules/gethostname-tests: New file.
53435
53436         * tests/test-gethostname.c: New file.
53437
53438 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53439
53440         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53441         used by the UNAME case.  Reported by Bruno Haible
53442         <bruno@clisp.org>.
53443
53444 2008-01-17  Eric Blake  <ebb9@byu.net>
53445
53446         Convert c-strcasestr to be more efficient.
53447         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53448         (Depends-on): Add c-strcase, remove malloca, strnlen.
53449         * tests/test-c-strcasestr.c (main): Enhance test.
53450         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53451
53452 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53453
53454         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53455         Use it in creating po/Makevars.
53456
53457 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53458
53459         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53460         Applications that requires it should initialize libgcrypt
53461         manually.
53462
53463 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53464
53465         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53466
53467 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         Fix problem with getdate on mingw32 reported by Simon Josefsson
53470         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53471         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53472         tzname", when deciding whether to declare tzname.
53473         * lib/strftime.c (tzname): Likewise.
53474
53475 2008-01-15  Bruno Haible  <bruno@clisp.org>
53476
53477         Work around a MacOS X 10.5 bug in frexpl().
53478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53479         * doc/functions/frexpl.texi: Document the bug.
53480         Reported by Elias Pipping <pipping@gentoo.org>.
53481
53482 2008-01-14  Eric Blake  <ebb9@byu.net>
53483
53484         Touch up previous patch.
53485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53486         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53487
53488         Convert strcasestr module to use Two-Way algorithm.
53489         * modules/strcasestr-simple: New module, based on the old
53490         strcasestr, but with Two-Way rather than KMP.
53491         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53492         * lib/string.in.h (rpl_strcasestr): Declare.
53493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53494         performance.
53495         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53496         * modules/string (Makefile.am): Support strcasestr.
53497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53498         * modules/strcasestr-tests (Depends-on): Check for alarm.
53499         * tests/test-strcasestr.c: Augment test.
53500         * lib/str-two-way.h: Clean up stray macro.
53501         * NEWS: Document new module.
53502         * MODULES.html.sh (string handling): Likewise.
53503         * doc/functions/strcasestr.texi: New file.
53504         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53505         here, since it is not a POSIX function.
53506
53507 2008-01-14  Colin Watson  <cjwatson@debian.org>
53508             Bruno Haible  <bruno@clisp.org>
53509
53510         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53511         works fine; if not, set REPLACE_STRSIGNAL.
53512         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53514         REPLACE_STRSIGNAL.
53515         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53516         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53517         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53518
53519 2008-01-14  Bruno Haible  <bruno@clisp.org>
53520
53521         * modules/strsignal (Include): Change to <string.h>.
53522
53523 2008-01-14  Colin Watson  <cjwatson@debian.org>
53524
53525         * modules/argp (Notice): Add a notice recommending to change
53526         XGETTEXT_OPTIONS.
53527         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53528
53529 2008-01-13  Colin Watson  <cjwatson@debian.org>
53530
53531         * modules/strsignal-tests: New file.
53532         * tests/test-strsignal.c: New file.
53533
53534         * lib/strsignal.c: New file, from glibc with modifications.
53535         * lib/siglist.h: New file, from glibc with modifications.
53536         * lib/string.in.h (strsignal): New declaration.
53537         * m4/strsignal.m4: New file.
53538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53539         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53540         * modules/strsignal: New file.
53541         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53542         HAVE_DECL_STRSIGNAL.
53543
53544 2008-01-13  Bruno Haible  <bruno@clisp.org>
53545
53546         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53547         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53548         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53550
53551 2008-01-13  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53554         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53555         * lib/argp.h (__attribute__): Likewise.
53556         * lib/c-stack.c (__attribute__): Likewise.
53557         * lib/error.h (__attribute__): Likewise.
53558         * lib/fts.c (__attribute__): Likewise.
53559         * lib/openat.h (__attribute__): Likewise.
53560         * lib/stdio.in.h (__attribute__): Likewise.
53561         * lib/string.in.h (__attribute__): Likewise.
53562         * lib/utimens.c (__attribute__): Likewise.
53563         * lib/vasnprintf.h (__attribute__): Likewise.
53564         * lib/xalloc.h (__attribute__): Likewise.
53565         * lib/xprintf.h (__attribute__): Likewise.
53566         * lib/xstrtol.h (__attribute__): Likewise.
53567         * lib/xvasprintf.h (__attribute__): Likewise.
53568
53569 2008-01-12  Bruno Haible  <bruno@clisp.org>
53570
53571         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53572         * doc/glibc-headers/a.out.texi: New file.
53573         * doc/glibc-headers/aliases.texi: New file.
53574         * doc/glibc-headers/alloca.texi: New file.
53575         * doc/glibc-headers/ar.texi: New file.
53576         * doc/glibc-headers/argp.texi: New file.
53577         * doc/glibc-headers/argz.texi: New file.
53578         * doc/glibc-headers/byteswap.texi: New file.
53579         * doc/glibc-headers/crypt.texi: New file.
53580         * doc/glibc-headers/endian.texi: New file.
53581         * doc/glibc-headers/envz.texi: New file.
53582         * doc/glibc-headers/err.texi: New file.
53583         * doc/glibc-headers/error.texi: New file.
53584         * doc/glibc-headers/execinfo.texi: New file.
53585         * doc/glibc-headers/fpu_control.texi: New file.
53586         * doc/glibc-headers/fstab.texi: New file.
53587         * doc/glibc-headers/fts.texi: New file.
53588         * doc/glibc-headers/getopt.texi: New file.
53589         * doc/glibc-headers/ieee754.texi: New file.
53590         * doc/glibc-headers/ifaddrs.texi: New file.
53591         * doc/glibc-headers/libintl.texi: New file.
53592         * doc/glibc-headers/mcheck.texi: New file.
53593         * doc/glibc-headers/mntent.texi: New file.
53594         * doc/glibc-headers/obstack.texi: New file.
53595         * doc/glibc-headers/paths.texi: New file.
53596         * doc/glibc-headers/printf.texi: New file.
53597         * doc/glibc-headers/pty.texi: New file.
53598         * doc/glibc-headers/resolv.texi: New file.
53599         * doc/glibc-headers/shadow.texi: New file.
53600         * doc/glibc-headers/sysexits.texi: New file.
53601         * doc/glibc-headers/ttyent.texi: New file.
53602
53603 2008-01-12  Jim Meyering  <meyering@redhat.com>
53604
53605         announce-gen: emit Gnulib's git-based version string.
53606         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53607         New option --gnulib-version=V, where V is expected to be
53608         the output of running git describe in the gnulib directory.
53609         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53610         not useful, and plan to stop publishing an xdelta file with each
53611         coreutils release.
53612
53613         * build-aux/announce-gen: Also check for lzma-compressed files.
53614
53615 2008-01-11  Bruno Haible  <bruno@clisp.org>
53616
53617         * tests/test-memmem.c (main): Increase maximum allowed time.
53618         * tests/test-strstr.c (main): Likewise.
53619
53620 2008-01-11  Bruno Haible  <bruno@clisp.org>
53621
53622         * doc/functions/memmem.texi: Add more precisions about platforms.
53623         * doc/functions/strstr.texi: Likewise.
53624
53625 2008-01-10  Eric Blake  <ebb9@byu.net>
53626
53627         * m4/strstr.m4: Delete cruft from copy-n-paste.
53628         Reported by Bruno Haible.
53629
53630 2008-01-10  Bruno Haible  <bruno@clisp.org>
53631
53632         Make c-strstr rely on strstr.
53633         * lib/c-strstr.c: Don't include str-kmp.h.
53634         (c_strstr): Define in terms of strstr.
53635         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53636         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53637
53638 2008-01-10  Bruno Haible  <bruno@clisp.org>
53639
53640         * doc/gnulib.texi (String Functions in C Locale): New section.
53641         * doc/c-ctype.texi: New file.
53642         * doc/c-strcase.texi: New file.
53643         * doc/c-strcaseeq.texi: New file.
53644         * doc/c-strcasestr.texi: New file.
53645         * doc/c-strstr.texi: New file.
53646         * doc/c-strtod.texi: New file.
53647         * doc/c-strtold.texi: New file.
53648
53649 2008-01-10  Eric Blake  <ebb9@byu.net>
53650
53651         * lib/relocatable.h: Fix a comment.
53652
53653 2008-01-10  Eric Blake  <ebb9@byu.net>
53654
53655         Share two-way algorithm.
53656         * lib/str-two-way.h: New file, merged from...
53657         * lib/memmem.c: ...here...
53658         * lib/strstr.c: ...and here.
53659         * modules/memmem (Files): Use it.
53660         * modules/strstr (Files): Likewise.
53661
53662         Avoid quadratic strstr implementations.
53663         * lib/strstr.c: New file.
53664         * m4/strstr.m4: Likewise.
53665         * modules/strstr: Likewise.
53666         * modules/strstr-tests: Likewise.
53667         * tests/test-strstr.c: Likewise.
53668         * lib/string.in.h (rpl_strstr): Declare.
53669         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53671         * modules/string (Makefile.am): Likewise.
53672         * MODULES.html.sh (string handling): Mention new module.
53673         * doc/functions/strstr.texi (strstr): Document the bug.
53674
53675 2008-01-10  Bruno Haible  <bruno@clisp.org>
53676
53677         * lib/relocatable.h (relocate): State whether result is freshly
53678         allocated or not.
53679         * lib/relocatable.c (relocate): Return a freshly allocated string
53680         instead of a pointer to a privately held string.
53681         Reported by Sylvain Beucler <beuc@gnu.org>.
53682
53683 2008-01-10  Colin Watson  <cjwatson@debian.org>
53684
53685         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53686         s/S_ISNLK/S_ISLNK/.
53687
53688 2008-01-09  Bruno Haible  <bruno@clisp.org>
53689
53690         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53691         and other files.
53692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53693         if it's only a guess.
53694         * modules/memmem: Simplify by depending on memmem-simple.
53695
53696 2008-01-09  Bruno Haible  <bruno@clisp.org>
53697
53698         Work around OpenBSD 4.0 tdelete() bug.
53699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53700         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53701         macros and don't redefine the enum values.
53702         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53703         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53704         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53705
53706 2008-01-09  Bruno Haible  <bruno@clisp.org>
53707
53708         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53709         (main): Don't perform the tests if setlocale did not install a UTF-8
53710         locale. Needed on OpenBSD 4.0.
53711         * modules/wcwidth-tests (Depends-on): Add localcharset.
53712
53713 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53716         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53717         * NEWS: announce this.
53718         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53719
53720 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53721         and Eric Blake  <ebb9@byu.net>
53722
53723         Add memmem-simple module.
53724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53725         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53726         * modules/memmem-simple: New file.
53727         * modules/memmem (Description): Tweak.
53728         * MODULES.html.sh (string handling): Mention new module.
53729         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53730         addressed by memmem-simple.
53731         * NEWS: Document the difference.
53732
53733 2008-01-09  Eric Blake  <ebb9@byu.net>
53734
53735         Give gcc some memmem optimization hints.
53736         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53737         (strcasestr): Declare as pure.
53738         * modules/memmem (Maintainer): Claim my implementation.
53739
53740 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53741
53742         Support AIX 6.1 and higher.
53743         * build-aux/config.libpath: Likewise.
53744         * build-aux/config.rpath: Likewise.
53745
53746 2008-01-08  Jim Meyering  <meyering@redhat.com>
53747             Bruno Haible  <bruno@clisp.org>
53748
53749         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53750         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53751         Reported by Peter Fales in
53752         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53753
53754 2008-01-08  Bruno Haible  <bruno@clisp.org>
53755
53756         * modules/unictype/category-of (Depends-on): Add
53757         unictype/category-none.
53758         * modules/unictype/category-and-tests (Depends-on): Add
53759         unictype/category-{L,N,Lu,Nd}.
53760         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53761         * modules/unictype/category-or-tests (Depends-on): Add
53762         unictype/category-{L,N}.
53763         * modules/unictype/category-name-tests (Depends-on): Add
53764         unictype/category-{Z,Nl}.
53765         Reported by Simon Josefsson.
53766
53767 2008-01-08  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53770         convention better.
53771         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53772         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53773         Reported by Peter Miller <millerp@canb.auug.org.au>.
53774
53775 2008-01-08  Eric Blake  <ebb9@byu.net>
53776
53777         Rewrite memmem to guarantee linear complexity without malloc.
53778         * lib/memmem.c (memmem): Use Two-Way rather than
53779         Knuth-Morris-Pratt, to allow O(1) space usage.
53780         (critical_factorization, two_way_short_needle)
53781         (two_way_long_needle): New functions.
53782         (knuth_morris_pratt): Delete.
53783         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53784         Add stdint.
53785         * tests/test-memmem.c (main): Add tests for periodic needle and
53786         sublinear performance.
53787         * doc/functions/memmem.texi (memmem): Document other deficiencies
53788         in cygwin and older glibc.
53789
53790 2008-01-08  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53793         augmentation.
53794
53795 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53796
53797         Add a configure time option: --disable-acl.
53798         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53799         AC_ARG_ENABLE(acl).
53800
53801 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53802
53803         * tests/test-localename.c: Don't include obsolete "setenv.h".
53804
53805         * modules/localename-tests (Depends-on): Need unsetenv.
53806
53807 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53808
53809         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53810
53811 2008-01-06  Colin Watson  <cjwatson@debian.org>
53812
53813         * users.txt: Add man-db.
53814
53815 2008-01-07  Bruno Haible  <bruno@clisp.org>
53816
53817         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53818         previous section name.
53819
53820 2008-01-07  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/progname.c (set_program_name): Don't strip off a leading
53823         "lt-" prefix outside a .libs directory.
53824         Suggested by Paul Eggert.
53825
53826 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53827             Bruno Haible  <bruno@clisp.org>
53828
53829         Improve memory cleanup in 'relocatable' module.
53830         * lib/relocatable.h (compute_curr_prefix): Change return type to
53831         'char *'.
53832         * lib/relocatable.c (compute_curr_prefix): Change return type to
53833         'char *'. Free curr_installdir after use.
53834         (relocate): Free curr_prefix_better after use.
53835         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53836
53837 2008-01-01  Bruno Haible  <bruno@clisp.org>
53838
53839         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53840         failure on older glibc systems.
53841         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53842
53843 2008-01-05  Eric Blake  <ebb9@byu.net>
53844
53845         Avoid quadratic system memmem.
53846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53847         Reported by Ralf Wildenhues.
53848
53849         Fix memmem test for mingw.
53850         * modules/memmem-tests (configure.ac): Check for alarm.
53851         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53852         it.
53853         * doc/functions/memmem.texi: New file.
53854         * doc/gnulib.texi (Function Substitutes): Add memmem.
53855         Reported by Bruno Haible.
53856
53857 2008-01-04  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53860         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53861         gl_HEADER_STRING_H_DEFAULTS.
53862
53863 2008-01-04  Eric Blake  <ebb9@byu.net>
53864
53865         Shorten duration of memmem test.
53866         * tests/test-memmem.c (main): Use alarm to declare failure if test
53867         is taking too long.
53868         Reported by Ralf Wildenhues.
53869
53870 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53871
53872         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53873         string, needed by strerror.
53874
53875 2008-01-03  Colin Watson  <cjwatson@debian.org>
53876             Bruno Haible  <bruno@clisp.org>
53877
53878         * doc/gnulib-tool.texi (Localization): New section.
53879
53880 2008-01-02  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53883         variables to 'unsigned char *' type.
53884         Reported by Paul Eggert.
53885
53886 2008-01-02  Jim Meyering  <jim@meyering.net>
53887
53888         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53889
53890 2007-12-31  Jim Meyering  <jim@meyering.net>
53891
53892         Avoid use of private FTS type name.
53893         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53894
53895 2007-12-30  Karl Berry  <karl@gnu.org>
53896
53897         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53898         work around defect in Texinfo and/or the standalone Info browser.
53899
53900 2007-12-30  Bruno Haible  <bruno@clisp.org>
53901
53902         Unify 5 copies of the KMP code.
53903         * lib/str-kmp.h: New file.
53904         * lib/c-strcasestr.c: Include str-kmp.h.
53905         (knuth_morris_pratt): Remove function.
53906         (c_strcasestr): Update.
53907         * lib/c-strstr.c: Include str-kmp.h.
53908         (knuth_morris_pratt): Remove function.
53909         (c_strcasestr): Update.
53910         * lib/mbscasestr.c: Include str-kmp.h.
53911         (knuth_morris_pratt_unibyte): Remove function.
53912         * lib/mbsstr.c: Include str-kmp.h.
53913         (knuth_morris_pratt_unibyte): Remove function.
53914         * lib/strcasestr.c: Include str-kmp.h.
53915         (knuth_morris_pratt): Remove function.
53916         (strcasestr): Update.
53917         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53918         * modules/c-strstr (Files): Likewise.
53919         * modules/mbscasestr (Files): Likewise.
53920         * modules/mbsstr (Files): Likewise.
53921         * modules/strcasestr (Files): Likewise.
53922         Suggested by Paul Eggert.
53923
53924 2007-12-30  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53927         defined.
53928
53929 2007-12-30  Bruno Haible  <bruno@clisp.org>
53930
53931         * lib/xmalloca.h: Include xalloc.h.
53932         (xnmalloca): New macro.
53933
53934 2007-12-30  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/malloca.h (nmalloca): New macro.
53937         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53938         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53939         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53940         knuth_morris_pratt_multibyte): Likewise.
53941         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53942         knuth_morris_pratt_multibyte): Likewise.
53943         * lib/memmem.c (knuth_morris_pratt): Likewise.
53944         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53945
53946 2007-12-25  Bruno Haible  <bruno@clisp.org>
53947
53948         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53949         * lib/glob.c: Don't include openat.h.
53950         (link_exists2_p): Add back the code that deals with the
53951         !GLOB_ALTDIRFUNC case.
53952         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53953         let it do the filename concatenation.
53954         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53955         * modules/glob (Depends-on): Remove openat.
53956
53957 2007-12-31  Bruno Haible  <bruno@clisp.org>
53958
53959         * modules/dirfd (License): Change to LGPLv2+.
53960         Approved by Jim Meyering.
53961
53962 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53965         when multiplying M by sizeof (size_t).
53966
53967 2007-12-10  Martin Lambers  <marlam@marlam.de>
53968
53969         Override getpagesize on mingw.
53970         * lib/getpagesize.c: New file.
53971         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53972         * modules/getpagesize (Files): Add lib/getpagesize.c.
53973         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53975         REPLACE_GETPAGESIZE.
53976         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53977
53978 2007-12-25  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/localcharset (Notice): New field.
53981         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53982         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53983
53984 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53985             Bruno Haible  <bruno@clisp.org>
53986
53987         Avoid using the syntax symbol() in formatted documentation.
53988         * MODULES.html.sh (func_module): When replacing symbol() with a
53989         hyperlink, remove the parentheses. Show an error if some remain.
53990         Recognize and render the '...' syntax.
53991         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53992         Rework. Add paragraph about GCC's inlining.
53993         * doc/alloca.texi: Likewise.
53994         * doc/error.texi: Remove parentheses from symbol reference.
53995         * doc/gnulib-intro.texi: Likewise.
53996         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53997         * modules/fnmatch (Description): Reword to say "the ... function".
53998         * modules/full-read (Description): Likewise.
53999         * modules/full-write (Description): Likewise.
54000         * modules/safe-read (Description): Likewise.
54001         * modules/safe-write (Description): Likewise.
54002         * modules/strchrnul (Description): Likewise.
54003         * modules/trim (Description): Likewise.
54004         * modules/error (Description): Remove parentheses from symbol
54005         references.
54006         * modules/verror (Description): Likewise.
54007         Reported by Karl Berry.
54008
54009 2007-12-25  Bruno Haible  <bruno@clisp.org>
54010
54011         Fixup after 2007-10-16 commit.
54012         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54013
54014 2007-12-24  Bruno Haible  <bruno@clisp.org>
54015
54016         Make --enable-relocatable work with DESTDIR.
54017         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54018         to compute installdir from destprog.
54019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54020         also set the RELOC_DESTDIR variable.
54021         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54022
54023 2007-12-24  Bruno Haible  <bruno@clisp.org>
54024
54025         Fix link error due to xalloc_die().
54026         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54027         of xreadlink.
54028         * lib/relocwrapper.c: Update comments.
54029         * build-aux/install-reloc: Remove xreadlink.c from file list.
54030         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54031         xreadlink.c.
54032         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54033
54034 2007-12-24  Bruno Haible  <bruno@clisp.org>
54035
54036         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54037         * lib/setenv.h: Remove file.
54038         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54039         lib/setenv.h.
54040         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54041         (Depends-on): Add stdlib.
54042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54043         gl_FUNC_UNSETENV.
54044         (Include): Replace setenv.h with <stdlib.h>.
54045         * modules/unsetenv: New file.
54046         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54047         * lib/unsetenv.c: Include <stdlib.h> first.
54048         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54049         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54050         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54051         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54052         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54053         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54055         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54056         * doc/functions/unsetenv.texi: Update.
54057         * modules/xsetenv (Depends-on): Add unsetenv.
54058         * modules/getdate (Depends-on): Likewise.
54059         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54060         * lib/xsetenv.c: Don't include setenv.h.
54061         * lib/getdate.y: Likewise.
54062         * lib/relocwrapper.c: Likewise.
54063         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54064         (Depends-on): Add stdlib.
54065         * NEWS: Mention the changes.
54066         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54067
54068 2007-12-23  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54071         indentation.
54072
54073 2007-12-23  Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/c-strcasestr.c: Add more comments.
54076         * lib/c-strstr.c: Likewise.
54077         * lib/mbscasestr.c: Likewise.
54078         * lib/mbsstr.c: Likewise.
54079         * lib/strcasestr.c: Likewise.
54080         * lib/memmem.c: Likewise.
54081
54082 2007-12-23  Bruno Haible  <bruno@clisp.org>
54083
54084         * tests/test-memmem.c: Include <string.h> first.
54085
54086 2007-12-22  Bruno Haible  <bruno@clisp.org>
54087
54088         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54089         the contents of $testsbase.
54090         Reported by Ralf Wildenhues.
54091
54092 2007-12-22  Bruno Haible  <bruno@clisp.org>
54093
54094         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54095         two variables local_ldadd_before, local_ldadd_last.
54096
54097 2007-12-20  Eric Blake  <ebb9@byu.net>
54098
54099         Work around circular library issue when cross-compiling.
54100         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54101         that progname.o does not need to pull in rpl_memcmp.
54102
54103 2007-12-19  Eric Blake  <ebb9@byu.net>
54104
54105         Fix memmem to avoid O(n^2) worst-case complexity.
54106         * lib/memmem.c (knuth_morris_pratt): New function.
54107         (memmem): Use it if first few naive iterations fail.
54108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54109         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54110         * modules/memchr (License): Likewise.
54111         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54112         malloca.
54113         * tests/test-memmem.c: Rewrite, borrowing ideas from
54114         test-mbsstr1.c; the old version wouldn't even compile!
54115         * modules/memmem-tests: New file.
54116         * lib/string.in.h (rpl_memmem): Add declaration.
54117         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54119         REPLACE_MEMMEM.
54120
54121 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54122
54123         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54124         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54125         before any system include files, and undef after them all.  This
54126         should fix a problem on VMS reported by John E. Malmberg in
54127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54128
54129 2007-12-17  Eric Blake  <ebb9@byu.net>
54130
54131         Revert addition of verify, for BSD/OS.
54132         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54133         can't handle large files, for the sake of obsolete platforms.
54134         * modules/fseeko (Depends-on): Remove verify.
54135         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54136         * doc/functions/ftello.texi (ftello): Likewise.
54137         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54138         Reported by Larry Jones.
54139
54140 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54141
54142         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54143         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54144
54145 2007-12-17  Jim Meyering  <meyering@redhat.com>
54146
54147         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54148         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54149         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54150         * modules/getcwd (Depends-on): Add openat.
54151         Reported by Petr Salinger.
54152
54153 2007-12-17  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54156         avoid a segmentation fault of the configure test on x86_64 systems.
54157
54158 2007-12-15  Jim Meyering  <meyering@redhat.com>
54159
54160         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54161
54162 2007-12-13  Eric Blake  <ebb9@byu.net>
54163
54164         Another fseek test.
54165         * tests/test-fseek.c (main): Also test ungetc handling.
54166         * tests/test-fseeko.c (main): Likewise.
54167         * modules/fseeko (Depends-on): Add verify.
54168         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54169         large.
54170         Reported by Larry Jones.
54171
54172         Fix fseeko on mingw.
54173         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54174         seek.
54175
54176         Beef up fseek tests.
54177         * tests/test-fseek.c (main): Also test eof handling.
54178         * tests/test-fseeko.c (main): Likewise.
54179         Reported by Larry Jones.
54180
54181 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54182
54183         Fix fseeko on BSD-based platforms.
54184         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54185         successful seek.
54186
54187 2007-12-12  Eric Blake  <ebb9@byu.net>
54188
54189         Allow circular dependency of separate libtests.a
54190         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54191         when use_libtests.
54192
54193 2007-12-11  Eric Blake  <ebb9@byu.net>
54194
54195         Fix bug with -0.0L in previous patch.
54196         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54197         * tests/test-isnan.c (main): Also test on zeroes.
54198         * tests/test-isnanf.c (main): Likewise.
54199         * tests/test-isnanl.h (main): Likewise.
54200
54201         Detect pseudo-denormals on x86 even when cross-compiling.
54202         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54203         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54204         invalid bit patterns that happen to satisfy ==.
54205
54206         Avoid link failures with separate libtests.a.
54207         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54208         last, to satisfy circular dependencies.
54209
54210 2007-12-11  Eric Blake  <ebb9@byu.net>
54211         and Bruno Haible  <bruno@clisp.org>
54212
54213         Fix OpenBSD 4.0 <float.h> handling of long double.
54214         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54215         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54216         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54217
54218 2007-12-11  Jim Meyering  <meyering@redhat.com>
54219
54220         * users.txt: Add libvirt.
54221
54222         Support versions of autoconf prior to 2.59c.
54223         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54224         if it is not already defined.
54225
54226 2007-12-09  Bruno Haible  <bruno@clisp.org>
54227
54228         Let 'gnulib-tool --import' collect sources needed for the tests in
54229         tests/ rather than in lib/.
54230         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54231         argument. If true, add rules to generate libtests.a, and put libtests.a
54232         into $(LDADD). Consider source files in subdirectories and set
54233         uses_subdirs.
54234         (func_emit_initmacro_start, func_emit_initmacro_end,
54235         func_emit_initmacro_done): Pass all arguments explicitly.
54236         (func_import): Determine two module lists main_modules,
54237         testsrelated_modules. Determine use_libtests. Determine two variables
54238         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54239         instead of just sed_transform_lib_file. Determine two variables
54240         main_files and testsrelated_files. Compute 'files' as the union of
54241         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54242         func_add_or_update. In the generated gnulib-comp.m4, collect the
54243         object files for tests/ in different variables than those for lib/.
54244         Substitute LIBTESTS_LIBDEPS.
54245         (func_create_testdir): Combine the uses_subdirs results from
54246         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54247
54248 2007-12-09  Bruno Haible  <bruno@clisp.org>
54249
54250         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54251         the build-aux directory.
54252
54253 2007-12-09  Bruno Haible  <bruno@clisp.org>
54254
54255         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54256         introduced on 2006-09-09.
54257
54258 2007-12-07  Jim Meyering  <meyering@redhat.com>
54259
54260         Let these macros work also with autoconf-2.59.
54261         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54262         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54264
54265 2007-12-06  Jim Meyering  <meyering@redhat.com>
54266
54267         Avoid a configure-time syntax error in gl_FUNC_ACL.
54268         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54269         function in each branch, before testing the cache variable.
54270
54271 2007-12-04  Eric Blake  <ebb9@byu.net>
54272
54273         Make scripts executable.
54274         * build-aux/config.guess: Add execute permissions.
54275         * build-aux/config.sub: Likewise.
54276         * build-aux/gendocs.sh: Likewise.
54277
54278         Fix frexp on mingw.
54279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54280         cross-compiling.
54281         * doc/functions/frexp.texi (frexp): Document the bug.
54282
54283         Make cygwin fseeko check more reliable.
54284         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54285         version numbers, rather than unrelated feature check.
54286         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54287         * doc/functions/ftello.texi (ftello): Likewise.
54288         Reported by Bruno Haible.
54289
54290         * m4/strerror.m4: Bump version number.
54291
54292 2007-12-03  Bruno Haible  <bruno@clisp.org>
54293
54294         * doc/functions/mprotect.texi: Mention the mingw problem.
54295
54296 2007-12-03  Eric Blake  <ebb9@byu.net>
54297
54298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54299         REPLACE_STRERROR is initialized before this macro.
54300
54301 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54302
54303         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54304         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54305         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54306         put -lsec in even for programs other than 'ls'.  This fixes a problem
54307         for gettext reported by Bruno Haible in
54308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54309         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54310         Add support for Solaris 10.  This isn't efficient, but should get the
54311         job done for now.
54312
54313 2007-12-03  James Youngman  <jay@gnu.org>
54314
54315         * doc/regexprops-generic.texi: change "an close-group" to "a
54316         close-group" and "illegal" to "not allowed".
54317
54318 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54319
54320         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54321         pr_byname.h. Needed for the rare case when the maintainer has done
54322         "make maintainer-clean" in the source directory and then attempts a
54323         build outside the source directory.
54324         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54325         scripts_byname.h.
54326
54327 2007-12-02  Martin Lambers <marlam@marlam.de>
54328             Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/getpagesize.h: Remove file.
54331         * lib/unistd.in.h: Include declaration of getpagesize here.
54332         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54333         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54334         HAVE_SYS_PARAM_H.
54335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54336         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54337         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54338         (Depends-on): Add unistd.
54339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54340         (Include): Use <unistd.h> instead of getpagesize.h.
54341         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54342         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54343         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54344         gl_GETPAGESIZE invocation, already handled by module dependency.
54345         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54346
54347 2007-12-02  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/strings-tests: New file.
54350         * tests/test-strings.c: New file.
54351
54352         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54353         * lib/strings.in.h: New file.
54354         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54355         * m4/strings_h.m4: New file.
54356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54357         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54358         * modules/strings: New file.
54359         * modules/string (Makefile.am): Update.
54360         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54361         Reported by Karl Berry.
54362
54363 2007-12-01  Eric Blake  <ebb9@byu.net>
54364
54365         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54366         accomodate fix in cygwin 1.5.25.
54367
54368 2007-12-01  Jim Meyering  <meyering@redhat.com>
54369
54370         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54371         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54372         that would inhibit utf8-optimization of a regexp containing line-
54373         or buffer-anchors, e.g., `^', `$'.
54374
54375 2007-11-30  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54378         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54379         glthread_recursive_lock_init.
54380         * lib/lock.c (glthread_recursive_lock_init)
54381         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54382         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54383
54384 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54385
54386         New function qset_acl, like set_acl but with syscall semantics.
54387         * lib/acl.h (qset_acl): New decl.
54388         * lib/acl.c (qset_acl): New function.
54389         (set_acl): Use new function.  Use more-consistent diagnostics.
54390
54391 2007-11-28  Jim Meyering  <meyering@redhat.com>
54392
54393         * modules/physmem (License): Change from GPL to LGPLv2+.
54394
54395 2007-11-26  Bruno Haible  <bruno@clisp.org>
54396
54397         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54398         'long double' type has excess precision.
54399         Reported by Jim Meyering in
54400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54401
54402 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54403
54404         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54405         Sync from <http://gnu.org/licenses>.
54406         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54407         with license text from same location.
54408         * doc/maintain.texi, doc/standards.texi:  Sync from
54409         <http://savannah.gnu.org/projects/gnustandards>.
54410
54411 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54412         and Jim Meyering  <meyering@redhat.com>
54413
54414         Adjust getdate' grammar to accept a slightly more regular language.
54415         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54416         Before, the former was rejected.
54417         * lib/getdate.y (digits_to_date_time): New function, factored
54418         out of ...
54419         (number): ...here.  Just call digits_to_date_time.
54420         (hybrid): New non-terminal to handle an <unsigned number,
54421         signed relative offset> sequence consistently.
54422
54423 2007-11-18  Jim Meyering  <meyering@redhat.com>
54424
54425         Pull my changes from coreutils:
54426         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54427         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54428         use of $gnulib_tool_option_extras, so that it's separated from the
54429         preceding argument.
54430
54431         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54432         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54433         parent destination directories before copying a file into place.
54434
54435 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54436
54437         bootstrap: work also with 4-argument variant of AC_INIT
54438         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54439
54440 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         Port test-getaddrinfo to Solaris.
54443         Problem reported by Bruno Haible in
54444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54445         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54446         explanation of setting 'hints'.
54447         Don't reject an implementation merely because it returns EAI_SERVICE.
54448         (EAI_SERVICE): Define to 0 if not defined.
54449
54450 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54451
54452         The license of gnu-make and posix-shell is now "GPLed build tool".
54453         * modules/gnu-make (License): Likewise.
54454         * modules/posix-shell (License): Likewise.
54455
54456         New module posix-shell, for determining a POSIX shell
54457         or perhaps something that is close enough to a POSIX shell.
54458         * m4/posix-shell.m4: New file.
54459         * modules/posix-shell: New file.
54460
54461         * MODULES.html.sh: Mention new module.
54462
54463         New module gnu-make, for determining whether we're using GNU Make.
54464         * m4/gnu-make.m4: New file.
54465         * modules/gnu-make: New file.
54466         * MODULES.html.sh: Mention new module.
54467
54468 2007-11-14  Jim Meyering  <meyering@redhat.com>
54469
54470         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54471         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54472         use this macro to create a function _definition_.
54473         Remove useless "#undef ARGMATCH_DIE".
54474
54475 2007-11-14  Bruno Haible  <bruno@clisp.org>
54476
54477         * lib/config.charset: Update for OpenBSD 4.1.
54478         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54479
54480 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54481
54482         Document 64-bit #if problems in stdint.texi.
54483         * doc/headers/stdint.texi (stdint.h): Mention problems with
54484         64-bit-#if, and how to work around them.
54485
54486         Don't insist on 'long long int' support in the preprocessor.  It
54487         breaks too many things.  For example, PRIdMAX still uses a 'long
54488         long int' format with the latest Sun compiler, even though
54489         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54490         preprocessor problem.  This causes the latest coreutils to dump
54491         core on Solaris 10 sparc with the Sun C compiler.
54492         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54493         the troublesome expressions at configure-time, not at #if-time.
54494         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54495         preprocessor.
54496         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54497         compile-time C checks, done at 'configure'-time.
54498         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54499         * modules/inttypes (Makefile): Substitute the new symbols that
54500         gl_INTTYPES_H now generates.
54501         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54502
54503 2007-11-12  Bruno Haible  <bruno@clisp.org>
54504
54505         Tests for Unicode character classification functions.
54506
54507         * modules/unictype/bidicategory-byname-tests: New file.
54508         * modules/unictype/bidicategory-name-tests: New file.
54509         * modules/unictype/bidicategory-of-tests: New file.
54510         * modules/unictype/bidicategory-test-tests: New file.
54511         * modules/unictype/block-list-tests: New file.
54512         * modules/unictype/block-of-tests: New file.
54513         * modules/unictype/block-test-tests: New file.
54514         * modules/unictype/category-C-tests: New file.
54515         * modules/unictype/category-Cc-tests: New file.
54516         * modules/unictype/category-Cf-tests: New file.
54517         * modules/unictype/category-Cn-tests: New file.
54518         * modules/unictype/category-Co-tests: New file.
54519         * modules/unictype/category-Cs-tests: New file.
54520         * modules/unictype/category-L-tests: New file.
54521         * modules/unictype/category-Ll-tests: New file.
54522         * modules/unictype/category-Lm-tests: New file.
54523         * modules/unictype/category-Lo-tests: New file.
54524         * modules/unictype/category-Lt-tests: New file.
54525         * modules/unictype/category-Lu-tests: New file.
54526         * modules/unictype/category-M-tests: New file.
54527         * modules/unictype/category-Mc-tests: New file.
54528         * modules/unictype/category-Me-tests: New file.
54529         * modules/unictype/category-Mn-tests: New file.
54530         * modules/unictype/category-N-tests: New file.
54531         * modules/unictype/category-Nd-tests: New file.
54532         * modules/unictype/category-Nl-tests: New file.
54533         * modules/unictype/category-No-tests: New file.
54534         * modules/unictype/category-P-tests: New file.
54535         * modules/unictype/category-Pc-tests: New file.
54536         * modules/unictype/category-Pd-tests: New file.
54537         * modules/unictype/category-Pe-tests: New file.
54538         * modules/unictype/category-Pf-tests: New file.
54539         * modules/unictype/category-Pi-tests: New file.
54540         * modules/unictype/category-Po-tests: New file.
54541         * modules/unictype/category-Ps-tests: New file.
54542         * modules/unictype/category-S-tests: New file.
54543         * modules/unictype/category-Sc-tests: New file.
54544         * modules/unictype/category-Sk-tests: New file.
54545         * modules/unictype/category-Sm-tests: New file.
54546         * modules/unictype/category-So-tests: New file.
54547         * modules/unictype/category-Z-tests: New file.
54548         * modules/unictype/category-Zl-tests: New file.
54549         * modules/unictype/category-Zp-tests: New file.
54550         * modules/unictype/category-Zs-tests: New file.
54551         * modules/unictype/category-and-not-tests: New file.
54552         * modules/unictype/category-and-tests: New file.
54553         * modules/unictype/category-byname-tests: New file.
54554         * modules/unictype/category-name-tests: New file.
54555         * modules/unictype/category-none-tests: New file.
54556         * modules/unictype/category-of-tests: New file.
54557         * modules/unictype/category-or-tests: New file.
54558         * modules/unictype/category-test-withtable-tests: New file.
54559         * modules/unictype/combining-class-tests: New file.
54560         * modules/unictype/ctype-alnum-tests: New file.
54561         * modules/unictype/ctype-alpha-tests: New file.
54562         * modules/unictype/ctype-blank-tests: New file.
54563         * modules/unictype/ctype-cntrl-tests: New file.
54564         * modules/unictype/ctype-digit-tests: New file.
54565         * modules/unictype/ctype-graph-tests: New file.
54566         * modules/unictype/ctype-lower-tests: New file.
54567         * modules/unictype/ctype-print-tests: New file.
54568         * modules/unictype/ctype-punct-tests: New file.
54569         * modules/unictype/ctype-space-tests: New file.
54570         * modules/unictype/ctype-upper-tests: New file.
54571         * modules/unictype/ctype-xdigit-tests: New file.
54572         * modules/unictype/decimal-digit-tests: New file.
54573         * modules/unictype/digit-tests: New file.
54574         * modules/unictype/mirror-tests: New file.
54575         * modules/unictype/numeric-tests: New file.
54576         * modules/unictype/property-alphabetic-tests: New file.
54577         * modules/unictype/property-ascii-hex-digit-tests: New file.
54578         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54579         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54580         * modules/unictype/property-bidi-block-separator-tests: New file.
54581         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54582         * modules/unictype/property-bidi-common-separator-tests: New file.
54583         * modules/unictype/property-bidi-control-tests: New file.
54584         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54585         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54586         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54587         * modules/unictype/property-bidi-european-digit-tests: New file.
54588         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54589         * modules/unictype/property-bidi-left-to-right-tests: New file.
54590         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54591         * modules/unictype/property-bidi-other-neutral-tests: New file.
54592         * modules/unictype/property-bidi-pdf-tests: New file.
54593         * modules/unictype/property-bidi-segment-separator-tests: New file.
54594         * modules/unictype/property-bidi-whitespace-tests: New file.
54595         * modules/unictype/property-byname-tests: New file.
54596         * modules/unictype/property-combining-tests: New file.
54597         * modules/unictype/property-composite-tests: New file.
54598         * modules/unictype/property-currency-symbol-tests: New file.
54599         * modules/unictype/property-dash-tests: New file.
54600         * modules/unictype/property-decimal-digit-tests: New file.
54601         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54602         * modules/unictype/property-deprecated-tests: New file.
54603         * modules/unictype/property-diacritic-tests: New file.
54604         * modules/unictype/property-extender-tests: New file.
54605         * modules/unictype/property-format-control-tests: New file.
54606         * modules/unictype/property-grapheme-base-tests: New file.
54607         * modules/unictype/property-grapheme-extend-tests: New file.
54608         * modules/unictype/property-grapheme-link-tests: New file.
54609         * modules/unictype/property-hex-digit-tests: New file.
54610         * modules/unictype/property-hyphen-tests: New file.
54611         * modules/unictype/property-id-continue-tests: New file.
54612         * modules/unictype/property-id-start-tests: New file.
54613         * modules/unictype/property-ideographic-tests: New file.
54614         * modules/unictype/property-ids-binary-operator-tests: New file.
54615         * modules/unictype/property-ids-trinary-operator-tests: New file.
54616         * modules/unictype/property-ignorable-control-tests: New file.
54617         * modules/unictype/property-iso-control-tests: New file.
54618         * modules/unictype/property-join-control-tests: New file.
54619         * modules/unictype/property-left-of-pair-tests: New file.
54620         * modules/unictype/property-line-separator-tests: New file.
54621         * modules/unictype/property-logical-order-exception-tests: New file.
54622         * modules/unictype/property-lowercase-tests: New file.
54623         * modules/unictype/property-math-tests: New file.
54624         * modules/unictype/property-non-break-tests: New file.
54625         * modules/unictype/property-not-a-character-tests: New file.
54626         * modules/unictype/property-numeric-tests: New file.
54627         * modules/unictype/property-other-alphabetic-tests: New file.
54628         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54629         * modules/unictype/property-other-grapheme-extend-tests: New file.
54630         * modules/unictype/property-other-id-continue-tests: New file.
54631         * modules/unictype/property-other-id-start-tests: New file.
54632         * modules/unictype/property-other-lowercase-tests: New file.
54633         * modules/unictype/property-other-math-tests: New file.
54634         * modules/unictype/property-other-uppercase-tests: New file.
54635         * modules/unictype/property-paired-punctuation-tests: New file.
54636         * modules/unictype/property-paragraph-separator-tests: New file.
54637         * modules/unictype/property-pattern-syntax-tests: New file.
54638         * modules/unictype/property-pattern-white-space-tests: New file.
54639         * modules/unictype/property-private-use-tests: New file.
54640         * modules/unictype/property-punctuation-tests: New file.
54641         * modules/unictype/property-quotation-mark-tests: New file.
54642         * modules/unictype/property-radical-tests: New file.
54643         * modules/unictype/property-sentence-terminal-tests: New file.
54644         * modules/unictype/property-soft-dotted-tests: New file.
54645         * modules/unictype/property-space-tests: New file.
54646         * modules/unictype/property-terminal-punctuation-tests: New file.
54647         * modules/unictype/property-test-tests: New file.
54648         * modules/unictype/property-titlecase-tests: New file.
54649         * modules/unictype/property-unassigned-code-value-tests: New file.
54650         * modules/unictype/property-unified-ideograph-tests: New file.
54651         * modules/unictype/property-uppercase-tests: New file.
54652         * modules/unictype/property-variation-selector-tests: New file.
54653         * modules/unictype/property-white-space-tests: New file.
54654         * modules/unictype/property-xid-continue-tests: New file.
54655         * modules/unictype/property-xid-start-tests: New file.
54656         * modules/unictype/property-zero-width-tests: New file.
54657         * modules/unictype/scripts-tests: New file.
54658         * modules/unictype/syntax-c-ident-tests: New file.
54659         * modules/unictype/syntax-c-whitespace-tests: New file.
54660         * modules/unictype/syntax-java-ident-tests: New file.
54661         * modules/unictype/syntax-java-whitespace-tests: New file.
54662         * tests/unictype/test-bidi_byname.c: New file.
54663         * tests/unictype/test-bidi_name.c: New file.
54664         * tests/unictype/test-bidi_of.c: New file.
54665         * tests/unictype/test-bidi_test.c: New file.
54666         * tests/unictype/test-block_list.c: New file.
54667         * tests/unictype/test-block_of.c: New file.
54668         * tests/unictype/test-block_test.c: New file.
54669         * tests/unictype/test-categ_and.c: New file.
54670         * tests/unictype/test-categ_and_not.c: New file.
54671         * tests/unictype/test-categ_byname.c: New file.
54672         * tests/unictype/test-categ_name.c: New file.
54673         * tests/unictype/test-categ_none.c: New file.
54674         * tests/unictype/test-categ_of.c: New file.
54675         * tests/unictype/test-categ_or.c: New file.
54676         * tests/unictype/test-categ_test_withtable.c: New file.
54677         * tests/unictype/test-combining.c: New file.
54678         * tests/unictype/test-decdigit.c: New file.
54679         * tests/unictype/test-digit.c: New file.
54680         * tests/unictype/test-mirror.c: New file.
54681         * tests/unictype/test-numeric.c: New file.
54682         * tests/unictype/test-pr_byname.c: New file.
54683         * tests/unictype/test-pr_test.c: New file.
54684         * tests/unictype/test-predicate-part1.h: New file.
54685         * tests/unictype/test-predicate-part2.h: New file.
54686         * tests/unictype/test-scripts.c: New file.
54687         * tests/unictype/test-sy_c_ident.c: New file.
54688         * tests/unictype/test-sy_java_ident.c: New file.
54689
54690         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54691         for Unicode 5.0.0.
54692         * tests/unictype/test-categ_Cc.c: Likewise.
54693         * tests/unictype/test-categ_Cf.c: Likewise.
54694         * tests/unictype/test-categ_Cn.c: Likewise.
54695         * tests/unictype/test-categ_Co.c: Likewise.
54696         * tests/unictype/test-categ_Cs.c: Likewise.
54697         * tests/unictype/test-categ_L.c: Likewise.
54698         * tests/unictype/test-categ_Ll.c: Likewise.
54699         * tests/unictype/test-categ_Lm.c: Likewise.
54700         * tests/unictype/test-categ_Lo.c: Likewise.
54701         * tests/unictype/test-categ_Lt.c: Likewise.
54702         * tests/unictype/test-categ_Lu.c: Likewise.
54703         * tests/unictype/test-categ_M.c: Likewise.
54704         * tests/unictype/test-categ_Mc.c: Likewise.
54705         * tests/unictype/test-categ_Me.c: Likewise.
54706         * tests/unictype/test-categ_Mn.c: Likewise.
54707         * tests/unictype/test-categ_N.c: Likewise.
54708         * tests/unictype/test-categ_Nd.c: Likewise.
54709         * tests/unictype/test-categ_Nl.c: Likewise.
54710         * tests/unictype/test-categ_No.c: Likewise.
54711         * tests/unictype/test-categ_P.c: Likewise.
54712         * tests/unictype/test-categ_Pc.c: Likewise.
54713         * tests/unictype/test-categ_Pd.c: Likewise.
54714         * tests/unictype/test-categ_Pe.c: Likewise.
54715         * tests/unictype/test-categ_Pf.c: Likewise.
54716         * tests/unictype/test-categ_Pi.c: Likewise.
54717         * tests/unictype/test-categ_Po.c: Likewise.
54718         * tests/unictype/test-categ_Ps.c: Likewise.
54719         * tests/unictype/test-categ_S.c: Likewise.
54720         * tests/unictype/test-categ_Sc.c: Likewise.
54721         * tests/unictype/test-categ_Sk.c: Likewise.
54722         * tests/unictype/test-categ_Sm.c: Likewise.
54723         * tests/unictype/test-categ_So.c: Likewise.
54724         * tests/unictype/test-categ_Z.c: Likewise.
54725         * tests/unictype/test-categ_Zl.c: Likewise.
54726         * tests/unictype/test-categ_Zp.c: Likewise.
54727         * tests/unictype/test-categ_Zs.c: Likewise.
54728         * tests/unictype/test-ctype_alnum.c: Likewise.
54729         * tests/unictype/test-ctype_alpha.c: Likewise.
54730         * tests/unictype/test-ctype_blank.c: Likewise.
54731         * tests/unictype/test-ctype_cntrl.c: Likewise.
54732         * tests/unictype/test-ctype_digit.c: Likewise.
54733         * tests/unictype/test-ctype_graph.c: Likewise.
54734         * tests/unictype/test-ctype_lower.c: Likewise.
54735         * tests/unictype/test-ctype_print.c: Likewise.
54736         * tests/unictype/test-ctype_punct.c: Likewise.
54737         * tests/unictype/test-ctype_space.c: Likewise.
54738         * tests/unictype/test-ctype_upper.c: Likewise.
54739         * tests/unictype/test-ctype_xdigit.c: Likewise.
54740         * tests/unictype/test-decdigit.h: Likewise.
54741         * tests/unictype/test-digit.h: Likewise.
54742         * tests/unictype/test-numeric.h: Likewise.
54743         * tests/unictype/test-pr_alphabetic.c: Likewise.
54744         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54745         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54746         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54747         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54748         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54749         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54750         * tests/unictype/test-pr_bidi_control.c: Likewise.
54751         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54752         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54753         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54754         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54755         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54756         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54757         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54758         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54759         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54760         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54761         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54762         * tests/unictype/test-pr_combining.c: Likewise.
54763         * tests/unictype/test-pr_composite.c: Likewise.
54764         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54765         * tests/unictype/test-pr_dash.c: Likewise.
54766         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54767         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54768         * tests/unictype/test-pr_deprecated.c: Likewise.
54769         * tests/unictype/test-pr_diacritic.c: Likewise.
54770         * tests/unictype/test-pr_extender.c: Likewise.
54771         * tests/unictype/test-pr_format_control.c: Likewise.
54772         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54773         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54774         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54775         * tests/unictype/test-pr_hex_digit.c: Likewise.
54776         * tests/unictype/test-pr_hyphen.c: Likewise.
54777         * tests/unictype/test-pr_id_continue.c: Likewise.
54778         * tests/unictype/test-pr_id_start.c: Likewise.
54779         * tests/unictype/test-pr_ideographic.c: Likewise.
54780         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54781         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54782         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54783         * tests/unictype/test-pr_iso_control.c: Likewise.
54784         * tests/unictype/test-pr_join_control.c: Likewise.
54785         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54786         * tests/unictype/test-pr_line_separator.c: Likewise.
54787         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54788         * tests/unictype/test-pr_lowercase.c: Likewise.
54789         * tests/unictype/test-pr_math.c: Likewise.
54790         * tests/unictype/test-pr_non_break.c: Likewise.
54791         * tests/unictype/test-pr_not_a_character.c: Likewise.
54792         * tests/unictype/test-pr_numeric.c: Likewise.
54793         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54794         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54795         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54796         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54797         * tests/unictype/test-pr_other_id_start.c: Likewise.
54798         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54799         * tests/unictype/test-pr_other_math.c: Likewise.
54800         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54801         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54802         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54803         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54804         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54805         * tests/unictype/test-pr_private_use.c: Likewise.
54806         * tests/unictype/test-pr_punctuation.c: Likewise.
54807         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54808         * tests/unictype/test-pr_radical.c: Likewise.
54809         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54810         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54811         * tests/unictype/test-pr_space.c: Likewise.
54812         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54813         * tests/unictype/test-pr_titlecase.c: Likewise.
54814         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54815         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54816         * tests/unictype/test-pr_uppercase.c: Likewise.
54817         * tests/unictype/test-pr_variation_selector.c: Likewise.
54818         * tests/unictype/test-pr_white_space.c: Likewise.
54819         * tests/unictype/test-pr_xid_continue.c: Likewise.
54820         * tests/unictype/test-pr_xid_start.c: Likewise.
54821         * tests/unictype/test-pr_zero_width.c: Likewise.
54822         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54823         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54824
54825 2007-11-12  Bruno Haible  <bruno@clisp.org>
54826
54827         Unicode character classification functions.
54828         * lib/unictype.h: New file.
54829         * modules/unictype/base: New file.
54830         * modules/unictype/category-L: New file.
54831         * modules/unictype/category-Lu: New file.
54832         * modules/unictype/category-Ll: New file.
54833         * modules/unictype/category-Lt: New file.
54834         * modules/unictype/category-Lm: New file.
54835         * modules/unictype/category-Lo: New file.
54836         * modules/unictype/category-M: New file.
54837         * modules/unictype/category-Mn: New file.
54838         * modules/unictype/category-Mc: New file.
54839         * modules/unictype/category-Me: New file.
54840         * modules/unictype/category-N: New file.
54841         * modules/unictype/category-Nd: New file.
54842         * modules/unictype/category-Nl: New file.
54843         * modules/unictype/category-No: New file.
54844         * modules/unictype/category-P: New file.
54845         * modules/unictype/category-Pc: New file.
54846         * modules/unictype/category-Pd: New file.
54847         * modules/unictype/category-Ps: New file.
54848         * modules/unictype/category-Pe: New file.
54849         * modules/unictype/category-Pi: New file.
54850         * modules/unictype/category-Pf: New file.
54851         * modules/unictype/category-Po: New file.
54852         * modules/unictype/category-S: New file.
54853         * modules/unictype/category-Sm: New file.
54854         * modules/unictype/category-Sc: New file.
54855         * modules/unictype/category-Sk: New file.
54856         * modules/unictype/category-So: New file.
54857         * modules/unictype/category-Z: New file.
54858         * modules/unictype/category-Zs: New file.
54859         * modules/unictype/category-Zl: New file.
54860         * modules/unictype/category-Zp: New file.
54861         * modules/unictype/category-C: New file.
54862         * modules/unictype/category-Cc: New file.
54863         * modules/unictype/category-Cf: New file.
54864         * modules/unictype/category-Cs: New file.
54865         * modules/unictype/category-Co: New file.
54866         * modules/unictype/category-Cn: New file.
54867         * modules/unictype/category-or: New file.
54868         * modules/unictype/category-of: New file.
54869         * modules/unictype/category-test: New file.
54870         * modules/unictype/category-test-withtable: New file.
54871         * modules/unictype/category-byname: New file.
54872         * modules/unictype/category-none: New file.
54873         * modules/unictype/category-and: New file.
54874         * modules/unictype/category-and-not: New file.
54875         * modules/unictype/category-name: New file.
54876         * modules/unictype/combining-class: New file.
54877         * modules/unictype/category-all: New file.
54878         * modules/unictype/bidicategory-all: New file.
54879         * modules/unictype/bidicategory-byname: New file.
54880         * modules/unictype/bidicategory-name: New file.
54881         * modules/unictype/bidicategory-of: New file.
54882         * modules/unictype/bidicategory-test: New file.
54883         * modules/unictype/decimal-digit: New file.
54884         * modules/unictype/digit: New file.
54885         * modules/unictype/numeric: New file.
54886         * modules/unictype/mirror: New file.
54887         * modules/unictype/property-white-space: New file.
54888         * modules/unictype/property-alphabetic: New file.
54889         * modules/unictype/property-other-alphabetic: New file.
54890         * modules/unictype/property-not-a-character: New file.
54891         * modules/unictype/property-default-ignorable-code-point: New file.
54892         * modules/unictype/property-other-default-ignorable-code-point: New
54893         file.
54894         * modules/unictype/property-deprecated: New file.
54895         * modules/unictype/property-logical-order-exception: New file.
54896         * modules/unictype/property-variation-selector: New file.
54897         * modules/unictype/property-private-use: New file.
54898         * modules/unictype/property-unassigned-code-value: New file.
54899         * modules/unictype/property-uppercase: New file.
54900         * modules/unictype/property-other-uppercase: New file.
54901         * modules/unictype/property-lowercase: New file.
54902         * modules/unictype/property-other-lowercase: New file.
54903         * modules/unictype/property-titlecase: New file.
54904         * modules/unictype/property-soft-dotted: New file.
54905         * modules/unictype/property-id-start: New file.
54906         * modules/unictype/property-other-id-start: New file.
54907         * modules/unictype/property-id-continue: New file.
54908         * modules/unictype/property-other-id-continue: New file.
54909         * modules/unictype/property-xid-start: New file.
54910         * modules/unictype/property-xid-continue: New file.
54911         * modules/unictype/property-pattern-white-space: New file.
54912         * modules/unictype/property-pattern-syntax: New file.
54913         * modules/unictype/property-join-control: New file.
54914         * modules/unictype/property-grapheme-base: New file.
54915         * modules/unictype/property-grapheme-extend: New file.
54916         * modules/unictype/property-other-grapheme-extend: New file.
54917         * modules/unictype/property-grapheme-link: New file.
54918         * modules/unictype/property-bidi-control: New file.
54919         * modules/unictype/property-bidi-left-to-right: New file.
54920         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54921         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54922         * modules/unictype/property-bidi-european-digit: New file.
54923         * modules/unictype/property-bidi-eur-num-separator: New file.
54924         * modules/unictype/property-bidi-eur-num-terminator: New file.
54925         * modules/unictype/property-bidi-arabic-digit: New file.
54926         * modules/unictype/property-bidi-common-separator: New file.
54927         * modules/unictype/property-bidi-block-separator: New file.
54928         * modules/unictype/property-bidi-segment-separator: New file.
54929         * modules/unictype/property-bidi-whitespace: New file.
54930         * modules/unictype/property-bidi-non-spacing-mark: New file.
54931         * modules/unictype/property-bidi-boundary-neutral: New file.
54932         * modules/unictype/property-bidi-pdf: New file.
54933         * modules/unictype/property-bidi-embedding-or-override: New file.
54934         * modules/unictype/property-bidi-other-neutral: New file.
54935         * modules/unictype/property-hex-digit: New file.
54936         * modules/unictype/property-ascii-hex-digit: New file.
54937         * modules/unictype/property-ideographic: New file.
54938         * modules/unictype/property-unified-ideograph: New file.
54939         * modules/unictype/property-radical: New file.
54940         * modules/unictype/property-ids-binary-operator: New file.
54941         * modules/unictype/property-ids-trinary-operator: New file.
54942         * modules/unictype/property-zero-width: New file.
54943         * modules/unictype/property-space: New file.
54944         * modules/unictype/property-non-break: New file.
54945         * modules/unictype/property-iso-control: New file.
54946         * modules/unictype/property-format-control: New file.
54947         * modules/unictype/property-dash: New file.
54948         * modules/unictype/property-hyphen: New file.
54949         * modules/unictype/property-punctuation: New file.
54950         * modules/unictype/property-line-separator: New file.
54951         * modules/unictype/property-paragraph-separator: New file.
54952         * modules/unictype/property-quotation-mark: New file.
54953         * modules/unictype/property-sentence-terminal: New file.
54954         * modules/unictype/property-terminal-punctuation: New file.
54955         * modules/unictype/property-currency-symbol: New file.
54956         * modules/unictype/property-math: New file.
54957         * modules/unictype/property-other-math: New file.
54958         * modules/unictype/property-paired-punctuation: New file.
54959         * modules/unictype/property-left-of-pair: New file.
54960         * modules/unictype/property-combining: New file.
54961         * modules/unictype/property-composite: New file.
54962         * modules/unictype/property-decimal-digit: New file.
54963         * modules/unictype/property-numeric: New file.
54964         * modules/unictype/property-diacritic: New file.
54965         * modules/unictype/property-extender: New file.
54966         * modules/unictype/property-ignorable-control: New file.
54967         * modules/unictype/property-test: New file.
54968         * modules/unictype/property-byname: New file.
54969         * modules/unictype/property-all: New file.
54970         * modules/unictype/scripts: New file.
54971         * modules/unictype/scripts-all: New file.
54972         * modules/unictype/block-of: New file.
54973         * modules/unictype/block-test: New file.
54974         * modules/unictype/block-list: New file.
54975         * modules/unictype/block-all: New file.
54976         * modules/unictype/syntax-c-whitespace: New file.
54977         * modules/unictype/syntax-java-whitespace: New file.
54978         * modules/unictype/syntax-c-ident: New file.
54979         * modules/unictype/syntax-java-ident: New file.
54980         * modules/unictype/ctype-alnum: New file.
54981         * modules/unictype/ctype-alpha: New file.
54982         * modules/unictype/ctype-cntrl: New file.
54983         * modules/unictype/ctype-digit: New file.
54984         * modules/unictype/ctype-graph: New file.
54985         * modules/unictype/ctype-lower: New file.
54986         * modules/unictype/ctype-print: New file.
54987         * modules/unictype/ctype-punct: New file.
54988         * modules/unictype/ctype-space: New file.
54989         * modules/unictype/ctype-upper: New file.
54990         * modules/unictype/ctype-xdigit: New file.
54991         * modules/unictype/ctype-blank: New file.
54992         * lib/unictype/bidi_byname.c: New file.
54993         * lib/unictype/bidi_name.c: New file.
54994         * lib/unictype/bidi_of.c: New file.
54995         * lib/unictype/bidi_test.c: New file.
54996         * lib/unictype/bitmap.h: New file.
54997         * lib/unictype/block_test.c: New file.
54998         * lib/unictype/blocks.c: New file.
54999         * lib/unictype/categ_C.c: New file.
55000         * lib/unictype/categ_Cc.c: New file.
55001         * lib/unictype/categ_Cf.c: New file.
55002         * lib/unictype/categ_Cn.c: New file.
55003         * lib/unictype/categ_Co.c: New file.
55004         * lib/unictype/categ_Cs.c: New file.
55005         * lib/unictype/categ_L.c: New file.
55006         * lib/unictype/categ_Ll.c: New file.
55007         * lib/unictype/categ_Lm.c: New file.
55008         * lib/unictype/categ_Lo.c: New file.
55009         * lib/unictype/categ_Lt.c: New file.
55010         * lib/unictype/categ_Lu.c: New file.
55011         * lib/unictype/categ_M.c: New file.
55012         * lib/unictype/categ_Mc.c: New file.
55013         * lib/unictype/categ_Me.c: New file.
55014         * lib/unictype/categ_Mn.c: New file.
55015         * lib/unictype/categ_N.c: New file.
55016         * lib/unictype/categ_Nd.c: New file.
55017         * lib/unictype/categ_Nl.c: New file.
55018         * lib/unictype/categ_No.c: New file.
55019         * lib/unictype/categ_P.c: New file.
55020         * lib/unictype/categ_Pc.c: New file.
55021         * lib/unictype/categ_Pd.c: New file.
55022         * lib/unictype/categ_Pe.c: New file.
55023         * lib/unictype/categ_Pf.c: New file.
55024         * lib/unictype/categ_Pi.c: New file.
55025         * lib/unictype/categ_Po.c: New file.
55026         * lib/unictype/categ_Ps.c: New file.
55027         * lib/unictype/categ_S.c: New file.
55028         * lib/unictype/categ_Sc.c: New file.
55029         * lib/unictype/categ_Sk.c: New file.
55030         * lib/unictype/categ_Sm.c: New file.
55031         * lib/unictype/categ_So.c: New file.
55032         * lib/unictype/categ_Z.c: New file.
55033         * lib/unictype/categ_Zl.c: New file.
55034         * lib/unictype/categ_Zp.c: New file.
55035         * lib/unictype/categ_Zs.c: New file.
55036         * lib/unictype/categ_and.c: New file.
55037         * lib/unictype/categ_and_not.c: New file.
55038         * lib/unictype/categ_byname.c: New file.
55039         * lib/unictype/categ_name.c: New file.
55040         * lib/unictype/categ_none.c: New file.
55041         * lib/unictype/categ_of.c: New file.
55042         * lib/unictype/categ_or.c: New file.
55043         * lib/unictype/categ_test.c: New file.
55044         * lib/unictype/combining.c: New file.
55045         * lib/unictype/ctype_alnum.c: New file.
55046         * lib/unictype/ctype_alpha.c: New file.
55047         * lib/unictype/ctype_blank.c: New file.
55048         * lib/unictype/ctype_cntrl.c: New file.
55049         * lib/unictype/ctype_digit.c: New file.
55050         * lib/unictype/ctype_graph.c: New file.
55051         * lib/unictype/ctype_lower.c: New file.
55052         * lib/unictype/ctype_print.c: New file.
55053         * lib/unictype/ctype_punct.c: New file.
55054         * lib/unictype/ctype_space.c: New file.
55055         * lib/unictype/ctype_upper.c: New file.
55056         * lib/unictype/ctype_xdigit.c: New file.
55057         * lib/unictype/decdigit.c: New file.
55058         * lib/unictype/digit.c: New file.
55059         * lib/unictype/identsyntaxmap.h: New file.
55060         * lib/unictype/mirror.c: New file.
55061         * lib/unictype/numeric.c: New file.
55062         * lib/unictype/pr_alphabetic.c: New file.
55063         * lib/unictype/pr_ascii_hex_digit.c: New file.
55064         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55065         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55066         * lib/unictype/pr_bidi_block_separator.c: New file.
55067         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55068         * lib/unictype/pr_bidi_common_separator.c: New file.
55069         * lib/unictype/pr_bidi_control.c: New file.
55070         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55071         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55072         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55073         * lib/unictype/pr_bidi_european_digit.c: New file.
55074         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55075         * lib/unictype/pr_bidi_left_to_right.c: New file.
55076         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55077         * lib/unictype/pr_bidi_other_neutral.c: New file.
55078         * lib/unictype/pr_bidi_pdf.c: New file.
55079         * lib/unictype/pr_bidi_segment_separator.c: New file.
55080         * lib/unictype/pr_bidi_whitespace.c: New file.
55081         * lib/unictype/pr_byname.c: New file.
55082         * lib/unictype/pr_byname.gperf: New file.
55083         * lib/unictype/pr_combining.c: New file.
55084         * lib/unictype/pr_composite.c: New file.
55085         * lib/unictype/pr_currency_symbol.c: New file.
55086         * lib/unictype/pr_dash.c: New file.
55087         * lib/unictype/pr_decimal_digit.c: New file.
55088         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55089         * lib/unictype/pr_deprecated.c: New file.
55090         * lib/unictype/pr_diacritic.c: New file.
55091         * lib/unictype/pr_extender.c: New file.
55092         * lib/unictype/pr_format_control.c: New file.
55093         * lib/unictype/pr_grapheme_base.c: New file.
55094         * lib/unictype/pr_grapheme_extend.c: New file.
55095         * lib/unictype/pr_grapheme_link.c: New file.
55096         * lib/unictype/pr_hex_digit.c: New file.
55097         * lib/unictype/pr_hyphen.c: New file.
55098         * lib/unictype/pr_id_continue.c: New file.
55099         * lib/unictype/pr_id_start.c: New file.
55100         * lib/unictype/pr_ideographic.c: New file.
55101         * lib/unictype/pr_ids_binary_operator.c: New file.
55102         * lib/unictype/pr_ids_trinary_operator.c: New file.
55103         * lib/unictype/pr_ignorable_control.c: New file.
55104         * lib/unictype/pr_iso_control.c: New file.
55105         * lib/unictype/pr_join_control.c: New file.
55106         * lib/unictype/pr_left_of_pair.c: New file.
55107         * lib/unictype/pr_line_separator.c: New file.
55108         * lib/unictype/pr_logical_order_exception.c: New file.
55109         * lib/unictype/pr_lowercase.c: New file.
55110         * lib/unictype/pr_math.c: New file.
55111         * lib/unictype/pr_non_break.c: New file.
55112         * lib/unictype/pr_not_a_character.c: New file.
55113         * lib/unictype/pr_numeric.c: New file.
55114         * lib/unictype/pr_other_alphabetic.c: New file.
55115         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55116         * lib/unictype/pr_other_grapheme_extend.c: New file.
55117         * lib/unictype/pr_other_id_continue.c: New file.
55118         * lib/unictype/pr_other_id_start.c: New file.
55119         * lib/unictype/pr_other_lowercase.c: New file.
55120         * lib/unictype/pr_other_math.c: New file.
55121         * lib/unictype/pr_other_uppercase.c: New file.
55122         * lib/unictype/pr_paired_punctuation.c: New file.
55123         * lib/unictype/pr_paragraph_separator.c: New file.
55124         * lib/unictype/pr_pattern_syntax.c: New file.
55125         * lib/unictype/pr_pattern_white_space.c: New file.
55126         * lib/unictype/pr_private_use.c: New file.
55127         * lib/unictype/pr_punctuation.c: New file.
55128         * lib/unictype/pr_quotation_mark.c: New file.
55129         * lib/unictype/pr_radical.c: New file.
55130         * lib/unictype/pr_sentence_terminal.c: New file.
55131         * lib/unictype/pr_soft_dotted.c: New file.
55132         * lib/unictype/pr_space.c: New file.
55133         * lib/unictype/pr_terminal_punctuation.c: New file.
55134         * lib/unictype/pr_test.c: New file.
55135         * lib/unictype/pr_titlecase.c: New file.
55136         * lib/unictype/pr_unassigned_code_value.c: New file.
55137         * lib/unictype/pr_unified_ideograph.c: New file.
55138         * lib/unictype/pr_uppercase.c: New file.
55139         * lib/unictype/pr_variation_selector.c: New file.
55140         * lib/unictype/pr_white_space.c: New file.
55141         * lib/unictype/pr_xid_continue.c: New file.
55142         * lib/unictype/pr_xid_start.c: New file.
55143         * lib/unictype/pr_zero_width.c: New file.
55144         * lib/unictype/scripts.c: New file.
55145         * lib/unictype/sy_c_ident.c: New file.
55146         * lib/unictype/sy_c_whitespace.c: New file.
55147         * lib/unictype/sy_java_ident.c: New file.
55148         * lib/unictype/sy_java_whitespace.c: New file.
55149
55150         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55151         Unicode 5.0.0.
55152         * lib/unictype/blocks.h: Likewise.
55153         * lib/unictype/categ_C.h: Likewise.
55154         * lib/unictype/categ_Cc.h: Likewise.
55155         * lib/unictype/categ_Cf.h: Likewise.
55156         * lib/unictype/categ_Cn.h: Likewise.
55157         * lib/unictype/categ_Co.h: Likewise.
55158         * lib/unictype/categ_Cs.h: Likewise.
55159         * lib/unictype/categ_L.h: Likewise.
55160         * lib/unictype/categ_Ll.h: Likewise.
55161         * lib/unictype/categ_Lm.h: Likewise.
55162         * lib/unictype/categ_Lo.h: Likewise.
55163         * lib/unictype/categ_Lt.h: Likewise.
55164         * lib/unictype/categ_Lu.h: Likewise.
55165         * lib/unictype/categ_M.h: Likewise.
55166         * lib/unictype/categ_Mc.h: Likewise.
55167         * lib/unictype/categ_Me.h: Likewise.
55168         * lib/unictype/categ_Mn.h: Likewise.
55169         * lib/unictype/categ_N.h: Likewise.
55170         * lib/unictype/categ_Nd.h: Likewise.
55171         * lib/unictype/categ_Nl.h: Likewise.
55172         * lib/unictype/categ_No.h: Likewise.
55173         * lib/unictype/categ_P.h: Likewise.
55174         * lib/unictype/categ_Pc.h: Likewise.
55175         * lib/unictype/categ_Pd.h: Likewise.
55176         * lib/unictype/categ_Pe.h: Likewise.
55177         * lib/unictype/categ_Pf.h: Likewise.
55178         * lib/unictype/categ_Pi.h: Likewise.
55179         * lib/unictype/categ_Po.h: Likewise.
55180         * lib/unictype/categ_Ps.h: Likewise.
55181         * lib/unictype/categ_S.h: Likewise.
55182         * lib/unictype/categ_Sc.h: Likewise.
55183         * lib/unictype/categ_Sk.h: Likewise.
55184         * lib/unictype/categ_Sm.h: Likewise.
55185         * lib/unictype/categ_So.h: Likewise.
55186         * lib/unictype/categ_Z.h: Likewise.
55187         * lib/unictype/categ_Zl.h: Likewise.
55188         * lib/unictype/categ_Zp.h: Likewise.
55189         * lib/unictype/categ_Zs.h: Likewise.
55190         * lib/unictype/categ_of.h: Likewise.
55191         * lib/unictype/combining.h: Likewise.
55192         * lib/unictype/ctype_alnum.h: Likewise.
55193         * lib/unictype/ctype_alpha.h: Likewise.
55194         * lib/unictype/ctype_blank.h: Likewise.
55195         * lib/unictype/ctype_cntrl.h: Likewise.
55196         * lib/unictype/ctype_digit.h: Likewise.
55197         * lib/unictype/ctype_graph.h: Likewise.
55198         * lib/unictype/ctype_lower.h: Likewise.
55199         * lib/unictype/ctype_print.h: Likewise.
55200         * lib/unictype/ctype_punct.h: Likewise.
55201         * lib/unictype/ctype_space.h: Likewise.
55202         * lib/unictype/ctype_upper.h: Likewise.
55203         * lib/unictype/ctype_xdigit.h: Likewise.
55204         * lib/unictype/decdigit.h: Likewise.
55205         * lib/unictype/digit.h: Likewise.
55206         * lib/unictype/mirror.h: Likewise.
55207         * lib/unictype/numeric.h: Likewise.
55208         * lib/unictype/pr_alphabetic.h: Likewise.
55209         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55210         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55211         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55213         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55214         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55215         * lib/unictype/pr_bidi_control.h: Likewise.
55216         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55217         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55218         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55219         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55220         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55221         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55222         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55223         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55224         * lib/unictype/pr_bidi_pdf.h: Likewise.
55225         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55226         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55227         * lib/unictype/pr_combining.h: Likewise.
55228         * lib/unictype/pr_composite.h: Likewise.
55229         * lib/unictype/pr_currency_symbol.h: Likewise.
55230         * lib/unictype/pr_dash.h: Likewise.
55231         * lib/unictype/pr_decimal_digit.h: Likewise.
55232         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55233         * lib/unictype/pr_deprecated.h: Likewise.
55234         * lib/unictype/pr_diacritic.h: Likewise.
55235         * lib/unictype/pr_extender.h: Likewise.
55236         * lib/unictype/pr_format_control.h: Likewise.
55237         * lib/unictype/pr_grapheme_base.h: Likewise.
55238         * lib/unictype/pr_grapheme_extend.h: Likewise.
55239         * lib/unictype/pr_grapheme_link.h: Likewise.
55240         * lib/unictype/pr_hex_digit.h: Likewise.
55241         * lib/unictype/pr_hyphen.h: Likewise.
55242         * lib/unictype/pr_id_continue.h: Likewise.
55243         * lib/unictype/pr_id_start.h: Likewise.
55244         * lib/unictype/pr_ideographic.h: Likewise.
55245         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55246         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55247         * lib/unictype/pr_ignorable_control.h: Likewise.
55248         * lib/unictype/pr_iso_control.h: Likewise.
55249         * lib/unictype/pr_join_control.h: Likewise.
55250         * lib/unictype/pr_left_of_pair.h: Likewise.
55251         * lib/unictype/pr_line_separator.h: Likewise.
55252         * lib/unictype/pr_logical_order_exception.h: Likewise.
55253         * lib/unictype/pr_lowercase.h: Likewise.
55254         * lib/unictype/pr_math.h: Likewise.
55255         * lib/unictype/pr_non_break.h: Likewise.
55256         * lib/unictype/pr_not_a_character.h: Likewise.
55257         * lib/unictype/pr_numeric.h: Likewise.
55258         * lib/unictype/pr_other_alphabetic.h: Likewise.
55259         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55260         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55261         * lib/unictype/pr_other_id_continue.h: Likewise.
55262         * lib/unictype/pr_other_id_start.h: Likewise.
55263         * lib/unictype/pr_other_lowercase.h: Likewise.
55264         * lib/unictype/pr_other_math.h: Likewise.
55265         * lib/unictype/pr_other_uppercase.h: Likewise.
55266         * lib/unictype/pr_paired_punctuation.h: Likewise.
55267         * lib/unictype/pr_paragraph_separator.h: Likewise.
55268         * lib/unictype/pr_pattern_syntax.h: Likewise.
55269         * lib/unictype/pr_pattern_white_space.h: Likewise.
55270         * lib/unictype/pr_private_use.h: Likewise.
55271         * lib/unictype/pr_punctuation.h: Likewise.
55272         * lib/unictype/pr_quotation_mark.h: Likewise.
55273         * lib/unictype/pr_radical.h: Likewise.
55274         * lib/unictype/pr_sentence_terminal.h: Likewise.
55275         * lib/unictype/pr_soft_dotted.h: Likewise.
55276         * lib/unictype/pr_space.h: Likewise.
55277         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55278         * lib/unictype/pr_titlecase.h: Likewise.
55279         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55280         * lib/unictype/pr_unified_ideograph.h: Likewise.
55281         * lib/unictype/pr_uppercase.h: Likewise.
55282         * lib/unictype/pr_variation_selector.h: Likewise.
55283         * lib/unictype/pr_white_space.h: Likewise.
55284         * lib/unictype/pr_xid_continue.h: Likewise.
55285         * lib/unictype/pr_xid_start.h: Likewise.
55286         * lib/unictype/pr_zero_width.h: Likewise.
55287         * lib/unictype/scripts.h: Likewise.
55288         * lib/unictype/scripts_byname.gperf: Likewise.
55289         * lib/unictype/sy_c_ident.h: Likewise.
55290         * lib/unictype/sy_c_whitespace.h: Likewise.
55291         * lib/unictype/sy_java_ident.h: Likewise.
55292         * lib/unictype/sy_java_whitespace.h: Likewise.
55293
55294         * lib/unictype/Makefile: New file.
55295         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55296         glibc.
55297         * lib/unictype/3level.h: New file, copied from glibc.
55298         * lib/unictype/3levelbit.h: New file.
55299
55300 2007-11-11  Bruno Haible  <bruno@clisp.org>
55301
55302         * modules/gperf: New file.
55303         * modules/iconv_open (Depends-on): Add it.
55304         (Makefile.am): Remove the GPERF definition.
55305
55306 2007-11-11  Bruno Haible  <bruno@clisp.org>
55307
55308         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55309         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55310
55311 2007-11-11  Bruno Haible  <bruno@clisp.org>
55312
55313         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55314         (usage): Remove function.
55315
55316 2007-11-11  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55319         gl_FUNC_CEILF_LIBS.
55320         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55321         gl_FUNC_CEIL_LIBS.
55322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55323         gl_FUNC_CEILL_LIBS.
55324         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55325         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55326         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55327
55328 2007-11-11  Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55331         roundf were declared but do not exist on functions.
55332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55333         roundl were declared but do not exist on functions.
55334         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55335         HAVE_FLOORL_AND_CEILL, respectively.
55336         Needed for Sun C on Solaris 10.
55337
55338 2007-11-11  Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55341         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55342         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55343         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55344         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55345         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55346         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55347         HAVE_DECL_ROUNDF.
55348         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55349         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55351         of HAVE_DECL_ROUND*.
55352         * modules/math (Makefile.am): Update.
55353
55354 2007-11-10  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55357         ptrdiff_t as m4/intl.m4.
55358
55359 2007-11-10  Jim Meyering  <meyering@redhat.com>
55360
55361         Avoid link failure for the argmatch test.
55362         * tests/test-argmatch.c (usage): Define function to avoid a link
55363         failure: argmatch_die requires a usage function.
55364
55365 2007-11-09  Bruno Haible  <bruno@clisp.org>
55366
55367         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55368         * doc/functions/vsnprintf.texi: Likewise.
55369         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55370         with a size argument < 2.
55371
55372 2007-11-09  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55375         buffer. Fixes an inefficiency introduced on 2007-11-03.
55376
55377 2007-11-09  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55380         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55381
55382 2007-11-08  Jim Meyering  <meyering@redhat.com>
55383
55384         Change cache variable name prefix "jm_" to "gl_" everywhere.
55385         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55386         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55387         * m4/uptime.m4: s/gl_/jm_/
55388
55389 2007-11-07  Bruno Haible  <bruno@clisp.org>
55390
55391         Update to GNU gettext 0.17.
55392         * m4/intl.m4: Update to GNU gettext 0.17.
55393         * m4/po.m4: Likewise.
55394         * modules/gettext (Files): Remove m4/ulonglong.m4.
55395         (configure.ac): Require gettext infrastructure from version 0.17.
55396
55397 2007-11-06  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55400         symbolic values are not defined in a public header.
55401         * lib/freadable.c (freadable) [QNX]: Likewise.
55402         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55403         * lib/freading.c (freading) [QNX]: Likewise.
55404         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55405         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55406         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55407         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55408         Reported by Alain Magloire.
55409
55410         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55411
55412 2007-11-05  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55415         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55416         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55417         Reported by Eric Blake.
55418
55419 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55420             Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55423         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55424         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55425         (malloc): Undefine also before including <stdlib.h>.
55426         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55427         Needed on OSF/1 4.0.
55428
55429 2007-11-05  Jim Meyering  <meyering@redhat.com>
55430
55431         git-version-gen: sync from coreutils.
55432         * build-aux/git-version-gen: Add comments.
55433         Change the first '-' to '.' in the snapshot version string,
55434         e.g., 6.9-377-08144 -> 6.9.377-08144
55435         Remove first parameter.
55436         Don't declare a version "-dirty" merely because a time
55437         stamp has changed.
55438
55439 2007-11-04  Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/lock.h: Protect all macro definitions containing an 'if'
55442         statement through a "do { ... } while (0)".
55443         * lib/tls.h: Likewise.
55444
55445 2007-11-04  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55448
55449 2007-11-04  Bruno Haible  <bruno@clisp.org>
55450
55451         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55452         * modules/fprintf-posix (Depends-on): Add nocrash.
55453         * modules/snprintf-posix (Depends-on): Likewise.
55454         * modules/sprintf-posix (Depends-on): Likewise.
55455         * modules/vasnprintf-posix (Depends-on): Likewise.
55456         * modules/vasprintf-posix (Depends-on): Likewise.
55457         * modules/vfprintf-posix (Depends-on): Likewise.
55458         * modules/vsnprintf-posix (Depends-on): Likewise.
55459         * modules/vsprintf-posix (Depends-on): Likewise.
55460         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55461         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55462         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55463         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55464         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55465         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55466         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55467
55468 2007-11-04  Bruno Haible  <bruno@clisp.org>
55469
55470         * modules/nocrash: New file.
55471         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55472         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55473
55474 2007-11-04  Bruno Haible  <bruno@clisp.org>
55475
55476         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55477         precision handling.
55478         * tests/test-vasprintf-posix.c (test_function): Likewise.
55479         * tests/test-snprintf-posix.h (test_function): Likewise.
55480         * tests/test-sprintf-posix.h (test_function): Likewise.
55481
55482         Fix *printf behaviour for large precisions on mingw and BeOS.
55483         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55484         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55486         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55488         gl_PRINTF_PRECISION and test its result. Invoke
55489         gl_PREREQ_VASNPRINTF_PRECISION.
55490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55497         * doc/functions/fprintf.texi: Update.
55498         * doc/functions/printf.texi: Update.
55499         * doc/functions/snprintf.texi: Update.
55500         * doc/functions/sprintf.texi: Update.
55501         * doc/functions/vfprintf.texi: Update.
55502         * doc/functions/vprintf.texi: Update.
55503         * doc/functions/vsnprintf.texi: Update.
55504         * doc/functions/vsprintf.texi: Update.
55505
55506 2007-11-04  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55509
55510 2007-11-04  Bruno Haible  <bruno@clisp.org>
55511
55512         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55513         Reported by Sylvain Beucler <beuc@gnu.org>.
55514
55515 2007-11-03  Bruno Haible  <bruno@clisp.org>
55516
55517         * tests/test-fprintf-posix2.sh: New file.
55518         * tests/test-fprintf-posix2.c: New file.
55519         * modules/fprintf-posix-tests (Files): Add them.
55520         (TESTS): Add test-fprintf-posix2.sh.
55521         (configure.ac): Check for getrlimit and setrlimit.
55522         (check_PROGRAMS): Add test-fprintf-posix2.
55523
55524         * tests/test-printf-posix2.sh: New file.
55525         * tests/test-printf-posix2.c: New file.
55526         * modules/printf-posix-tests (Files): Add them.
55527         (TESTS): Add test-printf-posix2.sh.
55528         (configure.ac): Check for getrlimit and setrlimit.
55529         (check_PROGRAMS): Add test-printf-posix2.
55530
55531         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55532         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55533         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55534         (decode_double): New function, copied from decode_long_double.
55535         (scale10_round_decimal_decoded): New function, extracted from
55536         scale10_round_decimal_long_double.
55537         (scale10_round_decimal_long_double): Use it.
55538         (scale10_round_decimal_double): New function.
55539         (floorlog10): New function.
55540         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55542         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55544         gl_PRINTF_ENOMEM and test its result. Invoke
55545         gl_PREREQ_VASNPRINTF_ENOMEM.
55546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55553         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55554         * modules/snprintf-posix (Depends-on): Likewise.
55555         * modules/sprintf-posix (Depends-on): Likewise.
55556         * modules/vasnprintf-posix (Depends-on): Likewise.
55557         * modules/vasprintf-posix (Depends-on): Likewise.
55558         * modules/vfprintf-posix (Depends-on): Likewise.
55559         * modules/vsnprintf-posix (Depends-on): Likewise.
55560         * modules/vsprintf-posix (Depends-on): Likewise.
55561         * doc/functions/fprintf.texi: Update.
55562         * doc/functions/printf.texi: Update.
55563         * doc/functions/snprintf.texi: Update.
55564         * doc/functions/sprintf.texi: Update.
55565         * doc/functions/vfprintf.texi: Update.
55566         * doc/functions/vprintf.texi: Update.
55567         * doc/functions/vsnprintf.texi: Update.
55568         * doc/functions/vsprintf.texi: Update.
55569
55570 2007-11-03  Bruno Haible  <bruno@clisp.org>
55571
55572         * modules/frexp-nolibm-tests: New file.
55573
55574         * modules/frexp-nolibm: New file.
55575         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55576
55577 2007-11-03  Bruno Haible  <bruno@clisp.org>
55578
55579         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55580         value is C99 compliant.
55581         Needed for OSF/1 5.1.
55582
55583 2007-11-03  Bruno Haible  <bruno@clisp.org>
55584
55585         Fix out-of-memory handling of vasnprintf.
55586         * lib/printf-parse.c: Include <errno.h>.
55587         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55588         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55589         is already set.
55590
55591 2007-11-02  Eric Blake  <ebb9@byu.net>
55592
55593         Fix tests on cygwin.
55594         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55595
55596 2007-11-01  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55599         warning.
55600         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55601         needed for POSIX compatibility.
55602
55603 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55604
55605         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55606         for compatibility with GNU.
55607
55608 2007-11-01  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55611         (putenv): Renamed from rpl_putenv. Change argument type from
55612         'const char *' to 'char *'.
55613         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55614         of defining putenv in config.h, just set REPLACE_PUTENV.
55615         * modules/putenv (Depends-on): Add stdlib.
55616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55617         (Include): Use <stdlib.h>.
55618         * lib/stdlib.in.h (putenv): New declaration.
55619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55620         REPLACE_PUTENV.
55621         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55622         REPLACE_PUTENV.
55623         Needed for MacOS X 10.5.0.
55624         Reported by Peter O'Gorman <peter@pogma.com>.
55625
55626 2007-11-01  Jim Meyering  <meyering@redhat.com>
55627
55628         Treat an empty date string exactly like "0".
55629         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55630         if the remaining date string (to be parsed) is empty, use "0".
55631         Reported by Mischa Molhoek and discussed in this thread:
55632         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55633
55634 2007-10-31  Bruno Haible  <bruno@clisp.org>
55635
55636         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55637         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55638         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55639         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55640         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55641         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55642
55643 2007-10-31  Bruno Haible  <bruno@clisp.org>
55644
55645         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55646         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55647         (AC_TYPE_LONG_LONG_INT): Use it.
55648         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55649         it as well.
55650         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55651         to m4/longlong.m4.
55652         * modules/stdint (Files): Remove m4/ulonglong.m4.
55653         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55654         m4/ulonglong.m4.
55655         * modules/strtoumax (Files): Likewise.
55656
55657 2007-10-30  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/xvasprintf-posix: New file.
55660         Suggested by Eric Blake.
55661
55662 2007-10-30  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/xprintf-posix-tests: New file.
55665         * tests/test-xprintf-posix.sh: New file.
55666         * tests/test-xprintf-posix.c: New file.
55667         * tests/test-xfprintf-posix.c: New file.
55668
55669         * modules/xprintf-posix: New file.
55670
55671 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55672
55673         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55674         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55675         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55676
55677 2007-10-29  Bruno Haible  <bruno@clisp.org>
55678
55679         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55680         contain the special marker '_cv_'.
55681         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55682         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55683         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55684         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55686         Reported by Ralf Wildenhues.
55687
55688 2007-10-29  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (func_import): When --lgpl is not specified, set
55691         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55692         GPLv3.
55693         Reported by Simon Josefsson.
55694
55695 2007-10-28  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55698         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55699         HAVE_DECL_ISFINITE.
55700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55701         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55702         HAVE_DECL_ISFINITE.
55703
55704 2007-10-28  Bruno Haible  <bruno@clisp.org>
55705
55706         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55707         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55708
55709 2007-10-28  Bruno Haible  <bruno@clisp.org>
55710
55711         Fix link errors with Sun C 5.0 on Solaris 10.
55712         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55713         function is declared but not present in the compiler's libm.
55714         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55715         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55716         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55717         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55718         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55719         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55720         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55722         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55723         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55724         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55725         HAVE_DECL_FLOORL.
55726
55727 2007-10-28  Bruno Haible  <bruno@clisp.org>
55728
55729         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55730         gl_FUNC_FLOORL. Cache the result.
55731         (gl_FUNC_FLOORL): Use it.
55732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55733         gl_FUNC_CEILL. Cache the result.
55734         (gl_FUNC_CEILL): Use it.
55735
55736         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55737         gl_FUNC_FLOOR. Cache the result.
55738         (gl_FUNC_FLOOR): Use it.
55739         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55740         gl_FUNC_CEIL. Cache the result.
55741         (gl_FUNC_CEIL): Use it.
55742
55743         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55744         gl_FUNC_FLOORF. Cache the result.
55745         (gl_FUNC_FLOORF): Use it.
55746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55747         gl_FUNC_CEILF. Cache the result.
55748         (gl_FUNC_CEILF): Use it.
55749
55750 2007-10-28  Bruno Haible  <bruno@clisp.org>
55751
55752         * gnulib-tool: Allow specifying the LGPL version number through
55753         --lgpl=2 or --lgpl=3.
55754         (func_usage): Document --lgpl with argument.
55755         Handle --lgpl=... arguments.
55756         (func_import): Recognize also gl_LGPL calls with an argument. When
55757         --lgpl=2 is used and the module's license is just LGPL, report an
55758         error. Set sed_transform_lib_file according to the lgpl variable. In
55759         the generated files, use --lgpl or gl_LGPL invocations with argument,
55760         if necessary.
55761         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55762         an LGPv2+ license.
55763         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55764         gl_LGPL macro.
55765
55766 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55767             Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55770         (u16_uctomb_aux): Likewise.
55771         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55772         !HAVE_INLINE.
55773         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55774
55775 2007-10-28  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55778         Invoke AM_GETTEXT_OPTION if it exists.
55779         * modules/vasprintf: Likewise.
55780         * modules/verror: Likewise.
55781         * modules/xprintf: Likewise.
55782         * modules/xvasprintf: Likewise.
55783
55784 2007-10-27  Ben Pfaff  <blp@gnu.org>
55785
55786         * lib/math.in.h: Define isfinite macro and prototypes for
55787         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55788         implementations.
55789         * m4/math_h.m4: New substitutions for isfinite module.
55790         * lib/isfinite.c: New file.
55791         * m4/isfinite.m4: New file.
55792         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55793         * modules/isfinite: New file.
55794         * modules/isfinite-tests: New file.
55795         * tests/tests-isfinite.c: New file.
55796         * doc/functions/isfinite.texi: Mention isfinite module.
55797         * MODULES.html.sh: Mention new module.
55798
55799 2007-10-27  Ben Pfaff  <blp@gnu.org>
55800
55801         Ralf Wildenhues reported that Tru64 4.0D declares the round
55802         functions but does not have definitions.
55803         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55804         cannot be found in any library, set the output variable to
55805         "missing" instead of "".
55806         * m4/round.m4: Also use our substitute if we cannot find round in
55807         any library, even if it is declared.
55808         * m4/roundf.m4: Likewise for roundf.
55809         * m4/roundl.m4: Likewise for roundl.
55810         * lib/math.in.h: Undefine roundf, round, roundl before defining
55811         their replacements, to allow for hypothetical systems where these
55812         may be defined as macros but not available in libraries.
55813
55814 2007-10-27  Bruno Haible  <bruno@clisp.org>
55815
55816         * doc/gnulib.texi: Invoke @firstparagraphindent.
55817         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55818         changes in gnulib.
55819         (Source changes): New section.
55820
55821 2007-10-26  Bruno Haible  <bruno@clisp.org>
55822
55823         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55824         borrowed from autoconf.
55825
55826 2007-10-26  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55829         strerror returned the empty string. Needed on HP-UX 11.00.
55830
55831 2007-10-24  Micah Cowan  <micah@cowan.name>
55832
55833         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55834         * build-aux/bootstrap: Remove support for now-unnecessary option,
55835         --cvs-user, and envvars CVS_USER, CVS_RSH.
55836
55837 2007-10-24  Jim Meyering  <meyering@redhat.com>
55838
55839         Avoid diagnostics from sha1sum when there is no cached checksum.
55840         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55841         if the po.s1 file hasn't been created yet.
55842
55843         * build-aux/bootstrap: Sync from coreutils:
55844         2007-10-24  Jim Meyering  <meyering@redhat.com>
55845         Get gnulib from the git repository, not from an obsolete cvs one.
55846         * build-aux/bootstrap: Suggestion from Micah Cowan.
55847         2007-10-04  Jim Meyering  <jim@meyering.net>
55848         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55849         (update_po_files): Work also when there are no .po files in po/.
55850
55851 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55852
55853         * README: Append ".git" to git and cg examples.
55854         Problem reported by Benoit Sigoure.
55855
55856 2007-10-23  Micah Cowan  <micah@cowan.name>
55857
55858         * users.txt: Add wget.
55859
55860 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55861
55862         Fix linking of some unistdio tests on FreeBSD.
55863         * modules/unistdio/u16-vsnprintf-tests
55864         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55865         * modules/unistdio/u16-vsprintf-tests
55866         (test_u16_vsnprintf1_LDADD): Likewise.
55867         * modules/unistdio/u32-vsnprintf-tests
55868         (test_u32_vsnprintf1_LDADD): Likewise.
55869         * modules/unistdio/u32-vsprintf-tests
55870         (test_u32_vsprintf1_LDADD): Likewise.
55871         * modules/unistdio/u8-vsnprintf-tests
55872         (test_u8_vsnprintf1_LDADD): Likewise.
55873         * modules/unistdio/u8-vsprintf-tests
55874         (test_u8_vsprintf1_LDADD): Likewise.
55875         * modules/unistdio/ulc-vsnprintf-tests
55876         (test_ulc_vsnprintf1_LDADD): Likewise.
55877         * modules/unistdio/ulc-vsprintf-tests
55878         (test_ulc_vsprintf1_LDADD): Likewise.
55879
55880         Fix linking of some uniconv tests on FreeBSD.
55881         * modules/uniconv/u16-conv-from-enc-tests
55882         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55883         * modules/uniconv/u16-conv-to-enc-tests
55884         (test_u16_conv_to_enc_LDADD): Likewise.
55885         * modules/uniconv/u16-strconv-from-enc-tests
55886         (test_u16_strconv_from_enc_LDADD): Likewise.
55887         * modules/uniconv/u16-strconv-to-enc-tests
55888         (test_u16_strconv_to_enc_LDADD): Likewise.
55889         * modules/uniconv/u32-conv-from-enc-tests
55890         (test_u32_conv_from_enc_LDADD): Likewise.
55891         * modules/uniconv/u32-conv-to-enc-tests
55892         (test_u32_conv_to_enc_LDADD): Likewise.
55893         * modules/uniconv/u32-strconv-from-enc-tests
55894         (test_u32_strconv_from_enc_LDADD): Likewise.
55895         * modules/uniconv/u32-strconv-to-enc-tests
55896         (test_u32_strconv_to_enc_LDADD): Likewise.
55897         * modules/uniconv/u8-conv-from-enc-tests
55898         (test_u8_conv_from_enc_LDADD): Likewise.
55899         * modules/uniconv/u8-conv-to-enc-tests
55900         (test_u8_conv_to_enc_LDADD): Likewise.
55901         * modules/uniconv/u8-strconv-from-enc-tests
55902         (test_u8_strconv_from_enc_LDADD): Likewise.
55903         * modules/uniconv/u8-strconv-to-enc-tests
55904         (test_u8_strconv_to_enc_LDADD): Likewise.
55905
55906 2007-10-22  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55909         size.
55910
55911 2007-10-22  Eric Blake  <ebb9@byu.net>
55912
55913         Tweak x*printf documentation.
55914         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55915         variable name and comments.
55916         Suggested by Bruno Haible.
55917
55918 2007-10-22  Bruno Haible  <bruno@clisp.org>
55919
55920         * lib/acl.c (copy_acl): Fix file name in comment.
55921
55922 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55923
55924         Fix Tru64 problem with stdbool.h.
55925         * lib/stdbool.in.h (false, true):
55926         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55927         Don't declare as an enum in this situation; it runs afoul of Tru64.
55928         Problem reported by Steven M. Schweda in
55929         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55930
55931 2007-10-22  Eric Blake  <ebb9@byu.net>
55932
55933         Also wrap vf?printf.
55934         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55935         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55936         (xvprintf, xvfprintf): New functions.
55937
55938 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55939
55940         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55941         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55942
55943         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55944         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55945
55946 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55949         by Bruno Haible.
55950
55951 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55952
55953         * lib/getloadavg.c
55954         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55955         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55956
55957         * tests/test-i-ring.c: Work for C89.
55958
55959 2007-10-22  Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55962         -1u, in preprocessor expression, so that we don't test for the bug
55963         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55965
55966 2007-10-22  Eric Blake  <ebb9@byu.net>
55967
55968         * tests/test-yesno.sh: Silence stderr during test.
55969
55970 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55971
55972         * modules/crypto/gc-camellia: New file.
55973
55974         * m4/gc-camellia.m4: New file.
55975
55976         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55977
55978         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55979
55980 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55981
55982         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55983         --help to stdout.  Reported by sms@antinode.org (Steven
55984         M. Schweda).
55985
55986 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55987
55988         * users.txt: Fix link to libksba.
55989
55990 2007-10-21  Ben Pfaff  <blp@gnu.org>
55991
55992         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55993         round.c roundf implementation that depends on floorf and ceilf to
55994         be tested unconditionally.
55995
55996 2007-10-21  Ben Pfaff  <blp@gnu.org>
55997
55998         * m4/check-libm-func.m4: Removed.
55999         * m4/check-math-lib.m4: New file.
56000         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56001         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56002         definition and lack of AC_LIBOBJ([roundf]).
56003         * m4/roundl.m4: Ditto, and similarly for roundl.
56004         * modules/round: Reference new m4 file.
56005         * modules/roundf: Ditto.
56006         * modules/roundl: Ditto.
56007         * tests/test-round2.c (main): Use ROUND instead of round.
56008         Bug report from Bruno Haible.
56009
56010 2007-10-21  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56013         context.
56014
56015 2007-10-21  Bruno Haible  <bruno@clisp.org>
56016
56017         * tests/test-wcwidth.c (main): Allow negative result for some control
56018         characters.
56019
56020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56021         Needed on OSF/1 5.1.
56022
56023 2007-10-21  Bruno Haible  <bruno@clisp.org>
56024
56025         * tests/test-floorf1.c: Include isnanf.h.
56026         (main): Use isnanf() instead of isnan().
56027         * tests/test-ceilf1.c: Include isnanf.h.
56028         (main): Use isnanf() instead of isnan().
56029         * tests/test-truncf1.c: Include isnanf.h.
56030         (main): Use isnanf() instead of isnan().
56031         * tests/test-roundf1.c: Include isnanf.h.
56032         (main): Use isnanf() instead of isnan().
56033
56034 2007-10-21  Eric Blake  <ebb9@byu.net>
56035
56036         * users.txt: Update URL for m4.
56037
56038 2007-10-21  Bruno Haible  <bruno@clisp.org>
56039
56040         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56041
56042 2007-10-21  Bruno Haible  <bruno@clisp.org>
56043
56044         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56045         Git's management files if the CVS files are not present.
56046
56047 2007-10-20  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56050         gcc-3.4.x.
56051
56052 2007-10-20  Ben Pfaff  <blp@gnu.org>
56053
56054         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56055         implementations.
56056         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56057         * lib/round.c: New file.
56058         * lib/roundf.c: New file.
56059         * lib/roundl.c: New file.
56060         * m4/round.m4: New file.
56061         * m4/roundf.m4: New file.
56062         * m4/roundl.m4: New file.
56063         * m4/check-libm-func-m4: New file.
56064         * modules/math: Replace round, roundf, roundl related @VARS@ in
56065         math.in.h.
56066         * modules/round: New file.
56067         * modules/round-tests: New file.
56068         * modules/roundf: New file.
56069         * modules/roundf-tests: New file.
56070         * modules/roundl: New file.
56071         * modules/roundl-tests: New file.
56072         * tests/test-round1.c: New file.
56073         * tests/test-round2.c: New file.
56074         * tests/test-roundf1.c: New file.
56075         * tests/test-roundf2.c: New file.
56076         * tests/test-roundl.c: New file.
56077         * doc/functions/round.texi: Mention round module.
56078         * doc/functions/roundf.texi: Mention roundf module.
56079         * doc/functions/roundl.texi: Mention roundl module.
56080         * MODULES.html.sh: Mention new modules.
56081         Thanks to Bruno Haible for suggestions.
56082
56083 2007-10-20  Jim Meyering  <meyering@redhat.com>
56084
56085         * lib/xprintf.c: Include <config.h> unconditionally.
56086
56087         Change xprintf's license to GPL.
56088         * modules/xprintf (License): s/LGPL/GPL/, since this module
56089         depends on modules (exit and exitfail) which are GPL.
56090         Suggestion from Bruno Haible.
56091
56092         xprintf fixes.
56093         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56094         Use a clearer diagnostic.
56095         Patch from Bruno Haible.
56096
56097 2007-10-20  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56100         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56102
56103 2007-10-20  Bruno Haible  <bruno@clisp.org>
56104
56105         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56106         precision in the comparison result > x - 1 or similar.
56107         * tests/test-ceilf2.c (correct_result_p): Likewise.
56108         * tests/test-truncf2.c (correct_result_p): Likewise.
56109         * tests/test-trunc2.c (correct_result_p): Likewise.
56110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56111
56112 2007-10-20  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/ceil: New file.
56115         * m4/ceil.m4: New file.
56116         * doc/functions/ceil.texi: Mention the 'ceil' module.
56117
56118 2007-10-20  Bruno Haible  <bruno@clisp.org>
56119
56120         * modules/floor: New file.
56121         * m4/floor.m4: New file.
56122         * doc/functions/floor.texi: Mention the 'floor' module.
56123
56124 2007-10-20  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56127         of %a.
56128         * modules/floorf-tests (Depends-on): Likewise.
56129         * modules/truncf-tests (Depends-on): Likewise.
56130         * modules/trunc-tests (Depends-on): Likewise.
56131         Reported by Ben Pfaff.
56132
56133 2007-10-19  Jim Meyering  <meyering@redhat.com>
56134
56135         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56136         Don't bother testing specific errno values.  Just test ferror.
56137
56138         New module: xprintf
56139         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56140
56141 2007-10-19  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56144         syntax.
56145         * modules/javaexec (Makefile.am): Likewise.
56146         * modules/relocatable-prog (Makefile.am): Likewise.
56147         Suggested by Jim Meyering.
56148
56149 2007-10-18  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56152         Reported by Jim Meyering.
56153
56154 2007-10-18  Eric Blake  <ebb9@byu.net>
56155
56156         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56157
56158 2007-10-18  Bruno Haible  <bruno@clisp.org>
56159
56160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56161         the format string into writable memory. Needed in Fortify conditions.
56162
56163 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56164             Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56167         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56168         * modules/trim (Depends-on): Add mbchar.
56169         (configure.ac): Add gl_FUNC_MBRTOWC.
56170         (Makefile.am): Augment lib_SOURCES.
56171
56172 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         Modify glob.c to use fstatat and dirfd, to simplify it.
56175         Suggested by Eric Blake.
56176         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56177         Don't include <stdbool.h>; not used.
56178         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56179         (link_exists_p): Simplify implementation, since we can now assume
56180         dirfd and fstatat.
56181         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56182
56183 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56184
56185         * gnulib-tool (func_get_dependencies): Fix sed script to
56186         match only tests.
56187
56188 2007-10-17  Bruno Haible  <bruno@clisp.org>
56189
56190         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56191         allow locale names without encoding suffix.
56192         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56193         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56194
56195 2007-10-16  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56198         * lib/getgroups.c (getgroups): Likewise.
56199         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56200
56201 2007-10-16  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56204         * modules/malloc-posix (License): Likewise.
56205         * modules/realloc-posix (License): Likewise.
56206         * modules/calloc-posix (License): Likewise.
56207         * modules/intprops (License): Change from GPL to LGPL, with
56208         Paul Eggert's approval.
56209
56210 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56211
56212         Merge glibc changes into lib/glob.c.
56213
56214         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56215         2007-10-15 04:59:03 UTC.  Here are the changes:
56216
56217         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56218
56219         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56220
56221         * lib/glob.c: Add some branch prediction throughout.
56222
56223         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56224
56225         [BZ #5103]
56226         * lib/glob.c (glob): Recognize patterns starting \/.
56227
56228         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56229
56230         [BZ #3996]
56231         * lib/glob.c (attribute_hidden): Define if not defined.
56232         (glob): Unescape dirname, filename or username when needed and not
56233         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56234         is NULL.  Handle unescaped [ in pattern without closing ].
56235         Don't pass GLOB_CHECK down to recursive glob for directories.
56236         (__glob_pattern_type): New function.
56237         (__glob_pattern_p): Implement using __glob_pattern_type.
56238         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56239         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56240         Remove unreachable code.
56241
56242         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56243
56244         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56245         explain why there are no leaks.
56246
56247         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56248
56249         [BZ #3253]
56250         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56251         time, rather allocate increasingly bigger arrays of pointers, if
56252         possible with alloca, if too large with malloc.
56253
56254 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56255
56256         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56257         Problem reported by H.Merijn Brand in
56258         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56260         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56261
56262 2007-10-15  Bruno Haible  <bruno@clisp.org>
56263
56264         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56265         with explicit rpl_ prefix.
56266         * lib/fopen.c (fopen): Likewise.
56267         * lib/freopen.c (freopen): Likewise.
56268         * lib/iconv.c (iconv): Likewise.
56269         * lib/iconv_close.c (iconv_close): Likewise.
56270
56271 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56272
56273         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56274
56275 2007-10-15  Bruno Haible  <bruno@clisp.org>
56276
56277         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56278         <stddef.h> instead of <stdlib.h> since we only need NULL.
56279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56280
56281 2007-10-15  Bruno Haible  <bruno@clisp.org>
56282
56283         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56284         Replace paragraph talking about LIBOBJS.
56285         Reported by Colin Watson <cjwatson@debian.org>.
56286
56287 2007-10-15  Bruno Haible  <bruno@clisp.org>
56288
56289         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56290         <stdlib.h> before using NULL.
56291
56292 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56293
56294         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56295         Reported by Albert Chin <china@thewrittenword.com>.
56296
56297 2007-10-14  Bruno Haible  <bruno@clisp.org>
56298
56299         * modules/iconv_open-utf-tests: New file.
56300         * tests/test-iconv-utf.c: New file.
56301
56302         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56303         * modules/iconv_open-utf: New file.
56304         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56305         (iconv, iconv_close): New declarations.
56306         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56307         be defined.
56308         (iconv_open): Add special handling of conversion between UTF-8 and
56309         UTF-{16,32}{BE,LE}.
56310         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56311         * lib/iconv_close.c: New file.
56312         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56313         gl_FUNC_ICONV_OPEN.
56314         (gl_FUNC_ICONV_OPEN): Use it.
56315         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56316         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56317         and REPLACE_ICONV_UTF.
56318         * modules/iconv_open (Depends-on): Add c-strcase.
56319         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56320         ICONV_CONST.
56321         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56322
56323 2007-10-13  Albert Chin  <china@thewrittenword.com>
56324             Bruno Haible  <bruno@clisp.org>
56325
56326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56327         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56328
56329 2007-10-13  Bruno Haible  <bruno@clisp.org>
56330
56331         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56332         defined, use the ISO C99 inline semantics.
56333         * lib/argp.h (ARGP_EI): Likewise.
56334
56335 2007-10-13  Bruno Haible  <bruno@clisp.org>
56336
56337         Handle 'inline' change in gcc 4.3.0.
56338         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56339         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56340         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56341         argp_fmtstream_point): Disable 'extern' declaration if the function
56342         definition is going to be provided inline.
56343         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56344         semantics, not the ISO C99 inline semantics.
56345         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56346         'extern' declaration if the function definition is going to be provided
56347         inline.
56348         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56349         the GNU C inline semantics, not the ISO C99 inline semantics. With
56350         GCC 4.2, avoid a warning.
56351
56352 2007-10-13  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/freading.h (freading): Enable the use of __freading for
56355         glibc >= 2.7.
56356         * lib/freading.c (freading): Likewise.
56357
56358 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56359
56360         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56361         "warning: C99 inline functions are not supported; using GNU89".
56362
56363 2007-10-12  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56366         of 2.
56367         * tests/test-ceilf2.c: New file.
56368         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56369
56370         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56371         * modules/ceilf-tests: Update.
56372
56373 2007-10-12  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56376         of 2.
56377         * tests/test-floorf2.c: New file.
56378         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56379
56380         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56381         * modules/floorf-tests: Update.
56382
56383 2007-10-12  Bruno Haible  <bruno@clisp.org>
56384
56385         * tests/test-trunc2.c: New file.
56386         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56387
56388         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56389         * modules/trunc-tests: Update.
56390
56391 2007-10-12  Bruno Haible  <bruno@clisp.org>
56392
56393         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56394         of 2.
56395         * tests/test-truncf2.c: New file.
56396         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56397
56398         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56399         * modules/truncf-tests: Update.
56400
56401 2007-10-11  Eric Blake  <ebb9@byu.net>
56402
56403         Don't claim strerror is broken on Interix.
56404         * doc/functions/strerror.texi (strerror): Known broken systems are
56405         now Solaris 8, and not Interix.
56406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56407         Interix on cross-compile.
56408         Reported by Martin Koeppe in
56409         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56410
56411 2007-10-11  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/i-ring-tests: New file.
56414         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56415         instead of assert.
56416
56417 2007-10-11  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/filenamecat-tests: New file.
56420         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56421         * lib/filenamecat.c: Remove test code.
56422
56423 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56426
56427         * lib/strerror.c: Include <string.h> always, to test interface,
56428         and to remove the need for the dummy.
56429         Include intprops.h to compute width instead of doing it ourselves
56430         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56431         (strerror): Define it to return NULL if there's no system strerror.
56432         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56433         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56434         ancient pre-strerror Unix systems well any more.  Saying "unknown
56435         system error" is enough.
56436         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56437         simpler strerror.c implementation.
56438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56439         Simplify the tests to reflect the simpler strerror implementation.
56440         * modules/strerror (Depends-on): Add intprops.
56441
56442 2007-10-09  Eric Blake  <ebb9@byu.net>
56443
56444         Silence test-fpending.
56445         * modules/fpending-tests (Files): Add wrapper script.
56446         * tests/test-fpending.sh: New file.
56447
56448 2007-10-09  Bruno Haible  <bruno@clisp.org>
56449
56450         * MODULES.html.sh (func_module): Don't create a hyperlink for
56451         function names like 'printf_frexp'.
56452         (Misc): Add crc, memxor.
56453         (Characteristics of floating types): New section.
56454         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56455         isnanf-nolibm, signbit, trunc, truncf, truncl.
56456         (Enhancements for ISO C 99 functions): New subsection Input/output.
56457         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56458         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56459         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56460         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56461         (Enhancements for POSIX:2001 functions): Add chdir-long.
56462         (File system functions): Add areadlink, chdir-safer, read-file.
56463         Remove cycle-check.
56464         (File system as inode set): New section.
56465         (Date and time): Add gethrxtime.
56466         (Multithreading): Add openmp.
56467         (Internationalization functions): Add localename.
56468         (Unicode string functions): Add unistr/u*-mbsnlen.
56469         (Support for maintaining and releasing projects): Add git-version-gen.
56470         (Lone files): Remove directories.
56471
56472 2007-10-08  Ben Pfaff  <blp@gnu.org>
56473
56474         * lib/xmalloca.h: Fix typo in comment.
56475
56476 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56479         when avoiding problems with integer overflow.  Use a portable test
56480         instead.
56481
56482 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56483
56484         * modules/dummy (License): Change to LGPLv2+.
56485         * modules/float (License): Likewise
56486         * modules/realloc (License): Likewise
56487         * modules/stdlib (License): Likewise
56488
56489 2007-10-07  Bruno Haible  <bruno@clisp.org>
56490
56491         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56492         * floor.c (TWO_MANT_DIG): Likewise.
56493         * ceil.c (TWO_MANT_DIG): Likewise.
56494         Reported by Ben Pfaff.
56495
56496 2007-10-07  Bruno Haible  <bruno@clisp.org>
56497
56498         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56499         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56500         * lib/frexp.c (FUNC): Likewise.
56501         * lib/printf-frexp.h (printf_frexp): Likewise.
56502         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56503         * lib/printf-frexp.c (FUNC): Likewise.
56504         Suggested by Jim Meyering.
56505
56506 2007-10-07  Jim Meyering  <meyering@redhat.com>
56507
56508         Make xnanosleep's integer overflow test more robust.
56509         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56510         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56511
56512 2007-10-07  Bruno Haible  <bruno@clisp.org>
56513
56514         * NEWS: Mention the license change.
56515
56516         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56517         abbreviations in the modules files.
56518
56519         Change copyright notice from GPLv2+ to GPLv3+.
56520         * README: Change copyright notice.
56521         * MODULES.html.sh: Likewise.
56522         * build-aux/bootstrap.conf: Likewise.
56523         * build-aux/config.libpath: Likewise.
56524         * build-aux/csharpcomp.sh.in: Likewise.
56525         * build-aux/csharpexec.sh.in: Likewise.
56526         * build-aux/install-reloc: Likewise.
56527         * build-aux/javacomp.sh.in: Likewise.
56528         * build-aux/javaexec.sh.in: Likewise.
56529         * build-aux/ldd.sh.in: Likewise.
56530         * build-aux/reloc-ldflags: Likewise.
56531         * build-aux/relocatable.sh.in: Likewise.
56532         * build-aux/x-to-1.in: Likewise.
56533         * check-module: Likewise.
56534         * config/srclistvars.sh: Likewise.
56535         * gnulib-tool: Likewise.
56536         * lib/acl-internal.h: Likewise.
56537         * lib/acl.c: Likewise.
56538         * lib/acl.h: Likewise.
56539         * lib/acl_entries.c: Likewise.
56540         * lib/areadlink-with-size.c: Likewise.
56541         * lib/areadlink.c: Likewise.
56542         * lib/areadlink.h: Likewise.
56543         * lib/argmatch.c: Likewise.
56544         * lib/argmatch.h: Likewise.
56545         * lib/argp-ba.c: Likewise.
56546         * lib/argp-eexst.c: Likewise.
56547         * lib/argp-fmtstream.c: Likewise.
56548         * lib/argp-fmtstream.h: Likewise.
56549         * lib/argp-fs-xinl.c: Likewise.
56550         * lib/argp-help.c: Likewise.
56551         * lib/argp-namefrob.h: Likewise.
56552         * lib/argp-parse.c: Likewise.
56553         * lib/argp-pin.c: Likewise.
56554         * lib/argp-pv.c: Likewise.
56555         * lib/argp-pvh.c: Likewise.
56556         * lib/argp-xinl.c: Likewise.
56557         * lib/argp.h: Likewise.
56558         * lib/at-func.c: Likewise.
56559         * lib/atanl.c: Likewise.
56560         * lib/backupfile.c: Likewise.
56561         * lib/backupfile.h: Likewise.
56562         * lib/basename.c: Likewise.
56563         * lib/binary-io.h: Likewise.
56564         * lib/byteswap.in.h: Likewise.
56565         * lib/c-stack.c: Likewise.
56566         * lib/c-stack.h: Likewise.
56567         * lib/c-strcasestr.c: Likewise.
56568         * lib/c-strcasestr.h: Likewise.
56569         * lib/c-strstr.c: Likewise.
56570         * lib/c-strstr.h: Likewise.
56571         * lib/c-strtod.c: Likewise.
56572         * lib/calloc.c: Likewise.
56573         * lib/canon-host.c: Likewise.
56574         * lib/canon-host.h: Likewise.
56575         * lib/canonicalize-lgpl.c: Likewise.
56576         * lib/canonicalize.c: Likewise.
56577         * lib/canonicalize.h: Likewise.
56578         * lib/ceil.c: Likewise.
56579         * lib/ceilf.c: Likewise.
56580         * lib/ceill.c: Likewise.
56581         * lib/chdir-long.c: Likewise.
56582         * lib/chdir-long.h: Likewise.
56583         * lib/chdir-safer.c: Likewise.
56584         * lib/chdir-safer.h: Likewise.
56585         * lib/chown.c: Likewise.
56586         * lib/classpath.c: Likewise.
56587         * lib/classpath.h: Likewise.
56588         * lib/clean-temp.c: Likewise.
56589         * lib/clean-temp.h: Likewise.
56590         * lib/cloexec.c: Likewise.
56591         * lib/close-stream.c: Likewise.
56592         * lib/closein.c: Likewise.
56593         * lib/closein.h: Likewise.
56594         * lib/closeout.c: Likewise.
56595         * lib/closeout.h: Likewise.
56596         * lib/concat-filename.c: Likewise.
56597         * lib/copy-file.c: Likewise.
56598         * lib/copy-file.h: Likewise.
56599         * lib/count-one-bits.h: Likewise.
56600         * lib/crc.c: Likewise.
56601         * lib/crc.h: Likewise.
56602         * lib/creat-safer.c: Likewise.
56603         * lib/csharpcomp.c: Likewise.
56604         * lib/csharpcomp.h: Likewise.
56605         * lib/csharpexec.c: Likewise.
56606         * lib/csharpexec.h: Likewise.
56607         * lib/cycle-check.c: Likewise.
56608         * lib/cycle-check.h: Likewise.
56609         * lib/diacrit.c: Likewise.
56610         * lib/diacrit.h: Likewise.
56611         * lib/diffseq.h: Likewise.
56612         * lib/dirchownmod.c: Likewise.
56613         * lib/dirent.in.h: Likewise.
56614         * lib/dirfd.c: Likewise.
56615         * lib/dirfd.h: Likewise.
56616         * lib/dirname.c: Likewise.
56617         * lib/dirname.h: Likewise.
56618         * lib/dummy.c: Likewise.
56619         * lib/dup-safer.c: Likewise.
56620         * lib/dup2.c: Likewise.
56621         * lib/eealloc.h: Likewise.
56622         * lib/error.c: Likewise.
56623         * lib/error.h: Likewise.
56624         * lib/euidaccess.c: Likewise.
56625         * lib/exclude.c: Likewise.
56626         * lib/exclude.h: Likewise.
56627         * lib/execute.c: Likewise.
56628         * lib/execute.h: Likewise.
56629         * lib/exitfail.c: Likewise.
56630         * lib/exitfail.h: Likewise.
56631         * lib/expl.c: Likewise.
56632         * lib/fatal-signal.c: Likewise.
56633         * lib/fatal-signal.h: Likewise.
56634         * lib/fbufmode.c: Likewise.
56635         * lib/fbufmode.h: Likewise.
56636         * lib/fchdir.c: Likewise.
56637         * lib/fchmodat.c: Likewise.
56638         * lib/fchownat.c: Likewise.
56639         * lib/fcntl--.h: Likewise.
56640         * lib/fcntl-safer.h: Likewise.
56641         * lib/fcntl.in.h: Likewise.
56642         * lib/fd-safer.c: Likewise.
56643         * lib/fflush.c: Likewise.
56644         * lib/file-has-acl.c: Likewise.
56645         * lib/file-set.c: Likewise.
56646         * lib/file-type.c: Likewise.
56647         * lib/file-type.h: Likewise.
56648         * lib/fileblocks.c: Likewise.
56649         * lib/filemode.c: Likewise.
56650         * lib/filemode.h: Likewise.
56651         * lib/filename.h: Likewise.
56652         * lib/filenamecat.c: Likewise.
56653         * lib/filenamecat.h: Likewise.
56654         * lib/findprog.c: Likewise.
56655         * lib/findprog.h: Likewise.
56656         * lib/float.in.h: Likewise.
56657         * lib/floor.c: Likewise.
56658         * lib/floorf.c: Likewise.
56659         * lib/floorl.c: Likewise.
56660         * lib/fopen-safer.c: Likewise.
56661         * lib/fopen.c: Likewise.
56662         * lib/fpending.c: Likewise.
56663         * lib/fpending.h: Likewise.
56664         * lib/fprintf.c: Likewise.
56665         * lib/fprintftime.h: Likewise.
56666         * lib/fpucw.h: Likewise.
56667         * lib/fpurge.c: Likewise.
56668         * lib/fpurge.h: Likewise.
56669         * lib/freadable.c: Likewise.
56670         * lib/freadable.h: Likewise.
56671         * lib/freadahead.c: Likewise.
56672         * lib/freadahead.h: Likewise.
56673         * lib/freading.c: Likewise.
56674         * lib/freading.h: Likewise.
56675         * lib/free.c: Likewise.
56676         * lib/freopen.c: Likewise.
56677         * lib/frexp.c: Likewise.
56678         * lib/frexpl.c: Likewise.
56679         * lib/fseek.c: Likewise.
56680         * lib/fseterr.c: Likewise.
56681         * lib/fseterr.h: Likewise.
56682         * lib/fstatat.c: Likewise.
56683         * lib/fstrcmp.c: Likewise.
56684         * lib/fstrcmp.h: Likewise.
56685         * lib/fsusage.c: Likewise.
56686         * lib/fsusage.h: Likewise.
56687         * lib/ftell.c: Likewise.
56688         * lib/ftello.c: Likewise.
56689         * lib/fts-cycle.c: Likewise.
56690         * lib/fts.c: Likewise.
56691         * lib/fts_.h: Likewise.
56692         * lib/full-read.c: Likewise.
56693         * lib/full-read.h: Likewise.
56694         * lib/full-write.c: Likewise.
56695         * lib/full-write.h: Likewise.
56696         * lib/fwritable.c: Likewise.
56697         * lib/fwritable.h: Likewise.
56698         * lib/fwriteerror.c: Likewise.
56699         * lib/fwriteerror.h: Likewise.
56700         * lib/fwriting.c: Likewise.
56701         * lib/fwriting.h: Likewise.
56702         * lib/gcd.c: Likewise.
56703         * lib/gcd.h: Likewise.
56704         * lib/getcwd.c: Likewise.
56705         * lib/getdate.h: Likewise.
56706         * lib/getdate.y: Likewise.
56707         * lib/getdomainname.c: Likewise.
56708         * lib/getdomainname.h: Likewise.
56709         * lib/getgroups.c: Likewise.
56710         * lib/gethostname.c: Likewise.
56711         * lib/gethrxtime.c: Likewise.
56712         * lib/gethrxtime.h: Likewise.
56713         * lib/getloadavg.c: Likewise.
56714         * lib/getndelim2.c: Likewise.
56715         * lib/getndelim2.h: Likewise.
56716         * lib/getnline.c: Likewise.
56717         * lib/getnline.h: Likewise.
56718         * lib/getopt.c: Likewise.
56719         * lib/getopt.in.h: Likewise.
56720         * lib/getopt1.c: Likewise.
56721         * lib/getopt_int.h: Likewise.
56722         * lib/getpagesize.h: Likewise.
56723         * lib/getsubopt.c: Likewise.
56724         * lib/gettime.c: Likewise.
56725         * lib/getugroups.c: Likewise.
56726         * lib/getugroups.h: Likewise.
56727         * lib/getusershell.c: Likewise.
56728         * lib/gl_anyavltree_list1.h: Likewise.
56729         * lib/gl_anyavltree_list2.h: Likewise.
56730         * lib/gl_anyhash_list1.h: Likewise.
56731         * lib/gl_anyhash_list2.h: Likewise.
56732         * lib/gl_anylinked_list1.h: Likewise.
56733         * lib/gl_anylinked_list2.h: Likewise.
56734         * lib/gl_anyrbtree_list1.h: Likewise.
56735         * lib/gl_anyrbtree_list2.h: Likewise.
56736         * lib/gl_anytree_list1.h: Likewise.
56737         * lib/gl_anytree_list2.h: Likewise.
56738         * lib/gl_anytree_oset.h: Likewise.
56739         * lib/gl_anytreehash_list1.h: Likewise.
56740         * lib/gl_anytreehash_list2.h: Likewise.
56741         * lib/gl_array_list.c: Likewise.
56742         * lib/gl_array_list.h: Likewise.
56743         * lib/gl_array_oset.c: Likewise.
56744         * lib/gl_array_oset.h: Likewise.
56745         * lib/gl_avltree_list.c: Likewise.
56746         * lib/gl_avltree_list.h: Likewise.
56747         * lib/gl_avltree_oset.c: Likewise.
56748         * lib/gl_avltree_oset.h: Likewise.
56749         * lib/gl_avltreehash_list.c: Likewise.
56750         * lib/gl_avltreehash_list.h: Likewise.
56751         * lib/gl_carray_list.c: Likewise.
56752         * lib/gl_carray_list.h: Likewise.
56753         * lib/gl_linked_list.c: Likewise.
56754         * lib/gl_linked_list.h: Likewise.
56755         * lib/gl_linkedhash_list.c: Likewise.
56756         * lib/gl_linkedhash_list.h: Likewise.
56757         * lib/gl_list.c: Likewise.
56758         * lib/gl_list.h: Likewise.
56759         * lib/gl_oset.c: Likewise.
56760         * lib/gl_oset.h: Likewise.
56761         * lib/gl_rbtree_list.c: Likewise.
56762         * lib/gl_rbtree_list.h: Likewise.
56763         * lib/gl_rbtree_oset.c: Likewise.
56764         * lib/gl_rbtree_oset.h: Likewise.
56765         * lib/gl_rbtreehash_list.c: Likewise.
56766         * lib/gl_rbtreehash_list.h: Likewise.
56767         * lib/gl_sublist.c: Likewise.
56768         * lib/gl_sublist.h: Likewise.
56769         * lib/group-member.c: Likewise.
56770         * lib/group-member.h: Likewise.
56771         * lib/hard-locale.c: Likewise.
56772         * lib/hard-locale.h: Likewise.
56773         * lib/hash-pjw.c: Likewise.
56774         * lib/hash-pjw.h: Likewise.
56775         * lib/hash-triple.c: Likewise.
56776         * lib/hash.c: Likewise.
56777         * lib/hash.h: Likewise.
56778         * lib/human.c: Likewise.
56779         * lib/human.h: Likewise.
56780         * lib/i-ring.c: Likewise.
56781         * lib/i-ring.h: Likewise.
56782         * lib/idcache.c: Likewise.
56783         * lib/imaxabs.c: Likewise.
56784         * lib/imaxdiv.c: Likewise.
56785         * lib/inet_pton.c: Likewise.
56786         * lib/inet_pton.h: Likewise.
56787         * lib/intprops.h: Likewise.
56788         * lib/inttostr.c: Likewise.
56789         * lib/inttostr.h: Likewise.
56790         * lib/inttypes.in.h: Likewise.
56791         * lib/isapipe.c: Likewise.
56792         * lib/isdir.c: Likewise.
56793         * lib/isnan.c: Likewise.
56794         * lib/isnan.h: Likewise.
56795         * lib/isnanf.c: Likewise.
56796         * lib/isnanf.h: Likewise.
56797         * lib/isnanl-nolibm.h: Likewise.
56798         * lib/isnanl.c: Likewise.
56799         * lib/isnanl.h: Likewise.
56800         * lib/javacomp.c: Likewise.
56801         * lib/javacomp.h: Likewise.
56802         * lib/javaexec.c: Likewise.
56803         * lib/javaexec.h: Likewise.
56804         * lib/javaversion.c: Likewise.
56805         * lib/javaversion.h: Likewise.
56806         * lib/javaversion.java: Likewise.
56807         * lib/lbrkprop.h: Likewise.
56808         * lib/lchmod.h: Likewise.
56809         * lib/lchown.c: Likewise.
56810         * lib/ldexpl.c: Likewise.
56811         * lib/linebreak.c: Likewise.
56812         * lib/linebreak.h: Likewise.
56813         * lib/linebuffer.c: Likewise.
56814         * lib/linebuffer.h: Likewise.
56815         * lib/locale.in.h: Likewise.
56816         * lib/logl.c: Likewise.
56817         * lib/long-options.c: Likewise.
56818         * lib/long-options.h: Likewise.
56819         * lib/lstat.c: Likewise.
56820         * lib/lstat.h: Likewise.
56821         * lib/math.in.h: Likewise.
56822         * lib/mbchar.c: Likewise.
56823         * lib/mbchar.h: Likewise.
56824         * lib/mbfile.h: Likewise.
56825         * lib/mbiter.h: Likewise.
56826         * lib/mbscasecmp.c: Likewise.
56827         * lib/mbscasestr.c: Likewise.
56828         * lib/mbschr.c: Likewise.
56829         * lib/mbscspn.c: Likewise.
56830         * lib/mbslen.c: Likewise.
56831         * lib/mbsncasecmp.c: Likewise.
56832         * lib/mbsnlen.c: Likewise.
56833         * lib/mbspbrk.c: Likewise.
56834         * lib/mbspcasecmp.c: Likewise.
56835         * lib/mbsrchr.c: Likewise.
56836         * lib/mbssep.c: Likewise.
56837         * lib/mbsspn.c: Likewise.
56838         * lib/mbsstr.c: Likewise.
56839         * lib/mbstok_r.c: Likewise.
56840         * lib/mbswidth.c: Likewise.
56841         * lib/mbswidth.h: Likewise.
56842         * lib/mbuiter.h: Likewise.
56843         * lib/memcasecmp.c: Likewise.
56844         * lib/memcasecmp.h: Likewise.
56845         * lib/memchr.c: Likewise.
56846         * lib/memcmp.c: Likewise.
56847         * lib/memcoll.c: Likewise.
56848         * lib/memcoll.h: Likewise.
56849         * lib/memcpy.c: Likewise.
56850         * lib/memrchr.c: Likewise.
56851         * lib/mkancesdirs.c: Likewise.
56852         * lib/mkdir-p.c: Likewise.
56853         * lib/mkdir-p.h: Likewise.
56854         * lib/mkdir.c: Likewise.
56855         * lib/mkdirat.c: Likewise.
56856         * lib/mkdtemp.c: Likewise.
56857         * lib/mkstemp-safer.c: Likewise.
56858         * lib/mkstemp.c: Likewise.
56859         * lib/modechange.c: Likewise.
56860         * lib/modechange.h: Likewise.
56861         * lib/mountlist.c: Likewise.
56862         * lib/mountlist.h: Likewise.
56863         * lib/mpsort.c: Likewise.
56864         * lib/nanosleep.c: Likewise.
56865         * lib/obstack.c: Likewise.
56866         * lib/obstack.h: Likewise.
56867         * lib/open-safer.c: Likewise.
56868         * lib/open.c: Likewise.
56869         * lib/openat-die.c: Likewise.
56870         * lib/openat-priv.h: Likewise.
56871         * lib/openat-proc.c: Likewise.
56872         * lib/openat.c: Likewise.
56873         * lib/openat.h: Likewise.
56874         * lib/pagealign_alloc.c: Likewise.
56875         * lib/pagealign_alloc.h: Likewise.
56876         * lib/physmem.c: Likewise.
56877         * lib/physmem.h: Likewise.
56878         * lib/pipe-safer.c: Likewise.
56879         * lib/pipe.c: Likewise.
56880         * lib/pipe.h: Likewise.
56881         * lib/posixtm.c: Likewise.
56882         * lib/posixtm.h: Likewise.
56883         * lib/posixver.c: Likewise.
56884         * lib/printf-frexp.c: Likewise.
56885         * lib/printf-frexp.h: Likewise.
56886         * lib/printf-frexpl.c: Likewise.
56887         * lib/printf-frexpl.h: Likewise.
56888         * lib/printf.c: Likewise.
56889         * lib/progname.c: Likewise.
56890         * lib/progname.h: Likewise.
56891         * lib/progreloc.c: Likewise.
56892         * lib/putenv.c: Likewise.
56893         * lib/quote.c: Likewise.
56894         * lib/quote.h: Likewise.
56895         * lib/quotearg.c: Likewise.
56896         * lib/quotearg.h: Likewise.
56897         * lib/raise.c: Likewise.
56898         * lib/readline.c: Likewise.
56899         * lib/readline.h: Likewise.
56900         * lib/readlink.c: Likewise.
56901         * lib/readtokens.c: Likewise.
56902         * lib/readtokens.h: Likewise.
56903         * lib/readtokens0.c: Likewise.
56904         * lib/readtokens0.h: Likewise.
56905         * lib/readutmp.c: Likewise.
56906         * lib/readutmp.h: Likewise.
56907         * lib/realloc.c: Likewise.
56908         * lib/relocwrapper.c: Likewise.
56909         * lib/rename-dest-slash.c: Likewise.
56910         * lib/rename.c: Likewise.
56911         * lib/rmdir.c: Likewise.
56912         * lib/rpmatch.c: Likewise.
56913         * lib/safe-read.c: Likewise.
56914         * lib/safe-read.h: Likewise.
56915         * lib/safe-write.c: Likewise.
56916         * lib/safe-write.h: Likewise.
56917         * lib/same-inode.h: Likewise.
56918         * lib/same.c: Likewise.
56919         * lib/same.h: Likewise.
56920         * lib/save-cwd.c: Likewise.
56921         * lib/save-cwd.h: Likewise.
56922         * lib/savedir.c: Likewise.
56923         * lib/savedir.h: Likewise.
56924         * lib/savewd.c: Likewise.
56925         * lib/savewd.h: Likewise.
56926         * lib/search.in.h: Likewise.
56927         * lib/setenv.c: Likewise.
56928         * lib/setenv.h: Likewise.
56929         * lib/settime.c: Likewise.
56930         * lib/sh-quote.c: Likewise.
56931         * lib/sh-quote.h: Likewise.
56932         * lib/sig2str.c: Likewise.
56933         * lib/sig2str.h: Likewise.
56934         * lib/signal.in.h: Likewise.
56935         * lib/signbitd.c: Likewise.
56936         * lib/signbitf.c: Likewise.
56937         * lib/signbitl.c: Likewise.
56938         * lib/sigprocmask.c: Likewise.
56939         * lib/sincosl.c: Likewise.
56940         * lib/sleep.c: Likewise.
56941         * lib/sprintf.c: Likewise.
56942         * lib/sqrtl.c: Likewise.
56943         * lib/stat-time.h: Likewise.
56944         * lib/stdio--.h: Likewise.
56945         * lib/stdio-safer.h: Likewise.
56946         * lib/stdlib--.h: Likewise.
56947         * lib/stdlib-safer.h: Likewise.
56948         * lib/stdlib.in.h: Likewise.
56949         * lib/stpcpy.c: Likewise.
56950         * lib/stpncpy.c: Likewise.
56951         * lib/strchrnul.c: Likewise.
56952         * lib/strcspn.c: Likewise.
56953         * lib/strerror.c: Likewise.
56954         * lib/strftime.c: Likewise.
56955         * lib/strftime.h: Likewise.
56956         * lib/striconveh.c: Likewise.
56957         * lib/striconveh.h: Likewise.
56958         * lib/striconveha.c: Likewise.
56959         * lib/striconveha.h: Likewise.
56960         * lib/stripslash.c: Likewise.
56961         * lib/strnlen1.c: Likewise.
56962         * lib/strnlen1.h: Likewise.
56963         * lib/strtod.c: Likewise.
56964         * lib/strtoimax.c: Likewise.
56965         * lib/strtok_r.c: Likewise.
56966         * lib/strtol.c: Likewise.
56967         * lib/strtoll.c: Likewise.
56968         * lib/strtoul.c: Likewise.
56969         * lib/strtoull.c: Likewise.
56970         * lib/sysexits.in.h: Likewise.
56971         * lib/tempname.c: Likewise.
56972         * lib/tempname.h: Likewise.
56973         * lib/timespec.h: Likewise.
56974         * lib/tls.c: Likewise.
56975         * lib/tls.h: Likewise.
56976         * lib/tmpdir.c: Likewise.
56977         * lib/tmpdir.h: Likewise.
56978         * lib/tmpfile-safer.c: Likewise.
56979         * lib/tmpfile.c: Likewise.
56980         * lib/trigl.c: Likewise.
56981         * lib/trigl.h: Likewise.
56982         * lib/trim.c: Likewise.
56983         * lib/trim.h: Likewise.
56984         * lib/trunc.c: Likewise.
56985         * lib/truncf.c: Likewise.
56986         * lib/truncl.c: Likewise.
56987         * lib/tsearch.c: Likewise.
56988         * lib/unicodeio.c: Likewise.
56989         * lib/unicodeio.h: Likewise.
56990         * lib/unistd--.h: Likewise.
56991         * lib/unistd-safer.h: Likewise.
56992         * lib/unistdio/ulc-fprintf.c: Likewise.
56993         * lib/unistdio/ulc-vfprintf.c: Likewise.
56994         * lib/unlinkdir.c: Likewise.
56995         * lib/unlinkdir.h: Likewise.
56996         * lib/unlocked-io.h: Likewise.
56997         * lib/unsetenv.c: Likewise.
56998         * lib/userspec.c: Likewise.
56999         * lib/utime.c: Likewise.
57000         * lib/utimecmp.c: Likewise.
57001         * lib/utimecmp.h: Likewise.
57002         * lib/utimens.c: Likewise.
57003         * lib/verify.h: Likewise.
57004         * lib/verror.c: Likewise.
57005         * lib/verror.h: Likewise.
57006         * lib/version-etc-fsf.c: Likewise.
57007         * lib/version-etc.c: Likewise.
57008         * lib/version-etc.h: Likewise.
57009         * lib/vfprintf.c: Likewise.
57010         * lib/vprintf.c: Likewise.
57011         * lib/vsprintf.c: Likewise.
57012         * lib/w32spawn.h: Likewise.
57013         * lib/wait-process.c: Likewise.
57014         * lib/wait-process.h: Likewise.
57015         * lib/wcwidth.c: Likewise.
57016         * lib/write-any-file.c: Likewise.
57017         * lib/xalloc-die.c: Likewise.
57018         * lib/xalloc.h: Likewise.
57019         * lib/xasprintf.c: Likewise.
57020         * lib/xgetcwd.c: Likewise.
57021         * lib/xgetcwd.h: Likewise.
57022         * lib/xgetdomainname.c: Likewise.
57023         * lib/xgetdomainname.h: Likewise.
57024         * lib/xgethostname.c: Likewise.
57025         * lib/xmalloc.c: Likewise.
57026         * lib/xmalloca.c: Likewise.
57027         * lib/xmalloca.h: Likewise.
57028         * lib/xmemcoll.c: Likewise.
57029         * lib/xnanosleep.c: Likewise.
57030         * lib/xreadlink.c: Likewise.
57031         * lib/xreadlink.h: Likewise.
57032         * lib/xsetenv.c: Likewise.
57033         * lib/xsetenv.h: Likewise.
57034         * lib/xstriconv.c: Likewise.
57035         * lib/xstriconv.h: Likewise.
57036         * lib/xstrndup.c: Likewise.
57037         * lib/xstrndup.h: Likewise.
57038         * lib/xstrtod.c: Likewise.
57039         * lib/xstrtod.h: Likewise.
57040         * lib/xstrtol-error.c: Likewise.
57041         * lib/xstrtol.c: Likewise.
57042         * lib/xstrtol.h: Likewise.
57043         * lib/xtime.h: Likewise.
57044         * lib/xvasprintf.c: Likewise.
57045         * lib/xvasprintf.h: Likewise.
57046         * lib/yesno.c: Likewise.
57047         * lib/yesno.h: Likewise.
57048         * posix-modules: Likewise.
57049         * tests/test-alloca-opt.c: Likewise.
57050         * tests/test-arcfour.c: Likewise.
57051         * tests/test-arctwo.c: Likewise.
57052         * tests/test-argmatch.c: Likewise.
57053         * tests/test-argp-2.sh: Likewise.
57054         * tests/test-argp.c: Likewise.
57055         * tests/test-arpa_inet.c: Likewise.
57056         * tests/test-array_list.c: Likewise.
57057         * tests/test-array_oset.c: Likewise.
57058         * tests/test-atexit.c: Likewise.
57059         * tests/test-avltree_list.c: Likewise.
57060         * tests/test-avltree_oset.c: Likewise.
57061         * tests/test-avltreehash_list.c: Likewise.
57062         * tests/test-base64.c: Likewise.
57063         * tests/test-binary-io.c: Likewise.
57064         * tests/test-byteswap.c: Likewise.
57065         * tests/test-c-ctype.c: Likewise.
57066         * tests/test-c-strcasecmp.c: Likewise.
57067         * tests/test-c-strcasestr.c: Likewise.
57068         * tests/test-c-strncasecmp.c: Likewise.
57069         * tests/test-c-strstr.c: Likewise.
57070         * tests/test-canonicalize-lgpl.c: Likewise.
57071         * tests/test-canonicalize.c: Likewise.
57072         * tests/test-carray_list.c: Likewise.
57073         * tests/test-ceilf.c: Likewise.
57074         * tests/test-ceill.c: Likewise.
57075         * tests/test-count-one-bits.c: Likewise.
57076         * tests/test-crc.c: Likewise.
57077         * tests/test-dirname.c: Likewise.
57078         * tests/test-fbufmode.c: Likewise.
57079         * tests/test-fcntl.c: Likewise.
57080         * tests/test-fflush.c: Likewise.
57081         * tests/test-floorf.c: Likewise.
57082         * tests/test-floorl.c: Likewise.
57083         * tests/test-fopen.c: Likewise.
57084         * tests/test-fprintf-posix.c: Likewise.
57085         * tests/test-fprintf-posix.h: Likewise.
57086         * tests/test-fpurge.c: Likewise.
57087         * tests/test-freadable.c: Likewise.
57088         * tests/test-freadahead.c: Likewise.
57089         * tests/test-freading.c: Likewise.
57090         * tests/test-freopen.c: Likewise.
57091         * tests/test-frexp.c: Likewise.
57092         * tests/test-frexpl.c: Likewise.
57093         * tests/test-fseek.c: Likewise.
57094         * tests/test-fseeko.c: Likewise.
57095         * tests/test-fseterr.c: Likewise.
57096         * tests/test-fstrcmp.c: Likewise.
57097         * tests/test-ftell.c: Likewise.
57098         * tests/test-ftello.c: Likewise.
57099         * tests/test-fwritable.c: Likewise.
57100         * tests/test-fwriting.c: Likewise.
57101         * tests/test-getaddrinfo.c: Likewise.
57102         * tests/test-getpass.c: Likewise.
57103         * tests/test-gettimeofday.c: Likewise.
57104         * tests/test-hmac-md5.c: Likewise.
57105         * tests/test-hmac-sha1.c: Likewise.
57106         * tests/test-iconv.c: Likewise.
57107         * tests/test-iconvme.c: Likewise.
57108         * tests/test-inttypes.c: Likewise.
57109         * tests/test-isnan.c: Likewise.
57110         * tests/test-isnanf.c: Likewise.
57111         * tests/test-isnanl-nolibm.c: Likewise.
57112         * tests/test-isnanl.c: Likewise.
57113         * tests/test-isnanl.h: Likewise.
57114         * tests/test-ldexpl.c: Likewise.
57115         * tests/test-linked_list.c: Likewise.
57116         * tests/test-linkedhash_list.c: Likewise.
57117         * tests/test-locale.c: Likewise.
57118         * tests/test-localename.c: Likewise.
57119         * tests/test-lock.c: Likewise.
57120         * tests/test-lseek.c: Likewise.
57121         * tests/test-malloca.c: Likewise.
57122         * tests/test-math.c: Likewise.
57123         * tests/test-mbscasecmp.c: Likewise.
57124         * tests/test-mbscasestr1.c: Likewise.
57125         * tests/test-mbscasestr2.c: Likewise.
57126         * tests/test-mbscasestr3.c: Likewise.
57127         * tests/test-mbscasestr4.c: Likewise.
57128         * tests/test-mbschr.c: Likewise.
57129         * tests/test-mbscspn.c: Likewise.
57130         * tests/test-mbsncasecmp.c: Likewise.
57131         * tests/test-mbspbrk.c: Likewise.
57132         * tests/test-mbspcasecmp.c: Likewise.
57133         * tests/test-mbsrchr.c: Likewise.
57134         * tests/test-mbsspn.c: Likewise.
57135         * tests/test-mbsstr1.c: Likewise.
57136         * tests/test-mbsstr2.c: Likewise.
57137         * tests/test-mbsstr3.c: Likewise.
57138         * tests/test-md5.c: Likewise.
57139         * tests/test-memmem.c: Likewise.
57140         * tests/test-netinet_in.c: Likewise.
57141         * tests/test-open.c: Likewise.
57142         * tests/test-printf-frexp.c: Likewise.
57143         * tests/test-printf-frexpl.c: Likewise.
57144         * tests/test-printf-posix.c: Likewise.
57145         * tests/test-printf-posix.h: Likewise.
57146         * tests/test-rbtree_list.c: Likewise.
57147         * tests/test-rbtree_oset.c: Likewise.
57148         * tests/test-rbtreehash_list.c: Likewise.
57149         * tests/test-read-file.c: Likewise.
57150         * tests/test-rijndael.c: Likewise.
57151         * tests/test-search.c: Likewise.
57152         * tests/test-signbit.c: Likewise.
57153         * tests/test-sleep.c: Likewise.
57154         * tests/test-snprintf-posix.c: Likewise.
57155         * tests/test-snprintf-posix.h: Likewise.
57156         * tests/test-snprintf.c: Likewise.
57157         * tests/test-sprintf-posix.c: Likewise.
57158         * tests/test-sprintf-posix.h: Likewise.
57159         * tests/test-stat-time.c: Likewise.
57160         * tests/test-stdbool.c: Likewise.
57161         * tests/test-stdint.c: Likewise.
57162         * tests/test-stdio.c: Likewise.
57163         * tests/test-stdlib.c: Likewise.
57164         * tests/test-stpncpy.c: Likewise.
57165         * tests/test-strcasestr.c: Likewise.
57166         * tests/test-striconv.c: Likewise.
57167         * tests/test-striconveh.c: Likewise.
57168         * tests/test-striconveha.c: Likewise.
57169         * tests/test-string.c: Likewise.
57170         * tests/test-sys_select.c: Likewise.
57171         * tests/test-sys_socket.c: Likewise.
57172         * tests/test-sys_stat.c: Likewise.
57173         * tests/test-sys_time.c: Likewise.
57174         * tests/test-sysexits.c: Likewise.
57175         * tests/test-time.c: Likewise.
57176         * tests/test-tls.c: Likewise.
57177         * tests/test-trunc.c: Likewise.
57178         * tests/test-truncf.c: Likewise.
57179         * tests/test-truncl.c: Likewise.
57180         * tests/test-unistd.c: Likewise.
57181         * tests/test-vasnprintf-posix.c: Likewise.
57182         * tests/test-vasnprintf-posix2.c: Likewise.
57183         * tests/test-vasnprintf.c: Likewise.
57184         * tests/test-vasprintf-posix.c: Likewise.
57185         * tests/test-vasprintf.c: Likewise.
57186         * tests/test-verify.c: Likewise.
57187         * tests/test-vfprintf-posix.c: Likewise.
57188         * tests/test-vprintf-posix.c: Likewise.
57189         * tests/test-vsnprintf-posix.c: Likewise.
57190         * tests/test-vsnprintf.c: Likewise.
57191         * tests/test-vsprintf-posix.c: Likewise.
57192         * tests/test-wchar.c: Likewise.
57193         * tests/test-wctype.c: Likewise.
57194         * tests/test-wcwidth.c: Likewise.
57195         * tests/test-xstrtol.c: Likewise.
57196         * tests/test-xvasprintf.c: Likewise.
57197         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57198         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57199         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57200         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57201         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57202         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57203         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57204         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57205         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57206         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57207         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57208         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57209         * tests/uniname/test-uninames.c: Likewise.
57210         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57211         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57212         * tests/unistdio/test-u16-printf1.h: Likewise.
57213         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57214         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57215         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57216         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57217         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57218         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57219         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57220         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57221         * tests/unistdio/test-u32-printf1.h: Likewise.
57222         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57223         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57224         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57225         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57226         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57227         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57228         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57229         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57230         * tests/unistdio/test-u8-printf1.h: Likewise.
57231         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57232         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57233         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57234         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57235         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57236         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57237         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57238         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57239         * tests/unistdio/test-ulc-printf1.h: Likewise.
57240         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57241         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57242         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57243         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57244         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57245         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57246         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57247         * tests/uniwidth/test-u16-width.c: Likewise.
57248         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57249         * tests/uniwidth/test-u32-width.c: Likewise.
57250         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57251         * tests/uniwidth/test-u8-width.c: Likewise.
57252         * tests/uniwidth/test-uc_width.c: Likewise.
57253         * config/srclist-update: Likewise.
57254         (fixlicense): Update to GPLv3+.
57255
57256         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57257         * tests/test-tsearch.c: Change copyright notice.
57258
57259         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57260         * lib/c-strcaseeq.h: Change copyright notice.
57261         * lib/streq.h: Likewise.
57262         * lib/uniconv.h: Likewise.
57263         * lib/uniconv/u-conv-from-enc.h: Likewise.
57264         * lib/uniconv/u-conv-to-enc.h: Likewise.
57265         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57266         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57267         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57268         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57269         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57270         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57271         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57272         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57273         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57274         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57275         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57276         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57277         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57278         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57279         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57280         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57281         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57282         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57283         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57284         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57285         * lib/uniname.h: Likewise.
57286         * lib/uniname/uniname.c: Likewise.
57287         * lib/unistdio.h: Likewise.
57288         * lib/unistdio/u-asnprintf.h: Likewise.
57289         * lib/unistdio/u-asprintf.h: Likewise.
57290         * lib/unistdio/u-printf-args.c: Likewise.
57291         * lib/unistdio/u-printf-args.h: Likewise.
57292         * lib/unistdio/u-printf-parse.h: Likewise.
57293         * lib/unistdio/u-snprintf.h: Likewise.
57294         * lib/unistdio/u-sprintf.h: Likewise.
57295         * lib/unistdio/u-vasprintf.h: Likewise.
57296         * lib/unistdio/u-vsnprintf.h: Likewise.
57297         * lib/unistdio/u-vsprintf.h: Likewise.
57298         * lib/unistdio/u16-asnprintf.c: Likewise.
57299         * lib/unistdio/u16-asprintf.c: Likewise.
57300         * lib/unistdio/u16-printf-parse.c: Likewise.
57301         * lib/unistdio/u16-snprintf.c: Likewise.
57302         * lib/unistdio/u16-sprintf.c: Likewise.
57303         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57304         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57305         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57306         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57307         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57308         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57309         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57310         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57311         * lib/unistdio/u16-vasnprintf.c: Likewise.
57312         * lib/unistdio/u16-vasprintf.c: Likewise.
57313         * lib/unistdio/u16-vsnprintf.c: Likewise.
57314         * lib/unistdio/u16-vsprintf.c: Likewise.
57315         * lib/unistdio/u32-asnprintf.c: Likewise.
57316         * lib/unistdio/u32-asprintf.c: Likewise.
57317         * lib/unistdio/u32-printf-parse.c: Likewise.
57318         * lib/unistdio/u32-snprintf.c: Likewise.
57319         * lib/unistdio/u32-sprintf.c: Likewise.
57320         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57321         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57322         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57323         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57324         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57325         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57326         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57327         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57328         * lib/unistdio/u32-vasnprintf.c: Likewise.
57329         * lib/unistdio/u32-vasprintf.c: Likewise.
57330         * lib/unistdio/u32-vsnprintf.c: Likewise.
57331         * lib/unistdio/u32-vsprintf.c: Likewise.
57332         * lib/unistdio/u8-asnprintf.c: Likewise.
57333         * lib/unistdio/u8-asprintf.c: Likewise.
57334         * lib/unistdio/u8-printf-parse.c: Likewise.
57335         * lib/unistdio/u8-snprintf.c: Likewise.
57336         * lib/unistdio/u8-sprintf.c: Likewise.
57337         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57338         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57339         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57340         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57341         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57342         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57343         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57344         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57345         * lib/unistdio/u8-vasnprintf.c: Likewise.
57346         * lib/unistdio/u8-vasprintf.c: Likewise.
57347         * lib/unistdio/u8-vsnprintf.c: Likewise.
57348         * lib/unistdio/u8-vsprintf.c: Likewise.
57349         * lib/unistdio/ulc-asnprintf.c: Likewise.
57350         * lib/unistdio/ulc-asprintf.c: Likewise.
57351         * lib/unistdio/ulc-printf-parse.c: Likewise.
57352         * lib/unistdio/ulc-snprintf.c: Likewise.
57353         * lib/unistdio/ulc-sprintf.c: Likewise.
57354         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57355         * lib/unistdio/ulc-vasprintf.c: Likewise.
57356         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57357         * lib/unistdio/ulc-vsprintf.c: Likewise.
57358         * lib/unistr.h: Likewise.
57359         * lib/unistr/u-cpy-alloc.h: Likewise.
57360         * lib/unistr/u-cpy.h: Likewise.
57361         * lib/unistr/u-endswith.h: Likewise.
57362         * lib/unistr/u-move.h: Likewise.
57363         * lib/unistr/u-set.h: Likewise.
57364         * lib/unistr/u-startswith.h: Likewise.
57365         * lib/unistr/u-stpcpy.h: Likewise.
57366         * lib/unistr/u-stpncpy.h: Likewise.
57367         * lib/unistr/u-strcat.h: Likewise.
57368         * lib/unistr/u-strcpy.h: Likewise.
57369         * lib/unistr/u-strcspn.h: Likewise.
57370         * lib/unistr/u-strdup.h: Likewise.
57371         * lib/unistr/u-strlen.h: Likewise.
57372         * lib/unistr/u-strncat.h: Likewise.
57373         * lib/unistr/u-strncpy.h: Likewise.
57374         * lib/unistr/u-strnlen.h: Likewise.
57375         * lib/unistr/u-strpbrk.h: Likewise.
57376         * lib/unistr/u-strspn.h: Likewise.
57377         * lib/unistr/u-strstr.h: Likewise.
57378         * lib/unistr/u-strtok.h: Likewise.
57379         * lib/unistr/u16-check.c: Likewise.
57380         * lib/unistr/u16-chr.c: Likewise.
57381         * lib/unistr/u16-cmp.c: Likewise.
57382         * lib/unistr/u16-cpy-alloc.c: Likewise.
57383         * lib/unistr/u16-cpy.c: Likewise.
57384         * lib/unistr/u16-endswith.c: Likewise.
57385         * lib/unistr/u16-mblen.c: Likewise.
57386         * lib/unistr/u16-mbsnlen.c: Likewise.
57387         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57388         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57389         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57390         * lib/unistr/u16-mbtouc.c: Likewise.
57391         * lib/unistr/u16-mbtoucr.c: Likewise.
57392         * lib/unistr/u16-move.c: Likewise.
57393         * lib/unistr/u16-next.c: Likewise.
57394         * lib/unistr/u16-prev.c: Likewise.
57395         * lib/unistr/u16-set.c: Likewise.
57396         * lib/unistr/u16-startswith.c: Likewise.
57397         * lib/unistr/u16-stpcpy.c: Likewise.
57398         * lib/unistr/u16-stpncpy.c: Likewise.
57399         * lib/unistr/u16-strcat.c: Likewise.
57400         * lib/unistr/u16-strchr.c: Likewise.
57401         * lib/unistr/u16-strcmp.c: Likewise.
57402         * lib/unistr/u16-strcpy.c: Likewise.
57403         * lib/unistr/u16-strcspn.c: Likewise.
57404         * lib/unistr/u16-strdup.c: Likewise.
57405         * lib/unistr/u16-strlen.c: Likewise.
57406         * lib/unistr/u16-strmblen.c: Likewise.
57407         * lib/unistr/u16-strmbtouc.c: Likewise.
57408         * lib/unistr/u16-strncat.c: Likewise.
57409         * lib/unistr/u16-strncmp.c: Likewise.
57410         * lib/unistr/u16-strncpy.c: Likewise.
57411         * lib/unistr/u16-strnlen.c: Likewise.
57412         * lib/unistr/u16-strpbrk.c: Likewise.
57413         * lib/unistr/u16-strrchr.c: Likewise.
57414         * lib/unistr/u16-strspn.c: Likewise.
57415         * lib/unistr/u16-strstr.c: Likewise.
57416         * lib/unistr/u16-strtok.c: Likewise.
57417         * lib/unistr/u16-to-u32.c: Likewise.
57418         * lib/unistr/u16-to-u8.c: Likewise.
57419         * lib/unistr/u16-uctomb-aux.c: Likewise.
57420         * lib/unistr/u16-uctomb.c: Likewise.
57421         * lib/unistr/u32-check.c: Likewise.
57422         * lib/unistr/u32-chr.c: Likewise.
57423         * lib/unistr/u32-cmp.c: Likewise.
57424         * lib/unistr/u32-cpy-alloc.c: Likewise.
57425         * lib/unistr/u32-cpy.c: Likewise.
57426         * lib/unistr/u32-endswith.c: Likewise.
57427         * lib/unistr/u32-mblen.c: Likewise.
57428         * lib/unistr/u32-mbsnlen.c: Likewise.
57429         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57430         * lib/unistr/u32-mbtouc.c: Likewise.
57431         * lib/unistr/u32-mbtoucr.c: Likewise.
57432         * lib/unistr/u32-move.c: Likewise.
57433         * lib/unistr/u32-next.c: Likewise.
57434         * lib/unistr/u32-prev.c: Likewise.
57435         * lib/unistr/u32-set.c: Likewise.
57436         * lib/unistr/u32-startswith.c: Likewise.
57437         * lib/unistr/u32-stpcpy.c: Likewise.
57438         * lib/unistr/u32-stpncpy.c: Likewise.
57439         * lib/unistr/u32-strcat.c: Likewise.
57440         * lib/unistr/u32-strchr.c: Likewise.
57441         * lib/unistr/u32-strcmp.c: Likewise.
57442         * lib/unistr/u32-strcpy.c: Likewise.
57443         * lib/unistr/u32-strcspn.c: Likewise.
57444         * lib/unistr/u32-strdup.c: Likewise.
57445         * lib/unistr/u32-strlen.c: Likewise.
57446         * lib/unistr/u32-strmblen.c: Likewise.
57447         * lib/unistr/u32-strmbtouc.c: Likewise.
57448         * lib/unistr/u32-strncat.c: Likewise.
57449         * lib/unistr/u32-strncmp.c: Likewise.
57450         * lib/unistr/u32-strncpy.c: Likewise.
57451         * lib/unistr/u32-strnlen.c: Likewise.
57452         * lib/unistr/u32-strpbrk.c: Likewise.
57453         * lib/unistr/u32-strrchr.c: Likewise.
57454         * lib/unistr/u32-strspn.c: Likewise.
57455         * lib/unistr/u32-strstr.c: Likewise.
57456         * lib/unistr/u32-strtok.c: Likewise.
57457         * lib/unistr/u32-to-u16.c: Likewise.
57458         * lib/unistr/u32-to-u8.c: Likewise.
57459         * lib/unistr/u32-uctomb.c: Likewise.
57460         * lib/unistr/u8-check.c: Likewise.
57461         * lib/unistr/u8-chr.c: Likewise.
57462         * lib/unistr/u8-cmp.c: Likewise.
57463         * lib/unistr/u8-cpy-alloc.c: Likewise.
57464         * lib/unistr/u8-cpy.c: Likewise.
57465         * lib/unistr/u8-endswith.c: Likewise.
57466         * lib/unistr/u8-mblen.c: Likewise.
57467         * lib/unistr/u8-mbsnlen.c: Likewise.
57468         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57469         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57470         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57471         * lib/unistr/u8-mbtouc.c: Likewise.
57472         * lib/unistr/u8-mbtoucr.c: Likewise.
57473         * lib/unistr/u8-move.c: Likewise.
57474         * lib/unistr/u8-next.c: Likewise.
57475         * lib/unistr/u8-prev.c: Likewise.
57476         * lib/unistr/u8-set.c: Likewise.
57477         * lib/unistr/u8-startswith.c: Likewise.
57478         * lib/unistr/u8-stpcpy.c: Likewise.
57479         * lib/unistr/u8-stpncpy.c: Likewise.
57480         * lib/unistr/u8-strcat.c: Likewise.
57481         * lib/unistr/u8-strchr.c: Likewise.
57482         * lib/unistr/u8-strcmp.c: Likewise.
57483         * lib/unistr/u8-strcpy.c: Likewise.
57484         * lib/unistr/u8-strcspn.c: Likewise.
57485         * lib/unistr/u8-strdup.c: Likewise.
57486         * lib/unistr/u8-strlen.c: Likewise.
57487         * lib/unistr/u8-strmblen.c: Likewise.
57488         * lib/unistr/u8-strmbtouc.c: Likewise.
57489         * lib/unistr/u8-strncat.c: Likewise.
57490         * lib/unistr/u8-strncmp.c: Likewise.
57491         * lib/unistr/u8-strncpy.c: Likewise.
57492         * lib/unistr/u8-strnlen.c: Likewise.
57493         * lib/unistr/u8-strpbrk.c: Likewise.
57494         * lib/unistr/u8-strrchr.c: Likewise.
57495         * lib/unistr/u8-strspn.c: Likewise.
57496         * lib/unistr/u8-strstr.c: Likewise.
57497         * lib/unistr/u8-strtok.c: Likewise.
57498         * lib/unistr/u8-to-u16.c: Likewise.
57499         * lib/unistr/u8-to-u32.c: Likewise.
57500         * lib/unistr/u8-uctomb-aux.c: Likewise.
57501         * lib/unistr/u8-uctomb.c: Likewise.
57502         * lib/unitypes.h: Likewise.
57503         * lib/uniwidth.h: Likewise.
57504         * lib/uniwidth/cjk.h: Likewise.
57505         * lib/uniwidth/u16-strwidth.c: Likewise.
57506         * lib/uniwidth/u16-width.c: Likewise.
57507         * lib/uniwidth/u32-strwidth.c: Likewise.
57508         * lib/uniwidth/u32-width.c: Likewise.
57509         * lib/uniwidth/u8-strwidth.c: Likewise.
57510         * lib/uniwidth/u8-width.c: Likewise.
57511         * lib/uniwidth/width.c: Likewise.
57512
57513 2007-10-07  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57516         The file is still under LGPL (see modules/inttypes).
57517
57518 2007-10-06  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/trunc (Dependencies): Add 'extensions'.
57521         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57522         Reported by Ben Pfaff <blp@gnu.org>.
57523
57524 2007-10-06  Bruno Haible  <bruno@clisp.org>
57525
57526         * modules/freopen-tests: New file.
57527         * tests/test-freopen.c: New file.
57528
57529         * modules/fopen-tests: New file.
57530         * tests/test-fopen.c: New file.
57531
57532         * modules/fopen: New file.
57533         * lib/fopen.c: New file.
57534         * m4/fopen.m4: New file.
57535         * modules/freopen: New file.
57536         * lib/freopen.c: New file.
57537         * m4/freopen.m4: New file.
57538         * lib/stdio.in.h (fopen, freopen): New declarations.
57539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57540         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57541         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57542         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57543         * doc/functions/fopen.texi: Mention the 'fopen' module.
57544         * doc/functions/freopen.texi: Mention the 'freopen' module.
57545
57546 2007-10-06  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/open-tests: New file.
57549         * tests/test-open.c: New file.
57550
57551         * modules/open: New file.
57552         * lib/open.c: New file.
57553         * m4/open.m4: New file.
57554         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57555         lib/open.c does.
57556         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57557         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57558         macros.
57559         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57560         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57561         REPLACE_OPEN.
57562         * doc/functions/open.texi: Mention the 'open' module.
57563
57564 2007-10-04  Bruno Haible  <bruno@clisp.org>
57565
57566         * modules/ceill-tests: New file.
57567         * tests/test-ceill.c: New file.
57568
57569         * modules/ceill: New file.
57570         * lib/ceill.c: Replace entire file.
57571         * m4/ceill.m4: New file.
57572         * lib/math.in.h (ceill): Replace declaration.
57573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57574         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57575         * doc/functions/ceill.texi: Mention the 'ceill' module.
57576         * modules/mathl (Files): Remove lib/ceill.c.
57577         (Depends-on): Add ceill.
57578
57579 2007-10-04  Bruno Haible  <bruno@clisp.org>
57580
57581         * modules/ceilf-tests: New file.
57582         * tests/test-ceilf.c: New file.
57583
57584         * modules/ceilf: New file.
57585         * lib/ceil.c: New file.
57586         * lib/ceilf.c: New file.
57587         * m4/ceilf.m4: New file.
57588         * lib/math.in.h (ceilf): New declaration.
57589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57590         HAVE_DECL_CEILF.
57591         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57592         HAVE_DECL_CEILF.
57593         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57594
57595 2007-10-04  Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/floorl-tests: New file.
57598         * tests/test-floorl.c: New file.
57599
57600         * modules/floorl: New file.
57601         * lib/floorl.c: Replace entire file.
57602         * m4/floorl.m4: New file.
57603         * lib/math.in.h (floorl): Replace declaration.
57604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57605         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57606         * doc/functions/floorl.texi: Mention the 'floorl' module.
57607         * modules/mathl (Files): Remove lib/floorl.c.
57608         (Depends-on): Add floorl.
57609
57610 2007-10-04  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/floorf-tests: New file.
57613         * tests/test-floorf.c: New file.
57614
57615         * modules/floorf: New file.
57616         * lib/floor.c: New file.
57617         * lib/floorf.c: New file.
57618         * m4/floorf.m4: New file.
57619         * lib/math.in.h (floorf): New declaration.
57620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57621         HAVE_DECL_FLOORF.
57622         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57623         HAVE_DECL_FLOORF.
57624         * doc/functions/floorf.texi: Mention the 'floorf' module.
57625
57626 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57627             Bruno Haible  <bruno@clisp.org>
57628
57629         Advertise for the Git server instead of the CVS server.
57630         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57631         repository instead of the CVS one.
57632         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57633         about all VCS systems generically.
57634         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57635
57636 2007-10-04  Bruno Haible  <bruno@clisp.org>
57637
57638         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57639         means.
57640         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57641
57642 2007-10-04  Bruno Haible  <bruno@clisp.org>
57643
57644         * modules/truncl-tests: New file.
57645         * tests/test-truncl.c: New file.
57646
57647         * modules/truncl: New file.
57648         * lib/truncl.c: New file.
57649         * m4/truncl.m4: New file.
57650         * lib/math.in.h (truncl): New declaration.
57651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57652         HAVE_DECL_TRUNCL.
57653         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57654         HAVE_DECL_TRUNCL.
57655         * doc/functions/truncl.texi: Mention the 'truncl' module.
57656
57657 2007-10-04  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/truncf-tests: New file.
57660         * tests/test-truncf.c: New file.
57661
57662         * modules/truncf: New file.
57663         * lib/trunc.c: Make paramerizable through USE_* macros.
57664         * lib/truncf.c: New file.
57665         * m4/truncf.m4: New file.
57666         * lib/math.in.h (truncf): New declaration.
57667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57668         HAVE_DECL_TRUNCF.
57669         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57670         HAVE_DECL_TRUNCF.
57671         * doc/functions/truncf.texi: Mention the 'truncf' module.
57672
57673 2007-10-03  Bruno Haible  <bruno@clisp.org>
57674
57675         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57676         augmentation also for tests modules.
57677         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57678         * modules/atexit-tests (Makefile.am): Likewise.
57679         * modules/binary-io-tests (Makefile.am): Likewise.
57680         * modules/c-strcase-tests (Makefile.am): Likewise.
57681         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57682         * modules/canonicalize-tests (Makefile.am): Likewise.
57683         * modules/closein-tests (Makefile.am): Likewise.
57684         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57685         * modules/freadahead-tests (Makefile.am): Likewise.
57686         * modules/fseek-tests (Makefile.am): Likewise.
57687         * modules/fseeko-tests (Makefile.am): Likewise.
57688         * modules/ftell-tests (Makefile.am): Likewise.
57689         * modules/ftello-tests (Makefile.am): Likewise.
57690         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57691         * modules/isnanl-tests (Makefile.am): Likewise.
57692         * modules/lseek-tests (Makefile.am): Likewise.
57693         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57694         * modules/mbscasestr-tests (Makefile.am): Likewise.
57695         * modules/mbschr-tests (Makefile.am): Likewise.
57696         * modules/mbscspn-tests (Makefile.am): Likewise.
57697         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57698         * modules/mbspbrk-tests (Makefile.am): Likewise.
57699         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57700         * modules/mbsrchr-tests (Makefile.am): Likewise.
57701         * modules/mbsspn-tests (Makefile.am): Likewise.
57702         * modules/mbsstr-tests (Makefile.am): Likewise.
57703         * modules/printf-posix-tests (Makefile.am): Likewise.
57704         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57705         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57706         * modules/tsearch-tests (Makefile.am): Likewise.
57707         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57708         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57709         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57710         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57711         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57712         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57713         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57714         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57715         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57716         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57717         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57718         * modules/xstrtol-tests (Makefile.am): Likewise.
57719         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57720         * modules/yesno-tests (Makefile.am): Likewise.
57721
57722 2007-10-03  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/trunc-tests: New file.
57725         * tests/test-trunc.c: New file.
57726
57727         * modules/trunc: New file.
57728         * lib/trunc.c: New file.
57729         * m4/trunc.m4: New file.
57730         * lib/math.in.h (trunc): New declaration.
57731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57732         HAVE_DECL_TRUNC.
57733         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57734         HAVE_DECL_TRUNC.
57735         * doc/functions/trunc.texi: Mention the 'trunc' module.
57736
57737 2007-10-03  Bruno Haible  <bruno@clisp.org>
57738
57739         * tests/test-fpending.c: New file, mostly copied
57740         from coreutils/lib/t-fpending.c.
57741         * modules/fpending-tests: New file.
57742
57743 2007-10-03  Bruno Haible  <bruno@clisp.org>
57744
57745         Port the stdio extensions to QNX (untested).
57746         * lib/fseterr.c (fseterr): Add support for QNX.
57747         * lib/fbufmode.c (fbufmode): Likewise.
57748         * lib/freadable.c (freadable): Likewise.
57749         * lib/fwritable.c (fwritable): Likewise.
57750         * lib/freading.c (freading): Likewise.
57751         * lib/fwriting.c (fwriting): Likewise.
57752         * lib/freadahead.c (freadahed): Likewise.
57753         * lib/fpurge.c (fpurge): Likewise.
57754         * lib/fseeko.c (rpl_fseeko): Likewise.
57755
57756 2007-10-03  Bruno Haible  <bruno@clisp.org>
57757             Jim Meyering  <jim@meyering.net>
57758             Eric Blake  <ebb9@byu.net>
57759
57760         * doc/relocatable.texi: Use @command instead of @program.
57761
57762 2007-10-02  Jim Meyering  <jim@meyering.net>
57763
57764         Perform one more "_.h" -> ".in.h" substitution.
57765         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57766         instead of unistd_.h here, too.
57767
57768 2007-10-01  Bruno Haible  <bruno@clisp.org>
57769
57770         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57771         Needed for the alloca-opt module.
57772
57773 2007-09-30  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57776         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57777         alloca_.h.
57778         * lib/argz.in.h: Renamed from lib/argz_.h.
57779         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57780         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57781         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57782         byteswap_.h.
57783         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57784         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57785         dirent_.h.
57786         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57787         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57788         fcntl_.h.
57789         * lib/float.in.h: Renamed from lib/float_.h.
57790         * modules/float (Files, Makefile.am): Use float.in.h instead of
57791         float_.h.
57792         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57793         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57794         fnmatch_.h.
57795         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57796         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57797         getopt_.h.
57798         * lib/glob.in.h: Renamed from lib/glob_.h.
57799         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57800         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57801         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57802         iconv_.h.
57803         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57804         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57805         inttypes_.h.
57806         * lib/locale.in.h: Renamed from lib/locale_.h.
57807         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57808         locale_.h.
57809         * lib/math.in.h: Renamed from lib/math_.h.
57810         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57811         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57812         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57813         of netinet_in_.h. Add dependency.
57814         * lib/poll.in.h: Renamed from lib/poll_.h.
57815         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57816         * lib/search.in.h: Renamed from lib/search_.h.
57817         * modules/search (Files, Makefile.am): Use search.in.h instead of
57818         search_.h.
57819         * lib/signal.in.h: Renamed from lib/signal_.h.
57820         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57821         _signal.h.
57822         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57823         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57824         stdbool_.h.
57825         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57826         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57827         stdint_.h.
57828         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57829         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57830         stdio_.h.
57831         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57832         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57833         stdlib_.h.
57834         * lib/string.in.h: Renamed from lib/string_.h.
57835         * modules/string (Files, Makefile.am): Use string.in.h instead of
57836         string_.h.
57837         * doc/gnulib-tool.texi (Initial import): Update.
57838         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57839         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57840         of sys_select_.h. Add dependency.
57841         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57842         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57843         of sys_socket_.h.
57844         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57845         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57846         sys_stat_.h.
57847         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57848         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57849         sys_time_.h.
57850         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57851         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57852         sysexits_.h.
57853         * lib/time.in.h: Renamed from lib/time_.h.
57854         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57855         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57856         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57857         unistd_.h.
57858         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57859         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57860         wchar_.h.
57861         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57862         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57863         wctype_.h.
57864         * build-aux/bootstrap (slurp): Update.
57865         * lib/.cppi-disable: Update.
57866
57867 2007-09-30  Bruno Haible  <bruno@clisp.org>
57868
57869         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57870         Needed on BeOS.
57871
57872 2007-09-30  Bruno Haible  <bruno@clisp.org>
57873
57874         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57875
57876 2007-09-29  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57879
57880 2007-09-29  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57883         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57884         * build-aux/install-reloc: Compile also areadlink.c.
57885         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57886
57887 2007-09-29  Bruno Haible  <bruno@clisp.org>
57888
57889         * gnulib-tool (func_emit_initmacro_done): Indentation.
57890
57891 2007-09-29  Bruno Haible  <bruno@clisp.org>
57892
57893         * README: Add CVS checkout update instructions.
57894         Info from Bob Proulx <bob@proulx.com>.
57895
57896 2007-09-28  Eric Blake  <ebb9@byu.net>
57897
57898         Provide move-if-change.
57899         * build-aux/move-if-change: New file, based on best practice
57900         rather than any canonical upstream location.
57901
57902 2007-09-28  Jim Meyering  <jim@meyering.net>
57903
57904         Fix canonicalize loop-detection corner case.
57905         Do not attempt to stat the symlink values stored via seen_triple.
57906         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57907         on linux-2.6.18, (but not 2.6.22).
57908         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57909         triple_compare.  The former compares dev,ino,filename, while the latter
57910         would actually stat dirname(filename) when dev and ino were equal.
57911         * lib/hash-triple.c: Install <string.h>.
57912         (STREQ): Define.
57913         (triple_compare_ino_str): New function.
57914         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57915
57916 2007-09-28  Eric Blake  <ebb9@byu.net>
57917
57918         Enforce that AC_REPLACE_FUNCS files exist.
57919         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57920         override check for typos.
57921
57922         Fix test-closein on Solaris 10.
57923         * tests/test-closein.c (main): Don't assume stdin can be inherited
57924         closed on all systems.
57925         * tests/test-closein.sh: Likewise.
57926         Reported by Piotr Tarnowski.
57927
57928 2007-09-28  Jim Meyering  <jim@meyering.net>
57929
57930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57931
57932 2007-09-27  Jim Meyering  <jim@meyering.net>
57933
57934         canonicalize: Avoid a false-positive cycle failure.
57935         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57936         Sort.  Remove cycle-check.
57937         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57938         not cycle-check.h.
57939         (seen_triple): New function.
57940         (canonicalize_filename_mode): Use it instead of cycle-check.
57941         * tests/test-canonicalize.c: Add a test for this bug.
57942         * tests/test-canonicalize.sh: Set up and run the test.
57943
57944         New module, file-set, from coreutils.
57945         * modules/file-set: Define it.
57946         * lib/file-set.c, lib/file-set.h: Implement.
57947
57948         New module, hash-triple, from coreutils.
57949         * modules/hash-triple: Define it.
57950         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57951
57952 2007-09-25  Eric Blake  <ebb9@byu.net>
57953
57954         Fix strerror on Interix.
57955         * lib/string_.h (strerror): Declare replacement.
57956         * doc/functions/strerror.texi (strerror): Document the Interix
57957         shortcoming.
57958         * modules/string (Makefile.am): Support new hooks.
57959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57960         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57961         gl_FUNC_STRERROR_SEPARATE.
57962         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57963         * lib/strerror.c (rpl_strerror): Provide replacement.
57964         * modules/strerror (Depends-on): Add string.
57965         (configure.ac): Detect use of module.
57966         * tests/test-strerror.c: New file.
57967         * modules/strerror-tests: New test module.
57968         * modules/argp (Depends-on): Add strerror.
57969         * modules/error (Depends-on): Likewise.
57970         Reported by Martin Koeppe.
57971
57972 2007-09-24  Bruno Haible  <bruno@clisp.org>
57973
57974         * README: Update git instructions.
57975
57976 2007-09-24  Eric Blake  <ebb9@byu.net>
57977
57978         Revert fpending breakage from 2007-09-08.
57979         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57980         __fpending.c.
57981
57982 2007-09-24  Jim Meyering  <jim@meyering.net>
57983
57984         filenamecat.c: Add a test.
57985         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57986         showing how the function works when DIR is the empty string.
57987
57988 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57989
57990         * tests/test-canonicalize.sh: Turn on executable bit.
57991
57992 2007-09-19  Eric Blake  <ebb9@byu.net>
57993
57994         * README: Update CVS instructions.
57995
57996 2007-09-18  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/areadlink: New file.
57999         * lib/areadlink.h (areadlink): New declaration.
58000         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58001
58002 2007-09-17  Jim Meyering  <jim@meyering.net>
58003
58004         * lib/savewd.c (ESTALE) [!defined]: Define.
58005         Reported to be required on Interix by Martin Koeppe.
58006
58007 2007-09-17  Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool (func_version): Use $version.
58010
58011 2007-09-16  Bruno Haible  <bruno@clisp.org>
58012
58013         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58014         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58015         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58016         Reported by Greg Schafer <gschafer@zip.com.au>.
58017
58018 2007-09-15  Bruno Haible  <bruno@clisp.org>
58019
58020         * gnulib-tool (sed): Try a little harder to make bash understand the
58021         alias.
58022         Reported by Bruce Korb <bruce.korb@gmail.com>.
58023
58024 2007-09-13  Eric Blake  <ebb9@byu.net>
58025
58026         * ChangeLog: Remove conflict markers.
58027
58028 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58029
58030         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58031         Reported by Bruno Haible <bruno@clisp.org>.
58032
58033 2007-09-12  Bruno Haible  <bruno@clisp.org>
58034
58035         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58036         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58037         is not defined.
58038
58039 2007-09-12  Eric Blake  <ebb9@byu.net>
58040
58041         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58043         Autoconf definition.
58044         * modules/euidaccess (Depends-on): Add extensions, for
58045         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58046         * modules/fnmatch (Depends-on): Likewise.
58047         * modules/getaddrinfo (Depends-on): Likewise.
58048         * modules/getdelim (Depends-on): Likewise.
58049         * modules/getline (Depends-on): Likewise.
58050         * modules/getsubopt (Depends-on): Likewise.
58051         * modules/gettext (Depends-on): Likewise.
58052         * modules/group-member (Depends-on): Likewise.
58053         * modules/mbchar (Depends-on): Likewise.
58054         * modules/memmem (Depends-on): Likewise.
58055         * modules/mempcpy (Depends-on): Likewise.
58056         * modules/memrchr (Depends-on): Likewise.
58057         * modules/pagealign_alloc (Depends-on): Likewise.
58058         * modules/readutmp (Depends-on): Likewise.
58059         * modules/stpcpy (Depends-on): Likewise.
58060         * modules/stpncpy (Depends-on): Likewise.
58061         * modules/strchrnul (Depends-on): Likewise.
58062         * modules/strndup (Depends-on): Likewise.
58063         * modules/strsep (Depends-on): Likewise.
58064         * modules/strverscmp (Depends-on): Likewise.
58065         * modules/vasprintf (Depends-on): Likewise.
58066         * modules/wcwidth (Depends-on): Likewise.
58067         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58068         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58069         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58070         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58071         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58072         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58073         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58074         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58075         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58076         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58080         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58081         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58082         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58083         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58084         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58088         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58089         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58090         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58091         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58093         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58094         so that lock.m4 can be used in gettext without extensions module.
58095
58096 2007-09-11  Bruno Haible  <bruno@clisp.org>
58097
58098         * m4/isc-posix.m4: Remove file.
58099         Suggested by Eric Blake.
58100
58101 2007-09-11  Eric Blake  <ebb9@byu.net>
58102
58103         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58104
58105 2007-09-10  Bruno Haible  <bruno@clisp.org>
58106
58107         * posix-modules: Fix typo in error message.
58108         Reported by Matt <mkraai@beckman.com>.
58109
58110 2007-09-09  Bruno Haible  <bruno@clisp.org>
58111
58112         * doc/functions/getdelim.texi: Update list of platforms lacking the
58113         function.
58114         * doc/functions/getline.texi: Likewise.
58115
58116 2007-09-09  Jim Meyering  <jim@meyering.net>
58117
58118         * lib/hash.c (hash_initialize): Detect calloc failure.
58119         Reported by Bruno Haible.
58120
58121 2007-09-09  Bruno Haible  <bruno@clisp.org>
58122
58123         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58124         malloc or realloc fails.
58125
58126 2007-09-09  Bruno Haible  <bruno@clisp.org>
58127
58128         * modules/getcwd (Depends-on): Add malloc-posix.
58129         * modules/glob (Depends-on): Likewise.
58130         * modules/putenv (Depends-on): Likewise.
58131         * modules/strdup (Depends-on): Likewise.
58132         * modules/getdelim (Depends-on): Add realloc-posix.
58133         * modules/read-file (Depends-on): Likewise.
58134
58135 2007-09-09  Bruno Haible  <bruno@clisp.org>
58136
58137         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58138         (gl_FUNC_MALLOC_POSIX): Require it.
58139         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58140         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58141         * modules/realloc (Files): Add m4/malloc.m4.
58142         * modules/calloc (Files): Likewise.
58143
58144 2007-09-09  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/malloc-posix: New file.
58147         * modules/malloc (Depends-on): Add malloc-posix.
58148         * lib/malloc.c: Include errno.h.
58149         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58150         and a POSIX-compatible malloc into a single function. Set ENOMEM
58151         when returning NULL.
58152         * m4/malloc.m4: New file.
58153         * doc/functions/malloc.texi: Mention the malloc-posix module.
58154         * lib/stdlib_.h (malloc): New declaration.
58155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58156         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58157         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58158         and HAVE_MALLOC_POSIX.
58159
58160 2007-09-09  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/realloc-posix: New file.
58163         * modules/realloc (Depends-on): Add realloc-posix.
58164         * lib/realloc.c: Include errno.h.
58165         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58166         and a POSIX-compatible realloc into a single function. Set ENOMEM
58167         when returning NULL.
58168         * m4/realloc.m4: New file.
58169         * doc/functions/realloc.texi: Mention the realloc-posix module.
58170         * lib/stdlib_.h (realloc): New declaration.
58171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58172         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58173         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58174         and HAVE_REALLOC_POSIX.
58175
58176 2007-09-09  Bruno Haible  <bruno@clisp.org>
58177
58178         * modules/calloc-posix: New file.
58179         * modules/calloc (Depends-on): Add calloc-posix.
58180         * lib/calloc.c: Include errno.h.
58181         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58182         and a POSIX-compatible calloc into a single function. Set ENOMEM
58183         when returning NULL.
58184         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58185         * doc/functions/calloc.texi: Mention the calloc-posix module.
58186         * lib/stdlib_.h (calloc): New declaration.
58187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58188         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58189         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58190         and HAVE_CALLOC_POSIX.
58191
58192 2007-09-09  Bruno Haible  <bruno@clisp.org>
58193
58194         Allow for modules to show an arbitrary notice.
58195         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58196         * gnulib-tool: New option --extract-notice.
58197         (func_usage): Document it.
58198         (sed_extract_prog): Update.
58199         (func_get_notice): New function.
58200         (func_modules_notice): New function.
58201         (func_import, func_create_testdir): Invoke it.
58202         Suggested by Jim Meyering.
58203
58204 2007-09-09  Bruno Haible  <bruno@clisp.org>
58205
58206         * gnulib-tool: New options --verbose, --quiet.
58207         (func_usage): Document them.
58208         (verbose): New variable.
58209         (func_execute_command): New function.
58210         (func_import): Don't show the module list and the file list if
58211         $verbose < 0.
58212         (func_create_testdir): Likewise. Use func_execute_command.
58213         (func_create_megatestdir): Use func_execute_command.
58214
58215 2007-09-08  Bruno Haible  <bruno@clisp.org>
58216
58217         * gnulib-tool (func_import): Prefer rsync over wget when available,
58218         for fetching the PO files.
58219
58220 2007-09-08  Bruno Haible  <bruno@clisp.org>
58221
58222         * posix-modules: New file. Portions copied from gnulib-tool.
58223         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58224
58225 2007-09-08  Jim Meyering  <jim@meyering.net>
58226
58227         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58228         * lib/fpending.h: Rename from __fpending.h.
58229         * lib/fpending.c: Rename from __fpending.c.
58230         Include "fpending.h", not "__fpending.h".
58231         * lib/__fpending.h, lib/__fpending.c: Remove files.
58232         * modules/fpending (Files): Reflect new file names.
58233         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58234
58235 2007-09-08  Bruno Haible  <bruno@clisp.org>
58236
58237         * m4/inttypes-h.m4: Remove stub file.
58238
58239 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58240
58241         * doc/headers/stdint.texi: Discuss #include_next issue.
58242
58243 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58246
58247 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58248
58249         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58250         in variable name.
58251
58252 2007-09-03  Jim Meyering  <jim@meyering.net>
58253
58254         New module: git-version-gen.
58255         * modules/git-version-gen: New file.
58256
58257         Import changes from coreutils for bootstrap script.
58258
58259         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58260
58261         bootstrap: uses rsync to download the .po files
58262         * build-aux/bootstrap (po_download_command_format): New global.
58263         (download_po_files): Use rsync.
58264         (update_po_files): Don't remove .po files after download,
58265         so future rsync runs can take advantage of the copies.
58266
58267         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58268
58269         Solve the unnecessary-.po-file-regeneration problem once and for all.
58270         * build-aux/bootstrap (download_po_files): New function, renamed from
58271         get_translations.  Now, downloads, but doesn't update LINGUAS.
58272         (update_po_files): New function.
58273
58274         bootstrap: Ignore more.
58275         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58276         uniwidth to e.g., lib/.gitignore.
58277         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58278
58279         * build-aux/bootstrap: New setting: vc_ignore.
58280         (insert_sorted_if_absent): Create $file if absent.
58281         Adapt to new, possibly empty, list: $vc_ignore.
58282
58283         bootstrap: generate more ignorable names
58284         * build-aux/bootstrap (slurp): When generating ignorable names,
58285         also map .sin to .sed, .gperf to .c, and .y to .c.
58286
58287 2007-09-03  Jim Meyering  <jim@meyering.net>
58288
58289         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58290         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58291
58292 2007-09-02  Bruno Haible  <bruno@clisp.org>
58293
58294         Fix mis-recognition of 'mcs' on QNX 6.
58295         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58296         output contains the string "Mono".
58297         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58298         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58299
58300 2007-09-01  Bruno Haible  <bruno@clisp.org>
58301
58302         Fix collision between uniwidth/* and linebreak modules.
58303         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58304         u32_width): Remove declarations.
58305         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58306         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58307         streq3, streq2, streq1, streq0): Remove functions.
58308         (STREQ): Remove macro.
58309         (is_cjk_encoding): Remove function.
58310         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58311         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58312         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58313         * NEWS: Document the change.
58314
58315 2007-09-01  Bruno Haible  <bruno@clisp.org>
58316
58317         * lib/streq.h: Add double-inclusion guard.
58318
58319 2007-09-01  Karl Berry  <karl@gnu.org>
58320
58321         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58322
58323 2007-08-28  Jim Meyering  <jim@meyering.net>
58324
58325         Rename mreadlink_with_size to areadlink_with_size.
58326         * NEWS: Document the change.
58327         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58328         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58329         * lib/mreadlink.h: Rename this to...
58330         * lib/areadlink.h: ...this.
58331         * modules/mreadlink-with-size: Rename this to...
58332         * modules/areadlink-with-size: ...this.
58333         * lib/canonicalize.c: Reflect the renaming.
58334         * modules/canonicalize: Likewise.
58335
58336 2007-08-26  Bruno Haible  <bruno@clisp.org>
58337
58338         * gnulib-tool (func_import): When deciding which files to remove,
58339         consider also dangling symbolic links.
58340         Reported by Eric Blake.
58341
58342 2007-08-26  Bruno Haible  <bruno@clisp.org>
58343
58344         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58345
58346 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58347
58348         * lib/readline.c: Don't include getline.h, the prototype is now
58349         found in stdio.h.
58350
58351 2007-08-23  Jim Meyering  <jim@meyering.net>
58352
58353         Getdelim touchup.
58354         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58355         around the funlockfile call, since funlockfile never sets errno.
58356         Don't set errno upon failed realloc.
58357
58358 2007-08-22  Eric Blake  <ebb9@byu.net>
58359
58360         Getline touchups.
58361         * lib/getdelim.c (getdelim): Revert regression that required *n to
58362         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58364         getdelim, rather than whether implementation is missing.
58365         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58366         * lib/stdio_.h (getline): Also declare if replacement is
58367         required.
58368         * doc/functions/getdelim.texi: New file.
58369         * doc/functions/getline.texi: Likewise.
58370         * doc/gnulib.texi (Function Substitutes): Add new files.
58371         Reported by Bruno Haible.
58372
58373 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58374
58375         * users.txt: Add Guile.
58376
58377 2007-08-22  Eric Blake  <ebb9@byu.net>
58378
58379         * tests/test-getdelim.c (main): Use remove, not unlink.
58380         * tests/test-getline.c (main): Likewise.
58381
58382         Move getline and getdelim into stdio.h, per POSIX 200x.
58383         * modules/getline (Files): Remove getline.h.
58384         (Depends-on): Add stdio.
58385         (configure.ac): Add module indicator.
58386         * modules/getdelim (Files): Remove getdelim.h.
58387         (Depends-on): Add stdio.
58388         (configure.ac): Add module indicator.
58389         * modules/stdio (Makefile.am): Work with new indicators.
58390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58393         * lib/getdelim.h: Delete.
58394         * lib/getline.h: Delete.
58395         * lib/stdio_.h (getdelim, getline): Declare.
58396         * modules/getdelim-tests: New module.
58397         * modules/getline-tests: Likewise.
58398         * tests/test-getdelim.c: New file.
58399         * tests/test-getline.c: Likewise.
58400         * NEWS: Document the change.
58401         * lib/getline.c: Update choice of header.
58402         * lib/csharpcomp.c: Likewise.
58403         * lib/getpass.c: Likewise.
58404         * lib/javacomp.c: Likewise.
58405         * lib/javaversion.c: Likewise.
58406         * lib/yesno.c: Likewise.
58407         * lib/getdelim.c: Likewise.
58408         (getdelim): Set errno on failure, and avoid memory leak.
58409
58410 2007-08-19  Bruno Haible  <bruno@clisp.org>
58411
58412         * modules/closein (Depends-on): Add freadahead.
58413         * lib/closein.c: Include freadahead.h.
58414         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58415         is zero.
58416
58417 2007-08-19  Bruno Haible  <bruno@clisp.org>
58418
58419         * modules/freadahead-tests: New file.
58420         * tests/test-freadahead.sh: New file.
58421         * tests/test-freadahead.c: New file.
58422
58423         * modules/freadahead: New file.
58424         * lib/freadahead.h: New file.
58425         * lib/freadahead.c: New file.
58426         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58427         fbufmode, fpurge, freadable, fwritable.
58428
58429 2007-08-19  Eric Blake  <ebb9@byu.net>
58430
58431         Test yesno in combination with closein.
58432         * lib/yesno.c (yesno): Document use of stdin.
58433         * modules/yesno-tests (Files): New module.
58434         * tests/test-yesno.c (main): New file.
58435         * tests/test-yesno.sh: Likewise.
58436
58437 2007-08-19  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58440         * lib/fseeko.c (rpl_fseeko): Likewise.
58441         * lib/fseterr.c (fseterr): Likewise.
58442
58443 2007-08-19  Bruno Haible  <bruno@clisp.org>
58444
58445         * tests/test-lseek.c (main): Disable a test for BeOS.
58446         * doc/functions/lseek.texi: Document the BeOS bug.
58447
58448 2007-08-19  Bruno Haible  <bruno@clisp.org>
58449             Eric Blake  <ebb9@byu.net>
58450
58451         * lib/lseek.c: Include <sys/stat.h>.
58452         (rpl_lseek): Add workaround code also for Unix platforms.
58453         Needed for BeOS.
58454         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58455         * doc/functions/lseek.texi: Document BeOS definiency.
58456
58457 2007-08-18  Bruno Haible  <bruno@clisp.org>
58458
58459         * modules/fstrcmp-tests: New file.
58460         * tests/test-fstrcmp.c: New file.
58461
58462 2007-08-18  Bruno Haible  <bruno@clisp.org>
58463
58464         * modules/fstrcmp: New file, from GNU gettext with modifications.
58465         * lib/fstrcmp.h: New file, from GNU gettext.
58466         * lib/fstrcmp.c: New file, from GNU gettext.
58467         * MODULES.html.sh (String handling): Add fstrcmp.
58468
58469 2007-08-18  Bruno Haible  <bruno@clisp.org>
58470
58471         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58472         'bool'.
58473         (diag, compareseq): Remove const from the ctxt argument.
58474         (USE_HEURISTIC): Undefine at the end.
58475
58476 2007-08-18  Jim Meyering  <jim@meyering.net>
58477
58478         New file: lib/idcache.h
58479         * NEWS: Mention the addition.
58480         * modules/idcache (Files): Add lib/idcache.h
58481         * lib/idcache.c: Include "idcache.h".
58482         Don't include <sys/types.h>.
58483         Add a FIXME comment.
58484         Move file-scoped "static" declarations to the top.
58485         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58486
58487 2007-08-17  Bruno Haible  <bruno@clisp.org>
58488         and Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         * MODULES.html.sh: Add diffseq.
58491         * modules/diffseq: New file.
58492         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58493         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58494
58495 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58496
58497         Import changes from coreutils for bootstrap script.
58498
58499         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58500
58501         * build-aux/bootstrap (slurp): Work even in environments where
58502         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58503         current code does not slurp files whose names start with ".", and
58504         this looks like it might be a troublesome area.
58505
58506         2007-07-11  Jim Meyering  <jim@meyering.net>
58507
58508         If there's a GPL vN copyright comment, require that N == 3.
58509
58510         2007-07-08  Jim Meyering  <jim@meyering.net>
58511
58512         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58513         * build-aux/bootstrap (mam_template): Move definition out of loop.
58514
58515         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58516
58517         * build-aux/bootstrap (symlink_to_dir): Rename function from
58518         symlink_to_gnulib.  Add a directory parameter.  Update all
58519         callers.
58520         (cp_mark_as_generated): Also check for -- and link to -- files in
58521         gl/.
58522
58523         2007-07-08  Jim Meyering  <jim@meyering.net>
58524
58525         Adapt to deeper hierarchy in gnulib.
58526         * build-aux/bootstrap (symlink_to_dir): If the destination
58527         directory doesn't exist, create it. This is required at least for
58528         "lib/uniwidth/cjk.h".
58529
58530         2007-05-15  Jim Meyering  <jim@meyering.net>
58531
58532         * build-aux/bootstrap: Now that generated Makefile.am files
58533         are no longer under version control, they must be created at
58534         bootstrap time.
58535
58536 2007-08-14  Ben Pfaff  <blp@gnu.org>
58537
58538         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58539
58540 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58543         given the changes below.
58544         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58545         even on hosts that have padding bits beyond the supported 64.
58546
58547 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58548
58549         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58550         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58551         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58552         depends on it.
58553         (xstrtol_error): Remove.
58554         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58555         but with a different signature.
58556         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58557         * lib/xstrtol-error.c: Include exitfail.h.
58558         (xstrtol_fatal): New function, with a different signature from the
58559         old xstrtol_error, so that the caller need not worry about passing
58560         in an exit status, or about storage management of the option argument.
58561         (xstrtol_error): Now a static function.  Redo signature to
58562         implement xstrtol_fatal.  Output the correct number of hyphens in
58563         front of the option so that the caller need not worry about
58564         storage management.
58565         (N_): New macro.
58566         (_): Remove; not used now.
58567         * modules/xstrtol: Depend on getopt.
58568         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58569         of old STRTOL_FATAL_ERROR macro.
58570         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58571         of test program.
58572         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58573         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58574
58575 2007-08-08  Eric Blake  <ebb9@byu.net>
58576
58577         * lib/xstrtol-error.c: Add missing include.
58578
58579         Move xstrtol messages into gnulib domain, when --pobase is used.
58580         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58581         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58582         * modules/xstrtol (Files): Distribute new file.
58583         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58584         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58585         * tests/test-xstrtol.c: ...into new file.
58586         * tests/test-xstrtoul.c: Also test xstrtoul.
58587         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58588         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58589         * tests/test-xstrtol.sh: Drive the tests.
58590         * tests/test-xstrtoimax.sh: Likewise.
58591         * tests/test-xstrtoumax.sh: Likewise.
58592         * modules/xstrtol-tests: New module.
58593         * modules/xstrtoimax-tests: Likewise.
58594         * modules/xstrtoumax-tests: Likewise.
58595
58596 2007-08-08  Jim Meyering  <jim@meyering.net>
58597
58598         New function: mfile_name_concat.
58599         * lib/filenamecat.c (mfile_name_concat): New function, just like
58600         file_name_concat, but return NULL upon failure rather than exiting
58601         with a diagnostic.
58602         * lib/filenamecat.h: Declare it.
58603
58604 2007-08-07  Bruno Haible  <bruno@clisp.org>
58605
58606         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58607         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58608         warning from gcc.
58609         Reported by Eric Blake.
58610
58611 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58612
58613         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58614         * modules/crypto/arcfour (License): Likewise.
58615         * modules/crypto/des-tests (License): Likewise.
58616         * modules/crypto/gc-arctwo-tests (License): Likewise.
58617         * modules/crypto/gc-des-tests (License): Likewise.
58618         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58619         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58620         * modules/crypto/gc-md2-tests (License): Likewise.
58621         * modules/crypto/gc-md4-tests (License): Likewise.
58622         * modules/crypto/gc-md5-tests (License): Likewise.
58623         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58624         * modules/crypto/gc-rijndael-tests (License): Likewise.
58625         * modules/crypto/gc-sha1-tests (License): Likewise.
58626         * modules/crypto/gc-tests (License): Likewise.
58627         * modules/crypto/hmac-md5 (License): Likewise.
58628         * modules/crypto/hmac-sha1 (License): Likewise.
58629         * modules/crypto/md2-tests (License): Likewise.
58630         * modules/crypto/md4-tests (License): Likewise.
58631         * modules/crypto/md5 (License): Likewise.
58632         * modules/crypto/rijndael (License): Likewise.
58633         * modules/crypto/sha1 (License): Likewise.
58634         * modules/memxor (License): Likewise.
58635
58636 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58637         and Bruno Haible  <bruno@clisp.org>
58638
58639         * NEWS: Describe interface changes to human, xstrtol.
58640         * lib/human.h: Include <xstrtol.h>.
58641         (human_options): Return enum strtol_error, not int.  Remove
58642         bool arg; take int * instead.
58643         * lib/human.c: Don't include "gettext.h".
58644         (_): Remove; no longer used.
58645         Don't include <xstrtol.h>, since human.h does it.
58646         (human_options): Adjust to abovementioned interface changes.
58647         Do not report error to stderr; that's now the caller's
58648         responsibility.
58649         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58650         interface change.
58651         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58652         Str, Argument_type_string.  All uses changed.  Put " argument"
58653         in diagnostics to make them clearer.  Change wording of suffix
58654         message for clarity.
58655         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58656         Argument_type_string.
58657         (STRTOL_FATAL_WARN): Remove; no longer used.
58658         * modules/human (Depends-on): Remove gettext-h.
58659
58660 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58661
58662         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58663
58664 2007-07-31  Bruno Haible  <bruno@clisp.org>
58665
58666         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58667         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58668         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58669
58670 2007-07-31  Bruno Haible  <bruno@clisp.org>
58671
58672         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58673         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58674
58675 2007-07-30  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58678         * modules/c-ctype (License): Likewise.
58679         * modules/c-strcase (License): Likewise.
58680         * modules/check-version (License): Likewise.
58681         * modules/iconv (License): Likewise.
58682         * modules/iconv_open (License): Likewise.
58683         * modules/read-file (License): Likewise.
58684         * modules/striconv (License): Likewise.
58685         * modules/strverscmp (License): Likewise.
58686         * modules/vasprintf (License): Likewise.
58687         * modules/crypto/des (License): Likewise.
58688         * modules/crypto/gc (License): Likewise.
58689         * modules/crypto/gc-arcfour (License): Likewise.
58690         * modules/crypto/gc-arctwo (License): Likewise.
58691         * modules/crypto/gc-des (License): Likewise.
58692         * modules/crypto/gc-hmac-md5 (License): Likewise.
58693         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58694         * modules/crypto/gc-md2 (License): Likewise.
58695         * modules/crypto/gc-md4 (License): Likewise.
58696         * modules/crypto/gc-md5 (License): Likewise.
58697         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58698         * modules/crypto/gc-random (License): Likewise.
58699         * modules/crypto/gc-rijndael (License): Likewise.
58700         * modules/crypto/gc-sha1 (License): Likewise.
58701         * modules/crypto/md2 (License): Likewise.
58702         * modules/crypto/md4 (License): Likewise.
58703
58704 2007-07-30  Jim Meyering  <jim@meyering.net>
58705
58706         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58707         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58708         it has valid stat data.  This bug would cause du not to count the
58709         sizes of inaccessible directories.
58710         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58711         in <http://bugzilla.redhat.com/250077>.
58712
58713 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58714             Bruno Haible  <bruno@clisp.org>
58715
58716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58717         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58718         #include_next, gives a diagnostic about it, but reports no error in
58719         the exit code.
58720         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58721
58722 2007-07-24  Ben Pfaff  <blp@gnu.org>
58723
58724         Improve name: "count-one-bits" is better than "popcount".
58725         * MODULES.html.sh: Update name.
58726         * lib/popcount.h: Renamed lib/count-one-bits.h.
58727         (popcount): Renamed count_one_bits.
58728         (popcountl): Renamed count_one_bits_l.
58729         (popcountll): Renamed count_one_bits_ll.
58730         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58731         * modules/popcount: Renamed module/count-one-bits.
58732         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58733         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58734
58735 2007-07-23  Ben Pfaff  <blp@gnu.org>
58736
58737         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58738         better code generation, and add U to large constants to avoid
58739         warnings, in non-GCC case.
58740         Suggested by Bruno Haible.
58741
58742 2007-07-23  Ben Pfaff  <blp@gnu.org>
58743
58744         * lib/popcount.h: Use verify_true instead of if...abort.
58745         * modules/popcount: Depend on verify module.
58746         Suggested by Jim Meyering.
58747
58748 2007-07-23  Bruno Haible  <bruno@clisp.org>
58749
58750         * gnulib-tool (func_import): Create a .cvsignore file also when the
58751         directory is not yet in CVS but the toplevel directory is. When
58752         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58753         Reported by Karl Berry.
58754
58755 2007-07-22  Ben Pfaff  <blp@gnu.org>
58756
58757         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58758         case.
58759         Suggested by Eric Blake.
58760
58761 2007-07-22  Ben Pfaff  <blp@gnu.org>
58762
58763         New module: popcount.
58764         * MODULES.html.sh: Add popcount.
58765         * modules/popcount: New file.
58766         * modules/popcount-tests: New file.
58767         * tests/test-popcount.c: New file.
58768         * lib/popcount.h: New file.
58769         * m4/popcount.m4: New file.
58770
58771 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         * build-aux/announce-gen: Update to GPLv3.
58774
58775         * build-aux/config.guess: Update from config.
58776
58777 2007-07-21  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58780         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58781
58782 2007-07-20  Jim Meyering  <jim@meyering.net>
58783
58784         * check-module: Diagnose a self-dependency.
58785
58786 2007-07-19  Bruno Haible  <bruno@clisp.org>
58787
58788         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58789         empty.
58790         Reported by Eric Blake.
58791
58792 2007-07-18  Bruno Haible  <bruno@clisp.org>
58793
58794         * gnulib-tool: New options --po-base, --po-domain.
58795         (func_usage): Document them.
58796         (pobase, po_domain): New variables.
58797         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58798         DEFAULT_TEXT_DOMAIN.
58799         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58800         (func_import): Consider pobase and po_domain. Create a po/ directory.
58801         (func_create_testdir): Set pobase and po_domain to empty.
58802         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58803         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58804
58805 2007-07-18  Bruno Haible  <bruno@clisp.org>
58806
58807         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58808         EXTRA_DIST augmentation for files in build-aux/.
58809
58810 2007-07-16  Bruno Haible  <bruno@clisp.org>
58811
58812         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58813         * modules/getdelim (License): Likewise.
58814
58815 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58816
58817         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58818         * modules/d-type (License): Likewise.
58819         * modules/extensions (License): Likewise.
58820         * modules/fnmatch (License): Likewise.
58821         * modules/fseeko (License): Likewise.
58822         * modules/getaddrinfo (License): Likewise.
58823         * modules/getline (License): Likewise.
58824         * modules/getlogin_r (License): Likewise.
58825         * modules/getpass (License): Likewise.
58826         * modules/gettimeofday (License): Likewise.
58827         * modules/glob (License): Likewise.
58828         * modules/inet_ntop (License): Likewise.
58829         * modules/malloc (License): Likewise.
58830         * modules/malloca (License): Likewise.
58831         * modules/memmem (License): Likewise.
58832         * modules/mempcpy (License): Likewise.
58833         * modules/memset (License): Likewise.
58834         * modules/minmax (License): Likewise.
58835         * modules/mktime (License): Likewise.
58836         * modules/netinet_in (License): Likewise.
58837         * modules/pathmax (License): Likewise.
58838         * modules/poll (License): Likewise.
58839         * modules/regex (License): Likewise.
58840         * modules/snprintf (License): Likewise.
58841         * modules/stdbool (License): Likewise.
58842         * modules/stdint (License): Likewise.
58843         * modules/stdio (License): Likewise.
58844         * modules/strcase (License): Likewise.
58845         * modules/strcasestr (License): Likewise.
58846         * modules/strdup (License): Likewise.
58847         * modules/string (License): Likewise.
58848         * modules/strndup (License): Likewise.
58849         * modules/strnlen (License): Likewise.
58850         * modules/strpbrk (License): Likewise.
58851         * modules/strptime (License): Likewise.
58852         * modules/strsep (License): Likewise.
58853         * modules/sys_select (License): Likewise.
58854         * modules/sys_socket (License): Likewise.
58855         * modules/sys_stat (License): Likewise.
58856         * modules/sys_time (License): Likewise.
58857         * modules/time (License): Likewise.
58858         * modules/time_r (License): Likewise.
58859         * modules/timegm (License): Likewise.
58860         * modules/unistd (License): Likewise.
58861         * modules/vsnprintf (License): Likewise.
58862         * modules/wctype (License): Likewise.
58863
58864 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58865
58866         * modules/argz (License): LGPLv2+.
58867
58868 2007-07-15  Karl Berry  <karl@gnu.org>
58869
58870         * doc/gnulib.texi: revise node structure per new fdl.texi.
58871
58872 2007-07-14  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58875         the output file.
58876         * lib/uniname/uninames.h: Regenerated.
58877
58878 2007-07-14  Karl Berry  <karl@gnu.org>
58879
58880         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58881         omitting sectioning and index commands.
58882
58883 2007-07-13  Bruno Haible  <bruno@clisp.org>
58884
58885         New gnulib-tool option --more-symlinks.
58886         * gnulib-tool (func_usage): Document --more-symlinks.
58887         (do_copyrights): New variable.
58888         Recognize option --more-symlinks.
58889         (func_import): Don't add a copyright notice transform to
58890         sed_transform_lib_file if do_copyrights is empty.
58891
58892 2007-07-13  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/vasnprintf.c (decimal_point_char): Define also if
58895         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58896         && !NEED_PRINTF_DIRECTIVE_A.
58897         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58898         Gary V. Vaughan <gary@gnu.org>.
58899
58900 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * lib/inttypes_.h: Undo previous change, since it was fixed
58903         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58904
58905 2007-07-13  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58908         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58909
58910 2007-07-13  Jim Meyering  <jim@meyering.net>
58911
58912         df: Don't fail for Tru64's "file-on-file mount".
58913         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58914         so we fall through and use statfs instead.  Details here:
58915         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58916         Reported by Albert Chin.
58917
58918 2007-07-13  Bruno Haible  <bruno@clisp.org>
58919
58920         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58921         * modules/configmake (License): Likewise.
58922         * modules/gettext (License): Likewise.
58923         * modules/gettext-h (License): Likewise.
58924         * modules/include_next (License): Likewise.
58925         * modules/link-warning (License): Likewise.
58926         * modules/localcharset (License): Likewise.
58927         * modules/localename (License): Likewise.
58928         * modules/lock (License): Likewise.
58929         * modules/relocatable-lib-lgpl (License): Likewise.
58930         * modules/size_max (License): Likewise.
58931         * modules/vasnprintf (License): Likewise.
58932         * modules/wchar (License): Likewise.
58933         * modules/xsize (License): Likewise.
58934
58935 2007-07-13  Bruno Haible  <bruno@clisp.org>
58936
58937         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58938         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58939
58940 2007-07-12  Bruno Haible  <bruno@clisp.org>
58941
58942         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58943         in the modules files.
58944
58945 2007-07-11  Karl Berry  <karl@gnu.org>
58946
58947         * MODULES.html.sh (func_module): use
58948          sed -e '\|^'"${includefile}"'$|d'
58949          instead of /.../d, to avoid errors on $includefile's containing /.
58950
58951 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58952
58953         * gnulib-tool (func_import): Avoid duplication of --avoid
58954         statements
58955         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58956         names to `_' in variable names.
58957
58958 2007-07-10  Eric Blake  <ebb9@byu.net>
58959
58960         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58961         * NEWS: Document this change.
58962
58963 2007-07-08  Bruno Haible  <bruno@clisp.org>
58964
58965         Update to Unicode 5.0.
58966         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58967         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58968         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58969         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58970         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58971         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58972         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58973         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58974         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58975         U+10A3F, U+1D242..U+1D244.
58976         (nonspacing_table_ind): Update.
58977         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58978         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58979
58980 2007-07-08  Bruno Haible  <bruno@clisp.org>
58981
58982         Update to Unicode 5.0.
58983         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58984         code transform. Extend the name index field of unicode_name_to_code and
58985         unicode_code_to_name from 16 to 24 bits.
58986         * lib/uniname/uniname.c (unicode_character_name,
58987         unicode_name_character): Add the range 0x12xxx to the code transform.
58988         * lib/uniname/uninames.h: Regenerated.
58989         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58990
58991 2007-07-07  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/wcwidth-tests: New file.
58994         * tests/test-wcwidth.c: New file.
58995
58996         Work around MacOS X wcwidth() bug.
58997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58998         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58999         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59000         original wcwidth in non-UTF-8 locales.
59001         * modules/wcwidth (Depends-on): Add localcharset, streq,
59002         uniwidth/width.
59003         * doc/functions/wcwidth.texi: Update.
59004
59005 2007-07-07  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59008         (wcwidth): New declaration.
59009         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59010         macros.
59011         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59012         here. Prepare for creating <wchar.h> unconditionally.
59013         * modules/wchar (Depends-on): Add link-warning.
59014         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59015         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59016         * lib/wcwidth.h: Remove file.
59017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59018         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59019         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59020         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59021         (Include): Replace wcwidth.h with <wchar.h>.
59022         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59023         * lib/mbchar.h: Don't include wcwidth.h.
59024         * lib/mbswidth.c: Likewise.
59025         * NEWS: Mention the change.
59026
59027 2007-07-07  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59030         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59031         definition with an external declaration.
59032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59033         defined as a function. Remove AC_C_INLINE requirement.
59034         * modules/wcwidth (Files): Add lib/wcwidth.c.
59035         (Makefile.am): Remove redundant statement.
59036
59037 2007-07-07  Bruno Haible  <bruno@clisp.org>
59038
59039         * MODULES.html.sh (Unicode string functions): Add the new modules.
59040
59041         * tests/uniwidth/test-u32-strwidth.c: New file.
59042         * modules/uniwidth/u32-strwidth-tests: New file.
59043
59044         * lib/uniwidth/u32-strwidth.c: New file.
59045         * modules/uniwidth/u32-strwidth: New file.
59046
59047         * tests/uniwidth/test-u16-strwidth.c: New file.
59048         * modules/uniwidth/u16-strwidth-tests: New file.
59049
59050         * lib/uniwidth/u16-strwidth.c: New file.
59051         * modules/uniwidth/u16-strwidth: New file.
59052
59053         * tests/uniwidth/test-u8-strwidth.c: New file.
59054         * modules/uniwidth/u8-strwidth-tests: New file.
59055
59056         * lib/uniwidth/u8-strwidth.c: New file.
59057         * modules/uniwidth/u8-strwidth: New file.
59058
59059         * tests/uniwidth/test-u32-width.c: New file.
59060         * modules/uniwidth/u32-width-tests: New file.
59061
59062         * lib/uniwidth/u32-width.c: New file.
59063         * modules/uniwidth/u32-width: New file.
59064
59065         * tests/uniwidth/test-u16-width.c: New file.
59066         * modules/uniwidth/u16-width-tests: New file.
59067
59068         * lib/uniwidth/u16-width.c: New file.
59069         * modules/uniwidth/u16-width: New file.
59070
59071         * tests/uniwidth/test-u8-width.c: New file.
59072         * modules/uniwidth/u8-width-tests: New file.
59073
59074         * lib/uniwidth/u8-width.c: New file.
59075         * modules/uniwidth/u8-width: New file.
59076
59077         * tests/uniwidth/test-uc_width.c: New file.
59078         * modules/uniwidth/width-tests: New file.
59079
59080         * lib/uniwidth/width.c: New file, from GNU libiconv.
59081         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59082         * modules/uniwidth/width: New file.
59083
59084         * lib/uniwidth.h: New file, from GNU libiconv.
59085         * modules/uniwidth/base: New file.
59086
59087 2007-07-07  Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/uniname.h: New file, from GNU gettext.
59090         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59091         * lib/uniname/uninames.h: New file, from GNU gettext.
59092         * lib/uniname/uniname.c: New file, from GNU gettext.
59093         * tests/uniname/test-uninames.sh: New file.
59094         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59095         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59096         * modules/uniname/base: New file.
59097         * modules/uniname/uniname: New file.
59098         * modules/uniname/uniname-tests: New file.
59099         * MODULES.html.sh (Unicode string functions): Add the new modules.
59100
59101 2007-07-06  Bruno Haible  <bruno@clisp.org>
59102
59103         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59104
59105 2007-07-06  Bruno Haible  <bruno@clisp.org>
59106
59107         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59108         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59109         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59110         include <sys/time.h>.
59111         Reported by Eric Blake.
59112
59113 2007-07-06  Eric Blake  <ebb9@byu.net>
59114
59115         Fix testing canonicalize on cygwin.
59116         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59117         Revert patch from 2007-06-19.
59118         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59119         canonicalize module is also in use.
59120         * tests/test-canonicalize.c: New file.
59121         * tests/test-canonicalize.sh: Likewise.
59122         * modules/canonicalize-tests: Likewise.
59123
59124 2007-07-06  Jim Meyering  <jim@meyering.net>
59125
59126         * lib/getugroups.c (getugroups): Detect getgrent failure.
59127         Adjust comment to reflect reality: this function may return -1.
59128
59129 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59130
59131         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59132         the new TP address.
59133         (usage): Fix typo
59134         (gnulib_mk): New variable.
59135
59136 2007-07-05  Jim Meyering  <jim@meyering.net>
59137
59138         Don't let endgrent clobber errno, no matter how improbable.
59139         * lib/getugroups.c (getugroups): Save and restore errno around
59140         endgrent call.
59141
59142         Close the group DB even when failing with 2^31 or more members.
59143         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59144
59145 2007-07-04  Jim Meyering  <jim@meyering.net>
59146
59147         * lib/getugroups.h: New file.
59148         * lib/getugroups.c: Include "getugroups.h".
59149         Remove uses of "register" keyword.
59150         Move local variable, "cp", down into scope where used.
59151         Give "username" parameter the "const" attribute.
59152         * modules/getugroups (Files): Add lib/getugroups.h
59153
59154 2007-07-04  Karl Berry  <karl@gnu.org>
59155
59156         * MODULES.html.sh (func_all_modules): Complete rename of
59157         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59158
59159 2007-07-02  Bruno Haible  <bruno@clisp.org>
59160
59161         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59162         mode, when inttypes.h comes from gnulib.
59163         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59164
59165 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59166
59167         * NEWS: Mention lgpl module name change.
59168
59169         * modules/lgpl-2.1: Renamed from lgpl.
59170
59171         * NEWS: Mention gpl module name change.
59172
59173         * modules/gpl-3.0: New file, based on gpl-2.0.
59174
59175         * modules/gpl-2.0: Renamed from gpl.
59176
59177         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59178         doc/gpl-2.0.texi.
59179
59180 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59183         #define __STDC_LIMIT_MACROS temporarily while including
59184         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59185         Problem reported by Joel E. Denny in
59186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59187
59188 2007-07-01  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/unistdio.h: New file.
59191         * lib/unistdio/u-asnprintf.h: New file.
59192         * lib/unistdio/u-asprintf.h: New file.
59193         * lib/unistdio/u-printf-args.c: New file.
59194         * lib/unistdio/u-printf-args.h: New file.
59195         * lib/unistdio/u-printf-parse.h: New file.
59196         * lib/unistdio/u-snprintf.h: New file.
59197         * lib/unistdio/u-sprintf.h: New file.
59198         * lib/unistdio/u-vasprintf.h: New file.
59199         * lib/unistdio/u-vsnprintf.h: New file.
59200         * lib/unistdio/u-vsprintf.h: New file.
59201         * lib/unistdio/ulc-asnprintf.c: New file.
59202         * lib/unistdio/ulc-asprintf.c: New file.
59203         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59204         * lib/unistdio/ulc-printf-parse.c: New file.
59205         * lib/unistdio/ulc-snprintf.c: New file.
59206         * lib/unistdio/ulc-sprintf.c: New file.
59207         * lib/unistdio/ulc-vasnprintf.c: New file.
59208         * lib/unistdio/ulc-vasprintf.c: New file.
59209         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59210         * lib/unistdio/ulc-vsnprintf.c: New file.
59211         * lib/unistdio/ulc-vsprintf.c: New file.
59212         * lib/unistdio/u8-asnprintf.c: New file.
59213         * lib/unistdio/u8-asprintf.c: New file.
59214         * lib/unistdio/u8-printf-parse.c: New file.
59215         * lib/unistdio/u8-snprintf.c: New file.
59216         * lib/unistdio/u8-sprintf.c: New file.
59217         * lib/unistdio/u8-vasnprintf.c: New file.
59218         * lib/unistdio/u8-vasprintf.c: New file.
59219         * lib/unistdio/u8-vsnprintf.c: New file.
59220         * lib/unistdio/u8-vsprintf.c: New file.
59221         * lib/unistdio/u8-u8-asnprintf.c: New file.
59222         * lib/unistdio/u8-u8-asprintf.c: New file.
59223         * lib/unistdio/u8-u8-snprintf.c: New file.
59224         * lib/unistdio/u8-u8-sprintf.c: New file.
59225         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59226         * lib/unistdio/u8-u8-vasprintf.c: New file.
59227         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59228         * lib/unistdio/u8-u8-vsprintf.c: New file.
59229         * lib/unistdio/u16-asnprintf.c: New file.
59230         * lib/unistdio/u16-asprintf.c: New file.
59231         * lib/unistdio/u16-printf-parse.c: New file.
59232         * lib/unistdio/u16-snprintf.c: New file.
59233         * lib/unistdio/u16-sprintf.c: New file.
59234         * lib/unistdio/u16-vasnprintf.c: New file.
59235         * lib/unistdio/u16-vasprintf.c: New file.
59236         * lib/unistdio/u16-vsnprintf.c: New file.
59237         * lib/unistdio/u16-vsprintf.c: New file.
59238         * lib/unistdio/u16-u16-asnprintf.c: New file.
59239         * lib/unistdio/u16-u16-asprintf.c: New file.
59240         * lib/unistdio/u16-u16-snprintf.c: New file.
59241         * lib/unistdio/u16-u16-sprintf.c: New file.
59242         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59243         * lib/unistdio/u16-u16-vasprintf.c: New file.
59244         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59245         * lib/unistdio/u16-u16-vsprintf.c: New file.
59246         * lib/unistdio/u32-asnprintf.c: New file.
59247         * lib/unistdio/u32-asprintf.c: New file.
59248         * lib/unistdio/u32-printf-parse.c: New file.
59249         * lib/unistdio/u32-snprintf.c: New file.
59250         * lib/unistdio/u32-sprintf.c: New file.
59251         * lib/unistdio/u32-vasnprintf.c: New file.
59252         * lib/unistdio/u32-vasprintf.c: New file.
59253         * lib/unistdio/u32-vsnprintf.c: New file.
59254         * lib/unistdio/u32-vsprintf.c: New file.
59255         * lib/unistdio/u32-u32-asnprintf.c: New file.
59256         * lib/unistdio/u32-u32-asprintf.c: New file.
59257         * lib/unistdio/u32-u32-snprintf.c: New file.
59258         * lib/unistdio/u32-u32-sprintf.c: New file.
59259         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59260         * lib/unistdio/u32-u32-vasprintf.c: New file.
59261         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59262         * lib/unistdio/u32-u32-vsprintf.c: New file.
59263         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59264         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59265         * tests/unistdio/test-ulc-printf1.h: New file.
59266         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59267         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59268         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59269         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59270         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59271         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59272         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59273         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59274         * tests/unistdio/test-u8-asnprintf1.c: New file.
59275         * tests/unistdio/test-u8-asnprintf1.h: New file.
59276         * tests/unistdio/test-u8-printf1.h: New file.
59277         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59278         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59279         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59280         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59281         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59282         * tests/unistdio/test-u8-vasprintf1.c: New file.
59283         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59284         * tests/unistdio/test-u8-vsprintf1.c: New file.
59285         * tests/unistdio/test-u16-asnprintf1.c: New file.
59286         * tests/unistdio/test-u16-asnprintf1.h: New file.
59287         * tests/unistdio/test-u16-printf1.h: New file.
59288         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59289         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59290         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59291         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59292         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59293         * tests/unistdio/test-u16-vasprintf1.c: New file.
59294         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59295         * tests/unistdio/test-u16-vsprintf1.c: New file.
59296         * tests/unistdio/test-u32-asnprintf1.c: New file.
59297         * tests/unistdio/test-u32-asnprintf1.h: New file.
59298         * tests/unistdio/test-u32-printf1.h: New file.
59299         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59300         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59301         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59302         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59303         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59304         * tests/unistdio/test-u32-vasprintf1.c: New file.
59305         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59306         * tests/unistdio/test-u32-vsprintf1.c: New file.
59307         * modules/unistdio/base: New file.
59308         * modules/unistdio/u-printf-args: New file.
59309         * modules/unistdio/ulc-asnprintf: New file.
59310         * modules/unistdio/ulc-asprintf: New file.
59311         * modules/unistdio/ulc-fprintf: New file.
59312         * modules/unistdio/ulc-printf-parse: New file.
59313         * modules/unistdio/ulc-snprintf: New file.
59314         * modules/unistdio/ulc-sprintf: New file.
59315         * modules/unistdio/ulc-vasnprintf: New file.
59316         * modules/unistdio/ulc-vasprintf: New file.
59317         * modules/unistdio/ulc-vfprintf: New file.
59318         * modules/unistdio/ulc-vsnprintf: New file.
59319         * modules/unistdio/ulc-vsprintf: New file.
59320         * modules/unistdio/u8-asnprintf: New file.
59321         * modules/unistdio/u8-asprintf: New file.
59322         * modules/unistdio/u8-printf-parse: New file.
59323         * modules/unistdio/u8-snprintf: New file.
59324         * modules/unistdio/u8-sprintf: New file.
59325         * modules/unistdio/u8-vasnprintf: New file.
59326         * modules/unistdio/u8-vasprintf: New file.
59327         * modules/unistdio/u8-vsnprintf: New file.
59328         * modules/unistdio/u8-vsprintf: New file.
59329         * modules/unistdio/u8-u8-asnprintf: New file.
59330         * modules/unistdio/u8-u8-asprintf: New file.
59331         * modules/unistdio/u8-u8-snprintf: New file.
59332         * modules/unistdio/u8-u8-sprintf: New file.
59333         * modules/unistdio/u8-u8-vasnprintf: New file.
59334         * modules/unistdio/u8-u8-vasprintf: New file.
59335         * modules/unistdio/u8-u8-vsnprintf: New file.
59336         * modules/unistdio/u8-u8-vsprintf: New file.
59337         * modules/unistdio/u16-asnprintf: New file.
59338         * modules/unistdio/u16-asprintf: New file.
59339         * modules/unistdio/u16-printf-parse: New file.
59340         * modules/unistdio/u16-snprintf: New file.
59341         * modules/unistdio/u16-sprintf: New file.
59342         * modules/unistdio/u16-vasnprintf: New file.
59343         * modules/unistdio/u16-vasprintf: New file.
59344         * modules/unistdio/u16-vsnprintf: New file.
59345         * modules/unistdio/u16-vsprintf: New file.
59346         * modules/unistdio/u16-u16-asnprintf: New file.
59347         * modules/unistdio/u16-u16-asprintf: New file.
59348         * modules/unistdio/u16-u16-snprintf: New file.
59349         * modules/unistdio/u16-u16-sprintf: New file.
59350         * modules/unistdio/u16-u16-vasnprintf: New file.
59351         * modules/unistdio/u16-u16-vasprintf: New file.
59352         * modules/unistdio/u16-u16-vsnprintf: New file.
59353         * modules/unistdio/u16-u16-vsprintf: New file.
59354         * modules/unistdio/u32-asnprintf: New file.
59355         * modules/unistdio/u32-asprintf: New file.
59356         * modules/unistdio/u32-printf-parse: New file.
59357         * modules/unistdio/u32-snprintf: New file.
59358         * modules/unistdio/u32-sprintf: New file.
59359         * modules/unistdio/u32-vasnprintf: New file.
59360         * modules/unistdio/u32-vasprintf: New file.
59361         * modules/unistdio/u32-vsnprintf: New file.
59362         * modules/unistdio/u32-vsprintf: New file.
59363         * modules/unistdio/u32-u32-asnprintf: New file.
59364         * modules/unistdio/u32-u32-asprintf: New file.
59365         * modules/unistdio/u32-u32-snprintf: New file.
59366         * modules/unistdio/u32-u32-sprintf: New file.
59367         * modules/unistdio/u32-u32-vasnprintf: New file.
59368         * modules/unistdio/u32-u32-vasprintf: New file.
59369         * modules/unistdio/u32-u32-vsnprintf: New file.
59370         * modules/unistdio/u32-u32-vsprintf: New file.
59371         * modules/unistdio/ulc-asnprintf-tests: New file.
59372         * modules/unistdio/ulc-vasnprintf-tests: New file.
59373         * modules/unistdio/ulc-vasprintf-tests: New file.
59374         * modules/unistdio/ulc-vsnprintf-tests: New file.
59375         * modules/unistdio/ulc-vsprintf-tests: New file.
59376         * modules/unistdio/u8-asnprintf-tests: New file.
59377         * modules/unistdio/u8-vasnprintf-tests: New file.
59378         * modules/unistdio/u8-vasprintf-tests: New file.
59379         * modules/unistdio/u8-vsnprintf-tests: New file.
59380         * modules/unistdio/u8-vsprintf-tests: New file.
59381         * modules/unistdio/u16-asnprintf-tests: New file.
59382         * modules/unistdio/u16-vasnprintf-tests: New file.
59383         * modules/unistdio/u16-vasprintf-tests: New file.
59384         * modules/unistdio/u16-vsnprintf-tests: New file.
59385         * modules/unistdio/u16-vsprintf-tests: New file.
59386         * modules/unistdio/u32-asnprintf-tests: New file.
59387         * modules/unistdio/u32-vasnprintf-tests: New file.
59388         * modules/unistdio/u32-vasprintf-tests: New file.
59389         * modules/unistdio/u32-vsnprintf-tests: New file.
59390         * modules/unistdio/u32-vsprintf-tests: New file.
59391         * MODULES.html.sh (Unicode string functions): Add the new modules.
59392
59393 2007-07-01  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/sprintf.c (sprintf): Limit the available length estimation,
59396         to avoid address wraparound.
59397         * lib/vsprintf.c (vsprintf): Likewise.
59398         * modules/sprintf-posix (Dependencies): Add stdint.
59399         * modules/vsprintf-posix (Dependencies): Likewise.
59400
59401 2007-07-01  Bruno Haible  <bruno@clisp.org>
59402
59403         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59404         Windows PATH as well. Conservative double-quoting. Comments.
59405
59406 2007-07-01  Bruno Haible  <bruno@clisp.org>
59407             Eric Blake  <ebb9@byu.net>
59408             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59409
59410         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59411         empty components in $PATH, denoting '.'.
59412
59413 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59414
59415         * gnulib-tool: Fix indentation.
59416         (func_create_megatestdir): Likewise.
59417         Report by Bruno Haible.
59418
59419 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59420
59421         Sync from Automake.
59422         * build-aux/gnupload: Fix shell portability issues with for loops.
59423         Report by Karl Berry.
59424
59425 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59426
59427         * build-aux/maint.mk (POURL): Use translationproject.org.
59428
59429 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59430             Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59433         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59434         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59435         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59436         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59437
59438 2007-06-27  Bruno Haible  <bruno@clisp.org>
59439
59440         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59441         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59442
59443 2007-06-26  Karl Berry  <karl@gnu.org>
59444
59445         * MODULES.html.sh: remove xreadlink-with-size.
59446
59447 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59448
59449         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59450         method that I hope also handles the double-include problem noted
59451         by Bruno Haible in
59452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59453
59454 2007-06-23  Bruno Haible  <bruno@clisp.org>
59455
59456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59457         Don't let the 'mostlyclean' target fail if the last subdirectory could
59458         not be removed.
59459         Reported by Karl Berry.
59460
59461 2007-06-23  Bruno Haible  <bruno@clisp.org>
59462
59463         * gnulib-tool (echo): Add a speedier workaround for ksh.
59464         * tests/test-echo.sh: Likewise.
59465
59466 2007-06-23  Bruno Haible  <bruno@clisp.org>
59467
59468         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59469         * tests/test-echo.sh: Likewise.
59470
59471 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59472
59473         * gnulib-tool (IFS): Initialize early, so we don't set it to
59474         empty later.
59475         (self_abspathname): Rewrite algorithm to set it, reindent.
59476         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59477         (func_create_megatestdir): Merge some sed scripts.
59478
59479 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59480
59481         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59482         exposed by Sun Studio 11 cc on Solaris 8.
59483
59484 2007-06-22  Bruno Haible  <bruno@clisp.org>
59485
59486         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59487         backslashes.
59488         * tests/test-echo.sh: New file.
59489
59490 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59491
59492         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59493         simplify `sed_replace_build_aux' scripts, they are portable but
59494         echoing them with `echo' is not.
59495         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59496
59497 2007-06-21  Karl Berry  <karl@gnu.org>
59498
59499         * config/srclist.txt: guess we can't handle the licenses via
59500         srclist at the moment.
59501
59502 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         * MODULES.html.sh: Add include_next.
59505         * modules/include_next: New file.
59506
59507 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59510         INCLUDE_NEXT.
59511         (gl_CHECK_NEXT_HEADERS): New macro.
59512         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59513         the obsolescent gl_ABSOLUTE_HEADER.
59514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59515         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59516         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59517         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59518         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59519         * m4/math_h.m4 (gl_MATH_H): Likewise.
59520         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59521         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59522         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59524         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59525         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59526         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59530         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59531         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59532         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59533         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59534         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59535         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59536         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59537         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59538         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59539         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59540         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59541         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59542         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59543         * lib/float_.h: Likewise.
59544         * lib/inttypes_.h: Likewise.
59545         * lib/math_.h: Likewise.
59546         * lib/search_.h: Likewise.
59547         * lib/signal_.h: Likewise.
59548         * lib/stdint_.h: Likewise.
59549         * lib/stdio_.h: Likewise.
59550         * lib/stdlib_.h: Likewise.
59551         * lib/string_.h: Likewise.
59552         * lib/sys_stat_.h: Likewise.
59553         * lib/sys_time_.h: Likewise.
59554         * lib/time_.h: Likewise.
59555         * lib/unistd_.h: Likewise.
59556         * lib/wchar_.h: Likewise.
59557         * lib/wctype_.h: Likewise.
59558         * lib/dirent_.h: Likewise.
59559         * lib/iconv_.h: Likewise.
59560         * lib/locale_.h: Likewise.
59561         * lib/netinet_in_.h: Likewise.
59562         * lib/sys_select_.h: Likewise.
59563         * lib/sys_socket_.h: Likewise.
59564         * lib/sysexits_.h: Likewise.
59565         * modules/fcntl (Depends-on): Depend on include_next, not
59566         absolute_header.
59567         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59568         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59569         * modules/fchdir: Likewise.
59570         * modules/float: Likewise.
59571         * modules/iconv_open: Likewise.
59572         * modules/inttypes: Likewise.
59573         * modules/locale: Likewise.
59574         * modules/math: Likewise.
59575         * modules/netinet_in: Likewise.
59576         * modules/search: Likewise.
59577         * modules/signal: Likewise.
59578         * modules/stdint: Likewise.
59579         * modules/stdio: Likewise.
59580         * modules/stdlib: Likewise.
59581         * modules/string: Likewise.
59582         * modules/sys_select: Likewise.
59583         * modules/sys_socket: Likewise.
59584         * modules/sys_stat: Likewise.
59585         * modules/sys_time: Likewise.
59586         * modules/sysexits: Likewise.
59587         * modules/time: Likewise.
59588         * modules/unistd: Likewise.
59589         * modules/wchar: Likewise.
59590         * modules/wctype: Likewise.
59591         * modules/sys_stat: Change maintainer to "all".
59592         * modules/unistd: Likewise.
59593
59594 2007-06-20  Karl Berry  <karl@gnu.org>
59595
59596         * config/srclist.txt: track www changes in license files.
59597
59598 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59599
59600         * build-aux/bootstrap: Remove stray dot.
59601         Make sure build_aux settings are honored when linking
59602         gnulib_extra_files.
59603
59604 2007-06-19  Eric Blake  <ebb9@byu.net>
59605
59606         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59607         Allow compilation on cygwin.
59608
59609 2007-06-19  Jim Meyering  <jim@meyering.net>
59610
59611         xreadlink-with-size: Remove module.  No longer used.
59612         Ex-callers now use xreadlink or mreadlink-with-size.
59613         * modules/xreadlink-with-size: Remove module.
59614         * lib/xreadlink-with-size.c: Remove file.
59615         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59616         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59617         just before the function definition *is* accurate.
59618
59619         Eliminate one way canonicalize_filename_mode could exit.
59620         * lib/canonicalize.c (canonicalize_filename_mode):
59621         Use mreadlink_with_size, not xreadlink_with_size.
59622
59623 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         Detect porting problems to FreeBSD/arm, which has time_t wider than
59626         long int.  Original problem reported for GNU diff by Xin Li in
59627         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59628         * modules/getdate (Depends-on): Add intprops, verify.
59629         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59630         is an integer type no wider than long int.
59631
59632 2007-06-18  Jim Meyering  <jim@meyering.net>
59633
59634         New module: mreadlink-with-size.
59635         * MODULES.html.sh: Add mreadlink-with-size.
59636         * modules/mreadlink-with-size: New module
59637         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59638         not xreadlink-with-size.
59639         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59640
59641 2007-06-16  Bruno Haible  <bruno@clisp.org>
59642
59643         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59644         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59645         Reported by Gary V. Vaughan <gary@gnu.org>.
59646
59647 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         Revamp lchown so that it lives in unistd.h where it belongs.
59650         * lib/lchown.h: Remove.
59651         * lib/dirchownmod.c: Don't include lib/lchown.h.
59652         * lib/fchownat.c: Likewise.
59653         * lib/openat.c: Likewise.
59654         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59655         does not follow symlinks.
59656         (EOPNOTSUPP): Define if not defined.
59657         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59658         is defined to 0.
59659         (lchown): New decl.
59660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59661         Do not check for lchown decl.
59662         Set REPLACE_LCHOWN.
59663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59664         REPLACE_LCHOWN.
59665         * modules/chown: Make it clear it follows symlinks.
59666         * modules/lchown: Make it clear it doesn't follow symlinks.
59667         (Files): Remove lib/lchown.h
59668         (Depends-on): Add unistd.
59669         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59670         (Include): Include <unistd.h>, not "lchown.h".
59671         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59672         REPLACE_LCHOWN.
59673
59674 2007-06-15  Jim Meyering  <jim@meyering.net>
59675
59676         Change license (GPL to LGPL) of fsusage and dependents.
59677         * modules/fsusage (License): Change to LGPL.
59678         * modules/full-read (License): Likewise.
59679         * modules/full-write (License): Likewise.
59680         * modules/safe-read (License): Likewise.
59681         * modules/safe-write (License): Likewise.
59682
59683 2007-06-14  Ben Pfaff  <blp@gnu.org>
59684
59685         Missing part of allocsa -> malloca transition.
59686         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59687         gl_MALLOCA.
59688
59689 2007-06-12  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59692         to ia64, x86_64, i386.
59693         Reported by Eric Blake.
59694
59695 2007-06-12  Bruno Haible  <bruno@clisp.org>
59696
59697         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59698         cross-compiling to x86_64.
59699
59700 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59703         glitch reported by Ralf Wildenhues in
59704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59705
59706         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59707         Vin Shelton.
59708
59709 2007-06-11  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59712         replacement string.
59713         Reported by Eric Blake.
59714
59715 2007-06-10  Bruno Haible  <bruno@clisp.org>
59716
59717         Prepare vasnprintf code for use with Unicode strings.
59718         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59719         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59720         TYPE_U32_STRING.
59721         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59722         a_u32_string variants.
59723         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59724         * lib/printf-args.c: Don't include config.h and the specification
59725         header if PRINTF_FETCHARGS is already defined.
59726         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59727         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59728         TYPE_U16_STRING, TYPE_U32_STRING.
59729         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59730         u16_directive, u16_directives, u32_directive, u32_directives): New
59731         types.
59732         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59733         New declarations.
59734         * lib/printf-parse.c: Don't include config.h and the specification
59735         header if PRINTF_PARSE is already defined. Eliminate the set of
59736         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59737         them now. Include c-ctype.h.
59738         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59739         directive and CHAR_T_ONLY_ASCII.
59740         * lib/vasnprintf.c: Don't include config.h and the specification header
59741         if VASNPRINTF is already defined.
59742         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59743         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59744         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59745         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59746         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59747         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59748         code accordingly.
59749         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59750         pad_ourselves also in this case, with the 'c' and 's' directives, and
59751         with a different notion of "width".
59752         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59753
59754 2007-06-10  Bruno Haible  <bruno@clisp.org>
59755
59756         * modules/unistr/u32-mbsnlen: New file.
59757         * lib/unistr/u32-mbsnlen.c: New file.
59758
59759         * modules/unistr/u16-mbsnlen: New file.
59760         * lib/unistr/u16-mbsnlen.c: New file.
59761
59762         * modules/unistr/u8-mbsnlen: New file.
59763         * lib/unistr/u8-mbsnlen.c: New file.
59764
59765         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59766         declarations.
59767
59768 2007-06-10  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/string_.h (mbsnlen): New declaration.
59771         * lib/mbsnlen.c: New file.
59772         * m4/mbsnlen.m4: New file.
59773         * modules/mbsnlen: New file.
59774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59775         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59776         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59777
59778 2007-06-10  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59781
59782 2007-06-10  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59785         * lib/mbuiter.h: Likewise.
59786
59787 2007-06-10  Bruno Haible  <bruno@clisp.org>
59788
59789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59790         declaration.
59791
59792 2007-06-10  Karl Berry  <karl@gnu.org>
59793
59794         * config/srclist.txt: remove gettext entries, Bruno prefers
59795         to update individually.
59796
59797 2007-06-10  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59800         'maxlen'. Ensure only length + width bytes are allocated, not
59801         length + 1 + width.
59802
59803 2007-06-09  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59806         (CHAR_T): Remove macro.
59807         (VASNPRINTF): Update.
59808
59809 2007-06-09  Bruno Haible  <bruno@clisp.org>
59810
59811         * MODULES.html.sh (Unicode string functions): Add the new modules.
59812
59813         * modules/uniconv/u32-conv-to-enc: New file.
59814         * lib/uniconv/u32-conv-to-enc.c: New file.
59815         * modules/uniconv/u32-conv-to-enc-tests: New file.
59816         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59817
59818         * modules/uniconv/u16-conv-to-enc: New file.
59819         * lib/uniconv/u16-conv-to-enc.c: New file.
59820         * lib/uniconv/u-conv-to-enc.h: New file.
59821         * modules/uniconv/u16-conv-to-enc-tests: New file.
59822         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59823
59824         * modules/uniconv/u8-conv-to-enc: New file.
59825         * lib/uniconv/u8-conv-to-enc.c: New file.
59826         * modules/uniconv/u8-conv-to-enc-tests: New file.
59827         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59828
59829         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59830         u32_conv_to_encoding): New declarations.
59831
59832 2007-06-09  Bruno Haible  <bruno@clisp.org>
59833
59834         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59835
59836 2007-06-09  Bruno Haible  <bruno@clisp.org>
59837
59838         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59839         * modules/malloca: Renamed from modules/allocsa, updated.
59840         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59841         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59842         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59843         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59844         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59845         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59846         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59847         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59848         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59849         * modules/c-strcasestr (Depends-on): Update.
59850         * lib/c-strcasestr.c: Update.
59851         * modules/c-strstr (Depends-on): Update.
59852         * lib/c-strstr.c: Update.
59853         * modules/canonicalize-lgpl (Depends-on): Update.
59854         * lib/canonicalize-lgpl.c: Update.
59855         * modules/clean-temp (Depends-on): Update.
59856         * lib/clean-temp.c: Update.
59857         * modules/csharpcomp (Depends-on): Update.
59858         * lib/csharpcomp.c: Update.
59859         * modules/csharpexec (Depends-on): Update.
59860         * lib/csharpexec.c: Update.
59861         * modules/javacomp (Depends-on): Update.
59862         * lib/javacomp.c: Update.
59863         * modules/javaexec (Depends-on): Update.
59864         * lib/javaexec.c: Update.
59865         * modules/mbscasestr (Depends-on): Update.
59866         * lib/mbscasestr.c: Update.
59867         * modules/mbsstr (Depends-on): Update.
59868         * lib/mbsstr.c: Update.
59869         * modules/setenv (Depends-on): Update.
59870         * lib/setenv.c: Update.
59871         * modules/strcasestr (Depends-on): Update.
59872         * lib/strcasestr.c: Update.
59873         * modules/striconveha (Depends-on): Update.
59874         * lib/striconveha.c: Update.
59875         * modules/relocatable-prog-wrapper (Files): Update.
59876         * lib/relocwrapper.c: Update.
59877         * build-aux/install-reloc: Update.
59878         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59879
59880 2007-06-08  Bruno Haible  <bruno@clisp.org>
59881
59882         Port to uClibc.
59883         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59884         * lib/fpurge.c (fpurge): Likewise.
59885         * lib/freading.c (freading): Likewise.
59886         * lib/fseeko.c (rpl_fseeko): Likewise.
59887         * lib/fseterr.c (fseterr): Likewise.
59888         * lib/fwriting.c (fwriting): Likewise.
59889         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59890
59891 2007-06-08  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59894         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59895         * modules/gettext (Files): Add m4/intlmacosx.m4.
59896
59897 2007-06-07  Bruno Haible  <bruno@clisp.org>
59898
59899         * modules/localename-tests: New file.
59900         * tests/test-localename.c: New file.
59901
59902         New module 'localename'.
59903         * lib/localename.h: New file.
59904         * lib/localename.c: New file, from GNU gettext.
59905         * m4/localename.m4: New file.
59906         * modules/localename: New file.
59907
59908 2007-06-07  Bruno Haible  <bruno@clisp.org>
59909
59910         Work around the lack of <wchar.h> on some builds of uClibc.
59911         * doc/headers/wchar.texi: Update.
59912         * lib/wchar_.h: Include <wchar.h> only if it exists.
59913         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59914         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59915         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59916         doesn't exist.
59917         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59918         * modules/mbfile (Depends-on): Add wchar.
59919         * modules/mbiter (Depends-on): Likewise.
59920         * modules/mbuiter (Depends-on): Likewise.
59921         Reported by Simon Josefsson.
59922
59923 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         Work around problem reported by Steven M. Schweda in
59926         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59927         Tru64 5.1B with the Compaq compiler environment installed declares
59928         an 'isblank' function but does not define it in the C library.
59929         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59930         * lib/regex_internal.h (isblank): Likewise.
59931         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59933
59934 2007-06-05  Bruno Haible  <bruno@clisp.org>
59935
59936         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59937         ia64.
59938         * modules/printf-safe: New file.
59939         * modules/fprintf-posix (Depends-on): Add printf-safe.
59940         * modules/printf-posix (Depends-on): Likewise.
59941         * modules/snprintf-posix (Depends-on): Likewise.
59942         * modules/sprintf-posix (Depends-on): Likewise.
59943         * modules/vasnprintf-posix (Depends-on): Likewise.
59944         * modules/vasprintf-posix (Depends-on): Likewise.
59945         * modules/vfprintf-posix (Depends-on): Likewise.
59946         * modules/vprintf-posix (Depends-on): Likewise.
59947         * modules/vsnprintf-posix (Depends-on): Likewise.
59948         * modules/vsprintf-posix (Depends-on): Likewise.
59949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59950         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59951         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59952         "no" on i386, x86_64, ia64.
59953         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59954         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59955         on i386, x86_64, ia64.
59956         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59957         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59958         on i386, x86_64, ia64.
59959         * tests/test-vasnprintf-posix.c: Include float.h.
59960         (LDBL80_WORDS): New macro.
59961         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59962         on i386, x86_64, ia64.
59963         * tests/test-vasprintf-posix.c: Include float.h.
59964         (LDBL80_WORDS): New macro.
59965         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59966         on i386, x86_64, ia64.
59967         * tests/test-snprintf-posix.c: Include float.h.
59968         * tests/test-sprintf-posix.c: Likewise.
59969         * tests/test-vsnprintf-posix.c: Likewise.
59970         * tests/test-vsprintf-posix.c: Likewise.
59971
59972 2007-06-05  Bruno Haible  <bruno@clisp.org>
59973
59974         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59975         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59976         non-IEEE numbers on i386, x86_64, ia64.
59977         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59978         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59979         * tests/test-isnanl.h: Include float.h.
59980         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59981
59982 2007-06-05  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59985         also the %a / %A. Handle the %a / %A code before this extra handling.
59986
59987 2007-06-05  Bruno Haible  <bruno@clisp.org>
59988
59989         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59990         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59991
59992 2007-06-05  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59995         typo in variable name.
59996
59997 2007-06-05  Eric Blake  <ebb9@byu.net>
59998
59999         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60000         Reported by Simon Josefsson.
60001
60002 2007-06-04  Bruno Haible  <bruno@clisp.org>
60003
60004         Avoid test failures on some PowerPC platforms.
60005         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60006         Define differently for PowerPC.
60007         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60008         Reported by Gary V. Vaughan <gary@gnu.org>.
60009
60010 2007-06-02  Bruno Haible  <bruno@clisp.org>
60011
60012         Fix test-stdint failure on FreeBSD/ia64.
60013         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60014         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60015         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60016         * doc/headers/stdint.texi: Update.
60017
60018 2007-06-01  Bruno Haible  <bruno@clisp.org>
60019
60020         * tests/test-binary-io.c (main): Pass a third argument to open().
60021         Reported by Gary V. Vaughan <gary@gnu.org>.
60022
60023 2007-06-01  Bruno Haible  <bruno@clisp.org>
60024
60025         * doc/functions/frexpl.texi: Update for mingw.
60026
60027 2007-06-01  Bruno Haible  <bruno@clisp.org>
60028
60029         * tests/test-lseek.c (main): Disable test of errno for invalid third
60030         argument.
60031         * doc/functions/lseek.texi: Update.
60032         Reported by Gary V. Vaughan <gary@gnu.org>.
60033
60034 2007-05-28  Bruno Haible  <bruno@clisp.org>
60035
60036         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60037
60038 2007-05-31  Eric Blake  <ebb9@byu.net>
60039
60040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60041         cross compiling.
60042
60043 2007-05-30  Eric Blake  <ebb9@byu.net>
60044         and Bruno Haible  <bruno@clisp.org>
60045
60046         Work around mingw test failures exposed by m4-1.4.9b.
60047         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60048         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60049         moment.
60050
60051 2007-05-30  Bruno Haible  <bruno@clisp.org>
60052
60053         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60054         assuming that they are closed. Needed on HP-UX 11.
60055
60056 2007-05-29  Bruno Haible  <bruno@clisp.org>
60057
60058         Fix a problem with #include_next.
60059         * lib/dirent_.h: Split the double-inclusion guard.
60060         * lib/fcntl_.h: Likewise.
60061         * lib/float_.h: Likewise.
60062         * lib/iconv_.h: Likewise.
60063         * lib/inttypes_.h: Likewise.
60064         * lib/locale_.h: Likewise.
60065         * lib/math_.h: Likewise.
60066         * lib/netinet_in_.h: Likewise.
60067         * lib/search_.h: Likewise.
60068         * lib/signal_.h: Likewise.
60069         * lib/stdint_.h: Likewise.
60070         * lib/stdio_.h: Likewise.
60071         * lib/stdlib_.h: Likewise.
60072         * lib/string_.h: Likewise.
60073         * lib/sys_select_.h: Likewise.
60074         * lib/sys_socket_.h: Likewise.
60075         * lib/sys_stat_.h: Likewise.
60076         * lib/sys_time_.h: Likewise.
60077         * lib/sysexits_.h: Likewise.
60078         * lib/time_.h: Likewise.
60079         * lib/unistd_.h: Likewise.
60080         * lib/wchar_.h: Likewise.
60081         * lib/wctype_.h: Likewise.
60082
60083 2007-05-29  Bruno Haible  <bruno@clisp.org>
60084
60085         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60086         for the moment.
60087
60088 2007-05-29  Bruno Haible  <bruno@clisp.org>
60089
60090         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60091         invocation.
60092         Reported by Eric Blake.
60093
60094 2007-05-29  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60097         compiling case.
60098
60099 2007-05-29  Eric Blake  <ebb9@byu.net>
60100             Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60103         cross compiles.
60104
60105 2007-05-28  Eric Blake  <ebb9@byu.net>
60106
60107         * modules/closein-tests (test_closein_LDADD): Support test on
60108         cygwin with libtool.
60109
60110 2007-05-28  Bruno Haible  <bruno@clisp.org>
60111
60112         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60113         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60114         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60115         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60116         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60117         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60118         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60119         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60120         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60121
60122 2007-05-28  Eric Blake  <ebb9@byu.net>
60123
60124         Unconditionally include <config.h> in unit tests.
60125         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60126         * tests/test-allocsa.c, tests/test-arcfour.c,
60127         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60128         tests/test-array_list.c, tests/test-array_oset.c,
60129         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60130         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60131         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60132         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60133         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60134         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60135         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60136         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60137         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60138         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60139         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60140         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60141         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60142         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60143         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60144         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60145         test-md5.c, test-memmem.c, test-printf-posix.c,
60146         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60147         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60148         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60149         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60150         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60151         test-vasnprintf-posix2.c, test-vasnprintf.c,
60152         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60153         test-vfprintf-posix.c, test-vprintf-posix.c,
60154         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60155         test-xvasprintf.c: Likewise.
60156
60157 2007-05-28  Bruno Haible  <bruno@clisp.org>
60158
60159         * gnulib-tool (func_import): Remember the --with-tests command-line
60160         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60161         Reported by Eric Blake.
60162
60163 2007-05-28  Bruno Haible  <bruno@clisp.org>
60164
60165         * modules/ftell-tests: New file.
60166         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60167         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60168
60169         * lib/ftell.c: New file.
60170         * modules/ftell: New file.
60171         * m4/ftell.m4: New file.
60172         * doc/functions/ftell.texi: Update.
60173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60174         REPLACE_FTELL.
60175         * lib/stdio_.h (rpl_ftell): New declaration.
60176         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60177         REPLACE_FTELL.
60178
60179 2007-05-28  Eric Blake  <ebb9@byu.net>
60180
60181         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60182
60183 2007-05-28  Bruno Haible  <bruno@clisp.org>
60184
60185         * modules/fseek-tests: New file.
60186         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60187         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60188
60189         * lib/fseek.c: New file.
60190         * modules/fseek: New file.
60191         * m4/fseek.m4: New file.
60192         * doc/functions/fseek.texi: Update.
60193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60194         REPLACE_FSEEK.
60195         * lib/stdio_.h (rpl_fseek): New declaration.
60196         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60197         REPLACE_FSEEK.
60198
60199 2007-05-28  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/stdio_.h (fflush): More comments.
60202
60203 2007-05-28  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60206         runtime test.
60207
60208 2007-05-28  Eric Blake  <ebb9@byu.net>
60209
60210         Improve lseek module.
60211         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60212         * lib/unistd_.h (lseek): Scale back link warning message.
60213         * tests/test-lseek.c: Beef up test.
60214         * tests/test-lseek.sh: Exercise more facets of lseek.
60215         Reported by Bruno Haible.
60216
60217 2007-05-28  Bruno Haible  <bruno@clisp.org>
60218
60219         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60220         to define.
60221
60222 2007-05-27  Bruno Haible  <bruno@clisp.org>
60223
60224         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60225
60226 2007-05-27  Bruno Haible  <bruno@clisp.org>
60227
60228         * modules/openmp: New file.
60229         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60230         Noah Misch.
60231
60232 2007-05-26  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/chdir-long (Depends-on): Add fchdir.
60235         * modules/chdir-safer (Depends-on): Likewise.
60236         * modules/fts (Depends-on): Likewise.
60237         * modules/fts-lgpl (Depends-on): Likewise.
60238         * modules/openat (Depends-on): Likewise.
60239         * modules/savewd (Depends-on): Likewise.
60240
60241 2007-05-24  Eric Blake  <ebb9@byu.net>
60242
60243         Fix lseek on mingw.
60244         * modules/lseek: New module.
60245         * m4/lseek.m4: New file.
60246         * lib/lseek.c: New file.
60247         * modules/lseek-tests: New file.
60248         * tests/test-lseek.c: New file.
60249         * tests/test-lseek.sh: New file.
60250         * MODULES.html.sh: Document lseek module.
60251         * modules/fflush (Depends-on): Add lseek, fseeko.
60252         * modules/fseeko (Depends-on): Likewise.
60253         * modules/ftello (Depends-on): Likewise.
60254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60255         broken.
60256         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60257         broken.
60258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60259         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60260         * lib/ftello.c (rpl_ftello): Likewise.
60261         * tests/test-fseeko.c (main): Test this.
60262         * tests/test-fseeko.sh: Likewise.
60263         * tests/test-ftello.c (main): Likewise.
60264         * tests/test-ftello.sh: Likewise.
60265         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60266         implies replacing fseek.
60267         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60268         HAVE_FTELLO.
60269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60270         * modules/unistd (Makefile.am): Likewise.
60271         * lib/unistd_.h (lseek): Declare a replacement.
60272         * doc/functions/lseek.texi (lseek): Document this fix.
60273         * doc/functions/fseek.texi (fseek): Likewise.
60274         * doc/functions/ftell.texi (ftell): Likewise.
60275
60276 2007-05-24  Bruno Haible  <bruno@clisp.org>
60277
60278         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60279         in the printed representation of a NaN.
60280         * tests/test-vasprintf-posix.c (test_function): Likewise.
60281         * tests/test-snprintf-posix.h (test_function): Likewise.
60282         * tests/test-sprintf-posix.h (test_function): Likewise.
60283         Reported by Eric Blake.
60284
60285 2007-05-23  Eric Blake  <ebb9@byu.net>
60286
60287         Fix fseeko/ftello on cygwin 1.5.24.
60288         * doc/functions/fseeko.texi (fseeko): Document the fix.
60289         * doc/functions/ftello.texi (ftello): Document the fix.
60290         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60291         * doc/functions/stdout.text (stdout): New file.
60292         * doc/functions/stderr.text (stderr): New file.
60293         * doc/gnulib.texi (Function Substitutes): Use new files.
60294         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60295         prior to 1.7.0.
60296         * tests/test-ftello.c (main): Likewise for ftello.
60297         * tests/test-fseeko.sh: New file.
60298         * tests/test-ftello.sh: New file.
60299         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60300         with seekable stdin.
60301         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60303         (gl_REPLACE_FSEEKO): New macro.
60304         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60305         * modules/fseeko (Files): Distribute fseeko.c.
60306         * modules/ftello (Files): Distribute ftello.c.
60307         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60308         mode.
60309         * lib/ftello.c (rpl_ftello): New file.
60310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60311         fseeko, ftello.
60312         (gl_STDIN_LARGE_OFFSET): New macro.
60313         * modules/stdio (Makefile.am): Perform the replacement.
60314         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60315
60316 2007-05-23  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60319         GNULIB_POSIXCHECK is defined.
60320
60321 2007-05-21  Bruno Haible  <bruno@clisp.org>
60322
60323         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60324         Check also the output for NaN arguments. When cross-compiling, guess
60325         no on IRIX.
60326         * lib/vasnprintf.c: Update comments.
60327         * tests/test-vasnprintf-posix.c (strisnan): New function.
60328         (test_function): Use it.
60329         * tests/test-vasprintf-posix.c (strisnan): New function.
60330         (test_function): Use it.
60331         * tests/test-snprintf-posix.h (strisnan): New function.
60332         (test_function): Use it.
60333         * tests/test-sprintf-posix.h (strisnan): New function.
60334         (test_function): Use it.
60335         Reported by Eric Blake.
60336
60337 2007-05-20  Bruno Haible  <bruno@clisp.org>
60338
60339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60340         numbers that fails on BeOS.
60341         * doc/functions/frexpl.texi: Update.
60342
60343 2007-05-20  Jim Meyering  <jim@meyering.net>
60344
60345         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60346         forced upon us by glibc-2.6.
60347
60348 2007-05-20  Bruno Haible  <bruno@clisp.org>
60349
60350         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60351         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60352         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60353         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60354         NEED_PRINTF_INFINITE.
60355         (is_infinitel): New function.
60356         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60358         gl_PREREQ_VASNPRINTF_INFINITE.
60359         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60361         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60362         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60363         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60364         gl_PREREQ_VASNPRINTF_INFINITE.
60365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60368         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60372         * doc/functions/fprintf.texi: Update.
60373         * doc/functions/printf.texi: Update.
60374         * doc/functions/snprintf.texi: Update.
60375         * doc/functions/sprintf.texi: Update.
60376         * doc/functions/vfprintf.texi: Update.
60377         * doc/functions/vprintf.texi: Update.
60378         * doc/functions/vsnprintf.texi: Update.
60379         * doc/functions/vsprintf.texi: Update.
60380
60381 2007-05-20  Bruno Haible  <bruno@clisp.org>
60382
60383         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60384         was not found in libc.
60385         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60386
60387 2007-05-20  Bruno Haible  <bruno@clisp.org>
60388
60389         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60390         printed as "-nan" instead of "nan".
60391         * tests/test-vasprintf-posix.c (test_function): Likewise.
60392         * tests/test-snprintf-posix.h (test_function): Likewise.
60393         * tests/test-sprintf-posix.h (test_function): Likewise.
60394         Needed for HP-UX 11.
60395
60396 2007-05-20  Jim Meyering  <jim@meyering.net>
60397
60398         Fix buggy test for the fchownat-deref bug.
60399         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60400         symlink required for the run-test.  Without it, this test would
60401         always declare that fchownat doesn't work, and client code would
60402         unnecessarily use the replacement function with fixed libc.
60403         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60404         Reported by Greg Schafer.
60405
60406 2007-05-19  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60409         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60410         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60411         Needed for IRIX 6.5 and Solaris 2.5.1.
60412
60413 2007-05-19  Bruno Haible  <bruno@clisp.org>
60414
60415         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60416         (test_function): Skip tests involving -0.0 on platforms where
60417         -0.0 = 0.0.
60418         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60419         (test_function): Skip tests involving -0.0 on platforms where
60420         -0.0 = 0.0.
60421         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60422         (test_function): Skip tests involving -0.0 on platforms where
60423         -0.0 = 0.0.
60424         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60425         (test_function): Skip tests involving -0.0 on platforms where
60426         -0.0 = 0.0.
60427         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60428         tests.
60429         * tests/test-printf-posix.h (test_function): Likewise.
60430         * tests/test-printf-posix.output: Remove all -0.0 related results.
60431         Needed for IRIX 6.5.
60432
60433 2007-05-19  Bruno Haible  <bruno@clisp.org>
60434
60435         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60436         printed as "nan0x7fffffff" instead of "nan".
60437         * tests/test-vasprintf-posix.c (test_function): Likewise.
60438         * tests/test-snprintf-posix.h (test_function): Likewise.
60439         * tests/test-sprintf-posix.h (test_function): Likewise.
60440         * tests/test-fprintf-posix.h (NaN): Remove macro.
60441         (test_function): Remove all NaN related tests.
60442         * tests/test-printf-posix.h (NaN): Remove macro.
60443         (test_function): Remove all NaN related tests.
60444         * tests/test-printf-posix.output: Remove all NaN related results.
60445         Needed for IRIX 6.5.
60446
60447 2007-05-19  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60451
60452 2007-05-19  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/float_.h: New file.
60455         * m4/float_h.m4: New file.
60456         * modules/float: New file.
60457         * modules/isnanl (Dependencies): Add float.
60458         * modules/isnanl-nolibm (Dependencies): Likewise.
60459         * modules/mathl (Dependencies): Likewise.
60460         * modules/printf-frexpl (Dependencies): Likewise.
60461         * modules/signbit (Dependencies): Likewise.
60462         * modules/vasnprintf (Dependencies): Likewise.
60463         * doc/headers/float.texi: Update.
60464
60465 2007-05-19  Jim Meyering  <jim@meyering.net>
60466
60467         * lib/utimens.c (gl_futimens): Rename from futimens,
60468         now that glibc-2.6 declares futimens.
60469         * lib/utimens.h: Likewise.
60470
60471 2007-05-19  Bruno Haible  <bruno@clisp.org>
60472
60473         Avoid test failures on mingw.
60474         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60475         * tests/test-printf-posix.sh: Likewise.
60476         * tests/test-vfprintf-posix.sh: Likewise.
60477         * tests/test-vprintf-posix.sh: Likewise.
60478
60479 2007-05-19  Bruno Haible  <bruno@clisp.org>
60480
60481         Fix *printf result for NaN, Inf, -0.0 on mingw.
60482         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60483         * lib/vasnprintf.c: Include math.h and isnan.h.
60484         (is_infinite_or_zero): New function.
60485         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60486         values in the %f, %F, %e, %E, %g, %G directives.
60487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60489         gl_PRINTF_INFINITE and test its result. Invoke
60490         gl_PREREQ_VASNPRINTF_INFINITE.
60491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60498         * doc/functions/fprintf.texi: Update.
60499         * doc/functions/printf.texi: Update.
60500         * doc/functions/snprintf.texi: Update.
60501         * doc/functions/sprintf.texi: Update.
60502         * doc/functions/vfprintf.texi: Update.
60503         * doc/functions/vprintf.texi: Update.
60504         * doc/functions/vsnprintf.texi: Update.
60505         * doc/functions/vsprintf.texi: Update.
60506
60507 2007-05-19  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60510         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60511         Instead of multiplying with 10^k, set extra_zeroes to k.
60512         (scale10_round_long_double): Remove function.
60513
60514 2007-05-18  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60517         introduced on 2007-05-06.
60518
60519 2007-05-18  Bruno Haible  <bruno@clisp.org>
60520
60521         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60522         %g directives.
60523         * tests/test-vasprintf-posix.c (test_function): Likewise.
60524         * tests/test-snprintf-posix.h (test_function): Likewise.
60525         * tests/test-sprintf-posix.h (test_function): Likewise.
60526
60527 2007-05-18  Bruno Haible  <bruno@clisp.org>
60528
60529         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60530         (strmatch): New function.
60531         (test_function): Test the %f directive on numbers of various exponents.
60532         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60533         (strmatch): New function.
60534         (test_function): Test the %f directive on numbers of various exponents.
60535         * tests/test-snprintf-posix.h (strmatch): New function.
60536         (test_function): Test the %f directive on numbers of various exponents.
60537         * tests/test-sprintf-posix.h (strmatch): New function.
60538         (test_function): Test the %f directive on numbers of various exponents.
60539         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60540         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60541         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60542         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60543
60544 2007-05-18  Bruno Haible  <bruno@clisp.org>
60545
60546         Add support for 'long double' number output.
60547         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60548         * lib/vasnprintf.c: Include math.h and float+.h.
60549         (mp_limb_t): New type.
60550         (GMP_LIMB_BITS): New macro.
60551         (mp_twolimb_t): New type.
60552         (GMP_TWOLIMB_BITS): New macro.
60553         (mpn_t): New type.
60554         (multiply, divide, convert_to_decimal, decode_long_double,
60555         scale10_round_long_double, scale10_round_decimal_long_double,
60556         floorlog10l): New functions.
60557         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60558         for the %f, %F, %e, %E, %g, %G directives.
60559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60560         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60561         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60562         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60564         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60570         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60571         * modules/snprintf-posix (Depends-on): Likewise.
60572         * modules/sprintf-posix (Depends-on): Likewise.
60573         * modules/vasnprintf-posix (Depends-on): Likewise.
60574         * modules/vasprintf-posix (Depends-on): Likewise.
60575         * modules/vfprintf-posix (Depends-on): Likewise.
60576         * modules/vsnprintf-posix (Depends-on): Likewise.
60577         * modules/vsprintf-posix (Depends-on): Likewise.
60578         * modules/vasnprintf (Files): Add lib/float+.h.
60579         * doc/functions/fprintf.texi: Update.
60580         * doc/functions/printf.texi: Update.
60581         * doc/functions/snprintf.texi: Update.
60582         * doc/functions/sprintf.texi: Update.
60583         * doc/functions/vfprintf.texi: Update.
60584         * doc/functions/vprintf.texi: Update.
60585         * doc/functions/vsnprintf.texi: Update.
60586         * doc/functions/vsprintf.texi: Update.
60587
60588 2007-05-18  Bruno Haible  <bruno@clisp.org>
60589
60590         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60591
60592 2007-05-18  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60595         for printing 64-bit integers. Needed for mingw.
60596
60597 2007-05-18  Bruno Haible  <bruno@clisp.org>
60598
60599         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60600         gl_FUNC_FREXPL_WORKS.
60601         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60602
60603 2007-05-18  Bruno Haible  <bruno@clisp.org>
60604
60605         * modules/frexpl-nolibm-tests: New file.
60606
60607         * modules/frexpl-nolibm: New file.
60608         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60609
60610 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60613         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60614         GCC 4.2, which otherwise issues a lot of warnings.
60615         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60616         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60617         Likewise.
60618         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60619         * modules/iconv_open (iconv.h): Likewise.
60620         * modules/locale (locale.h): Likewise.
60621         * modules/netinet_in (netinet/in.h): Likewise.
60622         * modules/sys_select (sys_select.h): Likewise.
60623         * modules/sys_socket (sys/socket.h): Likewise.
60624         * modules/sys_stat (sys/stat.h): Likewise.
60625         * modules/sysexits (sysexits.h): Likewise.
60626         * modules/unistd (unistd.h): Likewise.
60627
60628 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60629
60630         * modules/closein-tests (Makefile.am): Distribute
60631         `test-closein.sh'.
60632
60633 2007-05-17  Bruno Haible  <bruno@clisp.org>
60634
60635         * tests/test-printf-posix.output: Renamed from
60636         tests/test-fprintf-posix.out.
60637         * modules/fprintf-posix-tests: Update.
60638         * modules/printf-posix-tests: Update.
60639         * modules/vfprintf-posix-tests: Update.
60640         * modules/vprintf-posix-tests: Update.
60641         * tests/test-fprintf-posix.sh: Update.
60642         * tests/test-printf-posix.sh: Update.
60643         * tests/test-vfprintf-posix.sh: Update.
60644         * tests/test-vprintf-posix.sh: Update.
60645         Reported by Ralf Wildenhues.
60646
60647 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60650         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60651         GCC 4.2, which otherwise issues a lot of warnings.
60652         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60653         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60654         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60655         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60656         it should no longer be needed.
60657         * lib/string_.h: Likewise.
60658         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60659         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60660         * modules/inttypes (inttypes.h): Likewise.
60661         * modules/math (math.h): Likewise.
60662         * modules/search (search.h): Likewise.
60663         * modules/signal (signal.h): Likewise.
60664         * modules/stdint (stdint.h): Likewise.
60665         * modules/stdio (stdio.h): Likewise.
60666         * modules/stdlib (stdlib.h): Likewise.
60667         * modules/string (string.h): Likewise.
60668         * modules/sys_time (sys/time.h): Likewise.
60669         * modules/time (time.h): Likewise.
60670         * modules/wchar (wchar.h): Likewise.
60671         * modules/wctype (wtype.h): Likewise.
60672
60673 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60674
60675         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60676
60677 2007-05-13  Bruno Haible  <bruno@clisp.org>
60678
60679         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60680         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60681         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60682         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60683         (gl_PREREQ_STRTOK_R): Don't require it here.
60684
60685 2007-05-13  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60688         when used in C++ mode.
60689
60690 2007-05-12  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/linebuffer.h: Tweak doc.
60693         * lib/linebuffer.c: Likewise.
60694
60695 2007-05-12  James Youngman  <jay@gnu.org>
60696
60697         * lib/linebuffer.c (readlinebuffer_delim): New function,
60698         like readlinebuffer, but use a caller-specified delimiter.
60699         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60700         as the delimiter.
60701         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60702
60703 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60704
60705         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60706         * modules/openat (Files): Remove openat-die.c.
60707         (Depends-on): Add openat-die.
60708         * modules/openat-die: New module.
60709
60710 2007-05-06  Bruno Haible  <bruno@clisp.org>
60711
60712         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60713         Update with info about Cygwin.
60714         * doc/functions/fprintf.texi: Update.
60715         * doc/functions/printf.texi: Update.
60716         * doc/functions/snprintf.texi: Update.
60717         * doc/functions/sprintf.texi: Update.
60718         * doc/functions/vfprintf.texi: Update.
60719         * doc/functions/vprintf.texi: Update.
60720         * doc/functions/vsnprintf.texi: Update.
60721         * doc/functions/vsprintf.texi: Update.
60722         Reported by Eric Blake.
60723
60724 2007-05-06  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60727         padding ourselves for the floating-point directives.
60728         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60731         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60732         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60740         * tests/test-snprintf-posix.h (test_function): Also check the width
60741         and some flags in the %f directive.
60742         * tests/test-sprintf-posix.h (test_function): Likewise.
60743         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60744         * tests/test-vasprintf-posix.c (test_function): Likewise.
60745         * doc/functions/fprintf.texi: Update.
60746         * doc/functions/printf.texi: Update.
60747         * doc/functions/snprintf.texi: Update.
60748         * doc/functions/sprintf.texi: Update.
60749         * doc/functions/vfprintf.texi: Update.
60750         * doc/functions/vprintf.texi: Update.
60751         * doc/functions/vsnprintf.texi: Update.
60752         * doc/functions/vsprintf.texi: Update.
60753
60754 2007-05-06  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60757         pass the ' flag character to sprintf or snprintf.
60758         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60761         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60762         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60763         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60770         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60771         flag.
60772         * tests/test-sprintf-posix.h (test_function): Likewise.
60773         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60774         * tests/test-vasprintf-posix.c (test_function): Likewise.
60775         * doc/functions/fprintf.texi: Update.
60776         * doc/functions/printf.texi: Update.
60777         * doc/functions/snprintf.texi: Update.
60778         * doc/functions/sprintf.texi: Update.
60779         * doc/functions/vfprintf.texi: Update.
60780         * doc/functions/vprintf.texi: Update.
60781         * doc/functions/vsnprintf.texi: Update.
60782         * doc/functions/vsprintf.texi: Update.
60783
60784 2007-05-01  Bruno Haible  <bruno@clisp.org>
60785
60786         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60787
60788 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60791         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60792
60793 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60794
60795         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60796         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60798
60799 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60800
60801         * lib/argp-help.c (struct hol_entry): New member `ord'.
60802         (HOL_ENTRY_PTRCMP): Use ord for comparison
60803         (hol_sort): Initialize ord.
60804
60805 2007-05-01  Bruno Haible  <bruno@clisp.org>
60806
60807         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60808         Reported by Eric Blake.
60809         * doc/gnulib.texi (Function Substitutes): Update.
60810
60811 2007-05-01  Bruno Haible  <bruno@clisp.org>
60812
60813         * doc/functions.texi: Remove file, now redundant through
60814         doc/functions/*.texi.
60815
60816 2007-05-01  Bruno Haible  <bruno@clisp.org>
60817
60818         * modules/argp (Depends-on): Add sleep.
60819
60820 2007-05-01  Bruno Haible  <bruno@clisp.org>
60821
60822         * modules/sleep-tests: New file.
60823         * tests/test-sleep.c: New file.
60824
60825         * modules/sleep: New file.
60826         * lib/sleep.c: New file.
60827         * m4/sleep.m4: New file.
60828         * lib/unistd_.h (sleep): New declaration.
60829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60830         HAVE_SLEEP.
60831         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60832         * doc/functions/sleep.texi: Document the sleep module.
60833
60834 2007-05-01  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/sigprocmask.h: Remove file.
60837         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60838         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60839         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60840         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60841         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60842         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60843         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60844         HAVE_SIGSET_T as a shell variable.
60845         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60846         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60847         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60848         (Depends-on): Add signal. Remove verify.
60849         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60850         (Include): Mention <signal.h> instead of sigprocmask.h.
60851         * NEWS: Mention the change.
60852         * lib/fatal-signal.c: Don't include sigprocmask.h.
60853
60854 2007-05-01  Bruno Haible  <bruno@clisp.org>
60855
60856         * modules/signal: New file.
60857         * lib/signal_.h: New file.
60858         * m4/signal_h.m4: New file.
60859
60860 2007-05-01  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60863         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60864         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60865         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60866
60867 2007-05-01  Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60870         configure time.
60871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60872         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60873         * modules/sys_stat (Makefile.am): Substitute their values into
60874         sys/stat.h.
60875
60876 2007-05-01  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60879         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60880         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60881
60882 2007-05-01  Bruno Haible  <bruno@clisp.org>
60883
60884         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60885         'assert' module here.
60886
60887 2007-05-01  Bruno Haible  <bruno@clisp.org>
60888
60889         * doc/functions/*.texi: New files.
60890         * doc/functions/google-ranking.txt: New file.
60891         * doc/gnulib.texi (Function Substitutes): New chapter.
60892         (ctime, inet_ntoa): Remove sections.
60893         * doc/ctime.texi: Remove file.
60894         * doc/inet_ntoa.texi: Remove file.
60895         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60896         dependencies.
60897         (%.info): New rule, specifying a --reference-limit.
60898
60899 2007-05-01  Bruno Haible  <bruno@clisp.org>
60900
60901         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60902
60903 2007-05-01  Bruno Haible  <bruno@clisp.org>
60904
60905         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60906         the portability of 'mkdir' to mingw systems.
60907
60908 2007-05-01  Bruno Haible  <bruno@clisp.org>
60909
60910         * doc/headers/google-ranking.txt: New file.
60911
60912 2007-04-30  Eric Blake  <ebb9@byu.net>
60913
60914         Prefer fseeko to fseek.
60915         * modules/getpass (Depends-on): Add fseeko.
60916         * lib/getpass.c (getpass): Use fseeko, not fseek.
60917
60918 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60919
60920         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60921         assumes the sorting is stable, while most qsort implementations
60922         are not.  Use argument addresses to ensure they never compare as
60923         equal.
60924
60925         * tests/test-argp-2.sh (usage-indent test): Fix output
60926         (func_compare): Restore diff options
60927         * tests/test-argp.c: Restore #include "progname.h"
60928
60929 2007-04-29  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60933         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60935         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60936         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60937         (TESTS, check_PROGRAMS): Add test-snprintf.
60938         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60939         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60940         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60941         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60942         assertions that fail on HP-UX, OSF/1, or IRIX.
60943         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60944
60945 2007-04-29  Bruno Haible  <bruno@clisp.org>
60946
60947         * MODULES.html.sh (posix_functions): Remove 'contents'.
60948
60949 2007-04-29  Karl Berry  <karl@gnu.org>
60950
60951         * config/srclist.txt (gendocs_template_min): new entry.
60952
60953 2007-04-29  Bruno Haible  <bruno@clisp.org>
60954
60955         Work around fpurge bug on BSD systems.
60956         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60958         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60959         fpurge to rpl_fpurge if the system already has this function.
60960         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60961         the case where the system already has this function. Correct invariants
60962         on BSD systems.
60963         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60964         BSD systems.
60965
60966 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60967
60968         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60969         proposed by Sven Verdoolaege.
60970
60971         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60972         options.
60973         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60974         (usage and help tests): Update
60975
60976 2007-04-29  Bruno Haible  <bruno@clisp.org>
60977
60978         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60979         Print more information in case of failure. Disable a test on BeOS.
60980
60981 2007-04-29  Bruno Haible  <bruno@clisp.org>
60982
60983         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60984         This helps debugging on systems on which no gdb is available.
60985
60986 2007-04-29  Bruno Haible  <bruno@clisp.org>
60987
60988         * lib/freading.h: Improve comments.
60989         * lib/fwriting.h: Likewise.
60990         * tests/test-freading.c (main): Don't check freading immediately after
60991         repositioning. Needed for glibc.
60992
60993 2007-04-29  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/freading.c (freading): Trivial simplification.
60996
60997 2007-04-28  Bruno Haible  <bruno@clisp.org>
60998
60999         * tests/test-fwriting.c (main): Also test the interaction between
61000         fflush and fwriting.
61001         * modules/fwriting-tests (Depends-on): Add fflush.
61002
61003         * tests/test-freading.c (main): Also test the interaction between
61004         fflush and freading.
61005         * modules/freading-tests (Depends-on): Add fflush.
61006
61007 2007-04-28  Bruno Haible  <bruno@clisp.org>
61008
61009         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61010         fseeko and ftello.
61011         Suggested by Eric Blake.
61012
61013 2007-04-28  Jim Meyering  <jim@meyering.net>
61014
61015         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61016         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61017         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61018
61019 2007-04-27  Eric Blake  <ebb9@byu.net>
61020
61021         * doc/headers/assert.texi (assert.h): Document assert module use.
61022
61023 2007-04-27  Bruno Haible  <bruno@clisp.org>
61024
61025         * doc/headers/*.texi: New files.
61026         * doc/gnulib.texi (Header File Substitutes): New chapter.
61027         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61028         dependencies.
61029         (standards.info ,standards.html, standards.dvi): Update dependencies.
61030         (mostlyclean, clean): New targets.
61031
61032 2007-04-27  Bruno Haible  <bruno@clisp.org>
61033
61034         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61035         * modules/sysexits (Files, Makefile.am): Update.
61036
61037         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61038         * modules/sys_socket (Files, Makefile.am): Update.
61039
61040         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61041         * modules/sys_stat (Files, Makefile.am): Update.
61042
61043 2007-04-27  Eric Blake  <ebb9@byu.net>
61044
61045         * lib/freading.h: Improve comments.
61046         * lib/fwriting.h: Likewise.
61047         * lib/fflush.c: Likewise.
61048
61049         Fix closein for mingw.
61050         * modules/closein-tests: Add tests for closein.
61051         * tests/test-closein.c: New file.
61052         * tests/test-closein.sh: Likewise.
61053         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61054         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61055
61056 2007-04-27  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61059         version is < 6.
61060         * lib/math_.h [__DECC]: Likewise.
61061         * lib/stdio_.h [__DECC]: Likewise.
61062         * lib/stdlib_.h [__DECC]: Likewise.
61063         * lib/string_.h [__DECC]: Likewise.
61064         * lib/time_.h [__DECC]: Likewise.
61065         * lib/wchar_.h [__DECC]: Likewise.
61066         * lib/wctype_.h [__DECC]: Likewise.
61067
61068 2007-04-27  Bruno Haible  <bruno@clisp.org>
61069
61070         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61071
61072 2007-04-27  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/fflush.c: Add comments.
61075         * modules/fpurge-tests (Depends-on): Add fflush.
61076         * modules/freadable-tests (Depends-on): Likewise.
61077         * modules/fwritable-tests (Depends-on): Likewise.
61078
61079 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61080
61081         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61082         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61083         Report by Bruno Haible <bruno@clisp.org>.
61084
61085 2007-04-26  Eric Blake  <ebb9@byu.net>
61086
61087         Fix fflush on mingw.
61088         * modules/fflush (Depends-on): Add freading.
61089         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61090         but unread data.
61091
61092 2007-04-26  Eric Blake  <ebb9@byu.net>
61093         and Bruno Haible  <bruno@clisp.org>
61094
61095         Implement freading and fwriting.
61096         * lib/freading.c: New file.
61097         * lib/freading.h: Likewise.
61098         * m4/freading.m4: Likewise.
61099         * modules/freading: Likewise.
61100         * modules/freading-tests: Likewise.
61101         * tests/test-freading.c: Likewise.
61102         * lib/fwriting.c: New file.
61103         * lib/fwriting.h: Likewise.
61104         * m4/fwriting.m4: Likewise.
61105         * modules/fwriting: Likewise.
61106         * modules/fwriting-tests: Likewise.
61107         * tests/test-fwriting.c: Likewise.
61108         * MODULES.html.sh (File stream based Input/Output): Mention them.
61109
61110 2007-04-26  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61113         'long' when we assume it.
61114         Suggested by Eric Blake.
61115
61116 2007-04-26  Bruno Haible  <bruno@clisp.org>
61117
61118         Ensure fseeko, ftello are declared on glibc systems.
61119         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61120         * modules/fseeko (configure.ac-early): Likewise.
61121         * modules/ftello (configure.ac-early): Likewise.
61122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61123         AC_FUNC_FSEEKO for this.
61124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61125         (gl_CHECK_FSEEKO): Remove macro.
61126
61127 2007-04-26  Bruno Haible  <bruno@clisp.org>
61128
61129         * tests/test-fflush.c (main): Also check the ftell result after
61130         fflush and fseek/fseeko.
61131         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61132         file descriptor position cache in the stream.
61133         * lib/fseeko.c (rpl_fseeko): Likewise.
61134
61135 2007-04-26  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/fflush-tests (Depends-on): Add fseeko.
61138
61139 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61140             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61141
61142         * lib/argz_.h: ensure error_t definition is obtained in same
61143         mechanism system argz.h would have.
61144         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61145         argz facilities are known bad.  Err on the side of caution if
61146         cross-compiling.
61147
61148 2007-04-25  Eric Blake  <ebb9@byu.net>
61149
61150         * lib/fpurge.c (includes): Use stdlib.h for free.
61151         * tests/test-fflush.c (main): Also test fflush-fseeko.
61152
61153 2007-04-25  Bruno Haible  <bruno@clisp.org>
61154
61155         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61156         * lib/fseeko.c: New file.
61157         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61158         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61159         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61160         gl_FUNC_FSEEKO.
61161         (gl_FUNC_FSEEKO): Invoke it.
61162         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61163         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61164         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61165
61166 2007-04-25  Bruno Haible  <bruno@clisp.org>
61167
61168         * modules/fflush (Depends-on): Add ftello.
61169
61170 2007-04-25  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/ftello-tests: New file.
61173         * tests/test-ftello.c: New file.
61174
61175         * modules/ftello: New file.
61176         * m4/ftello.m4: New file.
61177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61178         HAVE_FTELLO.
61179         * lib/stdio_.h (ftello): New declaration.
61180         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61181         HAVE_FTELLO.
61182
61183 2007-04-25  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/fseeko-tests: New file.
61186         * tests/test-fseeko.c: New file.
61187
61188         * modules/fseeko: New file.
61189         * m4/fseeko.m4: New file.
61190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61191         HAVE_FSEEKO.
61192         * lib/stdio_.h (fseeko): New declaration.
61193         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61194         HAVE_FSEEKO.
61195
61196 2007-04-25  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61199
61200 2007-04-25  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61203         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61204         * tests/test-unistd.c: Likewise.
61205         * tests/test-fcntl.c: Likewise.
61206
61207 2007-04-23  Eric Blake  <ebb9@byu.net>
61208
61209         * lib/fflush.c: Fix missing include.
61210         Reported by Bruno Haible.
61211
61212 2007-04-23  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61215         Reported by Eric Blake.
61216
61217 2007-04-23  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61220
61221 2007-04-23  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61224
61225 2007-04-23  Bruno Haible  <bruno@clisp.org>
61226
61227         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61228         Needed on HP-UX 11.
61229
61230 2007-04-16  Eric Blake  <ebb9@byu.net>
61231
61232         Make fflush rely on fpurge.
61233         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61234         open coding all variants.
61235         * modules/fflush (Depends-on): Add fpurge and unistd.
61236         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61238
61239         Fix --with-tests compilation on cygwin.
61240         * modules/argmatch-tests (Makefile.am): List gnulib library first
61241         in LDADD.
61242         * modules/argp-tests (Makefile.am): Likewise.
61243         * modules/array-list-tests (Makefile.am): Likewise.
61244         * modules/array-oset-tests (Makefile.am): Likewise.
61245         * modules/avltree-list-tests (Makefile.am): Likewise.
61246         * modules/avltree-oset-tests (Makefile.am): Likewise.
61247         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61248         * modules/carray-list-tests (Makefile.am): Likewise.
61249         * modules/dirname-tests (Makefile.am): Likewise.
61250         * modules/frexp-tests (Makefile.am): Likewise.
61251         * modules/isnanl-tests (Makefile.am): Likewise.
61252         * modules/linked-list-tests (Makefile.am): Likewise.
61253         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61254         * modules/lock-tests (Makefile.am): Likewise.
61255         * modules/rbtree-list-tests (Makefile.am): Likewise.
61256         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61257         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61258         * modules/tls-tests (Makefile.am): Likewise.
61259         * modules/tsearch-tests (Makefile.am): Likewise.
61260         * modules/xvasprintf-tests (Makefile.am): Likewise.
61261
61262         Fix fpurge for cygwin.
61263         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61264         value.
61265         * modules/fpurge-tests (Depends-on): Clean up trash.
61266
61267 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61268
61269         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61270
61271         * m4/autobuild.m4: Re-indent.
61272
61273 2007-04-13  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/fpurge-tests: New file.
61276         * tests/test-fpurge.c: New file.
61277
61278         * modules/fpurge: New file.
61279         * lib/fpurge.h: New file.
61280         * lib/fpurge.c: New file.
61281         * m4/fpurge.m4: New file.
61282
61283 2007-04-13  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/fbufmode-tests: New file.
61286         * tests/test-fbufmode.c: New file.
61287
61288         * modules/fbufmode: New file.
61289         * lib/fbufmode.h: New file.
61290         * lib/fbufmode.c: New file.
61291         * m4/fbufmode.m4: New file.
61292
61293 2007-04-13  Bruno Haible  <bruno@clisp.org>
61294
61295         * modules/fwritable-tests: New file.
61296         * tests/test-fwritable.c: New file.
61297
61298         * modules/fwritable: New file.
61299         * lib/fwritable.h: New file.
61300         * lib/fwritable.c: New file.
61301         * m4/fwritable.m4: New file.
61302
61303 2007-04-13  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/freadable-tests: New file.
61306         * tests/test-freadable.c: New file.
61307
61308         * modules/freadable: New file.
61309         * lib/freadable.h: New file.
61310         * lib/freadable.c: New file.
61311         * m4/freadable.m4: New file.
61312
61313 2007-04-13  Bruno Haible  <bruno@clisp.org>
61314
61315         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61316         MOSTLYCLEANFILES.
61317
61318 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61321         gzip bootstrap.conf to avoid dragging in i18n machinery.
61322         (gnulib_tool_option): Use it.
61323
61324 2007-04-13  Bruno Haible  <bruno@clisp.org>
61325
61326         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61327         %F directives.
61328         * tests/test-vasprintf-posix.c (test_function): Likewise.
61329         * tests/test-snprintf-posix.h (test_function): Likewise.
61330         * tests/test-sprintf-posix.h (test_function): Likewise.
61331         * tests/test-fprintf-posix.h (test_function): Likewise.
61332         * tests/test-printf-posix.h (test_function): Likewise.
61333         * tests/test-fprintf-posix.out: Likewise.
61334
61335 2007-04-13  Bruno Haible  <bruno@clisp.org>
61336
61337         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61338         * modules/tls-tests (configure.ac): Likewise.
61339         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61340
61341 2007-04-13  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/tls.c (glthread_tls_get): Fix return type.
61344         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61345
61346 2007-04-12  Eric Blake  <ebb9@byu.net>
61347
61348         * modules/gettime (Depends-on): Remove gettime.
61349         Reported by Dmitry V. Levin.
61350
61351 2007-04-12  Bruno Haible  <bruno@clisp.org>
61352
61353         * modules/fflush (Include): Mention <stdio.h>.
61354         * modules/strtoimax (Include): Mention <inttypes.h>.
61355         * modules/strtoumax (Include): Likewise.
61356
61357 2007-04-12  Eric Blake  <ebb9@byu.net>
61358
61359         * .cvsignore: New file.
61360         * .gitignore: Likewise.
61361
61362 2007-04-12  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61365         not before, since $(LDADD) often contains libgnu.a.
61366         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61367         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61368         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61369         Needed on Cygwin.
61370
61371 2007-04-12  Eric Blake  <ebb9@byu.net>
61372
61373         Work around glibc's failure to flush stdin on fclose.
61374         * lib/closein.c (close_stdin): Flush stdin before closing.
61375
61376         Work around glibc's failure to reset seekable stdin on exit.
61377         * modules/closein: New module.
61378         * lib/closein.c: New file.
61379         * lib/closein.h: Likewise.
61380         * m4/closein.m4: Likewise.
61381         * MODULES.html.sh (File stream based Input/Output): Document it.
61382
61383 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61384
61385         * gnulib-tool: Rename generated 'autobuild' script to
61386         'do-autobuild' in --create-megatestdir output.
61387
61388         * doc/gnulib.texi (Build robot for gnulib): Fix.
61389
61390 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61391
61392         * modules/sysexits (Depends-on): Add absolute-header.
61393
61394 2007-04-12  Eric Blake  <ebb9@byu.net>
61395
61396         No need to preserve errno on success.
61397         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61398         Reported by Bruno Haible.
61399
61400 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61401
61402         * MODULES.html.sh (Support for maintaining and releasing
61403         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61404
61405 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61406
61407         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61408
61409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61410
61411         * modules/autobuild: New module.
61412
61413         * m4/autobuild.m4: New file.
61414
61415 2007-04-11  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61418         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61422         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61423         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61425         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61426         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61428         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61429         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61431         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61432         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61434         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61435         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61437         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61438         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61440         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61441         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61443         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61444         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61445         Reported by Eric Blake.
61446
61447 2007-04-11  Bruno Haible  <bruno@clisp.org>
61448
61449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61450
61451 2007-04-10  Bruno Haible  <bruno@clisp.org>
61452
61453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61454         for NaN and Infinity. Needed on FreeBSD 6.1.
61455         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61456         regarding results for "%010a" of Infinity and NaN.
61457         * tests/test-vasprintf-posix.c (test_function): Likewise.
61458         * tests/test-snprintf-posix.h (test_function): Likewise.
61459         * tests/test-sprintf-posix.h (test_function): Likewise.
61460         * tests/test-fprintf-posix.h (test_function): Likewise.
61461         * tests/test-printf-posix.h (test_function): Likewise.
61462         * tests/test-fprintf-posix.out: Likewise.
61463
61464 2007-04-10  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/locale-tests: New file.
61467         * tests/test-locale.c: New file.
61468
61469         * modules/locale: New file.
61470         * lib/locale_.h: New file.
61471         * m4/locale_h.m4: New file.
61472
61473 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61474             Bruno Haible  <bruno@clisp.org>
61475
61476         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61477         be determined, test for availability of the copysignf, copysign,
61478         copysignl functions.
61479         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61480         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61481         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61482
61483 2007-04-09  Eric Blake  <ebb9@byu.net>
61484
61485         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61486         * modules/stdio (Makefile.am): Support fflush.
61487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61488         * modules/fflush: New file.
61489         * lib/fflush.c: Likewise.
61490         * m4/fflush.m4: Likewise.
61491         * modules/fflush-tests: New test.
61492         * tests/test-fflush.c: Likewise.
61493         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61494
61495 2007-04-06  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61498         (VASNPRINTF): Use signbit for faster determination whether to print a
61499         minus sign.
61500         * modules/vasnprintf (Files): Remove lib/float+.h.
61501         * modules/fprintf-posix (Depends-on): Add signbit.
61502         * modules/snprintf-posix (Depends-on): Likewise.
61503         * modules/sprintf-posix (Depends-on): Likewise.
61504         * modules/vasnprintf-posix (Depends-on): Likewise.
61505         * modules/vasprintf-posix (Depends-on): Likewise.
61506         * modules/vfprintf-posix (Depends-on): Likewise.
61507         * modules/vsnprintf-posix (Depends-on): Likewise.
61508         * modules/vsprintf-posix (Depends-on): Likewise.
61509
61510 2007-04-06  Bruno Haible  <bruno@clisp.org>
61511
61512         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61513         * tests/test-frexpl.c (main): Likewise.
61514         * tests/test-ldexpl.c (main): Likewise.
61515         * modules/frexp-tests (Depends-on): Add signbit.
61516         * modules/frexpl-tests (Depdends-on): Likewise.
61517         * modules/ldexpl-tests (Depdends-on): Likewise.
61518
61519 2007-04-06  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/signbit-tests: New file.
61522         * tests/test-signbit.c: New file.
61523
61524         * modules/signbit: New file.
61525         * lib/signbitf.c: New file.
61526         * lib/signbitd.c: New file.
61527         * lib/signbitl.c: New file.
61528         * m4/signbit.m4: New file.
61529         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61530         (signbit): New macro.
61531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61532         REPLACE_SIGNBIT.
61533         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61534         REPLACE_FREXPL into math.h.
61535
61536 2007-04-06  Bruno Haible  <bruno@clisp.org>
61537
61538         * modules/isnanf-nolibm-tests: New file.
61539         * tests/test-isnanf.c: New file.
61540
61541         * modules/isnanf-nolibm: New file.
61542         * lib/isnanf.h: New file.
61543         * lib/isnanf.c: New file.
61544         * lib/isnan.c: Consider the USE_FLOAT macro.
61545         * m4/isnanf.m4: New file.
61546
61547 2007-04-06  Bruno Haible  <bruno@clisp.org>
61548
61549         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61550         (Link): New section.
61551
61552         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61553
61554 2007-04-06  Bruno Haible  <bruno@clisp.org>
61555
61556         Assume the 'long double' type.
61557         * m4/longdouble.m4: Remove file.
61558         * config/srclist.txt: Don't mention longdouble.m4.
61559         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61560         * lib/float+.h: Likewise.
61561         * lib/frexp.c: Likewise.
61562         * lib/printf-args.h: Likewise.
61563         * lib/printf-args.c: Likewise.
61564         * lib/printf-frexp.c: Likewise.
61565         * lib/printf-parse.c: Likewise.
61566         * lib/vasnprintf.c: Likewise.
61567         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61568         * m4/intl.m4: Likewise.
61569         * m4/isnanl.m4: Likewise.
61570         * m4/printf.m4: Likewise.
61571         * m4/printf-frexpl.m4: Likewise.
61572         * m4/vasnprintf.m4: Likewise.
61573         * modules/allocsa (Files): Remove m4/longdouble.m4.
61574         * modules/gettext (Files): Likewise.
61575         * modules/relocatable-prog-wrapper (Files): Likewise.
61576         * modules/vasnprintf (Files): Likewise.
61577         * modules/isnanl (Files): Likewise.
61578         (Include): Simplify.
61579         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61580         (Include): Simplify.
61581         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61582         (Include): Simplify.
61583         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61585         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61587         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61589         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61591         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61593         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61595         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61596         * tests/test-isnanl.c: Likewise.
61597         * tests/test-snprintf-posix.h: Likewise.
61598         * tests/test-sprintf-posix.h: Likewise.
61599         * tests/test-vasnprintf-posix.c: Likewise.
61600         * tests/test-vasnprintf-posix2.c: Likewise.
61601         * tests/test-vasprintf-posix.c: Likewise.
61602
61603 2007-04-06  Bruno Haible  <bruno@clisp.org>
61604
61605         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61606         * lib/math_.h [__DECC]: Include the overridden include file through
61607         #include_next, outside the double-inclusion guard.
61608         * lib/stdio_.h [__DECC]: Likewise.
61609         * lib/stdlib_.h [__DECC]: Likewise.
61610         * lib/string_.h [__DECC]: Likewise.
61611         * lib/time_.h [__DECC]: Likewise.
61612         * lib/wchar_.h [__DECC]: Likewise.
61613         * lib/wctype_.h [__DECC]: Likewise.
61614         * lib/inttypes_.h [__DECC]: Likewise.
61615         Reported by Albert Chin <china@thewrittenword.com> in
61616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61617
61618 2007-04-04  Eric Blake  <ebb9@byu.net>
61619
61620         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61621         1.5.x.
61622
61623 2007-04-04  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61626         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61627
61628 2007-04-04  Bruno Haible  <bruno@clisp.org>
61629
61630         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61631         results for "%010a" of Infinity and NaN.
61632         * tests/test-vasprintf-posix.c (test_function): Likewise.
61633         * tests/test-snprintf-posix.h (test_function): Likewise.
61634         * tests/test-sprintf-posix.h (test_function): Likewise.
61635         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61636         * tests/test-printf-posix.h (test_function): Likewise.
61637         * tests/test-fprintf-posix.out: Update.
61638         Needed for FreeBSD 6.1.
61639
61640 2007-04-04  Bruno Haible  <bruno@clisp.org>
61641
61642         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61643         directly used by the gnulib modules nor by gnulib-tool.
61644
61645 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61646
61647         * DEPENDENCIES: Give overall description of version dependency
61648         desirability.  Use more-typical names for apps.
61649         Add shell, coreutils, diffutils, grep, tar, gzip.
61650
61651 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61652
61653         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61654
61655 2007-04-04  Karl Berry  <karl@gnu.org>
61656
61657         * MODULES.html.sh (func_module): missing '.
61658
61659 2007-04-03  Bruno Haible  <bruno@clisp.org>
61660
61661         * modules/argmatch-tests (Makefile.am): New variable
61662         test_argmatch_LDADD.
61663         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61664         * modules/array-list-tests (Makefile.am): New variable
61665         test_array_list_LDADD.
61666         * modules/array-oset-tests (Makefile.am): New variable
61667         test_array_oset_LDADD.
61668         * modules/avltree-list-tests (Makefile.am): New variable
61669         test_avltree_list_LDADD.
61670         * modules/avltree-oset-tests (Makefile.am): New variable
61671         test_avltree_oset_LDADD.
61672         * modules/avltreehash-list-tests (Makefile.am): New variable
61673         test_avltreehash_list_LDADD.
61674         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61675         test_canonicalize_lgpl_LDADD.
61676         * modules/carray-list-tests (Makefile.am): New variable
61677         test_carray_list_LDADD.
61678         * modules/dirname-tests (Makefile.am): New variable
61679         test_dirname_LDADD.
61680         * modules/linked-list-tests (Makefile.am): New variable
61681         test_linked_list_LDADD.
61682         * modules/linkedhash-list-tests (Makefile.am): New variable
61683         test_linkedhash_list_LDADD.
61684         * modules/rbtree-list-tests (Makefile.am): New variable
61685         test_rbtree_list_LDADD.
61686         * modules/rbtree-oset-tests (Makefile.am): New variable
61687         test_rbtree_oset_LDADD.
61688         * modules/rbtreehash-list-tests (Makefile.am): New variable
61689         test_rbtreehash_list_LDADD.
61690         * modules/xvasprintf-tests (Makefile.am): New variable
61691         test_xvasprintf_LDADD.
61692         Reported by Eric Blake.
61693
61694 2007-04-03  Eric Blake  <ebb9@byu.net>
61695
61696         * DEPENDENCIES: Weaken m4 requirements.
61697
61698 2007-04-03  Bruno Haible  <bruno@clisp.org>
61699
61700         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61701         * modules/isnanl-tests (configure.ac): Likewise.
61702
61703 2007-04-03  Ben Pfaff  <blp@gnu.org>
61704
61705         * modules/iconv_open: Add $(srcdir)/ to source directory
61706         references in Makefile fragments that call gperf, to fix VPATH
61707         builds.
61708
61709 2007-04-03  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61712         * lib/ldexpl.c: Undo last change.
61713
61714 2007-04-03  Bruno Haible  <bruno@clisp.org>
61715
61716         * modules/printf-frexpl (Depends-on): Undo last change.
61717         (Files): Add m4/ldexpl.m4.
61718
61719 2007-04-03  Bruno Haible  <bruno@clisp.org>
61720
61721         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61722         * modules/isnanl (Link): New section.
61723
61724         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61725         * modules/frexp (Link): New section.
61726
61727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61728         * modules/frexpl (Link): New section.
61729
61730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61731         * modules/ldexpl (Link): New section.
61732
61733 2007-04-03  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/TEMPLATE-EXTENDED: New file.
61736         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61737
61738 2007-04-03  Bruno Haible  <bruno@clisp.org>
61739
61740         * DEPENDENCIES: New file.
61741         Suggested by Simon Josefsson.
61742
61743 2007-04-03  Bruno Haible  <bruno@clisp.org>
61744
61745         * doc/gnulib.texi: Escape @.
61746
61747 2007-04-03  James Youngman  <jay@gnu.org>
61748         and Paul Eggert  <eggert@cs.ucla.edu>
61749
61750         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61751         birthtime on all systems that have birthtime, not just those which
61752         use st_birthtimensec rather than st_birthtim.  Putting zero in
61753         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61754         that the birth time is not available for files on an NFS mount.
61755
61756 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61757
61758         * modules/memxor: Move back from crypto/, suggested by Bruno.
61759         * modules/crypto/hmac-sha1: Fix memxor dependency.
61760
61761         * modules/crypto/gc: Moved from ../.
61762
61763 2007-04-02  Eric Blake  <ebb9@byu.net>
61764
61765         * lib/ldexpl.c (includes): Avoid libm.
61766
61767         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61768
61769 2007-04-02  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61772         on IRIX.
61773
61774 2007-04-02  Bruno Haible  <bruno@clisp.org>
61775
61776         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61777         x86 or x86_64 platforms running MacOS X.
61778         Reported by Ryan Schmidt <@ryandesign.com>.
61779
61780 2007-04-02  Bruno Haible  <bruno@clisp.org>
61781
61782         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61783         i386.
61784
61785 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61786
61787         * modules/crypto/arcfour: Moved from ../.
61788         * modules/crypto/arcfour-tests: Moved from ../.
61789         * modules/crypto/arctwo: Moved from ../.
61790         * modules/crypto/arctwo-tests: Moved from ../.
61791         * modules/crypto/des: Moved from ../.
61792         * modules/crypto/des-tests: Moved from ../.
61793         * modules/crypto/gc-arcfour: Moved from ../.
61794         * modules/crypto/gc-arcfour-tests: Moved from ../.
61795         * modules/crypto/gc-arctwo: Moved from ../.
61796         * modules/crypto/gc-arctwo-tests: Moved from ../.
61797         * modules/crypto/gc-des: Moved from ../.
61798         * modules/crypto/gc-des-tests: Moved from ../.
61799         * modules/crypto/gc-hmac-md5: Moved from ../.
61800         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61801         * modules/crypto/gc-hmac-sha1: Moved from ../.
61802         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61803         * modules/crypto/gc-md2: Moved from ../.
61804         * modules/crypto/gc-md2-tests: Moved from ../.
61805         * modules/crypto/gc-md4: Moved from ../.
61806         * modules/crypto/gc-md4-tests: Moved from ../.
61807         * modules/crypto/gc-md5: Moved from ../.
61808         * modules/crypto/gc-md5-tests: Moved from ../.
61809         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61810         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61811         * modules/crypto/gc-random: Moved from ../.
61812         * modules/crypto/gc-rijndael: Moved from ../.
61813         * modules/crypto/gc-rijndael-tests: Moved from ../.
61814         * modules/crypto/gc-sha1: Moved from ../.
61815         * modules/crypto/gc-sha1-tests: Moved from ../.
61816         * modules/crypto/gc-tests: Moved from ../.
61817         * modules/crypto/hmac-md5: Moved from ../.
61818         * modules/crypto/hmac-md5-tests: Moved from ../.
61819         * modules/crypto/hmac-sha1: Moved from ../.
61820         * modules/crypto/hmac-sha1-tests: Moved from ../.
61821         * modules/crypto/md2: Moved from ../.
61822         * modules/crypto/md2-tests: Moved from ../.
61823         * modules/crypto/md4: Moved from ../.
61824         * modules/crypto/md4-tests: Moved from ../.
61825         * modules/crypto/md5: Moved from ../.
61826         * modules/crypto/md5-tests: Moved from ../.
61827         * modules/crypto/memxor: Moved from ../.
61828         * modules/crypto/rijndael: Moved from ../.
61829         * modules/crypto/rijndael-tests: Moved from ../.
61830         * modules/crypto/sha1: Moved from ../.
61831
61832 2007-03-30  James Youngman  <jay@gnu.org>
61833
61834         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61835         rename() to change the ctime of a file (because ctime is unaffected
61836         by rename on jfs2 on AIX 5.1).
61837         (main): Start by doing cleanup, in case a previous run failed leaving
61838         test files behind.
61839
61840 2007-03-31  Bruno Haible  <bruno@clisp.org>
61841
61842         Support old proprietary implementations of iconv.
61843         * modules/iconv_open: New file.
61844         * lib/iconv_.h: New file.
61845         * m4/iconv_h.m4: New file.
61846         * lib/iconv_open.c: New file.
61847         * lib/iconv_open-aix.gperf: New file.
61848         * lib/iconv_open-hpux.gperf: New file.
61849         * lib/iconv_open-irix.gperf: New file.
61850         * lib/iconv_open-osf.gperf: New file.
61851         * m4/iconv_open.m4: New file.
61852         * modules/linebreak (Depends-on): Add iconv_open.
61853         * modules/striconv (Depends-on): Likewise.
61854         * modules/striconveh (Depends-on): Likewise.
61855         * modules/unicodeio (Depends-on): Likewise.
61856         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61857         (iconv_t)(-1).
61858         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61859         conversion if cd is (iconv_t)(-1).
61860         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61861         is not possible.
61862
61863 2007-03-31  Bruno Haible  <bruno@clisp.org>
61864
61865         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61866         work on Solaris either. Protect also second use of "autodetect_jp".
61867
61868 2007-03-31  Bruno Haible  <bruno@clisp.org>
61869
61870         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61871         the function is not present.
61872
61873 2007-03-31  Bruno Haible  <bruno@clisp.org>
61874
61875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61876         the function is not present.
61877
61878 2007-03-31  Bruno Haible  <bruno@clisp.org>
61879
61880         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61881         a bug in HP-UX iconv_open().
61882
61883 2007-03-31  Bruno Haible  <bruno@clisp.org>
61884
61885         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61886         (Mathematics <math.h>): New section, add fpieee.
61887         (Input/output <stdio.h>): Add fseterr.
61888         (Mathematics <math.h>): New section, add printf-frexp.
61889         (Container data structures): Add sublist.
61890         (Core language properties): Add fpucw, inline.
61891         (Functions for greatest-width integer types <inttypes.h>): Add
61892         imaxabs, imaxdiv, inttypes.
61893         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61894         isnanl-nolibm, ldexp.
61895         (Mathematics <math.h>): New section, add printf-frexpl.
61896         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61897         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61898         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61899         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61900         (Unicode string functions): Add unistr/u*-mbtoucr.
61901         (Java): Add javacomp-script, javaexec-script.
61902         (C#): Add csharpcomp-script, csharpexec-script.
61903         (Support for building libraries and executables): Add havelib,
61904         relocatable-*.
61905         (Support for maintaining and releasing projects): Renamed from
61906         'Support for maintaining and release projects'. Add announce-gen.
61907
61908 2007-03-31  Bruno Haible  <bruno@clisp.org>
61909
61910         * README: Talk primarily about git.
61911         (git and CVS): Renamed from CVS.
61912         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61913         gnulib is available through git.
61914         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61915
61916 2007-03-30  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61919         * lib/poll_.h: Likewise.
61920         * lib/stat_.h: Likewise.
61921         * lib/sys_time_.h: Likewise.
61922         * lib/sysexit_.h: Likewise.
61923         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61924         * lib/stdbool_.h: Likewise.
61925         * lib/byteswap_.h: Add double-inclusion guard.
61926
61927 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61928
61929         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61930
61931 2007-03-30  Karl Berry  <karl@gnu.org>
61932
61933         * config/srclist-update: double space after USA in the license
61934         substitution, since that's how it's usually (?) written.
61935
61936 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61939         reported by Bruno Haible.
61940
61941 2007-03-29  Bruno Haible  <bruno@clisp.org>
61942
61943         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61944         a bug in AIX iconv().
61945
61946 2007-03-29  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/ldexpl-tests: New file.
61949         * tests/test-ldexpl.c: New file.
61950
61951 2007-03-29  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/ldexpl.c: Include fpucw.h.
61954         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61955         multiplication.
61956         * modules/ldexpl (Depends-on): Add fpucw.
61957
61958 2007-03-29  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/ldexpl: New file.
61961         * m4/ldexpl.m4: New file.
61962         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61963         set.
61964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61965         REPLACE_LDEXPL.
61966         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61967         REPLACE_LDEXPL.
61968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61969         gl_FUNC_LDEXPL_WORKS.
61970         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61971         * modules/mathl (Files): Remove lib/ldexpl.c.
61972         (Depends-on): Add ldexpl.
61973
61974 2007-03-29  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61977
61978 2007-03-29  Bruno Haible  <bruno@clisp.org>
61979
61980         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61981         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61982         and possibly also HP-UX.
61983         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61984         work on AIX, IRIX, HP-UX, OSF/1.
61985         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61986         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61987         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61988         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61989         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61990         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61991
61992 2007-03-29  Bruno Haible  <bruno@clisp.org>
61993
61994         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61995
61996 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61999         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62000
62001 2007-03-29  Eric Blake  <ebb9@byu.net>
62002
62003         * lib/acl-internal.h: Remove redundant include.
62004         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62005         Cygwin when a file is locked.
62006
62007 2007-03-29  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62010         file.
62011         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62012
62013 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62016         try to remove a parent directory if the child couldn't be removed
62017         (except for the first rmdir, which could fail because the child
62018         doesn't exist).  Problem reported by Jeff Blaine in
62019         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62020
62021 2007-03-28  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/striconveh.c (utf8conv_carefully): New function.
62024         (mem_cd_iconveh_internal): Invoke it.
62025
62026 2007-03-28  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62029         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62030         input.
62031         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62032         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62033         unistr/u8-uctomb.
62034
62035 2007-03-28  Bruno Haible  <bruno@clisp.org>
62036
62037         * modules/unistr/u8-mbtoucr: New file.
62038         * lib/unistr/u8-mbtoucr.c: New file.
62039         * modules/unistr/u16-mbtoucr: New file.
62040         * lib/unistr/u16-mbtoucr.c: New file.
62041         * modules/unistr/u16-mbtoucr: New file.
62042         * lib/unistr/u16-mbtoucr.c: New file.
62043         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62044
62045 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62046             Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62049         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62050         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62051
62052         * m4/stdio_h.m4: Add stubs for vasprintf too.
62053
62054         * modules/stdio: Support vasprintf in sed command.
62055
62056         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62057         vasprintf.h.  Add stdio module indicator.
62058
62059         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62060         vasprintf.h.
62061
62062         * lib/vasprintf.h: File removed.
62063
62064         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62065         * lib/vasprintf.c: Ditto.
62066         * lib/xvasprintf.c: Ditto.
62067         * tests/test-vasprintf-posix.c: Ditto.
62068         * tests/test-vasprintf.c: Ditto.
62069
62070 2007-03-27  Bruno Haible  <bruno@clisp.org>
62071
62072         Make vasnprintf multithread-safe.
62073         * lib/vasnprintf.c (decimal_point_char): New function.
62074         (VASNPRINTF): Use it.
62075         Suggested by Simon Josefsson.
62076
62077 2007-03-27  Eric Blake  <ebb9@byu.net>
62078
62079         Support sub-second birthtime on cygwin.
62080         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62081         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62082         (get_stat_birthtime): Also work with st_birthtim.
62083
62084 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62087         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62088         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62089         (get_stat_birthtime_ns): Simplify compile-time tests.
62090         (get_stat_birthtime): Change the API to look like
62091         get_stat_mtime etc., except return a negative tv_nsec on error.
62092         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62093         Don't check for "spare" fields.
62094         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62095         or for struct stat.st_birthtime, as these tests aren't used.
62096         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62097
62098 2007-03-27  Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/stat-time.h: Include <sys/stat.h>.
62101
62102 2007-03-27  James Youngman  <jay@gnu.org>
62103
62104         * lib/stat-time.h (get_stat_birthtime): New function for
62105           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62106         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62107           and its variants.
62108         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62109         * modules/stat-time-test: New file.
62110         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62111
62112 2007-03-26  Bruno Haible  <bruno@clisp.org>
62113
62114         Better support of signalling NaNs.
62115         * lib/atanl.c: Include isnanl.h.
62116         (atanl): Perform test for NaN at the beginning of the function and
62117         through a call to isnanl.
62118         * lib/cosl.c: Include isnanl.h.
62119         (cosl): Perform test for NaN at the beginning of the function and
62120         through a call to isnanl.
62121         * lib/ldexpl.c: Include isnanl.h.
62122         (ldexpl): Perform test for NaN through a call to isnanl.
62123         * lib/logl.c: Include isnanl.h.
62124         (logl): Perform test for NaN at the beginning of the function and
62125         through a call to isnanl.
62126         * lib/sinl.c: Include isnanl.h.
62127         (sinl): Perform test for NaN at the beginning of the function and
62128         through a call to isnanl.
62129         * lib/sqrtl.c: Include isnanl.h.
62130         (sqrtl): Perform test for NaN at the beginning of the function and
62131         through a call to isnanl.
62132         * lib/tanl.c: Include isnanl.h.
62133         (tanl): Perform test for NaN at the beginning of the function and
62134         through a call to isnanl.
62135         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62136         * modules/mathl (Depends-on): Add isnanl.
62137
62138 2007-03-26  Eric Blake  <ebb9@byu.net>
62139
62140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62141         regression in logic sense of previous patch.
62142
62143 2007-03-26  Bruno Haible  <bruno@clisp.org>
62144
62145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62146         unportable shell command "if ! ...".
62147         Reported by Ralf Wildenhues.
62148
62149 2007-03-25  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62152         <sysexits.h> file, and only add EX_CONFIG.
62153         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62154         absolute file name and whether it is sufficient. Substitute also
62155         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62156         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62157         ABSOLUTE_SYSEXITS_H into sysexits.h.
62158
62159 2007-03-25  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62162         hints is NULL.
62163
62164 2007-03-25  Bruno Haible  <bruno@clisp.org>
62165
62166         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62167         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62168
62169 2007-03-25  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/vasnprintf.c: Include langinfo.h.
62172         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62173         multithread-safe.
62174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62183         Reported by Simon Josefsson.
62184
62185 2007-03-25  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62188         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62189         * modules/vasnprintf (Depends-on): Add stdint.
62190
62191 2007-03-25  Bruno Haible  <bruno@clisp.org>
62192
62193         * modules/fpieee: New file.
62194         * m4/fpieee.m4: New file.
62195         * modules/isnan-nolibm (Depends-on): Add fpieee.
62196         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62197         * modules/isnanl (Depends-on): Add fpieee.
62198
62199 2007-03-25  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62202
62203 2007-03-25  Bruno Haible  <bruno@clisp.org>
62204
62205         Avoid test failures on IRIX 6.5.
62206         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62207         (main): Use it.
62208         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62209         macros.
62210         (main): Use them.
62211
62212 2007-03-25  Bruno Haible  <bruno@clisp.org>
62213
62214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62215         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62216         exists but doesn't work.
62217         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62218         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62220         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62221         math.h.
62222
62223 2007-03-25  Bruno Haible  <bruno@clisp.org>
62224
62225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62226         returns inf. Needed on IRIX 6.5.
62227
62228 2007-03-25  Bruno Haible  <bruno@clisp.org>
62229
62230         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62231         (main): Use isnanl instead of x != x idiom.
62232         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62233
62234         * tests/test-frexp.c: Include isnan.h.
62235         (main): Use isnan instead of x != x idiom.
62236         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62237
62238 2007-03-25  Bruno Haible  <bruno@clisp.org>
62239
62240         * tests/test-frexp.c (NaN): New function/macro.
62241         (main): Use it instead of 0.0 / 0.0.
62242         * tests/test-isnan.c (NaN): New function/macro.
62243         (main): Use it instead of 0.0 / 0.0.
62244         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62245         (test_function): Use it instead of 0.0 / 0.0.
62246         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62247         (test_function): Use it instead of 0.0 / 0.0.
62248         * tests/test-snprintf-posix.h (NaN): New function/macro.
62249         (test_function): Use it instead of 0.0 / 0.0.
62250         * tests/test-sprintf-posix.h (NaN): New function/macro.
62251         (test_function): Use it instead of 0.0 / 0.0.
62252         * tests/test-fprintf-posix.h (NaN): New function/macro.
62253         (test_function): Use it instead of 0.0 / 0.0.
62254         * tests/test-printf-posix.h (NaN): New function/macro.
62255         (test_function): Use it instead of 0.0 / 0.0.
62256
62257         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62258
62259 2007-03-25  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62262
62263 2007-03-25  Bruno Haible  <bruno@clisp.org>
62264
62265         * lib/regexec.c (merge_state_with_log): Make static.
62266
62267 2007-03-25  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/trigl.c (kernel_rem_pio2): Make static.
62270
62271 2007-03-25  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/sincosl.c (sincosl_table): Make static.
62274
62275 2007-03-25  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62278         if the compiler does not support C99.
62279
62280 2007-03-25  Bruno Haible  <bruno@clisp.org>
62281
62282         * modules/time (Makefile.am): Ensure all rule action lines start with a
62283         tab.
62284
62285 2007-03-24  Bruno Haible  <bruno@clisp.org>
62286
62287         * modules/tsearch-tests: New file.
62288         * tests/test-tsearch.sh: New file.
62289         * tests/test-tsearch.c: New file, mostly copied from glibc.
62290
62291         * modules/search-tests: New file.
62292         * tests/test-search.c: New file.
62293
62294         * modules/search: New file.
62295         * lib/search_.h: New file, incorporating lib/tsearch.h.
62296         * m4/search_h.m4: New file.
62297         * lib/tsearch.h: Remove file.
62298         * lib/tsearch.c: Include search.h instead of tsearch.h.
62299         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62300         HAVE_TSEARCH.
62301         * modules/tsearch (Files): Remove lib/tsearch.h.
62302         (Depends-on): Add search.
62303         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62304         (Include): Change tsearch.h into search.h.
62305
62306 2007-03-24  Bruno Haible  <bruno@clisp.org>
62307
62308         * modules/fpucw: New file.
62309         * lib/fpucw.h: New file.
62310         * lib/frexp.c: Include fpucw.h.
62311         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62312         (FUNC): Use them.
62313         * lib/printf-frexp.c: Include fpucw.h.
62314         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62315         (FUNC): Use them.
62316         * lib/vasnprintf.c: Include fpucw.h.
62317         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62318         'long double' calculations.
62319         * tests/test-frexpl.c: Include fpucw.h.
62320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62321         * tests/test-printf-frexpl.c: Include fpucw.h.
62322         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62323         * modules/frexpl (Depends-on): Add fpucw.
62324         * modules/printf-frexpl (Depends-on): Likewise.
62325         * modules/fprintf-posix (Depends-on): Likewise.
62326         * modules/snprintf-posix (Depends-on): Likewise.
62327         * modules/sprintf-posix (Depends-on): Likewise.
62328         * modules/vasnprintf-posix (Depends-on): Likewise.
62329         * modules/vasprintf-posix (Depends-on): Likewise.
62330         * modules/vfprintf-posix (Depends-on): Likewise.
62331         * modules/vsnprintf-posix (Depends-on): Likewise.
62332         * modules/vsprintf-posix (Depends-on): Likewise.
62333         * modules/frexpl-tests (Depends-on): Likewise.
62334         * modules/printf-frexpl-tests (Depends-on): Likewise.
62335
62336 2007-03-24  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/float+.h: New file.
62339         * lib/isnan.c: Include float+.h.
62340         (SIZE): New macro.
62341         (FUNC): Compare only SIZE bytes of the value.
62342         * lib/vasnprintf.c: Include float+.h.
62343         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62344         SIZEOF_LDBL or SIZEOF_DBL bytes.
62345         * modules/isnan-nolibm (Files): Add lib/float+.h.
62346         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62347         * modules/isnanl (Files): Add lib/float+.h.
62348         * modules/vasnprintf (Files): Add lib/float+.h.
62349
62350 2007-03-24  Bruno Haible  <bruno@clisp.org>
62351
62352         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62353         include isnanl-nolibm.h.
62354
62355 2007-03-24  Bruno Haible  <bruno@clisp.org>
62356
62357         * tests/test-read-file.c (main): Don't produce spurious output for
62358         expected situations. Make the test fail if it encountered unexpected
62359         results.
62360
62361 2007-03-24  Bruno Haible  <bruno@clisp.org>
62362
62363         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62364         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62365
62366 2007-03-24  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62369
62370 2007-03-24  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62373         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62374
62375         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62376         * modules/utf8-ucs4: Turn into a symbolic link to module
62377         unistr/u8-mbtouc.
62378
62379         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62380         utf8-ucs4-unsafe.
62381         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62382         unistr/u8-mbtouc-unsafe.
62383
62384         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62385         * modules/utf16-ucs4: Turn into a symbolic link to module
62386         unistr/u16-mbtouc.
62387
62388         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62389         utf16-ucs4-unsafe.
62390         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62391         unistr/u16-mbtouc-unsafe.
62392
62393         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62394         * modules/ucs4-utf8: Turn into a symbolic link to module
62395         unistr/u8-ubtomb.
62396
62397         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62398         * modules/ucs4-utf16: Turn into a symbolic link to module
62399         unistr/u16-ubtomb.
62400
62401 2007-03-24  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62404         Enable the function only if HAVE_INLINE.
62405         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62406         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62407         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62408         Enable the function only if HAVE_INLINE.
62409         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62410         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62411         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62412         Enable the function only if HAVE_INLINE.
62413         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62414         Enable the function only if HAVE_INLINE.
62415         * modules/utf8-ucs4: Update.
62416         * modules/utf8-ucs4-unsafe: Update.
62417         * modules/utf16-ucs4: Update.
62418         * modules/utf16-ucs4-unsafe: Update.
62419         * modules/ucs4-utf8: Update.
62420         * modules/ucs4-utf16: Update.
62421
62422 2007-03-24  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/utf8-ucs4.h: Remove file.
62425         * lib/utf8-ucs4-unsafe.h: Remove file.
62426         * lib/utf16-ucs4.h: Remove file.
62427         * lib/utf16-ucs4-unsafe.h: Remove file.
62428         * lib/ucs4-utf8.h: Remove file.
62429         * lib/ucs4-utf16.h: Remove file.
62430         * lib/unistr.h: Include their previous contents.
62431         * m4/utf-ucs4.m4: Remove file.
62432         * m4/ucs4-utf.m4: Remove file.
62433         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62434         (Depends-on): Add unistr/base.
62435         (configure.ac): Remove gl_UTF_UCS4.
62436         (Makefile.am): Update.
62437         (Include): Change to unistr.h.
62438         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62439         (Depends-on): Add unistr/base.
62440         (configure.ac): Remove gl_UTF_UCS4.
62441         (Makefile.am): Update.
62442         (Include): Change to unistr.h.
62443         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62444         (Depends-on): Add unistr/base.
62445         (configure.ac): Remove gl_UTF_UCS4.
62446         (Makefile.am): Update.
62447         (Include): Change to unistr.h.
62448         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62449         (Depends-on): Add unistr/base.
62450         (configure.ac): Remove gl_UTF_UCS4.
62451         (Makefile.am): Update.
62452         (Include): Change to unistr.h.
62453         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62454         (Depends-on): Add unistr/base.
62455         (configure.ac): Remove gl_UCS4_UTF.
62456         (Makefile.am): Update.
62457         (Include): Change to unistr.h.
62458         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62459         (Depends-on): Add unistr/base.
62460         (configure.ac): Remove gl_UCS4_UTF.
62461         (Makefile.am): Update.
62462         (Include): Change to unistr.h.
62463         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62464         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62465         utf8-ucs4-unsafe.h.
62466         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62467         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62468         utf16-ucs4-unsafe.h.
62469         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62470         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62471         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62472         * lib/unistr/u8-strchr.c: Likewise.
62473         * lib/unistr/u8-strrchr.c: Likewise.
62474         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62475         * lib/unistr/u16-strchr.c: Likewise.
62476         * lib/unistr/u16-strrchr.c: Likewise.
62477         * lib/striconveh.c: Update.
62478         * lib/linebreak.c: Update.
62479
62480 2007-03-24  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62483         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62484
62485 2007-03-22  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62488
62489 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62490
62491         * MODULES.html.sh (File system functions): New module write-any-file.
62492         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62493         * m4/write-any-file.m4: New files.
62494
62495 2007-03-23  Eric Blake  <ebb9@byu.net>
62496
62497         * gnulib-tool: Rearrange space-tab sequences, since some editors
62498         like to eat them.
62499
62500 2007-03-23  Eric Blake  <ebb9@byu.net>
62501
62502         * lib/version-etc.c (version_etc_va): Update license wording to
62503         be more concise.  Recommended by Richard Stallman.
62504
62505 2007-03-22  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/poll.c (MSG_PEEK): New fallback definition.
62508
62509 2007-03-22  Bruno Haible  <bruno@clisp.org>
62510
62511         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62512         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62513         (main): Update.
62514         Fixes a compilation error on BeOS.
62515
62516 2007-03-22  Bruno Haible  <bruno@clisp.org>
62517
62518         * modules/frexpl-tests: New file.
62519         * tests/test-frexpl.c: New file.
62520
62521         * modules/frexpl: New file.
62522         * m4/frexpl.m4: New file.
62523         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62524         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62526         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62527         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62528         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62529
62530 2007-03-22  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/frexpl.c: Share code with lib/frexp.c.
62533         * modules/mathl (Files): Add lib/frexp.c.
62534         (Depends-on): Add isnanl-nolibm.
62535
62536 2007-03-22  Bruno Haible  <bruno@clisp.org>
62537
62538         * modules/printf-frexp (Files): Add m4/frexp.m4.
62539         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62540         only if the found frexp function actually works.
62541
62542 2007-03-22  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/frexp.c: Remove older implementation that uses divisions.
62545
62546 2007-03-21  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/frexp-tests: New file.
62549         * tests/test-frexp.c: New file.
62550
62551         * modules/frexp: New file.
62552         * lib/frexp.c: New file.
62553         * m4/frexp.m4: New file.
62554         * lib/math_.h (frexp): New declaration.
62555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62556         REPLACE_FREXP.
62557         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62558
62559 2007-03-21  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/isnanl-tests: New file.
62562         * tests/test-isnanl.c: New file.
62563
62564         * modules/isnanl: New file.
62565         * lib/isnanl.h: New file.
62566         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62567         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62568         gl_FUNC_ISNANL_WORKS.
62569         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62570         New macros.
62571
62572 2007-03-21  Bruno Haible  <bruno@clisp.org>
62573
62574         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62575         lib/isnanl.h.
62576         (Include): Update.
62577         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62578         * lib/vasnprintf.c: Update.
62579         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62580         tests/test-isnanl.h, remove tests/test-isnanl.c.
62581         (Makefile.am): Update.
62582         * tests/test-isnanl-nolibm.c: New file.
62583         * tests/test-isnanl.h: New file.
62584         * tests/test-isnanl.c: Remove file.
62585
62586 2007-03-21  Jim Meyering  <jim@meyering.net>
62587
62588         When trying to open ".", treat ESTALE like EACCES.
62589         * lib/savewd.c (savewd_save): Resort to forking not just upon
62590         failure with EACCES, but also when errno is ESTALE.
62591
62592 2007-03-20  Bruno Haible  <bruno@clisp.org>
62593
62594         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62595         Needed on AIX 5.1. Reported by Matthew Woehlke.
62596
62597 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         Suggestions by Bruno Haible:
62600         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62601         our own.
62602         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62603         * modules/acl (Depends-on): Add gettext.
62604
62605 2007-03-19  Bruno Haible  <bruno@clisp.org>
62606
62607         * modules/iconvme: Remove file.
62608         * lib/iconvme.h: Remove file.
62609         * lib/iconvme.c: Remove file.
62610         * m4/iconvme.m4: Remove file.
62611
62612 2007-03-19  Bruno Haible  <bruno@clisp.org>
62613
62614         * doc/relocatable-maint.texi: Break long shell script line.
62615         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62616
62617 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62620         handle file_has_acl.
62621         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62622         * lib/acl.c: Move header inclusions and related macro defns into
62623         lib/acl-internal.h.
62624         (S_ISLNK): Remove defn, since that's now done for us.
62625         (file_has_acl): Move to lib/file-has-acl.c.
62626         Call acl_trivial if available.  This is the crucial part of the fix.
62627         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62628         shared within the library.  Rewrite a bit, partly to make it compatible
62629         with the GNU coding style.
62630         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62631         Remove unnecessary double-quotes.
62632         Don't test for acl_to_text; the build will catch that.
62633         Replace acl_entries if it doesn't exist and it is needed.
62634         Check for -lsec and acl_trivial (as used on Solaris 10).
62635         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62636         lib/file-has-acl.c.
62637         (Depends-on): Add sys_stat, for S_ISLNK.
62638
62639 2007-03-19  Ben Pfaff  <blp@gnu.org>
62640
62641         * doc/gnulib.texi: Fix typos.
62642         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62643
62644 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62647         If size is zero here, buf must be zero.
62648
62649 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62650
62651         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62652         <bruno@clisp.org>.
62653
62654 2007-03-18  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62657         Suggested by Eric Blake.
62658
62659 2007-03-18  Ben Pfaff  <blp@gnu.org>
62660
62661         * doc/relocatable.texi: Recommend using as prefix a directory
62662         that does not exist and will never be created.  Based on
62663         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62664         and others.
62665
62666 2007-03-17  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/fchownat.c: Include lchown.h.
62669
62670 2007-03-17  Bruno Haible  <bruno@clisp.org>
62671
62672         Fix endless loop when the given allocated size was > INT_MAX.
62673         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62674         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62675         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62676         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62677         * lib/sprintf.c (sprintf): Likewise.
62678
62679 2007-03-17  Bruno Haible  <bruno@clisp.org>
62680
62681         * tests/test-argp-2.sh (func_compare): Output a context diff.
62682
62683 2007-03-17  Bruno Haible  <bruno@clisp.org>
62684
62685         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62686         locale's decimal-point character.
62687
62688 2007-03-17  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62691         before comparing it. Needed because on some platforms (e.g. x86) a
62692         'long double' occupies less bytes than sizeof (long double).
62693
62694 2007-03-17  Bruno Haible  <bruno@clisp.org>
62695
62696         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62697         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62698         * tests/test-getaddrinfo.c (simple): Likewise.
62699         * tests/test-read-file.c (main): Likewise.
62700
62701 2007-03-17  Bruno Haible  <bruno@clisp.org>
62702
62703         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62704
62705 2007-03-17  Bruno Haible  <bruno@clisp.org>
62706
62707         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62708         unused variable.
62709
62710 2007-03-17  Bruno Haible  <bruno@clisp.org>
62711
62712         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62713         * tests/test-c-strncasecmp.c: Likewise.
62714
62715 2007-03-17  Bruno Haible  <bruno@clisp.org>
62716
62717         * modules/stdlib (Depends-on): Add unistd.
62718         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62719         Needed for MacOS X 10.3.
62720
62721 2007-03-17  Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62724
62725 2007-03-17  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62728
62729 2007-03-17  Bruno Haible  <bruno@clisp.org>
62730
62731         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62732         to reflect files copied from gnulib (with or without modifications).
62733         Suggested by Jim Meyering.
62734
62735 2007-03-17  Eric Blake  <ebb9@byu.net>
62736
62737         * NEWS: Document stdlib change from 2007-02-18.
62738
62739 2007-03-17  Jim Meyering  <jim@meyering.net>
62740
62741         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62742         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62743         someone uses a name containing shell meta-characters.
62744         Reported by Alfred M. Szmidt.
62745
62746         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62747
62748 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62749
62750         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62751         and copy gettext configuration files only if configure.ac contains
62752         a use of AM_GNU_GETTEXT_VERSION.
62753
62754 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62755
62756         * build-aux/bootstrap (gnulib_name): New variable.
62757         (gnulib_tool_options): Use it.
62758
62759 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62760
62761         * tests/test-des.c: Use new namespace.
62762
62763 2007-03-15  Bruno Haible  <bruno@clisp.org>
62764
62765         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62766         Reported by James Youngman <jay@gnu.org>.
62767
62768 2007-03-15  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62771         declared prototype. Needed with cc on OSF/1 5.1.
62772
62773 2007-03-15  Bruno Haible  <bruno@clisp.org>
62774
62775         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62776         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62777         (struct gl_list_implementation): Add dispose_fn argument to the
62778         'create_empty', 'create' methods.
62779         (struct gl_list_impl_base): Add field 'dispose_fn'.
62780         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62781         argument.
62782         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62783         dispose_fn argument.
62784         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62785         dispose_fn on the dropped values.
62786         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62787         dispose_fn argument.
62788         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62789         dropped values.
62790         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62792         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62793         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62794         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62795         argument.
62796         (gl_tree_list_free): Call dispose_fn on the dropped values.
62797         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62798         the dropped values.
62799         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62800         Add dispose_fn argument.
62801         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62802         Call dispose_fn on the dropped values.
62803         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62804         Add dispose_fn argument.
62805         (gl_sublist_create): Initialize the 'dispose_fn' field.
62806         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62807         * tests/test-array_list.c (main): Update.
62808         * tests/test-carray_list.c (main): Update.
62809         * tests/test-avltree_list.c (main): Update.
62810         * tests/test-rbtree_list.c (main): Update.
62811         * tests/test-avltreehash_list.c (main): Update.
62812         * tests/test-rbtreehash_list.c (main): Update.
62813         * tests/test-linked_list.c (main): Update.
62814         * tests/test-linkedhash_list.c (main): Update.
62815         * tests/test-array_oset.c (main): Update.
62816
62817 2007-03-15  Bruno Haible  <bruno@clisp.org>
62818
62819         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62820         (gl_oset_create_empty): Add dispose_fn argument.
62821         (struct gl_oset_implementation): Add dispose_fn argument to
62822         'create_empty' method.
62823         (struct gl_oset_impl_base): Add dispose_fn field.
62824         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62825         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62826         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62827         values.
62828         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62829         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62830         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62831         dropped value.
62832         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62833         dropped value.
62834         * tests/test-array_oset.c (main): Update.
62835         * tests/test-avltree_oset.c (main): Update.
62836         * tests/test-rbtree_oset.c (main): Update.
62837         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62838
62839 2007-03-13  Bruno Haible  <bruno@clisp.org>
62840
62841         * tests/test-stdbool.c (i): Update after last patch.
62842
62843 2007-03-12  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62846         the iswprint macro. Needed on Solaris 2.5.1.
62847
62848 2007-03-12  Bruno Haible  <bruno@clisp.org>
62849
62850         * tests/test-printf-frexp.c (main): Declare x as volatile.
62851
62852 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62853
62854         * doc/gnulib.texi (Build robot for gnulib): New section.
62855
62856 2007-03-12  Jim Meyering  <jim@meyering.net>
62857
62858         * build-aux/bootstrap: New file.
62859         * build-aux/bootstrap.conf: New file, from coreutils.
62860
62861 2007-03-11  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62864
62865 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62866
62867         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62868         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62869         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62870
62871 2007-03-11  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62874         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62875
62876 2007-03-11  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62879         formula. Needed for SunPRO C 5.0.
62880
62881 2007-03-11  Bruno Haible  <bruno@clisp.org>
62882
62883         * modules/long-options (Depends-on): Add getopt.
62884
62885 2007-03-11  Bruno Haible  <bruno@clisp.org>
62886
62887         * modules/modechange (Depends-on): Add stdbool.
62888
62889 2007-03-11  Bruno Haible  <bruno@clisp.org>
62890
62891         * modules/i-ring (Depends-on): Add stdbool.
62892
62893 2007-03-11  Bruno Haible  <bruno@clisp.org>
62894
62895         * modules/gc-des (Depends-on): Add stdbool.
62896
62897 2007-03-11  Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62900
62901 2007-03-11  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62904
62905 2007-03-11  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62908
62909 2007-03-11  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/vasnprintf.c (sprintf): Undefine.
62912
62913 2007-03-11  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62916         initializers in SunPRO C and Compaq C compilers.
62917
62918 2007-03-11  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62921         decrementing code ANSI C compliant.
62922
62923 2007-03-11  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62926         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62927
62928 2007-03-11  Bruno Haible  <bruno@clisp.org>
62929
62930         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62931         <stdbool.h> substitute doesn't pass.
62932
62933 2007-03-11  Bruno Haible  <bruno@clisp.org>
62934
62935         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62936
62937 2007-03-11  Bruno Haible  <bruno@clisp.org>
62938
62939         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62940         script, for submission to autobuild.josefsson.org.
62941
62942 2007-03-10  Bruno Haible  <bruno@clisp.org>
62943
62944         * modules/canonicalize-lgpl-tests: New file.
62945         * tests/test-canonicalize-lgpl.sh: New file.
62946         * tests/test-canonicalize-lgpl.c: New file.
62947
62948         * modules/c-strcase-tests: New file.
62949         * tests/test-c-strcase.sh: New file.
62950         * tests/test-c-strcasecmp.c: New file.
62951         * tests/test-c-strncasecmp.c: New file.
62952
62953         * modules/atexit-tests: New file.
62954         * tests/test-atexit.sh: New file.
62955         * tests/test-atexit.c: New file.
62956
62957 2007-03-10  Bruno Haible  <bruno@clisp.org>
62958
62959         * tests/test-binary-io.sh: Use temporary filenames that are not so
62960         likely to clash with those of other tests (in a parallel make).
62961         * tests/test-binary-io.c: Likewise.
62962
62963 2007-03-10  Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62966         fallback; use #error instead.
62967         Suggested by Simon Josefsson.
62968
62969 2007-03-10  Bruno Haible  <bruno@clisp.org>
62970
62971         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62972         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62973         first and the last.
62974
62975 2007-03-10  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62978
62979 2007-03-10  Bruno Haible  <bruno@clisp.org>
62980
62981         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62982         "make distcheck".
62983         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62984         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62985         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62986
62987 2007-03-10  Bruno Haible  <bruno@clisp.org>
62988
62989         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62990         variable.
62991         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62992         variable.
62993
62994 2007-03-09  Eric Blake  <ebb9@byu.net>
62995         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62996
62997         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62998         types are not being provided by gnulib.
62999         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63000         types are supported.
63001
63002 2007-03-10  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stdio_.h (__attribute__): New macro.
63005         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63006         vsprintf): Specify __attribute__ __format__ for GCC.
63007         Suggested by Eric Blake.
63008
63009 2007-03-09  Bruno Haible  <bruno@clisp.org>
63010
63011         * modules/printf-posix-tests: New file.
63012         * tests/test-printf-posix.sh: New file.
63013         * tests/test-printf-posix.c: New file.
63014
63015         * modules/printf-posix: New file.
63016         * lib/printf.c: New file.
63017         * m4/printf-posix-rpl.m4: New file.
63018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63019         REPLACE_PRINTF.
63020         * lib/stdio_.h (printf): New declaration.
63021         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63022         ____strfmon____): New macros.
63023         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63024         REPLACE_PRINTF.
63025
63026 2007-03-09  Bruno Haible  <bruno@clisp.org>
63027
63028         * tests/test-vasnprintf-posix2.sh: New file.
63029         * tests/test-vasnprintf-posix2.c: New file.
63030         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63031         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63032         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63033
63034         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63035         a locale dependent decimal point, rather than always '.'.
63036
63037 2007-03-09  Eric Blake  <ebb9@byu.net>
63038
63039         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63040         spite of platforms like Tandem/NSK that define it to -1.
63041
63042 2007-03-08  Bruno Haible  <bruno@clisp.org>
63043
63044         * modules/vprintf-posix-tests: New file.
63045         * tests/test-vprintf-posix.sh: New file.
63046         * tests/test-vprintf-posix.c: New file.
63047         * tests/test-printf-posix.h: New file.
63048
63049         * modules/vprintf-posix: New file.
63050         * lib/vprintf.c: New file.
63051         * m4/vprintf-posix.m4: New file.
63052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63053         REPLACE_VPRINTF.
63054         * lib/stdio_.h (vprintf): New declaration.
63055         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63056         REPLACE_VPRINTF.
63057
63058 2007-03-08  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/fprintf-posix-tests: New file.
63061         * tests/test-fprintf-posix.sh: New file.
63062         * tests/test-fprintf-posix.c: New file.
63063
63064         * modules/fprintf-posix: New file.
63065         * lib/fprintf.c: New file.
63066         * m4/fprintf-posix.m4: New file.
63067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63068         REPLACE_FPRINTF.
63069         * lib/stdio_.h (fprintf): New declaration.
63070         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63071         REPLACE_FPRINTF.
63072
63073 2007-03-08  Bruno Haible  <bruno@clisp.org>
63074
63075         * modules/vfprintf-posix-tests: New file.
63076         * tests/test-vfprintf-posix.sh: New file.
63077         * tests/test-vfprintf-posix.c: New file.
63078         * tests/test-fprintf-posix.h: New file.
63079         * tests/test-fprintf-posix.out: New file.
63080
63081         * modules/vfprintf-posix: New file.
63082         * lib/vfprintf.c: New file.
63083         * m4/vfprintf-posix.m4: New file.
63084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63085         REPLACE_VFPRINTF.
63086         * lib/stdio_.h (vfprintf): New declaration.
63087         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63088         REPLACE_VFPRINTF.
63089
63090 2007-03-08  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63093
63094 2007-03-08  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63097         instead of 'expr' invocations.
63098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63103         Suggested by Paul Eggert.
63104
63105 2007-03-08  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/fseterr-tests: New file.
63108         * tests/test-fseterr.c: New file.
63109
63110         * modules/fseterr: New file.
63111         * lib/fseterr.h: New file.
63112         * lib/fseterr.c: New file.
63113
63114 2007-03-08  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63117         * lib/getopt_.h: Likewise.
63118         * lib/mbswidth.h: Likewise.
63119         * lib/setenv.h: Likewise.
63120         * lib/vasnprintf.h: Likewise.
63121         * lib/vasprintf.h: Likewise.
63122         * lib/verror.h: Likewise.
63123         * lib/xsetenv.h: Likewise.
63124         * lib/xvasprintf.h: Likewise.
63125
63126 2007-03-08  Jim Meyering  <jim@meyering.net>
63127
63128         * users.txt: Add parted.
63129
63130         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63131
63132 2007-03-07  Bruno Haible  <bruno@clisp.org>
63133
63134         * m4/printf.m4: Make the shell script snippets copy&pastable.
63135
63136 2007-03-02  Bruno Haible  <bruno@clisp.org>
63137
63138         * lib/netinet_in_.h: New file.
63139         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63140         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63141         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63142         (Depends-on): Add absolute-header.
63143         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63144         into netinet/in.h.
63145
63146 2007-03-03  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/sys_select_.h: New file.
63149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63150         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63151         * modules/sys_select (Files): Add lib/sys_select_.h.
63152         (Depends-on): Add absolute-header.
63153         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63154         into sys/select.h.
63155
63156 2007-03-02  Bruno Haible  <bruno@clisp.org>
63157
63158         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63159         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63160         values.
63161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63162         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63163         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63164         * modules/sys_socket (Depends-on): Add absolute-header.
63165         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63166         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63167         (Include): Remove requirement of inclusion of <sys/types.h>.
63168
63169 2007-03-02  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/byteswap_.h (bswap_32): Fix formula.
63172
63173 2007-03-06  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/sprintf-posix-tests: New file.
63176         * tests/test-sprintf-posix.c: New file.
63177
63178         * modules/sprintf-posix: New file.
63179         * lib/sprintf.c: New file.
63180         * m4/sprintf-posix.m4: New file.
63181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63182         REPLACE_SPRINTF.
63183         * lib/stdio_.h (sprintf): New declaration.
63184         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63185         REPLACE_SPRINTF.
63186
63187 2007-03-06  Bruno Haible  <bruno@clisp.org>
63188
63189         * modules/vsprintf-posix-tests: New file.
63190         * tests/test-vsprintf-posix.c: New file.
63191         * tests/test-sprintf-posix.h: New file.
63192
63193         * modules/vsprintf-posix: New file.
63194         * lib/vsprintf.c: New file.
63195         * m4/vsprintf-posix.m4: New file.
63196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63197         REPLACE_VSPRINTF.
63198         * lib/stdio_.h (vsprintf): New declaration.
63199         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63200         REPLACE_VSPRINTF.
63201
63202 2007-03-06  Bruno Haible  <bruno@clisp.org>
63203
63204         * modules/vsnprintf (Depend-on): Remove minmax.
63205
63206 2007-03-06  Bruno Haible  <bruno@clisp.org>
63207
63208         * modules/snprintf-posix-tests: New file.
63209         * tests/test-snprintf-posix.c: New file.
63210
63211         * modules/snprintf-posix: New file.
63212         * m4/snprintf-posix.m4: New file.
63213         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63214         gl_FUNC_SNPRINTF.
63215         (gl_FUNC_SNPRINTF): Invoke it.
63216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63217         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63218         is set.
63219         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63220
63221 2007-03-06  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/vsnprintf-posix-tests: New file.
63224         * tests/test-vsnprintf-posix.c: New file.
63225         * tests/test-snprintf-posix.h: New file.
63226
63227         * modules/vsnprintf-posix: New file.
63228         * m4/vsnprintf-posix.m4: New file.
63229         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63230         gl_FUNC_VSNPRINTF.
63231         (gl_FUNC_VSNPRINTF): Invoke it.
63232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63233         * lib/stdio_.h (vsnprintf): Define as a replacement if
63234         REPLACE_VSNPRINTF is set.
63235         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63236
63237 2007-03-06  Bruno Haible  <bruno@clisp.org>
63238
63239         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63241
63242 2007-03-06  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63245         (asinl): Declare also if HAVE_DECL_ASINL is set.
63246         (atanl): Declare also if HAVE_DECL_ATANL is set.
63247         (ceill): Declare also if HAVE_DECL_CEILL is set.
63248         (cosl): Declare also if HAVE_DECL_COSL is set.
63249         (expl): Declare also if HAVE_DECL_EXPL is set.
63250         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63251         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63252         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63253         (logl): Declare also if HAVE_DECL_LOGL is set.
63254         (sinl): Declare also if HAVE_DECL_SINL is set.
63255         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63256         (tanl): Declare also if HAVE_DECL_TANL is set.
63257         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63259         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63260         declaration of frexpl, ldexpl.
63261         * modules/printf-frexpl (Depends-on): Add math.
63262         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63263
63264 2007-03-05  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63267         frexpl and ldexpl are declared.
63268         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63269
63270 2007-03-05  Bruno Haible  <bruno@clisp.org>
63271
63272         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63273         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63274
63275 2007-03-05  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/stdio_.h: Include <stddef.h>.
63278
63279 2007-03-05  Bruno Haible  <bruno@clisp.org>
63280
63281         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63282
63283 2007-03-05  Bruno Haible  <bruno@clisp.org>
63284
63285         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63286         NetBSD 4, from Ralf Wildenhues.
63287
63288 2007-03-04  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/vasprintf.h: Update #if logic for the case when the functions
63291         exist but are overridden.
63292
63293 2007-03-04  Bruno Haible  <bruno@clisp.org>
63294
63295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63296         implementations: glibc-2.4 and MacOS X 10.3.
63297         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63298         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63299         * tests/test-vasprintf-posix.c (test_function): Likewise.
63300
63301 2007-03-04  Bruno Haible  <bruno@clisp.org>
63302
63303         * modules/vasprintf-posix-tests: New file.
63304         * tests/test-vasprintf-posix.c: New file.
63305
63306         * modules/vasprintf-posix: New file.
63307         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63308         defined.
63309         * m4/vasprintf-posix.m4: New file.
63310         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63311         gl_FUNC_VASPRINTF.
63312         (gl_FUNC_VASPRINTF): Invoke it.
63313         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63314         here.
63315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63316
63317 2007-03-04  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63320         REPLACE_GETTIMEOFDAY.
63321         * modules/sys_time (Makefile.am): Likewise.
63322         * m4/sys_time_h.m4: Likewise.
63323         * m4/gettimeofday.m4: Likewise.
63324
63325 2007-03-04  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/vasnprintf-posix-tests: New file.
63328         * tests/test-vasnprintf-posix.c: New file.
63329
63330         * modules/vasnprintf-posix: New file.
63331         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63332         printf-frexpl.h.
63333         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63334         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63335         REPLACE_VASNPRINTF is defined.
63336         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63337         gl_FUNC_VASNPRINTF.
63338         (gl_FUNC_VASNPRINTF): Invoke it.
63339         * m4/vasnprintf-posix.m4: New file.
63340         * m4/printf.m4: New file.
63341
63342 2007-03-04  Bruno Haible  <bruno@clisp.org>
63343
63344         Compile progreloc.c only if --enable-relocatable is specified.
63345         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63346         if --enable-relocatable was specified.
63347         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63348         lib_SOURCES.
63349
63350 2007-03-04  Jim Meyering  <jim@meyering.net>
63351
63352         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63353         Use it consistently, rather than enumerating errno constants.
63354
63355 2007-03-04  Bruno Haible  <bruno@clisp.org>
63356
63357         * modules/xvasprintf-tests: New file.
63358         * tests/test-xvasprintf.c: New file.
63359
63360         * modules/vasprintf-tests: New file.
63361         * tests/test-vasprintf.c: New file.
63362
63363         * modules/vasnprintf-tests: New file.
63364         * tests/test-vasnprintf.c: New file.
63365
63366         * modules/vsnprintf-tests: New file.
63367         * tests/test-vsnprintf.c: New file.
63368
63369         * modules/snprintf-tests: New file.
63370         * tests/test-snprintf.c: New file.
63371
63372 2007-03-04  Bruno Haible  <bruno@clisp.org>
63373
63374         Compile relocatable.c only if --enable-relocatable is specified.
63375         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63376         gl_RELOCATABLE_LIBRARY.
63377         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63378         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63379         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63380         gl_RELOCATABLE_LIBRARY.
63381         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63382         (Makefile.am): Remove lib_SOURCES.
63383         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63384         gl_RELOCATABLE_LIBRARY.
63385         (Makefile.am): Remove lib_SOURCES.
63386         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63387         always.
63388         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63389         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63390
63391 2007-03-04  Bruno Haible  <bruno@clisp.org>
63392
63393         * modules/argmatch-tests: New file.
63394         * tests/test-argmatch.c: New file.
63395
63396         * tests/test-allocsa.c (main): Halve the number of loop runs.
63397
63398         * modules/alloca-opt-tests: New file.
63399         * tests/test-alloca-opt.c: New file.
63400
63401 2007-03-04  Jim Meyering  <jim@meyering.net>
63402
63403         Work around difference between Linux ACLs and Solaris 10 ZFS.
63404         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63405         for EINVAL.
63406
63407 2007-03-03  Bruno Haible  <bruno@clisp.org>
63408
63409         * modules/relocatable-prog (Depends-on): Add back progreloc's
63410         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63411
63412 2007-03-03  Bruno Haible  <bruno@clisp.org>
63413
63414         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63415         * modules/relocatable-lib: New file.
63416
63417 2007-03-03  Bruno Haible  <bruno@clisp.org>
63418
63419         * modules/relocatable-prog: Renamed from modules/relocatable.
63420         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63421
63422 2007-03-03  Bruno Haible  <bruno@clisp.org>
63423
63424         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63425         m4/relocatable-lib.m4.
63426         (Depends-on): Remove 'relocatable'.
63427         (configure.ac): Add gl_RELOCATABLE_NOP.
63428
63429 2007-03-03  Bruno Haible  <bruno@clisp.org>
63430
63431         * modules/relocatable-prog-wrapper: New file.
63432         * modules/relocatable (Depends-on): Add it. Remove all other
63433         dependencies except progname.
63434         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63435
63436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63437         (gl_FUNC_STRERROR): Nop.
63438         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63439
63440         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63441         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63442
63443         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63444         (gl_FUNC_READLINK): Update.
63445
63446         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63447
63448 2007-03-03  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63451         * modules/xreadlink (Depends-on): Add unistd.
63452         * modules/xreadlink-with-size (Depends-on): Likewise.
63453
63454 2007-03-03  Bruno Haible  <bruno@clisp.org>
63455
63456         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63457         extracted from gt_FUNC_SETENV.
63458         (gt_FUNC_SETENV): Remove macro.
63459         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63460         remove gt_FUNC_SETENV.
63461
63462 2007-03-03  Bruno Haible  <bruno@clisp.org>
63463
63464         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63465         ENABLE_RELOCATABLE here.
63466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63467
63468 2007-03-03  Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63471         * tests/test-rbtreehash_list.c: Include progname.h.
63472         (main): Call set_program_name.
63473
63474         * modules/rbtree-oset-tests (Depends-on): Add progname.
63475         * tests/test-rbtree_oset.c: Include progname.h.
63476         (main): Call set_program_name.
63477
63478         * modules/rbtree-list-tests (Depends-on): Add progname.
63479         * tests/test-rbtree_list.c: Include progname.h.
63480         (main): Call set_program_name.
63481
63482         * modules/linked-list-tests (Depends-on): Add progname.
63483         * tests/test-linked_list.c: Include progname.h.
63484         (main): Call set_program_name.
63485
63486 2007-03-03  Bruno Haible  <bruno@clisp.org>
63487
63488         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63489         All uses of __restrict changed to _Restrict_.
63490         * lib/glob_.h (__restrict): Remove macro.
63491
63492 2007-03-02  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/gettext (configure.ac): Require gettext infrastructure
63495         from version 0.16.1.
63496
63497 2007-03-02  Bruno Haible  <bruno@clisp.org>
63498
63499         * modules/linkedhash-list-tests (Depends-on): Add progname.
63500         * tests/test-linkedhash_list.c: Include progname.h.
63501         (main): Call set_program_name.
63502
63503         * modules/carray-list-tests (Depends-on): Add progname.
63504         * tests/test-carray_list.c: Include progname.h.
63505         (main): Call set_program_name.
63506
63507         * modules/avltreehash-list-tests (Depends-on): Add progname.
63508         * tests/test-avltreehash_list.c: Include progname.h.
63509         (main): Call set_program_name.
63510
63511         * modules/avltree-oset-tests (Depends-on): Add progname.
63512         * tests/test-avltree_oset.c: Include progname.h.
63513         (main): Call set_program_name.
63514
63515         * modules/avltree-list-tests (Depends-on): Add progname.
63516         * tests/test-avltree_list.c: Include progname.h.
63517         (main): Call set_program_name.
63518
63519         * modules/array-oset-tests (Depends-on): Add progname.
63520         * tests/test-array_oset.c: Include progname.h.
63521         (main): Call set_program_name.
63522
63523         * modules/array-list-tests (Depends-on): Add progname.
63524         * tests/test-array_list.c: Include progname.h.
63525         (main): Call set_program_name.
63526
63527         * modules/argp-tests (Depends-on): Add progname.
63528         * tests/test-argp.c: Include argp.h first. Include progname.h.
63529         (main): Call set_program_name.
63530
63531 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * doc/gnulib-tool.texi (Initial import): Reword description of
63534         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63535         limited effect even if defined after the first system include.
63536
63537 2007-03-01  Bruno Haible  <bruno@clisp.org>
63538
63539         * build-aux/config.libpath: Update to libtool-1.5.22.
63540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63541
63542 2007-03-01  Bruno Haible  <bruno@clisp.org>
63543
63544         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63545         foo_CFLAGS.
63546         Reported by Ralf Wildenhues.
63547
63548 2007-03-01  Bruno Haible  <bruno@clisp.org>
63549
63550         * build-aux/install-reloc: Remove object files left over by some
63551         compilers.
63552         Reported by Ralf Wildenhues.
63553
63554 2007-03-01  Bruno Haible  <bruno@clisp.org>
63555
63556         * build-aux/install-reloc: Break long lines.
63557
63558 2007-03-01  Bruno Haible  <bruno@clisp.org>
63559
63560         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63561         Reported by Ralf Wildenhues.
63562
63563 2007-03-01  Bruno Haible  <bruno@clisp.org>
63564
63565         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63566         include ordering constraints.
63567
63568 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63569
63570         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63572         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63573         as another example.
63574         * lib/time_.h: Fix misspelling.
63575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63576         Require gl_HEADER_TIME_H_DEFAULTS.
63577         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63578         * m4/time_r.m4 (gl_TIME_R): Likewise.
63579         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63580
63581 2007-03-01  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63584         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63585
63586 2007-03-01  Jim Meyering  <jim@meyering.net>
63587
63588         * modules/xreadlink (Maintainer): Add my name.
63589         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63590
63591 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63592             Bruno Haible  <bruno@clisp.org>
63593
63594         * build-aux/install-reloc: Compile also c-ctype.c.
63595         * build-aux/relocatable.sh.in: New file.
63596         * doc/relocatable.texi: New file.
63597         * doc/relocatable-maint.texi: New file.
63598         * doc/gnulib.texi: Include relocatable-maint.texi.
63599         * lib/progreloc.c: Include unistd.h unconditionally.
63600         * lib/relocwrapper.c: Include unistd.h unconditionally.
63601         Include c-ctype.h.
63602         (add_dotbin): Use c_tolower.
63603         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63604         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63605         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63606         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63607         to m4/relocatable-lib.m4.
63608         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63609         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63610         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63611         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63612         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63613         * modules/relocatable: New file.
63614         * modules/relocatable-lib: New file.
63615         * modules/relocatable-script: New file.
63616
63617 2007-02-28  Bruno Haible  <bruno@clisp.org>
63618
63619         Import --enable-relocatable infrastructure.
63620         * build-aux/config.libpath: New file, from GNU gettext.
63621         * build-aux/install-reloc: New file, from GNU gettext.
63622         * build-aux/reloc-ldflags: New file, from GNU gettext.
63623         * lib/relocatable.h: New file, from GNU gettext.
63624         * lib/relocatable.c: New file, from GNU gettext.
63625         * lib/relocwrapper.c: New file, from GNU gettext.
63626         * m4/relocatable.m4: New file, from GNU gettext.
63627
63628 2007-02-28  Bruno Haible  <bruno@clisp.org>
63629
63630         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63631
63632         * modules/xreadlink: New file, from GNU gettext with modifications.
63633         * lib/xreadlink.c: New file, from GNU gettext.
63634         * lib/xreadlink.h: Add comments.
63635         (xreadlink): New declaration.
63636
63637         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63638         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63639         lib/xreadlink-with-size.c.
63640         (configure.ac): Remove gl_XREADLINK invocation.
63641         (Makefile.am): Augment lib_SOURCES.
63642         * m4/xreadlink.m4: Remove file.
63643         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63644         (xreadlink_with_size): Renamed from xreadink.
63645         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63646         * modules/canonicalize (Depends-on): Replace xreadlink with
63647         xreadlink-with-size.
63648         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63649
63650 2007-02-25  Jim Meyering  <jim@meyering.net>
63651
63652         * build-aux/announce-gen: When complaining about excess arguments,
63653         list them.
63654
63655 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * README: Document signed integer overflow situation more
63658         accurately.
63659
63660 2007-02-25  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63663         'a' or 'A' conversion.
63664
63665 2007-02-25  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/filename: Renamed from modules/pathname.
63668         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63669         lib/concatpath.c with lib/concat-filename.c.
63670         (Makefile.am): Update.
63671         (Include): Replace pathname.h with filename.h.
63672         * lib/filename.h: Renamed from lib/pathname.h.
63673         (concatenated_filename): Renamed from concatenated_pathname.
63674         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63675         (concatenated_filename): Renamed from concatenated_pathname.
63676         * lib/findprog.c: Include filename.h instead of pathname.h.
63677         (find_in_path): Update.
63678         * lib/javacomp.c: Include filename.h instead of pathname.h.
63679         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63680         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63681         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63682         is_oldgcj_14_13_usable, is_javac_usable): Update.
63683         * lib/javaexec.c: Include filename.h instead of pathname.h.
63684         (execute_java_class): Update.
63685         * modules/findprog: Update.
63686         * modules/javacomp: Update.
63687         * modules/javaexec: Update.
63688         * MODULES.html.sh (File system functions): Add 'filename', remove
63689         'pathname'.
63690
63691 2007-02-25  Bruno Haible  <bruno@clisp.org>
63692
63693         * modules/printf-frexpl-tests: New file.
63694         * tests/test-printf-frexpl.c: New file.
63695
63696         * modules/printf-frexpl: New file.
63697         * lib/printf-frexpl.h: New file.
63698         * lib/printf-frexpl.c: New file.
63699         * m4/printf-frexpl.m4: New file.
63700
63701 2007-02-25  Bruno Haible  <bruno@clisp.org>
63702
63703         * modules/printf-frexp-tests: New file.
63704         * tests/test-printf-frexp.c: New file.
63705
63706         * modules/printf-frexp: New file.
63707         * lib/printf-frexp.h: New file.
63708         * lib/printf-frexp.c: New file.
63709         * m4/printf-frexp.m4: New file.
63710
63711 2007-02-25  Bruno Haible  <bruno@clisp.org>
63712
63713         Assume automake >= 1.10 for the tests.
63714         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63715         * modules/arctwo-tests: Likewise.
63716         * modules/argp-tests: Likewise.
63717         * modules/avltree-list-tests: Likewise.
63718         * modules/avltree-oset-tests: Likewise.
63719         * modules/avltreehash-list-tests: Likewise.
63720         * modules/carray-list-tests: Likewise.
63721         * modules/crc-tests: Likewise.
63722         * modules/des-tests: Likewise.
63723         * modules/gc-arcfour-tests: Likewise.
63724         * modules/gc-arctwo-tests: Likewise.
63725         * modules/gc-des-tests: Likewise.
63726         * modules/gc-hmac-md5-tests: Likewise.
63727         * modules/gc-hmac-sha1-tests: Likewise.
63728         * modules/gc-md2-tests: Likewise.
63729         * modules/gc-md4-tests: Likewise.
63730         * modules/gc-md5-tests: Likewise.
63731         * modules/gc-pbkdf2-sha1-tests: Likewise.
63732         * modules/gc-rijndael-tests: Likewise.
63733         * modules/gc-sha1-tests: Likewise.
63734         * modules/gc-tests: Likewise.
63735         * modules/getaddrinfo-tests: Likewise.
63736         * modules/hmac-md5-tests: Likewise.
63737         * modules/hmac-sha1-tests: Likewise.
63738         * modules/linked-list-tests: Likewise.
63739         * modules/linkedhash-list-tests: Likewise.
63740         * modules/lock-tests: Likewise.
63741         * modules/md2-tests: Likewise.
63742         * modules/md4-tests: Likewise.
63743         * modules/md5-tests: Likewise.
63744         * modules/rbtree-list-tests: Likewise.
63745         * modules/rbtree-oset-tests: Likewise.
63746         * modules/rbtreehash-list-tests: Likewise.
63747         * modules/read-file-tests: Likewise.
63748         * modules/rijndael-tests: Likewise.
63749         * modules/stdint-tests: Likewise.
63750         * modules/tls-tests: Likewise.
63751
63752 2007-02-24  Bruno Haible  <bruno@clisp.org>
63753
63754         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63755         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63756         function; instead check whether isnan with a double argument links.
63757         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63758         function; instead check whether isnan with a 'long double' argument
63759         links.
63760         Reported by Eric Blake <ebb9@byu.net>.
63761
63762 2007-02-24  Bruno Haible  <bruno@clisp.org>
63763
63764         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63765         defined.
63766         * lib/isnanl.c: Remove all code. Just include isnan.c.
63767         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63768
63769 2007-02-25  Jim Meyering  <jim@meyering.net>
63770
63771         Avoid conflicting types for 'unsetenv' on FreeBSD.
63772         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63773         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63774         in stdlib.h.
63775
63776 2007-02-24  Bruno Haible  <bruno@clisp.org>
63777
63778         * modules/isnanl-nolibm-tests: New file.
63779         * tests/test-isnanl.c: New file.
63780
63781         * modules/isnanl-nolibm: New file.
63782         * lib/isnanl.h: New file.
63783         * lib/isnanl.c: New file.
63784         * m4/isnanl.m4: New file.
63785
63786 2007-02-24  Bruno Haible  <bruno@clisp.org>
63787
63788         * modules/isnan-nolibm-tests: New file.
63789         * tests/test-isnan.c: New file.
63790
63791         * modules/isnan-nolibm: New file.
63792         * lib/isnan.h: New file.
63793         * lib/isnan.c: New file.
63794         * m4/isnan.m4: New file.
63795
63796 2007-02-24  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63799         assume that an exponent fits in 20 bits.
63800
63801 2007-02-24  Jim Meyering  <jim@meyering.net>
63802
63803         * m4/regex.m4: Update the description of the configure-time option,
63804         --without-included-regex, to state accurately what the defaults are,
63805         and perhaps to give people an idea why using this option is risky.
63806
63807 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63810         loops on small arguments.  This attempts to avoid the problem
63811         Bruno Haible reported for AIX 4.3.2 in
63812         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63813
63814 2007-02-23  Bruno Haible  <bruno@clisp.org>
63815
63816         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63817         Needed for help2man.
63818
63819 2007-02-23  Karl Berry  <karl@gnu.org>
63820
63821         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63822         exists, foo.h should be cvs-ignored, not committed.
63823
63824 2007-02-23  Eric Blake  <ebb9@byu.net>
63825
63826         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63827         * lib/stat-time.h (includes): Likewise.
63828         * lib/utimecmp.c (includes): Likewise.
63829         * lib/utimens.h (includes): Likewise.
63830         * lib/getdate.y (includes): Also include "timespec.h" for use
63831         internal to the module.
63832         * modules/utimens (Depends-on): Revert yesterday's patch.
63833         * modules/nanosleep (Depends-on): Add missing dependency.
63834
63835 2007-02-22  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/glob.c: Don't include getlogin_r.h.
63838
63839 2007-02-22  Jim Meyering  <jim@meyering.net>
63840
63841         * modules/utimens (Depends-on): Add timespec, required for
63842         utimens.h's inclusion of timespec.h.
63843
63844 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63847         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63848         Schwab in
63849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63850         I'll try to think of a better way to fix the Solaris problem.
63851
63852         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63853         like glibc; on Solaris 10, it fails with errno == EINVAL.
63854         POSIX says the behavior is unspecified if the first argument is NULL,
63855         so play it safe and never pass NULL to the system getcwd.
63856
63857 2007-02-21  Jim Meyering  <jim@meyering.net>
63858
63859         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63860         of gettimeofday.  It would conflict with the one now always
63861         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63862         an IRIX 6.5 build failure.
63863
63864 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         Minor fixups to port to Solaris 10 with Sun C 5.8.
63867         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63868         * modules/getcwd (Depends-on): Add dirfd.
63869         * lib/putenv.c (putenv): #undef it.
63870         (rpl_putenv): New decl.
63871         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63872
63873 2007-02-20  Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/stdio-tests: New file.
63876         * tests/test-stdio.c: New file.
63877
63878         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63879         (Depends-on): Add stdio.
63880         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63881         (Include): Use <stdio.h> instead of vsnprintf.h.
63882         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63883         HAVE_DECL_VSNPRINTF.
63884         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63885
63886         * modules/snprintf (Files): Remove lib/snprintf.h.
63887         (Depends-on): Add stdio.
63888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63889         (Include): Use <stdio.h> instead of snprintf.h.
63890         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63891         HAVE_DECL_SNPRINTF.
63892         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63893         * lib/getaddrinfo.c: Likewise.
63894
63895         * modules/stdio: New file.
63896         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63897         * lib/snprintf.h: Remove file.
63898         * lib/vsnprintf.h: Remove file.
63899         * lib/.cppi-disable: Remove snprintf.h.
63900         * m4/stdio_h.m4: New file.
63901         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63902
63903 2007-02-20  Jim Meyering  <jim@meyering.net>
63904
63905         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63906         used by e.g., mingw.  From Bruno Haible.
63907
63908 2007-02-19  Bruno Haible  <bruno@clisp.org>
63909
63910         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63911         warnings.
63912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63913
63914 2007-02-19  Bruno Haible  <bruno@clisp.org>
63915
63916         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63917         from mingw users.
63918
63919 2007-02-19  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63922         warnings.
63923         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63924
63925 2007-02-19  Jim Meyering  <jim@meyering.net>
63926
63927         Don't use FD after a successful "fdopendir (fd)".
63928         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63929         Reset it by calling dirfd on the just-obtained DIR*.
63930
63931         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63932         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63933
63934 2007-02-18  Bruno Haible  <bruno@clisp.org>
63935
63936         * lib/readlink.c: Include <unistd.h>.
63937         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63938         HAVE_READLINK.
63939         * modules/readlink (Depends-on): Add unistd.
63940         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63941         (Include): Add <unistd.h>.
63942
63943         * lib/getlogin_r.h: Remove file.
63944         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63945         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63946         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63947         HAVE_DECL_GETLOGIN_R.
63948         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63950         (Include): Use <unistd.h> instead of getlogin_r.h.
63951
63952         * lib/getcwd.h: Remove file.
63953         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63954         * lib/xgetcwd.c: Likewise.
63955         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63956         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63957         * modules/getcwd (Files): Remove lib/getcwd.h.
63958         (Depends-on): Add unistd.
63959         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63960         (Include): Use <unistd.h> instad of getcwd.h.
63961
63962         * lib/ftruncate.c: Include <unistd.h> first.
63963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63964         Set HAVE_FTRUNCATE.
63965         * modules/ftruncate (Depends-on): Add unistd.
63966         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63967
63968         * lib/fchdir.c: Include <unistd.h> first.
63969         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63971         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63972         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63973         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63974
63975         * lib/dup2.c: Include <unistd.h> first.
63976         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63977         HAVE_DUP2.
63978         * modules/dup2 (Depends-on): Add unistd.
63979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63980
63981         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63982         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63983         REPLACE_CHOWN. Don't define chown as a macro here.
63984         * modules/chown (Depends-on): Add unistd.
63985         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63986
63987         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63988         Add definition for GL_LINK_WARNING.
63989         (chown, dup2): New declarations.
63990         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63991         link warning.
63992         (ftruncate): New declaration.
63993         (getcwd): New declaration, taken from old getcwd.h.
63994         (getlogin_r): New declaration, taken from old getlogin_r.h.
63995         (readlink): New declaration.
63996         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63997         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63998         (gl_PREREQ_UNISTD): Remove macro.
63999         (gl_UNISTD_MODULE_INDICATOR): New macro.
64000         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64001         many new variables. Don't set UNISTD_H.
64002         * modules/unistd (Description): Change.
64003         (Depends-on): Add link-warning.
64004         (configure.ac): Update.
64005         (Makefile.am): Create unistd.h always. Substitute many new variables
64006         into it.
64007
64008 2007-02-18  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64011         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64012         HAVE_GETSUBOPT.
64013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64014         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64015         * lib/getsubopt.h: Remove file.
64016         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64017         (Depends-on): Add stdlib.
64018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64019         (Includes): Use <stdlib.h> instead of getsubopt.h.
64020         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64021         Set HAVE_GETSUBOPT.
64022         * lib/getsubopt.c: Don't include getsubopt.h.
64023
64024 2007-02-18  Bruno Haible  <bruno@clisp.org>
64025
64026         * modules/fchdir (Depends-on): Add dup2.
64027
64028 2007-02-18  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/stdlib_.h: Handle glibc's special invocation convention
64031         specially.
64032
64033 2007-02-18  Bruno Haible  <bruno@clisp.org>
64034
64035         * modules/stdlib-tests: New file.
64036         * tests/test-stdlib.c: New file.
64037
64038         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64039         (Depends-on): Add stdlib.
64040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64041         (Includes): Use <stdlib.h> instead of mkstemp.h.
64042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64043         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64044         * lib/mkstemp.c: Don't include mkstemp.h.
64045         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64046         * lib/stdlib--.h: Don't include mkstemp.h.
64047
64048         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64049         (Depends-on): Add stdlib.
64050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64051         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64052         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64053         HAVE_MKDTEMP.
64054         * lib/mkdtemp.c: Don't include mkdtemp.h.
64055         * lib/clean-temp.c: Don't include mkdtemp.h.
64056
64057         * modules/exit (Files): Remove lib/exit.h.
64058         (Depends-on): Add stdlib.
64059         (Makefile.am): Remove lib_SOURCES.
64060         (Include): Use <stdlib.h> instead of exit.h.
64061         * lib/argmatch.c: Don't include exit.h.
64062         * lib/execute.c: Likewise.
64063         * lib/pagealign_alloc.c: Likewise.
64064         * lib/pipe.c: Likewise.
64065         * lib/wait-process.c: Likewise.
64066         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64067         * lib/exitfail.c: Likewise.
64068         * lib/savewd.c: Likewise.
64069         * lib/xsetenv.c: Likewise.
64070
64071         * modules/stdlib: New file.
64072         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64073         and extra comments about mkstemp().
64074         * lib/exit.h: Remove file.
64075         * lib/mkdtemp.h: Remove file.
64076         * lib/mkstemp.h: Remove file.
64077         * m4/stdlib_h.m4: New file.
64078         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64079
64080 2007-02-18  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/math-tests: New file.
64083         * tests/test-math.c: New file.
64084
64085         * modules/math: New file.
64086         * modules/mathl (Files): Remove lib/mathl.h.
64087         (Depends-on): Add math.
64088         (Makefile.am): Don't mention mathl.h.
64089         (Include): Use <math.h> instead of mathl.h.
64090         * lib/math_.h: New file.
64091         * lib/mathl.h: Remove file.
64092         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64093         mathl.h.
64094         * lib/asinl.c: Likewise.
64095         * lib/atanl.c: Likewise.
64096         * lib/ceill.c: Likewise.
64097         * lib/cosl.c: Likewise.
64098         * lib/expl.c: Likewise.
64099         * lib/floorl.c: Likewise.
64100         * lib/frexpl.c: Likewise.
64101         * lib/ldexpl.c: Likewise.
64102         * lib/logl.c: Likewise.
64103         * lib/sincosl.c: Likewise.
64104         * lib/sinl.c: Likewise.
64105         * lib/sqrtl.c: Likewise.
64106         * lib/tanl.c: Likewise.
64107         * lib/trigl.c: Likewise.
64108         * m4/math_h.m4: New file.
64109         * MODULES.html.sh (Mathematics): Add math.
64110
64111 2007-02-17  Bruno Haible  <bruno@clisp.org>
64112
64113         * modules/wctype-tests: New file.
64114         * tests/test-wctype.c: New file.
64115
64116         * modules/wchar-tests: New file.
64117         * tests/test-wchar.c: New file.
64118
64119         * modules/unistd-tests: New file.
64120         * tests/test-unistd.c: New file.
64121
64122         * modules/time-tests: New file.
64123         * tests/test-time.c: New file.
64124
64125         * modules/sysexits-tests: New file.
64126         * tests/test-sysexits.c: New file.
64127
64128         * modules/sys_time-tests: New file.
64129         * tests/test-sys_time.c: New file.
64130
64131         * modules/sys_stat-tests: New file.
64132         * tests/test-sys_stat.c: New file.
64133
64134         * modules/sys_socket-tests: New file.
64135         * tests/test-sys_socket.c: New file.
64136
64137         * modules/sys_select-tests: New file.
64138         * tests/test-sys_select.c: New file.
64139
64140         * modules/string-tests: New file.
64141         * tests/test-string.c: New file.
64142
64143         * modules/stdbool-tests: New file.
64144         * tests/test-stdbool.c: New file.
64145
64146         * modules/netinet_in-tests: New file.
64147         * tests/test-netinet_in.c: New file.
64148
64149         * modules/inttypes-tests: New file.
64150         * tests/test-inttypes.c: New file.
64151
64152         * modules/fcntl-tests: New file.
64153         * tests/test-fcntl.c: New file.
64154
64155         * modules/byteswap-tests: New file.
64156         * tests/test-byteswap.c: New file.
64157
64158         * modules/arpa_inet-tests: New file.
64159         * tests/test-arpa_inet.c: New file.
64160
64161 2007-02-17  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64164         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64165         if the corresponding module is not enabled. Emit link warnings if
64166         the function is used nevertheless.
64167         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64168         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64169         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64170         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64171         * modules/inttypes (Depends-on): Add link-warning.
64172         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64173         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64174         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64175         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64176         * modules/imaxdiv (configure.ac): Likewise.
64177         * modules/strtoimax (configure.ac): Likewise.
64178         * modules/strtoumax (configure.ac): Likewise.
64179
64180 2007-02-17  Bruno Haible  <bruno@clisp.org>
64181
64182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64183         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64184         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64185         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64186
64187 2007-02-17  Bruno Haible  <bruno@clisp.org>
64188
64189         * modules/link-warning: New file.
64190         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64191         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64192         * modules/string (Depends-on): Add link-warning.
64193         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64194         string.h.
64195         * MODULES.html.sh (Support for building libraries and executables): Add
64196         link-warning.
64197
64198 2007-02-17  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64201         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64202         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64203         long lines.
64204
64205 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64206             Bruno Haible  <bruno@clisp.org>
64207
64208         * modules/tmpfile: New file.
64209         * lib/tmpfile.c: New file.
64210         * m4/tmpfile.m4: New file.
64211         * MODULES.html.sh (func_all_modules): New section "Input/output".
64212
64213 2007-02-15  Bruno Haible  <bruno@clisp.org>
64214
64215         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64216         (supports_delete_on_close): New function.
64217         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64218
64219 2007-02-14  Bruno Haible  <bruno@clisp.org>
64220
64221         * modules/mbspcasecmp-tests: New file.
64222         * tests/test-mbspcasecmp.sh: New file.
64223         * tests/test-mbspcasecmp.c: New file.
64224
64225         New module mbspcasecmp.
64226         * modules/mbspcasecmp: New file.
64227         * lib/mbspcasecmp.c: New file.
64228         * lib/string_.h (strncasecmp): Change warning message.
64229         (mbspcasecmp): New declaration.
64230         * m4/mbspcasecmp.m4: New file.
64231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64232         GNULIB_MBSPCASECMP.
64233         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64234         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64235
64236 2007-02-14  Bruno Haible  <bruno@clisp.org>
64237
64238         * modules/mbsncasecmp-tests: New file.
64239         * tests/test-mbsncasecmp.sh: New file.
64240         * tests/test-mbsncasecmp.c: New file.
64241
64242         New module mbsncasecmp.
64243         * modules/mbsncasecmp: New file.
64244         * lib/mbsncasecmp.c: New file.
64245         * lib/string_.h (mbsncasecmp): New declaration.
64246         * m4/mbsncasecmp.m4: New file.
64247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64248         GNULIB_MBSNCASECMP.
64249         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64250         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64251
64252 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64255         Verify that it doesn't overlap with our flags.
64256         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64257         do not have the desired effect in multibyte locales; instead, use
64258         mbscasecmp.
64259         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64260         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64261         we don't require GNU fnmatch ourselves (if our users require it, they
64262         should do so explicitly).
64263
64264         Fix regex code so it doesn't rely on strcasecmp.
64265         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64266         Otherwise, include gnulib's langinfo.h.
64267         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64268         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64269         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64270         * modules/regex (FILES): Remove m4/codeset.m4.
64271         (Depends-on): Add localcharset.  Remove strcase.
64272
64273 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64274
64275         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64277
64278 2007-02-13  Bruno Haible  <bruno@clisp.org>
64279
64280         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64282
64283 2007-02-12  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64286         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64287         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64288         time warning rather than a link error.
64289
64290 2007-02-12  Bruno Haible  <bruno@clisp.org>
64291
64292         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64293         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64295
64296 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64299         args, not 2.
64300
64301 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         New module 'time', so that apps can include <time.h> as per
64304         POSIX and GNU instead of separate include files like time_r.h
64305         and timegm.h.  This implementation tries out a simpler approach
64306         for replacing decls in standard include files (as compared to
64307         the string module), somewhat as an experiment.
64308
64309         * config/srclist.txt: Comment out mktime.c for now.
64310         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64311         since it doesn't apply any more.  Use generic wording instead.
64312         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64313         'time'.
64314         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64315         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64316         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64317         Don't include <sys/types.h>; no longer needed since we assume C89.
64318         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64319         * lib/strftime.c: Likewise.
64320         * lib/time_r.c: Likewise.
64321         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64322         * lib/nanosleep.c: Include <time.h> first, to check interface.
64323         * lib/strptime.c: Likewise.
64324         * lib/time_r.c: Likewise.
64325         * lib/timegm.c: Likewise.
64326         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64327         needed.
64328         * lib/timegm.c: Don't include timegm.h; no longer needed.
64329         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64330         time.h now handles any problems in that area.
64331         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64332         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64333         that time.h defines struct timespec.
64334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64335         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64336         handles that.
64337         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64338         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64339         needed.  Set REPLACE_LOCALTIME.
64340         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64341         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64342         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64343         nanosleep; time_h.m4 now does that.  Don't require
64344         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64345         module handles this now.
64346         * modules/getdate (Depends-on): Remove timespec.  Add time.
64347         * modules/nanosleep (Depends-on): Likewise.
64348         * modules/stat-time (Depends-on): Likewise.
64349         * modules/nanosleep (Include): Include time.h, not timespec.h.
64350         * modules/strptime (Files): Remove lib/strptime.h.
64351         (Depends-on): Add extensions, time.
64352         (Include): Include time.h, not strptime.h.
64353         * modules/time_r (Files): Remove lib/time_r.h.
64354         (Depends-on): Add time.
64355         (Include): Include time.h, not time_r.h.
64356         * modules/timegm: Likewise.
64357         * modules/timespec (Description): Now does timespec-related decls
64358         of our own, instead of struct timespec itself.
64359         (Depends-on): Add time; remove extensions.
64360         (Maintainer): Add self.
64361         * modules/utimecmp (Depends-on): Add time; remove timespec.
64362         * modules/utimens (Depends-on): Likewise.
64363         * modules/xnanosleep (Depends-on): Likewise.
64364
64365 2007-02-11  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/c-strstr.c: Include allocsa.h.
64368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64369         * lib/c-strcasestr.c: Include allocsa.h.
64370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64371         * lib/strcasestr.c: Include allocsa.h.
64372         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64373         * lib/mbsstr.c: Include allocsa.h.
64374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64375         allocsa/freesa instead of malloc/free.
64376         * lib/mbscasestr.c: Include allocsa.h.
64377         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64378         allocsa/freesa instead of malloc/free.
64379         * modules/c-strstr (Depends-on): Add allocsa.
64380         * modules/c-strcasestr (Depends-on): Likewise.
64381         * modules/strcasestr (Depends-on): Likewise.
64382         * modules/mbsstr (Depends-on): Likewise.
64383         * modules/mbscasestr (Depends-on): Likewise.
64384
64385 2007-02-11  Bruno Haible  <bruno@clisp.org>
64386
64387         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64388
64389         * modules/mbsspn-tests: New file.
64390         * tests/test-mbsspn.sh: New file.
64391         * tests/test-mbsspn.c: New file.
64392
64393 2007-02-11  Bruno Haible  <bruno@clisp.org>
64394
64395         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64396
64397         * modules/mbspbrk-tests: New file.
64398         * tests/test-mbspbrk.sh: New file.
64399         * tests/test-mbspbrk.c: New file.
64400
64401 2007-02-11  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64404         unneeded cast.
64405
64406         * modules/mbscspn-tests: New file.
64407         * tests/test-mbscspn.sh: New file.
64408         * tests/test-mbscspn.c: New file.
64409
64410 2007-02-11  Bruno Haible  <bruno@clisp.org>
64411
64412         * modules/mbscasecmp-tests: New file.
64413         * tests/test-mbscasecmp.sh: New file.
64414         * tests/test-mbscasecmp.c: New file.
64415
64416 2007-02-11  Bruno Haible  <bruno@clisp.org>
64417
64418         Ensure O(n) worst-case complexity of mbscasestr.
64419         * lib/mbscasestr.c: Include stdbool.h.
64420         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64421         functions.
64422         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64423         the bookkeeping indicates that it's worth it.
64424         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64425
64426         * modules/mbscasestr-tests: New file.
64427         * tests/test-mbscasestr1.c: New file.
64428         * tests/test-mbscasestr2.sh: New file.
64429         * tests/test-mbscasestr2.c: New file.
64430         * tests/test-mbscasestr3.sh: New file.
64431         * tests/test-mbscasestr3.c: New file.
64432         * tests/test-mbscasestr4.sh: New file.
64433         * tests/test-mbscasestr4.c: New file.
64434         * m4/locale-tr.m4: New file.
64435
64436 2007-02-11  Bruno Haible  <bruno@clisp.org>
64437
64438         Ensure O(n) worst-case complexity of mbsstr.
64439         * lib/mbsstr.c: Include stdbool.h.
64440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64441         functions.
64442         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64443         bookkeeping indicates that it's worth it.
64444         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64445
64446         * modules/mbsstr-tests: New file.
64447         * tests/test-mbsstr1.c: New file.
64448         * tests/test-mbsstr2.sh: New file.
64449         * tests/test-mbsstr2.c: New file.
64450         * tests/test-mbsstr3.sh: New file.
64451         * tests/test-mbsstr3.c: New file.
64452         * m4/locale-fr.m4: New file.
64453
64454 2007-02-11  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/mbsrchr.c (mbsrchr): Fix bug.
64457
64458         * modules/mbsrchr-tests: New file.
64459         * tests/test-mbsrchr.sh: New file.
64460         * tests/test-mbsrchr.c: New file.
64461
64462 2007-02-11  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/mbschr.c (mbschr): Fix bug.
64465
64466         * modules/mbschr-tests: New file.
64467         * tests/test-mbschr.sh: New file.
64468         * tests/test-mbschr.c: New file.
64469         * m4/locale-zh.m4: New file.
64470
64471 2007-02-11  Bruno Haible  <bruno@clisp.org>
64472
64473         Support for copying multibyte string iterators.
64474         * lib/mbiter.h: Include <string.h>.
64475         (mbiter_multi_copy): New function.
64476         (mbi_copy): New macro.
64477         * lib/mbuiter.h: Include <string.h>.
64478         (mbuiter_multi_copy): New function.
64479         (mbui_copy): New macro.
64480
64481 2007-02-11  Bruno Haible  <bruno@clisp.org>
64482
64483         New module mbslen.
64484         * modules/mbslen: New file.
64485         * lib/mbslen.c: New file.
64486         * lib/string_.h (mbslen): New declaration.
64487         * m4/mbslen.m4: New file.
64488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64489         GNULIB_MBSLEN.
64490         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64491         * MODULES.html.sh (Internationalization functions): Add mbslen.
64492
64493 2007-02-11  Bruno Haible  <bruno@clisp.org>
64494
64495         Ensure O(n) worst-case complexity of strcasestr substitute.
64496         * lib/strcasestr.c: Include stdbool.h.
64497         (knuth_morris_pratt): New function.
64498         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64499         bookkeeping indicates that it's worth it.
64500         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64501
64502         * modules/strcasestr-tests: New file.
64503         * tests/test-strcasestr.c: New file.
64504
64505 2007-02-11  Bruno Haible  <bruno@clisp.org>
64506
64507         Ensure O(n) worst-case complexity of c_strcasestr.
64508         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64509         (knuth_morris_pratt): New function.
64510         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64511         the bookkeeping indicates that it's worth it.
64512         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64513
64514         * modules/c-strcasestr-tests: New file.
64515         * tests/test-c-strcasestr.c: New file.
64516
64517 2007-02-11  Bruno Haible  <bruno@clisp.org>
64518
64519         Ensure O(n) worst-case complexity of c_strstr.
64520         * lib/c-strstr.c: Include stdbool.h, string.h.
64521         (knuth_morris_pratt): New function.
64522         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64523         bookkeeping indicates that it's worth it.
64524         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64525
64526         * lib/c-strstr.c: Complete rewrite for maintainability.
64527
64528         * modules/c-strstr-tests: New file.
64529         * tests/test-c-strstr.c: New file.
64530
64531 2007-02-11  Bruno Haible  <bruno@clisp.org>
64532
64533         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64534         5.2.1 and earlier, whereby \055 was treated just like the range
64535         delimiter '-'.
64536         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64537
64538 2007-02-08  Bruno Haible  <bruno@clisp.org>
64539
64540         * modules/regex (Depends-on): Add stdbool.
64541         Reported by Dalibor Topic <robilad@kaffe.org>.
64542
64543 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64544
64545         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64546         Prefer returning from main to exiting from it.
64547         Remove unnecessary parens after sizeof.
64548
64549 2007-02-05  Bruno Haible  <bruno@clisp.org>
64550
64551         New module mbssep.
64552         * modules/mbssep: New file.
64553         * lib/mbssep.c: New file.
64554         * lib/string_.h (strsep): Add a conditional link warning.
64555         (mbssep): New declaration.
64556         * m4/mbssep.m4: New file.
64557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64558         GNULIB_MBSSEP.
64559         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64560         * MODULES.html.sh (Internationalization functions): Add mbssep.
64561
64562 2007-02-05  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64565         Optimize search in case of 1 delimiter.
64566
64567 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64568
64569         * lib/acl.h: Include sys/types.h before sys/acl.h.
64570
64571 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64572
64573         Merge upstream fix for glibc bugzilla #3957:
64574
64575         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64576
64577         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64578         bit for RE_HAT_LISTS_NOT_NEWLINE.
64579         (build_charclass_op): Remove bogus comment.
64580
64581 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64582
64583         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64584
64585 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64588         * lib/memmem.c [!defined _LIBC]: Include config.h.
64589
64590 2007-02-04  Bruno Haible  <bruno@clisp.org>
64591
64592         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64593         warning message.
64594
64595 2007-02-04  Bruno Haible  <bruno@clisp.org>
64596
64597         New module mbstok_r.
64598         * modules/mbstok_r: New file.
64599         * lib/mbstok_r.c: New file.
64600         * lib/string_.h (strtok_r): Change argument names to match the
64601         comments. Add a conditional link warning.
64602         (mbstok_r): New declaration.
64603         * m4/mbstok_r.m4: New file.
64604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64605         GNULIB_MBSTOK_R.
64606         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64607         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64608
64609 2007-02-04  Bruno Haible  <bruno@clisp.org>
64610
64611         New module mbsspn.
64612         * modules/mbsspn: New file.
64613         * lib/mbsspn.c: New file.
64614         * lib/string_.h (strspn): Add a conditional link warning.
64615         (mbsspn): New declaration.
64616         * m4/mbsspn.m4: New file.
64617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64618         GNULIB_MBSSPN.
64619         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64620         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64621
64622 2007-02-04  Bruno Haible  <bruno@clisp.org>
64623
64624         New module mbspbrk.
64625         * modules/mbspbrk: New file.
64626         * lib/mbspbrk.c: New file.
64627         * lib/string_.h (strpbrk): Add a conditional link warning.
64628         (mbspbrk): New declaration.
64629         * m4/mbspbrk.m4: New file.
64630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64631         GNULIB_MBSPBRK.
64632         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64633         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64634
64635 2007-02-04  Bruno Haible  <bruno@clisp.org>
64636
64637         New module mbscspn.
64638         * modules/mbscspn: New file.
64639         * lib/mbscspn.c: New file.
64640         * lib/string_.h (strcspn): Add a conditional link warning.
64641         (mbscspn): New declaration.
64642         * m4/mbscspn.m4: New file.
64643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64644         GNULIB_MBSCSPN.
64645         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64646         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64647
64648 2007-02-04  Bruno Haible  <bruno@clisp.org>
64649
64650         New module mbscasestr, reduced goal of strcasestr.
64651         * modules/mbscasestr: New file.
64652         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64653         (mbscasestr): Renamed from strcasestr.
64654         * lib/strcasestr.c: Don't include mbuiter.h.
64655         (strcasestr): Remove support for multibyte locales.
64656         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64657         Change the conditional link warning.
64658         (mbscasestr): New declaration.
64659         * m4/mbscasestr.m4: New file.
64660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64661         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64662         REPLACE_STRCASESTR.
64663         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64665         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64666         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64667         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64668         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64669         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64670         (Depends-on): Remove mbuiter.
64671         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64672
64673 2007-02-04  Bruno Haible  <bruno@clisp.org>
64674
64675         Simplify handling of strncasecmp.
64676         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64677         the conditional link warning.
64678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64679         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64680         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64681         * modules/strcase (configure.ac): Don't invoke
64682         gl_STRING_MODULE_INDICATOR.
64683         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64684
64685 2007-02-04  Bruno Haible  <bruno@clisp.org>
64686
64687         New module mbscasecmp, reduced goal of strcasecmp.
64688         * modules/mbscasecmp: New file.
64689         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64690         (mbscasecmp): Renamed from strcasecmp.
64691         * lib/strcasecmp.c: Don't include mbuiter.h.
64692         (strcasecmp): Remove support for multibyte locales.
64693         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64694         Change the conditional link warning.
64695         (mbscasecmp): New declaration.
64696         * m4/mbscasecmp.m4: New file.
64697         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64698         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64699         REPLACE_STRCASECMP.
64700         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64702         GNULIB_MBSCASECMP.
64703         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64704         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64705         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64706         (Depends-on): Remove mbuiter.
64707         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64708
64709 2007-02-04  Bruno Haible  <bruno@clisp.org>
64710
64711         New module mbsstr. Remove module strstr.
64712         * modules/mbsstr: New file.
64713         * modules/strstr: Remove file.
64714         * lib/mbsstr.c: Renamed from lib/strstr.c.
64715         (mbsstr): Renamed from strstr.
64716         * lib/string_.h (strstr): Remove declaration. Change the conditional
64717         link warning.
64718         (mbsstr): New declaration.
64719         * m4/mbsstr.m4: New file.
64720         * m4/strstr.m4: Remove file.
64721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64722         REPLACE_STRSTR.
64723         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64724         Don't initialize GNULIB_STRSTR.
64725         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64726         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64727         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64728         (Support for systems lacking ANSI C 89): Remove strstr.
64729
64730 2007-02-04  Bruno Haible  <bruno@clisp.org>
64731
64732         New module mbsrchr.
64733         * modules/mbsrchr: New file.
64734         * lib/mbsrchr.c: New file.
64735         * lib/string_.h (strrchr): Add a conditional link warning.
64736         (mbsrchr): New declaration.
64737         * m4/mbsrchr.m4: New file.
64738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64739         GNULIB_MBSRCHR.
64740         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64741         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64742
64743 2007-02-04  Bruno Haible  <bruno@clisp.org>
64744
64745         New module mbschr.
64746         * modules/mbschr: New file.
64747         * lib/mbschr.c: New file.
64748         * lib/string_.h (strchr): Add a conditional link warning.
64749         (mbschr): New declaration.
64750         * m4/mbschr.m4: New file.
64751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64752         GNULIB_MBSCHR.
64753         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64754         * MODULES.html.sh (Internationalization functions): Add mbschr.
64755
64756 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64759
64760         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64761
64762 2007-02-04  Bruno Haible  <bruno@clisp.org>
64763
64764         New module description section 'configure.ac-early'.
64765         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64766         (func_get_autoconf_early_snippet): New function.
64767         (func_import, func_create_testdir): Use it. Remove special cases for
64768         modules 'extensions' and 'lock'.
64769         * modules/extensions (configure.ac-early): Require
64770         gl_USE_SYSTEM_EXTENSIONS.
64771         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64772
64773 2007-02-04  Bruno Haible  <bruno@clisp.org>
64774
64775         Make use of gcj-4.3's -fsource and -ftarget option.
64776         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64777         and if so try the options -fsource and -ftarget.
64778         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64779         source_version, ftarget_option, target_version arguments.
64780         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64781         (is_envjavac_oldgcj_14_14_usable): Renamed from
64782         is_envjavac_gcj_14_14_usable.
64783         (is_envjavac_oldgcj_14_13_usable): Renamed from
64784         is_envjavac_gcj_14_13_usable.
64785         (is_gcj_present): Update.
64786         (is_gcj_43, is_gcj43_usable): New functions.
64787         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64788         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64789         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64790         try the options -fsource and -ftarget.
64791
64792 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64795         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64796         larger value.
64797
64798 2007-02-03  Jim Meyering  <jim@meyering.net>
64799
64800         Give tools a better chance to allocate space for very large buffers.
64801         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64802
64803         Make pwd and readlink work also when run with an unreadable parent dir
64804         on systems with openat support.
64805         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64806         provided getcwd function, even when we have openat support.
64807         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64808
64809 2007-02-02  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64812         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64813         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64814         portability problems if one of these functions is only used on specific
64815         platforms.
64816         Reported by Paul Eggert.
64817
64818 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64821         is causing more trouble than it's curing.
64822         * lib/regex_internal.h (__mempcpy): Remove.
64823         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64824         (and make the code a tad smaller to boot).
64825         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64826
64827 2007-02-02  Jim Meyering  <jim@meyering.net>
64828
64829         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64830         section, not in the Makefile.am: one.
64831
64832 2007-02-02  Eric Blake  <ebb9@byu.net>
64833
64834         * lib/strchrnul.c: Always include config.h first.
64835
64836         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64837         gnulib strstr is not necessary here.
64838
64839 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64840
64841         * m4/socklen.m4: Fix typo.
64842
64843 2007-02-02  Eric Blake  <ebb9@byu.net>
64844
64845         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64846         * modules/netinet_in (Makefile.am): Likewise.
64847
64848 2007-02-01  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/string_.h (GL_LINK_WARNING): New macro.
64851         (strcasecmp, strstr, strcasestr): If provided by the system,
64852         conditionally define as a macro that leads to a warning instead of to
64853         an error.
64854         (strncasecmp): Conditionally define as a macro that leads to a warning.
64855
64856 2007-02-01  Karl Berry  <karl@gnu.org>
64857
64858         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64859
64860 2007-02-01  Bruno Haible  <bruno@clisp.org>
64861
64862         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64863         renamings.
64864
64865 2007-02-01  Eric Blake  <ebb9@byu.net>
64866
64867         * modules/regex (Depends-on): Revert dependence on mempcpy.
64868         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64869         module's definition of mempcpy.
64870         Reported by Paul Eggert.
64871
64872 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64875         the symbol XYZ before redefining it.  This fixes a problem with
64876         programs that don't use XYZ, when compiled on systems that define
64877         XYZ to something else.
64878
64879 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64882         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64883         writeable to group or other and (2) is intended to have a special
64884         mode bit that is set or cleared.  In such a case, the directory
64885         should be neither group- nor other-writeable until the special
64886         mode bits are right.
64887
64888 2007-01-31  Eric Blake  <ebb9@byu.net>
64889
64890         * modules/mountlist (Depends-on): Add strstr.
64891
64892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64893         bug.
64894         * modules/string (Makefile.am): Remove redundant replacement.
64895         * modules/regex (Depends-on): Add mempcpy.
64896
64897 2007-01-31  Bruno Haible  <bruno@clisp.org>
64898
64899         New module description field 'Link'.
64900         * gnulib-tool (func_usage): Document --extract-link-directive.
64901         (sed_extract_prog): Recognize 'Link' directive.
64902         (func_get_link_directive): New function.
64903         (func_import): Show summary of link directives.
64904         Handle --extract-link-directive option.
64905         * modules/acl (Link): New section.
64906         * modules/clock-time (Link): New section.
64907         * modules/euidaccess (Link): New section.
64908         * modules/gettext (Link): New section.
64909         * modules/iconv (Link): New section.
64910         * modules/lock (Link): New section.
64911         * modules/nanosleep (Link): New section.
64912         * modules/readline (Link): New section.
64913
64914 2007-01-27  Bruno Haible  <bruno@clisp.org>
64915
64916         Enforce the use of gnulib modules for unportable <string.h> functions.
64917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64918         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64919         (gl_HEADER_STRING_H_BODY): Require it.
64920         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64921         the symbol XYZ to one that gives a link error.
64922         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64923         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64924         * modules/mempcpy (configure.ac): Likewise.
64925         * modules/memrchr (configure.ac): Likewise.
64926         * modules/stpcpy (configure.ac): Likewise.
64927         * modules/stpncpy (configure.ac): Likewise.
64928         * modules/strcase (configure.ac): Likewise.
64929         * modules/strcasestr (configure.ac): Likewise.
64930         * modules/strchrnul (configure.ac): Likewise.
64931         * modules/strdup (configure.ac): Likewise.
64932         * modules/strndup (configure.ac): Likewise.
64933         * modules/strnlen (configure.ac): Likewise.
64934         * modules/strpbrk (configure.ac): Likewise.
64935         * modules/strsep (configure.ac): Likewise.
64936         * modules/strstr (configure.ac): Likewise.
64937         * modules/strtok_r (configure.ac): Likewise.
64938
64939 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64940
64941         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64942
64943 2007-01-30  Jim Meyering  <jim@meyering.net>
64944
64945         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64946
64947 2007-01-29  Bruno Haible  <bruno@clisp.org>
64948
64949         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64950         * lib/execute.c: Likewise.
64951         * lib/pipe.c: Likewise.
64952         * lib/printf-args.h: Likewise.
64953         * lib/printf-args.c: Likewise.
64954         * lib/printf-parse.c: Likewise.
64955         * lib/vasnprintf.c: Likewise.
64956
64957 2007-01-29  Eric Blake  <ebb9@byu.net>
64958
64959         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64960         declaration.
64961
64962 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * lib/strptime.h (strptime): Use 'restrict' for args where
64965         POSIX requires this.
64966         * lib/strptime.c (strptime): Likewise.
64967         Change license notice from LGPL to GPL, since gnulib-tool will
64968         change this as needed.
64969         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64970         defined.
64971         Include "strptime.h" first, to check interface.
64972         Do not #undef _LIBC and _NL_CURRENT.
64973         Do not include <stdlib.h>; no longer needed.
64974         Include "time_r.h" and declare ptime_locale_status
64975         only if _LIBC is not defined.
64976         (__P): Remove unused macro.
64977         (match_string): Bring back glibc version, but use it only if _LIBC
64978         is defined.
64979         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64980         Remove unnecessary assertion and abort() call.
64981         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64982         * m4/strptime.m4: Fix serial number comment.
64983         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64984         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64985         (Depends-on): Add time_r.
64986
64987 2007-01-29  Bruno Haible  <bruno@clisp.org>
64988
64989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64990         strptime.
64991         * modules/strptime (Depends-on): Add stdbool.
64992         * lib/strptime.h: Include <time.h> always. Add comments.
64993
64994 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64995
64996         * modules/strptime: New file.
64997         * lib/strptime.h: New file.
64998         * lib/strptime.c: New file.
64999         * m4/strptime.m4: New file.
65000
65001 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * MODULES.html.sh: New module mpsort.
65004         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65005
65006         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65007         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65009         All uses changed.
65010         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65011         All uses changed.
65012         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65013         to _Restrict_.
65014         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65015         the parameter matches the prototype.
65016
65017 2007-01-28  Jim Meyering  <jim@meyering.net>
65018
65019         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65020         sys/time.h here, reverting that part of the previous patch:
65021         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65022
65023 2007-01-28  Bruno Haible  <bruno@clisp.org>
65024
65025         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65026         value of $(SYS_TIME_H).
65027         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65028         remove it conditionally, too. [added by Jim Meyering]
65029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65031         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65032         GETTIMEOFDAY_REPLACEMENT to 1.
65033
65034 2007-01-28  Bruno Haible  <bruno@clisp.org>
65035
65036         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65037         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65039         Set UNISTD_H instead of UNISTD_H2.
65040         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65041
65042 2007-01-28  Bruno Haible  <bruno@clisp.org>
65043
65044         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65045         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65046
65047 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65048
65049         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65050         (func_create_testdir): Ensure C locale for `grep' and `tr'
65051         character ranges.
65052         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65053         ACLOCAL_AMFLAGS parsing state machine.
65054
65055 2007-01-27  Bruno Haible  <bruno@clisp.org>
65056
65057         * modules/unistr/base: Update.
65058
65059 2007-01-27  Bruno Haible  <bruno@clisp.org>
65060
65061         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65062         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65063         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65064         modules/unistr/u32-mbtouc.
65065         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65066         * lib/unistr.h: Update.
65067         * lib/linebreak.c: Update.
65068         * modules/unistr/u32-mbtouc: Renamed from
65069         modules/unistr/u32-mbtouc-safe.
65070         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65071         * lib/unistr.h: Update.
65072         * lib/unistr/u32-to-u8.c: Update.
65073         * lib/unistr/u32-to-u16.c: Update.
65074
65075 2007-01-27  Bruno Haible  <bruno@clisp.org>
65076
65077         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65078         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65079         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65080         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65081         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65082         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65083         modules/unistr/u16-mbtouc.
65084         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65085         * lib/unistr.h: Update.
65086         * lib/linebreak.c: Update.
65087         * modules/linebreak: Update.
65088         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65089         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65090         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65091         * modules/unistr/u16-mbtouc: Renamed from
65092         modules/unistr/u16-mbtouc-safe.
65093         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65094         * lib/unistr.h: Update.
65095         * lib/unistr/u16-to-u8.c: Update.
65096         * modules/unistr/u16-to-u8: Update.
65097         * lib/unistr/u16-to-u32.c: Update.
65098         * modules/unistr/u16-to-u32: Update.
65099
65100 2007-01-27  Bruno Haible  <bruno@clisp.org>
65101
65102         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65103         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65104         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65105         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65106         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65107         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65108         modules/unistr/u8-mbtouc.
65109         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65110         * lib/unistr.h: Update.
65111         * lib/striconveh.c: Update.
65112         * modules/striconveh: Update.
65113         * lib/linebreak.c: Update.
65114         * modules/linebreak: Update.
65115         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65116         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65117         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65118         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65119         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65120         * lib/unistr.h: Update.
65121         * lib/striconveh.c: Update.
65122         * modules/striconveh: Update.
65123         * lib/unistr/u8-to-u16.c: Update.
65124         * modules/unistr/u8-to-u16: Update.
65125         * lib/unistr/u8-to-u32.c: Update.
65126         * modules/unistr/u8-to-u32: Update.
65127
65128 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65129
65130         Sync from Libtool.
65131         * lib/argz.c: Do not include strings.h nor memory.h, include
65132         string.h unconditionally.  Patch by Simon Josefsson.
65133
65134 2007-01-27  Bruno Haible  <bruno@clisp.org>
65135
65136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65137         from gl_HEADER_STRING_H_BODY.
65138         (gl_HEADER_STRING_H_BODY): Require it.
65139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65140         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65141         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65142         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65144         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65146         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65147         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65149         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65150         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65151         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65152         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65153         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65154
65155 2007-01-27  Bruno Haible  <bruno@clisp.org>
65156
65157         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65158         check_PROGRAMS into noinst_PROGRAMS.
65159         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65160         check_PROGRAMS in this case.
65161         (func_import): Set for_test to false.
65162         (func_create_testdir): Set for_test to true.
65163
65164 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65165             Bruno Haible  <bruno@clisp.org>
65166
65167         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65168         (Depends-on): Add string.
65169         (Includes): Use <string.h> instead of strcasestr.h.
65170         * modules/string (Makefile.am): Also substitute the value of
65171         REPLACE_STRCASESTR.
65172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65173         assume strcasestr is declared in <string.h> not <strings.h>. Also
65174         set REPLACE_STRCASESTR.
65175         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65176         REPLACE_STRCASESTR.
65177         * lib/strcasestr.h: Remove file.
65178         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65179         * lib/string_.h (strcasestr): New declaration.
65180
65181 2007-01-27  Bruno Haible  <bruno@clisp.org>
65182
65183         * lib/string_.h: Use 'extern'.
65184
65185 2007-01-27  Jim Meyering  <jim@meyering.net>
65186
65187         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65188         of set-but-not-used local, "q".
65189
65190         * lib/mempcpy.c: Include <config.h> before <string.h>.
65191         This fixes a compilation error on HP-UX, due to the system's
65192         "restrict"-using mempcpy prototype.
65193
65194 2007-01-26  Bruno Haible  <bruno@clisp.org>
65195
65196         Small optimization.
65197         * lib/javacomp.c: Include c-strstr.h.
65198          (is_envjavac_gcj): Use c_strstr instead of strstr.
65199         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65200
65201 2007-01-26  Bruno Haible  <bruno@clisp.org>
65202
65203         * MODULES.html.sh (Unicode string functions): Add the new modules.
65204
65205         * modules/uniconv/u32-strconv-to-locale: New file.
65206         * lib/uniconv/u32-strconv-to-locale.c: New file.
65207
65208         * modules/uniconv/u16-strconv-to-locale: New file.
65209         * lib/uniconv/u16-strconv-to-locale.c: New file.
65210
65211         * modules/uniconv/u8-strconv-to-locale: New file.
65212         * lib/uniconv/u8-strconv-to-locale.c: New file.
65213
65214         * modules/uniconv/u32-strconv-from-locale: New file.
65215         * lib/uniconv/u32-strconv-from-locale.c: New file.
65216
65217         * modules/uniconv/u16-strconv-from-locale: New file.
65218         * lib/uniconv/u16-strconv-from-locale.c: New file.
65219
65220         * modules/uniconv/u8-strconv-from-locale: New file.
65221         * lib/uniconv/u8-strconv-from-locale.c: New file.
65222
65223         * modules/uniconv/u32-strconv-to-enc: New file.
65224         * lib/uniconv/u32-strconv-to-enc.c: New file.
65225         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65226         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65227
65228         * modules/uniconv/u16-strconv-to-enc: New file.
65229         * lib/uniconv/u16-strconv-to-enc.c: New file.
65230         * lib/uniconv/u-strconv-to-enc.h: New file.
65231         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65232         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65233
65234         * modules/uniconv/u8-strconv-to-enc: New file.
65235         * lib/uniconv/u8-strconv-to-enc.c: New file.
65236         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65237         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65238
65239         * modules/uniconv/u32-strconv-from-enc: New file.
65240         * lib/uniconv/u32-strconv-from-enc.c: New file.
65241         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65242         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65243
65244         * modules/uniconv/u16-strconv-from-enc: New file.
65245         * lib/uniconv/u16-strconv-from-enc.c: New file.
65246         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65247         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65248
65249         * modules/uniconv/u8-strconv-from-enc: New file.
65250         * lib/uniconv/u8-strconv-from-enc.c: New file.
65251         * lib/uniconv/u-strconv-from-enc.h: New file.
65252         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65253         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65254
65255         * modules/uniconv/u32-conv-from-enc: New file.
65256         * lib/uniconv/u32-conv-from-enc.c: New file.
65257         * modules/uniconv/u32-conv-from-enc-tests: New file.
65258         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65259
65260         * modules/uniconv/u16-conv-from-enc: New file.
65261         * lib/uniconv/u16-conv-from-enc.c: New file.
65262         * lib/uniconv/u-conv-from-enc.h: New file.
65263         * modules/uniconv/u16-conv-from-enc-tests: New file.
65264         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65265
65266         * modules/uniconv/u8-conv-from-enc: New file.
65267         * lib/uniconv/u8-conv-from-enc.c: New file.
65268         * modules/uniconv/u8-conv-from-enc-tests: New file.
65269         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65270
65271         * modules/uniconv/base: New file.
65272         * lib/uniconv.h: New file.
65273
65274 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * doc/gnulib-tool.texi (Initial import): Update to match current
65277         behavior with strdup module.
65278         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65279         * lib/memmem.h: Remove; all uses removed.  This is now done
65280         by <string.h>.
65281         * lib/mempcpy.h: Likewise.
65282         * lib/memrchr.h: Likewise.
65283         * lib/stpcpy.h: Likewise.
65284         * lib/stpncpy.h: Likewise.
65285         * lib/strcase.h: Likewise.
65286         * lib/strchrnul.h: Likewise.
65287         * lib/strdup.h: Likewise.
65288         * lib/strndup.h: Likewise.
65289         * lib/strnlen.h: Likewise.
65290         * lib/strpbrk.h: Likewise.
65291         * lib/strsep.h: Likewise.
65292         * lib/strstr.h: Likewise.
65293         * lib/strtok_r.h: Likewise.
65294         * lib/string_.h: New file.
65295         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65296         Rely on <string.h> instead.
65297         * lib/canon-host.c: Likewise.
65298         * lib/chdir-long.c: Likewise.
65299         * lib/concatpath.c: Likewise.
65300         * lib/exclude.c: Likewise.
65301         * lib/fchdir.c: Likewise.
65302         * lib/getaddrinfo.c: Likewise.
65303         * lib/getcwd.c: Likewise.
65304         * lib/getsubopt.c: Likewise.
65305         * lib/glob.c: Likewise.
65306         * lib/hard-locale.c: Likewise.
65307         * lib/iconvme.c: Likewise.
65308         * lib/javacomp.c: Likewise.
65309         * lib/mempcpy.c: Likewise.
65310         * lib/memrchr.c: Likewise.
65311         * lib/regex_internal.h: Likewise.
65312         * lib/stpncpy.c: Likewise.
65313         * lib/strcasecmp.c: Likewise.
65314         * lib/strchrnul.c: Likewise.
65315         * lib/strdup.c: Likewise.
65316         * lib/striconv.c: Likewise.
65317         * lib/striconveh.c: Likewise.
65318         * lib/striconveha.c: Likewise.
65319         * lib/strncasecmp.c: Likewise.
65320         * lib/strndup.c: Likewise.
65321         * lib/strnlen.c: Likewise.
65322         * lib/strsep.c: Likewise.
65323         * lib/strstr.c: Likewise.
65324         * lib/strtok_r.c: Likewise.
65325         * lib/userspec.c: Likewise.
65326         * lib/w32spawn.h: Likewise.
65327         * lib/xstrndup.c: Likewise.
65328         * lib/mountlist.c (strstr): Remove decl.
65329         * m4/string_h.m4: New file.
65330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65331         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65334         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65335         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65336         Set REPLACE_STRCASECMP if necessary.
65337         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65338         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65339         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65340         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65341         HAVE_DECL_STRDUP if necessary.
65342         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65343         since gl_FUNC_STRNDUP does that now.
65344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65345         Check for decl here...
65346         (gl_PREREQ_STRNLEN): ... not here.
65347         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65348         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65349         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65351         necessary.
65352         * modules/string: New file.
65353         * modules/memmem (Files): Remove special-purpose include file.
65354         (Depends-on): Add string.
65355         (Include): Include <string.h>, not the removed file.
65356         * modules/mempcpy: Likewise.
65357         * modules/memrchr: Likewise.
65358         * modules/stpcpy: Likewise.
65359         * modules/stpncpy: Likewise.
65360         * modules/strcase: Likewise.
65361         * modules/strchrnul: Likewise.
65362         * modules/strdup: Likewise.
65363         * modules/strndup: Likewise.
65364         * modules/strnlen: Likewise.
65365         * modules/strpbrk: Likewise.
65366         * modules/strsep: Likewise.
65367         * modules/strstr: Likewise.
65368         * modules/strtok_r: Likewise.
65369         * tests/test-dirname.c: Don't include "strdup.h", since
65370         <string.h> now suffices.
65371         * tests/test-memmem.c: Don't include "memmem.h", since
65372         <string.h> now suffices.
65373
65374 2007-01-25  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65377         *resultp is 0.
65378
65379         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65380         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65381         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65382         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65383
65384         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65385         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65386         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65387         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65388         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65389         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65390
65391 2007-01-24  Bruno Haible  <bruno@clisp.org>
65392
65393         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65395         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65396         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65397         gl_FUNC_FTS_CORE.
65398         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65399         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65400         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65401         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65402         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65403         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65404         gl_FUNC_FCHOWNAT.
65405         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65406         gl_FUNC_STRFTIME.
65407         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65408         Reported by Ralf Wildenhues.
65409
65410 2007-01-24  Bruno Haible  <bruno@clisp.org>
65411
65412         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65413         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65414         gl_GETADDRINFO.
65415         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65416         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65417         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65418
65419 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65420
65421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65422         Don't use 'exit'; just return from 'main'.
65423         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65424
65425         * lib/fnmatch_.h: Readjust white space and comments to match
65426         glibc, to avoid spurious diffs.
65427
65428 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65429
65430         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65431         2004-12-01 change by Jakub Jelinek, since this code won't compile
65432         if !LIBC.  Problem reported by Bob Proulx.
65433
65434 2007-01-23  Bruno Haible  <bruno@clisp.org>
65435
65436         * lib/striconveh.c: Include c-strcaseeq.h.
65437         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65438         * modules/striconveh (Depends-on): Add c-strcaseeq.
65439
65440 2007-01-23  Bruno Haible  <bruno@clisp.org>
65441
65442         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65443
65444         * modules/c-strcaseeq: New file.
65445         * lib/c-strcaseeq.h: New file.
65446
65447         * modules/streq: New file.
65448         * lib/streq.h: New file.
65449
65450 2007-01-23  Bruno Haible  <bruno@clisp.org>
65451
65452         * modules/striconveha-tests: New file.
65453         * tests/test-striconveha.c: New file.
65454
65455         * lib/striconveha.h: Include <stdbool.h>.
65456         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65457         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65458         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65459         (mem_iconveha): New function.
65460         (str_iconveha_notranslit): Renamed from str_iconveha.
65461         (str_iconveha): New function.
65462         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65463         c-strcase.
65464
65465 2007-01-23  Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65468         encodings without forgiving before trying any encoding with handler.
65469         (str_iconveha): Try all encodings without forgiving before trying any
65470         encoding with handler.
65471
65472 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         Import the following changes from libc.
65475
65476         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65477
65478         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65479
65480         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65481
65482         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65483         normal_bracket label.
65484
65485         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65486
65487         [BZ #361]
65488         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65489         to normal_bracket after fetching the next character.
65490
65491 2007-01-22  Bruno Haible  <bruno@clisp.org>
65492
65493         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65494         argument.
65495         * lib/striconveh.c (iconv_carefully_1): New function.
65496         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65497         argument.
65498         (str_cd_iconveh): Update.
65499         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65500         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65501         * tests/test-striconveh.c (MAGIC): New macro.
65502         (new_offsets): New function.
65503         (main): Test call with and without offsets.
65504
65505 2007-01-22  Bruno Haible  <bruno@clisp.org>
65506
65507         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65508         * modules/sys_select (Makefile.am): Likewise.
65509         * modules/sys_socket (Makefile.am): Likewise.
65510         * modules/sys_time (Makefile.am): Likewise.
65511
65512 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * modules/gettimeofday (License): Change from GPL to LGPL, since
65515         gettimeofday is a library function.
65516
65517 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65518
65519         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65520
65521 2007-01-21  Bruno Haible  <bruno@clisp.org>
65522
65523         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65524
65525 2007-01-21  Bruno Haible  <bruno@clisp.org>
65526
65527         * modules/striconveha: New file.
65528         * lib/striconveha.h: New file.
65529         * lib/striconveha.c: New file.
65530         * MODULES.html.sh (Internationalization functions): Add striconveha.
65531         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65532         string.
65533         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65534
65535 2007-01-21  Bruno Haible  <bruno@clisp.org>
65536
65537         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65538         * lib/striconveh.c (str_iconveh): Likewise.
65539
65540 2007-01-21  Bruno Haible  <bruno@clisp.org>
65541
65542         * lib/striconveh.h (mem_iconveh): New declaration.
65543         * lib/striconveh.c (mem_iconveh): New function.
65544         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65545
65546 2007-01-21  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65549
65550         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65551         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65552         original result buffer.
65553         (str_cd_iconveh): Update.
65554         * tests/test-striconveh.c (main): Update.
65555
65556         * lib/striconv.h (mem_cd_iconv): Change specification.
65557         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65558         result buffer.
65559         (str_cd_iconv): Update.
65560         * tests/test-striconv.c (main): Update.
65561
65562 2007-01-21  Bruno Haible  <bruno@clisp.org>
65563
65564         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65565
65566 2007-01-20  Jim Meyering  <jim@meyering.net>
65567
65568         * lib/userspec.c (parse_with_separator): If a user or group string
65569         starts with "+", skip the corresponding name-to-ID look-up, since
65570         such a look-up must fail: user and group names may not include "+".
65571
65572 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65575         since we now assume the sys_time module.
65576         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65577         check for sys/time.h; no longer needed.
65578         * modules/poll (Depends-on): Depend on sys_time.
65579
65580 2007-01-18  Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65583         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65584
65585         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65586         gettimeofday.
65587
65588         * tests/test-gettimeofday.c: Include <time.h>.
65589         (dummy): Remove variable.
65590
65591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65592         gl_HEADER_SYS_TIME_H.
65593         (gl_HEADER_SYS_TIME_H): New macro.
65594
65595         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65596         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65598         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65599         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65600         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65601         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65602         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65603         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65604         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65605         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65606
65607         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65608         last change; it caused a compilation error when cross-compiling to
65609         Cygwin.
65610
65611 2007-01-18  Jim Meyering  <jim@meyering.net>
65612
65613         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65614         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65615         than the race-prone "test -d sys || mkdir sys".
65616         (configure.ac): Use AC_PROG_MKDIR_P.
65617         * modules/sys_select: Likewise.
65618         * modules/sys_socket: Likewise.
65619         * modules/sys_time: Likewise.
65620
65621 2007-01-18  Eric Blake  <ebb9@byu.net>
65622
65623         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65624         replace gettimeofday.
65625         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65626         name, to avoid infinite recursion.
65627
65628 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65631         module sys_time.
65632         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65633         assume timespec.h defines struct timeval.
65634         * lib/settime.c: Likewise.
65635         * lib/utimens.c: Likewise.
65636         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65637         since we now assume the gettimeofday module.
65638         * lib/tempname.c (__gen_tempname): Likewise.
65639         * lib/gettimeofday.h: Remove.
65640         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65641         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65642         Include <time.h>, for 'time()'.
65643         (localtime_buffer_addr): Also use this workaround if
65644         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65645         to simplify the uses.  All uses changed.
65646         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65647         that #undef is inside {}, and 'const' follows type name consistently.
65648         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65649         (gettimeofday): Do not use the maximum possible value for
65650         tv->tv_usec, since that might break usages other than ls.c.
65651         Instead, we'll leave ls.c alone.  This undoes today's patch
65652         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65653         we've never observed the problem but might as well keep the
65654         canary.
65655         * lib/nanosleep.c: Include timespec.h first, for interface check.
65656         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65657         now assume the sys_time module.
65658         * lib/tempname.c: Likewise.
65659         * lib/timespec.h: Likewise.
65660         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65661         needed.
65662         * lib/strftime.c: Likewise.
65663         * lib/timespec.h: Likewise.
65664         * lib/posixtm.c: Include posixtm.h first, for interface check.
65665         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65666         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65667         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65668         * lib/sys_time_.h: New file.
65669         * lib/timespec.h (struct timespec): Use long int, not long.
65670         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65671         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65672         Remove obsolescent call to AC_HEADER_TIME.
65673         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65675         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65676         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65677         Likewise.
65678         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65679         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65681         into the sys_time module.  Check for gettimeofday just once.
65682         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65683         for gettimeofday signature to just check the signature.  Merely
65684         compile it, since linking doesn't test signature.  Improve test for
65685         whether gettimeofday.o is actually needed.
65686         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65687         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65688         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65689         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65690         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65691         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65692         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65693         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65694         than worrying about sys/time.h.
65695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65696         Don't bother worrying about TIME_WITH_SYS_TIME.
65697         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65698         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65699         * m4/sys_time_h.m4: New file.
65700         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65701         Don't include sys/time.h.  Return from main rather than exiting.
65702         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65703         all uses changed.
65704         * modules/gethrxtime (Depends-on): Add sys_time.
65705         * modules/gettime (Depends-on): Likewise.
65706         * modules/gettimeofday (Depends-on): Likewise.
65707         * modules/nanosleep (Depends-on): Likewise.
65708         * modules/settime (Depends-on): Likewise.
65709         * modules/tempname (Depends-on): Likewise.
65710         * modules/utimens (Depends-on): Likewise.
65711         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65712         (Include): Change back to <sys/time.h>.
65713         (Maintainer): Add self.
65714         * modules/sys_time: New file.
65715         * modules/tempname (Depends-on): Add gettimeofday.
65716         * tests/test-gettimeofday.c: Include <sys/time.h>
65717         rather than gettimeofday.h.
65718
65719 2007-01-17  Bruno Haible  <bruno@clisp.org>
65720
65721         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65722         the license default to GPL.
65723         (func_create_testdir): Don't complain if a module is LGPL and its
65724         tests module depends on GPLed modules.
65725
65726 2007-01-17  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/gettimeofday.c (gettimeofday): Add code for the case
65729         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65730         maximum possible value for tv->tv_usec, rather than the minimum one.
65731
65732 2005-10-08  Martin Lambers  <marlam@marlam.de>
65733 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65734 2007-01-16  Bruno Haible  <bruno@clisp.org>
65735
65736         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65737         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65738         gl_FUNC_GETTIMEOFDAY.
65739         (Include): Add gettimeofday.h.
65740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65741         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65742         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65743         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65744         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65745         * lib/gettimeofday.h: New file.
65746         * lib/gettimeofday.c: Include <sys/timeb.h>.
65747         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65748         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65749         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65750         fall back on time().
65751
65752         * tests/test-gettimeofday.c: New file.
65753         * modules/gettimeofday-tests: New file.
65754
65755 2007-01-16  Eric Blake  <ebb9@byu.net>
65756
65757         * modules/fnmatch (Depends-on): Depend on wchar.
65758         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65759         * m4/fnmatch.m4: Likewise.
65760         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65761         * m4/mbchar.m4: Likewise.
65762         * modules/mbswidth (Depends-on): Depend on wchar.
65763         * lib/mbswidth.c: Assume <wchar.h>.
65764         * m4/mbswidth.m4: Likewise.
65765         * modules/quotearg (Depends-on): Depend on wchar.
65766         * lib/quotearg.c: Assume <wchar.h>.
65767         * m4/quotearg.m4: Likewise.
65768         * modules/regex (Depends-on): Depend on wchar.
65769         * lib/regex_internal.h: Assume <wchar.h>.
65770         * m4/regex.m4: Likewise.
65771         * modules/stdint (Depends-on): Depend on wchar.
65772         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65773         * m4/stdint.m4: Likewise.
65774         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65775         * modules/strftime (Depends-on): Depend on wchar.
65776         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65777         * modules/strtol (Depends-on): Depend on wchar.
65778         * lib/strtol.c: Assume <wchar.h>.
65779         * modules/wcwidth (Depends-on): Depend on wchar.
65780         * lib/wcwidth.h: Assume <wchar.h>.
65781         * m4/wcwidth.m4: Likewise.
65782
65783 2007-01-16  Bruno Haible  <bruno@clisp.org>
65784
65785         * modules/csharpexec-script: New, created from...
65786         * modules/csharpexec: ... this.
65787
65788 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65789
65790         * modules/javaexec-script: New, created from...
65791         * modules/javaexec: ... this.
65792
65793 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65794
65795         * modules/poll (Dependencies): Add sys_select.
65796
65797 2007-01-15  Jim Meyering  <jim@meyering.net>
65798
65799         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65800         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65801         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65802         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65803
65804 2007-01-15  Bruno Haible  <bruno@clisp.org>
65805
65806         * modules/striconveh: New file.
65807         * lib/striconveh.h: New file.
65808         * lib/striconveh.c: New file.
65809         * MODULES.html.sh (Internationalization functions): Add striconveh.
65810
65811         * modules/striconveh-tests: New file.
65812         * tests/test-striconveh.c: New file.
65813
65814 2007-01-15  Bruno Haible  <bruno@clisp.org>
65815
65816         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65817         not from GNU libiconv or GNU libc.
65818
65819 2007-01-15  Bruno Haible  <bruno@clisp.org>
65820
65821         * doc/gnulib-intro.texi (Copyright): Explain the different license
65822         terms for module descriptions, autoconf macros, tests, documentation.
65823
65824 2007-01-14  Bruno Haible  <bruno@clisp.org>
65825
65826         * modules/striconv-tests: New file.
65827         * tests/test-striconv.c: New file.
65828
65829 2007-01-14  Bruno Haible  <bruno@clisp.org>
65830
65831         * modules/iconv-tests: New file.
65832         * tests/test-iconv.c: New file.
65833
65834 2007-01-14  Bruno Haible  <bruno@clisp.org>
65835
65836         * gnulib-tool (func_get_license): For test modules, use the license of
65837         the main module.
65838
65839 2007-01-14  Bruno Haible  <bruno@clisp.org>
65840
65841         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65842         if iconv is found to exist.
65843
65844 2007-01-14  Bruno Haible  <bruno@clisp.org>
65845
65846         * modules/c-ctype-tests: New file.
65847         * tests/test-c-ctype.c: New file.
65848
65849 2007-01-14  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/binary-io-tests: New file.
65852         * tests/test-binary-io.sh: New file.
65853         * tests/test-binary-io.c: New file.
65854
65855 2007-01-14  Bruno Haible  <bruno@clisp.org>
65856
65857         * modules/array-oset-tests: New file.
65858         * tests/test-array_oset.c: New file.
65859
65860 2007-01-14  Bruno Haible  <bruno@clisp.org>
65861
65862         * modules/array-list-tests: New file.
65863         * tests/test-array_list.c: New file.
65864
65865 2007-01-14  Bruno Haible  <bruno@clisp.org>
65866
65867         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65868         and make.
65869         Reported by Simon Josefsson in
65870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65871
65872 2007-01-14  Bruno Haible  <bruno@clisp.org>
65873
65874         * modules/allocsa-tests: New file.
65875         * tests/test-allocsa.c: New file.
65876
65877 2007-01-14  Bruno Haible  <bruno@clisp.org>
65878
65879         * modules/fchdir (Depends-on): Add absolute-header.
65880         * modules/unistd (Depends-on): Likewise.
65881
65882 2006-12-30  Bruno Haible  <bruno@clisp.org>
65883
65884         * modules/fchdir: New file.
65885         * modules/unistd (Files): Add lib/unistd_.h.
65886         (Makefile.am): Generate unistd.h from unistd_.h.
65887         * lib/fchdir.c: New file.
65888         * lib/dirent_.h: New file.
65889         * lib/unistd_.h: New file.
65890         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65891         * m4/fchdir.m4: New file.
65892         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65893         (gl_HEADER_UNISTD): Invoke it.
65894         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65895         function.
65896         * lib/backupfile.c (opendir, closedir): Undefine.
65897         * lib/chown.c (open, close): Undefine.
65898         * lib/clean-temp.c (open, close): Undefine.
65899         * lib/copy-file.c (open, close): Undefine.
65900         * lib/execute.c (open, close): Undefine.
65901         * lib/fsusage.c (open, close): Undefine.
65902         * lib/gc-gnulib.c (open, close): Undefine.
65903         * lib/getcwd.c (opendir, closedir): Undefine.
65904         * lib/glob.c (opendir, closedir): Undefine.
65905         * lib/javacomp.c (open, close): Undefine.
65906         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65907         * lib/openat-proc.c (open, close): Undefine.
65908         * lib/pagealign_alloc.c (open, close): Undefine.
65909         * lib/pipe.c (open, close): Undefine.
65910         * lib/progreloc.c (open, close): Undefine.
65911         * lib/savedir.c (opendir, closedir): Undefine.
65912         * lib/utime.c (open, close): Undefine.
65913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65914
65915 2007-01-10  Bruno Haible  <bruno@clisp.org>
65916
65917         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65918
65919 2007-01-12  Eric Blake  <ebb9@byu.net>
65920
65921         Provide a robust <wchar.h>.  Further simplifications are now
65922         possible in other modules, but not included here.
65923         * modules/wchar: New module.
65924         * m4/wchar.m4: New file.
65925         * lib/wchar_.h: Likewise.
65926         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65927         of the new module.
65928         * MODULES.html.sh (Extended multibyte and wide character utilities):
65929         New section.
65930
65931 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65932
65933         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65934         to a reasonable default for memory allocation.
65935         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65936         file system that reports garbage st_size values for symlinks.
65937         Problem reported by Liyang Hu.
65938
65939 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65940
65941         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65942         Emacs .#* auto-save files).
65943
65944 2007-01-11  Bruno Haible  <bruno@clisp.org>
65945
65946         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65947         directory.
65948
65949 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         Use @...@ consistently in lib/wctype_.h.
65952         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65953         on it being set to 1 or 0.
65954         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65955         go back to AC_SUBSTing it.
65956         * modules/wctype (Makefile.am): Undo previous change.
65957
65958 2007-01-10  Eric Blake  <ebb9@byu.net>
65959
65960         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65961         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65962         * modules/wctype (Makefile.am): Likewise.
65963         Reported by Chris McGuire.
65964
65965 2007-01-10  Jim Meyering  <jim@meyering.net>
65966
65967         fts.c: a small readability/maintainability improvement
65968         * lib/fts.c (fts_read): Make this code slightly more readable and
65969         maintainable by hoisting the "sp->fts_cur = p" assignments to
65970         immediately follow the statements that set P.  Derived from
65971         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65972
65973 2007-01-10  Eric Blake  <ebb9@byu.net>
65974
65975         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65976         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65978         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65979         Reported by Chris McGuire.
65980
65981 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65982
65983         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65984         in sed script.
65985
65986 2007-01-09  Bruno Haible  <bruno@clisp.org>
65987
65988         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65989         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65990         variables.
65991         (func_module): Use them.
65992
65993 2007-01-09  Bruno Haible  <bruno@clisp.org>
65994
65995         * modules/unistr/base: New file.
65996         * lib/unistr.h: New file.
65997
65998         * modules/unistr/u8-to-u16: New file.
65999         * lib/unistr/u8-to-u16.c: New file.
66000
66001         * modules/unistr/u8-to-u32: New file.
66002         * lib/unistr/u8-to-u32.c: New file.
66003
66004         * modules/unistr/u16-to-u8: New file.
66005         * lib/unistr/u16-to-u8.c: New file.
66006
66007         * modules/unistr/u16-to-u32: New file.
66008         * lib/unistr/u16-to-u32.c: New file.
66009
66010         * modules/unistr/u32-to-u8: New file.
66011         * lib/unistr/u32-to-u8.c: New file.
66012
66013         * modules/unistr/u32-to-u16: New file.
66014         * lib/unistr/u32-to-u16.c: New file.
66015
66016         * modules/unistr/u8-check: New file.
66017         * modules/unistr/u16-check: New file.
66018         * modules/unistr/u32-check: New file.
66019         * lib/unistr/u8-check.c: New file.
66020         * lib/unistr/u16-check.c: New file.
66021         * lib/unistr/u32-check.c: New file.
66022
66023         * modules/unistr/u8-chr: New file.
66024         * modules/unistr/u16-chr: New file.
66025         * modules/unistr/u32-chr: New file.
66026         * lib/unistr/u8-chr.c: New file.
66027         * lib/unistr/u16-chr.c: New file.
66028         * lib/unistr/u32-chr.c: New file.
66029
66030         * modules/unistr/u8-cmp: New file.
66031         * modules/unistr/u16-cmp: New file.
66032         * modules/unistr/u32-cmp: New file.
66033         * lib/unistr/u8-cmp.c: New file.
66034         * lib/unistr/u16-cmp.c: New file.
66035         * lib/unistr/u32-cmp.c: New file.
66036
66037         * modules/unistr/u8-cpy: New file.
66038         * modules/unistr/u16-cpy: New file.
66039         * modules/unistr/u32-cpy: New file.
66040         * lib/unistr/u8-cpy.c: New file.
66041         * lib/unistr/u16-cpy.c: New file.
66042         * lib/unistr/u32-cpy.c: New file.
66043         * lib/unistr/u-cpy.h: New file.
66044
66045         * modules/unistr/u8-cpy-alloc: New file.
66046         * modules/unistr/u16-cpy-alloc: New file.
66047         * modules/unistr/u32-cpy-alloc: New file.
66048         * lib/unistr/u8-cpy-alloc.c: New file.
66049         * lib/unistr/u16-cpy-alloc.c: New file.
66050         * lib/unistr/u32-cpy-alloc.c: New file.
66051         * lib/unistr/u-cpy-alloc.h: New file.
66052
66053         * modules/unistr/u8-endswith: New file.
66054         * modules/unistr/u16-endswith: New file.
66055         * modules/unistr/u32-endswith: New file.
66056         * lib/unistr/u8-endswith.c: New file.
66057         * lib/unistr/u16-endswith.c: New file.
66058         * lib/unistr/u32-endswith.c: New file.
66059         * lib/unistr/u-endswith.h: New file.
66060
66061         * modules/unistr/u8-mblen: New file.
66062         * modules/unistr/u16-mblen: New file.
66063         * modules/unistr/u32-mblen: New file.
66064         * lib/unistr/u8-mblen.c: New file.
66065         * lib/unistr/u16-mblen.c: New file.
66066         * lib/unistr/u32-mblen.c: New file.
66067
66068         * modules/unistr/u8-mbtouc: New file.
66069         * modules/unistr/u16-mbtouc: New file.
66070         * modules/unistr/u32-mbtouc: New file.
66071         * lib/unistr/u8-mbtouc.c: New file.
66072         * lib/unistr/u16-mbtouc.c: New file.
66073         * lib/unistr/u32-mbtouc.c: New file.
66074
66075         * modules/unistr/u8-mbtouc-safe: New file.
66076         * modules/unistr/u16-mbtouc-safe: New file.
66077         * modules/unistr/u32-mbtouc-safe: New file.
66078         * lib/unistr/u8-mbtouc-safe.c: New file.
66079         * lib/unistr/u16-mbtouc-safe.c: New file.
66080         * lib/unistr/u32-mbtouc-safe.c: New file.
66081
66082         * modules/unistr/u8-move: New file.
66083         * modules/unistr/u16-move: New file.
66084         * modules/unistr/u32-move: New file.
66085         * lib/unistr/u8-move.c: New file.
66086         * lib/unistr/u16-move.c: New file.
66087         * lib/unistr/u32-move.c: New file.
66088         * lib/unistr/u-move.h: New file.
66089
66090         * modules/unistr/u8-next: New file.
66091         * modules/unistr/u16-next: New file.
66092         * modules/unistr/u32-next: New file.
66093         * lib/unistr/u8-next.c: New file.
66094         * lib/unistr/u16-next.c: New file.
66095         * lib/unistr/u32-next.c: New file.
66096
66097         * modules/unistr/u8-prev: New file.
66098         * modules/unistr/u16-prev: New file.
66099         * modules/unistr/u32-prev: New file.
66100         * lib/unistr/u8-prev.c: New file.
66101         * lib/unistr/u16-prev.c: New file.
66102         * lib/unistr/u32-prev.c: New file.
66103
66104         * modules/unistr/u8-set: New file.
66105         * modules/unistr/u16-set: New file.
66106         * modules/unistr/u32-set: New file.
66107         * lib/unistr/u8-set.c: New file.
66108         * lib/unistr/u16-set.c: New file.
66109         * lib/unistr/u32-set.c: New file.
66110         * lib/unistr/u-set.h: New file.
66111
66112         * modules/unistr/u8-startswith: New file.
66113         * modules/unistr/u16-startswith: New file.
66114         * modules/unistr/u32-startswith: New file.
66115         * lib/unistr/u8-startswith.c: New file.
66116         * lib/unistr/u16-startswith.c: New file.
66117         * lib/unistr/u32-startswith.c: New file.
66118         * lib/unistr/u-startswith.h: New file.
66119
66120         * modules/unistr/u8-stpcpy: New file.
66121         * modules/unistr/u16-stpcpy: New file.
66122         * modules/unistr/u32-stpcpy: New file.
66123         * lib/unistr/u8-stpcpy.c: New file.
66124         * lib/unistr/u16-stpcpy.c: New file.
66125         * lib/unistr/u32-stpcpy.c: New file.
66126         * lib/unistr/u-stpcpy.h: New file.
66127
66128         * modules/unistr/u8-stpncpy: New file.
66129         * modules/unistr/u16-stpncpy: New file.
66130         * modules/unistr/u32-stpncpy: New file.
66131         * lib/unistr/u8-stpncpy.c: New file.
66132         * lib/unistr/u16-stpncpy.c: New file.
66133         * lib/unistr/u32-stpncpy.c: New file.
66134         * lib/unistr/u-stpncpy.h: New file.
66135
66136         * modules/unistr/u8-strcat: New file.
66137         * modules/unistr/u16-strcat: New file.
66138         * modules/unistr/u32-strcat: New file.
66139         * lib/unistr/u8-strcat.c: New file.
66140         * lib/unistr/u16-strcat.c: New file.
66141         * lib/unistr/u32-strcat.c: New file.
66142         * lib/unistr/u-strcat.h: New file.
66143
66144         * modules/unistr/u8-strchr: New file.
66145         * modules/unistr/u16-strchr: New file.
66146         * modules/unistr/u32-strchr: New file.
66147         * lib/unistr/u8-strchr.c: New file.
66148         * lib/unistr/u16-strchr.c: New file.
66149         * lib/unistr/u32-strchr.c: New file.
66150
66151         * modules/unistr/u8-strcmp: New file.
66152         * modules/unistr/u16-strcmp: New file.
66153         * modules/unistr/u32-strcmp: New file.
66154         * lib/unistr/u8-strcmp.c: New file.
66155         * lib/unistr/u16-strcmp.c: New file.
66156         * lib/unistr/u32-strcmp.c: New file.
66157
66158         * modules/unistr/u8-strcpy: New file.
66159         * modules/unistr/u16-strcpy: New file.
66160         * modules/unistr/u32-strcpy: New file.
66161         * lib/unistr/u8-strcpy.c: New file.
66162         * lib/unistr/u16-strcpy.c: New file.
66163         * lib/unistr/u32-strcpy.c: New file.
66164         * lib/unistr/u-strcpy.h: New file.
66165
66166         * modules/unistr/u8-strcspn: New file.
66167         * modules/unistr/u16-strcspn: New file.
66168         * modules/unistr/u32-strcspn: New file.
66169         * lib/unistr/u8-strcspn.c: New file.
66170         * lib/unistr/u16-strcspn.c: New file.
66171         * lib/unistr/u32-strcspn.c: New file.
66172         * lib/unistr/u-strcspn.h: New file.
66173
66174         * modules/unistr/u8-strdup: New file.
66175         * modules/unistr/u16-strdup: New file.
66176         * modules/unistr/u32-strdup: New file.
66177         * lib/unistr/u8-strdup.c: New file.
66178         * lib/unistr/u16-strdup.c: New file.
66179         * lib/unistr/u32-strdup.c: New file.
66180         * lib/unistr/u-strdup.h: New file.
66181
66182         * modules/unistr/u8-strlen: New file.
66183         * modules/unistr/u16-strlen: New file.
66184         * modules/unistr/u32-strlen: New file.
66185         * lib/unistr/u8-strlen.c: New file.
66186         * lib/unistr/u16-strlen.c: New file.
66187         * lib/unistr/u32-strlen.c: New file.
66188         * lib/unistr/u-strlen.h: New file.
66189
66190         * modules/unistr/u8-strmblen: New file.
66191         * modules/unistr/u16-strmblen: New file.
66192         * modules/unistr/u32-strmblen: New file.
66193         * lib/unistr/u8-strmblen.c: New file.
66194         * lib/unistr/u16-strmblen.c: New file.
66195         * lib/unistr/u32-strmblen.c: New file.
66196
66197         * modules/unistr/u8-strmbtouc: New file.
66198         * modules/unistr/u16-strmbtouc: New file.
66199         * modules/unistr/u32-strmbtouc: New file.
66200         * lib/unistr/u8-strmbtouc.c: New file.
66201         * lib/unistr/u16-strmbtouc.c: New file.
66202         * lib/unistr/u32-strmbtouc.c: New file.
66203
66204         * modules/unistr/u8-strncat: New file.
66205         * modules/unistr/u16-strncat: New file.
66206         * modules/unistr/u32-strncat: New file.
66207         * lib/unistr/u8-strncat.c: New file.
66208         * lib/unistr/u16-strncat.c: New file.
66209         * lib/unistr/u32-strncat.c: New file.
66210         * lib/unistr/u-strncat.h: New file.
66211
66212         * modules/unistr/u8-strncmp: New file.
66213         * modules/unistr/u16-strncmp: New file.
66214         * modules/unistr/u32-strncmp: New file.
66215         * lib/unistr/u8-strncmp.c: New file.
66216         * lib/unistr/u16-strncmp.c: New file.
66217         * lib/unistr/u32-strncmp.c: New file.
66218
66219         * modules/unistr/u8-strncpy: New file.
66220         * modules/unistr/u16-strncpy: New file.
66221         * modules/unistr/u32-strncpy: New file.
66222         * lib/unistr/u8-strncpy.c: New file.
66223         * lib/unistr/u16-strncpy.c: New file.
66224         * lib/unistr/u32-strncpy.c: New file.
66225         * lib/unistr/u-strncpy.h: New file.
66226
66227         * modules/unistr/u8-strnlen: New file.
66228         * modules/unistr/u16-strnlen: New file.
66229         * modules/unistr/u32-strnlen: New file.
66230         * lib/unistr/u8-strnlen.c: New file.
66231         * lib/unistr/u16-strnlen.c: New file.
66232         * lib/unistr/u32-strnlen.c: New file.
66233         * lib/unistr/u-strnlen.h: New file.
66234
66235         * modules/unistr/u8-strpbrk: New file.
66236         * modules/unistr/u16-strpbrk: New file.
66237         * modules/unistr/u32-strpbrk: New file.
66238         * lib/unistr/u8-strpbrk.c: New file.
66239         * lib/unistr/u16-strpbrk.c: New file.
66240         * lib/unistr/u32-strpbrk.c: New file.
66241         * lib/unistr/u-strpbrk.h: New file.
66242
66243         * modules/unistr/u8-strrchr: New file.
66244         * modules/unistr/u16-strrchr: New file.
66245         * modules/unistr/u32-strrchr: New file.
66246         * lib/unistr/u8-strrchr.c: New file.
66247         * lib/unistr/u16-strrchr.c: New file.
66248         * lib/unistr/u32-strrchr.c: New file.
66249
66250         * modules/unistr/u8-strspn: New file.
66251         * modules/unistr/u16-strspn: New file.
66252         * modules/unistr/u32-strspn: New file.
66253         * lib/unistr/u8-strspn.c: New file.
66254         * lib/unistr/u16-strspn.c: New file.
66255         * lib/unistr/u32-strspn.c: New file.
66256         * lib/unistr/u-strspn.h: New file.
66257
66258         * modules/unistr/u8-strstr: New file.
66259         * modules/unistr/u16-strstr: New file.
66260         * modules/unistr/u32-strstr: New file.
66261         * lib/unistr/u8-strstr.c: New file.
66262         * lib/unistr/u16-strstr.c: New file.
66263         * lib/unistr/u32-strstr.c: New file.
66264         * lib/unistr/u-strstr.h: New file.
66265
66266         * modules/unistr/u8-strtok: New file.
66267         * modules/unistr/u16-strtok: New file.
66268         * modules/unistr/u32-strtok: New file.
66269         * lib/unistr/u8-strtok.c: New file.
66270         * lib/unistr/u16-strtok.c: New file.
66271         * lib/unistr/u32-strtok.c: New file.
66272         * lib/unistr/u-strtok.h: New file.
66273
66274         * modules/unistr/u8-uctomb: New file.
66275         * modules/unistr/u16-uctomb: New file.
66276         * modules/unistr/u32-uctomb: New file.
66277         * lib/unistr/u8-uctomb.c: New file.
66278         * lib/unistr/u16-uctomb.c: New file.
66279         * lib/unistr/u32-uctomb.c: New file.
66280
66281         * MODULES.html.sh (Unicode string functions): Add the new modules.
66282
66283 2007-01-08  Bruno Haible  <bruno@clisp.org>
66284
66285         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66286         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66287         subdirectories.
66288
66289 2007-01-08  Karl Berry  <karl@gnu.org>
66290
66291         * doc/error.texi: mention that main() fns must set program_name
66292         when progname is used.
66293
66294 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66297         WCTYPE_H is empty, for the benefit of builds from non-distclean
66298         directories.  Problem reported by Eric Blake in
66299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66300
66301 2007-01-08  Bruno Haible  <bruno@clisp.org>
66302
66303         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66304         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66305         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66306         PROVIDE_CANONICALIZE_FILENAME_MODE.
66307         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66308
66309 2007-01-08  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66312         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66313         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66314         * lib/fts.c: Likewise.
66315         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66316
66317 2006-12-25  Bruno Haible  <bruno@clisp.org>
66318
66319         * modules/utf8-ucs4-safe: New file.
66320         * lib/utf8-ucs4-safe.h: New file.
66321         * lib/unistr/utf8-ucs4-safe.c: New file.
66322
66323         * modules/utf16-ucs4-safe: New file.
66324         * lib/utf16-ucs4-safe.h: New file.
66325         * lib/unistr/utf16-ucs4-safe.c: New file.
66326
66327         * MODULES.html.sh (Unicode string functions): Add the new modules.
66328
66329 2007-01-08  Bruno Haible  <bruno@clisp.org>
66330
66331         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66332         (Depends-on): Add unitypes.
66333         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66334         (u8_mbtouc_aux): Move out to separate file.
66335         (u8_mbtouc): Use ucs4_t, uint8_t types.
66336         * lib/unistr/utf8-ucs4.c: New file.
66337
66338         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66339         (Depends-on): Add unitypes.
66340         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66341         (u16_mbtouc_aux): Move out to separate file.
66342         (u16_mbtouc): Use ucs4_t, uint16_t types.
66343         * lib/unistr/utf16-ucs4.c: New file.
66344
66345         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66346         (Depends-on): Add unitypes.
66347         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66348         (u8_uctomb_aux): Move out to separate file.
66349         (u8_uctomb): Use ucs4_t, uint8_t types.
66350         * lib/unistr/ucs4-utf8.c: New file.
66351
66352         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66353         (Depends-on): Add unitypes.
66354         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66355         (u16_uctomb_aux): Move out to separate file.
66356         (u16_uctomb): Use ucs4_t, uint16_t types.
66357         * lib/unistr/ucs4-utf16.c: New file.
66358
66359 2006-12-25  Bruno Haible  <bruno@clisp.org>
66360
66361         * modules/unitypes: New file.
66362         * lib/unitypes.h: New file.
66363         * MODULES.html.sh (func_all_modules): New section "Unicode string
66364         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66365         this section. Add unitypes.
66366
66367 2007-01-08  Bruno Haible  <bruno@clisp.org>
66368
66369         Avoid variable names that conflict with those from libtool.
66370         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66371         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66372         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66373         library_names_spec to acl_library_names_spec, hardcode_* to
66374         acl_hardcode_*.
66375         Reported by Ralf Wildenhues.
66376
66377 2007-01-08  Bruno Haible  <bruno@clisp.org>
66378
66379         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66380         definition.
66381         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66382         definition.
66383         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66384         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66385         definition.
66386         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66387         definition.
66388         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66389         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66390         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66391         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66392         definition.
66393         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66394         definition.
66395         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66396         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66397         GC_USE_<algorithm>.
66398         * lib/gc-libgcrypt.c: Likewise.
66399         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66400         * modules/gc-arctwo (configure.ac): Likewise.
66401         * modules/gc-des (configure.ac): Likewise.
66402         * modules/gc-hmac-md5 (configure.ac): Likewise.
66403         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66404         * modules/gc-md2 (configure.ac): Likewise.
66405         * modules/gc-md4 (configure.ac): Likewise.
66406         * modules/gc-md5 (configure.ac): Likewise.
66407         * modules/gc-random (configure.ac): Likewise.
66408         * modules/gc-rijndael (configure.ac): Likewise.
66409         * modules/gc-sha1 (configure.ac): Likewise.
66410
66411 2007-01-08  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66414         macro definition.
66415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66416         definition.
66417         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66418         definition.
66419         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66420         * modules/fcntl-safer (configure.ac): Likewise.
66421         * modules/fopen-safer (configure.ac): Likewise.
66422         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66423         GNULIB_FWRITEERROR macro definition.
66424
66425 2007-01-08  Bruno Haible  <bruno@clisp.org>
66426
66427         * m4/gnulib-common.m4: New file.
66428         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66429         (func_get_filelist): Add m4/gnulib-common.m4.
66430
66431 2007-01-08  Bruno Haible  <bruno@clisp.org>
66432
66433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66434         command.
66435
66436 2007-01-08  Jim Meyering  <jim@meyering.net>
66437
66438         Use a more robust test for a "can't happen" condition.
66439         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66440         narrowed the st_size value.  Presuming the "can't happen" condition
66441         is true, that narrowing could conceivably convert an invalid st_size
66442         value into a valid one.  Instead, use a change based on Matthew
66443         Woehlke's original patch.
66444
66445         Slight readability improvement: use an assert-like macro
66446         in place of literal "abort ()" uses.
66447         * lib/fts.c (fts_assert): Define.
66448         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66449         Use this macro instead of a bare 'abort'.
66450
66451 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66454         simply work around them.
66455         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66456         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66457         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66458         declaring.
66459         Don't bother to define as macros, since the standard doesn't require it.
66460         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66461         longer worry about IRIX 5.3.
66462         (HAVE_WCTYPE_CTMP_BUG): Remove.
66463
66464 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66467         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66468         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66469         Problems reported by Georg Schwarz for IRIX 5.3.
66470
66471         * gnulib-tool (autoconf_minversion): Take the maximum version number
66472         found, not the minimum.  Problem reported by James Youngman.
66473
66474 2007-01-03  Karl Berry  <karl@gnu.org>
66475
66476         * doc/error.texi: new file, explaining interaction with progname.
66477         * doc/gnulib.texi: include it.  Update copyright.
66478
66479 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66480
66481         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66482         AC_CANONICAL_HOST, to improve autobuild outputs.
66483
66484 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66485             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66486
66487         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66488         sockets, server sockets, and other file descriptors.  Count errors
66489         to compute the return value.  Reorder the code a bit to be easier
66490         to follow.  Don't set event bits that were not requested (except
66491         POLLERR and POLLHUP).
66492
66493 2007-01-01  Bruno Haible  <bruno@clisp.org>
66494
66495         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66496
66497 2007-01-03  Jim Meyering  <jim@meyering.net>
66498
66499         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66500
66501 2007-01-02  Bruno Haible  <bruno@clisp.org>
66502
66503         * modules/settime (Include): Require timespec.h.
66504         * modules/nanosleep (Include): Likewise.
66505
66506 2007-01-01  Bruno Haible  <bruno@clisp.org>
66507
66508         * gnulib-tool (func_emit_copyright_notice): Bump year.
66509         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66510
66511 2007-01-01  Bruno Haible  <bruno@clisp.org>
66512
66513         Improve support for OpenBSD.
66514         * build-aux/config.rpath (libname_spec): Export.
66515         (library_names_spec): New variable. Export.
66516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66517         library_names_spec from the config.rpath output. Locate shared library
66518         through the name pattern in library_names_spec.
66519
66520 2007-01-01  Eric Blake  <ebb9@byu.net>
66521
66522         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66523
66524 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66527         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66528         assume the C locale, and avoid an "eval" that could cause trouble.
66529         Problem with SORT reported by Bob Proulx.
66530
66531         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66532         Define.  Trivial patch from Henning Nielsen Lund, originally
66533         sent to bug-grep@gnu.org today.
66534
66535 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66538         struct stat.  Problem reported by Henning Nielsen Lund.
66539         * lib/acl.c: Include acl.h first, to check interface.  Don't
66540         bother to include sys/types.h and sys/stat.h again.
66541
66542 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66543
66544         Import the following change from libc; problem reported by
66545         Sven Verdoolaege.
66546
66547         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66548
66549         [BZ #1373]
66550         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66551
66552 2006-12-28  Jim Meyering  <jim@meyering.net>
66553
66554         * build-aux/announce-gen: Do not assume that the package
66555         builds any of tar.gz, tar.bz2, and .xdelta files.
66556         Suggestion from Simon Josefsson.
66557
66558 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66559
66560         * modules/announce-gen: New file.
66561
66562 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66563
66564         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66565         handles its gotchas now.
66566         * lib/mbswidth.c: Likewise.
66567         * lib/wcwidth.h: Likewise.
66568         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66569         and iswcntrl; the wctype module does this stuff now.
66570         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66572         * modules/mbchar (Depends-on): Add wctype.
66573         * modules/mbswidth (Depends-on): Likewise.
66574         * modules/wcwidth (Depends-on): Likewise.
66575
66576 2006-12-27  Eric Blake  <ebb9@byu.net>
66577
66578         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66579         module uses more than what <wctype.h> is required to provide.
66580
66581 2006-12-26  Eric Blake  <ebb9@byu.net>
66582
66583         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66584
66585 2006-12-26  Eric Blake  <ebb9@byu.net>
66586
66587         * modules/absolute-header: New module.
66588         * modules/fcntl (Depends-on): Depend on it.
66589         * modules/inttypes (Depends-on): Likewise.
66590         * modules/stdint (Depends-on): Likewise.
66591         * modules/sys_stat (Depends-on): Likewise.
66592         * modules/wctype (Depends-on): Likewise.
66593         * MODULES.html.sh (Support for building libraries and
66594         executables): Document it.
66595
66596 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         * gnulib-tool (SED): Remove, undoing previous change.
66599         The problem was that it broke coreutils on Solaris, because
66600         "sed --posix" leaked into a makefile.
66601         (sed): New alias, if 'alias' and GNU sed.
66602
66603 2006-12-24  Jim Meyering  <jim@meyering.net>
66604
66605         Work around an fchownat bug in glibc-2.4:
66606         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66607         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66608         in spite of the -P option.
66609         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66610         New macros.
66611         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66612         * modules/openat (Files): Add lib/fchownat.c.
66613         * lib/openat.c (fchownat): Don't define here.  Move to...
66614         * lib/fchownat.c: ...this new file.
66615
66616 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         Fix bug reported by Bruno Haible in
66619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66620         where quotearg.c didn't compile on Mac OS X 10.2 because it
66621         lacks <wchar.h> and wint_t.
66622         * lib/wctype_.h (__wctype_wint_t): New type.
66623         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66624         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66625         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66626         Arg is now of type __wctype_wint_t, not wint_t.
66627         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66628         substitute HAVE_WINT_T.
66629         * modules/wctype (Files): Add m4/wint_t.m4.
66630         (wctype.h): Substitute HAVE_WINT_T.
66631
66632 2006-12-23  Bruno Haible  <bruno@clisp.org>
66633
66634         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66635
66636 2006-12-23  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66639         S_ISLNK.
66640         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66641         mingw.
66642
66643 2006-12-22  Bruno Haible  <bruno@clisp.org>
66644
66645         * lib/copy-file.c: Include acl.h.
66646         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66647         Close the file descriptors only after being done with copy_acl.
66648         * modules/copy-file (Depends-on): Add acl.
66649
66650 2006-12-22  Bruno Haible  <bruno@clisp.org>
66651
66652         * gnulib-tool (SED): New variable.
66653         Use $SED instead of sed everywhere.
66654
66655 2006-12-22  Bruno Haible  <bruno@clisp.org>
66656
66657         * modules/no-c++: New file.
66658         * m4/no-c++.m4: New file.
66659         * MODULES.html.sh (Support for building libraries and executables):
66660         Add no-c++.
66661
66662 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66665         Include <limits.h>, and use its INT_MAX to rewrite the
66666         j loop so that it does not overflow 'int'.  Problem reported by
66667         Ralf Wildenhues in
66668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66669         Play it safe by shifting left by 1 rather than multiplying by 2,
66670         as GCC is less likely to optimize this away when the value
66671         is signed (when it assumes overflow leads to undefined behavior).
66672         Also, don't assume time_t uses two's complement.
66673
66674 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * MODULES.html.sh: New module wctype.
66677         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66678         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66679         <wctype.h>, since the new wctype module should fix this.
66680         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66681         the wctype module should arrange for it.
66682         * lib/regex_internal.h: Likewise.
66683         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66684         since the wctype module should handle this now.
66685         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66686         * modules/fnmatch (Depends-on): Add wctype.
66687         * modules/quotearg (Depends-on): Likewise.
66688         * modules/regex (Depends-on): Likewise.
66689
66690 2006-12-19  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66693         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66694
66695 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66696
66697         * modules/savewd (Depends-on): Fix dependency on fcntl.
66698
66699 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66700
66701         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66702         conforms to C99, rather than relying on the user's environment
66703         setting of STDINT_H.
66704
66705 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66706         and Eric Blake  <ebb9@byu.net>
66707
66708         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66709         This is more consistent with the other defines here.
66710         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66711         Port to z/OS.  Problem reported by Paul Gilmartin.
66712         Change local vars to use gl_ prefix rather than ac_.
66713         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66714         with other defines.
66715         * modules/double-slash-root: New module.
66716         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66717         (Depends-on): Add double-slash-root.
66718         * MODULES.html.sh (File system functions): Mention new module.
66719
66720 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66723         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66724         This is for the benefit of gzip, which doesn't do i18n.
66725
66726 2006-12-12  Jim Meyering  <jim@meyering.net>
66727
66728         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66729         Reported by Andreas Schwab <schwab@suse.de>.
66730
66731 2006-12-12  Bruno Haible  <bruno@clisp.org>
66732
66733         Merge these changes.
66734         2006-09-05  Bruno Haible  <bruno@clisp.org>
66735         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66736         iconv_alloc succeeded.
66737         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66738         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66739         test for " && dest " at the end - dest is always != NULL there. Call
66740         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66741         with 2xNULL arguments, also to flush the state storage. Handle the
66742         IRIX iconv behaviour. Realloc the final result, to throw away unused
66743         memory.
66744
66745 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66748         and fchmodat unconditionally, since glibc 2.4 has them.
66749         Problem reported by Arkadiusz Miskiewicz.
66750
66751 2006-12-10  Bruno Haible  <bruno@clisp.org>
66752
66753         * gnulib-tool (func_import): Show the include files only for those
66754         modules that are copied and specified.
66755         Reported by Karl Berry.
66756
66757 2006-12-08  Jim Meyering  <jim@meyering.net>
66758
66759         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66760         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66761
66762         * build-aux/announce-gen: Add two new options, both optional:
66763         --bootstrap-tools=TOOL_LIST
66764               a comma-separated list of tools, e.g.,
66765               autoconf,automake,bison,gnulib
66766         --gnulib-snapshot-date=DATE
66767               if gnulib is in the bootstrap tool list,
66768               then report this as the snapshot date.
66769               If not specified, use the current date/time.
66770               If you specify a date here, be sure it's UTC.
66771
66772 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66773
66774         * tests/test-argp-2.sh: Fix test to match actual output.
66775         (func_compare): Fix sed script to be portable.
66776
66777 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66780         workaround for this case.  It is not autoconfigured now; offhand
66781         it's hard to see how to autoconfigure it.
66782
66783 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66786         a directory that is about to be chowned.  Such a directory's
66787         initial file permissions should permit the owner only and this
66788         should not be changed until after the chown, since the group and
66789         other bits would be incorrect if they granted permission before
66790         the chown.
66791
66792         Fix porting problem for iswctype reported by Georg Schwarz in:
66793         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66794         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66795         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66797         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66798
66799 2006-12-03  Jim Meyering  <jim@meyering.net>
66800
66801         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66802         p->fts_statp may not yet be defined.
66803         (fts_read): Instead, set it in the caller, once p->fts_statp is
66804         sure to be defined, and corresponds to a top-level directory.
66805         This bug made du -x fail.  Here's the coreutils test case:
66806         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66807         Reported by Mike Frysinger.
66808
66809 2006-12-01  Jim Meyering  <jim@meyering.net>
66810
66811         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66812         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66813         Reported by Simon Josefsson.
66814
66815 2006-11-30  Jim Meyering  <jim@meyering.net>
66816
66817         * m4/warning.m4: Use the all-permissive copyright notice
66818         recommended by RMS (rather than LGPL).
66819         * m4/vararrays.m4: Likewise.
66820         * m4/flexmember.m4: Likewise.
66821
66822 2006-11-29  Bruno Haible  <bruno@clisp.org>
66823
66824         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66825         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66826         using +=.
66827         Reported by Simon Josefsson <simon@josefsson.org>.
66828
66829 2006-11-28  James Youngman <jay@gnu.org>
66830
66831         * README: Advise users that they might find the bug-gnulib@gnu.org
66832         and autotools-announce@gnu.org mailing lists useful.
66833
66834 2006-11-28  Bruno Haible  <bruno@clisp.org>
66835
66836         * m4/ptrdiff_max.m4: Remove file.
66837
66838 2006-11-21  Bruno Haible  <bruno@clisp.org>
66839
66840         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66841         _AC_COMPUTE_INT.
66842         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66843         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66844         _AC_COMPUTE_INT.
66845         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66846         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66847         _AC_COMPUTE_INT.
66848         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66849
66850 2006-11-28  Jim Meyering  <jim@meyering.net>
66851
66852         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66853         warning from "gcc -Wshadow" about shadowing the builtin.
66854
66855 2006-11-27  Bruno Haible  <bruno@clisp.org>
66856
66857         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66858         _AC_COMPUTE_INT.
66859         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66860
66861 2006-11-27  Bruno Haible  <bruno@clisp.org>
66862             Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66865
66866 2006-11-26  Bruno Haible  <bruno@clisp.org>
66867
66868         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66869         noinst_LTLIBRARIES.
66870
66871 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66872             Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66875         if compiling with "gcc -ansi".
66876
66877 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         Fix some incompatibilities with gcc -ansi -pedantic.
66880         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66881         if compiling pedantically with GCC, unless it's C99 or later.
66882         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66883         it mishandles gcc -ansi -pedantic as well.
66884         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66885         if gcc -pedantic.
66886         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66887         initializers for struct if -pedantic, unless it's C99 or later.
66888
66889 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66890
66891         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66892         Don't close an fd more than once. Identical atimes indicate
66893         success, not failure.
66894
66895 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66896
66897         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66898
66899 2006-11-23  Jim Meyering  <jim@meyering.net>
66900
66901         * build-aux/announce-gen: New file.  From coreutils.
66902
66903 2006-11-22  Jim Meyering  <jim@meyering.net>
66904
66905         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66906         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66907         (fts_read): Use a temporary to narrow the overused st_size member
66908         before using it in a switch statement.  Reported by Matthew Woehlke.
66909
66910         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66911         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66912
66913 2006-11-20  Bruno Haible  <bruno@clisp.org>
66914
66915         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66916         changequote instead of pairs of brackets.
66917         Reported by Andreas Schwab <schwab@suse.de>.
66918
66919 2006-11-21  Jim Meyering  <jim@meyering.net>
66920
66921         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66922         so as to remain compatible with older compilers.
66923         Patch from Michael Deutschmann.
66924
66925 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * MODULES.html.sh (File system functions): Add openat.
66928
66929         * lib/openat.h (rpl_fstatat): New macro, if
66930         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66931         (fstatat): Define to rpl_fstatat under the same conditions,
66932         unless COMPILING_FSTATAT.
66933         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66934         seems to have the bug.
66935         * lib/fstatat.c: New file.
66936         * modules/openat (Files): Add it.
66937
66938 2006-11-20  Bruno Haible  <bruno@clisp.org>
66939
66940         * Makefile: New file.
66941
66942 2006-11-20  Jim Meyering  <jim@meyering.net>
66943
66944         The beginnings of syntax-related checks for gnulib.
66945         * lib/Makefile: New file.
66946         * lib/t-idcache: New script.  Ensure that the two halves of
66947         idcache.c stay in sync.
66948
66949         * lib/idcache.c: Adjust comments in user- and group- portions to
66950         be more accurate, and to be consistent with one another.
66951
66952 2006-11-20  Jim Meyering  <jim@meyering.net>
66953
66954         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66955         continue using the flexible array member (thus, this module performs
66956         half as many malloc calls), with the addition that...
66957         (getgroup, getuser): Consistently record a non-match via an empty
66958         "name" string, and map an empty string match to a NULL return value.
66959         * modules/idcache (Depends-on): Re-add flexmember.
66960
66961         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66962         (getuidbyname, getgroup, getgidbyname): Likewise.
66963
66964         Use cleaner syntax: NULL rather than 0.
66965         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66966
66967 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66968
66969         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66970         It mishandled the case where the group was missing.
66971         Problem reported by Greg Schafer.
66972         * modules/idcache: Likewise.
66973
66974 2006-11-18  Jim Meyering  <jim@meyering.net>
66975
66976         * check-module (%exempt_header): Add exception for some
66977         conditionally-included headers.
66978
66979         * modules/i-ring (Depends-on): Add verify.
66980         (License): Change to LGPL.
66981
66982 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66985         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66986         and inttostr.h.  Use snprintf rather than uinttostr, so that
66987         LGPLed code doesn't depend on GPLed.
66988
66989 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66990
66991         * modules/inline (License): Change from GPL to LGPL.
66992
66993 2006-11-17  Jim Meyering  <jim@meyering.net>
66994
66995         * modules/d-type (License): Switch to LGPL.
66996
66997 2006-11-15  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67000
67001 2006-11-15  Eric Blake  <ebb9@byu.net>
67002
67003         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67004         the module dependency.
67005
67006 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67007             Bruno Haible  <bruno@clisp.org>
67008
67009         * gnulib-tool (func_create_testdir): Add license consistency check.
67010
67011 2006-11-15  Eric Blake  <ebb9@byu.net>
67012
67013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67014         random "(cached)" in configure output.
67015
67016 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67017
67018         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67019         test for conforming inttypes.h is both announced and cached.
67020
67021         * MODULES.html.sh (seen_modules, seen_files): New variables.
67022         (func_module): Rewrite to use a few less gnulib-tool and sed
67023         invocations.  Avoid a couple of quadratic algorithms for ...
67024         (missed_modules, missed_files): ... these, with ...
67025         (func_append, func_tmpdir): ... these new functions, from
67026         gnulib-tool.  Analogously, install traps for cleanup.
67027
67028         * tests/test-gc.c (main): Remove unused variables.
67029         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67030
67031 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67032
67033         * modules/inttostr (License): Change to LGPL.
67034
67035 2006-11-14  Eric Blake  <ebb9@byu.net>
67036
67037         * modules/tempname (License): Change to LGPL.
67038
67039 2006-11-14  Eric Blake  <ebb9@byu.net>
67040
67041         * doc/functions.texi (Function Portability): *printf functions on
67042         Cygwin now understand all POSIX size specifiers.
67043
67044 2006-11-14  Bruno Haible  <bruno@clisp.org>
67045
67046         * modules/c-ctype (License): Change to LGPL.
67047
67048 2006-11-12  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67051         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67052         for GNOME libraries, for which the include files are installed in
67053         subdirectories of $prefix/include.
67054
67055 2006-11-12  Bruno Haible  <bruno@clisp.org>
67056
67057         * m4/lib-link.m4: Require at least autoconf-2.54.
67058         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67059         name to underscores for the --with option.
67060
67061 2006-11-13  Bruno Haible  <bruno@clisp.org>
67062
67063         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67064         the tests directory.
67065         Reported by Ralf Wildenhues.
67066
67067 2006-11-13  Bruno Haible  <bruno@clisp.org>
67068
67069         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67070         (func_emit_initmacro_end): Undo the override here.
67071         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67072         Works around the famous automake error in coreutils.
67073
67074 2006-11-13  Eric Blake  <ebb9@byu.net>
67075
67076         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67077         element, not its node.
67078
67079 2006-11-12  Bruno Haible  <bruno@clisp.org>
67080
67081         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67082         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67083
67084 2006-11-12  Bruno Haible  <bruno@clisp.org>
67085
67086         * gnulib-tool: New option --local-symlink.
67087         (func_usage): Document it.
67088         (lsymbolic): New variable.
67089         (func_import, func_create_testdir): If --symlink was not specified,
67090         test whether --local-symlink was specified and the file comes from
67091         the local_gnulib_dir.
67092
67093 2006-11-12  Bruno Haible  <bruno@clisp.org>
67094
67095         * gnulib-tool (func_ln): New function.
67096         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67097
67098 2006-11-12  Bruno Haible  <bruno@clisp.org>
67099
67100         Finish support for source files in subdirectories.
67101         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67102         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67103         AUTOMAKE_OPTIONS.
67104         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67105
67106 2006-11-12  Bruno Haible  <bruno@clisp.org>
67107
67108         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67109         EXTRA_lib_SOURCES augmentation.
67110         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67111
67112 2006-11-12  Jim Meyering  <jim@meyering.net>
67113
67114         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67115         file descriptors.  This also averts a failure on systems with
67116         native openat support when a traversed directory lacks "x" access.
67117         * lib/fts_.h: Include "i-ring.h"
67118         (struct FTS) [fts_fd_ring]: New member.
67119         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67120         (FCHDIR): Add parentheses.
67121         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67122         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67123         When descending, rather than simply closing the previous
67124         fts_cwd_fd value, push that file descriptor onto the ring.
67125         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67126         (fts_open): Initialize the new fd_ring member.
67127         (fts_close): Clear the ring.
67128         (fts_safe_changedir): When possible, use our new fd_ring to skip
67129         the diropen and fstat and dev/ino comparison that would normally
67130         accompany a virtual `chdir ("..")'.
67131
67132         * modules/fts (Depends-on): Add i-ring.
67133         * modules/i-ring: New module.
67134         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67135         * m4/i-ring.m4: New file.
67136
67137 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67138
67139         * gnulib-tool (func_create_testdir): Fix replacement of
67140         `build-aux' in configure.ac.  Run autotools in gltests
67141         subdirectory.
67142         (func_create_testdir, func_create_megatestdir, test): There is
67143         no need for '--force' in most autotool invocations in a new
67144         tree.  Actually fail the whole test if any of the tools, or the
67145         configure or make stages fail.
67146
67147         Sync from Automake.
67148         * build-aux/gnupload: Revert last change.  Add pointer to upload
67149         instructions of the GNU Maintenance Instructions.
67150         Suggestion by Karl Berry.
67151
67152 2006-11-10  Jim Meyering  <jim@meyering.net>
67153
67154         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67155
67156 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67159         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67160         (bind_textdomain_codeset) [! ENABLE_NLS]:
67161         Evaluate all the arguments.  That way, callers get compatible behavior
67162         if the arguments have side effects.  Also, it avoids some GCC
67163         diagnostics in some cases; Joel E. Denny reported problems when Bison
67164         was configured with --enable-gcc-warnigs.
67165
67166 2006-11-10  Jim Meyering  <jim@meyering.net>
67167
67168         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67169         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67170         account.
67171
67172 2006-11-10  Jim Meyering  <jim@meyering.net>
67173
67174         * modules/inline: New file/module.
67175         * modules/xalloc (Files): Remove m4/inline.m4.
67176         (Depends-on): Add inline, instead.
67177         * modules/oset: Likewise.
67178         * modules/list: Likewise.
67179
67180 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67183         Problem reported by Matthew Woehlke.
67184
67185 2006-11-09  Bruno Haible  <bruno@clisp.org>
67186
67187         * lib/tempname.c (gen_tempname): Remove variant that invokes
67188         __gen_tempname.
67189         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67190         __gen_tempname.
67191
67192 2006-11-08  Bruno Haible  <bruno@clisp.org>
67193
67194         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67195         to 'yes' instead of 'cross-compiling'.
67196
67197 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67198
67199         * lib/quotearg.h (quotearg_free): New decl.
67200         * lib/quotearg.c (quotearg_free): New function.
67201         (slot0, nslots, slotvec0, slotvec):
67202         Now file-scope so that quotearg_free can get at them.
67203
67204 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67205
67206         Sync from Automake.
67207         * build-aux/gnupload: Add missing 'gnu' to example URL.
67208         Report by Karl Berry.
67209
67210 2006-11-08  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67213         Suggested by Paul Eggert.
67214
67215 2006-11-08  Jim Meyering  <jim@meyering.net>
67216
67217         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67218         It's already included if !_LIBC.
67219         (fts_safe_changedir): Add a comment.
67220
67221 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67224         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67225         Matthew Woehlke.
67226
67227         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67228         definitions up, to avoid colliding with change below.
67229         (static_inline) [HAVE_INLINE]: New macro.
67230         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67231         Provide extern decls when !HAVE_INLINE.  Do not define unless
67232         static_inline is defined, either by us or by xmalloc.c.  Use
67233         static_inline rather than static inline.
67234         (XCALLOC): Optimize sizeof(T) = 1 case.
67235         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67236
67237 2006-11-07  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67240         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67241         AC_C_INLINE.
67242         * modules/xalloc (Files): Add m4/inline.m4.
67243
67244 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67245
67246         * README: Fix typo.
67247         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67248         (Miscellanous Notes): ...from this.
67249
67250 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67253         Mention that offsetof should be used instead of sizeof.
67254         From Bruno Haible.
67255
67256 2006-11-07  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67259
67260 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67263         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67264         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67265         (gl_tree_add_before, gl_tree_add_after):
67266         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67267         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67268         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67269         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67270         (gl_linked_add_after, gl_linked_add_at): Likewise.
67271         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67272         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67273         (gl_tree_add_before, gl_tree_add_after): Likewise.
67274         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67275         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67276         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67277
67278 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67279
67280         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67281
67282 2006-11-06  Bruno Haible  <bruno@clisp.org>
67283
67284         * m4/inline.m4: New file.
67285         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67286         * modules/list (Files): Add m4/inline.m4.
67287         * modules/oset (Files): Likewise.
67288
67289 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67290
67291         * lib/idcache.c: Include <stddef.h>, for offsetof.
67292         (struct userid.name): Change from char * to a flexible array member.
67293         All uses changed.
67294         * modules/idcache (Depends-on): Add flexmember.
67295
67296         * MODULES.html.sh (Core language properties): New module flexmember.
67297         * modules/flexmember, m4/flexmember.m4: New files.
67298
67299         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67300         inline functions that are identical with the old xnmalloc_inline,
67301         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67302         that we can avoid some unnecessary integer multiplications and
67303         divisions in the common case where the element size is known at
67304         compile time.
67305         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67306         needed.
67307         (xnboundedmalloc): Remove.
67308         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67309         arguments, for consistency with rest of this header.
67310         (xcharalloc): Rewrite using XNMALLOC.
67311         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67312         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67313         versions have been moved to lib/xalloc.h and renamed to be the
67314         non-*_inline versions.
67315         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67316         and xnrealloc functions, since those functions are now inline and
67317         now call us.
67318         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67319         renaming described above.
67320         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67321         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67322         captures the dependency in AC_C_INLINE.
67323
67324         New module canonicalize-lgpl, proposed by Charles Wilson in
67325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67326         with a few small changes afterwards.
67327         * MODULES.html.sh (File system functions): New module
67328         canonicalize-lgpl.
67329         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67330         and canonicalize_file_name.
67331         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67332         * modules/canonicalize-lgpl: New files.
67333
67334 2006-11-05  Bruno Haible  <bruno@clisp.org>
67335
67336         * gnulib-tool (func_import, func_create_testdir): Create directories
67337         also for files in subdirectories of lib/.
67338
67339 2006-11-05  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67342         ANSI C compliant.
67343
67344 2006-11-03  Bruno Haible  <bruno@clisp.org>
67345
67346         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67347         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67348         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67349         (xnboundedmalloc): New inline function.
67350         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67351         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67352         xmalloc.
67353         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67354         xmalloc.
67355         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67356         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67357         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67358         xmalloc.
67359         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67360         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67361         xmalloc.
67362         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67363         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67364         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67365         xmalloc.
67366         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67367         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67368         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67369         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67370         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67371         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67372         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67373
67374 2006-11-03  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/c-ctype.h [C++]: Define functions without name mangling.
67377         * lib/fwriteerror.h [C++]: Likewise.
67378         * lib/gcd.h [C++]: Likewise.
67379         * lib/linebreak.h [C++]: Likewise.
67380
67381 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67384         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67385         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67386         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67387         Check for functions and headers just once.
67388         Check for declaration of canonicalize_file_name.
67389         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67390
67391 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67392
67393         * gnulib-tool (func_import): Fix typo in actioncmd.
67394
67395 2006-11-02  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67398         newline sequence in the Makefile.am snippet as a space, like "make"
67399         does.
67400         Reported by Roger Persson <perrog@gmail.com>.
67401
67402 2006-11-01  Bruno Haible  <bruno@clisp.org>
67403
67404         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67405         already declared in <string.h>.
67406         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67407
67408 2006-11-01  Bruno Haible  <bruno@clisp.org>
67409
67410         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67411         * lib/strcase.h: Include <string.h>.
67412         (strcasecmp): Define to rpl_strcasecmp here.
67413
67414 2006-11-01  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67417
67418 2006-11-01  Eric Blake  <ebb9@byu.net>
67419
67420         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67421
67422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67423
67424 2006-10-29  Bruno Haible  <bruno@clisp.org>
67425
67426         Make it compile in C++ mode.
67427         * lib/full-write.c (full_rw): Add a cast.
67428
67429 2006-11-01  Bruno Haible  <bruno@clisp.org>
67430
67431         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67432         be POSIX compliant.
67433         Reported by Roger Persson <perrog@gmail.com>.
67434
67435 2006-11-01  Eric Blake  <ebb9@byu.net>
67436
67437         * lib/getopt_.h: Fix comments.
67438
67439 2006-10-31  Eric Blake  <ebb9@byu.net>
67440
67441         * modules/tmpdir (Depends-on): Add sys_stat.
67442         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67443         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67444         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67445         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67446         tempname.
67447
67448 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         Avoid some C++ diagnostics reported by Bruno Haible.
67451         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67452         xmalloc.
67453         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67454         (struct slotvec): Move to top level.
67455         (quotearg_n_options): Rewrite to avoid xmalloc.
67456         * lib/xalloc.h (xcharalloc): New function.
67457         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67458         [defined __cplusplus]: Add function template that provides result
67459         type propagation.  This part of the change is from Bruno Haible.
67460
67461 2006-10-29  Bruno Haible  <bruno@clisp.org>
67462
67463         Make it compile in C++ mode.
67464         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67465         * lib/strnlen1.c (strnlen1): Cast memchr result.
67466         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67467         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67468         (create_temp_dir): Rename local variable 'template'.
67469         (compile_csharp_using_sscli): Add cast.
67470         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67471         * lib/findprog.c (find_in_path): Likewise.
67472         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67473         * lib/wait-process.c (register_slave_subprocess): Likewise.
67474
67475 2006-10-22  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/tsearch: New file.
67478         * lib/tsearch.h: New file.
67479         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67480         * m4/tsearch.m4: New file.
67481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67482
67483 2006-10-29  Eric Blake  <ebb9@byu.net>
67484
67485         * lib/arcfour.c: Assume config.h.
67486         * lib/arctwo.c: Likewise.
67487         * lib/base64.c: Likewise.
67488         * lib/check-version.c: Likewise.
67489         * lib/crc.c: Likewise.
67490         * lib/des.c: Likewise.
67491         * lib/gc-gnulib.c: Likewise.
67492         * lib/gc-libgcrypt.c: Likewise.
67493         * lib/gc-pbkdf2-sha1.c: Likewise.
67494         * lib/getaddrinfo.c: Likewise.
67495         * lib/getdelim.c: Likewise.
67496         * lib/getline.c: Likewise.
67497         * lib/hmac-md5.c: Likewise.
67498         * lib/hmac-sha1.c: Likewise.
67499         * lib/iconvme.c: Likewise.
67500         * lib/md2.c: Likewise.
67501         * lib/md4.c: Likewise.
67502         * lib/memxor.c: Likewise.
67503         * lib/read-file.c: Likewise.
67504         * lib/readline.c: Likewise.
67505         * lib/rijndael-alg-fst.c: Likewise.
67506         * lib/rijndael-api-fst.c: Likewise.
67507         * lib/xgetdomainname.c: Likewise.
67508
67509 2006-10-28  Eric Blake  <ebb9@byu.net>
67510
67511         * lib/xstrndup.c: Assume config.h.
67512
67513 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67514
67515         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67516         stat-macros.h is now for our own macros, whereas stat_h is for
67517         macros in the <sys/stat.h> name space.
67518         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67519         (STAT_MACROS_H): Remove.
67520         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67521         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67522         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67523         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67524         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67525         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67526         Move these macros to ...
67527         * lib/stat_.h: here.  Don't include stat-macros.h.
67528         * lib/canonicalize.c: Don't include stat-macros.h.
67529         * lib/chown.c: Likewise.
67530         * lib/euidaccess.c: Likewise.
67531         * lib/file-type.c: Likewise.
67532         * lib/filemode.c: Likewise.
67533         * lib/glob.c: Likewise.
67534         * lib/isapipe.c: Likewise.
67535         * lib/lchown.c: Likewise.
67536         * lib/lstat.c: Likewise.
67537         * lib/mkdir-p.c: Likewise.
67538         * lib/rmdir.c: Likewise.
67539         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67541         unless mkdir isn't declared, to speed up 'configure'.
67542         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67543         would define all the S_* symbols.
67544         * modules/canonicalize (Depends-on):
67545         Depend on sys_stat, not stat-macros.
67546         * modules/chown: Likewise.
67547         * modules/euidaccess: Likewise.
67548         * modules/filemode: Likewise.
67549         * modules/file-type: Likewise.
67550         * modules/glob: Likewise.
67551         * modules/isapipe: Likewise.
67552         * modules/lchown: Likewise.
67553         * modules/lstat: Likewise.
67554         * modules/mkancesdirs: Likewise.
67555         * modules/rmdir: Likewise.
67556         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67557         * modules/modechange: Likewise.
67558         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67559         (configure.ac): Remove gl_STAT_MACROS.
67560         * modules/sys_stat (Depends-on): Remove stat-macros.
67561
67562 2006-10-27  Bruno Haible  <bruno@clisp.org>
67563
67564         * m4/signed.m4: Remove file.
67565         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67566         invocation.
67567         * modules/vasnprintf (Files): Remove m4/signed.m4.
67568
67569 2006-10-27  Bruno Haible  <bruno@clisp.org>
67570
67571         Update to GNU gettext 0.16.
67572         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67573         m4/inttypes-h.m4, m4/signed.m4.
67574         * m4/gettext.m4: Update to GNU gettext 0.16.
67575         * m4/intl.m4: New file, from GNU gettext.
67576         * m4/intldir.m4: New file, from GNU gettext.
67577         * config/srclist.txt: Update
67578
67579 2006-10-27  Eric Blake  <ebb9@byu.net>
67580
67581         * MODULES.html.sh: Document tempname.
67582         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67583         dependencies.
67584         (Files): Move lib/tempname.c...
67585         * modules/tempname: ...to this new module.
67586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67587         (gl_PREREQ_TEMPNAME): Move...
67588         * m4/tempname.m4: ...to this new file.
67589         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67590         * modules/sys_stat (Depends-on): Add stat-macros.
67591         * lib/stat_.h (includes): Pick up stat macros.
67592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67593         if stat macros are broken.
67594         * lib/tempname.c (includes): No need to include "stat-macros.h".
67595         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67596         (direxists, __path_search) [!_LIBC]: Don't compile these in
67597         gnulib; the tmpdir module covers that.
67598         * lib/tempname.h: New file.
67599
67600 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         * COPYING: Explain how gnulib-tool converts licence headers.
67603         Almost all wording by Eric Blake.
67604
67605 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * lib/mbchar.h (is_basic_table): Make read-only.
67608         * lib/mbchar.c (is_basic_table): Likewise.
67609         Reported by John Darrington.
67610
67611 2006-10-25  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/progname.h (set_program_name): Undefine before defining.
67614
67615 2006-10-25  Bruno Haible  <bruno@clisp.org>
67616
67617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67618         false for non-gcc C++ compilers.
67619         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67620
67621 2006-10-24  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67624         iconv implementations like Irix iconv.
67625
67626 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         * modules/vararrays: New file.
67629         * m4/vararrays.m4: New file, taken from diffutils.
67630         * MODULES.html.sh: New module vararrays.
67631
67632 2006-10-24  Karl Berry  <karl@gnu.org>
67633
67634         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67635         Don't call GNU Unix.
67636
67637 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67638
67639         * users.txt: Add Libtool.
67640
67641         Sync from Libtool:
67642
67643         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67646         to gnulib's policy of including config.h unconditionally.
67647
67648 2006-10-24  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/wcwidth (Files): Add m4/wint_t.m4.
67651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67652         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67653
67654 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67657         to pacify GCC with some -W flags enabled.  Problem reported by
67658         Bruno Haible.
67659
67660 2006-10-24  Jim Meyering  <jim@meyering.net>
67661
67662         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67663         Reported by Karl Berry.
67664
67665 2006-10-23  Bruno Haible  <bruno@clisp.org>
67666
67667         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67668
67669 2006-10-24  Bruno Haible  <bruno@clisp.org>
67670
67671         * lib/gl_list.h: Use C comment style, not C++ comment style.
67672
67673 2006-10-23  Eric Blake  <ebb9@byu.net>
67674
67675         * lib/getaddrinfo.c (includes): Add missing include.
67676
67677 2006-10-23  Bruno Haible  <bruno@clisp.org>
67678             Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         Ability to rename obstack_free.
67681         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67682         obstack_free.
67683         (obstack_free): Invoke the __obstack_free macro.
67684         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67685
67686 2006-10-23  Bruno Haible  <bruno@clisp.org>
67687             Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67690         __argc, __argv from the declaration. (They are defined as macros on
67691         mingw.)
67692
67693 2006-10-22  Bruno Haible  <bruno@clisp.org>
67694
67695         * doc/gnulib-intro.texi: New file.
67696         * doc/gnulib.texi: Include it.
67697
67698 2006-10-21  Bruno Haible  <bruno@clisp.org>
67699
67700         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67701         "Introduction", "Miscellanous Notes", "Particular Modules".
67702
67703 2006-10-21  Bruno Haible  <bruno@clisp.org>
67704
67705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67706         Change mostlyclean-local rule to avoid sh syntax error from bash
67707         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67708
67709 2006-10-23  Jim Meyering  <jim@meyering.net>
67710
67711         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67712         in place of snprintf.
67713
67714         * modules/inttostr (Files): Add lib/uinttostr.c.
67715         * lib/uinttostr.c (inttostr): New file/function.
67716         * lib/inttostr.h (uinttostr): Declare.
67717         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67718         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67719         Add uinttostr.
67720         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67721
67722 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * lib/canonicalize.c (ELOOP): Define if not already defined.
67725         Problem reported by Bruno Haible in
67726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67727
67728 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67731         Problem reported by Perry Smith and Ville Laurikari.
67732
67733         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67734         uses.
67735
67736 2006-10-19  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67739         for mingw.
67740
67741 2006-10-19  Bruno Haible  <bruno@clisp.org>
67742
67743         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67744         Needed for mingw.
67745
67746 2006-10-19  Bruno Haible  <bruno@clisp.org>
67747
67748         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67749
67750 2006-10-19  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67753         it.
67754
67755 2006-10-19  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67758         invocation.
67759
67760 2006-10-19  Bruno Haible  <bruno@clisp.org>
67761
67762         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67763         mountlist by default.
67764
67765 2006-10-16  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/c-strstr.c: Include c-strstr.h.
67768
67769 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67770
67771         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67772         in a slash.
67773
67774 2006-10-18  Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/lock.h [C++]: Wrap definitions in extern "C".
67777
67778 2006-10-18  Bruno Haible  <bruno@clisp.org>
67779
67780         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67781         gl_LIBOBJS list.
67782
67783 2006-10-18  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67786
67787 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         * lib/xstrtol.h: Include gettext.h.
67790         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67791         Problem reported by Eric Blake.
67792         * modules/xstrtol (Depends-on): Add gettext-h.
67793
67794 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67795
67796         * lib/strftime.c (advance): New macro.
67797         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67798         incomplete type, so you can't add 0 to it.  Problem and patch
67799         reported by Eelco Dolstra for dietlibc.
67800
67801 2006-10-18  Jim Meyering  <jim@meyering.net>
67802
67803         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67804         type for a local, and rename it: s/up/user_proc/.
67805
67806 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67807
67808         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67809         READ_UTMP_USER_PROCESS.
67810         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67811
67812 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67815         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67816
67817 2006-10-17  Eric Blake  <ebb9@byu.net>
67818
67819         * lib/sigprocmask.c (sigprocmask): Fix typo.
67820
67821         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67822
67823         * modules/clean-temp (Makefile.am): Don't add to make output...
67824         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67825         config.h.
67826
67827 2006-10-17  Bruno Haible  <bruno@clisp.org>
67828
67829         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67830         differently if DEFAULT_TEXT_DOMAIN is set.
67831
67832 2006-10-16  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/clean-temp.c: Include fwriteerror.h.
67835
67836 2006-10-16  Bruno Haible  <bruno@clisp.org>
67837
67838         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67839
67840 2006-10-16  Bruno Haible  <bruno@clisp.org>
67841
67842         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67843         * lib/sigprocmask.h: Include <sys/types.h>.
67844         (sigset_t): Use the system's definition if present.
67845
67846 2006-10-17  Eric Blake  <ebb9@byu.net>
67847
67848         * lib/xvasprintf.c (includes): Assume config.h.
67849         * lib/xasprintf.c (includes): Likewise.
67850
67851 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67854         at least as wide as intmax_t.
67855
67856 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67857
67858         (Imported from Automake.)
67859         * build-aux/gnupload: Update to version 1.1 of directive file.
67860
67861 2006-10-16  Eric Blake  <ebb9@byu.net>
67862
67863         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67864         match Automake 1.10a.
67865
67866 2006-10-14  Bruno Haible  <bruno@clisp.org>
67867
67868         * modules/sigprocmask: New file.
67869         * lib/sigprocmask.h: New file.
67870         * lib/sigprocmask.c: New file.
67871         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67872         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67873         request sigprocmask.o.
67874         (gl_PREREQ_SIGPROCMASK): New macro.
67875         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67876         (Depends-on): Add sigprocmask.
67877         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67878         gt_SIGNALBLOCKING. Test for 'raise' only once.
67879         * lib/fatal-signal.c: Include sigprocmask.h.
67880         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67881         unblock_fatal_signals): Define always.
67882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67883         sigprocmask.
67884
67885 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         Sync from Automake.
67888         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67889         which incorrectly sets the mode of an existing destination
67890         directory.  In some cases the unpatched install-sh could do the
67891         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67892         system.  We hope this is rare in practice, but it's clearly worth
67893         fixing.  Problem reported by Alex Unleashed in
67894         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67895         Also, don't bother to check for -m bugs unless we're using -m;
67896         suggested by Stepan Kasal.
67897
67898 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67899
67900         Sync from Automake.
67901         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67902         `-c' flag, so they appear at the same position as in %FASTDEP%
67903         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67904         which ignores unknown options only after the first non-option.
67905         Bug report against M4 by Nelson H. F. Beebe.
67906
67907 2006-10-13  Jim Meyering  <jim@meyering.net>
67908
67909         Fix a bug in yesterday's change.
67910         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67911         p->fts_statp->st_dev would be used uninitialized.
67912         Ensures that we always call fts_stat on the very first entry.
67913         Miklos Szeredi reported that find -xdev stopped working.
67914
67915 2006-10-12  Bruno Haible  <bruno@clisp.org>
67916
67917         * gnulib-tool (func_get_automake_snippet): Append an automatically
67918         computed EXTRA_DIST augmentation.
67919         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67920         * modules/alloca-opt (Makefile.am): Likewise.
67921         * modules/allocsa (Makefile.am): Likewise.
67922         * modules/arcfour (Makefile.am): Likewise.
67923         * modules/arctwo (Makefile.am): Likewise.
67924         * modules/argmatch (Makefile.am): Likewise.
67925         * modules/argz (Makefile.am): Likewise.
67926         * modules/atexit (Makefile.am): Likewise.
67927         * modules/backupfile (Makefile.am): Likewise.
67928         * modules/byteswap (Makefile.am): Likewise.
67929         * modules/c-strtod (Makefile.am): Likewise.
67930         * modules/c-strtold (Makefile.am): Likewise.
67931         * modules/calloc (Makefile.am): Likewise.
67932         * modules/canon-host (Makefile.am): Likewise.
67933         * modules/canonicalize (Makefile.am): Likewise.
67934         * modules/chdir-long (Makefile.am): Likewise.
67935         * modules/chdir-safer (Makefile.am): Likewise.
67936         * modules/check-version (Makefile.am): Likewise.
67937         * modules/chown (Makefile.am): Likewise.
67938         * modules/cloexec (Makefile.am): Likewise.
67939         * modules/close-stream (Makefile.am): Likewise.
67940         * modules/closeout (Makefile.am): Likewise.
67941         * modules/crc (Makefile.am): Likewise.
67942         * modules/csharpexec (Makefile.am): Likewise.
67943         * modules/cycle-check (Makefile.am): Likewise.
67944         * modules/des (Makefile.am): Likewise.
67945         * modules/dev-ino (Makefile.am): Likewise.
67946         * modules/dirfd (Makefile.am): Likewise.
67947         * modules/dirname (Makefile.am): Likewise.
67948         * modules/dup2 (Makefile.am): Likewise.
67949         * modules/eealloc (Makefile.am): Likewise.
67950         * modules/error (Makefile.am): Likewise.
67951         * modules/euidaccess (Makefile.am): Likewise.
67952         * modules/exclude (Makefile.am): Likewise.
67953         * modules/exitfail (Makefile.am): Likewise.
67954         * modules/fcntl-safer (Makefile.am): Likewise.
67955         * modules/fcntl (Makefile.am): Likewise.
67956         * modules/file-type (Makefile.am): Likewise.
67957         * modules/fileblocks (Makefile.am): Likewise.
67958         * modules/filemode (Makefile.am): Likewise.
67959         * modules/filenamecat (Makefile.am): Likewise.
67960         * modules/fnmatch (Makefile.am): Likewise.
67961         * modules/fopen-safer (Makefile.am): Likewise.
67962         * modules/fpending (Makefile.am): Likewise.
67963         * modules/fprintftime (Makefile.am): Likewise.
67964         * modules/free (Makefile.am): Likewise.
67965         * modules/fsusage (Makefile.am): Likewise.
67966         * modules/ftruncate (Makefile.am): Likewise.
67967         * modules/fts (Makefile.am): Likewise.
67968         * modules/gc-arcfour (Makefile.am): Likewise.
67969         * modules/gc-des (Makefile.am): Likewise.
67970         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67971         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67972         * modules/gc-md4 (Makefile.am): Likewise.
67973         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67974         * modules/gc-sha1 (Makefile.am): Likewise.
67975         * modules/gc (Makefile.am): Likewise.
67976         * modules/getaddrinfo (Makefile.am): Likewise.
67977         * modules/getcwd (Makefile.am): Likewise.
67978         * modules/getdelim (Makefile.am): Likewise.
67979         * modules/getdomainname (Makefile.am): Likewise.
67980         * modules/getgroups (Makefile.am): Likewise.
67981         * modules/gethostname (Makefile.am): Likewise.
67982         * modules/gethrxtime (Makefile.am): Likewise.
67983         * modules/getline (Makefile.am): Likewise.
67984         * modules/getloadavg (Makefile.am): Likewise.
67985         * modules/getlogin_r (Makefile.am): Likewise.
67986         * modules/getndelim2 (Makefile.am): Likewise.
67987         * modules/getopt (Makefile.am): Likewise.
67988         * modules/getpagesize (Makefile.am): Likewise.
67989         * modules/getpass-gnu (Makefile.am): Likewise.
67990         * modules/getpass (Makefile.am): Likewise.
67991         * modules/getsubopt (Makefile.am): Likewise.
67992         * modules/gettime (Makefile.am): Likewise.
67993         * modules/gettimeofday (Makefile.am): Likewise.
67994         * modules/getugroups (Makefile.am): Likewise.
67995         * modules/getusershell (Makefile.am): Likewise.
67996         * modules/glob (Makefile.am): Likewise.
67997         * modules/group-member (Makefile.am): Likewise.
67998         * modules/hard-locale (Makefile.am): Likewise.
67999         * modules/hash (Makefile.am): Likewise.
68000         * modules/hmac-md5 (Makefile.am): Likewise.
68001         * modules/hmac-sha1 (Makefile.am): Likewise.
68002         * modules/human (Makefile.am): Likewise.
68003         * modules/idcache (Makefile.am): Likewise.
68004         * modules/imaxabs (Makefile.am): Likewise.
68005         * modules/imaxdiv (Makefile.am): Likewise.
68006         * modules/inet_ntop (Makefile.am): Likewise.
68007         * modules/inet_pton (Makefile.am): Likewise.
68008         * modules/intprops (Makefile.am): Likewise.
68009         * modules/inttostr (Makefile.am): Likewise.
68010         * modules/inttypes (Makefile.am): Likewise.
68011         * modules/isapipe (Makefile.am): Likewise.
68012         * modules/javaversion (Makefile.am): Likewise.
68013         * modules/lchmod (Makefile.am): Likewise.
68014         * modules/lchown (Makefile.am): Likewise.
68015         * modules/localcharset (Makefile.am): Likewise.
68016         * modules/long-options (Makefile.am): Likewise.
68017         * modules/lstat (Makefile.am): Likewise.
68018         * modules/malloc (Makefile.am): Likewise.
68019         * modules/mathl (Makefile.am): Likewise.
68020         * modules/mbchar (Makefile.am): Likewise.
68021         * modules/md2 (Makefile.am): Likewise.
68022         * modules/md4 (Makefile.am): Likewise.
68023         * modules/md5 (Makefile.am): Likewise.
68024         * modules/memcasecmp (Makefile.am): Likewise.
68025         * modules/memchr (Makefile.am): Likewise.
68026         * modules/memcmp (Makefile.am): Likewise.
68027         * modules/memcoll (Makefile.am): Likewise.
68028         * modules/memcpy (Makefile.am): Likewise.
68029         * modules/memmem (Makefile.am): Likewise.
68030         * modules/memmove (Makefile.am): Likewise.
68031         * modules/mempcpy (Makefile.am): Likewise.
68032         * modules/memrchr (Makefile.am): Likewise.
68033         * modules/memset (Makefile.am): Likewise.
68034         * modules/memxor (Makefile.am): Likewise.
68035         * modules/mkancesdirs (Makefile.am): Likewise.
68036         * modules/mkdir-p (Makefile.am): Likewise.
68037         * modules/mkdir (Makefile.am): Likewise.
68038         * modules/mkdtemp (Makefile.am): Likewise.
68039         * modules/mkstemp (Makefile.am): Likewise.
68040         * modules/mktime (Makefile.am): Likewise.
68041         * modules/modechange (Makefile.am): Likewise.
68042         * modules/mountlist (Makefile.am): Likewise.
68043         * modules/nanosleep (Makefile.am): Likewise.
68044         * modules/obstack (Makefile.am): Likewise.
68045         * modules/openat (Makefile.am): Likewise.
68046         * modules/pagealign_alloc (Makefile.am): Likewise.
68047         * modules/pathmax (Makefile.am): Likewise.
68048         * modules/physmem (Makefile.am): Likewise.
68049         * modules/poll (Makefile.am): Likewise.
68050         * modules/posixtm (Makefile.am): Likewise.
68051         * modules/posixver (Makefile.am): Likewise.
68052         * modules/putenv (Makefile.am): Likewise.
68053         * modules/quote (Makefile.am): Likewise.
68054         * modules/quotearg (Makefile.am): Likewise.
68055         * modules/raise (Makefile.am): Likewise.
68056         * modules/read-file (Makefile.am): Likewise.
68057         * modules/readline (Makefile.am): Likewise.
68058         * modules/readlink (Makefile.am): Likewise.
68059         * modules/readtokens (Makefile.am): Likewise.
68060         * modules/readutmp (Makefile.am): Likewise.
68061         * modules/realloc (Makefile.am): Likewise.
68062         * modules/regex (Makefile.am): Likewise.
68063         * modules/rename-dest-slash (Makefile.am): Likewise.
68064         * modules/rename (Makefile.am): Likewise.
68065         * modules/rijndael (Makefile.am): Likewise.
68066         * modules/rmdir (Makefile.am): Likewise.
68067         * modules/rpmatch (Makefile.am): Likewise.
68068         * modules/safe-read (Makefile.am): Likewise.
68069         * modules/safe-write (Makefile.am): Likewise.
68070         * modules/same-inode (Makefile.am): Likewise.
68071         * modules/same (Makefile.am): Likewise.
68072         * modules/save-cwd (Makefile.am): Likewise.
68073         * modules/savedir (Makefile.am): Likewise.
68074         * modules/setenv (Makefile.am): Likewise.
68075         * modules/settime (Makefile.am): Likewise.
68076         * modules/sha1 (Makefile.am): Likewise.
68077         * modules/sig2str (Makefile.am): Likewise.
68078         * modules/snprintf (Makefile.am): Likewise.
68079         * modules/stat-macros (Makefile.am): Likewise.
68080         * modules/stat-time (Makefile.am): Likewise.
68081         * modules/stdbool (Makefile.am): Likewise.
68082         * modules/stdint (Makefile.am): Likewise.
68083         * modules/stdlib-safer (Makefile.am): Likewise.
68084         * modules/stpcpy (Makefile.am): Likewise.
68085         * modules/stpncpy (Makefile.am): Likewise.
68086         * modules/strcase (Makefile.am): Likewise.
68087         * modules/strcasestr (Makefile.am): Likewise.
68088         * modules/strchrnul (Makefile.am): Likewise.
68089         * modules/strcspn (Makefile.am): Likewise.
68090         * modules/strdup (Makefile.am): Likewise.
68091         * modules/strerror (Makefile.am): Likewise.
68092         * modules/strftime (Makefile.am): Likewise.
68093         * modules/strndup (Makefile.am): Likewise.
68094         * modules/strnlen (Makefile.am): Likewise.
68095         * modules/strpbrk (Makefile.am): Likewise.
68096         * modules/strsep (Makefile.am): Likewise.
68097         * modules/strstr (Makefile.am): Likewise.
68098         * modules/strtod (Makefile.am): Likewise.
68099         * modules/strtoimax (Makefile.am): Likewise.
68100         * modules/strtok_r (Makefile.am): Likewise.
68101         * modules/strtol (Makefile.am): Likewise.
68102         * modules/strtoll (Makefile.am): Likewise.
68103         * modules/strtoul (Makefile.am): Likewise.
68104         * modules/strtoull (Makefile.am): Likewise.
68105         * modules/strtoumax (Makefile.am): Likewise.
68106         * modules/strverscmp (Makefile.am): Likewise.
68107         * modules/sys_socket (Makefile.am): Likewise.
68108         * modules/sys_stat (Makefile.am): Likewise.
68109         * modules/sysexits (Makefile.am): Likewise.
68110         * modules/time_r (Makefile.am): Likewise.
68111         * modules/timegm (Makefile.am): Likewise.
68112         * modules/timespec (Makefile.am): Likewise.
68113         * modules/tmpfile-safer (Makefile.am): Likewise.
68114         * modules/trim (Makefile.am): Likewise.
68115         * modules/unistd-safer (Makefile.am): Likewise.
68116         * modules/unlinkdir (Makefile.am): Likewise.
68117         * modules/unlocked-io (Makefile.am): Likewise.
68118         * modules/userspec (Makefile.am): Likewise.
68119         * modules/utime (Makefile.am): Likewise.
68120         * modules/utimecmp (Makefile.am): Likewise.
68121         * modules/utimens (Makefile.am): Likewise.
68122         * modules/vasnprintf (Makefile.am): Likewise.
68123         * modules/vasprintf (Makefile.am): Likewise.
68124         * modules/vsnprintf (Makefile.am): Likewise.
68125         * modules/xalloc (Makefile.am): Likewise.
68126         * modules/xgetcwd (Makefile.am): Likewise.
68127         * modules/xnanosleep (Makefile.am): Likewise.
68128         * modules/xreadlink (Makefile.am): Likewise.
68129         * modules/xstrtod (Makefile.am): Likewise.
68130         * modules/xstrtol (Makefile.am): Likewise.
68131         * modules/xstrtold (Makefile.am): Likewise.
68132         * modules/yesno (Makefile.am): Likewise.
68133         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68134
68135 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * modules/error (Makefile.am): Distribute files through
68138         EXTRA_DIST, not lib_SOURCES.
68139
68140 2006-10-12  Eric Blake  <ebb9@byu.net>
68141
68142         * modules/error (Makefile.am): Distribute files in /lib.
68143         * modules/obstack (Makefile.am): Likewise.
68144
68145 2006-10-12  Bruno Haible  <bruno@clisp.org>
68146
68147         * modules/acl (Makefile.am): Distribute all files in lib/ through
68148         EXTRA_DIST.
68149         * modules/arcfour (Makefile.am): Likewise.
68150         * modules/arctwo (Makefile.am): Likewise.
68151         * modules/argmatch (Makefile.am): Likewise.
68152         * modules/argz (Makefile.am): Likewise.
68153         * modules/atexit (Makefile.am): Likewise.
68154         * modules/backupfile (Makefile.am): Likewise.
68155         * modules/c-strtod (Makefile.am): Likewise.
68156         * modules/c-strtold (Makefile.am): Likewise.
68157         * modules/calloc (Makefile.am): Likewise.
68158         * modules/canon-host (Makefile.am): Likewise.
68159         * modules/canonicalize (Makefile.am): Likewise.
68160         * modules/chdir-long (Makefile.am): Likewise.
68161         * modules/chdir-safer (Makefile.am): Likewise.
68162         * modules/check-version (Makefile.am): Likewise.
68163         * modules/chown (Makefile.am): Likewise.
68164         * modules/cloexec (Makefile.am): Likewise.
68165         * modules/close-stream (Makefile.am): Likewise.
68166         * modules/closeout (Makefile.am): Likewise.
68167         * modules/crc (Makefile.am): Likewise.
68168         * modules/cycle-check (Makefile.am): Likewise.
68169         * modules/des (Makefile.am): Likewise.
68170         * modules/dirfd (Makefile.am): Likewise.
68171         * modules/dirname (Makefile.am): Likewise.
68172         * modules/dup2 (Makefile.am): Likewise.
68173         * modules/euidaccess (Makefile.am): Likewise.
68174         * modules/exclude (Makefile.am): Likewise.
68175         * modules/exitfail (Makefile.am): Likewise.
68176         * modules/fcntl-safer (Makefile.am): Likewise.
68177         * modules/file-type (Makefile.am): Likewise.
68178         * modules/fileblocks (Makefile.am): Likewise.
68179         * modules/filemode (Makefile.am): Likewise.
68180         * modules/filenamecat (Makefile.am): Likewise.
68181         * modules/fnmatch (Makefile.am): Likewise.
68182         * modules/fopen-safer (Makefile.am): Likewise.
68183         * modules/fpending (Makefile.am): Likewise.
68184         * modules/fprintftime (Makefile.am): Likewise.
68185         * modules/free (Makefile.am): Likewise.
68186         * modules/fsusage (Makefile.am): Likewise.
68187         * modules/ftruncate (Makefile.am): Likewise.
68188         * modules/fts (Makefile.am): Likewise.
68189         * modules/gc (Makefile.am): Likewise.
68190         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68191         * modules/getaddrinfo (Makefile.am): Likewise.
68192         * modules/getcwd (Makefile.am): Likewise.
68193         * modules/getdelim (Makefile.am): Likewise.
68194         * modules/getdomainname (Makefile.am): Likewise.
68195         * modules/getgroups (Makefile.am): Likewise.
68196         * modules/gethostname (Makefile.am): Likewise.
68197         * modules/gethrxtime (Makefile.am): Likewise.
68198         * modules/getline (Makefile.am): Likewise.
68199         * modules/getloadavg (Makefile.am): Likewise.
68200         * modules/getlogin_r (Makefile.am): Likewise.
68201         * modules/getopt (Makefile.am): Likewise.
68202         * modules/getpass (Makefile.am): Likewise.
68203         * modules/getpass-gnu (Makefile.am): Likewise.
68204         * modules/getsubopt (Makefile.am): Likewise.
68205         * modules/gettime (Makefile.am): Likewise.
68206         * modules/gettimeofday (Makefile.am): Likewise.
68207         * modules/getugroups (Makefile.am): Likewise.
68208         * modules/getusershell (Makefile.am): Likewise.
68209         * modules/glob (Makefile.am): Likewise.
68210         * modules/group-member (Makefile.am): Likewise.
68211         * modules/hard-locale (Makefile.am): Likewise.
68212         * modules/hash (Makefile.am): Likewise.
68213         * modules/hmac-md5 (Makefile.am): Likewise.
68214         * modules/hmac-sha1 (Makefile.am): Likewise.
68215         * modules/human (Makefile.am): Likewise.
68216         * modules/idcache (Makefile.am): Likewise.
68217         * modules/imaxabs (Makefile.am): Likewise.
68218         * modules/imaxdiv (Makefile.am): Likewise.
68219         * modules/inet_ntop (Makefile.am): Likewise.
68220         * modules/inet_pton (Makefile.am): Likewise.
68221         * modules/inttostr (Makefile.am): Likewise.
68222         * modules/isapipe (Makefile.am): Likewise.
68223         * modules/lchown (Makefile.am): Likewise.
68224         * modules/long-options (Makefile.am): Likewise.
68225         * modules/lstat (Makefile.am): Likewise.
68226         * modules/malloc (Makefile.am): Likewise.
68227         * modules/mathl (Makefile.am): Likewise.
68228         * modules/mbchar (Makefile.am): Likewise.
68229         * modules/md2 (Makefile.am): Likewise.
68230         * modules/md4 (Makefile.am): Likewise.
68231         * modules/md5 (Makefile.am): Likewise.
68232         * modules/memcasecmp (Makefile.am): Likewise.
68233         * modules/memchr (Makefile.am): Likewise.
68234         * modules/memcmp (Makefile.am): Likewise.
68235         * modules/memcoll (Makefile.am): Likewise.
68236         * modules/memcpy (Makefile.am): Likewise.
68237         * modules/memmem (Makefile.am): Likewise.
68238         * modules/memmove (Makefile.am): Likewise.
68239         * modules/mempcpy (Makefile.am): Likewise.
68240         * modules/memrchr (Makefile.am): Likewise.
68241         * modules/memset (Makefile.am): Likewise.
68242         * modules/memxor (Makefile.am): Likewise.
68243         * modules/mkancesdirs (Makefile.am): Likewise.
68244         * modules/mkdir (Makefile.am): Likewise.
68245         * modules/mkdir-p (Makefile.am): Likewise.
68246         * modules/mkdtemp (Makefile.am): Likewise.
68247         * modules/mkstemp (Makefile.am): Likewise.
68248         * modules/mktime (Makefile.am): Likewise.
68249         * modules/modechange (Makefile.am): Likewise.
68250         * modules/mountlist (Makefile.am): Likewise.
68251         * modules/nanosleep (Makefile.am): Likewise.
68252         * modules/openat (Makefile.am): Likewise.
68253         * modules/pagealign_alloc (Makefile.am): Likewise.
68254         * modules/physmem (Makefile.am): Likewise.
68255         * modules/poll (Makefile.am): Likewise.
68256         * modules/posixtm (Makefile.am): Likewise.
68257         * modules/posixver (Makefile.am): Likewise.
68258         * modules/putenv (Makefile.am): Likewise.
68259         * modules/quote (Makefile.am): Likewise.
68260         * modules/quotearg (Makefile.am): Likewise.
68261         * modules/raise (Makefile.am): Likewise.
68262         * modules/read-file (Makefile.am): Likewise.
68263         * modules/readline (Makefile.am): Likewise.
68264         * modules/readlink (Makefile.am): Likewise.
68265         * modules/readtokens (Makefile.am): Likewise.
68266         * modules/readutmp (Makefile.am): Likewise.
68267         * modules/realloc (Makefile.am): Likewise.
68268         * modules/regex (Makefile.am): Likewise.
68269         * modules/rename (Makefile.am): Likewise.
68270         * modules/rename-dest-slash (Makefile.am): Likewise.
68271         * modules/rijndael (Makefile.am): Likewise.
68272         * modules/rmdir (Makefile.am): Likewise.
68273         * modules/rpmatch (Makefile.am): Likewise.
68274         * modules/safe-read (Makefile.am): Likewise.
68275         * modules/safe-write (Makefile.am): Likewise.
68276         * modules/same (Makefile.am): Likewise.
68277         * modules/save-cwd (Makefile.am): Likewise.
68278         * modules/savedir (Makefile.am): Likewise.
68279         * modules/setenv (Makefile.am): Likewise.
68280         * modules/settime (Makefile.am): Likewise.
68281         * modules/sha1 (Makefile.am): Likewise.
68282         * modules/sig2str (Makefile.am): Likewise.
68283         * modules/snprintf (Makefile.am): Likewise.
68284         * modules/stdlib-safer (Makefile.am): Likewise.
68285         * modules/stpcpy (Makefile.am): Likewise.
68286         * modules/stpncpy (Makefile.am): Likewise.
68287         * modules/strcase (Makefile.am): Likewise.
68288         * modules/strcasestr (Makefile.am): Likewise.
68289         * modules/strchrnul (Makefile.am): Likewise.
68290         * modules/strcspn (Makefile.am): Likewise.
68291         * modules/strdup (Makefile.am): Likewise.
68292         * modules/strerror (Makefile.am): Likewise.
68293         * modules/strftime (Makefile.am): Likewise.
68294         * modules/strndup (Makefile.am): Likewise.
68295         * modules/strnlen (Makefile.am): Likewise.
68296         * modules/strpbrk (Makefile.am): Likewise.
68297         * modules/strsep (Makefile.am): Likewise.
68298         * modules/strstr (Makefile.am): Likewise.
68299         * modules/strtod (Makefile.am): Likewise.
68300         * modules/strtoimax (Makefile.am): Likewise.
68301         * modules/strtok_r (Makefile.am): Likewise.
68302         * modules/strtol (Makefile.am): Likewise.
68303         * modules/strtoll (Makefile.am): Likewise.
68304         * modules/strtoul (Makefile.am): Likewise.
68305         * modules/strtoull (Makefile.am): Likewise.
68306         * modules/strtoumax (Makefile.am): Likewise.
68307         * modules/strverscmp (Makefile.am): Likewise.
68308         * modules/time_r (Makefile.am): Likewise.
68309         * modules/timegm (Makefile.am): Likewise.
68310         * modules/tmpfile-safer (Makefile.am): Likewise.
68311         * modules/unistd-safer (Makefile.am): Likewise.
68312         * modules/unlinkdir (Makefile.am): Likewise.
68313         * modules/userspec (Makefile.am): Likewise.
68314         * modules/utime (Makefile.am): Likewise.
68315         * modules/utimecmp (Makefile.am): Likewise.
68316         * modules/utimens (Makefile.am): Likewise.
68317         * modules/vasnprintf (Makefile.am): Likewise.
68318         * modules/vasprintf (Makefile.am): Likewise.
68319         * modules/vsnprintf (Makefile.am): Likewise.
68320         * modules/xalloc (Makefile.am): Likewise.
68321         * modules/xgetcwd (Makefile.am): Likewise.
68322         * modules/xnanosleep (Makefile.am): Likewise.
68323         * modules/xreadlink (Makefile.am): Likewise.
68324         * modules/xstrtod (Makefile.am): Likewise.
68325         * modules/xstrtol (Makefile.am): Likewise.
68326         * modules/xstrtold (Makefile.am): Likewise.
68327         * modules/yesno (Makefile.am): Likewise.
68328
68329 2006-10-12  Jim Meyering  <jim@meyering.net>
68330
68331         * m4/getloadavg.m4: Revert the change below.
68332
68333         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68334         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68335         fail with a symlink, which is what coreutils' ./bootstrap now
68336         creates by default.
68337
68338 2006-10-12  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68341         mingw.
68342         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68343         MSVC and mingw explicitly.
68344
68345 2006-10-11  Simon Josefsson  <jas@extundo.com>
68346             Bruno Haible  <bruno@clisp.org>
68347
68348         Add support for multiple gnulib-tool invocations in the scope of a
68349         single configure.ac file.
68350         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68351         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68352         with the same contents as the _LIBADD variable.
68353         (func_emit_initmacro_start, func_emit_initmacro_end,
68354         func_emit_initmacro_done): New functions.
68355         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68356         gl_LIBOBJS and gl_LTLIBOBJS.
68357
68358 2006-10-11  Bruno Haible  <bruno@clisp.org>
68359
68360         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68361         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68362         autoreconf. Instead, invoke autopoint explicitly but move back the
68363         *.m4 files from gnulib.
68364
68365 2006-10-11  Bruno Haible  <bruno@clisp.org>
68366
68367         * gnulib-tool (func_usage): Make module names after --create-testdir
68368         optional.
68369         (func_create_testdir): If no module was specified, use nearly all
68370         modules.
68371
68372 2006-10-12  Jim Meyering  <jim@meyering.net>
68373
68374         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68375         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68376         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68377         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68378         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68379         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68380         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68381         (fts_set_stat_required): New function.
68382         (fts_open): Defer the calls to fts_stat, if possible or requested.
68383         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68384         into fts_stat itself.
68385         (fts_read): Perform any required (deferred) fts_stat call.
68386         (fts_build): Likewise, for the directory we're about to open and read.
68387         In the readdir loop, carefully decide whether each entry will require
68388         an eventual call to fts_stat, using dirent.d_type info if available.
68389         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68390         a command line argument into this function.  Update all callers.
68391         Map a return value of FTS_DOT to FTS_D for a command line argument.
68392         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68393         Thanks to Miklos Szeredi for his tenacity and for the initial
68394         bug report about "find" failing on a FUSE-based file system.
68395
68396         * lib/fts.c (fts_open): Use consistent indentation.
68397
68398 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68401         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68402         reported by Jim Meyering.  All uses of cache variables renamed
68403         to match Autoconf's.
68404         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68405         the other one.
68406
68407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68408         Fix misspelling in diagnostic.
68409
68410 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68413         defined.  Problem reported by Matthew Woehlke.
68414
68415         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68416         Add support for Tandem NonStop R series.
68417         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68418         Use new macro.
68419
68420         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68421         (has_trailing_slash): Omit size arg; all callers changed.
68422         Omit 'inline', since it doesn't help performance and we'd
68423         need to configure it.
68424         Don't count //, ///, etc. as having a trailing slash.
68425         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68426         (rpl_rename_dest_slash): On failure, use rename's errno rather
68427         than (in some cases) an incorrect or junk errno.
68428         Simplify code by removing need to compute length; this does
68429         cause it to make two passes instead of one over the file name,
68430         but it's worth it.
68431
68432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68433         change, since Autoconf's version may no longer be appropriate now
68434         that we are using CVS Autoconf's version.  Add support for Tandem.
68435
68436 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68437             Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68440         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68441         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68442         gl_AC_TYPE_LONG_LONG.
68443
68444         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68445         instead of HAVE_LONG_LONG.
68446         * lib/printf-args.c (printf_fetchargs): Likewise.
68447         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68448         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68450         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68451         gl_AC_TYPE_LONG_LONG.
68452
68453 2006-10-11  Bruno Haible  <bruno@clisp.org>
68454
68455         * m4/longlong.m4: Add comments.
68456         * m4/ulonglong.m4: Likewise.
68457
68458 2006-10-10  Bruno Haible  <bruno@clisp.org>
68459
68460         Make it possible to #define stpcpy, strdup to aliases.
68461         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68462         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68463
68464 2006-10-10  Bruno Haible  <bruno@clisp.org>
68465
68466         Make it possible to #define gcd to an alias.
68467         * lib/gcd.c: Include config.h.
68468
68469 2006-10-10  Bruno Haible  <bruno@clisp.org>
68470
68471         Make it possible to #define c_isascii to an alias.
68472         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68473         defined. Undefine the macros before defining them, to avoid gcc
68474         warnings.
68475         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68476         define NO_C_CTYPE_MACROS early.
68477
68478 2006-10-10  Bruno Haible  <bruno@clisp.org>
68479
68480         Make it possible to #define set_program_name to an alias.
68481         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68482         ENABLE_RELOCATABLE early.
68483
68484 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68487         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68488         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68489         More generally, don't assume that 64-bit signed int is available
68490         if unsigned int is, and vice versa.
68491         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68492         unsigned symbols, not on their signed counterparts.
68493         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68494         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68495         (UINT64_C, UINTMAX_C):
68496         Likewise.
68497         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68498         unsigned counterparts.
68499         (Have_long_long, Unsigned): New macros.
68500         (Int): Renamed from INT.
68501         (strtoimax): Use the new macros.
68502         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68503         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68504         * modules/inttypes (inttypes.h): Substitute
68505         HAVE_UNSIGNED_LONG_LONG_INT.
68506         * modules/stdint (stdint.h): Likewise.
68507         (Files): Add m4/ulonglong.m4.
68508
68509 2006-10-10  Bruno Haible  <bruno@clisp.org>
68510
68511         Fix a gcc -Wshadow warning.
68512         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68513         to 'bucket'.
68514         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68515         gl_linked_indexof_from_to): Likewise.
68516         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68517         Likewise.
68518         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68519         Likewise.
68520         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68521         Reported by Eric Blake.
68522
68523 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68526         for NetBSD.  Problem reported by Bruno Haible.
68527
68528 2006-10-09  Jim Meyering  <jim@meyering.net>
68529
68530         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68531         Patch from Bruno Haible.
68532
68533 2006-10-09  Jim Meyering  <jim@meyering.net>
68534
68535         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68536         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68537         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68538
68539 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         Don't include <config.h> twice; this doesn't work in some cases,
68542         e.g., when config.h has "#define intmax_t long long int" and
68543         we include <config.h>, <inttypes.h>, <config.h> in that order.
68544         Problem reported by Matthew Woehlke in:
68545         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68546         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68547         * lib/fts-cycle.c: Don't include config.h.
68548         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68549         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68550         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68551         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68552         inttypes.h.
68553         * lib/xstrtoumax.c: Likewise.
68554         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68555         __strtol and the like, so that this module is more like its siblings.
68556         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68557         Remove; no longer needed now that we assume gnulib inttypes.h.
68558
68559 2006-10-08  Bruno Haible  <bruno@clisp.org>
68560
68561         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68562         option.
68563
68564 2006-10-07  Jim Meyering  <jim@meyering.net>
68565
68566         * modules/inttypes (inttypes.h): Revert what seems to have been
68567         an inadvertent part of today's change: use "|", not "/" in the
68568         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68569
68570 2006-10-07  Bruno Haible  <bruno@clisp.org>
68571
68572         * modules/sublist: New file.
68573
68574 2006-10-07  Bruno Haible  <bruno@clisp.org>
68575
68576         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68577         * modules/argz (argz.h): Likewise.
68578         * modules/arpa_inet (arpa/inet.h): Likewise.
68579         * modules/byteswap (byteswap.h): Likewise.
68580         * modules/configmake (configmake.h): Likewise.
68581         * modules/fcntl (fcntl.h): Likewise.
68582         * modules/fnmatch (fnmatch.h): Likewise.
68583         * modules/getopt (getopt.h): Likewise.
68584         * modules/glob (glob.h): Likewise.
68585         * modules/inttypes (inttypes.h): Likewise.
68586         * modules/netinet_in (netinet/in.h): Likewise.
68587         * modules/poll (poll.h): Likewise.
68588         * modules/stdbool (stdbool.h): Likewise.
68589         * modules/stdint (stdint.h): Likewise.
68590         * modules/sys_select (sys/select.h): Likewise.
68591         * modules/sys_socket (sys/socket.h): Likewise.
68592         * modules/sys_stat (sys/stat.h): Likewise.
68593         * modules/sysexits (sysexits.h): Likewise.
68594         * modules/unistd (unistd.h): Likewise.
68595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68596         Add a "DO NOT EDIT" comment to the generated file.
68597         (func_import): Likewise for gnulib-comp.m4.
68598
68599 2006-10-07  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/gl_sublist.h: New file.
68602         * lib/gl_sublist.c: New file.
68603
68604 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68605
68606         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68607         name (relative to the original working directory) and the file
68608         name component (relative to the temporary working directory).  All
68609         callers changed.
68610         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68611         * lib/mkdir-p.c (make_dir_parents): Likewise.
68612         * lib/mkdir-p.h (make_dir_parents): Likewise.
68613
68614 2006-10-06  Eric Blake  <ebb9@byu.net>
68615
68616         Define several macros for use by the clean-temp module.
68617         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68618         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68619         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68620
68621         * lib/clean-temp.h (close_stream_temp): New declaration.
68622         * lib/clean-temp.c (includes): Pull in headers according to what
68623         other modules are in use.
68624         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68625
68626 2006-10-06  Bruno Haible  <bruno@clisp.org>
68627
68628         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68629         instead of fopen, fwriteerror.
68630
68631 2006-10-06  Bruno Haible  <bruno@clisp.org>
68632
68633         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68634         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68635         int.
68636         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68637         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68638         Return an error indicator.
68639         Suggested by Eric Blake.
68640
68641 2006-10-06  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68644         Reported by Eric Blake.
68645
68646 2006-10-06  Bruno Haible  <bruno@clisp.org>
68647
68648         * modules/closeout (Description): Mention stderr too.
68649
68650 2006-10-06  Bruno Haible  <bruno@clisp.org>
68651         and Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * lib/closeout.c (close_stdout): Also close stderr.
68654         * lib/closeout.h: Update comment.
68655
68656 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68659         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68660         * lib/dirchownmod.c: Include lchown.h.
68661         * lib/lchown.c: Don't include files that lchown.h now includes.
68662         Don't declare chown, since lchown.h now does that.
68663         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68664         (lchown): Define to rpl_chown if lchown is declared but
68665         does not exist.  Declare using a prototype if lchown is not
68666         declared.  Add a copyright notice.
68667         * lib/mkstemp.h: Include <unistd.h>.
68668         * lib/openat.c: Include lchown.h.
68669
68670         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68671         we now test for that separately.
68672         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68673         rather than O_NOFOLLOW, when testing whether it's possible to
68674         avoid a race condition reliably.
68675         * lib/savewd.c (savewd_chdir): Likewise.
68676
68677         Remove macros that are no longer needed now that stdint.h is
68678         reliable.
68679         * lib/fsusage.c (UINTMAX_MAX): Remove.
68680         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68681         * lib/utimecmp.c (SIZE_MAX): Remove.
68682
68683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68684
68685         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68686         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68687         O_NOATIME works.
68688
68689 2006-10-05  Bruno Haible  <bruno@clisp.org>
68690
68691         * lib/gl_list.h (gl_sortedlist_search_from_to,
68692         gl_sortedlist_indexof_from_to): New declarations.
68693         (gl_list_implementation): New fields sortedlist_search_from_to,
68694         sortedlist_indexof_from_to.
68695         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68696         inline functions.
68697         * lib/gl_list.c (gl_sortedlist_search_from_to,
68698         gl_sortedlist_indexof_from_to): New functions.
68699         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68700         function.
68701         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68702         (gl_array_sortedlist_search_from_to): New function.
68703         (gl_array_list_implementation): Update.
68704         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68705         function.
68706         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68707         (gl_carray_sortedlist_search_from_to): New function.
68708         (gl_carray_list_implementation): Update.
68709         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68710         gl_linked_sortedlist_indexof_from_to): New functions.
68711         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68712         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68713         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68714         gl_tree_sortedlist_indexof_from_to): New functions.
68715         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68716         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68717         Update.
68718         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68719         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68720         Update.
68721
68722 2006-10-05  Bruno Haible  <bruno@clisp.org>
68723
68724         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68725         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68726         (struct gl_list_implementation): Add fields search_from_to,
68727         indexof_from_to. Remove fields search, indexof.
68728         (gl_list_search): Use the search_from_to method.
68729         (gl_list_search_from, gl_list_search_from_to): New functions.
68730         (gl_list_indexof): Use the indexof_from_to method.
68731         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68732         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68733         (gl_list_search_from, gl_list_search_from_to): New functions.
68734         (gl_list_indexof): Use the indexof_from_to method.
68735         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68736         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68737         gl_array_indexof. Add start_index, end_index arguments.
68738         (gl_array_search_from_to): Renamed from gl_array_search. Add
68739         start_index, end_index arguments.
68740         (gl_array_remove, gl_array_list_implementation): Update.
68741         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68742         gl_carray_indexof. Add start_index, end_index arguments.
68743         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68744         start_index, end_index arguments.
68745         (gl_carray_remove, gl_carray_list_implementation): Update.
68746         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68747         gl_linked_search. Add start_index, end_index arguments.
68748         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68749         start_index, end_index arguments.
68750         (gl_linked_remove): Update.
68751         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68752         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68753         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68754         field to 'size_t'.
68755         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68756         gl_tree_search. Add start_index, end_index arguments.
68757         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68758         start_index, end_index arguments.
68759         (gl_tree_remove): Update.
68760         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68761         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68762         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68763         function.
68764         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68765         gl_tree_search. Add start_index, end_index arguments.
68766         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68767         start_index, end_index arguments.
68768         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68769         Update.
68770         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68771
68772 2006-10-05  Bruno Haible  <bruno@clisp.org>
68773
68774         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68775
68776         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68777         fwriteerror_temp): New declarations.
68778         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68779         (descriptors): New variable.
68780         (cleanup): First, close the descriptors.
68781         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68782         fclose_temp, fwriteerror_temp): New functions.
68783
68784 2006-10-04  Jim Meyering  <jim@meyering.net>
68785
68786         * lib/fts.c (fts_open): Tiny comment change.
68787
68788 2006-10-04  Bruno Haible  <bruno@clisp.org>
68789
68790         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68791         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68792         gl_LOCK_BODY.
68793         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68794         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68795         gl_LOCK_EARLY_BODY.
68796         (gl_LOCK): Require gl_LOCK_BODY.
68797
68798 2006-10-04  Bruno Haible  <bruno@clisp.org>
68799
68800         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68801         (gl_oset_search_atleast): New declaration.
68802         (struct gl_oset_implementation): Add field 'search_atleast'.
68803         (gl_oset_search_atleast): New inline function.
68804         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68805         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68806         (gl_array_oset_implementation): Update.
68807         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68808         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68809         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68810
68811 2006-10-04  Bruno Haible  <bruno@clisp.org>
68812
68813         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68814
68815 2006-10-03  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68818         from gl_avltreehash_list_implementation.
68819
68820 2006-10-03  Bruno Haible  <bruno@clisp.org>
68821
68822         * lib/gl_oset.c (gl_oset_add): Fix return type.
68823
68824 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68825
68826         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68827
68828 2006-10-02  Eric Blake  <ebb9@byu.net>
68829
68830         * modules/strnlen (Depends-on): Add extensions.
68831
68832 2006-10-02  Eric Blake  <ebb9@byu.net>
68833
68834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68835         definition in 2.60+.
68836
68837 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68838
68839         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68840         checks.
68841
68842 2006-10-02  Bruno Haible  <bruno@clisp.org>
68843
68844         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68845         to the AUTOMAKE_OPTIONS.
68846         Reported by Jim Meyering.
68847
68848 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         Work around bug in Solaris 10 /proc file system:
68851         /proc/self/fd/NNN/.. isn't the parent directory of
68852         the directory whose file descriptor is NNN.  This needs to
68853         be worked around at run time, not compile time, since a
68854         program might be built on Solaris 8, where things work, and
68855         run on Solaris 10.
68856         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68857         to use the following interface instead:
68858         (OPENAT_BUFFER_SIZE): New macro.
68859         (openat_proc_name): New function.
68860         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68861         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68862         Likewise.
68863         * lib/openat-proc.c: New file.
68864         * modules/openat (Files): Add lib/openat-proc.c.
68865         (Depends-on): Add same-inode, stdbool.
68866         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68867
68868 2006-09-29  Bruno Haible  <bruno@clisp.org>
68869
68870         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68871         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68872         argument. Set stdout_closed before testing for ferror, not after.
68873         (fwriteerror, fwriteerror_no_ebadf): New functions.
68874
68875 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68876
68877         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68878
68879 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68880
68881         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68882         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68883
68884 2006-09-28  Jim Meyering  <jim@meyering.net>
68885
68886         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68887         Include <unistd.h>.
68888
68889 2006-09-28  Bruno Haible  <bruno@clisp.org>
68890
68891         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68892         * modules/linkedhash-list (Depends-on): Likewise.
68893         * modules/rbtreehash-list (Depends-on): Likewise.
68894
68895 2006-09-28  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/strndup.h: Simplify the redefinition of strndup.
68898         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68900
68901 2006-09-28  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68904         * lib/gl_linkedhash_list.c: Likewise.
68905         * lib/gl_rbtreehash_list.c: Likewise.
68906
68907 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68910         getaddrinfo.
68911
68912         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68913         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68914         it causes <stdio_ext.h> to cause a compile-time error.
68915         Problem reported by Nelson H. F. Beebe.
68916         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68917         of HAVE_DECL___PENDING.
68918
68919         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68920         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68921         declaration.
68922
68923 2006-09-27  Jim Meyering  <jim@meyering.net>
68924
68925         This file could end up with a definition for a function
68926         named __strndup, rather than rpl_strndup on a system with
68927         incomplete weak_alias support.
68928         * lib/strndup.c (strndup): Rename from __strndup.
68929         Remove #defines that used to map __strndup to strndup.
68930         Don't use K&R prototypes.
68931         Remove LIBC-related code, since this file is not sync'd with glibc.
68932         * lib/strndup.h: Revamp, accordingly.
68933         * m4/strndup.m4: Modernize.
68934
68935 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * modules/savewd (Depends-on): Add 'raise'.
68938         * lib/savewd.c: Include <signal.h>, for 'raise'.
68939
68940 2006-09-26  Jim Meyering  <jim@meyering.net>
68941
68942         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68943         when we detect Darwin 8.7.0's acl_get_file bug.
68944         Rearrange to perform the new (below) run-test while $LIBS
68945         contains any acl-related library.  Set USE_ACL at the end.
68946         (gl_ACL_GET_FILE): New function.
68947
68948 2006-09-26  Eric Blake  <ebb9@byu.net>
68949
68950         * lib/verror.c: Include <config.h> unconditionally.
68951
68952 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         * modules/clock-time (Maintainer): Add self.
68955         * modules/getlogin_r (Depends-on): Add extensions.
68956
68957 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68958
68959         * modules/clock-time: New module.
68960         * modules/nanosleep (Depends-on): Add clock-time.
68961         * modules/gethrxtime (Depends-on): Likewise.
68962         * modules/gettime (Depends-on): Likewise.
68963         * modules/settime (Depends-on): Likewise.
68964
68965         * modules/fts-lgpl: Depend on openat.
68966         * modules/mkancesdirs: Depend on savewd.
68967         * modules/mkdir-p: Likewise.
68968
68969 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68970
68971         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68972
68973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68974         `gl_have_arbitrary_file_name_length_limit' to
68975         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68976         actually works between configure runs.
68977
68978 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68979             Bruno Haible  <bruno@clisp.org>
68980
68981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68982
68983 2006-09-25  Jim Meyering  <jim@meyering.net>
68984
68985         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68986         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68987
68988 2006-09-25  Eric Blake  <ebb9@byu.net>
68989
68990         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68991         exec's in 2006-09-18 patch when shuffling fds.
68992
68993 2006-09-25  Bruno Haible  <bruno@clisp.org>
68994
68995         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68996         Reported by Jim Meyering.
68997
68998 2006-09-24  Jim Meyering  <jim@meyering.net>
68999
69000         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69001         compare a pointer against a literal "0".  That caused failures with
69002         at least HP-UX's hpcc.
69003
69004 2006-09-22  Simon Josefsson  <jas@extundo.com>
69005
69006         * modules/gc-sha1:
69007         * modules/gc-md4:
69008         * modules/gc-hmac-sha1:
69009         * modules/gc-hmac-md5:
69010         * modules/gc-des:
69011         * modules/gc-arcfour: Distribute more files.
69012
69013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69014
69015         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69016         (gl_linked_iterator_from_to): Initialize struct completely.
69017         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69018         (gl_tree_iterator_from_to): Likewise
69019         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69020         * lib/gl_array_list.c [lint] (gl_array_iterator)
69021         (gl_array_iterator_from_to): Likewise.
69022         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69023         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69024         (gl_carray_iterator_from_to): Likewise.
69025
69026         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69027         * lib/md4.c (md4_process_block): Remove unused variable.
69028         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69029         parentheses for clarity.
69030
69031 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69032
69033         * modules/bison-i18n (Depends-on): Add gettext.
69034
69035 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69036
69037         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69038         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69039         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69040         also add missing comma that caused broken test.
69041         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69042         stdlib.h, for `abort'.
69043         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69044         variables.
69045         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69046         include unistd.h if present, for `rmdir'.
69047         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69048         variables.
69049         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69050         in the process include standard headers for prototypes.
69051         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69052         gets declared on GNU/Linux.
69053         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69054         unistd.h, for `rmdir'.
69055         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69056
69057         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69058         always true.
69059         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69060
69061         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69062
69063 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69064
69065         * gnulib-tool (func_version): Create output all at once.  This
69066         may help avoid triggering unnecessary SIGPIPEs, and at any
69067         rate it doesn't hurt.
69068
69069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69070             Bruno Haible  <bruno@clisp.org>
69071
69072         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69073         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69074         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69075
69076         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69077         (gl_FUNC_VASPRINTF): Invoke it.
69078
69079 2006-09-22  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69082         getloadavg.c as first argument.
69083
69084 2006-09-22  Bruno Haible  <bruno@clisp.org>
69085
69086         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69087         at the beginning of the gl_INIT macro.
69088         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69089         gl_GETLOADAVG.
69090
69091 2006-09-22  Bruno Haible  <bruno@clisp.org>
69092
69093         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69094         module.
69095         Suggested by Ralf Wildenhues.
69096
69097 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         Import this patch from libc:
69100
69101         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69102
69103         * lib/regex_internal.c (re_string_reconstruct): Handle
69104         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69105         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69106         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69107         re_string_context_at.
69108
69109         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69110         now requires it.
69111         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69112         gl_REGEX now does it for us.
69113         (gl_REGEX): Add test taken from
69114         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69115
69116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69117         Check that large offsets work.  Modernize Autoconf usages.
69118         Prefer "yes" to mean a good thing rather than a bad.
69119         Don't put "#define mkstemp" in config.h, as this might interfere
69120         with standard system headers that "#define mkstemp mkstemp64".
69121
69122         * modules/mkstemp (Depends-on): Add extensions, so that
69123         mkstemp is visible on some platforms.
69124         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69125         (Include): Change to "mkstemp.h" from <stdlib.h>.
69126         (Files): Add mkstemp.h.
69127
69128         * lib/mkstemp.h: New file, since some standard headers
69129         #define mkstemp.
69130         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69131         Include "mkstemp.h".
69132         Make the _LIBC code resemble glibc original more,
69133         e.g., use K&R style.
69134         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69135         (mkstemp): Remove, since mkstemp.h does this for us.
69136         * lib/stdlib--.h: Include mkstemp.h.
69137
69138         Import this patch from libc:
69139
69140         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69141
69142         * lib/tempname.c (__gen_tempname): Change attempts_min
69143         into a macro.  Use preprocessor to decide how to initialize
69144         attempts [Coverity CID 67].
69145
69146 2006-09-20  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/mkdtemp.c: Import from libc.
69149         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69150                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69151                 attempts_min into a macro.  Use preprocessor to decide how to
69152                 initialize attempts [Coverity CID 67].
69153         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69154                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69155                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69156
69157 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69158
69159         * gnulib-tool (func_exit): New function, to allow to pass the
69160         exit status portably through the trap.  Use everywhere.
69161         (--help, --version): Signal a write error.
69162         (trap): catch SIGPIPE, for write errors.
69163         Exit at the end of the trap, with the correct exit status.
69164
69165 2006-09-19  Karl Berry  <karl@gnu.org>
69166
69167         * doc/gnulib.texi: note about the license texinfo files.
69168
69169 2006-09-19  Eric Blake  <ebb9@byu.net>
69170
69171         * gnulib-tool: Avoid space-tab.
69172
69173 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69176         that prevented coreutils 6.1 from building.  Problem reported
69177         by Petter Reinholdtsen.
69178
69179 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * gnulib-tool (avoidlist): Fix typo that broke options like
69182         --avoid=lock that are used by coreutils bootstrap.
69183
69184 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69185
69186         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69187         more systematically.
69188
69189 2006-09-18  Jim Meyering  <jim@meyering.net>
69190
69191         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69192
69193 2006-09-18  Bruno Haible  <bruno@clisp.org>
69194
69195         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69196
69197 2006-09-18  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69200         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69201         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69202         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69203         * m4/gettext.m4: Require autoconf >= 2.52.
69204         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69205         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69206         of gl_cv_header_inttypes_h.
69207
69208 2006-09-18  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/javaversion.c: Include configmake.h.
69211
69212 2006-09-18  Bruno Haible  <bruno@clisp.org>
69213
69214         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69215         avoid that the while loops be executed in a subshell.
69216
69217 2006-09-18  Bruno Haible  <bruno@clisp.org>
69218
69219         * MODULES.html.sh (func_module): Break long lines.
69220         Suggested by Bruce Korb <bkorb@gnu.org>.
69221
69222 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69223
69224         Speed up by a factor of 1.12.
69225         * gnulib-tool (nl): New variable.
69226         (func_import): Rewrite include directive extraction to only read each
69227         directive once.
69228
69229 2006-09-17  Bruno Haible  <bruno@clisp.org>
69230
69231         * modules/javaversion (Makefile.am): Remove DEFS setting.
69232         (Depends-on): Add configmake, for PKGDATADIR definition.
69233
69234 2006-09-17  Bruno Haible  <bruno@clisp.org>
69235
69236         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69237
69238 2006-09-17  Bruno Haible  <bruno@clisp.org>
69239
69240         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69241         (func_modules_transitive_closure, func_modules_add_dummy,
69242         func_modules_to_filelist, func_import, func_create_testdir,
69243         func_create_megatestdir, ...): Use it wherever possible.
69244         Suggested by Ralf Wildenhues.
69245
69246 2006-09-16  Karl Berry  <karl@gnu.org>
69247
69248         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69249         to avoid sectioning errors.
69250         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69251         [ifinfo]: blank line after @center-ed titles.
69252         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69253         Spell FSF address consistently with others.
69254         (These changes approved by rms.)
69255
69256 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69257
69258         Speed up by a factor of 1.61.
69259         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69260         already checked module names again.
69261
69262 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69263
69264         Speed up by a factor of 1.13.
69265         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69266         for new_files, and the input to func_add_or_update.
69267
69268 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69269
69270         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69271         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69272
69273 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * modules/mkancesdirs (Depends-on): Add fcntl.
69276         * modules/savewd: New file.
69277         * MODULES.html.sh (File system functions): Add savewd.
69278
69279         * modules/configmake (Makefile.am): Add support for the
69280         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69281
69282 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * m4/savewd.m4: New file.
69285
69286 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69289         (dirchownmod): New arg FD.  All callers changed.
69290         Use FD rather than opening the directory ourself, as opening is
69291         now the caller's responsibility.
69292         * lib/dirchownmod.h: Likewise.
69293         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69294         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69295         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69296         (test_dir): Remove.
69297         (mkancesdirs): Return length of prefix of FILE that has already
69298         been made, or -2 if there is a child doing the work.  Redo
69299         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69300         ".", and treat ".." specially since it might stray back into
69301         already-created areas.  Use a subprocess if necessary.  New arg
69302         WD; all users changed.  MAKE_DIR function should now return 1
69303         if it creates a directory that is not readable.  Return -2 if
69304         a child process is spun off.
69305         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69306         Adjust signature to match code.
69307         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69308         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69309         all users changed.
69310         * lib/savewd.c, lib/savewd.h: New files.
69311
69312 2006-09-15  Jim Meyering  <jim@meyering.net>
69313
69314         * modules/rename-dest-slash: New module.
69315         * MODULES.html.sh (posix_compat): Add it here.
69316
69317         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69318
69319 2006-09-15  Jim Meyering  <jim@meyering.net>
69320
69321         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69322         file.
69323
69324         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69325
69326 2006-09-15  Jim Meyering  <jim@meyering.net>
69327
69328         * lib/rename-dest-slash.c (has_trailing_slash): Use
69329         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69330         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69331         test before testing whether SRC is a directory.
69332         Suggestions from Bruno Haible.
69333
69334         Avoid a warning about an unused variable.
69335         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69336         into the #ifdef block where it's used.
69337
69338         * lib/rename-dest-slash.c: New file.
69339
69340 2006-09-14  Bruno Haible  <bruno@clisp.org>
69341
69342         * lib/allocsa.c: Include <config.h> unconditionally.
69343         * lib/asnprintf.c: Likewise.
69344         * lib/asprintf.c: Likewise.
69345         * lib/c-strcasecmp.c: Likewise.
69346         * lib/c-strcasestr.c: Likewise.
69347         * lib/c-strncasecmp.c: Likewise.
69348         * lib/c-strstr.c: Likewise.
69349         * lib/classpath.c: Likewise.
69350         * lib/clean-temp.c: Likewise.
69351         * lib/concatpath.c: Likewise.
69352         * lib/copy-file.c: Likewise.
69353         * lib/csharpcomp.c: Likewise.
69354         * lib/csharpexec.c: Likewise.
69355         * lib/execute.c: Likewise.
69356         * lib/fatal-signal.c: Likewise.
69357         * lib/findprog.c: Likewise.
69358         * lib/fwriteerror.c: Likewise.
69359         * lib/gl_array_list.c: Likewise.
69360         * lib/gl_array_oset.c: Likewise.
69361         * lib/gl_avltree_list.c: Likewise.
69362         * lib/gl_avltree_oset.c: Likewise.
69363         * lib/gl_avltreehash_list.c: Likewise.
69364         * lib/gl_carray_list.c: Likewise.
69365         * lib/gl_linked_list.c: Likewise.
69366         * lib/gl_linkedhash_list.c: Likewise.
69367         * lib/gl_list.c: Likewise.
69368         * lib/gl_oset.c: Likewise.
69369         * lib/gl_rbtree_list.c: Likewise.
69370         * lib/gl_rbtree_oset.c: Likewise.
69371         * lib/gl_rbtreehash_list.c: Likewise.
69372         * lib/imaxabs.c: Likewise.
69373         * lib/imaxdiv.c: Likewise.
69374         * lib/javacomp.c: Likewise.
69375         * lib/javaexec.c: Likewise.
69376         * lib/javaversion.c: Likewise.
69377         * lib/linebreak.c: Likewise.
69378         * lib/localcharset.c: Likewise.
69379         * lib/lock.c: Likewise.
69380         * lib/mbchar.c: Likewise.
69381         * lib/mbswidth.c: Likewise.
69382         * lib/mkdtemp.c: Likewise.
69383         * lib/pipe.c: Likewise.
69384         * lib/printf-args.c: Likewise.
69385         * lib/printf-parse.c: Likewise.
69386         * lib/progname.c: Likewise.
69387         * lib/progreloc.c: Likewise.
69388         * lib/readlink.c: Likewise.
69389         * lib/sh-quote.c: Likewise.
69390         * lib/stpcpy.c: Likewise.
69391         * lib/stpncpy.c: Likewise.
69392         * lib/strcasecmp.c: Likewise.
69393         * lib/strcasestr.c: Likewise.
69394         * lib/strcspn.c: Likewise.
69395         * lib/striconv.c: Likewise.
69396         * lib/strncasecmp.c: Likewise.
69397         * lib/strnlen1.c: Likewise.
69398         * lib/strstr.c: Likewise.
69399         * lib/strtok_r.c: Likewise.
69400         * lib/tls.c: Likewise.
69401         * lib/tmpdir.c: Likewise.
69402         * lib/unicodeio.c: Likewise.
69403         * lib/unsetenv.c: Likewise.
69404         * lib/vasnprintf.c: Likewise.
69405         * lib/vasprintf.c: Likewise.
69406         * lib/wait-process.c: Likewise.
69407         * lib/xallocsa.c: Likewise.
69408         * lib/xsetenv.c: Likewise.
69409         * lib/xstriconv.c: Likewise.
69410
69411 2006-09-13  Simon Josefsson  <jas@extundo.com>
69412
69413         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69414         that internally, suggested by Ralf Wildenhues
69415         <Ralf.Wildenhues@gmx.de>.
69416
69417 2006-09-13  Simon Josefsson  <jas@extundo.com>
69418
69419         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69420         @LIBOBJS@.
69421         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69422
69423 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69426         longer worry about uses that don't define HAVE_CONFIG_H.
69427         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69428         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69429         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69430         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69431         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69432         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69433         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69434         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69435         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69436         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69437         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69438         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69439         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69440         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69441         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69442         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69443         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69444         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69445         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69446         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69447         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69448         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69449         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69450         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69451         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69452         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69453         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69454         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69455         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69456         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69457         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69458         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69459         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69460         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69461         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69462         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69463         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69464         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69465         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69466         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69467         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69468         Likewise.
69469
69470 2006-09-13  Eric Blake  <ebb9@byu.net>
69471
69472         * lib/getopt.c: Fix typo in last commit.
69473
69474 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69475
69476         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69477         dgettext.
69478
69479 2006-09-12  Jim Meyering  <jim@meyering.net>
69480
69481         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69482         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69483         Reported by Nelson H. F. Beebe.
69484
69485 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69486
69487         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69488         program_invocation_name and program_invocation_short_name are
69489         initialized.
69490         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69491         and program_invocation_short_name to argp.h, so they are visible
69492         to user programs.
69493         * lib/argp.h: Likewise
69494
69495 2006-09-10  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69498         m4/inttypes_h.m4, m4/uintmax_t.m4.
69499
69500 2006-09-10  Bruno Haible  <bruno@clisp.org>
69501
69502         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69503         gl_AC_TYPE_UINTMAX_T.
69504
69505 2006-09-10  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69508
69509 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69510
69511         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69512         convention.  Text proposed by Bruno Haible.
69513         (struct argp_option): Document the use of N_() wrappers.
69514
69515         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69516         '\v', and translate the two parts separately, instead of feeding
69517         the whole string to gettext.  This allows to exclude
69518         '\v' from the strings visible to the translator by writing doc
69519         strings as N_("..") "\v" N_("..").
69520
69521 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * config/srclist.txt: Undo latest change; the bug was fixed.
69524
69525 2006-09-09  Bruno Haible  <bruno@clisp.org>
69526
69527         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69528         assignments if building a library without libtool.
69529         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69530         in func_emit_lib_Makefile_am.
69531         (func_import): When building a static library libfoo.a, arrange to
69532         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69533         (func_create_testdir): Likewise.
69534         * modules/gc (configure.ac, Makefile.am): If building statically,
69535         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69536         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69537         * modules/striconv (configure.ac, Makefile.am): Likewise.
69538         Based on a suggestion by Ralf Wildenhues.
69539
69540 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69543         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69544         Also:
69545
69546         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69547         Add year_2050_test to catch glibc bug 2821
69548         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69549
69550         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69551         Prefer #ifdef to #if.
69552
69553         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69554         Return from 'main' instead of calling 'exit'.
69555
69556 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69559         returned the maximum time_t value rather than (time_t) -1.
69560         Problem originally reported by William Bardwell
69561         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69562
69563         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69564         Moved to here ...
69565         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69566         ... from here.
69567
69568 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69571         2821 is fixed.
69572
69573 2006-09-08  Jim Meyering  <jim@meyering.net>
69574
69575         Don't make generated files read-only.  That would bother too many
69576         people.  However, do retain the ability to work when targets are
69577         read-only: remove the destination and temporary files before writing
69578         them (when generated via sed or echo), or by using the -f option for
69579         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69580         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69581         * modules/byteswap, modules/configmake, modules/fcntl:
69582         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69583         * modules/localcharset, modules/netinet_in, modules/poll:
69584         * modules/stdbool, modules/stdint, modules/sys_select:
69585         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69586
69587 2006-09-08  Jim Meyering  <jim@meyering.net>
69588
69589         Avoid new build failure on FreeBSD 6.0.
69590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69591         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69592         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69593
69594 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69595
69596         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69597
69598 2006-09-07  Jim Meyering  <jim@meyering.net>
69599
69600         Fix global typo in last change: use chmod u-w, not chmod u-x.
69601         Spotted by Paul Eggert and Bruce Korb.
69602         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69603         * modules/byteswap, modules/configmake, modules/fcntl:
69604         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69605         * modules/localcharset, modules/netinet_in, modules/poll:
69606         * modules/stdbool, modules/stdint, modules/sys_select:
69607         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69608
69609 2006-09-06  Jim Meyering  <jim@meyering.net>
69610
69611         Make generated files be read-only.
69612         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69613         Ensure that each generated file is now read-only.
69614         * modules/argz: Likewise.
69615         * modules/arpa_inet: Likewise.
69616         * modules/byteswap: Likewise.
69617         * modules/configmake: Likewise.
69618         * modules/fcntl: Likewise.
69619         * modules/fnmatch: Likewise.
69620         * modules/getopt: Likewise.
69621         * modules/glob: Likewise.
69622         * modules/inttypes: Likewise.
69623         * modules/netinet_in: Likewise.
69624         * modules/poll: Likewise.
69625         * modules/stdbool: Likewise.
69626         * modules/stdint: Likewise.
69627         * modules/sys_select: Likewise.
69628         * modules/sys_socket: Likewise.
69629         * modules/sys_stat: Likewise.
69630         * modules/sysexits: Likewise.
69631         * modules/localcharset: Same as above, but continue using temporary
69632         file named "t-$@" (why different?) rather than the "$@-t" used
69633         everywhere else.
69634
69635         * modules/sysexits (Makefile.am): Replace literal occurrences
69636         of "sysexit.h" more readable, and more consistent, "$@".
69637
69638 2006-09-06  Bruno Haible  <bruno@clisp.org>
69639
69640         * modules/striconv: New file.
69641         * modules/xstriconv: New file.
69642         * MODULES.html.sh (Internationalization functions): Add striconv,
69643         xstriconv.
69644
69645 2006-09-06  Bruno Haible  <bruno@clisp.org>
69646
69647         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69648         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69649         not using libtool correctly.
69650
69651 2006-09-06  Bruno Haible  <bruno@clisp.org>
69652
69653         * lib/striconv.h: New file.
69654         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69655         iconvstring.c.
69656         * lib/xstriconv.h: New file.
69657         * lib/xstriconv.c: New file.
69658
69659 2006-09-06  Bruno Haible  <bruno@clisp.org>
69660
69661         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69662         lib_..._LDFLAGS.
69663
69664 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69665
69666         * lib/argz_.h: Sync from Libtool.
69667
69668         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69669                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69670
69671         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69672
69673 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69674
69675         * modules/trim: New file.
69676
69677 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69678
69679         * lib/trim.h: New file.
69680         * lib/trim.c: New file.
69681
69682 2006-09-05  Bruno Haible  <bruno@clisp.org>
69683
69684         * MODULES.html.sh (String handling): Add trim.
69685
69686 2006-09-04  Karl Berry  <karl@gnu.org>
69687
69688         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69689         until next release.
69690
69691 2006-09-03  Bruno Haible  <bruno@clisp.org>
69692
69693         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69694         correctly.
69695
69696 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69699         not gl_GETLOADAVG.  Omit unneeded semicolons.
69700         Problems reported by Ralf Wildenhues in
69701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69702         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69703         at the end, which is the usual gnulib style.
69704
69705         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69706         of doing all the work ourselves.
69707         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69708         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69709
69710 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69713         Problem reported by Ralf Wildenhues in
69714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69715
69716         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69717         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69718
69719 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69722         yesterday's patch by changing test -n to test -z.
69723
69724 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69727         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69728         the former is now obsolescent.
69729
69730         * modules/chdir-long (Depends-on): Add fcntl.
69731
69732 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69735         obsolescent, and programs should use gnulib instead.
69736         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69737         but with prefixes changed.
69738
69739 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69742         or stdbool.h, because they might not exist while configuring.
69743
69744         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69745         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69746         does that for us.
69747         (O_DIRECTORY): Remove.
69748
69749 2006-08-31  Eric Blake  <ebb9@byu.net>
69750
69751         * gnulib-tool: Don't let emacs change spaces to TAB.
69752
69753 2006-08-31  Bruno Haible  <bruno@clisp.org>
69754
69755         * gnulib-tool: When calling func_import more than once, do it in a
69756         subshell.
69757         Reported by Eric Blake <ebb9@byu.net>.
69758
69759 2006-08-31  Bruno Haible  <bruno@clisp.org>
69760
69761         * gnulib-tool (nl): Remove variable.
69762         (sed_transform_lib_file): Use more robust test for config-h module.
69763         (func_import): Fix typo in 2006-08-25 patch.
69764
69765 2006-08-31  Bruno Haible  <bruno@clisp.org>
69766
69767         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69768         specified, augment Makefile.am variables instead of assigning them.
69769
69770 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69771
69772         Work around a bug in both the Linux and SunOS 64-bit kernels:
69773         nanosleep mishandles sleeps for longer than 2**31 seconds.
69774         Problem reported by Frank v Waveren in
69775         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69777         Check for nanosleep bug.
69778         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69779
69780 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         Work around a bug in both the Linux and SunOS 64-bit kernels:
69783         nanosleep mishandles sleeps for longer than 2**31 seconds.
69784         Problem reported by Frank v Waveren in
69785         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69786         * lib/nanosleep.c (BILLION): New constant.
69787         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69788         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69789         implementation.
69790
69791 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * modules/nanosleep (Depends-on): Add gettime.
69794
69795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69796         and Simon Josefsson  <jas@extundo.com>
69797         and Oskar Liljeblad  <oskar@osk.mine.nu>
69798
69799         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69800         * gnulib-tool (func_import): New license type 'unmodifiable license
69801         text'.
69802         * modules/fdl: Use it.  Longer description.
69803         * module/gpl, module/lgpl: New files.
69804
69805 2006-08-30  Jim Meyering  <jim@meyering.net>
69806
69807         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69808         shadowing the parameter.
69809
69810 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69811
69812         Sync from Libtool:
69813
69814         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69815
69816         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69817         sharing with gnulib.  Report by Eric Blake.
69818
69819 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69820
69821         * modules/isapipe: New file.
69822         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69823
69824 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * modules/configmake (Makefile.am): Add a comment, and omit
69827         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69828         by Bruno Haible.
69829
69830 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * m4/isapipe.m4: New file.
69833
69834 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * lib/isapipe.c, lib/isapipe.h: New files.
69837
69838 2006-08-29  Jim Meyering  <jim@meyering.net>
69839
69840         * modules/configmake (Makefile.am): Make configmake.h depend on
69841         Makefile.  Otherwise, a stale configmake.h could hang around.
69842
69843 2006-08-29  Eric Blake  <ebb9@byu.net>
69844
69845         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69846         resolution of upstream bug 3044.
69847
69848 2006-08-29  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/localcharset (Depends-on): Add configmake.
69851         (Makefile.am): Remove setting of LIBDIR through DEFS.
69852
69853 2006-08-29  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69856         defined.
69857
69858 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * modules/fcntl: New file.
69861         * modules/chdir-safer (Depends-on): Add fcntl.
69862         * modules/fts: Likewise.
69863         * modules/mkdir-p: Likewise.
69864
69865         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69866         This undoes the most recent change, since we're now addressing the
69867         problem in a different way.
69868
69869         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69870         into output, since the output might be called Makefile.am even
69871         if $makefile_name is something different.
69872         (func_import): Use $makefile_am rather than
69873         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69874         empty.
69875
69876         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69877
69878 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69881         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69882         recent change to stdint.m4, since we're now addressing the problem in a
69883         different way.
69884
69885 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * m4/fcntl_h.m4: New file.
69888
69889 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * lib/fcntl_.h: New file.
69892         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69893         the fcntl module.
69894         * lib/dirchownmod.c: Likewise.
69895         * lib/fts.c: Likewise.
69896
69897         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69898         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69899         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69900         just before including <inttypes.h>, to avoid circular inclusion.
69901
69902 2006-08-28  Jim Meyering  <jim@meyering.net>
69903
69904         * doc/visibility.texi: Actually read and correct the grammar of the
69905         sentence affected by yesterday's change.
69906
69907 2006-08-28  Eric Blake  <ebb9@byu.net>
69908
69909         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69910         needs wrapper.
69911
69912 2006-08-28  Eric Blake  <ebb9@byu.net>
69913
69914         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69915
69916 2006-08-28  Eric Blake  <ebb9@byu.net>
69917
69918         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69919
69920 2006-08-28  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/c-strstr: New file, from GNU gettext.
69923         * MODULES.html.sh (String handling): Add c-strstr.
69924
69925 2006-08-28  Bruno Haible  <bruno@clisp.org>
69926
69927         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69928         macros.
69929         Reported by Eric Blake.
69930
69931 2006-08-28  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69934         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69935         * lib/vasprintf.c: Include errno.h, limits.h.
69936         (EOVERFLOW): New fallback definition.
69937         (vasprintf): Test here whether the string length is > INT_MAX.
69938         * lib/vsnprintf.c: Include errno.h, limits.h.
69939         (EOVERFLOW): New fallback definition.
69940         (vsnprintf): Fix bug when generated string was too long for the buffer.
69941         Test here whether the string length is > INT_MAX.
69942
69943 2006-08-28  Bruno Haible  <bruno@clisp.org>
69944
69945         * lib/inttypes_.h (SCNX*): Remove definitions.
69946         Reported by Eric Blake.
69947
69948 2006-08-28  Bruno Haible  <bruno@clisp.org>
69949
69950         * lib/c-strstr.h: New file, from GNU gettext.
69951         * lib/c-strstr.c: New file, from GNU gettext.
69952
69953 2006-08-28  Bruno Haible  <bruno@clisp.org>
69954
69955         * gnulib-tool: Reorder some statements.
69956
69957 2006-08-28  Bruno Haible  <bruno@clisp.org>
69958
69959         * gnulib-tool: New option --makefile-name.
69960         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69961         $makefile_name.
69962         (func_import): Write $makefile_name to the cache file, and read it from
69963         there unless explicitly specified. Use $makefile_name as file name
69964         instead of Makefile.am. Adjust the recommendations accordingly.
69965
69966 2006-08-28  Bruno Haible  <bruno@clisp.org>
69967
69968         * gnulib-tool (func_verify_module): Check against misapplying patch.
69969
69970 2006-08-28  Bruno Haible  <bruno@clisp.org>
69971
69972         * gnulib-tool (func_relativize, func_relconcat): New functions.
69973         Give an error if --local-dir is given with --update.
69974         Remove trailing slashes from $local_gnulib_dir.
69975         (func_import): Store the relativized $local_gnulib_dir in
69976         gnulib-cache.m4, and read it from there if not specified explicitly.
69977
69978 2006-08-28  Bruno Haible  <bruno@clisp.org>
69979
69980         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69981         is the current directory. Respect also $local_gnulib_dir.
69982
69983 2006-08-28  Bruno Haible  <bruno@clisp.org>
69984             Simon Josefsson  <jas@extundo.com>
69985
69986         BeOS portability.
69987         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69988
69989 2006-08-27  Jim Meyering  <jim@meyering.net>
69990
69991         * doc/visibility.texi: Remove duplicate word: "pointer".
69992
69993 2006-08-26  Bruno Haible  <bruno@clisp.org>
69994
69995         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69996         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69997         (Makefile.am): Create inttypes.h from inttypes_.h.
69998         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69999
70000         * modules/imaxabs: New file.
70001
70002         * modules/imaxdiv: New file.
70003
70004 2006-08-26  Bruno Haible  <bruno@clisp.org>
70005
70006         * m4/inttypes.m4: New file.
70007         * m4/_inttypes_h.m4: Remove file.
70008         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70009         PRI_MACROS_BROKEN.
70010         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70011
70012         * m4/imaxabs.m4: New file.
70013
70014         * m4/imaxdiv.m4: New file.
70015
70016 2006-08-26  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/inttypes_.h: New file.
70019         * lib/inttypes.h: Remove file.
70020         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70021
70022         * lib/imaxabs.c: New file.
70023
70024         * lib/imaxdiv.c: New file.
70025
70026 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         New config-h module, so that "make" output needn't be cluttered
70029         by -DHAVE_CONFIG_H.
70030         * MODULES.html.sh (Support for building libraries and executables):
70031         Add config-h.
70032         * modules/config-h: New file.
70033         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70034         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70035         the config-h module is used.
70036
70037         New configmake module, so that "make" output needn't be cluttered
70038         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70039         * MODULES.html.sh (Support for building libraries and executables):
70040         Add configmake.
70041         * modules/configmake: New file.
70042
70043 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * m4/config-h.m4: New file.
70046
70047 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * config/srclist.txt: Add elisp-comp.
70050
70051 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * MODULES.html.sh (Support for building libraries and executables):
70054         Add elisp-comp.
70055         * build-aux/elisp-comp: New file.
70056         * modules/elisp-comp: New file.
70057
70058 2006-08-24  Bruno Haible  <bruno@clisp.org>
70059
70060         * gnulib-tool (func_create_testdir): Use non-default values of
70061         sourcebase and m4base.
70062
70063 2006-08-24  Bruno Haible  <bruno@clisp.org>
70064
70065         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70066         HTML structure.
70067
70068 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * modules/openat (Depends-on): Add lchown.
70071
70072 2006-08-23  Bruno Haible  <bruno@clisp.org>
70073
70074         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70075         of gl_LOCK_EARLY instead of gl_LOCK.
70076
70077 2006-08-23  Bruno Haible  <bruno@clisp.org>
70078
70079         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70080         on OSF/1 to no.
70081         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70082
70083 2006-08-23  Bruno Haible  <bruno@clisp.org>
70084
70085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70086         as unusable.
70087
70088         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70089         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70090         (gl_LOCK): New macro.
70091
70092 2006-08-22  Simon Josefsson  <jas@extundo.com>
70093
70094         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70095         to md5 module.
70096
70097 2006-08-22  Simon Josefsson  <jas@extundo.com>
70098
70099         * MODULES.html.sh: Add "Support for maintaining and release
70100         projects".
70101
70102         * build-aux/gnupload: New file, from coreutils.
70103
70104 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         Avoid the need for AC_LIBSOURCES in m4 macros.
70107         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70108         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70109         * modules/check-version (EXTRA_DIST): Add check-version.h.
70110         * modules/crc (EXTRA_DIST): Add crc.h.
70111         * modules/des (EXTRA_DIST): Add des.h.
70112         * modules/gc (EXTRA_DIST): Add gc.h.
70113         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70114         * modules/getline (EXTRA_DIST): Add getline.h.
70115         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70116         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70117         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70118         * modules/md2 (EXTRA_DIST): Add md2.h.
70119         * modules/md4 (EXTRA_DIST): Add md4.h.
70120         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70121         * modules/read-file (EXTRA_DIST): Add read-file.h.
70122         * modules/readline (EXTRA_DIST): Add readline.h.
70123         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70124         rijndael-api-fst.h.
70125
70126 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * m4/rijndael.m4 (gl_ARCFOUR):
70129         * m4/arctwo.m4 (gl_ARCTWO):
70130         * m4/check-version.m4 (gl_CHECK_VERSION):
70131         * m4/crc.m4 (gl_CRC):
70132         * m4/des.m4 (gl_DES):
70133         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70134         * m4/gc.m4 (gl_GC):
70135         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70136         * m4/getline.m4 (gl_FUNC_GETLINE):
70137         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70138         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70139         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70140         * m4/md2.m4 (gl_MD2):
70141         * m4/md4.m4 (gl_MD4):
70142         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70143         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70144         * m4/readline.m4 (gl_FUNC_READLINE):
70145         * m4/rijndael.m4 (gl_RIJNDAEL):
70146         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70147         to get the necessary .h files and whatnot.
70148
70149 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70152         gnulib rather than the other way around.
70153         * config/srclistvars.sh (COREUTILS): Remove.
70154
70155 2006-08-22  Jim Meyering  <jim@meyering.net>
70156
70157         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70158
70159         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70160
70161 2006-08-22  Eric Blake  <ebb9@byu.net>
70162
70163         * modules/regexprops-generic: New file.
70164         * MODULES.html.sh (Support for building documentation): List it.
70165
70166 2006-08-22  Eric Blake  <ebb9@byu.net>
70167
70168         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70169         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70170         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70171         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70172
70173 2006-08-22  Bruno Haible  <bruno@clisp.org>
70174
70175         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70176         and lib_LTLIBRARIES like the other lib_* variables.
70177
70178 2006-08-22  Bruno Haible  <bruno@clisp.org>
70179
70180         * build-aux/x-to-1.in: New file, from GNU gettext.
70181
70182 2006-08-22  Bruno Haible  <bruno@clisp.org>
70183
70184         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70185         <utmpx.h> exists.
70186
70187 2006-08-22  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70190         <utmpx.h> exists.
70191
70192 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         BeOS portability.
70195         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70196         exist.
70197         Problem reported by Bruno Haible.
70198
70199 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         Avoid the need for AC_LIBSOURCES in m4 macros.
70202         * modules/acl (EXTRA_DIST): Add acl.h.
70203         * modules/argmatch (Files): Add m4/argmatch.m4.
70204         (configure.ac): Add gl_ARGMATCH.
70205         (EXTRA_DIST): Renamed from lib_SOURCES, for
70206         consistency with the other modules.  Remove argmatch.c.
70207         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70208         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70209         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70210         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70211         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70212         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70213         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70214         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70215         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70216         * modules/closeout (EXTRA_DIST): Add closeout.h.
70217         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70218         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70219         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70220         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70221         dirname.h; remove basename.c and stripslash.c.
70222         * modules/exclude (EXTRA_DIST): Add exclude.h.
70223         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70224         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70225         * modules/file-type (EXTRA_DIST): Add file-type.h.
70226         * modules/filemode (EXTRA_DIST): Add filemode.h.
70227         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70228         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70229         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70230         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70231         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70232         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70233         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70234         * modules/getdate (EXTRA_DIST): Add getdate.c.
70235         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70236         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70237         * modules/getpass (EXTRA_DIST): Add getpass.h.
70238         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70239         * modules/group-member (EXTRA_DIST): Add group-member.h.
70240         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70241         * modules/hash (EXTRA_DIST): Add hash.h.
70242         * modules/human (EXTRA_DIST): Add human.h.
70243         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70244         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70245         * modules/lchown (EXTRA_DIST): Add lchown.h.
70246         * modules/long-options (EXTRA_DIST): Add long-options.h.
70247         * modules/lstat (EXTRA_DIST): Add lstat.h.
70248         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70249         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70250         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70251         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70252         * modules/memxor (EXTRA_DIST): Add memxor.h.
70253         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70254         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70255         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70256         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70257         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70258         * modules/physmem (EXTRA_DIST): Add physmem.h.
70259         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70260         * modules/posixver (EXTRA_DIST): Add posixver.h.
70261         * modules/quote (EXTRA_DIST): Add quote.h.
70262         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70263         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70264         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70265         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70266         regex_internal.h regexec.c.
70267         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70268         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70269         * modules/same (EXTRA_DIST): Add same.h.
70270         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70271         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70272         * modules/savedir (EXTRA_DIST): Add savedir.h.
70273         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70274         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70275         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70276         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70277         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70278         * modules/strdup (EXTRA_DIST): Add strdup.h.
70279         * modules/strftime (EXTRA_DIST): Add strftime.h.
70280         * modules/strndup (EXTRA_DIST): Add strndup.h.
70281         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70282         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70283         * modules/time_r (EXTRA_DIST): Add time_r.h.
70284         * modules/timespec (EXTRA_DIST): Add timespec.h.
70285         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70286         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70287         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70288         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70289         * modules/userspec (EXTRA_DIST): Add userspec.h.
70290         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70291         * modules/utimens (EXTRA_DIST): Add utimens.h.
70292         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70293         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70294         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70295         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70296         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70297         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70298         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70299         * modules/yesno (EXTRA_DIST): Add yesno.h.
70300
70301 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70302
70303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70304
70305         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70306         * m4/dev-ino.m4, same-inode.m4: Remove.
70307
70308         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70309         * m4/acl.m4 (AC_FUNC_ACL):
70310         * m4/backupfile.m4 (gl_BACKUPFILE):
70311         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70312         * m4/canon-host.m4 (gl_CANON_HOST):
70313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70315         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70316         * m4/cloexec.m4 (gl_CLOEXEC):
70317         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70318         * m4/closeout.m4 (gl_CLOSEOUT):
70319         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70320         * m4/dirname.m4 (gl_DIRNAME):
70321         * m4/exclude.m4 (gl_EXCLUDE):
70322         * m4/exitfail.m4 (gl_EXITFAIL):
70323         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70324         * m4/file-type.m4 (gl_FILE_TYPE):
70325         * m4/filemode.m4 (gl_FILEMODE):
70326         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70327         * m4/fpending.m4 (gl_FUNC_FPENDING):
70328         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70329         * m4/fts.m4 (gl_FUNC_FTS):
70330         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70331         * m4/getdate.m4 (gl_GETDATE):
70332         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70333         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70334         * m4/getpass.m4 (gl_FUNC_GETPASS):
70335         * m4/gettime.m4 (gl_GETTIME):
70336         * m4/getugroups.m4 (gl_GETUGROUPS):
70337         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70338         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70339         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70340         * m4/hash.m4 (gl_HASH):
70341         * m4/idcache.m4 (gl_IDCACHE):
70342         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70343         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70344         * m4/long-options.m4 (gl_LONG_OPTIONS):
70345         * m4/lstat.m4 (gl_FUNC_LSTAT):
70346         * m4/md5.m4 (gl_MD5):
70347         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70348         * m4/memcoll.m4 (gl_MEMCOLL):
70349         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70350         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70351         * m4/memxor.m4 (gl_MEMXOR):
70352         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70354         * m4/modechange.m4 (gl_MODECHANGE):
70355         * m4/mountlist.m4 (gl_MOUNTLIST):
70356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70357         * m4/openat.m4 (gl_FUNC_OPENAT):
70358         * m4/pathmax.m4 (gl_PATHMAX):
70359         * m4/physmem.m4 (gl_PHYSMEM):
70360         * m4/posixtm.m4 (gl_POSIXTM):
70361         * m4/posixver.m4 (gl_POSIXVER):
70362         * m4/quote.m4 (gl_QUOTE):
70363         * m4/quotearg.m4 (gl_QUOTEARG):
70364         * m4/readtokens.m4 (gl_READTOKENS):
70365         * m4/readutmp.m4 (gl_READUTMP):
70366         * m4/regex.m4 (gl_REGEX):
70367         * m4/safe-read.m4 (gl_SAFE_READ):
70368         * m4/safe-write.m4 (gl_SAFE_WRITE):
70369         * m4/same.m4 (gl_SAME):
70370         * m4/save-cwd.m4 (gl_SAVE_CWD):
70371         * m4/savedir.m4 (gl_SAVEDIR):
70372         * m4/settime.m4 (gl_SETTIME):
70373         * m4/sha1.m4 (gl_SHA1):
70374         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70375         * m4/stat-macros.m4 (gl_STAT_MACROS):
70376         * m4/stat-time.m4 (gl_STAT_TIME):
70377         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70378         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70379         * m4/strdup.m4 (gl_FUNC_STRDUP):
70380         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70381         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70382         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70383         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70384         * m4/time_r.m4 (gl_TIME_R):
70385         * m4/timespec.m4 (gl_TIMESPEC):
70386         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70387         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70388         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70389         * m4/userspec.m4 (gl_USERSPEC):
70390         * m4/utimecmp.m4 (gl_UTIMECMP):
70391         * m4/utimens.m4 (gl_UTIMENS):
70392         * m4/xalloc.m4 (gl_XALLOC):
70393         * m4/xgetcwd.m4 (gl_XGETCWD):
70394         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70395         * m4/xreadlink.m4 (gl_XREADLINK):
70396         * m4/xstrtod.m4 (gl_XSTRTOD):
70397         * m4/yesno.m4 (gl_YESNO):
70398         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70399         to get the necessary .h files and whatnot.
70400
70401 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70402             Bruno Haible  <bruno@clisp.org>
70403
70404         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70405         /bin/sh understanding of '!' conditional negation.
70406
70407 2006-08-21  Jim Meyering  <jim@meyering.net>
70408
70409         * modules/openat (Depends-on): Really alphabetize.
70410
70411         * modules/acl (Depends-on): Add error and quote.
70412
70413         * check-module (find_included_lib_files): Add at-func.c to the
70414         ok-to-include-more-than-once white list.
70415
70416         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70417
70418 2006-08-21  Bruno Haible  <bruno@clisp.org>
70419
70420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70421         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70422         Reported by Martin Lambers <marlam@marlam.de>.
70423
70424 2006-08-21  Bruno Haible  <bruno@clisp.org>
70425
70426         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70427         specify an installation location, don't emit a noinst_LIBRARIES or
70428         noinst_LTLIBRARIES assignment.
70429
70430 2006-08-21  Bruno Haible  <bruno@clisp.org>
70431
70432         BeOS portability.
70433         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70434         BeOS has mbrtowc() but no <wctype.h>.
70435
70436 2006-08-21  Bruno Haible  <bruno@clisp.org>
70437
70438         BeOS portability.
70439         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70440         exist.
70441
70442 2006-08-21  Bruno Haible  <bruno@clisp.org>
70443
70444         BeOS portability.
70445         * lib/mbchar.h: Include <wctype.h> only if it exists.
70446
70447 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         Remove files that are no longer needed by their respective modules.
70450         * m4/obstack.m4: Remove.
70451         * m4/strerror_r.m4: Remove.
70452         * m4/uint32_t.m4: Remove.
70453         * m4/uintptr_t.m4: Remove.
70454         * m4/ullong_max.m4: Remove.
70455         * m4/xstrtoimax.m4: Remove.
70456         * m4/xstrtoumax.m4: Remove.
70457
70458         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70459         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70460         dependencies now capture this.
70461
70462         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70463         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70464         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70465         * m4/human.m4 (gl_HUMAN): Likewise.
70466         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70467         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70468
70469         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70470
70471         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70472         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70473         stdint.
70474         * m4/human.m4 (gl_HUMAN): Likewise.
70475         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70476         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70477         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70478         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70479         * m4/xstrtol (gl_XSTRTOL): Likewise.
70480
70481         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70482         AC_TYPE_LONG_LONG_INT.
70483         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70484         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70485         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70486         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70487
70488         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70489         on stdbool.
70490
70491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70492         (gl_PREREQ_XSTRTOUL): Remove.
70493
70494         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70495
70496         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70497         mode.
70498
70499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         Add and change modules to make it easier for coreutils to use
70502         gnulib-tool.
70503         * modules/backupfile (Files): Remove m4/d-ino.m4.
70504         (Depends-on): Add d-ino.
70505         * modules/cycle-check (Depends-on): Add stdint.
70506         (lib_SOURCES): Add cycle-check.h.
70507         * modules/d-ino: New module.
70508         * modules/d-type: New module.
70509         * modules/error (Files): Remove m4/strerror_r.m4.
70510         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70511         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70512         m4/inttypes_h.m4, m4/uintmax_t.m4.
70513         (Depends-on): Add stdint.
70514         (lib_SOURCES): Add fsusage.h.
70515         * modules/getcwd (Files): Remove d-ino.m4.
70516         (Depends-on): Add d-ino.
70517         * modules/getndelim2 (Depends-on): Add stdint.
70518         * modules/glob (Files): Remove m4/d-type.m4.
70519         (Depends-on): Add d-type.
70520         * modules/host-os: New module.
70521         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70522         m4/inttypes_h.m4, m4/uintmax_t.m4.
70523         * Depends-on: Add stdint.
70524         (lib_SOURCES): Add human.h.
70525         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70526         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70527         m4/uintmax_t.m4, m4/ulonglong.m4.
70528         (Depends-on): Add stdint.
70529         (EXTRA_DIST): Add inttostr.h.
70530         * modules/lchmod: New module.
70531         * modules/link-follow: New module.
70532         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70533         (Depends-on): Add lchmod.
70534         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70535         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70536         (Depends-on): Add stdint.
70537         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70538         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70539         (Depends-on): Add stdint.
70540         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70541         * modules/perl: New module.
70542         * modules/regex (Depends-on): Add stdint.
70543         * modules/rmdir-errno: New module.
70544         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70545         m4/intmax_t.m4.
70546         (Depends-on): Add stdint.
70547         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70548         m4/uintmax_t.m4.
70549         (Depends-on): Add stdint.
70550         * modules/unlink-busy: New module.
70551         * modules/utimecmp (Depends-on): Add stdint.
70552         * modules/uptime: New module.
70553         * modules/winsz-ioctl: New module.
70554         * modules/winsz-termios: New module.
70555         * modules/xnanosleep (Depends-on): Add nanosleep.
70556         * modules/ullong_max: Remove.
70557         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70558         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70559         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70560         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70561         (Depends-on): Add inttypes.
70562         (lib_SOURCES): Add xstrtol.h.
70563         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70564         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70565         * MODULES.html.sh: Move 'assert' into the assert section.
70566         Move 'dummy' into the linking section.
70567         Remove ullong_max.
70568         Add section for compatibility checks for POSIX:2001 functions,
70569         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70570         winsz-ioctl, and winsz-termios into it.
70571         Add lchmod.
70572         Add top-level Misc section and put host-os, perl, and uptime
70573         into it.
70574
70575 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70578         now assume the stdint module.  Do not include inttypes.h.
70579         * lib/fsusage.h: Likewise.
70580         * lib/getndelim2.c: Likewise.
70581         * lib/human.h: Likewise.
70582         * lib/inttostr.h: Likewise.
70583         * lib/obstack.c: Likewise.
70584         * lib/regex_internal.h: Likewise.
70585         * lib/tempname.c: Likewise.
70586         * lib/utimecmp.c: Likewise.
70587         * lib/xstrtol.h: Likewise.
70588
70589         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70590
70591         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70592         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70593         * lib/xtime.h: Likewise.
70594
70595 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * modules/openat (Files): Add lib/fchmodat.c.
70598         Fixes problem reported by Jay Youngman.
70599
70600 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70603         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70604
70605 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70606             Bruno Haible  <bruno@clisp.org>
70607
70608         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70609         and is a script that invokes bison. Tighten the code. Add comments.
70610
70611 2006-08-18  Jim Meyering  <jim@meyering.net>
70612
70613         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70614         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70615         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70616         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70617
70618 2006-08-18  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/bison-i18n: New file.
70621         * MODULES.html.sh (Internationalization functions): Add it.
70622
70623 2006-08-18  Bruno Haible  <bruno@clisp.org>
70624
70625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70626         sys/statvfs.h. When getmntinfo was found, check its declaration and
70627         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70628
70629 2006-08-18  Bruno Haible  <bruno@clisp.org>
70630
70631         * m4/bison-i18n.m4: New file, from bison.
70632
70633 2006-08-18  Bruno Haible  <bruno@clisp.org>
70634
70635         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70636         (ME_DUMMY): Treat "kernfs" as a dummy.
70637         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70638
70639 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         Update from coreutils.
70642
70643         2006-08-15  Jim Meyering  <jim@meyering.net>
70644
70645         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70646
70647         2006-01-17  Jim Meyering  <jim@meyering.net>
70648
70649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70650
70651         2006-01-11  Jim Meyering  <jim@meyering.net>
70652
70653         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70654         Check for the lchmod function.
70655
70656 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         Update from coreutils.
70659
70660         * lib/__fpending.h: Add copyright notice.
70661         * lib/fprintftime.h: Likewise.
70662         * lib/savedir.c: Use (C) in copyright notice.
70663         * lib/savedir.h: Likewise.
70664
70665         2006-08-15  Jim Meyering  <jim@meyering.net>
70666
70667         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70668         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70669         in support of the EXPECTED_ERRNO macro.
70670         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70671         definitions.  Instead, define the appropriate symbols and include
70672         "at-func.c".
70673         * lib/mkdirat.c (mkdirat): Likewise.
70674         * lib/fchmodat.c (fchmodat): Likewise.
70675         (ENOSYS): Remove definition.
70676         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70677         it.  Don't include "unistd--.h" -- it wasn't ever used.
70678
70679         2006-01-17  Jim Meyering  <jim@meyering.net>
70680
70681         Rewrite fts.c not to change the current working directory,
70682         by using openat, fstatat, fdopendir, etc..
70683
70684         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70685         (HAVE_OPENAT_SUPPORT): Define.
70686         [_LIBC] (fchdir): Don't undef or define; no longer used.
70687         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70688         Now, this `function' always succeeds, and consumes its file descriptor
70689         parameter -- so callers must not close such FDs.  Update callers.
70690         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70691         (diropen): Add parameter, SP.  Adjust all callers.
70692         Implement using diropen_fd, rather than open.
70693         (fts_open): Initialize new member, fts_cwd_fd.
70694         Remove fts_rft-setting code.
70695         (fts_close): Close fts_cwd_fd, if necessary.
70696         (__opendir2): Define in terms of opendir or opendirat,
70697         depending on whether the FST_NOCHDIR flag is set.
70698         (fts_build): Since fts_safe_changedir consumes its FD, and since
70699         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70700         and close the dup'd file descriptor upon failure.
70701         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70702         (fts_safe_changedir): Tweak semantics to reflect that this function
70703         now calls cwd_advance_fd and hence consumes its FD argument.
70704         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70705         [struct FTS] (fts_rft): Remove now-unused member.
70706         [struct FTS] (fts_cycle.state): Improve comment.
70707
70708         * lib/openat.c (openat_needs_fchdir): New function.
70709         * lib/openat.h (openat_needs_fchdir): Declare it.
70710
70711 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70714         Problem and fix reported by Pádraig Brady in
70715         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70716
70717 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70720
70721 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * lib/memcoll.c (memcoll): Optimize for the common case where the
70724         arguments are bytewise equal.
70725
70726 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * doc/regexprops-generic.texi: Add a copyright notice.
70729
70730 2006-08-15  Bruno Haible  <bruno@clisp.org>
70731
70732         * modules/tmpdir (License): Change to LGPL.
70733
70734 2006-08-15  Bruno Haible  <bruno@clisp.org>
70735
70736         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70737         module.
70738
70739 2006-08-14  Simon Josefsson  <jas@extundo.com>
70740
70741         * config/srclist.txt: Add gnupload.
70742
70743 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         Change copyright notice from LGPL 2 to GPL 2, since that's the
70746         standard form used in the gnulib repository.
70747         * tests/test-lock.c: Likewise.
70748         * tests/test-stdint.c: Likewise.
70749         * tests/test-tls.c: Likewise.
70750
70751         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70752         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70753         Add copyright notice.
70754
70755         * check-module: Add copyright notice.  Output a copyright
70756         notice if "--version" is specified.
70757         * modules/COPYING: New file.
70758         * tests/test-getaddrinfo.c: Add copyright notice.
70759         * tests/test-verify.c: Likewise.
70760
70761 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70762
70763         Change copyright notice from LGPL 2 to GPL 2, since that's the
70764         standard form used in the gnulib repository.
70765         * lib/lock.c: LGPL -> GPL.
70766         * lib/lock.h: Likewise.
70767         * lib/strnlen1.c: Likewise.
70768         * lib/strnlen1.h: Likewise.
70769         * lib/tls.c: Likewise.
70770         * lib/tls.h: Likewise.
70771         * lib/tmpdir.c: Likewise.
70772
70773         * lib/TODO: Remove; this belongs only in coreutils.
70774
70775 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         Add copyright notices to long-enough files that lack them, since
70778         otherwise the files aren't clearly free.  Use the same notice that
70779         getdate.texi already uses.
70780         * doc/alloca-opt.texi: Add copyright notice.
70781         * doc/alloca.texi: Likewise.
70782         * doc/ctime.texi: Likewise.
70783         * doc/functions.texi: Likewise.
70784         * doc/gcd.texi: Likewise.
70785         * doc/gnulib-tool.texi: Likewise.
70786         * doc/inet_ntoa.texi: Likewise.
70787         * doc/visibility.texi: Likewise.
70788
70789         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70790         * doc/quote.texi: Add copyright notice.
70791
70792         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70793         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70794         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70795         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70796         is now obsolete, and give a pointer to the Sun list.
70797         Add copyright notice.
70798
70799 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * config/srclistvars.sh: Add copyright notice.
70802
70803 2006-08-14  Eric Blake  <ebb9@byu.net>
70804
70805         Import the following change from libc:
70806
70807         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70808
70809         Upstream bug 2997.
70810         * lib/misc/error.c: Add space between program name and message if file
70811         name is missing.
70812
70813 2006-08-12  Karl Berry  <karl@gnu.org>
70814
70815         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70816         remove, these originate in gnulib now.
70817
70818 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70819
70820         * doc/Makefile (standards.info standards.html standards.dvi):
70821         Also depend on make-stds.texi.
70822
70823 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70826         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70827
70828         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70829         in wchar_t.  Problem reported by Eric Blake.
70830
70831         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70832         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70833         Also, help the compiler to keep LEN in a register.
70834
70835 2006-08-11  Eric Blake  <ebb9@byu.net>
70836
70837         * users.txt: Sort.  Add tar.
70838
70839 2006-08-11  Bruno Haible  <bruno@clisp.org>
70840
70841         * users.txt: New file.
70842
70843 2006-08-11  Bruno Haible  <bruno@clisp.org>
70844
70845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70846         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70847
70848 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * modules/snprintf (Depends-on): Remove minmax.
70851         (Maintainer): Add self and Bruno.
70852
70853 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70856         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70857         (EOVERFLOW): Define if the system does not.
70858         Do not include "minmax.h"; it wasn't used.
70859         (snprintf): Don't assume size_t promotes to an unsigned type.
70860         Fix bug when generated string was too long for the buffer: the
70861         buffer's contents are supposed to be the initial prefix of the
70862         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70863         exceeds INT_MAX; do the check ourselves.
70864
70865         Import the following changes from libc:
70866
70867         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70868
70869         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70870         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70871         set wc to the byte which couldn't be converted.
70872         (re_string_reconstruct): Don't clear valid_raw_len before calling
70873         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70874         tip_context using re_string_context_at.
70875
70876         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70877
70878         * lib/posix/regex.h: g++ still cannot handled [restrict].
70879
70880         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70881
70882         * lib/posix/regex.h: Remove special handling for VMS.
70883
70884 2006-08-10  Jim Meyering  <jim@meyering.net>
70885
70886         * modules/same-inode: New module.
70887         * modules/dev-ino: New module.
70888         * modules/cycle-check: Depend on these modules, rather than simply
70889         including their .h files.
70890         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70891         required via m4/cycle-check.m4.
70892         * modules/same: Depend on new same-inode module, rather than
70893         including same-inode.h.
70894         * modules/chdir-safer: New file.
70895
70896         * modules/chown (Depends-on): Add stat-macros.
70897
70898 2006-08-10  Jim Meyering  <jim@meyering.net>
70899
70900         * m4/cycle-check.m4: New file.
70901         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70902         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70903
70904 2006-08-10  Eric Blake  <ebb9@byu.net>
70905
70906         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70907         in from original proposal.
70908
70909 2006-08-10  Eric Blake  <ebb9@byu.net>
70910         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70911
70912         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70913         namespace.
70914
70915 2006-08-10  Bruno Haible  <bruno@clisp.org>
70916
70917         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70918         as well.
70919
70920 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         Sync from coreutils.
70923
70924         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70925
70926         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70927         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70928
70929 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * modules/restrict: Remove; no longer needed now that we assume
70932         Autoconf 2.59 or later.
70933         * MODULES.html.sh: Remove 'restrict'.
70934         * modules/argp (Depends-on): Remove 'restrict'.
70935         * modules/base64 (Depends-on): Likewise.
70936         * modules/gc (Depends-on): Likewise.
70937         * modules/getaddrinfo (Depends-on): Likewise.
70938         * modules/glob (Depends-on): Likewise.
70939         * modules/inet_ntop (Depends-on): Likewise.
70940         * modules/inet_pton (Depends-on): Likewise.
70941         * modules/memxor (Depends-on): Likewise.
70942         * modules/regex (Depends-on): Likewise.
70943         * modules/strtok_r (Depends-on): Likewise.
70944         * modules/time_r (Depends-on): Likewise.
70945
70946 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70949         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70950         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70951         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70952         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70953         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70954         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70955         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70956
70957         Merge from coreutils.
70958         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70959         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70961         * m4/time_r.m4 (gl_TIME_R): Likewise.
70962
70963 2006-08-09  Karl Berry  <karl@gnu.org>
70964
70965         * config/srclist.txt: no more gettext-tools, per Bruno.
70966
70967 2006-08-08  Eric Blake  <ebb9@byu.net>
70968
70969         * modules/verror: New module.
70970         * MODULES.html.sh: Document it.
70971
70972 2006-08-08  Eric Blake  <ebb9@byu.net>
70973
70974         * lib/verror.h, lib/verror.c: New files.
70975
70976 2006-08-08  Eric Blake  <ebb9@byu.net>
70977
70978         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70979         verror_at_line output complies with GNU Coding Standards even when
70980         file is NULL.
70981
70982 2006-08-07  Bruno Haible  <bruno@clisp.org>
70983
70984         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70985         versions of AIX.
70986         Reported by Ralf Wildenhues.
70987
70988 2006-08-07  Bruno Haible  <bruno@clisp.org>
70989
70990         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70991         in an AC_DEFUN. Needed so that the autoconf snippets can use
70992         AC_REQUIRE.
70993
70994 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70995
70996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70997         Initialize pkgdata_DATA.
70998         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70999         overriding it.
71000
71001 2006-08-06  Eric Blake  <ebb9@byu.net>
71002
71003         * lib/error.h: Fold in some upstream changes from glibc.
71004         * lib/error.c: Likewise.
71005
71006 2006-08-04  Bruno Haible  <bruno@clisp.org>
71007
71008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71009         Make the mostlyclean-local rule depend on mostlyclean-generic.
71010         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71011
71012 2006-07-31  Bruno Haible  <bruno@clisp.org>
71013
71014         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71015         <stdlib.h>, <string.h>.
71016
71017 2006-07-30  Bruno Haible  <bruno@clisp.org>
71018
71019         * modules/readlink (License): Change to LGPL.
71020
71021 2006-07-30  Bruno Haible  <bruno@clisp.org>
71022
71023         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71024         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71025         set PKGDATADIR to point to it.
71026
71027 2006-07-30  Bruno Haible  <bruno@clisp.org>
71028
71029         * modules/csharpexec (configure.ac): Comment out macro invocation.
71030         * modules/javaexec (configure.ac): Likewise.
71031         * modules/javacomp-script (configure.ac): Likewise.
71032
71033         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71034
71035 2006-07-30  Bruno Haible  <bruno@clisp.org>
71036
71037         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71038         linked-list.
71039
71040 2006-07-30  Bruno Haible  <bruno@clisp.org>
71041
71042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71043
71044 2006-07-30  Bruno Haible  <bruno@clisp.org>
71045
71046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71047         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71048         get removed.
71049
71050 2006-07-29  Bruno Haible  <bruno@clisp.org>
71051
71052         Make it possible for gnulib-tool to work with locally modified or
71053         augmented gnulib repositories.
71054         * gnulib-tool (func_usage): Document --local-dir option.
71055         (local_gnulib_dir): New variable.
71056         Handle --local-dir option.
71057         (func_lookup_file): New function.
71058         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71059         (func_get_description, func_get_filelist, func_get_description,
71060         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71061         func_get_automake_snippet, func_get_include_directive,
71062         func_get_license, func_get_maintainer): Use func_lookup_file.
71063         (func_import, func_create_testdir): Use func_lookup_file.
71064
71065 2006-07-29  Bruno Haible  <bruno@clisp.org>
71066
71067         * modules/setenv (Depends-on): Add unistd.
71068
71069 2006-07-29  Bruno Haible  <bruno@clisp.org>
71070
71071         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71072
71073 2006-07-29  Bruno Haible  <bruno@clisp.org>
71074
71075         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71076
71077 2006-07-29  Bruno Haible  <bruno@clisp.org>
71078
71079         * gnulib-tool (import, update): If there is no Makefile.am, look at
71080         aclocal.m4, instead of bailing out.
71081
71082 2006-07-29  Bruno Haible  <bruno@clisp.org>
71083
71084         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71085         Categorize the options by when they are useful.
71086
71087 2006-07-29  Bruno Haible  <bruno@clisp.org>
71088
71089         * gnulib-tool (func_usage): Document option --no-libtool.
71090         Handle option --no-libtool.
71091         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71092         for changed semantics of $libtool variable.
71093         (func_import): Likewise. If libtool is not used, show this through
71094         an option --no-libtool.
71095         (func_create_testdir): Update.
71096
71097 2006-07-29  Bruno Haible  <bruno@clisp.org>
71098
71099         * gnulib-tool (func_import): Extend error message about missing
71100         --doc-base.
71101
71102 2006-07-29  Bruno Haible  <bruno@clisp.org>
71103
71104         * gnulib-tool (func_import): Don't create the $docbase directory if
71105         there is no file to store there.
71106
71107 2006-07-29  Bruno Haible  <bruno@clisp.org>
71108
71109         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71110         relevant, look for configure.ac there, not in the current directory.
71111         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71112
71113 2006-07-29  Bruno Haible  <bruno@clisp.org>
71114
71115         * gnulib-tool (SORT): New variable.
71116         (func_usage): Undocument --assume-autoconf option.
71117         Remove --assume-autoconf option handling.
71118         (autoconf_minversion): Determine from the contents of configure.ac.
71119         (func_import): Remove autoconf_minversion handling.
71120         Suggested by Eric Blake.
71121
71122 2006-07-29  Bruno Haible  <bruno@clisp.org>
71123
71124         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71125
71126 2006-07-29  Bruno Haible  <bruno@clisp.org>
71127
71128         * config/srclist.txt (*setenv.[ch]): Remove rules.
71129
71130 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71131
71132         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71133
71134 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71135
71136         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71137         arpa/inet.h.
71138
71139 2006-07-28  Simon Josefsson  <jas@extundo.com>
71140
71141         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71142         * modules/inet_pton (Depends-on): Likewise.
71143
71144 2006-07-28  Simon Josefsson  <jas@extundo.com>
71145
71146         * m4/netinet_in_h.m4: New file.
71147
71148 2006-07-28  Simon Josefsson  <jas@extundo.com>
71149
71150         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71151         #include's.
71152
71153 2006-07-28  Simon Josefsson  <jas@extundo.com>
71154
71155         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71156         #include's.
71157
71158 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71159
71160         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71161         setgid on directories only if they set these bits.
71162         * lib/modechange.h: Remove obsolete comment about masks.
71163
71164 2006-07-28  Eric Blake  <ebb9@byu.net>
71165
71166         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71167         macro expansion.
71168
71169 2006-07-28  Bruno Haible  <bruno@clisp.org>
71170
71171         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71172
71173 2006-07-28  Bruno Haible  <bruno@clisp.org>
71174
71175         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71176
71177 2006-07-28  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71180         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71181         Define fallbacks.
71182         Avoids link error on FreeBSD 4.x.
71183         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71184
71185         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71186         encoding.
71187         * lib/mbswidth.c (iswcntrl): Likewise.
71188
71189 2006-07-27  Bruno Haible  <bruno@clisp.org>
71190
71191         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71192         test.
71193
71194 2006-07-27  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71197         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71198         defined.
71199
71200 2006-07-26  Eric Blake  <ebb9@byu.net>
71201
71202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71203
71204 2006-07-26  Eric Blake  <ebb9@byu.net>
71205
71206         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71207         like mingw that lack mkstemp.
71208         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71209         avoid compilation warning on mingw.
71210
71211 2006-07-26  Bruno Haible  <bruno@clisp.org>
71212
71213         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71214         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71215         INT_FAST*_MIN, INTPTR_MIN.
71216
71217 2006-07-25  Bruno Haible  <bruno@clisp.org>
71218
71219         * modules/version-etc (Depends-on): Add stdarg.
71220
71221 2006-07-25  Bruno Haible  <bruno@clisp.org>
71222
71223         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71224         complex commands.
71225
71226 2006-07-25  Bruno Haible  <bruno@clisp.org>
71227
71228         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71229         defined in <stdarg.h> or config.h.
71230
71231 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71234         (gl_STDIO_SAFER): Remove.
71235
71236 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * MODULES.html.sh (File stream based Input/Output):
71239         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71240         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71241         * modules/fopen-safer, modules/tmpfile-safer: New files.
71242         * modules/stdio-safer: Remove.
71243
71244 2006-07-24  Bruno Haible  <bruno@clisp.org>
71245
71246         * modules/tmpdir: New file.
71247         * MODULES.html.sh (File system functions): Add it.
71248
71249 2006-07-24  Bruno Haible  <bruno@clisp.org>
71250
71251         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71252         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71253
71254 2006-07-24  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/clean-temp: New file.
71257
71258 2006-07-24  Bruno Haible  <bruno@clisp.org>
71259
71260         * m4/tmpdir.m4: New file, from GNU gettext.
71261
71262 2006-07-24  Bruno Haible  <bruno@clisp.org>
71263
71264         * lib/tmpdir.h: New file, from GNU gettext.
71265         * lib/tmpdir.c: New file, from GNU gettext.
71266
71267 2006-07-24  Bruno Haible  <bruno@clisp.org>
71268
71269         * lib/clean-temp.h: New file, from GNU gettext.
71270         * lib/clean-temp.c: New file, from GNU gettext.
71271
71272 2006-07-23  Eric Blake  <ebb9@byu.net>
71273
71274         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71275         (Depends-on): Add binary-io.
71276
71277 2006-07-23  Eric Blake  <ebb9@byu.net>
71278
71279         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71280
71281 2006-07-23  Eric Blake  <ebb9@byu.net>
71282
71283         * lib/tmpfile-safer.c: New file.
71284         * lib/stdio-safer.h (fopen_safer): Add prototype.
71285         * lib/stdio--.h (tmpfile): Make safer.
71286
71287 2006-07-23  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71290         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71291         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71292         gl_linked_remove_at): Use it.
71293
71294 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71295         and Simon Josefsson <jas@extundo.com>
71296
71297         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71298
71299         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71300
71301 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * modules/close-stream: New file.
71304         * modules/closeout (Description): Make it clear that it exits
71305         with a diagnostic on error.
71306         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71307         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71308
71309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * m4/close-stream.m4: New file.
71312
71313 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * lib/close-stream.c, lib/close-stream.h: New files.
71316
71317 2006-07-22  Bruno Haible  <bruno@clisp.org>
71318
71319         Merge from GNU gettext 0.15.
71320
71321         2006-05-01  Bruno Haible  <bruno@clisp.org>
71322
71323                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71324
71325         2006-07-22  Bruno Haible  <bruno@clisp.org>
71326
71327                 * modules/javaversion: New file.
71328                 * MODULES.html.sh (Java): Add javaversion.
71329
71330         2006-03-12  Bruno Haible  <bruno@clisp.org>
71331
71332                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71333
71334         2005-12-04  Bruno Haible  <bruno@clisp.org>
71335
71336                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71337                 (untested).
71338
71339         2006-06-21  Bruno Haible  <bruno@clisp.org>
71340
71341                 Avoid warnings from recent versions of mcs.
71342                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71343                 -o, -L, -r any more. Use options documented since mcs-1.0
71344                 instead. Similarly for -g.
71345
71346         2005-12-04  Bruno Haible  <bruno@clisp.org>
71347
71348                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71349                 .resources, not .resource.
71350
71351         2005-07-09  Bruno Haible  <bruno@clisp.org>
71352
71353                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71354                 add a .dll suffix.
71355                 Reported by Mark Junker <mjscod@gmx.de>.
71356
71357         2006-07-22  Bruno Haible  <bruno@clisp.org>
71358
71359                 * modules/gettext: Upgrade to gettext-0.15.
71360                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71361                 m4/visibility.m4.
71362                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71363
71364 2006-07-22  Bruno Haible  <bruno@clisp.org>
71365
71366         Merge from GNU gettext 0.15.
71367
71368         2006-03-25  Bruno Haible  <bruno@clisp.org>
71369
71370                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71371
71372         2006-07-21  Bruno Haible  <bruno@clisp.org>
71373
71374                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71375                 "1.1".
71376
71377         2006-05-09  Bruno Haible  <bruno@clisp.org>
71378
71379                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71380                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71381                 for the conftestver execution.
71382
71383         2006-05-01  Bruno Haible  <bruno@clisp.org>
71384
71385                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71386                 optional target-version argument. Verify that the compiler
71387                 groks source of the specified source-version, or add -source
71388                 option as necessary. Verify that the compiler produces
71389                 bytecode in the specified target-version, or add -target and
71390                 -source options as necessary. Make the result of the test
71391                 available as variable CONF_JAVAC. Also log error output in
71392                 config.log.
71393
71394         2006-03-11  Bruno Haible  <bruno@clisp.org>
71395
71396                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71397
71398         2006-05-09  Bruno Haible  <bruno@clisp.org>
71399
71400                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71401                 CLASSPATH_SEPARATOR to a semicolon.
71402
71403         2006-03-12  Bruno Haible  <bruno@clisp.org>
71404
71405                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71406                 available as variable CONF_JAVA, for subsequent autoconf
71407                 tests. Also log error output in config.log.
71408
71409         2006-07-19  Bruno Haible  <bruno@clisp.org>
71410
71411                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71412                 that getline works on glibc2 systems. Needed to avoid trouble
71413                 in relocatable.c.
71414                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71415
71416         2005-12-04  Bruno Haible  <bruno@clisp.org>
71417
71418                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71419                 launcher (untested).
71420
71421         2005-12-04  Bruno Haible  <bruno@clisp.org>
71422
71423                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71424
71425         2006-07-22  Bruno Haible  <bruno@clisp.org>
71426
71427                 * gettext.m4: Update from GNU gettext-0.15.
71428                 * nls.m4: Likewise.
71429                 * po.m4: Likewise.
71430                 * inttypes-pri.m4: Likewise.
71431                 * inttypes-h.m4: Renamed from inttypes.m4.
71432                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71433
71434 2006-07-22  Bruno Haible  <bruno@clisp.org>
71435
71436         Merge from GNU gettext 0.15.
71437
71438         2005-07-05  Bruno Haible  <bruno@clisp.org>
71439
71440                 * printf-args.c (printf_fetchargs): Work around broken
71441                 definition of wint_t on mingw.
71442
71443         2005-02-12  Bruno Haible  <bruno@clisp.org>
71444
71445                 * xallocsa.h: Add extern "C" for C++.
71446
71447         2006-05-17  Bruno Haible  <bruno@clisp.org>
71448
71449                 Cygwin portability.
71450                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71451
71452         2006-04-30  Bruno Haible  <bruno@clisp.org>
71453
71454                 * progreloc.c: Include <mach-o/dyld.h> if available.
71455                 (find_executable): Use _NSGetExecutablePath when possible.
71456
71457         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71458
71459                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71460                 function.
71461
71462         2005-12-29  Bruno Haible  <bruno@clisp.org>
71463
71464                 * progreloc.c (set_program_name_and_installdir): Fix
71465                 compilation error.
71466
71467         2005-12-04  Bruno Haible  <bruno@clisp.org>
71468
71469                 Cygwin portability.
71470                 * progreloc.c: Include <windows.h> also on Cygwin.
71471                 (find_executable): Add support for Cygwin.
71472                 (set_program_name_and_installdir): Handle also platforms with
71473                 nonempty EXEEXT.
71474
71475         2006-07-11  Bruno Haible  <bruno@clisp.org>
71476
71477                 * javacomp.c: Fix a comment.
71478                 Reported by Jim Meyering.
71479
71480         2006-04-30  Bruno Haible  <bruno@clisp.org>
71481
71482                 * javacomp.h (compile_java_class): Add source_version,
71483                 target_version arguments.
71484                 * javacomp.c: Rewritten to choose only a compiler that
71485                 respects the specified source_version and target_version.
71486
71487         2006-06-27  Bruno Haible  <bruno@clisp.org>
71488
71489                 Assume correct S_ISDIR macro.
71490                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71491
71492         2006-07-22  Bruno Haible  <bruno@clisp.org>
71493
71494                 * javaversion.h: New file, from GNU gettext.
71495                 * javaversion.c: New file, from GNU gettext.
71496                 * javaversion.java: New file, from GNU gettext.
71497                 * javaversion.class: New file, from GNU gettext.
71498
71499         2006-05-17  Bruno Haible  <bruno@clisp.org>
71500
71501                 Cygwin portability.
71502                 * javaexec.c (execute_java_class): Test for jview program
71503                 also on Cygwin.
71504
71505         2006-04-09  Bruno Haible  <bruno@clisp.org>
71506
71507                 * fatal-signal.c: Don't include string.h.
71508                 (at_fatal_signal): Use a copying loop instead of memcpy.
71509
71510         2005-12-04  Bruno Haible  <bruno@clisp.org>
71511
71512                 * csharpexec.c: Add support for 'clix' launcher (untested).
71513                 (execute_csharp_using_sscli): New function.
71514                 (execute_csharp_program): Call it.
71515
71516         2006-06-21  Bruno Haible  <bruno@clisp.org>
71517
71518                 Avoid warnings from recent versions of mcs.
71519                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71520                 -o, -L, -r any more. Use options documented since mcs-1.0
71521                 instead. Similarly for -g.
71522
71523         2005-07-09  Bruno Haible  <bruno@clisp.org>
71524
71525                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71526                 add a .dll suffix.
71527                 Reported by Mark Junker <mjscod@gmx.de>.
71528
71529         2006-06-17  Bruno Haible  <bruno@clisp.org>
71530
71531                 * config.charset: Update for NetBSD 3.0.
71532
71533         2006-05-17  Bruno Haible  <bruno@clisp.org>
71534
71535                 Cygwin portability.
71536                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71537
71538         2006-05-16  Bruno Haible  <bruno@clisp.org>
71539
71540                 * localcharset.c [CYGWIN]: Include <windows.h>.
71541                 (get_charset_aliases): For Cygwin, return the same CPxxx
71542                 aliases list as under WIN32.
71543                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71544                 the environment variables. Fall back to GetACP().
71545
71546         2006-04-05  Bruno Haible  <bruno@clisp.org>
71547
71548                 * config.charset: Update Juan Manuel Guerrero's address.
71549
71550         2005-02-12  Bruno Haible  <bruno@clisp.org>
71551
71552                 * allocsa.h: Add extern "C" for C++.
71553
71554         2005-02-10  Bruno Haible  <bruno@clisp.org>
71555
71556                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71557                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71558
71559         2006-07-22  Bruno Haible  <bruno@clisp.org>
71560
71561                 * gettext.h: Update to GNU gettext-0.15.
71562
71563 2006-07-22  Bruno Haible  <bruno@clisp.org>
71564
71565         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71566         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71567         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71568
71569 2006-07-21  Eric Blake  <ebb9@byu.net>
71570
71571         * modules/stdlib-safer: New file.
71572         * MODULES.html.sh (File stream based Input/Output): Add
71573         stdlib-safer.
71574
71575 2006-07-21  Eric Blake  <ebb9@byu.net>
71576
71577         * lib/stdlib-safer.h: New file from coreutils, required by
71578         stdlib--.h.
71579
71580 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71581
71582         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71583
71584 2006-07-20  Bruno Haible  <bruno@clisp.org>
71585
71586         * gnulib-tool: Recognize new option --assume-autoconf.
71587         (autoconf_minversion): New variable.
71588         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71589
71590 2006-07-20  Bruno Haible  <bruno@clisp.org>
71591
71592         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71593
71594 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71595
71596         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71597         Reindent and repaginate.
71598
71599 2006-07-19  Derek Price  <derek@ximbiot.com>
71600
71601         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71602         Correct grammar.
71603
71604 2006-07-17  Bruno Haible  <bruno@clisp.org>
71605
71606         * modules/list: New file.
71607         * modules/array-list: New file.
71608         * modules/carray-list, modules/carray-list-tests: New files.
71609         * modules/linked-list, modules/linked-list-tests: New files.
71610         * modules/avltree-list, modules/avltree-list-tests: New files.
71611         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71612         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71613         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71614         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71615         * modules/oset: New file.
71616         * modules/array-oset: New file.
71617         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71618         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71619         * tests/test-carray_list.c: New file.
71620         * tests/test-linked_list.c: New file.
71621         * tests/test-avltree_list.c: New file.
71622         * tests/test-rbtree_list.c: New file.
71623         * tests/test-linkedhash_list.c: New file.
71624         * tests/test-avltreehash_list.c: New file.
71625         * tests/test-rbtreehash_list.c: New file.
71626         * tests/test-avltree_oset.c: New file.
71627         * tests/test-rbtree_oset.c: New file.
71628         * MODULES.html.sh (Container data structures): New section.
71629
71630 2006-07-17  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/gl_list.m4: New file.
71633
71634 2006-07-17  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/gl_list.h: New file.
71637         * lib/gl_list.c: New file.
71638         * lib/gl_array_list.h: New file.
71639         * lib/gl_array_list.c: New file.
71640         * lib/gl_carray_list.h: New file.
71641         * lib/gl_carray_list.c: New file.
71642         * lib/gl_linked_list.h: New file.
71643         * lib/gl_linked_list.c: New file.
71644         * lib/gl_anylinked_list1.h: New file.
71645         * lib/gl_anylinked_list2.h: New file.
71646         * lib/gl_avltree_list.h: New file.
71647         * lib/gl_avltree_list.c: New file.
71648         * lib/gl_anyavltree_list1.h: New file.
71649         * lib/gl_anyavltree_list2.h: New file.
71650         * lib/gl_rbtree_list.h: New file.
71651         * lib/gl_rbtree_list.c: New file.
71652         * lib/gl_anyrbtree_list1.h: New file.
71653         * lib/gl_anyrbtree_list2.h: New file.
71654         * lib/gl_anytree_list1.h: New file.
71655         * lib/gl_anytree_list2.h: New file.
71656         * lib/gl_linkedhash_list.h: New file.
71657         * lib/gl_linkedhash_list.c: New file.
71658         * lib/gl_anyhash_list1.h: New file.
71659         * lib/gl_anyhash_list2.h: New file.
71660         * lib/gl_avltreehash_list.h: New file.
71661         * lib/gl_avltreehash_list.c: New file.
71662         * lib/gl_rbtreehash_list.h: New file.
71663         * lib/gl_rbtreehash_list.c: New file.
71664         * lib/gl_anytreehash_list1.h: New file.
71665         * lib/gl_anytreehash_list2.h: New file.
71666
71667         * lib/gl_oset.h: New file.
71668         * lib/gl_oset.c: New file.
71669         * lib/gl_array_oset.h: New file.
71670         * lib/gl_array_oset.c: New file.
71671         * lib/gl_avltree_oset.h: New file.
71672         * lib/gl_avltree_oset.c: New file.
71673         * lib/gl_rbtree_oset.h: New file.
71674         * lib/gl_rbtree_oset.c: New file.
71675         * lib/gl_anytree_oset.h: New file.
71676
71677 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * m4/mkancesdirs.m4: New file.
71680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71681         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71682         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71683         it.
71684
71685 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71686
71687         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71688         * lib/mkancesdirs.h: New files.
71689         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71690         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71691         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71692         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71693         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71694         callers changed.  Revamp internals significantly, by not
71695         attempting to create directories that are temporarily more
71696         permissive than the final results.  Do not attempt to use
71697         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71698         This removes some race conditions, fixes some bugs, and simplifies
71699         things.  Use new dirchownmod function to do owner and mode changes.
71700         * lib/mkdir-p.h: Likewise.
71701         * lib/modechange.c (octal_to_mode): New function.
71702         (struct mode_change): New member mentioned.
71703         (make_node_op_equals): New arg mentioned.  All callers changed.
71704         (mode_compile): Keep track of which mode bits the user has explicitly
71705         mentioned.
71706         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71707         New arg PMODE_BITS, to keep track of which mode bits the user
71708         mentioned; it treats S_ISUID and S_ISGID speciall.
71709         All callers changed.
71710         * lib/modechange.h: Likewise.
71711
71712 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71713
71714         * MODULES.html.sh: Add mkancestors.
71715         * modules/mkancesdirs: New module.
71716         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71717         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71718         The chdir-safer and afs files are now orphans; I'll remove them
71719         unless someone speaks up.
71720         Add lib/dirchownmod.c, lib/dirchownmod.h.
71721         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71722         Add lchown, mkancesdirs.
71723         (Maintainer): Add self.
71724
71725 2006-07-15  Karl Berry  <karl@gnu.org>
71726
71727         * gnulib-tool: help message wording/arrangement.
71728
71729 2006-07-14  Simon Josefsson  <jas@extundo.com>
71730
71731         * doc/gnulib.texi (Libtool and Windows): New section.
71732
71733 2006-07-12  Simon Josefsson  <jas@extundo.com>
71734
71735         * modules/gendocs (License): Fix license, approved by Karl.
71736
71737 2006-07-12  Eric Blake  <ebb9@byu.net>
71738
71739         * MODULES.html.sh: Add gendocs.
71740
71741 2006-07-11  Eric Blake  <ebb9@byu.net>
71742
71743         * modules/fdl: New module, to install doc/fdl.texi.
71744         * MODULES.html.sh: Add new section for documentation modules.
71745         * gnulib-tool: Avoid space-tab.
71746         (--doc-base): New option, to manage files from doc.
71747
71748 2006-07-11  Eric Blake  <ebb9@byu.net>
71749
71750         * m4/absolute-header.m4: Fix comments to match recent change.
71751
71752 2006-07-11  Eric Blake  <ebb9@byu.net>
71753
71754         * gnulib-tool: List --doc-base before --tests-base.
71755
71756 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71757
71758         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71759
71760 2006-07-11  Bruno Haible  <bruno@clisp.org>
71761
71762         * README: Mention where to put documentation.
71763
71764 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71765
71766         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71767
71768 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71771         to stdint.m4.
71772
71773 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71776         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71777         "no/such/file/stdint.h" when there is no such file, so that
71778         the resulting C code can be parsed by dodgy compilers.
71779         Problems reported by Bob Proulx.
71780
71781 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71782
71783         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71784         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71785         macros into the GNU _D_EXACT_NAMLEN.
71786         * lib/savedir.c:  Likewise.
71787         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71788
71789 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71790         and Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71793         * m4/savedir.m4:
71794         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71795         macros into the GNU _D_EXACT_NAMLEN.
71796
71797 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71800         around the absolute name, to work around a problem with the HP-UX
71801         11.23 native C compiler, reported by Bob Proulx.
71802
71803 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * doc/maintain.texi, make-stds.texi: Sync from
71806         <http://savannah.gnu.org/projects/gnustandards>.
71807
71808 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71811
71812 2006-07-09  Jim Meyering  <jim@meyering.net>
71813
71814         * m4/glob.m4: Remove a doubled word in a comment.
71815
71816 2006-07-09  Jim Meyering  <jim@meyering.net>
71817
71818         * lib/argp-pv.c: Remove a doubled word in a comment.
71819         * lib/check-version.c (check_version): Likewise.
71820         * lib/javacomp.c (compile_java_class): Likewise.
71821
71822 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71825         for the benefit of people using Autoconf 2.60.  If you want to
71826         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71827         (or m4/onceonly.m4, if pre-2.57) manually.
71828
71829 2006-07-08  Jim Meyering  <jim@meyering.net>
71830
71831         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71832         comment.
71833         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71834         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71835         comment.
71836
71837 2006-07-08  Jim Meyering  <jim@meyering.net>
71838
71839         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71840
71841 2006-07-07  Simon Josefsson  <jas@extundo.com>
71842
71843         * tests/test-crc.c: Change expected crc value, the test vector
71844         were probably computed using the old broken crc.c?
71845
71846 2006-07-06  Simon Josefsson  <jas@extundo.com>
71847
71848         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71849         now the canonical place for the M4 file).
71850
71851         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71852         from the sys_socket dependency now.
71853
71854         * modules/inet_pton (Files): Ditto.
71855
71856         * modules/inet_ntop (Files): Ditto.
71857
71858 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71859
71860         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71861         not gl_PREREQ_GETUSERSHELL.
71862
71863 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71864
71865         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71866         with only one argument, for Autoconf 2.60.
71867         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71868         expand to nothing, so add a shell command to avoid syntax error.
71869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71870
71871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71872
71873         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71874
71875 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71878         no longer needed.  Check for isblank decl.
71879         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71880         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71881         of existence.
71882
71883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * lib/getloadavg.c: Use __VMS, not VMS.
71886         * lib/getopt.c: Likewise.
71887         * lib/getpagesize.h: Likewise.
71888         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71889         and probably does not work.
71890
71891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71892
71893         * lib/.cppi-disable: Add wcwidth.
71894         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71895         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71896         (ISGRAPH): Remove.  All uses changed to isgraph.
71897         (FOLD) [!defined _LIBC]: Remove special case.
71898         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71899         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71900         HAVE_ISBLANK.
71901         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71902         case.
71903
71904 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71905
71906         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71907         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71908         brackets.  Other minor changes to suppress some compiler
71909         warnings.
71910
71911 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71912         and Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71915         of invoking obsolescent AC_HEADER_DIRENT macro.
71916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71917         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71918         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71920         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71921         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71922         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71923         * m4/readdir.m4: Remove; no longer needed.
71924
71925 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71926         and Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71929         Don't worry about this obsolete case any more.
71930         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71931         directories.
71932         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71933         worry about this obsolete case any more.
71934         * lib/fts.c: Likewise.
71935         * lib/getcwd.c: Likewise.
71936         * lib/glob.h: Likewise.
71937         * lib/savedir.c: Likewise.
71938
71939 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71942         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71944         needed.
71945         All uses removed.
71946         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71947         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71948         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71949         needed.
71950         * m4/getdate.m4 (gl_GETDATE): Likewise.
71951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71952         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71953         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71954         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71955         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71957         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71958         needed.
71959
71960 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * lib/memcasecmp.c: Include <limits.h>.
71963         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71964         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71965         Don't assume isdigit succeeds only on '0' through '9'.
71966
71967 2006-07-05  Eric Blake  <ebb9@byu.net>
71968
71969         * modules/getaddrinfo (Depends-on): Add snprintf.
71970
71971 2006-07-05  Eric Blake  <ebb9@byu.net>
71972
71973         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71974         to avoid 'header present but could not be compiled' on cygwin.
71975
71976 2006-07-05  Eric Blake  <ebb9@byu.net>
71977
71978         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71979         missing from netdb.h.
71980         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71981
71982 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71983
71984         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71985         no longer needed.
71986         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71987         * m4/getdate.m4 (gl_GETDATE): Likewise.
71988         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71989         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71990         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71991         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71992         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71993
71994 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71995
71996         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71997         All uses of is_space replaced by isspace.
71998         * lib/exit.h: Don't talk about STDC_HEADERS.
71999         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72000         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72001         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72002         replaced by isprint etc.
72003         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72004         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72005         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72006         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72007         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72008         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72009
72010 2006-07-05  Bruno Haible  <bruno@clisp.org>
72011
72012         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72013         the function exists, before testing against AIX.
72014         Reported by Martin Lambers <marlam@marlam.de>.
72015
72016 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72019         From Mark D. Baushke.
72020
72021 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72024         to the absolute name, not just one, to bypass Sun C 5.8's
72025         "warning: #include of /usr/include/... may be non-portable".
72026
72027 2006-07-04  Eric Blake  <ebb9@byu.net>
72028
72029         * modules/dirname-tests: New test module.
72030         * tests/test-dirname.c: New file, replacing dirname.c
72031         TEST_DIRNAME section that was recently deleted.
72032
72033 2006-07-04  Bruno Haible  <bruno@clisp.org>
72034
72035         Assume ANSI C header files and <ctype.h> functions.
72036         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72037         (mbsnwidth): Use isprint, iscntrl instead.
72038
72039 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         Merge from coreutils.
72042         * MODULES.html.sh: Add xstrtold.
72043         * modules/xstrtold: New file.
72044         * modules/cycle-check (Files): Add lib/same-inode.h.
72045         * modules/dirname (Files): Add m4/double-slash-root.m4.
72046         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72047         * modules/mkdir-p (Files): Add lib/same-inode.h.
72048         * modules/same (Files): Add lib/same-inode.h.
72049
72050 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72053         This is to keep the terminology clean; POSIX talks about
72054         "absolute pathnames", not "full pathnames", but the GNU
72055         Coding Standards say to use "path" for something else;
72056         so use "absolute" to keep both sides happy.
72057         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72058         Set gl_absolute_header, not gl_full_header_path.
72059         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72060         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72061         All uses changed.
72062
72063         Merge from coreutils.
72064
72065         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72066
72067         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72068         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72069         want to require the building of c-strtod.o.
72070         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72071         needs -lm directly.
72072         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72073
72074         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72077         --as-needed option if available.  Problem reported by Albert Chin in
72078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72079         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72080         cc merely issues a bunch of annoying warnings for --as-needed
72081         (this problem was reported by Bob Proulx).  Also, try linking with
72082         -lm to detect a bug in binutils 2.16 (this problem was reported
72083         by Ralf Wildenhues).
72084
72085         2006-06-18  Jim Meyering  <jim@meyering.net>
72086
72087         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72088         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72089         macro.
72090         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72091         also check for glibc-2.4's abort-inducing bug.
72092
72093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72094         Low-probability clean-up should be to use rmdir to get rid of
72095         the just-created directory, not unlink.
72096
72097         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72098         configure fail, and request a bug report to inform us about it.
72099         Add a comment that, barring reports to the contrary, in 2007 we'll
72100         assume ftruncate is universally available.
72101
72102         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72105
72106         2006-03-12  Jim Meyering  <jim@meyering.net>
72107
72108         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72109         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72110         * m4/same.m4 (gl_SAME): Likewise.
72111         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72112
72113         2006-03-11  Eric Blake  <ebb9@byu.net>
72114
72115         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72116         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72117         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72118         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72119
72120 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72123         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72124         reported by Mark D. Baushke, one in
72125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72126
72127         Merge from coreutils.
72128
72129         * lib/.cppi-disable: Add stdint_.h.
72130         * lib/.cvsignore: Add stdint.h.
72131
72132         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72135         both double and long double versions.
72136         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72137         * lib/xstrtold.c: New file.
72138         * lib/xstrtod.h (xstrtold): New decl.
72139
72140         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * lib/filemode.c (setst): Remove.
72143         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72144         (arguably) clearer, and the generated code is a bit smaller on my
72145         Debian GNU/Linux stable x86 host.
72146
72147         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72150         Assume that filemode.h includes sys/types.h and sys/stat.h.
72151         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72152         (ftypelet): Reorder to put common cases first, for efficiency.
72153         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72154         to do 'M'.
72155         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72156         of 10, for compatibility with FreeBSD.  All callers changed.
72157         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72158         types that can't be deduced solely from st_mode.  First arg is now a
72159         const pointer.
72160         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72161         (strmode): Renamed from mode_string.
72162         (filemodestring): New decl.
72163         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72164         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72165         needed.
72166         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72167
72168         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72169
72170         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72171         fsusage.h now does that.  Include fsusage.h first, to test interface.
72172         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72173         at most one method (the old code could have generated decls that
72174         didn't conform to C89, not that this was ever exercised).
72175         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72176
72177         2006-03-19  Jim Meyering  <jim@meyering.net>
72178
72179         Work even in a chroot where d_ino values for entries in "/"
72180         don't match the stat.st_ino values for the same names.
72181         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72182         number, iterate through all entries again, using lstat instead.
72183         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72184         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72185
72186         * lib/getcwd.c (__getcwd): Clarify a comment.
72187         Use memcpy in place of a call to strcpy.
72188
72189         2006-03-12  Jim Meyering  <jim@meyering.net>
72190
72191         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72192         matches that of the current directory (which we're about to chdir ".."
72193         out of), then save the dev-ino of the parent, instead.
72194
72195         * lib/same-inode.h (SAME_INODE): New file/macro.
72196         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72197         Include "same-inode.h", instead.
72198         * lib/same.c: Likewise.
72199         * lib/cycle-check.h: Include "same-inode.h".
72200         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72201         * lib/cycle-check.c (SAME_INODE): Remove definition.
72202         * lib/root-dev-ino.h: Include "same-inode.h".
72203
72204         2006-03-11  Eric Blake  <ebb9@byu.net>
72205
72206         * lib/same.c (same_name): s/base_name/last_component/
72207         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72208         * lib/filenamecat.c (file_name_concat): Likewise.
72209
72210         2006-03-11  Eric Blake  <ebb9@byu.net>,
72211                     Paul Eggert  <eggert@cs.ucla.edu>
72212
72213         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72214         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72215         drive prefix.
72216         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72217         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72218         (last_component): New method.
72219         * lib/dirname.c (dir_len): Determine when drive letters need a
72220         subsequent slash.  Preserve // when it is special.
72221         (dir_name): Don't append dot when drive letter is absolute.
72222         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72223         * lib/basename.c (base_name): New semantics - malloc the result.
72224         Preserve // when it is special.  Preserve relative files that look
72225         like drive letters.
72226         (base_len): Preserve // when it is special.
72227         (last_component): New method, similar to old base_name semantics.
72228         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72229         base_name.  Strip redundant slashes from ///.
72230
72231 2006-07-03  Jim Meyering  <jim@meyering.net>
72232
72233         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72234         macro is used before the first cycle_check call.
72235
72236 2006-07-03  Eric Blake  <ebb9@byu.net>
72237
72238         * modules/dirname (Depends-on): Add xstrndup.
72239
72240 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72243         test cases, so that config.log is a bit easier to follow.
72244
72245 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72248         both are 64 bits, since this seems to be the tradition, and this
72249         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72250         we ever run into a host that prefers long long to long in this
72251         case, we'll need another configure-time test.  Problem reported by
72252         Jim Meyering.
72253
72254 2006-07-02  Eric Blake  <ebb9@byu.net>
72255
72256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72257
72258 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * modules/inttypes (Depends-on): No longer depends on stdint.
72261         * modules/stdint (Description): Say more about assumptions.
72262         Say that the fast types might differ.  Say macros are used.
72263         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72264         (Makefile.am): Revise list of substituted symbols to match
72265         new stdint.m4.
72266         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72267         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72268         * tests/test-stdint.c (verify_same_types)
72269         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72270         the code conforms to C99/C89.
72271         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72272         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72273
72274 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72277         but fix a bug, by requiring at least 64 bits.
72278         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72279         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72280         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72281         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72282
72283         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72284         changes.  Make 2.59 a prerequisite.  Check and substitute for
72285         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72286         inttypes.h.  Do not use special include files; just use the
72287         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72288         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72289         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72290         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72291         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72292         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72293         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72294         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72295         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72296         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72297         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72298         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72299         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72300         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72301         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72302         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72303         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72304         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72305         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72306         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72307         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72308         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72309         not check for things that C99 does not require, e.g., int8_t.  If
72310         a test isn't needed unless <stdint.h> isn't working, and is
72311         unlikely to be needed for any other reason, then don't do it
72312         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72313         size_t, since we assume C89 freestanding at least.  Do not check
72314         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72315         the right thing even if the types are not defined.  Instead use:
72316         (gl_STDINT_TYPE_PROPERTIES): New macro.
72317         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72318         testing whether <sys/types.h> clashes, as Autoconf does this for
72319         us now.  All uses removed.
72320         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72321         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72322         (gl_CHECK_TYPE_SAME):
72323         Remove; no longer needed.
72324         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72325         exists, since we'll return 0 anyway in that case.
72326         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72327
72328 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72331         possible collision with system files.
72332         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72333         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72334         WCHAR_MIN and WCHAR_MAX in this case.
72335         (<stddef.h>): Do not include; no longer needed.
72336         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72337         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72338         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72339         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72340         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72341         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72342         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72343         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72344         !defined(__c99))]: Include in this case too, since it's harmless
72345         now.
72346         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72347         dangerous to do so.
72348         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72349         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72350         (_STDINT_MIN, _STDINT_MAX): New macros.
72351         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72352         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72353         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72354         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72355         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72356         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72357         macros, not typedefs; this simplifies things quite a bit.
72358         Use long int for all types narrower than int64_t.
72359         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72360         Define in terms of long long int or int64_t or long int,
72361         not int64_t or int32_t.  This saves some compile-time testing.
72362         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72363         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72364         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72365         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72366         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72367         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72368         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72369         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72370         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72371         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72372         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72373         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72374         undef any previous version and define our own version, for
72375         simplicity and consistency with the new macros for types.
72376         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72377         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72378         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72379         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72380         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72381         @WINT_T_SUFFIX@ to keep things simple here.
72382         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72383         Simplify by assuming typical 8/16/32/64 host, since we're
72384         already doing that elsewhere anyway.
72385         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72386         and assume long long int is 64 bits if available.  This
72387         speeds up 'configure'.
72388
72389 2006-07-01  Eric Blake  <ebb9@byu.net>
72390
72391         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72392         Reported by Andreas Buening.
72393
72394 2006-07-01  Eric Blake  <ebb9@byu.net>
72395
72396         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72397
72398 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72399
72400         * lib/getaddrinfo.c: fixed typo
72401
72402 2006-06-29  Jim Meyering  <jim@meyering.net>
72403
72404         * modules/strftime (Maintainer): Add my name, since with the
72405         FPRINTFTIME changes strftime.c has forked from glibc.
72406
72407 2006-06-29  Eric Blake  <ebb9@byu.net>
72408
72409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72410
72411 2006-06-29  Eric Blake  <ebb9@byu.net>
72412
72413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72414
72415 2006-06-29  Eric Blake  <ebb9@byu.net>
72416
72417         * lib/stat_.h: New file.
72418
72419 2006-06-29  Eric Blake  <ebb9@byu.net>
72420
72421         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72422         unused static function.
72423
72424 2006-06-29  Eric Blake  <ebb9@byu.net>
72425
72426         * doc/functions.texi (Function Portability): Document missing lstat
72427         on mingw.
72428
72429 2006-06-29  Eric Blake  <ebb9@byu.net>
72430
72431         * MODULES.html.sh: Add sys_stat.
72432         * modules/sys_stat: New module.
72433         * modules/mkstemp (Depends-on): Add sys_stat.
72434
72435 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72436
72437         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72438
72439 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72440
72441         * m4/c-bs-a.m4: Removed.
72442
72443 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72444
72445         * lib/strftime.c: Assume strftime() exists.
72446
72447 2006-06-29  Derek Price  <derek@ximbiot.com>
72448
72449         * modules/c-bs-a: Removed - \a is C89.
72450         * MODULES.html.sh: Remove c-bs-a.
72451
72452 2006-06-29  Bruno Haible  <bruno@clisp.org>
72453
72454         * modules/wcwidth (License): Change to LGPL.
72455
72456 2006-06-28  Simon Josefsson  <jas@extundo.com>
72457
72458         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72459         on _WIN32.
72460
72461         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72462         getnameinfo.
72463
72464 2006-06-28  Simon Josefsson  <jas@extundo.com>
72465
72466         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72467
72468 2006-06-28  Simon Josefsson  <jas@extundo.com>
72469
72470         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72471         functions there.  It will succeed on Windows XP, but on Windows
72472         2000 and (presumably) earlier, it will fail, and use the internal
72473         re-implementation.
72474         (use_win32_p): New function.
72475         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72476         Support AI_NUMERICSERV to disable getservbyname.
72477         (getnameinfo): New function, only supports
72478         NI_NUMERICHOST|NI_NUMERICSERV for now.
72479
72480         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72481         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72482         getnameinfo.
72483
72484 2006-06-28  Eric Blake  <ebb9@byu.net>
72485
72486         * modules/wcwidth: New file.
72487         * modules/mbchar (Depends-on): Add wcwidth.
72488         * modules/mbswidth (Depends-on): Add wcwidth.
72489         * MODULES.html.sh: Add wcwidth.
72490
72491 2006-06-28  Eric Blake  <ebb9@byu.net>
72492
72493         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72495
72496 2006-06-28  Eric Blake  <ebb9@byu.net>
72497
72498         * lib/xvasprintf.h: Fix comments.
72499
72500 2006-06-28  Eric Blake  <ebb9@byu.net>
72501
72502         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72503         * lib/mbswidth.c (wcwidth): Move from here...
72504         * lib/wcwidth.h: ...to this new file.
72505
72506 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72507
72508         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72509
72510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72511         it's obsolete.
72512         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72513
72514 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72515
72516         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72517         Autoconf 2.60 says this stuff was obsolete.
72518
72519 2006-06-28  Bruno Haible  <bruno@clisp.org>
72520
72521         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72522
72523 2006-06-28  Bruno Haible  <bruno@clisp.org>
72524
72525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72526         gt_TYPE_WCHAR_T.
72527
72528 2006-06-28  Bruno Haible  <bruno@clisp.org>
72529
72530         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72531         declaration for wcwidth.
72532         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72533
72534 2006-06-28  Bruno Haible  <bruno@clisp.org>
72535
72536         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72537         (mkdir): Define using _mkdir.
72538
72539 2006-06-28  Bruno Haible  <bruno@clisp.org>
72540
72541         * lib/getaddrinfo.h: Fix POSIX URL.
72542         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72543         _WIN32.
72544         (use_win32_p): Make static.
72545         (getaddrinfo): Reject service name if it is empty or does not consist
72546         solely of decimal digits, or if its value is > 65535.
72547         (getnameinfo): Remove useless casts.
72548
72549 2006-06-27  Simon Josefsson  <jas@extundo.com>
72550
72551         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72552         Eggert and Martin Lambers.
72553
72554 2006-06-27  Simon Josefsson  <jas@extundo.com>
72555
72556         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72557         Eggert and Martin Lambers.
72558
72559 2006-06-27  Bruno Haible  <bruno@clisp.org>
72560
72561         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72562         result to 0, not to empty.
72563         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72564
72565 2006-06-27  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72568
72569 2006-06-26  Simon Josefsson  <jas@extundo.com>
72570
72571         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72572         present.
72573
72574 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72577         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72578         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72579
72580 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72581
72582         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72583
72584 2006-06-26  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72587
72588 2006-06-26  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72591
72592 2006-06-26  Bruno Haible  <bruno@clisp.org>
72593
72594         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72595         SGI C compiler in pre-C99 mode.
72596         Suggested by Mark D. Baushke and Larry Jones.
72597
72598 2006-06-26  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72601         WCHAR_MAX.
72602         Reported by Mark D. Baushke and Larry Jones.
72603
72604 2006-06-26  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72607         in pre-C99 mode.
72608         Suggested by Mark D. Baushke and Larry Jones.
72609
72610 2006-06-23  Simon Josefsson  <jas@extundo.com>
72611             Bruno Haible  <bruno@clisp.org>
72612
72613         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72614         Emit mostlyclean-local rule.
72615         (func_emit_tests_Makefile_am): Likewise.
72616         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72617
72618 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72619
72620         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72621
72622 2006-06-23  Bruno Haible  <bruno@clisp.org>
72623
72624         * tests/test-stdint.c: Update to match ISO C 99 Technical
72625         Corrigendum 1.
72626
72627 2006-06-23  Bruno Haible  <bruno@clisp.org>
72628
72629         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72630
72631 2006-06-23  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/stdint_.h: Treat IRIX like OpenBSD.
72634
72635 2006-06-23  Bruno Haible  <bruno@clisp.org>
72636
72637         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72638         ISO C 99 Technical Corrigendum 1.
72639
72640 2006-06-22  Simon Josefsson  <jas@extundo.com>
72641
72642         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72643         MinGW.
72644
72645 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72646
72647         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72648         needed.  Some compiler complained about some of them.  Problem reported
72649         by Larry Jones in
72650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72651
72652 2006-06-21  Simon Josefsson  <jas@extundo.com>
72653
72654         * tests/test-getaddrinfo.c: New file.
72655
72656         * modules/getaddrinfo-tests: New file.
72657
72658         * MODULES.html.sh: Add inet_pton.
72659
72660         * modules/inet_pton: New file.
72661
72662 2006-06-21  Simon Josefsson  <jas@extundo.com>
72663
72664         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72665         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72666         of using the (limited) gnulib implementation on Windows XP.
72667
72668         * m4/inet_pton.m4: New file.
72669
72670 2006-06-21  Simon Josefsson  <jas@extundo.com>
72671
72672         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72673         variable.
72674
72675         * lib/socket_.h: Don't define WINVER.
72676
72677         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72678         slightly modified to work in gnulib.
72679
72680 2006-06-21  Simon Josefsson  <jas@extundo.com>
72681
72682         * doc/gnulib.texi (Windows sockets): Add.
72683
72684 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * lib/read-file.c (fread_file): Start with buffer allocation of
72687         0 bytes rather than 1 byte; this simplifies the code.
72688         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72689         code to free buffer and save/restore errno.
72690         (internal_read_file): Remove unused local.
72691
72692 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72695         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72696         Problem reported by Denis Excoffier in
72697         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72698
72699 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72700
72701         * modules/sys_socket, modules/socklen: Include sys/types since
72702         FreeBSD 4.x's sys/socket.h needs it.
72703
72704 2006-06-19  Simon Josefsson  <jas@extundo.com>
72705
72706         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72707
72708 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72711
72712 2006-06-19  Bruno Haible  <bruno@clisp.org>
72713
72714         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72715         and FULL_PATH_INTTYPES_H in angle brackets.
72716         Reported by Mark D. Baushke <mdb@gnu.org>.
72717
72718 2006-06-17  Eric Blake  <ebb9@byu.net>
72719
72720         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72721         errno.
72722
72723 2006-06-17  Bruno Haible  <bruno@clisp.org>
72724
72725         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72726         <sys/inttypes.h>.
72727
72728 2006-06-17  Bruno Haible  <bruno@clisp.org>
72729
72730         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72731         whether errno is declared. Assume <errno.h> declares errno.
72732
72733 2006-06-17  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72736
72737 2006-06-17  Bruno Haible  <bruno@clisp.org>
72738
72739         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72740         problem on Solaris 2.5.1.
72741
72742 2006-06-16  Eric Blake  <ebb9@byu.net>
72743
72744         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72745         * lib/unicodeio.c [!defined errno]: Likewise.
72746         * lib/strtol.c [!defined errno]: Likewise.
72747         * lib/strtod.c [!defined errno]: Likewise.
72748
72749 2006-06-15  Eric Blake  <ebb9@byu.net>
72750
72751         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72752
72753 2006-06-15  Eric Blake  <ebb9@byu.net>
72754
72755         * config/srclist.txt (ssize_t.m4): Lose sync.
72756
72757 2006-06-15  Bruno Haible  <bruno@clisp.org>
72758
72759         * modules/stdint (Files): Include m4/full-header-path.m4,
72760         m4/size_max.m4, m4/wchar_t.m4.
72761         (Makefile.am): Many more substitutions.
72762         * modules/stdint-tests: New file.
72763         * tests/test-stdint.c: New file.
72764
72765 2006-06-15  Bruno Haible  <bruno@clisp.org>
72766
72767         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72768         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72769         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72770         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72771         gl_CHECK_TYPE_SAME): New macros.
72772
72773 2006-06-15  Bruno Haible  <bruno@clisp.org>
72774
72775         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72776
72777 2006-06-15  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/stdint_.h: Rewritten to be fully auto-configured.
72780         Fixes bug on HP-UX/IA64.
72781
72782 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * lib/getdate.y (__attribute__): Don't define if already defined.
72785         Problem reported by Larry Jones.
72786         * lib/utimens.c (__attribute__): Likewise.
72787
72788 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72791         reported by Andreas Schwab.
72792
72793 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72794             Bruno Haible  <bruno@clisp.org>
72795
72796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72797         check for the declaration of strnlen and a run test that exposes the
72798         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72799         rpl_strndup.
72800
72801 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72802             Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72805
72806 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72807
72808         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72809         compile test, for Tru64 4.0D.
72810
72811 2006-05-28  Karl Berry  <karl@gnu.org>
72812
72813         * config/srclist.txt (printf-args.c): lose sync.
72814
72815 2006-05-26  Martin Lambers  <marlam@marlam.de>
72816
72817         * lib/getpass.c: Updates the test for the native W32 API, and adds
72818         missing includes, thus fixing compilation warnings.
72819
72820 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72821
72822         * lib/exclude.c (exclude_fnmatch): New function.
72823         (excluded_file_name): Call exclude_fnmatch.
72824         * lib/exclude.h (excluded_file_name): New prototype
72825
72826 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * lib/tempname.c (small_open, large_open): New macros.
72829         (__open, __open64) [!_LIBC]: Remove.
72830         (__gen_tempname): Use small_open and large_open instead of __open
72831         and __open64.  This fixes a portability bug on HP-UX 11.11i
72832         reported by Simon Wing-Tang in
72833         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72834
72835 2006-05-24  Bruno Haible  <bruno@clisp.org>
72836
72837         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72838         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72839         Reported by Thorsten Maerz <torte@netztorte.de> via
72840         Aaron Stone <aaron@serendipity.cx>.
72841
72842 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72845         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72846         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72847         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72848         not really conditional on the cache.
72849         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72850
72851 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72854         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72855         (my_usleep): Don't mishandle maximum value.
72856
72857 2006-05-19  Jim Meyering  <jim@meyering.net>
72858
72859         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72860
72861 2006-05-17  Bruno Haible  <bruno@clisp.org>
72862
72863         Cygwin portability.
72864         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72865
72866 2006-05-17  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/stdint_.h: Fix recognition of Cygwin.
72869
72870 2006-05-15  Bruno Haible  <bruno@clisp.org>
72871
72872         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72873         on libtool patch by Ralf Wildenhues.
72874
72875 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72878         test for C99 conformance; (bool) 0.5 is an integer constant
72879         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72880         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72881
72882 2006-05-11  Simon Josefsson  <jas@extundo.com>
72883
72884         * m4/xvasprintf.m4: Fix obvious typo.
72885
72886 2006-05-11  Jim Meyering  <jim@meyering.net>
72887
72888         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72889         James Lemley.
72890
72891 2006-05-10  Simon Josefsson  <jas@extundo.com>
72892
72893         * lib/md4.c: Typo fix, update copyright years.
72894         (K1, K2): Don't use L because it turn computations into 64-bit on
72895         64-bit platforms.
72896
72897 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72900         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72901         unwanted sign propagation, e.g., on hosts with 64-bit int.
72902         There still are some problems with reeelly weird theoretical hosts
72903         (e.g., 33-bit int) but it's not worth worrying about now.
72904         * lib/sha1.c (rol): Likewise.
72905         (K1, K2, K3, K4): Remove unnecessary L suffix.
72906
72907 2006-05-10  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/des.c: Cast to avoid warnings.
72910
72911 2006-05-09  Bruno Haible  <bruno@clisp.org>
72912
72913         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72914         (Depends-on): Depend also on xsize, stdarg.
72915         (configure.ac): Add gl_XVASPRINTF.
72916
72917 2006-05-09  Bruno Haible  <bruno@clisp.org>
72918
72919         * m4/xvasprintf.m4: New file.
72920
72921 2006-05-09  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72924         (EOVERFLOW): Define fallback value.
72925         (xstrcat): New function.
72926         (xvasprintf): Recognize the special case of a string concatenation.
72927
72928 2006-05-08  Eric Blake  <ebb9@byu.net>
72929
72930         * gnulib-tool (func_version): Base copyright year on CVS date.
72931         (func_emit_copyright_notice): New function.
72932         (func_emit_lib_Makefile_am): Use it.
72933         (func_emit_tests_Makefile_am): Likewise.
72934         (func_import): Likewise.
72935
72936 2006-05-08  Bruno Haible  <bruno@clisp.org>
72937
72938         * modules/stdarg: New file.
72939         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72940
72941 2006-05-08  Bruno Haible  <bruno@clisp.org>
72942
72943         * m4/stdarg.m4: New file, from GNU gettext.
72944
72945 2006-05-08  Bruno Haible  <bruno@clisp.org>
72946
72947         * config/srclist.txt (build-aux/config.rpath): different from latest
72948         release.
72949
72950 2006-05-08  Bruno Haible  <bruno@clisp.org>
72951
72952         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72953
72954 2006-05-05  Jim Meyering  <jim@meyering.net>
72955
72956         * m4/warning.m4: New file, derived from bison's file by the same name.
72957
72958 2006-05-03  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/stdint_.h: Shorter URL.
72961         * lib/inttypes.h: Likewise.
72962
72963 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72966
72967 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * lib/verify.h: Document the internals better.  Most of this change
72970         was written by Bruno Haible.
72971
72972 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * doc/verify.texi: New file, partly based on a proposal by
72975         Bruno Haible.
72976
72977 2006-05-02  Bruno Haible  <bruno@clisp.org>
72978
72979         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72980         test from here...
72981         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72982
72983 2006-04-29  Bruno Haible  <bruno@clisp.org>
72984
72985         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72986         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72987
72988 2006-04-29  Bruno Haible  <bruno@clisp.org>
72989
72990         * gnulib-tool: Make --update option actually work.
72991
72992 2006-04-29  Bruno Haible  <bruno@clisp.org>
72993
72994         * doc/gcd.texi: New file.
72995         * doc/gnulib.texi: Include it.
72996
72997 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * lib/getdate.y (get_date): When adding relative date, start with the
73000         initial time, not with the result of the first mktime call.
73001
73002 2006-04-25  Bruno Haible  <bruno@clisp.org>
73003
73004         * gnulib-tool (func_import): Output the include directives in three
73005         blocks, sorted separately.
73006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73007
73008 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73009
73010         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73011         to define main with arguments, for C++.  Reported by Eric Blake.
73012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73013         Prefer 'int main ()' to 'int main (void)', for C++.
73014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73016         for 'main', for C99 and C++.
73017
73018 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73021         Don't assume that exit status -1 is valid.
73022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73023         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73024         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73025         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73026         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73027         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73028         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73029         functions can be used without declaring them, or that you can
73030         exit with status -1.
73031         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73032
73033 2006-04-24  Karl Berry  <karl@gnu.org>
73034
73035         * config/srclist.txt (longdouble.m4): sync lost.
73036
73037 2006-04-24  Eric Blake  <ebb9@byu.net>
73038
73039         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73040
73041 2006-04-24  Bruno Haible  <bruno@clisp.org>
73042
73043         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73044         poll() implementation in AIX.
73045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73046
73047 2006-04-24  Bruno Haible  <bruno@clisp.org>
73048
73049         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73050         assigned exactly once.
73051
73052 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73053             Bruno Haible  <bruno@clisp.org>
73054
73055         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73056         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73057         for AM_CPPFLAGS.
73058
73059 2006-04-23  Bruno Haible  <bruno@clisp.org>
73060
73061         * modules/copy-file: Depend on unistd.
73062         * modules/execute: Likewise.
73063         * modules/fatal-signal: Likewise.
73064         * modules/findprog: Likewise.
73065         * modules/mkdtemp : Likewise.
73066         * modules/pipe: Likewise.
73067         * modules/wait-process: Likewise.
73068
73069 2006-04-23  Bruno Haible  <bruno@clisp.org>
73070
73071         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73072         condition was already detected.
73073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73074
73075 2006-04-23  Bruno Haible  <bruno@clisp.org>
73076
73077         * lib/copy-file.c: Include <unistd.h> unconditionally.
73078         * lib/execute.c: Likewise.
73079         * lib/fatal-signal.c: Likewise.
73080         * lib/findprog.c: Likewise.
73081         * lib/mkdtemp.c: Likewise.
73082         * lib/pipe.h: Likewise.
73083         * lib/pipe.c: Likewise.
73084         * lib/wait-process.h: Likewise.
73085
73086 2006-04-23  Bruno Haible  <bruno@clisp.org>
73087
73088         * gnulib-tool (func_usage): Fix --import description. Document
73089         --update.
73090         (func_import): Create temporary file in a temporary directory, if
73091         --dry-run is specified. Silence errors from 'grep' when there are no
73092         m4 files in $m4dir.
73093         (func_create_testdir): Silence errors from 'grep' when there are no
73094         m4 files in $m4dir.
73095         Reported by Karl Berry <karl@freefriends.org>.
73096
73097 2006-04-20  Bruno Haible  <bruno@clisp.org>
73098
73099         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73100         one argument, so that the code will be portable to Autoconf 2.60.
73101         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73103         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73104
73105 2006-04-19  Derek Price  <derek@ximbiot.com>
73106             Eric Blake  <ebb9@byu.net>
73107
73108         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73109         rather than "/full/path.h".  Update comment to match.  Shorten &
73110         generalize m4_translit call via AS_TR_CPP.
73111
73112 2006-04-19  Derek Price  <derek@ximbiot.com>
73113             Eric Blake  <ebb9@byu.net>
73114
73115         * lib/inttypes.h: Correct grammar in comment.
73116
73117 2006-04-18  Derek Price  <derek@ximbiot.com>
73118             Paul Eggert  <eggert@cs.ucla.edu>
73119
73120         * modules/inttypes: New file.
73121         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73122
73123 2006-04-18  Derek Price  <derek@ximbiot.com>
73124             Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73127         New files.
73128
73129 2006-04-18  Derek Price  <derek@ximbiot.com>
73130             Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         * lib/inttypes.h: New file.
73133         * lib/strtoimax.c: Assume <inttypes.h>.
73134
73135 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73138         isn't mounted.  Problem reported by Kir Kolyshkin.
73139
73140 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73143         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73144         Derek R. Price.
73145         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73146         implementation.
73147
73148 2006-04-12  Eric Blake  <ebb9@byu.net>
73149
73150         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73151         is now done automatically by the corresponding Autoconf macro.
73152
73153 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73156         time_r.h.
73157
73158 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         Merge regex changes from libc, removing some of our
73161         POSIX-conformance changes that were rejected and redoing them in a
73162         less-intrusive way.
73163
73164         * lib/regcomp.c (re_compile_internal, init_dfa):
73165         Length arg is now size_t, not Idx.  All uses changed.
73166         (peek_token): Forward decl now says internal_function.
73167         (__re_error_msgid, __re_error_msgid_idx):
73168         Now static rather than extern with attribute_hidden.
73169         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73170         For some reason libc prefers K&R style defns for external functions.
73171         (regerror) [!defined _LIBC]: Likewise.
73172         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73173         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73174         (build_range_exp, build_collating_symbol):
73175         Use K&R-style defn.
73176         (re_compile_fastmap): Use '\0' to memset, not 0.
73177         (utf8_sb_map): Make the calculations more obvious.
73178         (init_dfa, parse_bracket_exp, build_charclass_op):
73179         Call calloc and cast result, as glibc does.
73180         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73181         (build_range_exp, build_collating_symbol):
73182         Now internal functions.
73183
73184         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73185
73186         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73187         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73188         Don't depend on VMS; depend on __VMS instead, for POSIX
73189         namespace cleanness.
73190         (regoff_t): Define to ssize_t, not long int.
73191
73192         Remove the REG_ macros named below.  Instead, make the old names
73193         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73194         __USE_GNU_REGEX.
73195         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73196         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73197         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73198         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73199         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73200         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73201         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73202         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73203         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73204         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73205         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73206         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73207         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73208         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73209         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73210         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73211         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73212         (REG_NREGS):
73213         Remove.  All uses replaced by the old RE_* names.
73214         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73215         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73216         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73217         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73218         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73219         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73220         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73221         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73222         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73223         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73224         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73225         Don't bother having these macros be independent of each others'
73226         values, since they no longer exist in the POSIX name space.
73227
73228         Rename the following member names back to their old names,
73229         unless !__USE_GNU_REGEX.  All uses changed back.
73230         (buffer): Renamed from re_buffer.
73231         (allocated): Renamed from re_allocated.
73232         (used): Renamed from re_used.
73233         (syntax): Renamed from re_syntax.
73234         (fastmap): Renamed from re_fastmap.
73235         (translate): Renamed from re_translate.
73236         (can_be_null): Renamed from re_can_be_null.
73237         (regs_allocated): Renamed from re_regs_allocated.
73238         (fastmap_accurate): Renamed from re_fastmap_accurate.
73239         (no_sub): Renamed from re_no_sub.
73240         (not_bol): Renamed from re_not_bol.
73241         (not_eol): Renamed from re_not_eol.
73242         (newline_anchor): Renamed from re_newline_anchor.
73243         (num_regs): Renamed from rm_num_regs.
73244         (start): Renamed from rm_start.
73245         (end): Renamed from rm_end.
73246
73247         (free_state): Move up a bit.
73248
73249         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73250         #define to be empty.
73251         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73252         when that is what is intended.
73253         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73254         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73255         (MAX): New macro.
73256         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73257         All uses changed back to re_malloc, etc.  It's now the caller's
73258         responsibility to check for overflow; all callers changed.
73259         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73260         (re_x2nrealloc): Remove.
73261         (free_state): Remove decl.
73262
73263         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73264         (re_set_registers, re_exec):
73265         Use K&R-style defn.
73266
73267         2006-01-31  Roland McGrath  <roland@redhat.com>
73268
73269         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73270         Reported by Mike Frysinger <vapier@gentoo.org>.
73271
73272         2006-01-15  Andreas Jaeger  <aj@suse.de>
73273
73274         [BZ #1950]
73275         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73276         build_wcs_upper_buffer change.
73277         (build_wcs_upper_buffer): Change return type.
73278
73279         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73280
73281         * lib/regex_internal.h: Include <stdint.h> if available.
73282
73283         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73284
73285         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73286
73287         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73288
73289         * lib/regcomp.c: Adjust for changed secondary hash function.
73290
73291         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73292
73293         * lib/regex.h: Pretty printing.
73294         Clean up namespace a bit.
73295
73296         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73297
73298         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73299         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73300
73301         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73302                     Ulrich Drepper  <drepper@redhat.com>
73303
73304         [BZ #1302]
73305         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73306         changed.
73307         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73308
73309         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73310
73311         [BZ #281]
73312         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73313         * lib/regcomp.c: Remove unnecessary uses of
73314         unsigned RE_TRANSLATE_TYPE.
73315         * lib/regex_internal.h: Likewise.
73316         * lib/regex_internal.c: Likewise.
73317         * lib/regexec.c: Likewise.
73318         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73319
73320         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73321
73322         * lib/regexec.c (find_recover_state): Remove unnecessary
73323         initialization.
73324         (transit_state_bkref): Make DFA a const pointer.
73325         (get_subexp): Likewise.
73326         (check_arrival): Likewise.
73327         (update_cur_sifted_state): Likewise.
73328         (re_search_internal): Likewise.
73329         (prune_impossible_nodes): Likewise.
73330         (acquire_init_state_context): Likewise.
73331         (proceed_next_node): Likewise.
73332         (set_regs): Likewise.
73333         (free_fail_stack_return): Likewise.
73334         (check_arrival_expand_ecl): Mark DFA parameter as const.
73335         (check_arrival_expand_ecl_sub): Likewise.
73336         (check_subexp_limits): Likewise.
73337         (sub_epsilon_src_nodes):  Likewise.
73338         (add_epsilon_src_nodes):  Likewise.
73339         (merge_state_array): Likewise.
73340         (update_regs): Likewise.
73341         (build_trtable): Likewise.
73342         (sift_states_backward): Mark MCTX parameter as const.
73343         (build_sifted_states): Likewise.
73344         (update_cur_sifted_state): Likewise.
73345         (sift_states_mkref): Likewise.
73346         (check_arrival_expand_ecl): Mark eclosure as const.
73347         (check_dst_limits_calc_pos_1): Likewise.
73348         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73349         pointer.
73350
73351         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73352
73353         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73354         (transit_state_sb): Likewise.
73355         (transit_state_mb): Likewise.
73356         (sift_states_iter_mb): Likewise.
73357         (check_arrival_add_next_nodes): Likewise.
73358         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73359         [_LIBC] (re_search_2_stub): Use mempcpy.
73360
73361         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73362         mbrtowc for very simple UTF-8 case.
73363
73364         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73365         a pointer-to-const.
73366         (re_acquire_state_context): Likewise.
73367         * lib/regex_internal.h: Adjust prototypes.
73368
73369         * lib/regex.c: Prevent using C++ compilers.
73370
73371         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73372         (re_acquire_state_context): Likewise.
73373
73374 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73375
73376         * modules/regex (Depends-on): Add ssize_t.
73377
73378 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73379
73380         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73381         translation table.
73382
73383 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73386
73387 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73388             Bruno Haible  <bruno@clisp.org>
73389
73390         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73391         <sys/types.h> and <inttypes.h>.
73392
73393 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73394
73395         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73396         `__error_t_defined', so argp.h will not typedef the former.
73397
73398 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73401         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73402         glibc names.  Even if glibc is changed to conform to POSIX, the
73403         traditional names will be available anyway, since regex depends on
73404         the extensions module.  Also, fix a longstanding typo in the
73405         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73406         reported by Emanuele Giaquinta.  Also, change sense of cached
73407         variable, so that the message makes sense.
73408
73409 2006-03-24  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73412         including some doc fixes.
73413         (base64_encode_alloc): Fix +1 bug on allocation failures.
73414
73415 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73416
73417         * lib/base64.c (base64_encode): Do not read past end of array with
73418         unsanitized input on systems with CHAR_BIT > 8.
73419
73420 2006-03-24  Eric Blake  <ebb9@byu.net>
73421
73422         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73423
73424 2006-03-22  Karl Berry  <karl@gnu.org>
73425
73426         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73427         * config/srclistvars.sh (COREUTILS): new var.
73428
73429 2006-03-17  Jim Meyering  <jim@meyering.net>
73430
73431         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73432         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73433
73434 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73437         no longer needs it.  Instead, check that regoff_t is as least
73438         as wide as ptrdiff_t.
73439
73440         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73441         so that our regex.h stays compatible with the installed regex.
73442         This is helpful for installers who configure --without-included-regex.
73443         Problem reported by Emanuele Giaquinta.
73444
73445 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73446
73447         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73448         Typedef to long int, not to off_, as POSIX will likely change
73449         in that direction.
73450
73451 2006-03-15  Eric Blake  <ebb9@byu.net>
73452
73453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73454
73455 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73456
73457         * lib/argp-help.c (validate_uparams): Fix typo
73458         * lib/argp-parse.c (argp_default_options): Consistently begin help
73459         messages with a lowercase letter.
73460
73461 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73464         overrun buffers and shouldn't be used (much as gets shouldn't be
73465         used).
73466         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73467
73468 2006-03-08  Simon Josefsson  <jas@extundo.com>
73469
73470         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73471         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73472
73473 2006-03-08  Simon Josefsson  <jas@extundo.com>
73474
73475         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73476         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73477
73478 2006-03-08  Simon Josefsson  <jas@extundo.com>
73479
73480         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73481         signal that configure disabled the device.
73482
73483 2006-03-08  Simon Josefsson  <jas@extundo.com>
73484
73485         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73486         languages.
73487
73488 2006-03-07  Simon Josefsson  <jas@extundo.com>
73489
73490         * modules/getopt (Depends-on): Add unistd.
73491
73492         * modules/unistd: New file.
73493
73494 2006-03-07  Simon Josefsson  <jas@extundo.com>
73495
73496         * modules/gc-random: New file.
73497
73498 2006-03-07  Simon Josefsson  <jas@extundo.com>
73499
73500         * m4/unistd_h.m4: New file.
73501
73502 2006-03-07  Simon Josefsson  <jas@extundo.com>
73503
73504         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73505         test to be side-effect free by storing the result in the cache
73506         variable gl_cv_lib_readline, and moving the assignment of
73507         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73508         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73509
73510 2006-03-07  Simon Josefsson  <jas@extundo.com>
73511
73512         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73513         error on missing devices (the functions will return an error).
73514
73515         * m4/gc.m4: Move random stuff to gc-random.m4
73516
73517 2006-03-07  Simon Josefsson  <jas@extundo.com>
73518
73519         * lib/unistd_.h: New file.
73520
73521 2006-03-07  Simon Josefsson  <jas@extundo.com>
73522
73523         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73524
73525 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73528         Problem reported by Juan Manuel Guerrero.
73529
73530 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73533         the unistd module.
73534         * lib/getlogin_r.c: Likewise.
73535         * lib/getlogin_r.h: Likewise.
73536         * lib/glob.c: Likewise.
73537         * lib/pagealign_alloc.c: Likewise.
73538         * lib/unistd_.h: Remove; no longer needed.
73539
73540 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73543         Add unistd.
73544         * modules/c-stack (Depends-on): Add unistd.
73545         * modules/getlogin_r: Likewise.
73546         * modules/glob: Likewise.
73547         * modules/pagealign_alloc: Likewise.
73548         * modules/unistd (Files): Remove lib/unistd_.h.
73549         (EXTRA_DIST): Remove.
73550         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73551         need unistd_.h.
73552         (MOSTLYCLEANFILES): Remove unistd.h-t.
73553
73554 2006-03-03  Simon Josefsson  <jas@extundo.com>
73555
73556         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73557
73558 2006-03-03  Simon Josefsson  <jas@extundo.com>
73559
73560         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73561         libidn and bison.
73562
73563 2006-03-03  Simon Josefsson  <jas@extundo.com>
73564
73565         * build-aux/maint.mk: Add indent target.
73566
73567 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73568
73569         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73570         our replacement poll.h in any case, to avoid a differing
73571         declaration from a system header.  Seen on AIX.
73572
73573 2006-03-01  Simon Josefsson  <jas@extundo.com>
73574
73575         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73576         <kasal@ucw.cz>.
73577
73578 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * modules/gettime (Depends-on): Add extensions module.
73581         * modules/nanosleep (Depends-on): Likewise.
73582         * modules/settime (Depends-on): Likewise.
73583
73584 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73587         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73588         pedantically.
73589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73590         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73591
73592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73593         not "==".  Reported by Ralf Wildenhues.
73594
73595 2006-03-01  Karl Berry  <karl@gnu.org>
73596
73597         * doc/Copyright/request-*: new files, synced from gnuorg.
73598
73599 2006-03-01  Karl Berry  <karl@gnu.org>
73600
73601         * config/srclist.txt (Copyright/*): new entries.
73602
73603 2006-02-28  Simon Josefsson  <jas@extundo.com>
73604
73605         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73606
73607 2006-02-27  Simon Josefsson  <jas@extundo.com>
73608
73609         * lib/base64.h: Indent #define's.  From Jim Meyering
73610         <jim@meyering.net>.
73611
73612 2006-02-27  Jim Meyering  <jim@meyering.net>
73613
73614         Revert the change of 2006-02-24, so these files can continue
73615         to be sync'd from gettext.
73616         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73617         of `config.h'.
73618
73619 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73620
73621         * modules/intprops: New file.
73622         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73623         Add intprops.
73624         * modules/getloadavg (Files): Remove lib/intprops.h.
73625         (Depends-on): Add intprops.
73626         * modules/human: Likewise.
73627         * modules/inttostr: Likewise.
73628         * modules/openat: Likewise.
73629         * modules/sig2str: Likewise.
73630         * modules/userspec: Likewise.
73631         * modules/utimecmp: Likewise.
73632         * modules/xnanosleep: Likewise.
73633         * modules/xstrtol: Likewise.
73634
73635 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73636
73637         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73638         * modules/lock-tests (TESTS): Use $(EXEEXT).
73639         * modules/tls-tests: Likewise.
73640         * modules/argp-tests: Likewise.
73641         (check_PROGRAMS): New var, replacing...
73642         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73643
73644 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73645
73646         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73647         `config.h'.
73648
73649 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73652
73653 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73654
73655         Sync from coreutils.
73656         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73657         gl_CHDIR_SAFER.
73658
73659 2006-02-22  Jim Meyering  <jim@meyering.net>
73660
73661         Sync from coreutils.
73662         * m4/chdir-safer.m4: New file.
73663
73664 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73667         AT_FDCWD exceeds INT_MAX.
73668         * lib/openat.h (AT_FDCWD): Likewise.
73669
73670 2006-02-17  Eric Blake  <address@hidden>
73671
73672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73673
73674 2006-02-16  Simon Josefsson  <jas@extundo.com>
73675
73676         * modules/getaddrinfo (Depends-on): Add sys_socket.
73677
73678 2006-02-15  Simon Josefsson  <jas@extundo.com>
73679
73680         * build-aux/maint.mk: Add dsyntax-check rule.
73681
73682 2006-02-15  Eric Blake  <ebb9@byu.net>
73683
73684         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73685         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73686         'present but cannot compile' warnings on cygwin.
73687         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73688         use ws2tcpip.h if sys/socket.h works.
73689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73690         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73691
73692 2006-02-14  Simon Josefsson  <jas@extundo.com>
73693
73694         * modules/maintainer-makefile (Files): Rename.
73695
73696         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73697         and (the local) Makefile.cfg to maint-cfg.mk.
73698
73699         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73700         to the latter.
73701
73702         * modules/maintainer-makefile: New module.
73703
73704         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73705         severaly stripped to make it possible to build it up from scratch
73706         with reliable tests.
73707
73708         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73709         fixes to permit overriding the default actions when configure and
73710         makefile are not available.
73711
73712 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73713
73714         Sync from coreutils.
73715         * modules/lstat (Depends-on): Don't depend on xalloc.
73716         (License): Change from GPL to LGPL, since this is now simply a
73717         replacement for a libc function.
73718
73719 2006-02-14  Jim Meyering  <jim@meyering.net>
73720
73721         Sync from coreutils.
73722
73723         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73724         failure on deficient systems, and simplify gnulib lgpl dependencies.
73725         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73726         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73727
73728         * lib/xalloc-die.c: Remove unused definition of N_.
73729
73730 2006-02-14  Jim Meyering  <jim@meyering.net>
73731
73732         Sync from coreutils.
73733         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73734         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73735         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73736         double-quote uses of that variable, to accommodate the rare case in
73737         which getmntent is available in none of the libraries checked.  This
73738         happens at least on FreeBSD 5.0.
73739
73740 2006-02-13  Simon Josefsson  <jas@extundo.com>
73741
73742         * gnulib-tool (Usage): Fix --import, from
73743         karl@freefriends.org (Karl Berry).
73744
73745 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73746
73747         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73748
73749 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73750
73751         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73752         "autoupdate" on 2005-12-12.
73753
73754 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73755
73756         * modules/closeout (Depends-on): Remove atexit.
73757
73758 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73759
73760         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73761         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73762
73763 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73766         __EXTENSIONS__ if this causes compilation to fail.  Problem
73767         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73768         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73769
73770 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73773         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73775         All uses changed.
73776
73777 2006-01-26  Simon Josefsson  <jas@extundo.com>
73778
73779         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73780         prototype is visible on mingw32.
73781
73782         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73783         for mingw32.
73784
73785         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73786         mingw32).
73787
73788 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73791         attempt to open for write; this always fails, at least on POSIX
73792         hosts.  This reinstates the 2006-01-09 change, which was
73793         inadvertently removed.
73794
73795 2006-01-26  Bruno Haible  <bruno@clisp.org>
73796
73797         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73798         Reported by Paul Eggert.
73799
73800 2006-01-26  Bruno Haible  <bruno@clisp.org>
73801             Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * lib/stdbool_.h (_Bool)
73804         [(! (defined __cplusplus || defined __BEOS__)
73805           && !defined __GNUC__
73806           && !(defined __HP_cc || defined __xlc__
73807                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73808                || defined __sgi))]:
73809         #define to signed char in these cases too; this simplifies
73810         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73811         etc., separately) and makes it more conservative.
73812
73813 2006-01-25  Simon Josefsson  <jas@extundo.com>
73814
73815         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73816         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73817         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73818
73819 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73820
73821         * lib/argp-namefrob.h: Bugfix. Remove stray #
73822
73823 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73826         so that we test the test.
73827         Check for yet another HP-UX cc bug involving *bool |= bool.
73828
73829 2006-01-25  Karl Berry  <karl@gnu.org>
73830
73831         * config/srclist.txt (vasnprintf.c): sync lost.
73832
73833 2006-01-25  Jim Meyering  <jim@meyering.net>
73834
73835         Sync from the stable (b5) branch of coreutils:
73836
73837         * lib/fts.c (fts_children): Don't let close() clobber errno from
73838         failed fchdir().
73839
73840         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73841         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73842         a dangling symlink.  That can also happen at least for ELOOP.
73843         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73844         FYI, this bug predates the inclusion of fts.c in coreutils.
73845
73846         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73847         in their own block, so pre-c99 compilers don't object.
73848
73849         Avoid the double-free (first in fts_read, second in fts_close) that
73850         would occur when an `active' directory is made inaccessible (e.g.,
73851         via chmod a-x) during a traversal.
73852         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73853         before returning.  Reproduce this failure by
73854         mkdir -p a/b; cd a; chmod a-x . b
73855         Reported by Stavros Passas.
73856
73857 2006-01-25  Jim Meyering  <jim@meyering.net>
73858
73859         * lib/fileblocks.c: Remove more useless parentheses.
73860         * lib/readutmp.h: Likewise.
73861
73862 2006-01-25  Bruno Haible  <bruno@clisp.org>
73863
73864         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73865         warnings.
73866         Reported by Paul Eggert.
73867
73868 2006-01-25  Bruno Haible  <bruno@clisp.org>
73869
73870         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73871         rid of a trap command. For Solaris sh.
73872         Reported by Mark D. Baushke <mdb@gnu.org>.
73873
73874 2006-01-24  Simon Josefsson  <jas@extundo.com>
73875
73876         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73877         Bruno.
73878
73879 2006-01-24  Karl Berry  <karl@gnu.org>
73880
73881         * config/srclist.txt (argp-namefrob.h): sync lost.
73882
73883 2006-01-24  Jim Meyering  <jim@meyering.net>
73884
73885         * modules/openat (Files): Add lib/intprops.h.
73886         From Mark D. Baushke.
73887
73888 2006-01-24  Jim Meyering  <jim@meyering.net>
73889
73890         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73891         Reported by Mark D. Baushke.
73892
73893 2006-01-24  Jim Meyering  <jim@meyering.net>
73894
73895         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73896
73897 2006-01-24  Bruno Haible  <bruno@clisp.org>
73898
73899         * modules/strnlen (Maintainer): Change from glibc to all.
73900
73901 2006-01-24  Bruno Haible  <bruno@clisp.org>
73902
73903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73904         Patch by Paul Eggert.
73905
73906 2006-01-24  Bruno Haible  <bruno@clisp.org>
73907
73908         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73909         already has it.
73910         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73911         2005-11-26.
73912
73913         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73914         'signed char' to avoid problems with the built-in _Bool type.
73915         Reported by Paul Eggert on 2005-11-26.
73916
73917 2006-01-24  Bruno Haible  <bruno@clisp.org>
73918
73919         * gnulib-tool (func_import): Avoid constructing complicated sed
73920         expressions inside backquote.
73921         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73922
73923 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73924
73925         These changes imported from libc.
73926         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73927         test and two separate function calls.
73928         * lib/strndup.c (__strndup): Add libc_hidden_def.
73929
73930 2006-01-23  Simon Josefsson  <jas@extundo.com>
73931
73932         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73933         Remove the test_*_SOURCES variable: automake infers it by default.
73934         * modules/tls-tests: Likewise.
73935
73936 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         Work around porting bugs reported by Dieter in
73939         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73940         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73941         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73942         Include "getopt.h" first, to check interface.
73943         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73944         !HAVE_DECL_GETENV.
73945         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73946         (__strndup): Revert to K&R-style function dfns, the glibc style.
73947         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73948         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73949         Include strnlen.h first, to get prototype properly.
73950         (strnlen): Renamed from __strnlen.
73951         Remove weak alias.
73952
73953 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73954
73955         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73956
73957 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * config/srclist.txt: Adjust to reflect glibc reorganization.
73960         This affects only comments.
73961
73962 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73963
73964          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73965          Reported by Bruce Korb <bkorb@gnu.org>.
73966
73967 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73970         to pacify gcc -Wswitch-default.
73971
73972 2006-01-22  Bruno Haible  <bruno@clisp.org>
73973
73974         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73975         temporary buffer for sprintf, take into account the precision also
73976         for 'd', 'i', 'u', 'o', 'x', 'X'.
73977
73978 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73979
73980         * modules/argp-tests: New module
73981         * tests/test-argp.c: New file
73982         * tests/test-argp-2.sh: New file
73983
73984 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73985
73986         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73987         (__argp_base_name): Removed
73988         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73989         typo.
73990         (__argp_base_name): Provide macro definition or extern declaration
73991         depending on the configuration
73992
73993 2006-01-20  Simon Josefsson  <jas@extundo.com>
73994
73995         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73996
73997 2006-01-20  Simon Josefsson  <jas@extundo.com>
73998
73999         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74000
74001 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74004         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74005         Suggested by Bruno Haible.
74006
74007 2006-01-20  Karl Berry  <karl@gnu.org>
74008
74009         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74010         until changes propagate, I guess.
74011
74012 2006-01-19  Simon Josefsson  <jas@extundo.com>
74013
74014         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74015
74016 2006-01-19  Simon Josefsson  <jas@extundo.com>
74017
74018         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74019
74020 2006-01-19  Simon Josefsson  <jas@extundo.com>
74021
74022         * gnulib-tool: Set check_PROGRAMS.
74023
74024         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74025         modules/des-tests, modules/gc-arcfour-tests,
74026         modules/gc-arctwo-tests, modules/gc-des-tests,
74027         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74028         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74029         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74030         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74031         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74032         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74033         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74034         test_*_SOURCES.
74035
74036 2006-01-18  Simon Josefsson  <jas@extundo.com>
74037
74038         * modules/socklen (Depends-on): Depend on sys_socket.
74039
74040 2006-01-18  Simon Josefsson  <jas@extundo.com>
74041
74042         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74043         modules/des-tests, modules/gc-arcfour-tests,
74044         modules/gc-arctwo-tests, modules/gc-des-tests,
74045         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74046         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74047         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74048         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74049         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74050         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74051         $(EXEEXT) to automake TESTS variable, for mingw32.
74052
74053 2006-01-17  Simon Josefsson  <jas@extundo.com>
74054
74055         * modules/socklen (Include): Need sys/socket.h.
74056
74057 2006-01-17  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/ssize_t (Include): Add <sys/types.h>.
74060
74061 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74064         it's not portable and it doesn't work with cross-compiles.
74065         Problem reported by Bruno Haible.  Fix missing-$ typo in
74066         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74067         -zignore from being used with Sun's C compiler.
74068
74069 2006-01-12  Simon Josefsson  <jas@extundo.com>
74070
74071         * lib/base64.c: Fix warning, reported by Bruno Haible
74072         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74073
74074 2006-01-12  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/ldd: New file.
74077         * build-aux/ldd.sh.in: New file.
74078         * MODULES.html.sh (Support for building libraries and executables): Add
74079         ldd.
74080
74081 2006-01-12  Bruno Haible  <bruno@clisp.org>
74082
74083         * m4/ldd.m4: New file.
74084
74085 2006-01-12  Bruno Haible  <bruno@clisp.org>
74086
74087         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74088         endless loop while replacing $auxdir with build-aux.
74089
74090 2006-01-11  Simon Josefsson  <jas@extundo.com>
74091
74092         * lib/stdint_.h (SIZE_MAX): Add missing (.
74093
74094 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         Sync from coreutils.
74097         * lib/md5.c: Fix commentary typos.
74098         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74099         * lib/md5.h (__attribute__): Remove; unused.
74100         * lib/sha1.c: Fix commentary to match md5 better.
74101         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74102         so that we don't need to worry about alignment.  All uses changed.
74103         This merges the 2005-10-28 md5 change into sha1.
74104
74105 2006-01-11  Jim Meyering  <jim@meyering.net>
74106
74107         Sync from coreutils.
74108         * lib/md5.c (OP): Fix spacing.
74109
74110 2006-01-11  Bruno Haible  <bruno@clisp.org>
74111
74112         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74113         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74114         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74115
74116 2006-01-11  Bruno Haible  <bruno@clisp.org>
74117
74118         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74119         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74120         the "early" section as well.
74121
74122 2006-01-11  Bruno Haible  <bruno@clisp.org>
74123
74124         Avoid "ar: no archive members specified" error on MacOS X.
74125         * gnulib-tool (func_modules_add_dummy): New function.
74126         (func_import, func_create_testdir): Invoke it.
74127
74128 2006-01-11  Bruno Haible  <bruno@clisp.org>
74129
74130         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74131         with $auxdir in AC_CONFIG_FILES statements.
74132
74133 2006-01-11  Bruno Haible  <bruno@clisp.org>
74134
74135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74136         Initialize also noinst_HEADERS to empty.
74137
74138 2006-01-11  Bruno Haible  <bruno@clisp.org>
74139
74140         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74141         variables.
74142         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74143         autoreconf.
74144
74145 2006-01-11  Bruno Haible  <bruno@clisp.org>
74146
74147         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74148         overridable by the user.
74149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74150
74151 2006-01-10  Simon Josefsson  <jas@extundo.com>
74152
74153         * modules/sys_socket: New file.
74154
74155 2006-01-10  Simon Josefsson  <jas@extundo.com>
74156
74157         * m4/sys_socket_h.m4: New file.
74158
74159 2006-01-10  Simon Josefsson  <jas@extundo.com>
74160
74161         * lib/socket_.h: New file.
74162
74163 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * modules/readutmp (Maintainer): Add myself.
74166
74167 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74170         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74171         People who are still concerned with buggy memcmp implementations
74172         can invoke gl_FUNC_MEMCMP themselves.
74173
74174 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/regex_internal.h (BITSET_WORD_BITS):
74177         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74178         preprocessor mishandles large unsigned values as if they were signed.
74179         Problem reported by Claudio Fontana in
74180         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74181
74182 2006-01-10  Jim Meyering  <jim@meyering.net>
74183
74184         Avoid the double-free (first in fts_read, second in fts_close) that
74185         would occur when an `active' directory is made inaccessible (e.g.,
74186         via chmod a-x) during a traversal.
74187         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74188         before returning.  Reproduce this failure by
74189         mkdir -p a/b; cd a; chmod a-x . b
74190         Reported by Stavros Passas.
74191
74192         Sync from coreutils.
74193         * lib/sha1.c: Tweak grammar in a comment.
74194
74195 2006-01-10  Jim Meyering  <jim@meyering.net>
74196
74197         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74198         Patch by Joerg Sonnenberger.
74199
74200 2006-01-10  Bruno Haible  <bruno@clisp.org>
74201
74202         * modules/readutmp: Depend on module free.
74203         * modules/strtok_r: Depend on module restrict.
74204
74205 2006-01-10  Bruno Haible  <bruno@clisp.org>
74206
74207         * modules/gettext (configure.ac): Add an invocation of
74208         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74209
74210 2006-01-10  Bruno Haible  <bruno@clisp.org>
74211
74212         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74213         Reported by Werner Lemberg <wl@gnu.org>.
74214
74215 2006-01-10  Bruno Haible  <bruno@clisp.org>
74216
74217         * lib/localcharset.c: Update from GNU gettext.
74218
74219 2006-01-10  Bruno Haible  <bruno@clisp.org>
74220
74221         * lib/argp.h (__const): Remove macro. Use const instead.
74222         * lib/argp-fmtstream.h (__const): Likewise.
74223         * lib/glob_.h (__const): Remove macro.
74224         * lib/glob-libc.h: Use const instead of __const.
74225
74226 2006-01-10  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74229         variable.
74230         Needed to avoid an automake error regarding the 'gettext' module.
74231
74232 2006-01-09  Simon Josefsson  <jas@extundo.com>
74233
74234         * modules/inet_ntop (Depends-on): Add restrict.
74235
74236 2006-01-09  Simon Josefsson  <jas@extundo.com>
74237
74238         * modules/gc-rijndael-tests (License): Put under LGPL.
74239
74240         * modules/gc-des-tests (License): Likewise.
74241
74242         * modules/gc-arcfour-tests (License): Likewise.
74243
74244         * modules/gc-arctwo-tests (License): Likewise.
74245
74246         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74247
74248         * modules/gc-hmac-sha1-tests (Files): Likewise.
74249
74250         * modules/gc-hmac-md5-tests (License): Likewise.
74251
74252         * modules/gc-sha1-tests (License): Likewise.
74253
74254         * modules/gc-md5-tests (License): Likewise.
74255
74256         * modules/gc-md4-tests (License): Likewise.
74257
74258         * modules/gc-md2-tests (License): Likewise.
74259
74260         * modules/gc-tests (License): Likewise.
74261
74262         * modules/des-tests (License): Likewise.
74263
74264         * modules/md4-tests (License): Likewise.
74265
74266         * modules/md2-tests (License): Likewise.
74267
74268 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         Sync from coreutils:
74271
74272         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74273         * modules/lib-ignore: New file.
74274         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74275         chdir-safer.m4, lchmod.m4.
74276         * modules/openat: Add mkdirat.c, openat-priv.h.
74277
74278 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         Sync from coreutils.
74281         * m4/lib-ignore.m4: New file.
74282         * m4/lchmod.m4: New file.
74283
74284 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         Sync from coreutils.
74287         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74288         for write access: POSIX says that must fail.
74289         * lib/fts.c (diropen): Likewise.
74290         * lib/save-cwd.c (save_cwd): Likewise.
74291         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74292         well, for minor improvements on hosts that lack O_DIRECTORY.
74293         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74294         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74295         Fall back on chown if open failed with EACCES.
74296
74297         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74298         Report an error at compile-time if only a 1-second nominal clock
74299         resolution is found.
74300
74301         * lib/lchmod.h: New file.
74302         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74303         (make_dir_parents): Use lchown rather than chown, and
74304         lchmod rather than chmod.
74305
74306         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74307         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74308         "proc" reported by n0dalus.
74309
74310         * lib/mountlist.c: Include <limits.h>.
74311         (dev_from_mount_options)
74312         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74313         New function.  It no longer assumes "dev=" has the System V meaning
74314         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74315         (read_file_system_list)
74316         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74317         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74318         dev= in that case.
74319
74320         * lib/posixtm.h (PDS_PRE_2000): New macro.
74321         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74322         allow_century.  All usages changed.  Reject dates outside the range
74323         1969-1999 if PDS_PRE_2000 is used.
74324
74325 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74326
74327         Sync from coreutils.
74328         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74329         (Time of day items): Mention the possibility of leap seconds.
74330         Problem reported by Dr. David Alan Gilbert.
74331
74332 2006-01-09  Jim Meyering  <jim@meyering.net>
74333
74334         Sync from coreutils.
74335
74336         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74337
74338         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74339
74340         * lib/modechange.c (mode_compile): Reject an invalid mode string
74341         that starts with an octal digit.  From Andreas Gruenbacher.
74342
74343         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74344         and dup to open_safer and dup_safer, respectively.
74345         (openat_permissive): Fix typo in comment.
74346
74347         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74348         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74349         (_): Remove; no longer needed.
74350         (openat): Renamed from rpl_openat; no need for rpl_openat
74351         since openat.h renames openat for us.
74352         Replace most of the body with a call to openat_permissive,
74353         to avoid duplicate code.
74354         Port to (probably hypothetical) environments were mode_t is
74355         wider than int.
74356         (openat_permissive): Require mode arg, so that we can check
74357         types better.  Put it just after flags.  Change cwd failure
74358         indicator from pointer-to-bool to pointer-to-errno-value.
74359         All callers changed.
74360         Invoke openat_save_fail and/or openat_restore_fail if
74361         cwd_errno is null, so that openat can call us.
74362         (openat_permissive, fdopendir, fstatat, unlinkat):
74363         Simplify errno handling to avoid some duplicate code,
74364         as it's OK to set errno on success.
74365         * lib/openat.h: Revamp code so that function macros depend on
74366         __OPENAT_PREFIX only, not also on AT_FDCWD.
74367         (openat_ro): Remove.  Caller changed to use openat_permissive.
74368         (openat_permissive): Now a macro, if not a function.
74369         (openat_restore_fail, openat_save_fail): Now always functions,
74370         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74371
74372         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74373         and openat.c.
74374         * lib/mkdirat.c: Include openat-priv.h.
74375         Remove definitions of macros defined therein.
74376         * lib/openat.c: Likewise.
74377
74378         * lib/mkdirat.c (mkdirat): New file and function.
74379         * lib/openat.h (mkdirat): Declare.
74380
74381         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74382
74383         * lib/openat.h (openat_permissive): Declare.
74384         (openat_ro): Define.
74385
74386         * lib/openat.c (EXPECTED_ERRNO): New macro.
74387         (openat_permissive): New function -- used in remove.c rewrite.
74388         (all functions): Set errno just before returning, only if there
74389         was an actual failure.
74390         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74391
74392         Emulate openat-family functions using Linux's procfs, if possible.
74393         Idea and some code based on Ulrich Drepper's glibc changes.
74394
74395         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74396         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74397         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74398         before falling back on save_cwd and restore_cwd.
74399         (fdopendir, fstatat, unlinkat): Likewise.
74400
74401         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74402         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74403
74404         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74405         as second argument to va_arg.  Otherwise, some versions of gcc
74406         warn that `if this code is reached, the program will abort'.
74407
74408 2006-01-09  Jim Meyering  <jim@meyering.net>
74409
74410         Sync from coreutils.
74411         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74412         Require openat-priv.h.
74413
74414 2006-01-09  Bruno Haible  <bruno@clisp.org>
74415
74416         * modules/strnlen (Include): Use strnlen.h.
74417
74418 2006-01-09  Bruno Haible  <bruno@clisp.org>
74419
74420         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74421
74422 2006-01-09  Bruno Haible  <bruno@clisp.org>
74423
74424         * lib/sysexit_.h (EX_OK): New macro.
74425         Suggested by Martin Lambers <marlam@marlam.de>.
74426
74427 2006-01-09  Bruno Haible  <bruno@clisp.org>
74428
74429         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74430         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74431
74432 2006-01-09  Bruno Haible  <bruno@clisp.org>
74433
74434         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74435         numbers.
74436
74437 2006-01-09  Bruno Haible  <bruno@clisp.org>
74438
74439         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74440         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74441         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74442         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74443
74444 2006-01-09  Bruno Haible  <bruno@clisp.org>
74445
74446         * build-aux/javacomp.sh.in: New file, moved from lib/.
74447         * modules/javacomp-script (Files): Update.
74448         (configure.ac): Add AC_CONFIG_FILES invocation.
74449         (EXTRA_DIST): Remove variable.
74450
74451         * build-aux/javaexec.sh.in: New file, moved from lib/.
74452         * modules/javaexec (Files): Update.
74453         (configure.ac): Add AC_CONFIG_FILES invocation.
74454         (EXTRA_DIST): Remove javaexec.sh.in.
74455
74456         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74457         * modules/csharpcomp-script (Files): Update.
74458         (configure.ac): Add AC_CONFIG_FILES invocation.
74459         (EXTRA_DIST): Remove variable.
74460
74461         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74462         * modules/csharpexec (Files): Update.
74463         (configure.ac): Add AC_CONFIG_FILES invocation.
74464         (EXTRA_DIST): Remove csharpexec.sh.in.
74465
74466 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74467
74468         Sync from coreutils.
74469
74470         Add POSIX ACL support
74471         * lib/acl.h (copy_acl, set_acl): Add declarations.
74472         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74473         systems other than Linux.
74474         (chmod_or_fchmod): New function: use fchmod when possible,
74475         and chmod otherwise.
74476         (file_has_acl): Add a POSIX ACL implementation, with a
74477         Linux-specific subcase.
74478         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74479         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74480         acls are unsupported.
74481         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74482         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74483         are unsupported.
74484
74485 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74486
74487         Sync from coreutils.
74488         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74489
74490 2006-01-07  Bruno Haible  <bruno@clisp.org>
74491
74492         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74493         gl_EARLY.
74494
74495 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74498         Problem reported for Mingw by Mark Junker.
74499
74500 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * README: Gnulib normally doesn't generate a tarball.
74503
74504 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74507         long int, not int, for nanosecond counts, so that people who are
74508         used to POSIX struct timespec won't be surprised.  Reported by Jim
74509         Meyering.
74510
74511 2005-12-28  Bruno Haible  <bruno@clisp.org>
74512
74513         * build-aux/config.rpath: Update from GNU gettext.
74514
74515 2005-12-16  Jim Meyering  <jim@meyering.net>
74516
74517         * modules/fprintftime: New module.
74518         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74519
74520 2005-12-16  Jim Meyering  <jim@meyering.net>
74521
74522         * m4/fprintftime.m4: New file.
74523
74524 2005-12-16  Jim Meyering  <jim@meyering.net>
74525
74526         * lib/fprintftime.c, lib/fprintftime.h: New files.
74527
74528 2005-12-15  Simon Josefsson  <jas@extundo.com>
74529
74530         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74531         new m4/socklen.m4.
74532
74533 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74534
74535         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74536         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74537
74538 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74539
74540         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74541         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74542         struct uparams is valid. Fall back to the default values if it is
74543         not.
74544
74545 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74546
74547         * modules/argp (Files): Add argp-pin.c
74548         (Depends-on): dirname
74549         (lib_SOURCES): Add argp-pin.c
74550
74551 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74552
74553         * m4/argp.m4:  Check if program_invocation_name and
74554         program_invocation_short_name are declared and define appropriate
74555         macros if they are not.
74556
74557 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74558
74559         * lib/argp-help.c (__argp_base_name): New function
74560         (__argp_short_program_name): Rewrite using __argp_base_name
74561         * lib/argp-namefrob.h: Define program_invocation_name and
74562         program_invocation_short_name if requested
74563         (__argp_base_name): Add prototype
74564         * lib/argp-parse.c (argp_def): Use gettext wrappers
74565         (argp_default_parser): Use __argp_base_name
74566         * lib/argp-pin.c: New file. Defines program_invocation_name and
74567         program_invocation_short_name on systems that lack them.
74568
74569 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74572         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74573         porting problem reported by Georg Schwarz in
74574         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74575
74576 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74579         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74580         porting problem reported by Georg Schwarz in
74581         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74582
74583 2005-12-05  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74586         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74587         Reported by Mark Junker <mjscod@gmx.de>.
74588
74589 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74592         Use implementation from Albert Chin, with some
74593         comments/corrections by Stepan Kasal and myself.
74594
74595 2005-12-02  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool (func_import): Accept GPLed build tool modules when
74598         --lgpl is given.
74599         * modules/csharpcomp-script: New file.
74600         * modules/csharpcomp: Depend on it.
74601         * modules/javacomp-script: New file.
74602         * modules/javacomp: Depend on it.
74603         Suggested by Simon Josefsson.
74604
74605 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74608         statement, to work around an HP-UX 10.20 compiler bug reported by
74609         Peter O'Gorman.
74610
74611 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * modules/savedir (Depends-on): Add openat.
74614
74615 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74618         (uintmax_t) [defined uintmax_t]: Do not declare.
74619         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74620         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74621         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74622         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74623         sake of portability to weird hosts that C allows (though we don't
74624         know of any practical examples).
74625
74626         * lib/savedir.h (fdsavedir): New decl.
74627         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74628         contains most of the former guts of savedir.
74629         (savedir): Use savedirstream.
74630         Include "openat.h".
74631
74632 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * modules/obstack (Files): Add m4/ulonglong.m4.
74635         Problem reported by Davide Angelocola.
74636
74637 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74640         coreutils no longer futzes with rounding modes.
74641
74642 2005-11-14  Jim Meyering  <jim@meyering.net>
74643
74644         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74645         replacement of mkstemp.
74646
74647 2005-11-10  Simon Josefsson  <jas@extundo.com>
74648
74649         * lib/readline.c: Remove EOL.
74650
74651 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         * modules/gethrxtime (Depends-on): Add gettime.
74654
74655 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74658         or gettimeofday; no longer needed.
74659
74660 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74663         time business.
74664         (gethrxtime) [! (HAVE_NANOUPTIME
74665         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74666         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74667         our own approximation.
74668
74669 2005-11-08  Eric Blake  <ebb9@byu.net>
74670
74671         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74672
74673 2005-11-08  Eric Blake  <ebb9@byu.net>
74674
74675         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74676
74677 2005-11-04  Bruno Haible  <bruno@clisp.org>
74678
74679         * gnulib-tool: Implement --update mode.
74680
74681 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         Fix porting problem reported by Theodoros V. Kalamatianos.
74684         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74685         Don't assume that futimes failing means we must fail.
74686
74687 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74690         variables to suggest the intended function of the PATH_MAX check.
74691
74692 2005-10-30  Kean Johnston  <jkj@sco.com>
74693
74694         Trivial changes to support SCO systems.
74695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74696         as PATH_MAX.
74697         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74698         where __ptr is null when no I/O is pending.
74699
74700 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74703         leave errno alone.  Problem reported by Dmitry V. Levin.
74704
74705 2005-10-28  Simon Josefsson  <jas@extundo.com>
74706
74707         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74708         Test more.
74709
74710         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74711
74712         * modules/md2, modules/md2-tests: New files.
74713
74714 2005-10-28  Simon Josefsson  <jas@extundo.com>
74715
74716         * m4/inet_ntop.m4: More tests.
74717
74718         * m4/gc-md2.m4, md2.m4: New file.
74719
74720 2005-10-28  Simon Josefsson  <jas@extundo.com>
74721
74722         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74723         "restrict" keywords, as per POSIX.  Protect the function
74724         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74725         Don't use K&R prototypes.  Check the sprintf return values.
74726         Re-define EAFNOSUPPORT if not present.  Indent.
74727
74728         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74729         suggested by Bruno Haible <bruno@clisp.org>.
74730
74731         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74732
74733         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74734
74735         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74736         libgcrypt).
74737
74738         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74739
74740         * lib/md2.h, lib/md2.c: New files.
74741
74742 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74745         errno alone.  Problem reported by Frederic Jolliton.
74746
74747 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * modules/verify (License): Change from GPL to LGPL.  This is a
74750         tiny module and there are apparently near-equivalents that are
74751         under the BSD license.
74752
74753 2005-10-24  Simon Josefsson  <jas@extundo.com>
74754
74755         * modules/sha1: Relicense to LGPL.
74756
74757 2005-10-24  Simon Josefsson  <jas@extundo.com>
74758
74759         * lib/md4.h: Shrink buffer size, now that we changed the type.
74760
74761 2005-10-23  Simon Josefsson  <jas@extundo.com>
74762
74763         * gnulib-tool (func_import): Fix --tests-base.
74764
74765 2005-10-22  Simon Josefsson  <jas@extundo.com>
74766
74767         * modules/arcfour (Depends-on): Need stdint.
74768
74769 2005-10-22  Simon Josefsson  <jas@extundo.com>
74770
74771         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74772         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74773
74774 2005-10-22  Simon Josefsson  <jas@extundo.com>
74775
74776         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74777         suggested by Bruno Haible <bruno@clisp.org>.
74778
74779 2005-10-22  Simon Josefsson  <jas@extundo.com>
74780
74781         * lib/crc.h: Include stddef.h, for size_t.
74782
74783 2005-10-22  Simon Josefsson  <jas@extundo.com>
74784
74785         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74786         arcfour_context struct (simplify test vector testing in GNU
74787         Shishi).
74788
74789 2005-10-21  Simon Josefsson  <jas@extundo.com>
74790
74791         * modules/des, modules/des-tests: New files.
74792
74793         * modules/gc-des, modules/gc-des-tests: New files.
74794
74795         * tests/test-des.c, tests/test-gc-des.c: New file.
74796
74797 2005-10-21  Simon Josefsson  <jas@extundo.com>
74798
74799         * modules/arctwo, modules/arctwo-tests: New files.
74800
74801         * tests/test-arctwo.c: New file.
74802
74803         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74804
74805         * tests/test-gc-arctwo.c: New file.
74806
74807 2005-10-21  Simon Josefsson  <jas@extundo.com>
74808
74809         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74810         Bruno Haible <bruno@clisp.org>.
74811
74812         * m4/gc-des.m4: New file.
74813
74814 2005-10-21  Simon Josefsson  <jas@extundo.com>
74815
74816         * m4/arctwo.m4: New file.
74817
74818         * m4/gc-arctwo.m4: New file.
74819
74820 2005-10-21  Simon Josefsson  <jas@extundo.com>
74821
74822         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74823         block.
74824
74825 2005-10-21  Simon Josefsson  <jas@extundo.com>
74826
74827         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74828         <bruno@clisp.org>.
74829
74830         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74831
74832         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74833         Bruno Haible <bruno@clisp.org>.
74834
74835         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74836         <bruno@clisp.org>.
74837
74838 2005-10-21  Simon Josefsson  <jas@extundo.com>
74839
74840         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74841
74842 2005-10-21  Simon Josefsson  <jas@extundo.com>
74843
74844         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74845
74846 2005-10-21  Simon Josefsson  <jas@extundo.com>
74847
74848         * lib/des.h, lib/des.c: New files.
74849
74850         * lib/gc-gnulib.c: Support DES.c
74851
74852 2005-10-21  Simon Josefsson  <jas@extundo.com>
74853
74854         * lib/arctwo.h, lib/arctwo.c: New files.
74855
74856         * lib/gc-gnulib.c: Support ARCTWO.
74857
74858 2005-10-21  Simon Josefsson  <jas@extundo.com>
74859
74860         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74861         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74862
74863 2005-10-21  Simon Josefsson  <jas@extundo.com>
74864
74865         * gnulib-tool (func_import, func_create_testdir): Define automake
74866         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74867         Makefile.am snippet),
74868         suggested by Bruno Haible <bruno@clisp.org>.
74869
74870         * modules/gc (Makefile.am): Use it.
74871
74872 2005-10-21  Bruno Haible  <bruno@clisp.org>
74873
74874         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74875         patch.
74876
74877 2005-10-19  Simon Josefsson  <jas@extundo.com>
74878
74879         * tests/test-gc-rijndael.c: New file.
74880
74881         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74882
74883 2005-10-19  Simon Josefsson  <jas@extundo.com>
74884
74885         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74886         interface too.
74887
74888 2005-10-19  Simon Josefsson  <jas@extundo.com>
74889
74890         * tests/test-gc-arcfour.c: New file.
74891
74892         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74893
74894 2005-10-19  Simon Josefsson  <jas@extundo.com>
74895
74896         * modules/gc-md4, modules/gc-md4-tests: New file.
74897
74898         * tests/test-gc-md4.c: New file.
74899
74900 2005-10-19  Simon Josefsson  <jas@extundo.com>
74901
74902         * m4/gc-md4.m4: New file.
74903
74904 2005-10-19  Simon Josefsson  <jas@extundo.com>
74905
74906         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74907         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74908         <kasal@ucw.cz>.
74909
74910 2005-10-19  Simon Josefsson  <jas@extundo.com>
74911
74912         * m4/gc-arcfour.m4: New file.
74913
74914         * m4/gc-rijndael.m4: New file.
74915
74916 2005-10-19  Simon Josefsson  <jas@extundo.com>
74917
74918         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74919
74920 2005-10-19  Simon Josefsson  <jas@extundo.com>
74921
74922         * lib/gc-gnulib.c: Support ARCFOUR.
74923
74924 2005-10-19  Simon Josefsson  <jas@extundo.com>
74925
74926         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74927         support.
74928
74929         * lib/gc.h: Add ECB enum type.
74930
74931         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74932
74933 2005-10-18  Simon Josefsson  <jas@extundo.com>
74934
74935         * tests/test-md5.c: New file.
74936
74937         * modules/md5-tests: New file.
74938
74939 2005-10-18  Simon Josefsson  <jas@extundo.com>
74940
74941         * tests/test-md4.c: New file.
74942
74943         * modules/md4, modules/md4-tests: New files.
74944
74945 2005-10-18  Simon Josefsson  <jas@extundo.com>
74946
74947         * m4/md4.m4: New file.
74948
74949 2005-10-18  Simon Josefsson  <jas@extundo.com>
74950
74951         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74952
74953 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74954
74955         * gnulib-tool (func_create_testdir): Omit the second check whether
74956         BUILT_SOURCES in nonempty.
74957
74958 2005-10-17  Simon Josefsson  <jas@extundo.com>
74959
74960         * tests/test-rijndael.c: New file.
74961
74962 2005-10-17  Simon Josefsson  <jas@extundo.com>
74963
74964         * modules/sha1: Depend on stdint instead of md5.
74965
74966         * modules/md5: Depend on stdint, remove uint32_t.
74967
74968 2005-10-17  Simon Josefsson  <jas@extundo.com>
74969
74970         * modules/gc-sha1-tests: New file.
74971
74972         * tests/test-gc-sha1.c: New file.
74973
74974 2005-10-17  Simon Josefsson  <jas@extundo.com>
74975
74976         * m4/md5.m4: Remove call to uint32_t.m4.
74977
74978 2005-10-17  Simon Josefsson  <jas@extundo.com>
74979
74980         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74981
74982         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74983         md5.h.
74984
74985         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74986
74987         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74988
74989 2005-10-17  Simon Josefsson  <jas@extundo.com>
74990
74991         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74992
74993 2005-10-17  Simon Josefsson  <jas@extundo.com>
74994
74995         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74996
74997 2005-10-17  Simon Josefsson  <jas@extundo.com>
74998
74999         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75000
75001         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75002
75003 2005-10-17  Bruno Haible  <bruno@clisp.org>
75004
75005         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75006         that it can also be used in a test.
75007
75008 2005-10-16  Bruno Haible  <bruno@clisp.org>
75009
75010         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75011         TESTS_ENVIRONMENT, so that individual tests can augment it.
75012
75013         * gnulib-tool (func_create_testdir): Use an intermediate target for
75014         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75015         macros, like $(ALLOCA_H), which cannot be passed through the command
75016         line.
75017
75018 2005-10-15  Simon Josefsson  <jas@extundo.com>
75019
75020         * modules/rijndael-tests: New file.
75021
75022         * modules/rijndael: New file.
75023
75024 2005-10-15  Simon Josefsson  <jas@extundo.com>
75025
75026         * m4/rijndael.m4: New file.
75027
75028 2005-10-15  Simon Josefsson  <jas@extundo.com>
75029
75030         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75031
75032         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75033
75034 2005-10-14  Simon Josefsson  <jas@extundo.com>
75035
75036         * tests/test-arcfour.c: New file.
75037
75038         * modules/arcfour, modules/arcfour-tests: New files.
75039
75040 2005-10-14  Simon Josefsson  <jas@extundo.com>
75041
75042         * m4/arcfour.m4: New file.
75043
75044 2005-10-14  Simon Josefsson  <jas@extundo.com>
75045
75046         * lib/arcfour.h, lib/arcfour.c: New files.
75047
75048 2005-10-14  Roland McGrath  <roland@redhat.com>
75049
75050         Import from libc.  [BZ #1331]
75051         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75052         macro argument.
75053         Reported by Matej Vela <vela@debian.org>.
75054
75055 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75058         include <wchar.h>; no longer needed.
75059
75060 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75063
75064 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75065         and  Ulrich Drepper  <drepper@redhat.com>
75066
75067         Import from libc.
75068         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75069         instead of inline stream orientation test and two separate
75070         function calls.  Pay no attention to USE_IN_LIBIO.
75071
75072 2005-10-13  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/gc-hmac-md5-tests: New file.
75075
75076         * tests/test-gc-hmac-sha1.c: New file.
75077
75078         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75079
75080         * modules/gc-hmac-md5-tests: New file.
75081
75082         * tests/test-gc-md5.c: New file.
75083
75084         * modules/gc-md5-tests: New file.
75085
75086 2005-10-13  Simon Josefsson  <jas@extundo.com>
75087
75088         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75089         Move memory allocation outside of loop.
75090
75091 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75092
75093         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75094         intermediate directory is in a read-only file system.  Problem
75095         reported by Eric Blake.
75096
75097 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75098
75099         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75100
75101 2005-10-12  Simon Josefsson  <jas@extundo.com>
75102
75103         * tests/test-hmac-sha1.c: New file.
75104
75105         * modules/hmac-sha1-tests: New file.
75106
75107         * modules/hmac-sha1: New file.
75108
75109 2005-10-12  Simon Josefsson  <jas@extundo.com>
75110
75111         * modules/gc-sha1: New file.
75112
75113 2005-10-12  Simon Josefsson  <jas@extundo.com>
75114
75115         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75116
75117         * tests/test-gc-pbkdf2-sha1.c: New file.
75118
75119 2005-10-12  Simon Josefsson  <jas@extundo.com>
75120
75121         * modules/gc-md5, modules/gc-hmac-md5: New files.
75122
75123         * modules/gc (Files): Remove md5, memxor and hmac files.
75124
75125 2005-10-12  Simon Josefsson  <jas@extundo.com>
75126
75127         * m4/gc-pbkdf2-sha1.m4: New file.
75128
75129         * m4/gc-hmac-sha1.m4: New file.
75130
75131         * m4/gc-sha1: New file.
75132
75133         * m4/hmac-sha1.m4: New file.
75134
75135 2005-10-12  Simon Josefsson  <jas@extundo.com>
75136
75137         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75138
75139         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75140
75141 2005-10-12  Simon Josefsson  <jas@extundo.com>
75142
75143         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75144         suggested by Bruno Haible <bruno@clisp.org>.
75145
75146 2005-10-12  Simon Josefsson  <jas@extundo.com>
75147
75148         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75149
75150 2005-10-12  Simon Josefsson  <jas@extundo.com>
75151
75152         * lib/gc-pbkdf2-sha1.c: New file.
75153
75154         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75155
75156 2005-10-12  Simon Josefsson  <jas@extundo.com>
75157
75158         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75159
75160         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75161
75162 2005-10-12  Simon Josefsson  <jas@extundo.com>
75163
75164         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75165         GC_USE_HMAC_MD5, respectively.
75166
75167         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75168         (gc_md5): Fix typo.
75169
75170         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75171
75172         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75173
75174         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75175
75176 2005-10-12  Bruno Haible  <bruno@clisp.org>
75177
75178         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75179         Reported by Stepan Kasal <kasal@ucw.cz>.
75180
75181 2005-10-11  Simon Josefsson  <jas@extundo.com>
75182
75183         * tests/test-crc.c: New file.
75184
75185         * modules/crc, modules/crc-tests: New files.
75186
75187 2005-10-11  Simon Josefsson  <jas@extundo.com>
75188
75189         * m4/crc.m4: New file.
75190
75191 2005-10-11  Simon Josefsson  <jas@extundo.com>
75192
75193         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75194
75195         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75196
75197         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75198
75199 2005-10-11  Simon Josefsson  <jas@extundo.com>
75200
75201         * lib/crc.h, lib/crc.c: New files.
75202
75203         * lib/gc.h (gc_hash_buffer): Add doc.
75204
75205 2005-10-11  Bruno Haible  <bruno@clisp.org>
75206
75207         * modules/c-strcasestr: New file.
75208         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75209
75210 2005-10-11  Bruno Haible  <bruno@clisp.org>
75211
75212         * modules/c-strcase: New file.
75213         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75214
75215 2005-10-11  Bruno Haible  <bruno@clisp.org>
75216
75217         * lib/strcasecmp.c: Include limits.h.
75218         (strcasecmp): Avoid integer overflow on exotic platforms.
75219         * lib/strncasecmp.c: Include limits.h.
75220         (strncasecmp): Avoid integer overflow on exotic platforms.
75221         Reported by Paul Eggert.
75222
75223 2005-10-11  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/c-strcasestr.h: New file, from GNU gettext.
75226         * lib/c-strcasestr.c: New file, from GNU gettext.
75227
75228 2005-10-11  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/c-strcase.h: New file, from GNU gettext.
75231         * lib/c-strcasecmp.c: New file, from GNU gettext.
75232         * lib/c-strncasecmp.c: New file, from GNU gettext.
75233
75234 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * modules/mempcpy (License): GPL -> LGPL.
75237         * modules/strchrnul (License): Likewise.
75238         * modules/sysexits (License): Likewise.
75239
75240 2005-10-08  Simon Josefsson  <jas@extundo.com>
75241
75242         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75243
75244 2005-10-07  Simon Josefsson  <jas@extundo.com>
75245
75246         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75247
75248 2005-10-06  Simon Josefsson  <jas@extundo.com>
75249
75250         * tests/test-hmac-md5.c: New file.
75251
75252         * modules/hmac-md5-tests: New file.
75253
75254         * modules/hmac-md5: New file.
75255
75256 2005-10-06  Simon Josefsson  <jas@extundo.com>
75257
75258         * m4/hmac-md5.m4: New file.
75259
75260         * m4/memxor.m4: Require gl_C_RESTRICT.
75261
75262 2005-10-06  Simon Josefsson  <jas@extundo.com>
75263
75264         * lib/memxor.c (memxor): Avoid casts and warnings.
75265
75266 2005-10-06  Simon Josefsson  <jas@extundo.com>
75267
75268         * lib/hmac-md5.c: New file.
75269
75270         * lib/hmac.h: New file.
75271
75272 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75275         promotes to int, not unsigned int, to catch the AIX 5.3
75276         compiler bug.
75277
75278 2005-10-05  Simon Josefsson  <jas@extundo.com>
75279
75280         * modules/memxor: New file.
75281
75282         * modules/iconv (Files): Move config.rpath to havelib, it is used
75283         there.
75284
75285         * modules/havelib (Files): Add config.rpath.
75286
75287 2005-10-05  Simon Josefsson  <jas@extundo.com>
75288
75289         * m4/memxor.m4: New file.
75290
75291 2005-10-05  Simon Josefsson  <jas@extundo.com>
75292
75293         * lib/memxor.c (memxor): Fix compiler error.
75294
75295         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75296         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75297
75298         * lib/memxor.h, lib/memxor.c: New files.
75299
75300         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75301         we assume all systems have it, suggested by Jim Meyering
75302         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75303         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75304         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75305         same reasons.
75306
75307 2005-10-05  Simon Josefsson  <jas@extundo.com>
75308
75309         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75310
75311 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75314         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75315         needed, since the source code now assumes these .h files.
75316
75317 2005-10-05  Derek Price  <derek@ximbiot.com>
75318
75319         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75320
75321 2005-10-05  Bruno Haible  <bruno@clisp.org>
75322
75323         * modules/stdint (License): Change to LGPL.
75324
75325 2005-10-04  Simon Josefsson  <jas@extundo.com>
75326
75327         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75328         D. Baushke" <mdb@gnu.org>.
75329
75330 2005-10-04  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/verify.h (verify_true): Provide alternative definition for C++.
75333
75334 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75337         (SSIZE_MAX): New macro, if not already defined.
75338         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75339         than 2 GiB.
75340
75341 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         Sync from coreutils.
75344         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75345         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75346         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75347         ULLONG_MAX doesn't work with 2.7.2.1.
75348
75349 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75352         From Ben Pfaff.
75353
75354         * modules/exclude (Depends-on): Depend on verify.
75355         * modules/strtoimax (Depends-on): Likewise.
75356         * modules/utimecmp (Depends-on): Likewise.
75357
75358 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/exclude.c: Include verify.h.
75361         (verify): Remove.  All callers changed to use verify.h's version.
75362         * lib/strtoimax.c: Likewise.
75363         * lib/utimecmp.c: Likewis.e
75364
75365         Sync from coreutils.
75366         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75367         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75368         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75369         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75370         bother returning ENOSYS if settimeofday or stime fails; just let
75371         them return whatever errno they want to return.
75372         * lib/utimens.c: Include unistd.h, for dup2.
75373         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75374         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75375
75376 2005-10-02  Jim Meyering  <jim@meyering.net>
75377
75378         Sync from coreutils.
75379         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75380         from glibc-2.2.5 that fails for read-only files.
75381
75382 2005-10-02  Jim Meyering  <jim@meyering.net>
75383
75384         Sync from coreutils.
75385         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75386         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75387         `#if HAVE_CONFIG_H'.
75388         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75389         Remove AT_FDCWD test.
75390         Do not consume the fd unless successful.
75391         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75392         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75393         block, so that we don't even try to compile it if settimeofday is
75394         available.  This works around a compilation failure on OSF1 V5.1,
75395         due to stime requiring a `long int*' while tv_sec is `int'.
75396
75397 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75398
75399         Sync from coreutils.
75400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75401         against `yes', rather than just testing for nonempty.
75402
75403 2005-10-01  Simon Josefsson  <jas@extundo.com>
75404
75405         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75406         and Darwin.
75407
75408         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75409         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75410         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75411         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75412         Check if struct addrinfo is declared.
75413
75414 2005-10-01  Simon Josefsson  <jas@extundo.com>
75415
75416         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75417         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75418         AI_* and EAI_* definitions.  Protect function declarations.
75419
75420 2005-10-01  Jim Meyering  <jim@meyering.net>
75421
75422         Sync from coreutils.
75423
75424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75425         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75426         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75428         in the inet and nsl libraries.  Required on Solaris 5.7.
75429
75430 2005-10-01  Jim Meyering  <jim@meyering.net>
75431
75432         Sync from coreutils.
75433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75434         in the inet and nsl libraries.  Required on Solaris 5.7.
75435
75436 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75437
75438         * lib/getdelim.c (getdelim): Remove unused variables.
75439
75440 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75443         so that the code works even with ancient cpp.  Portability problem
75444         with GCC 2.7.2.1 reported by Thomas M.Ott.
75445
75446 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         * modules/regex (Depends-on): Add strcase.
75449
75450         * modules/gethostname (Licence): Change from GPL to LGPL, since
75451         gethostname.c is a trivial implementation of a standard library
75452         function.
75453         * modules/poll (License): Change from GPL to LGPL, since it's
75454         derived from LGPL code.
75455
75456 2005-09-27  Jim Meyering  <jim@meyering.net>
75457
75458         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75459         HAVE_CONFIG_H.
75460
75461         * lib/intprops.h (signed_type_or_expr__): Define.
75462         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75463         for unsigned types.
75464
75465 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         * lib/verify.h (verify_expr): Remove, replacing with:
75468         (verify_true): New macro that returns true instead of void.
75469         (verify_type__): Remove.
75470         (verify): Use verify_true rather than verify_type__.
75471
75472 2005-09-26  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75475         is necessary.
75476         (lib_SOURCES): Remove mbchar.c.
75477         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75478         (Files): Add m4/mbrtowc.m4.
75479         * modules/mbiter: Likewise.
75480         * modules/mbuiter: Likewise.
75481
75482 2005-09-26  Bruno Haible  <bruno@clisp.org>
75483
75484         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75485         compile mbchar.c if they are not both present.
75486         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75487         * m4/mbiter.m4 (gl_MBITER): Likewise.
75488         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75489         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75490         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75491
75492 2005-09-25  Jim Meyering  <jim@meyering.net>
75493
75494         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75495         also uses socklen_t.
75496
75497 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/utimens.c (ENOSYS): Define if not already defined.
75500         (futimens): Support having a null PATH if the file descriptor
75501         is nonnegative.
75502
75503         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75504         Remove.
75505         (__attribute): Define to empty unless GCC 3.1 or later.
75506         This works around a core dump on OpenBSD 3.4, which has GCC
75507         2.95.3, which dumps core when given __attribute__(()).  It also
75508         simplifies other tests, since we really don't want to bother with
75509         worrying about which ancient version of GCC supported what.
75510         Original problem reported by Yoann Vandoorselaere, with part of
75511         the fix suggested by Derek Price.
75512
75513 2005-09-24  Jim Meyering  <jim@meyering.net>
75514
75515         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75516         so we can once again use a positive bitfield width of 1 -- now we
75517         don't have to explain why we were using a bitfield width of 2.
75518
75519 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75522         and similarly for the other external symbols.  Problem reported
75523         by James Gallager.
75524
75525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75526         bug reported by Jim Meyering.
75527
75528         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75530         not needed, since socklen is a prerequisite module.
75531
75532 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75535         Problem reported by Eric Blake.
75536         (getaddrinfo): Initialize se so that it's not garbage.
75537         Redo internal storage allocation so that it doesn't make unportable
75538         assumptions about alignment.
75539         Fix a memory leak.
75540
75541         * lib/utimens.c (futimens): Use futimesat if available.
75542         Prefer it to futimes since it doesn't have the futimes bug.
75543
75544         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75545         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75546         Instead, declare a function that returns a pointer to an array,
75547         and use verify_type__ to declare the size of the array.
75548         Problem and germ of a solution reported by Bruno Haible.
75549         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75550         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75551
75552 2005-09-23  Jim Meyering  <jim@meyering.net>
75553
75554         Sync from coreutils.
75555         Correct build failure (socklen_t not defined) on at least
75556         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75558
75559 2005-09-23  Jim Meyering  <jim@meyering.net>
75560
75561         * modules/getaddrinfo (Depends-on): Add socklen.
75562
75563 2005-09-23  Bruno Haible  <bruno@clisp.org>
75564
75565         * tests/test-verify.c: New file.
75566
75567 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         Sync from coreutils.
75570
75571         * modules/argmatch (Depends-on): Add verify.
75572         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75573         unistd-safer.
75574         * modules/save-cwd (Depends-on): Likewise.
75575
75576         * modules/openat (Files): Add lib/openat-die.c.
75577         (Depends-on): Remove error, exitfail.
75578         Add dirname.
75579
75580         * modules/verify: New file.
75581         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75582         with "verify" module.
75583
75584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         Sync from coreutils.
75587
75588         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75589         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75590         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75591         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75592         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75593         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75594         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75595         Don't bother checking for string.h, stdlib.h, unistd.h.
75596         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75597         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75598         module's job.
75599         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75601
75602         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75603         (gl_GETDATE): Use it.
75604
75605         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75606
75607 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         Sync from coreutils.
75610
75611         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75612         stat-time.h.
75613         * lib/argmatch.h: Include verify.h
75614         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75615         (ARGMATCH_ASSERT): Remove; unused.
75616         * lib/canonicalize.c: Assume STDC_HEADERS.
75617         * lib/exclude.c: Include "strcase.h".
75618         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75619         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75620         and stdio-safer.h.
75621         (getusershell): Call fopen, not fopen_safer.
75622         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75623         Do not include unistd-safer.h.
75624         (save_cwd): Don't call fd_safer; no longer needed
75625         now that we include fcntl--.h.
75626
75627         * lib/getdate.y (relative_time): New type.
75628         (RELATIVE_TIME_0): New constant.
75629         (parser_control): Use relative_time instead of doing it ourselves.
75630         (%union): Add new relative_time rel member.
75631         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75632         Now typeless.
75633         (relunit, relunit_snumber): Now of type rel.
75634         (zone, rel, relunit, get_date): Adjust to above changes.
75635
75636         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75637         Do not include unistd-safer.h.
75638         (getloadavg): Don't call fd_safer; no longer needed
75639         now that we include fcntl--.h.
75640
75641         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75642         (make_dir_parents): Treat ENOSYS like EEXIST.
75643
75644         Improve quality of diagnostics on restore_cwd failure.
75645         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75646         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75647         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75648         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75649         each time through the loop.  Do not diagnose restore_cwd failure;
75650         that is the caller's job (and perhaps the caller does not care).
75651
75652         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75653         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75654         If the file already exists but is not a directory, don't bother
75655         to try to make its parents.
75656         Close potential file descriptor leak if we can't chdir("/") (!).
75657         Don't always return true if chdir($PWD) fails; return true only
75658         if the requested action was done successfully (except for the
75659         chdir($PWD)).
75660         Don't log final directory unless we actually made it.
75661         Refactor to avoid duplicate code to fix up permissions.
75662         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75663
75664         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75665         to make it a bit faster and (I hope) clearer.
75666         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75667         Fix bug in formats like %2N.
75668
75669         * lib/verify.h: New file.
75670
75671 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         Sync from coreutils.
75674         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75675
75676 2005-09-22  Jim Meyering  <jim@meyering.net>
75677
75678         Sync from coreutils.
75679
75680         * m4/lstat.m4 (gl_FUNC_LSTAT):
75681         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75682         Remove obsolete comment.
75683         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75684         * m4/xstrtod.m4: Likewise.
75685
75686         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75687
75688 2005-09-22  Jim Meyering  <jim@meyering.net>
75689
75690         Sync from coreutils.
75691
75692         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75693
75694         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75695         the .tm_year member, since otherwise gcc-4.0 would now warn about
75696         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75697
75698         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75699         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75700
75701         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75702         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75703         when run in a time zone for which daylight savings time is in effect
75704         for the starting date.
75705
75706         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75707         stop us from restricting permissions of just-created absolute-named
75708         directories.
75709         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75710         to restore initial working directory.
75711         * lib/mkdir-p.c (make_dir_parents): New parameter:
75712         different_working_dir, to tell caller if/when we change the working
75713         directory and are unable to return to the initial one.
75714         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75715         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75716         `return false'.  This fixes a bug introduced on 2004-07-30.
75717
75718         * lib/openat.c (fdopendir): Be sure to close the supplied
75719         file descriptor before returning.  This makes our replacement
75720         implementation a little closer to Solaris's, where fdopendir
75721         ties the file descriptor to the returned DIR* pointer.
75722         * lib/openat.c (unlinkat): New function.
75723         * lib/openat.h (unlinkat): Add prototype.
75724         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75725         (openat_restore_fail): Rename from openat_restore_die.
75726         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75727
75728         Provide an alternative to exiting immediately upon save_cwd or
75729         restore_cwd failure.  Now, an application can arrange e.g.,
75730         to perform a longjump in that case.
75731         * lib/openat.c: Include dirname.h.
75732         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75733         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75734         and openat_restore_die rather than calling error directly.
75735         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75736
75737         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75738         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75739         define.
75740
75741         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75742         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75743                             int utc, int nanoseconds);
75744         Background:
75745         date should not have to allocate a megabyte of virtual memory to
75746         handle a format argument like +%1048575T.  When implemented with
75747         strftime, it must allocate such a buffer, use strftime to fill it
75748         in, print it, then free it.
75749         With fprintftime, it simply prints everything and exits.
75750         With no need for memory allocation, that's one fewer way to fail.
75751         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75752         optional field width, not before, so we accept %9:z, not %:9z.
75753         (my_strftime): Be sure to use L_('x') for literals.
75754
75755         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75756         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75757         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75758         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75759         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75760         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75761         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75762         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75763         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75764         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75765         * lib/xgethostname.c, lib/xreadlink.c:
75766         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75767
75768         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75769         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75770         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75771         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75772         and don't include <sys/file.h>).
75773
75774 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75775
75776         Sync from coreutils.
75777
75778         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75779         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75780         [!LDAV_DONE]: Avoid unused variable warning.
75781
75782 2005-09-21  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/unicodeio.h (unicode_to_mb): New declaration.
75785
75786 2005-09-20  Derek Price  <derek@ximbiot.com>
75787
75788         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75789         getaddrinfo.h.
75790
75791 2005-09-20  Bruno Haible  <bruno@clisp.org>
75792
75793         * gnulib-tool: Remove trailing slashes from the values specified for
75794         --source-base, --m4-base, --tests-base, --aux-dir.
75795         Suggested by Simon Josefsson <jas@extundo.com>.
75796
75797 2005-09-20  Bruno Haible  <bruno@clisp.org>
75798
75799         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75800         func_modules_to_filelist, func_import, func_create_testdir): Make all
75801         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75802         change when gnulib-tool is invoked in a different locale.
75803
75804 2005-09-19  Simon Josefsson  <jas@extundo.com>
75805
75806         * m4/socklen.m4: Fix typo.
75807
75808 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75809
75810         Use a consistent style for including <config.h>.
75811         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75812         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75813         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75814         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75815         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75816         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75817         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75818         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75819         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75820         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75821         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75822         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75823         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75824         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75825         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75826         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75827         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75828         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75829         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75830         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75831         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75832         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75833         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75834         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75835         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75836         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75837         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75838         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75839         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75840         lib/xstrtoumax.c, lib/yesno.c:
75841         Standardize inclusion of config.h.
75842         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75843         lib/inttostr.h:  Removed inclusion of config.h from header files.
75844         * lib/inttostr.c:  Adjusted in-tree users.
75845         * lib/timespec.h: Remove superfluous warning to include config.h.
75846         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75847         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75848         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75849         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75850         config.h with HAVE_CONFIG_H.
75851
75852 2005-09-19  Jim Meyering  <jim@meyering.net>
75853
75854         * modules/pathmax (License): Change to LGPL.
75855
75856 2005-09-19  Derek Price  <derek@ximbiot.com>
75857
75858         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75859
75860 2005-09-19  Bruno Haible  <bruno@clisp.org>
75861
75862         * gnulib-tool (import): Provide default for --tests-base.
75863
75864 2005-09-19  Bruno Haible  <bruno@clisp.org>
75865
75866         * doc/quote.texi: New file, extracted from gnulib.texi.
75867         * doc/ctime.texi: New file, extracted from gnulib.texi.
75868         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75869         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75870         * doc/gnulib.texi: Include them.
75871
75872 2005-09-18  Bruno Haible  <bruno@clisp.org>
75873
75874         Portability fix.
75875         * gnulib-tool (func_readlink): New function.
75876         (func_ln_if_changed): Use it.
75877
75878 2005-09-18  Bruno Haible  <bruno@clisp.org>
75879
75880         * gnulib-tool: Support --with-tests also with --import.
75881         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75882         (func_import): Use variables $testsbase and $inctests. Emit a
75883         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75884         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75885         SUBDIRS += $testsdir.
75886         (func_create_testdir): Update.
75887
75888 2005-09-18  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75891         instead of $dry_run.
75892         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75893         (func_ln_if_changed): Don't handle dry-run here.
75894         (func_import): In dry-run mode, detect more precisely which actions
75895         would be performed, and don't use "...ing" verbs.
75896
75897 2005-09-18  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75900         (func_import): Use join on two temporary files instead of three nested
75901         loops, in order to determine which files are new or old.
75902
75903 2005-09-18  Bruno Haible  <bruno@clisp.org>
75904
75905         * gnulib-tool (func_import): Comment out code that spits out the
75906         new files with --dry-run.
75907
75908 2005-09-18  Bruno Haible  <bruno@clisp.org>
75909
75910         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75911
75912 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/stat-time.h: New file.
75915         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75916         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75917         in a different way.
75918         (timespec_cmp): New function.
75919         * lib/utimecmp.c: Include stat-time.h.
75920         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75921         members exist, not on the obsolescent ST_MTIM_NSEC.
75922         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75923
75924 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75927
75928 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         * MODULES.html.sh (File system functions): Add stat-time.
75931         * modules/stat-time: New file.
75932         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75933         is now done in a different way, by the stat-time module.
75934         * modules/utimecmp (Depends-on): Add stat-time.
75935
75936 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * m4/st_mtim.m4: Remove.  Superseded by...
75939         * m4/stat-time.m4: New file.
75940         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75941         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75942
75943 2005-09-15  Derek Price  <derek@ximbiot.com>
75944
75945         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75946
75947 2005-09-15  Derek Price  <derek@ximbiot.com>
75948
75949         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75950         * lib/regex_internal.c: Ditto, using this...
75951         (__GNUC_PREREQ): ...new macro.
75952         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75953         using...
75954         (__GNUC_PREREQ): ...this new macro.
75955
75956         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75957
75958 2005-09-15  Derek Price  <derek@ximbiot.com>
75959             Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75962         changes, consolidating in...
75963         * lib/regex_internal.h: ...this file.
75964
75965 2005-09-13  Jim Meyering  <jim@meyering.net>
75966
75967         * lib/canon-host.c: Filter through gnu indent and reword comments
75968         slightly.
75969         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75970
75971 2005-09-13  Derek Price  <derek@ximbiot.com>
75972
75973         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75974         failure.
75975         Reported by Jim Meyering  <jim@meyering.net>.
75976
75977 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75978
75979         * lib/base64.c: Typo.
75980         (base64_encode): Put b64str in initialized data section.
75981
75982 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         Merge glibc and coreutils changes into gnulib, plus a few
75985         extra fixes.
75986         * lib/md5.c: Use #error rather than a string.
75987         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75988         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75989         (__attribute__): Define to empty for non recent-GCC.
75990         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75991         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75992         Renamed from their non-__ counterparts, with new macros replacing
75993         them if not _LIBC.  Add __THROW attribute.
75994         (rol): Remove.
75995         (struct md5_ctx): Align buffer if using GCC.
75996         * lib/sha1.h (struct sha1_ctx): Likewise.
75997         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75998         The old name was backwards.
75999         (NOTSWAP): Remove; not used.
76000         (rol): New macro, moved here from md5.h.
76001         (sha1_process_block): Remove a FIXME that doesn't make sense.
76002
76003 2005-09-12  Derek Price  <derek@ximbiot.com>
76004
76005         Return usable errors from canon-host.
76006         * lib/canon-host.h: New file.
76007         * lib/canon-host.c (canon_host): Wrap...
76008         (canon_host_r): ...this new function, which now relies exclusively on
76009         getaddrinfo.
76010         (ch_strerror): New function.
76011         (last_cherror): New global.
76012         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76013         interface.
76014         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76015         void *.
76016         (freeaddrinfo): Free ai->ai_canonname when set.
76017
76018 2005-09-12  Derek Price  <derek@ximbiot.com>
76019
76020         Make canon-host require getaddrinfo.
76021         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76022         AC_LIBSOURCE canon-host.h.  Call...
76023         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76024         gl_GETADDRINFO.
76025         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76026
76027 2005-09-12  Derek Price  <derek@ximbiot.com>
76028
76029         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76030         LGPL.
76031         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76032
76033 2005-09-12  Derek Price  <derek@ximbiot.com>
76034
76035         * lib/gai_strerror.c: Include config.h when available.  Include
76036         getaddrinfo.h before other headers to test interface.
76037         Reported by Larry Jones <lawrence.jones@ugs.com>.
76038
76039 2005-09-12  Derek Price  <derek@ximbiot.com>
76040             Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * modules/glob (Files): Add glob-libc.h.
76043
76044 2005-09-12  Derek Price  <derek@ximbiot.com>
76045             Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76048         glob_.h, glob-libc.h.
76049         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76050
76051 2005-09-12  Derek Price  <derek@ximbiot.com>
76052             Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76055         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76056         protecting things that should be done only in gnulib contexts.
76057         * lib/glob_.h: New file, containing only the glob things needed for
76058         gnulib.
76059         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76060         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76061         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76062         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76063         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76064         and to respect the namespace rules better.
76065
76066 2005-09-08  Simon Josefsson  <jas@extundo.com>
76067
76068         * modules/socklen: New file.
76069
76070 2005-09-08  Simon Josefsson  <jas@extundo.com>
76071
76072         * m4/socklen.m4: New file.
76073
76074 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         * modules/utimens (Files): Add m4/utimbuf.m4, since
76077         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76078         Reported by Sergey Poznyakoff.
76079
76080 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76083         definitions, since that's the preferred style in glibc.
76084         Fix a minor spacing issue, and update copyright notice to match
76085         glibc's.
76086
76087 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76090
76091 2005-09-06  Simon Josefsson  <jas@extundo.com>
76092
76093         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76094         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76095
76096 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76099         warning.
76100
76101 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * config/srclist.txt: Add glibc bug 1302.
76104
76105 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76106
76107         Change bitset word type from unsigned int to unsigned long int,
76108         as this has better performance on typical 64-bit hosts.
76109         Port bitset code to hosts with unusual word sizes.
76110         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76111         (build_collating_symbol):
76112         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76113         argument is a bitset.  This is merely a style issue, but it makes
76114         it clearer that an entire array is expected.
76115         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76116         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76117         Port to the case where bitset_word is not the same as unsigned int.
76118         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76119         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76120         Likewise.
76121         * lib/regexec.c (check_dst_limits_calc_pos_1,
76122         check_subexp_matching_top):
76123         (build_trtable, group_nodes_into_DFAstates):
76124         Likewise.
76125         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76126         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76127         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76128         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76129         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76130         * lib/regcomp.c (optimize_subexps, lower_subexp):
76131         Work even if bitset_word has holes in its bitwise representation.
76132         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76133         * lib/regexec.c (check_dst_limits_calc_pos_1,
76134         check_subexp_matching_top):
76135         Likewise.
76136         * lib/regex_internal.c (re_string_reconstruct):
76137         Don't assume UCHAR_MAX == 255.
76138         * lib/regex_internal.h (bitset_set_all): Likewise.
76139         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76140         All uses changed.
76141         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76142         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76143         All uses changed.
76144         (BITSET_WORD_MAX): New macro.
76145         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76146         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76147         (bitset_empty, bitset_copy):
76148         Prefer sizeof (bitset) to multiplying it out ourselves.
76149         (bitset_not_merge): Remove; unused.
76150         (bitset_contain): Return bool, not unsigned int with one bit on.
76151         All callers changed.
76152         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76153         alignment than re_node_set; do this by defining a new internal
76154         type struct dests_alloc and using it to allocate memory.
76155
76156 2005-09-05  Bruno Haible  <bruno@clisp.org>
76157
76158         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76159         links.
76160
76161 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76162
76163         * modules/size_max (Makefile.am): Add size_max.h
76164
76165 2005-09-04  Derek Price  <derek@ximbiot.com>
76166
76167         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76168
76169 2005-09-03  Simon Josefsson  <jas@extundo.com>
76170
76171         * gnulib-tool: Fix typo.
76172
76173 2005-09-03  Simon Josefsson  <jas@extundo.com>
76174
76175         * config/srclist.txt: Add glibc bug 1293.
76176
76177 2005-09-03  Derek Price  <derek@ximbiot.com>
76178
76179         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76180         From Larry Jones <lawrence.jones@ugs.com>.
76181
76182 2005-09-02  Simon Josefsson  <jas@extundo.com>
76183
76184         * modules/socklen: New file.
76185
76186 2005-09-02  Simon Josefsson  <jas@extundo.com>
76187
76188         * modules/havelib: New module.
76189
76190         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76191         Use havelib.
76192
76193 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         Check for arithmetic overflow when calculating sizes, to prevent
76196         some buffer-overflow issues.  These patches are conservative, in the
76197         sense that when I couldn't determine whether an overflow was possible,
76198         I inserted a run-time check.
76199         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76200         macros.
76201         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76202         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76203         (re_xnrealloc, re_x2nrealloc): New inline functions.
76204         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76205         parse_bracket_exp):
76206         (build_equiv_class, build_charclass): Check for arithmetic overflow
76207         in size expression calculations.
76208         * lib/regex_internal.c (re_string_realloc_buffers):
76209         (build_wcs_upper_buffer, re_node_set_add_intersect):
76210         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76211         (re_dfa_add_node, register_state): Likewise.
76212         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76213         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76214         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76215         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76216
76217 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76220         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76221
76222 2005-09-02  Bruno Haible  <bruno@clisp.org>
76223
76224         Support for lib vs. lib64 distinction on biarch platforms.
76225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76226         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76228
76229 2005-09-02  Bruno Haible  <bruno@clisp.org>
76230
76231         * gnulib-tool (import): In the other first-use case, provide defaults
76232         as well.
76233
76234 2005-09-02  Bruno Haible  <bruno@clisp.org>
76235
76236         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76237         patches not yet found in the latest gettext release.
76238
76239 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76242         to avoid a collision with bits/local_lim.h in glibc.
76243         All uses changed.  Problem reported by Dmitry V. Levin in
76244         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76245
76246         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76247         bugs in int versus size_t comparisons.
76248         (re_string_context_at): Fix bug where the code assumed that
76249         Idx is signed.
76250
76251         Use bool where appropriate.
76252         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76253         All callers changed.
76254         (calc_eclosure_iter): Likewise, for ROOT arg.
76255         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76256         (build_charclass_op): Likewise, for NON_MATCH arg.
76257         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76258         (re_string_construct_common): Likewise, for ICASE arg.
76259         * lib/regexec.c (re_search_2_stub, re_search_stub):
76260         Likewise, for RET_LEN arg.
76261         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76262         (set_regs): Likewise, for FL_BACKTRACK arg.
76263         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76264         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76265         (calc_eclosure_iter, parse_bracket_exp):
76266         Use bool for internal variables that are booleans.
76267         * lib/regexec.c (re_search_internal, check_matching,
76268         proceed_next_node):
76269         (set_regs, build_sifted_states, sift_states_bkref):
76270         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76271         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76272         (find_collation_sequence_value):
76273         Likewise.
76274         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76275         (re_node_set_compare):
76276         Return bool, not int. All callers changed.
76277         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76278         (build_trtable, check_node_accept): Likewise.
76279         * lib/regex_internal.h: Include stdbool.h.
76280
76281         Fix bugs uncovered when converting to bool.
76282         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76283         failure instead of charging ahead blindly.
76284         * lib/regex_internal.c (register_state): Likewise.
76285         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76286         for freeing internal storage.
76287         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76288         bitset pieces used as boolean, to avoid undefined behavior
76289         on hosts that do int overflow checking.
76290
76291 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * config/srclist.txt: Add glibc bugs 1285-1287.
76294
76295 2005-09-01  Jim Meyering  <jim@meyering.net>
76296
76297         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76298         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76299         Require gl_STAT_MACROS, too.
76300
76301 2005-09-01  Bruno Haible  <bruno@clisp.org>
76302
76303         * gnulib-tool (import): In the first-use case, provide defaults.
76304
76305 2005-09-01  Bruno Haible  <bruno@clisp.org>
76306
76307         * gnulib-tool (func_import): Remove the .tmp files.
76308
76309 2005-09-01  Bruno Haible  <bruno@clisp.org>
76310
76311         * gnulib-tool (func_import): Fix handling of symbolic links.
76312
76313 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76316         old glibc regex code mishandles strings longer than 2**31 bytes.
76317         This patch fixes this when the regex code is used in gnulib
76318         (i.e., outside glibc).
76319
76320         This patch should not affect the use of the regex code inside
76321         glibc.  No doubt this problem also needs to be handled for glibc
76322         as well, but the result will be an incompatible change to the
76323         glibc ABI, and the old ABI will have to be supported too.  That
76324         can be the the subject for another patch.
76325
76326         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76327         governing whether the rest of this patch is active.  By default,
76328         the macro is disabled and the patch has no effect.
76329         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76330         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76331         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76332         (re_match_2, re_set_registers): Use the new types.
76333         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76334         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76335         New macros.
76336         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76337         (re_string_context_at, bin_tree_t, re_dfastate_t):
76338         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76339         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76340         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76341         (re_string_char_size_at, re_string_wchar_at):
76342         (re_string_elem_size_at):
76343         Use the new types and macros to port to 64-bit hosts.
76344         Use unsigned types for internal values, so that the code
76345         mostly works even for arrays larger than SSIZE_MAX.
76346         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76347         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76348         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76349         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76350         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76351         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76352         (calc_inveclosure, parse_dup_op, build_range_exp):
76353         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76354         (fetch_number, create_token_tree, mark_opt_subexp):
76355         Likewise.
76356         * lib/regex_internal.c (re_string_construct_common,
76357         create_ci_newstate):
76358         (create_cd_newstate, re_string_allocate, re_string_construct):
76359         (re_string_realloc_buffers, build_wcs_upper_buffer):
76360         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76361         (re_string_reconstruct, re_string_peek_byte_case):
76362         (re_string_fetch_byte_case, re_string_context_at):
76363         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76364         (re_node_set_init_copy, re_node_set_add_intersect):
76365         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76366         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76367         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76368         (re_acquire_state, re_acquire_state_context, register_state):
76369         Likewise.
76370         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76371         search_cur_bkref_entry):
76372         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76373         (re_search_internal, re_search_2_stub, re_search_stub)
76374         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76375         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76376         (update_cur_sifted_state, check_dst_limits):
76377         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76378         (check_subexp_limits, sift_states_bkref, merge_state_array):
76379         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76380         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76381         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76382         (expand_bkref_cache, check_node_accept_bytes):
76383         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76384         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76385         (acquire_init_state_context, check_halt_node_context):
76386         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76387         (sift_states_backward, clean_state_log_if_needed):
76388         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76389         (find_recover_state, transit_state_sb, transit_state_mb):
76390         (transit_state_bkref, build_trtable, match_ctx_clean):
76391         Likewise.
76392         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76393         to work around an assumption that REG_MISSING is negative.
76394
76395         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76396         (seek_collating_symbol_entry) [defined _LIBC]:
76397         (lookup_collation_sequence_value) [defined _LIBC]:
76398         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76399         Use prototypes rather than old-style function definitions.
76400         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76401         (transit_state_sb) [0]:
76402         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76403
76404         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76405         rm_eo.
76406
76407         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76408         (optimize_subexps, lower_subexp):
76409         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76410         since the signed shift might overflow.  Use 1u<<31 instead.
76411         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76412         Likewise.
76413         * lib/regexec.c (check_dst_limits_calc_pos_1,
76414         check_subexp_matching_top): Likewise.
76415
76416         * lib/regcomp.c (optimize_subexps, lower_subexp):
76417         Use CHAR_BIT rather than 8, for clarity.
76418         * lib/regexec.c (check_dst_limits_calc_pos_1):
76419         (check_subexp_matching_top): Likewise.
76420         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76421         have to worry about portability issues when shifting it left.
76422         Remove no-longer-needed test for table_size > 0.
76423         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76424         in a word, as the resulting behavior is undefined.
76425         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76426         in one case, a <= should have been an <, and in another case the
76427         whole test was missing.
76428         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76429         the standard name CHAR_BIT.
76430         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76431         this is not true on one's complement and signed-magnitude hosts.
76432
76433         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76434         next_last_offset.
76435         (struct re_dfa_t): Remove unused member states_alloc.
76436         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76437
76438 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76441         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76442         and large-file glibc and in 32-bit large-file Solaris.
76443
76444 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76447         lengths fit in regoff_t; this isn't true if regoff_t is the same
76448         width as size_t.
76449         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76450         (= START + RANGE) instead of RANGE.  This avoids overflow
76451         problems when regoff_t is the same width as size_t.
76452         All callers changed.
76453         (re_search_2_stub): Check for overflow when adding the
76454         sizes of the two strings.
76455         (re_search_stub): Check for overflow when adding START
76456         to RANGE; if it occurs, substitute the extreme value.
76457
76458 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76461
76462 2005-08-31  Jim Meyering  <jim@meyering.net>
76463
76464         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76465         a pointer-to-const.
76466         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76467         (register_state): Likewise.
76468         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76469         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76470         (group_nodes_into_DFAstates): Likewise.
76471
76472 2005-08-31  Jim Meyering  <jim@meyering.net>
76473
76474         * check-module: Add a FIXME comment.
76475
76476 2005-08-31  Eric Blake  <ebb9@byu.net>
76477
76478         * modules/unistd-safer (Files): Add unistd--.h.
76479         * modules/stdio-safer (Files): Add stdio--.h.
76480
76481 2005-08-31  Derek Price  <derek@ximbiot.com>
76482
76483         * lib/getdelim.c (getdelim): Return EOF on EOF.
76484         Reported by Larry Jones <lawrence.jones@ugs.com>.
76485
76486 2005-08-31  Bruno Haible  <bruno@clisp.org>
76487
76488         Avoid unnecessary diffs in the generated lib/Makefile.am.
76489         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76490         the generated files.
76491         (func_import): Don't set cmd.
76492
76493 2005-08-31  Bruno Haible  <bruno@clisp.org>
76494
76495         * lib/strstr.c: Include <stddef.h>, for NULL.
76496         * lib/strcasestr.c: Likewise.
76497         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76498
76499 2005-08-31  Bruno Haible  <bruno@clisp.org>
76500
76501         * gnulib-tool: New option --macro-prefix.
76502         (func_import): Use macro_prefix.
76503         (import): Handle option --macro-prefix.
76504
76505 2005-08-31  Bruno Haible  <bruno@clisp.org>
76506
76507         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76508         Also use new variables cached_lgpl, cached_libtool.
76509
76510 2005-08-31  Bruno Haible  <bruno@clisp.org>
76511
76512         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76513         always instantiating them.
76514
76515 2005-08-31  Bruno Haible  <bruno@clisp.org>
76516
76517         * gnulib-tool (func_import): Read the previous cached settings
76518         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76519         earlier added by gnulib but are now dropped. Warn when a gnulib file
76520         overwrites a non-gnulib file.
76521
76522 2005-08-31  Bruno Haible  <bruno@clisp.org>
76523
76524         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76525         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76526         projects that don't keep autogenerated files in CVS. Put into
76527         actioncmd only the specified modules, not the transitive closure.
76528
76529 2005-08-31  Bruno Haible  <bruno@clisp.org>
76530
76531         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76532         Create directories that shall be filled.
76533         (import): Don't look for gl_* macros in configure.ac. Recurse across
76534         all directories containing a gnulib-cache.m4 files, if meaningful.
76535
76536 2005-08-31  Bruno Haible  <bruno@clisp.org>
76537
76538         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76539         (import): Set seen_libtool when we see gl_LIBTOOL.
76540
76541 2005-08-31  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76544         declaration macro definitions from generated gnulib.m4.
76545
76546 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76547
76548         * lib/iconvme.h: Add prototype for iconv_alloc.
76549
76550 2005-08-29  Simon Josefsson  <jas@extundo.com>
76551
76552         * lib/iconvme.c: Fix errno.
76553
76554 2005-08-29  Bruno Haible  <bruno@clisp.org>
76555
76556         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76557         that it works when the directory contains spaces.
76558
76559 2005-08-29  Bruno Haible  <bruno@clisp.org>
76560
76561         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76562
76563 2005-08-29  Bruno Haible  <bruno@clisp.org>
76564
76565         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76566         Emit more advice.
76567
76568 2005-08-29  Bruno Haible  <bruno@clisp.org>
76569         and Stepan Kasal  <kasal@ucw.cz>
76570
76571         * check-module: If more parameters are given, check each of them
76572         separately; add more exceptions, as noted by Jim Meyering.
76573         (check_module): New procedure.
76574         (%exempt_header): Now contains all exceptions.
76575
76576 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76577
76578         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76579
76580 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76581
76582         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76583
76584 2005-08-28  Bruno Haible  <bruno@clisp.org>
76585
76586         * m4/gnulib-tool.m4: New file.
76587
76588 2005-08-27  Jim Meyering  <jim@meyering.net>
76589
76590         * modules/unistd-safer (Files): Add pipe-safer.c.
76591         * modules/fcntl-safer (Files): Add creat-safer.c.
76592
76593 2005-08-27  Jim Meyering  <jim@meyering.net>
76594
76595         * m4/stdlib-safer.m4: New file.  From coreutils.
76596         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76597         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76598         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76600         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76601
76602 2005-08-27  Jim Meyering  <jim@meyering.net>
76603
76604         * lib/fopen-safer.c: Merge minor changes from coreutils.
76605         * lib/dup-safer.c: Likewise.
76606         * lib/fd-safer.c: Likewise.
76607
76608         Merge from coreutils.
76609         * lib/stdio--.h: New file.
76610         * lib/stdlib--.h: New file.
76611         * lib/mkstemp-safer.c: New file.
76612
76613         GNU tar needs these.
76614         * lib/pipe-safer.c: New file.
76615         * lib/creat-safer.c: New file.
76616         * lib/fcntl--.h (creat): Define to creat_safer.
76617         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76618         * lib/unistd--.h (pipe): Define to pipe_safer.
76619         * lib/unistd-safer.h: Declare pipe_safer.
76620
76621 2005-08-26  Simon Josefsson  <jas@extundo.com>
76622
76623         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76624         Haible <bruno@clisp.org>.
76625
76626 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * lib/regex_internal.h: Remove all references to
76629         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76630         or better.
76631         (bitset_not, bitset_merge, bitset_not_merge):
76632         (bitset_mask, re_string_allocate, re_string_construct):
76633         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76634         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76635         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76636         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76637         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76638         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76639         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76640         (re_acquire_state_context):
76641         Remove unnecessary forward decls.
76642         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76643         Put __attribute at function definition,
76644         now that the function decl has been removed.
76645         * lib/regex_internal.c (re_string_peek_byte_case):
76646         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76647         Likewise.
76648
76649 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76650
76651         * m4/regex.m4: Add AC_PREREQ(2.50).
76652         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76653
76654 2005-08-25  Simon Josefsson  <jas@extundo.com>
76655
76656         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76657         __fsetlocking.
76658
76659 2005-08-25  Simon Josefsson  <jas@extundo.com>
76660
76661         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76662         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76663         GLIBC specific code.
76664
76665 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         Make regex safe for g++.  This fixes one real bug (an "err"
76668         that should have been "*err").  g++ problem reported by
76669         Sam Steingold.
76670         * lib/regex_internal.h (re_calloc): New macro, consistent with
76671         re_malloc etc.  All callers of calloc changed to use re_calloc.
76672         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76673         not int.  All callers changed.
76674         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76675         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76676         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76677         (find_recover_state): Change "err" to "*err"; this fixes what
76678         appears to be a real bug.
76679         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76680         versus int.
76681
76682 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76683
76684         * modules/regex (Depends-on): Add malloc, since the code
76685         assumes that !malloc(0) means failure.
76686
76687 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76690
76691         alloca modernization/simplification for regex.
76692         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76693         needs to be at the start of the file, and can be moved into
76694         regex_internal.h and simplified.
76695         * lib/regex_internal.h: Include <alloca.h>.
76696         (__libc_use_alloca) [!defined _LIBC]: New macro.
76697         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76698         now works outside glibc.
76699
76700 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * config/srclist.txt: Add glibc bugs 1241, 1245.
76703
76704 2005-08-25  Jim Meyering  <jim@meyering.net>
76705
76706         * lib/open-safer.c: Include <config.h>.
76707         Otherwise, we'd lose LARGEFILE support in any file using
76708         e.g. "fcntl--.h"
76709
76710 2005-08-25  Bruno Haible  <bruno@clisp.org>
76711
76712         * m4/minmax.m4: Require autoconf 2.52.
76713         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76714         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76715         alternatives of translit over the alphabet.
76716         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76717
76718 2005-08-24  Simon Josefsson  <jas@extundo.com>
76719
76720         * tests/test-getpass.c: New file.
76721
76722 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76725         for GNU regex features.
76726
76727 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76730         * lib/regex.h (regerror): Likewise.
76731
76732         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76733         requires this.  (The code never needed it.)
76734
76735         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76736         All uses of recently-renamed identifiers changed to use the new,
76737         POSIX-compliant names.  The code will build and run just fine
76738         without these changes, but it's better to eat our own dog food
76739         and use the standard-conforming names.
76740
76741         * lib/regex.h: Fix a multitude of POSIX name space violations.
76742         These changes have an effect only for programs that define
76743         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76744         do not change anything for programs compiled in the normal way.
76745         Also, there is no effect on the ABI.
76746
76747         (_REGEX_SOURCE): New macro.
76748         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76749         defined and _GNU_SOURCE is not; this fixes a name space violation.
76750
76751         Rename the following macros to obey POSIX requirements.
76752         The old names are still visible as macros if _REGEX_SOURCE is defined.
76753         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76754         RE_BACKSLASH_ESCAPE_IN_LISTS.
76755         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76756         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76757         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76758         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76759         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76760         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76761         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76762         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76763         (REG_INTERVALS): renamed from RE_INTERVALS.
76764         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76765         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76766         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76767         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76768         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76769         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76770         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76771         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76772         RE_UNMATCHED_RIGHT_PAREN_ORD.
76773         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76774         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76775         (REG_DEBUG): renamed from RE_DEBUG.
76776         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76777         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76778         unusual, since we can't clash with the POSIX REG_ICASE.
76779         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76780         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76781         (REG_NO_SUB): renamed from RE_NO_SUB.
76782         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76783         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76784         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76785         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76786         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76787         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76788         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76789         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76790         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76791         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76792         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76793         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76794         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76795         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76796         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76797         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76798         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76799         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76800         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76801         (REG_FIXED): Renamed from REGS_FIXED.
76802         (REG_NREGS): Renamed from RE_NREGS.
76803
76804         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76805         of other REG_* macros, since POSIX says the user is allowed to
76806         #undef these macros selectively.
76807
76808         (reg_errcode_t): Update comment stating what other tables need
76809         to be consistent.
76810
76811         Rename the following enum values to obey POSIX requirements.
76812         The old names are still visible as macros.
76813         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76814         is not defined, since GNU is supposed to be a superset of POSIX as
76815         much as possible, and since we want reg_errcode_t to be a signed
76816         type for implementation consistency.
76817         (_REG_NOERROR): Renamed from REG_NOERROR.
76818         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76819         (_REG_BADPAT): Renamed from REG_BADPAT.
76820         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76821         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76822         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76823         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76824         (_REG_EBRACK): Renamed from REG_EBRACK.
76825         (_REG_EPAREN): Renamed from REG_EPAREN.
76826         (_REG_EBRACE): Renamed from REG_EBRACE.
76827         (_REG_BADBR): Renamed from REG_BADBR.
76828         (_REG_ERANGE): Renamed from REG_ERANGE.
76829         (_REG_ESPACE): Renamed from REG_ESPACE.
76830         (_REG_BADRPT): Renamed from REG_BADRPT.
76831         (_REG_EEND): Renamed from REG_EEND.
76832         (_REG_ESIZE): Renamed from REG_ESIZE.
76833         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76834         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76835         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76836         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76837         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76838
76839         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76840         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76841         changed.  But support the old name if the new one is not defined
76842         and if _REGEX_SOURCE.
76843
76844         Change the following member names in struct re_pattern_buffer.
76845         The old names are still supported if !_REGEX_SOURCE.
76846         The new names are always supported, regardless of _REGEX_SOURCE.
76847         (re_buffer): Renamed from buffer.
76848         (re_allocated): Renamed from allocated.
76849         (re_used): Renamed from used.
76850         (re_syntax): Renamed from syntax.
76851         (re_fastmap): Renamed from fastmap.
76852         (re_translate): Renamed from translate.
76853         (re_can_be_null): Renamed from can_be_null.
76854         (re_regs_allocated): Renamed from regs_allocated.
76855         (re_fastmap_accurate): Renamed from fastmap_accurate.
76856         (re_no_sub): Renamed from no_sub.
76857         (re_not_bol): Renamed from not_bol.
76858         (re_not_eol): Renamed from not_eol.
76859         (re_newline_anchor): Renamed from newline_anchor.
76860
76861         Change the following member names in struct re_registers.
76862         The old names are still supported if !_REGEX_SOURCE.
76863         The new names are always supported, regardless of _REGEX_SOURCE.
76864         (rm_num_regs): Renamed from num_regs.
76865         (rm_start): Renamed from start.
76866         (rm_end): Renamed from end.
76867
76868         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76869         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76870         Prepend __ to parameter names.
76871
76872         Undo yesterday's changes.
76873
76874 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76877         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76878         lib/regex.c.
76879
76880 2005-08-24  Jim Meyering  <jim@meyering.net>
76881
76882         Sync from coreutils.
76883         * m4/fcntl-safer.m4: New file.
76884
76885         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76886         and object files for this module.
76887
76888 2005-08-24  Jim Meyering  <jim@meyering.net>
76889
76890         Sync from coreutils.
76891         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76892
76893 2005-08-24  Jim Meyering  <jim@meyering.net>
76894
76895         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76896         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76897
76898 2005-08-24  Jim Meyering  <jim@meyering.net>
76899
76900         * modules/fcntl-safer: New module.
76901         * modules/fts (Depends-on): Add fcntl-safer.
76902         * MODULES.html.sh (File descriptor based Input/Output):
76903         Add fcntl-safer.
76904
76905 2005-08-24  Bruno Haible  <bruno@clisp.org>
76906
76907         Support for unit test modules.
76908         * modules/README: Mention tests modules.
76909         * modules/TEMPLATE-TESTS: New file.
76910         * gnulib-tool: New options --extract-tests-module, --with-tests and
76911         --tests-base (unused for the moment).
76912         (testsbase, inctests): New variables.
76913         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76914         (func_verify_module): Exclude TEMPLATE-TESTS.
76915         (func_verify_nontests_module, func_verify_tests_module): New functions.
76916         (func_get_dependencies): Add implicit dependency for tests modules.
76917         (func_get_tests_module): New function.
76918         (func_modules_transitive_closure): When --with-tests was specified,
76919         include the unit tests as well, unless explicitly avoided.
76920         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76921         (func_emit_tests_Makefile_am): New function.
76922         (func_create_testdir): When --with-tests was specified, emit a
76923         tests/ directory.
76924         * MODULES.html.sh (Future developments): Update.
76925
76926 2005-08-24  Bruno Haible  <bruno@clisp.org>
76927
76928         * modules/tls-tests: New file.
76929         * tests/test-tls.c: New file, from GNU gettext.
76930
76931 2005-08-24  Bruno Haible  <bruno@clisp.org>
76932
76933         * modules/lock-tests: New file.
76934         * tests/test-lock.c: New file, from GNU gettext.
76935
76936 2005-08-24  Bruno Haible  <bruno@clisp.org>
76937
76938         * lib/lock.h: Add multiple inclusion guard.
76939         * lib/tls.h: Add multiple inclusion guard.
76940
76941 2005-08-24  Bruno Haible  <bruno@clisp.org>
76942
76943         * gnulib-tool: Add support for the --aux-dir option to
76944         --create-testdir, --create-megatestdir, --test, --megatest.
76945         (func_create_testdir, func_create_megatestdir): Optionally emit a
76946         AC_CONFIG_AUX_DIR directive.
76947         (create-testdir, create-megatestdir, test, megatest): Provide a
76948         default value for $auxdir.
76949
76950 2005-08-24  Bruno Haible  <bruno@clisp.org>
76951
76952         * gnulib-tool (import): Use compound statement instead of subshell
76953         where possible.
76954
76955 2005-08-24  Bruno Haible  <bruno@clisp.org>
76956
76957         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76958
76959 2005-08-24  Bruno Haible  <bruno@clisp.org>
76960
76961         * gnulib-tool (func_version): Update.
76962
76963 2005-08-24  Bruno Haible  <bruno@clisp.org>
76964
76965         * gnulib-tool (func_import, func_create_testdir,
76966         func_create_megatestdir): Quote all autoconf macro arguments.
76967
76968 2005-08-24  Bruno Haible  <bruno@clisp.org>
76969
76970         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76971         option --force, because --force causes the aclocal.m4 of each
76972         subdirectory to be newer than the corresponding config.h.in.
76973
76974 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76977         All contents moved to gl_REGEX.
76978         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76979         assume that it does.
76980
76981 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * lib/regex.h (REG_NOSYS)
76984         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76985         Define, since POSIX requires it as of 2001.
76986         (_REG_ENOSYS)
76987         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76988         New private symbol, used to keep the enum signed in all cases.
76989         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76990         Youngman in
76991         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76992
76993         * lib/regex_internal.c (re_string_skip_chars, register_state):
76994         (calc_state_hash):
76995         Remove forward decls; no longer needed now that we use prototypes.
76996         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76997         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76998         (clean_state_log_if_needed): Likewise.
76999
77000 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * config/srclist.txt: Add glibc bugs 1231-1233.
77003
77004 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         Fix problems reported by Sam Steingold in
77007         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77008         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77009         assumed that reg_errcode_t is a signed type, which is not
77010         necessarily true if _XOPEN_SOURCE is not defined.
77011         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77012         since some compilers warn about it otherwise.
77013
77014 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77017         (init_word_char, create_initial_state, duplicate_node_closure):
77018         (fetch_token, peek_token_bracket, build_range_exp):
77019         (build_collating_symbol): Remove forward decls; no longer needed
77020         now that we use prototypes.
77021
77022         * lib/regcomp.c:
77023         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77024         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77025         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77026         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77027         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77028         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77029         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77030         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77031         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77032         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77033         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77034         (build_charclass, build_charclass_op, fetch_number, create_tree):
77035         (create_token_tree, mark_opt_subexp, duplicate_tree):
77036         Use prototypes rather than old-style definitions.
77037
77038         * lib/regex_internal.c:
77039         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77040         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77041         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77042         (re_string_reconstruct, re_string_peek_byte_case):
77043         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77044         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77045         (re_node_set_init_copy, re_node_set_add_intersect):
77046         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77047         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77048         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77049         (re_acquire_state, re_acquire_state_context, register_state):
77050         (create_ci_newstate, create_cd_newstate, free_state):
77051         Likewise.
77052         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77053         re_search_2):
77054         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77055         (re_search_internal, prune_impossible_nodes):
77056         (acquire_init_state_context, check_matching, static):
77057         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77058         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77059         (update_regs, sift_states_backward, build_sifted_states):
77060         (clean_state_log_if_needed, merge_state_array):
77061         (update_cur_sifted_state, add_epsilon_src_nodes):
77062         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77063         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77064         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77065         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77066         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77067         (check_arrival, check_arrival_add_next_nodes):
77068         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77069         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77070         (check_node_accept_bytes, check_node_accept, extend_buffers):
77071         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77072         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77073         (sift_ctx_init):
77074         Likewise.
77075
77076         * lib/regex_internal.h:
77077         (re_string_allocate, re_string_construct, re_string_reconstruct):
77078         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77079         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77080         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77081         (re_string_context_at, re_string_peek_byte_case):
77082         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77083         is defined, since we now use prototypes always.
77084
77085         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77086         C89 or better.  All uses removed.
77087
77088 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * config/srclist.txt: Add glibc bugs 1220-1227.
77091
77092 2005-08-20  Jim Meyering  <jim@meyering.net>
77093
77094         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77095         of unused local, dfa.
77096
77097 2005-08-20  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77100
77101 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77104         (re_node_set_insert_last, re_dfa_add_node):
77105         Rename local variables to avoid GCC shadowing warnings.
77106
77107 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77110         [defined lint]: Suppress bogus uninitialized-variable warnings.
77111
77112         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77113         and let the caller return REG_ESPACE if out of space.  This
77114         removes an uninitialied-variable warning with GCC 4.0.1, and also
77115         avoids taking the address of a local variable.  All callers
77116         changed.
77117
77118 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77121         $LIBCSRC/posix/regexec.c.
77122         Add glibc bug 1217 for regcomp.c.
77123
77124 2005-08-19  Jim Meyering  <jim@meyering.net>
77125
77126         * lib/regexec.c (proceed_next_node): Redo local variables to
77127         avoid GCC shadowing warnings.
77128
77129 2005-08-18  Bruno Haible  <bruno@clisp.org>
77130
77131         * lib/strstr.c (strstr): Fix return value in multibyte case.
77132         * lib/strcasestr.c (strcasestr): Likewise.
77133
77134 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77137
77138 2005-08-17  Jim Meyering  <jim@meyering.net>
77139
77140         Make the %s format (seconds since the epoch) work for a negative
77141         number and when used with a zero-padded field width, e.g. %015s.
77142
77143         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77144         label so that it precedes the code to set `digits'.  Otherwise,
77145         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77146         print `00-22'.  Now, it prints `-0022', as it should.
77147
77148 2005-08-17  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/strstr (Files): Add m4/mbrtowc.m4.
77151         (Depends-on): Add mbuiter.
77152
77153 2005-08-17  Bruno Haible  <bruno@clisp.org>
77154
77155         * modules/strcasestr: New file.
77156         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77157         strcasestr.
77158
77159 2005-08-17  Bruno Haible  <bruno@clisp.org>
77160
77161         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77162
77163 2005-08-17  Bruno Haible  <bruno@clisp.org>
77164
77165         * modules/mbuiter: New file.
77166         * MODULES.html.sh (Extended multibyte and wide character utilities):
77167         Add mbuiter.
77168
77169 2005-08-17  Bruno Haible  <bruno@clisp.org>
77170
77171         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77172         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77173
77174 2005-08-17  Bruno Haible  <bruno@clisp.org>
77175
77176         * m4/strcasestr.m4: New file.
77177
77178 2005-08-17  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77181         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77182
77183 2005-08-17  Bruno Haible  <bruno@clisp.org>
77184
77185         * lib/strcasestr.h: New file.
77186         * lib/strcasestr.c: New file.
77187
77188 2005-08-17  Bruno Haible  <bruno@clisp.org>
77189
77190         * lib/strcasecmp.c: Use mbuiter.h.
77191
77192 2005-08-17  Bruno Haible  <bruno@clisp.org>
77193
77194         * lib/mbuiter.h: New file.
77195
77196 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77197
77198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77199         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77200         and gl_GETOPT are both invoked via different paths (as happens
77201         with GNU tar CVS because it uses both argp and getopt), the former
77202         wins.
77203
77204 2005-08-16  Bruno Haible  <bruno@clisp.org>
77205
77206         * modules/tls: New file.
77207         * MODULES.html.sh (Multithreading): Add tls.
77208
77209 2005-08-16  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/strnlen1: New file.
77212         * MODULES.html.sh (String handling): Add strnlen1.
77213
77214 2005-08-16  Bruno Haible  <bruno@clisp.org>
77215
77216         * modules/strcase (Files): Add m4/mbrtowc.m4.
77217         (Depends-on): Add strnlen1, mbchar.
77218
77219 2005-08-16  Bruno Haible  <bruno@clisp.org>
77220
77221         * modules/mbiter: New file.
77222         * MODULES.html.sh (Extended multibyte and wide character utilities):
77223         Add mbiter.
77224
77225 2005-08-16  Bruno Haible  <bruno@clisp.org>
77226
77227         * modules/mbfile: New file.
77228         * MODULES.html.sh (Extended multibyte and wide character utilities):
77229         Add mbfile.
77230
77231 2005-08-16  Bruno Haible  <bruno@clisp.org>
77232
77233         * modules/mbchar: New file.
77234         * MODULES.html.sh (Extended multibyte and wide character utilities):
77235         New section.
77236
77237 2005-08-16  Bruno Haible  <bruno@clisp.org>
77238
77239         * m4/tls.m4: New file, from GNU gettext.
77240
77241 2005-08-16  Bruno Haible  <bruno@clisp.org>
77242
77243         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77244         always.
77245         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77246
77247 2005-08-16  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/mbiter.m4: New file.
77250
77251 2005-08-16  Bruno Haible  <bruno@clisp.org>
77252
77253         * m4/mbfile.m4: New file.
77254
77255 2005-08-16  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/mbchar.m4: New file.
77258
77259 2005-08-16  Bruno Haible  <bruno@clisp.org>
77260
77261         * lib/tls.h: New file, from GNU gettext.
77262         * lib/tls.c: New file, from GNU gettext.
77263
77264 2005-08-16  Bruno Haible  <bruno@clisp.org>
77265
77266         * lib/strnlen1.h: New file.
77267         * lib/strnlen1.c: New file.
77268
77269 2005-08-16  Bruno Haible  <bruno@clisp.org>
77270
77271         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77272         (mbi_init): Update.
77273         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77274         NUL byte, not after it.
77275
77276 2005-08-16  Bruno Haible  <bruno@clisp.org>
77277
77278         * lib/strcase.h (strcasecmp): Add note in comments.
77279         * lib/strncasecmp.c: Use code from strcasecmp.c.
77280         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77281         (strcasecmp): Work correctly in multibyte locales.
77282
77283 2005-08-16  Bruno Haible  <bruno@clisp.org>
77284
77285         * lib/mbiter.h: New file.
77286
77287 2005-08-16  Bruno Haible  <bruno@clisp.org>
77288
77289         * lib/mbfile.h: New file.
77290
77291 2005-08-16  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/mbchar.h: New file.
77294         * lib/mbchar.c: New file.
77295
77296 2005-08-16  Bruno Haible  <bruno@clisp.org>
77297
77298         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77299         the valid ones. Makes the comparison operations transitive:
77300         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77301         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77302
77303 2005-08-15  Simon Josefsson  <jas@extundo.com>
77304
77305         * modules/ssize_t (License): Change to 'unlimited'.
77306
77307         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77308
77309 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77312         Add comments for each pending glibc patch.
77313
77314 2005-08-15  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77317         __cplusplus is defined.
77318
77319 2005-08-14  Jim Meyering  <jim@meyering.net>
77320
77321         Sync from coreutils.
77322
77323         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77324         Use the hash-table-based cycle-detection code not just when
77325         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77326         Reported by James Youngman in
77327         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77328         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77329         FTS_TIGHT_CYCLE_CHECK.
77330         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77331         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77332         once again.
77333         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77334         * lib/fts.c (fd_safer): Remove decl.
77335         Include fcntl--.h rather than unistd-safer.h
77336         (fts_safe_changedir): Don't call fd_safer; no longer needed
77337         now that we include fcntl--.h.
77338
77339 2005-08-12  Simon Josefsson  <jas@extundo.com>
77340
77341         * modules/getndelim2: Use ssize_t module.
77342         * modules/getnline: Likewise.
77343         * modules/safe-read: Likewise.
77344         * modules/xreadlink: Likewise.
77345
77346         * modules/ssize_t: New file.
77347
77348 2005-08-12  Simon Josefsson  <jas@extundo.com>
77349
77350         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77351
77352 2005-08-12  Simon Josefsson  <jas@extundo.com>
77353
77354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77355         ssize_t.
77356
77357 2005-08-12  Simon Josefsson  <jas@extundo.com>
77358
77359         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77360         readline, getdelim and check_version.
77361         (Support for systems lacking ISO C 99: Sizes of integer types):
77362         Add size_max.
77363
77364 2005-08-12  Bruno Haible  <bruno@clisp.org>
77365
77366         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77367
77368 2005-08-11  Simon Josefsson  <jas@extundo.com>
77369
77370         * modules/readline: New file.
77371
77372         * modules/strnlen (Files): Add strnlen.h.
77373
77374 2005-08-11  Simon Josefsson  <jas@extundo.com>
77375
77376         * m4/readline.m4: New file.
77377
77378 2005-08-11  Simon Josefsson  <jas@extundo.com>
77379
77380         * lib/readline.h, readline.c: New file.
77381
77382 2005-08-11  Simon Josefsson  <jas@extundo.com>
77383
77384         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77385         gl_AVOID.
77386
77387 2005-08-11  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77390
77391 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77392
77393         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77394
77395 2005-08-10  Simon Josefsson  <jas@extundo.com>
77396
77397         * tests/test-iconvme.c: New file.
77398
77399 2005-08-10  Simon Josefsson  <jas@extundo.com>
77400
77401         * m4/strnlen.m4: New file.
77402
77403         * m4/strndup.m4: Don't check for strnlen declaration, done in
77404         strnlen.m4.
77405
77406 2005-08-10  Simon Josefsson  <jas@extundo.com>
77407
77408         * lib/strndup.c: Use strnlen.h.
77409
77410         * lib/strnlen.h: New file.
77411
77412 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77413
77414         * README: Typos.
77415
77416 2005-08-02  Simon Josefsson  <jas@extundo.com>
77417
77418         * modules/readline: New file.
77419
77420 2005-08-02  Simon Josefsson  <jas@extundo.com>
77421
77422         * modules/getdelim: New file.
77423
77424         * modules/getline: Rewrite, don't use getndelim2.
77425
77426 2005-08-02  Simon Josefsson  <jas@extundo.com>
77427
77428         * m4/getline.m4: Separate out getdelim stuff into separate module.
77429
77430         * m4/getdelim.m4: New file.
77431
77432 2005-08-02  Simon Josefsson  <jas@extundo.com>
77433
77434         * lib/getline.h, getline.c: Rewrite.
77435
77436         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77437
77438 2005-07-31  Bruno Haible  <bruno@clisp.org>
77439
77440         * lib/lock.h (gl_lock_initializer): New macro.
77441         (gl_lock_define_initialized): Use it.
77442         (gl_rwlock_initializer): New macro.
77443         (gl_rwlock_define_initialized): Use it.
77444         (gl_recursive_lock_initializer): New macro.
77445         (gl_recursive_lock_define_initialized): Use it.
77446
77447 2005-07-30  Karl Berry  <karl@gnu.org>
77448
77449         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77450         Report from Ben Pfaff, regarding getopt.
77451
77452 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77455         normal way.
77456         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77457         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77458         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77459         (gl_GETOPT): Use the new macros.  Most of the implementation
77460         is moved to the new macros.  This is for programs like Emacs
77461         that don't want all the functionality of gl_GETOPT.
77462
77463 2005-07-26  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/lock.m4: Update from GNU gettext.
77466
77467 2005-07-26  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/lock.h: Update from GNU gettext.
77470         * lib/lock.c: Update from GNU gettext.
77471
77472 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77475         obsolescent AC_TRY_RUN.  Include the default includes files, for
77476         'exit'.
77477
77478 2005-07-24  Bruno Haible  <bruno@clisp.org>
77479
77480         * modules/visibility: New file.
77481         * MODULES.html.sh (Misc): Add visibility.
77482
77483 2005-07-24  Bruno Haible  <bruno@clisp.org>
77484
77485         * m4/visibility.m4: New file.
77486
77487 2005-07-24  Bruno Haible  <bruno@clisp.org>
77488
77489         * doc/visibility.texi: New file.
77490
77491 2005-07-22  Bruno Haible  <bruno@clisp.org>
77492
77493         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77494         $(ALLOCA_H), redundant through BUILT_SOURCES.
77495         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77496         redundant through BUILT_SOURCES.
77497         * modules/byteswap (Makefile.am): Remove explicit dependency on
77498         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77499         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77500         $(FNMATCH_H), redundant through BUILT_SOURCES.
77501         * modules/getopt (Makefile.am): Remove explicit dependency on
77502         $(GETOPT_H), redundant through BUILT_SOURCES.
77503         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77504         redundant through BUILT_SOURCES.
77505         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77506         redundant through BUILT_SOURCES.
77507         * modules/stdbool (Makefile.am): Remove explicit dependency on
77508         $(STDBOOL_H), redundant through BUILT_SOURCES.
77509         * modules/stdint (Makefile.am): Remove explicit dependency on
77510         $(STDINT_H), redundant through BUILT_SOURCES.
77511         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77512         Remove explicit dependency on $(SYSEXITS_H).
77513         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77514
77515 2005-07-18  Simon Josefsson  <jas@extundo.com>
77516
77517         * lib/check-version.c (check_version): Accept identical versions too.
77518
77519 2005-07-18  Bruno Haible  <bruno@clisp.org>
77520
77521         * modules/lock: New file.
77522         * MODULES.html.sh (Multithreading): New section.
77523
77524 2005-07-18  Bruno Haible  <bruno@clisp.org>
77525
77526         * m4/lock.m4: New file, from GNU gettext.
77527
77528 2005-07-18  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/lock.h: New file, from GNU gettext.
77531         * lib/lock.c: New file, from GNU gettext.
77532
77533 2005-07-18  Bruno Haible  <bruno@clisp.org>
77534
77535         * lib/lock.h (gl_once_t): New type.
77536         (gl_once_define, gl_once): New macros.
77537         * lib/lock.c (fresh_once): New variable.
77538         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77539         functions.
77540
77541 2005-07-16  Simon Josefsson  <jas@extundo.com>
77542
77543         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77544         workaround, suggested by Bruno.
77545
77546 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * modules/xalloc (Depends-on): Add xalloc-die.
77549         * modules/xvasprintf (Depends-on): Add xalloc-die.
77550
77551 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77554         with a minor change.
77555
77556 2005-07-15  Bruno Haible  <bruno@clisp.org>
77557
77558         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77559         When using lib/poll.c, define poll as rpl_poll.
77560
77561 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * modules/argp (Depends-on): Remove unlocked-io.
77564
77565 2005-07-14  Derek Price  <derek@ximbiot.com>
77566
77567         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77568         for glob symlink bug.
77569
77570 2005-07-14  Bruno Haible  <bruno@clisp.org>
77571
77572         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77573         Instead, test for *_unlocked function declarations directly.
77574
77575 2005-07-11  Simon Josefsson  <jas@extundo.com>
77576
77577         * modules/size_max: New file.
77578
77579         * modules/xsize: Depend on size_max module for size_max.m4.
77580
77581 2005-07-11  Simon Josefsson  <jas@extundo.com>
77582
77583         * lib/size_max.h: New file.
77584
77585 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77588         copyright symbol and the year.
77589         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77590         (version_etc_va): Use parameterized copyright notice.
77591         Reword to conform to the current GNU coding standards.
77592
77593 2005-07-11  Karl Berry  <karl@gnu.org>
77594
77595         * doc/gnulib.texi (Quoting): new node.
77596         (Initial import): more info, from Patrice.
77597
77598 2005-07-11  Bruno Haible  <bruno@clisp.org>
77599
77600         * gnulib-tool (func_usage): Document option --avoid.
77601         (Command line options): Handle --avoid.
77602         (func_acceptable): New function.
77603         (func_modules_transitive_closure): Use it.
77604
77605 2005-07-11  Bruno Haible  <bruno@clisp.org>
77606
77607         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77608         Reported by Jim Meyering.
77609
77610 2005-07-10  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77613         Needed when size_t is smaller than 'unsigned int'.
77614         Reported by Paul Eggert.
77615
77616 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77617
77618         * modules/argp (Depends-on): Add unlocked-io
77619
77620 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77621
77622         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77623         block of defines.
77624
77625 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77628         fix now.
77629
77630 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77631         and Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77634         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77635
77636 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77637
77638         * modules/regex (Files): Add lib/regex_internal.c,
77639         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77640         (Depends-on): Add extensions.
77641         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77642
77643 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77646         pathconf.
77647         * m4/same.m4 (gl_SAME): Likewise.
77648         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77649
77650         * m4/regex.m4: Adjust to new libc regex implementation.
77651         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77652         all the .c and .h parts of (the new) regex.
77653         Quote the m4 stuff better.
77654         Check for RE_ICASE bug of old gnulib.
77655         Check for REG_STARTEND of recent libc.
77656         Rename local variables from jm_* to gl_*.
77657         Quote operand of "test -f".
77658         Say "recent enough" version of libc, not "version 2".
77659         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77660         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77661         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77662         Remove check for btowc, isascii.
77663         Require AM_LANGINFO_CODESET.
77664
77665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77666
77667         * lib/regex.c, regex.h: Sync from libc.
77668         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77669         * lib/regexec.c:
77670         New files, synced from libc, except that regex_internal.h
77671         currently has a small porting fix.
77672
77673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77676         regex_internal.c, regexec.c.
77677         Add regex_internal.h too, but as a comment, since the libc version
77678         is currently broken in gnulib mode.
77679
77680 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         Support programs like Emacs that use gnulib but not gettext.
77683         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77684         * modules/gettext-h: New file.
77685         * modules/gettext (Files): Remove lib/gettext.h.
77686         (Depends-on): Add gettext-h.
77687         (Makefile.am): Remove lib_SOURCES.
77688         * modules/argmatch, modules/c-stack, modules/closeout:
77689         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77690         * modules/execute, modules/file-type, modules/getaddrinfo:
77691         * modules/getopt, modules/human, modules/javacomp:
77692         * modules/javaexec, modules/mkdir-p, modules/obstack:
77693         * modules/openat, modules/pagealign_alloc, modules/pipe:
77694         * modules/quotearg, modules/regex, modules/rpmatch:
77695         * modules/unicodeio, modules/userspec, modules/version-etc:
77696         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77697         * modules/xsetenv:
77698         Depend on gettext-h, not gettext.
77699
77700 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * gnulib-tool (func_import): Add support for 'public domain' license.
77703         * modules/alloca, modules/atexit, modules/memmove:
77704         Now public domain, not GPL.
77705         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77706         * modules/realloc, modules/strerror, modules/strtod:
77707         Now LGPL, not GPL.
77708
77709 2005-07-05  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77712         autoconf CVS. Needed for mingw.
77713
77714 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         Remove the dependency of the strftime module on the tzset module.
77717         * modules/strftime (Depends-on): Remove dependency on tzset.
77718
77719 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         Remove the dependency of the strftime module on the tzset module.
77722         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77723         gl_FUNC_TZSET_CLOBBER.
77724
77725 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         Remove the dependency of the strftime module on the tzset module.
77728         * lib/strftime.c (my_strftime)
77729         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77730         Copy the input structure, to work around some of the bug with
77731         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77732         Solaris releases, you should also use the tzset module, but we won't
77733         require it as a dependency any more since we don't want LGPLed code
77734         to depend on GPLed code.
77735
77736 2005-07-02  Jim Meyering  <jim@meyering.net>
77737
77738         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77739         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77740         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77741         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77742
77743 2005-07-02  Jim Meyering  <jim@meyering.net>
77744
77745         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77746
77747 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77750         declares only 'struct timespec;' (!).
77751
77752 2005-07-01  Jim Meyering  <jim@meyering.net>
77753
77754         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77755         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77756         * lib/save-cwd.c, tempname.c:
77757         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77758         and don't include <sys/file.h>).
77759
77760 2005-06-29  Jim Meyering  <jim@meyering.net>
77761
77762         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77763         type name.  Use the variable name instead.
77764         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77765         Likewise.
77766
77767 2005-06-28  Simon Josefsson  <jas@extundo.com>
77768
77769         * modules/check-version (Files): Add check-version.m4.
77770
77771 2005-06-28  Simon Josefsson  <jas@extundo.com>
77772
77773         * m4/check-version.m4: New file, suggested by Jim Meyering
77774         <jim@meyering.net>.
77775
77776 2005-06-28  Simon Josefsson  <jas@extundo.com>
77777
77778         * lib/check-version.h, lib/check-version.c: New files.
77779
77780 2005-06-28  Simon Josefsson  <jas@extundo.com>
77781
77782         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77783         collision with global variable.  Better indentation.  Don't
77784         increment buffer pointer beyond buffer end.  Based on comments
77785         from Paul Eggert <eggert@cs.ucla.edu>.
77786
77787         * lib/base64.h: Indent.
77788
77789 2005-06-28  Simon Josefsson  <jas@extundo.com>
77790
77791         * doc/gnulib.texi (Library version handling): New section.
77792
77793 2005-06-28  Jim Meyering  <jim@meyering.net>
77794
77795         * check-module (find_included_lib_files): Hard-code another
77796         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77797         but modules/fts-lgpl (correctly) does not list those files.
77798
77799         * modules/canonicalize (Files): Add lib/pathmax.h.
77800
77801 2005-06-25  Simon Josefsson  <jas@extundo.com>
77802
77803         * modules/check-version: New file.
77804
77805 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77808         initializer of struct addrinfo, as an indication that we don't
77809         care how many members the structure has.
77810
77811 2005-06-24  Derek Price  <derek@ximbiot.com>
77812         and Bruno Haible  <bruno@clisp.org>
77813
77814         Remove stat module & update lstat.
77815         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77817         * m4/stat.m4: Remove this file.
77818
77819 2005-06-24  Derek Price  <derek@ximbiot.com>
77820         and Bruno Haible  <bruno@clisp.org>
77821
77822         Remove stat module & update lstat.
77823         * lib/stat.c: Remove this file...
77824         (slash_aware_lstat): ...moving this content and its support...
77825         * lib/lstat.c (rpl_lstat): ...into here.
77826         * lib/lstat.h: New file.
77827
77828 2005-06-24  Derek Price  <derek@ximbiot.com>
77829         and Bruno Haible  <bruno@clisp.org>
77830
77831         Remove stat module & update lstat.
77832         * config/srclist.txt (libc sources): Remove stat.
77833
77834 2005-06-24  Derek Price  <derek@ximbiot.com>
77835         and Bruno Haible  <bruno@clisp.org>
77836
77837         Remove stat module & update lstat.
77838         * MODULES.html.sh (stat): Remove.
77839         * MODULES.html: Regenerated.
77840         * modules/lstat (Description): Correct function name.
77841         (Files): Add "lstat.h".
77842         (Depends-on): Remove stat, add xalloc, stat-macros.
77843         * modules/stat: Remove this file.
77844         (Include): Add "lstat.h", remove <sys/stat.h>.
77845
77846 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77849         (ranged_convert): Don't save conversion in a temporary struct.
77850         This causes a warning with GCC 4.0.0, and anyway in the typical
77851         case it's not worth the extra 100 bytes or so of code.
77852         (ranged_convert, __mktime_internal): When calling a function via a
77853         pointer P, use P () rather than (*P) (), as we now assume C89 or
77854         better.
77855
77856 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77859         "who -r" failed to give output.  Problem reported by Tim Waugh.
77860
77861         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77862         (xcalloc): Use it to avoid needless tests.
77863         Problem reported by Jim Meyering.
77864
77865 2005-06-20  Derek Price  <derek@ximbiot.com>
77866
77867         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77868         unnecessary for Autoconfs > 2.59c.
77869
77870 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77871
77872         * lib/argp.h (__option_is_short): Check upper limit of
77873         __key. Isprint() requires its argument to have the value
77874         of an unsigned char or EOF.
77875
77876 2005-06-16  Jim Meyering  <jim@meyering.net>
77877
77878         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77879         when either N or S is zero.
77880
77881 2005-06-16  Derek Price  <derek@ximbiot.com>
77882
77883         * m4/bison.m4: Declare YACC & YFLAGS precious.
77884
77885 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77888         multibyte string or pattern, fall back on unibyte matching.
77889         Problem reported by James Youngman.
77890
77891 2005-06-08  Bruno Haible  <bruno@clisp.org>
77892
77893         * modules/csharpcomp: New file.
77894         * MODULES.html.sh (C#): Add csharpcomp.
77895
77896 2005-06-08  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/csharpcomp.m4: New file, from GNU gettext.
77899
77900 2005-06-08  Bruno Haible  <bruno@clisp.org>
77901
77902         * lib/csharpcomp.h: New file, from GNU gettext.
77903         * lib/csharpcomp.c: New file, from GNU gettext.
77904         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77905
77906 2005-06-08  Bruno Haible  <bruno@clisp.org>
77907
77908         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77909         warning on mingw.
77910
77911 2005-06-07  Derek Price  <derek@ximbiot.com>
77912
77913         Sync from CVS.
77914         * lib/glob_.h: Indent nested #ifdef.
77915
77916 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         Sync from coreutils.
77919         Use "file name" when talking about file names, instead of "filename"
77920         or "path", as per the GNU coding standards.
77921         * lib/mkdir-p.c: Renamed from makepath.c.
77922         (make_dir_parents): Renamed from make_path.  All callers changed.
77923         * lib/mkdir-p.h: Likewise.  All includers changed.
77924         * lib/filenamecat.c: Renamed from path-concat.c.
77925         (file_name_concat): Renamed from path_concat.  All callers changed.
77926         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77927         * lib/filenamecat.h: Likewise.  All includers changed.
77928         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77929         in comments or local variable names.
77930         * lib/basename.c: Likewise.
77931         * lib/canonicalize.c, canonicalize.h: Likewise.
77932         * lib/dirname.c, dirname.h: Likewise.
77933         * lib/euidaccess.c: Likewise.
77934         * lib/exclude.c: Likewise
77935         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77936         * lib/fsusage.c, fsuage.h: Likewise.
77937         * lib/fts.c, fts_.h: Likewise.
77938         * lib/getcwd.c: Likewise.
77939         * lib/getloadavg.c: Likewise.
77940         * lib/mkstemp.c: Likewise.
77941         * lib/mountlist.c, mountlist.h: Likewise.
77942         * lib/openat.c, openat.h: Likewise.
77943         * lib/readlink-stub.c: Likewise.
77944         * lib/readutmp.c, readutmp.h: Likewise.
77945         * lib/rename.c: Likewise.
77946         * lib/rmdir.c: Likewise.
77947         * lib/same.c: Likewise.
77948         * lib/savedir.c: Likewise.
77949         * lib/stripslash.c: Likewise.
77950         * lib/tempname.c: Likewise.
77951         * lib/xreadlink.c: Likewise.
77952         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77953         All uses changed.
77954         * lib/exclude.h: Likewise.
77955
77956         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77958         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77959         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77960         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77961         files have been getting away with it for years (MORE/BSD 4.3
77962         is extinct now).
77963         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77964         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77965
77966         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77967         Define to 256, not 255, as per modern POSIX.
77968
77969 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77970
77971         Sync from coreutils.
77972         Use "file name" when talking about file names, instead of "filename"
77973         or "path", as per the GNU coding standards.
77974         * MODULES.html.sh: mkdir-p renamed from makepath.
77975         filenamecat renamed from path-concat.
77976         * modules/filenamecat: Renamed from modules/path-concat.
77977         (Files): filenamecat.h and filenamecat.c renamed from
77978         path-concat.h and path-concat.c.
77979         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77980         (Include): filenamecat.h, not path-concat.h.
77981         * modules/mkdir-p: Renamed from modules/makepath.
77982         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77983         makepath.c.
77984         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77985         (Include): mkdir-p.h, not makepath.h.
77986
77987 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         Sync from coreutils.
77990         * m4/mkdir-p.m4: Renamed from makepath.m4.
77991         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77992         Rename files from makepath.c to mkdir-p.c, and from
77993         makepath.h to mkdir-p.h.
77994         * m4/filenamecat.m4: Renamed from path-concat.m4.
77995         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77996         Rename files from path-concat.c to filenamecat.c,
77997         and from path-concat.h to filenamecat.h.
77998         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77999         "file name" in local variables or comments.
78000         * m4/rename.m4: Likewise.
78001
78002 2005-06-01  Bruno Haible  <bruno@clisp.org>
78003
78004         * modules/csharpexec: New file.
78005         * MODULES.html.sh (C#): New section.
78006
78007 2005-06-01  Bruno Haible  <bruno@clisp.org>
78008
78009         * m4/csharp.m4: New file, from GNU gettext.
78010         * m4/csharpexec.m4: New file, from GNU gettext.
78011
78012 2005-06-01  Bruno Haible  <bruno@clisp.org>
78013
78014         * lib/csharpexec.h: New file, from GNU gettext.
78015         * lib/csharpexec.c: New file, from GNU gettext.
78016         * lib/csharpexec.sh.in: New file, from GNU gettext.
78017
78018 2005-05-31  Derek Price  <derek@ximbiot.com>
78019             Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         Sync from cvs.
78022         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78023
78024 2005-05-31  Derek Price  <derek@ximbiot.com>
78025             Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         Sync from cvs.
78028         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78029
78030 2005-05-29  Derek Price  <derek@ximbiot.com>
78031
78032         * config/srclist.txt (glob_.h, glob.c): Add these files.
78033
78034 2005-05-29  Derek Price  <derek@ximbiot.com>
78035
78036         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78037         * modules/glob: New file.
78038         * modules/getlogin_r: Add link to POSIX spec in description.
78039
78040 2005-05-29  Derek Price  <derek@ximbiot.com>
78041             Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * m4/glob.m4: New file.
78044
78045 2005-05-29  Derek Price  <derek@ximbiot.com>
78046             Paul Eggert  <eggert@cs.ucla.edu>
78047
78048         * lib/glob_.h, lib/glob.c: New files.
78049
78050 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78053         * modules/fts-lgpl (Depends-on): Remove gettext.
78054
78055 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78058         and don't require gt_INTTYPES_PRI.
78059
78060 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78063
78064         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78065         the configuration hassle isn't worth it.
78066         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78067         (LONGEST_MODIFIER, PRIuMAX): Remove.
78068
78069 2005-05-27  Bruno Haible  <bruno@clisp.org>
78070
78071         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78072
78073 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78076         _POSIX_PTHREAD_SEMANTICS for Solaris.
78077
78078 2005-05-25  Derek Price  <derek@ximbiot.com>
78079
78080         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78081
78082 2005-05-25  Derek Price  <derek@ximbiot.com>
78083             Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78086         * lib/getlogin_r.c, getlogin_r.h: New files.
78087
78088 2005-05-25  Bruno Haible  <bruno@clisp.org>
78089             Derek Price  <derek@ximbiot.com>
78090
78091         * lib/getlogin_r.h: Simplify API documentation.
78092
78093 2005-05-23  Derek Price  <derek@ximbiot.com>
78094
78095         * modules/minmax (Files): Add m4/minmax.m4.
78096         (configure.ac): Add gl_MINMAX.
78097
78098 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78101         so that unistd-safer.h (GPL'ed code) need not be included.
78102
78103 2005-05-22  Bruno Haible  <bruno@clisp.org>
78104
78105         * m4/minmax.m4: New file.
78106         Based on a patch by Derek Price <derek@ximbiot.com>.
78107
78108 2005-05-22  Bruno Haible  <bruno@clisp.org>
78109
78110         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78111         (INT64_MIN): Fix definition.
78112         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78113
78114         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78115         NEED_SIGNED_INT_TYPES.
78116
78117         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78118         HAVE_SYSTEM_INTTYPES.
78119
78120 2005-05-22  Bruno Haible  <bruno@clisp.org>
78121
78122         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78123         Also include <sys/param.h> if it defines MIN, MAX.
78124         Based on a patch by Derek Price <derek@ximbiot.com>.
78125
78126 2005-05-21  Jim Meyering  <jim@meyering.net>
78127
78128         * modules/fts (Files): Add m4/inttypes-pri.m4.
78129         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78130
78131 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         New fts module.
78134         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78135         (setup_dir, free_dir): New functions.
78136         (enter_dir, leave_dir): Define trivial
78137         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78138         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78139         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78140         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78141         Move to fts-cycle.c.
78142         (fts_open): Use setup_dir.
78143         (fts_close): Use free_dir.
78144         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78145         This adds a label and some gotos, but the alternatives were messier.
78146         Check for memory allocation failure when entering a dir.
78147         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78148         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78149         (FTS): New member fts_cycle, that is a union that contains the
78150         old active_dir_ht and cycle_state.  All uses changed to mention
78151         fts_cycle.ht and fts_cycle.state.
78152         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78153         fts.c, with the following changes:
78154         (setup_dir, free_dir): New functions.
78155         (enter_dir): Now returns bool.  Return true if successful, false
78156         if memory exhausted.  All callers changed.
78157         Do not bother partly cleaning up on
78158         memory allocation failure; that is free_dir's job.
78159         However, free ad if hash_insert fails, to avoid memory leak.
78160         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78161         fts->fts_options to see which union member to use.
78162
78163 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78166         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78167
78168 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78171
78172 2005-05-20  Jim Meyering  <jim@meyering.net>
78173
78174         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78175         Now a macro, to pacify GCC.
78176
78177 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78178
78179         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78180         of -1.
78181
78182 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78183
78184         * lib/chown.c (rpl_chown): Return -1 on failure.
78185
78186 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78187
78188         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78189         Don't check for stddef.h.
78190         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78191         don't use its results.
78192         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78193         since we include them unconditionally.  Don't require
78194         AM_STDBOOL_H, since stdbool is a prerequisite.
78195         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78196         since we assume C89 or better.
78197         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78198         as we don't use their results.
78199         Don't check for fchdir, memmove, memset, strrchr, as we use
78200         them unconditionally.
78201         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78202         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78203
78204 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78207         Include <stddef.h> unconditionally, since we assume C89 now.
78208         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78209         * lib/fts.c: Include fts_.h first, to check interface.
78210         Do not include intprops.h; no longer needed.
78211         Include cycle-check.h and hash.h, since fts_.h no longer does.
78212         Remove unnecessary casts of closedir to void.
78213         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78214         decide whether to decrement nlinks.
78215         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78216         (FTS): Use struct hash_table * instead of Hash_table, so that
78217         we no longer need to include hash.h here.
78218
78219 2005-05-18  Jim Meyering  <jim@meyering.net>
78220
78221         * modules/dirfd (License): Change to LGPL.  Most of the code
78222         is already in the public domain.
78223
78224 2005-05-18  Jim Meyering  <jim@meyering.net>
78225
78226         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78227         Reported by Yoann Vandoorselaere.
78228
78229 2005-05-17  Jim Meyering  <jim@meyering.net>
78230
78231         * m4/fts.m4: New file, from coreutils.
78232
78233 2005-05-17  Jim Meyering  <jim@meyering.net>
78234
78235         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78236
78237 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         Sync from coreutils.
78240         * m4/unlinkdir.m4: New file.
78241
78242 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         Sync from coreutils.
78245         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78246         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78247         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78248         White space changes only.
78249         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78250         special.
78251         * lib/yesno.c: Include getline.h, not ctype.h.
78252         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78253         Use getline to remove arbitrary restriction on response length.
78254
78255 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * config/srclist-update: Spell out "Street" in FSF postal
78258         mail address; this is the style the FSF seems to prefer.
78259
78260         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78261         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78262         this updates FSF postal mail address.
78263
78264         Sync from coreutils.
78265         * modules/unlinkdir: New file.
78266         * modules/yesno (Depends-on): Add getline.
78267         * MODULES.html.sh (File system functions): Add unlinkdir.
78268
78269 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78272         lib/strsep.h:
78273         Change the initial comment to refer to GPL, not LGPL.
78274         gnulib-tool will change it to LGPL as needed.
78275
78276         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78277         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78278         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78279         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78280         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78281         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78282         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78283         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78284         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78285         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78286         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78287         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78288         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78289         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78290         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78291         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78292         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78293         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78294         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78295         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78296         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78297         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78298         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78299         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78300         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78301         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78302         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78303         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78304         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78305         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78306         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78307         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78308         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78309         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78310         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78311         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78312         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78313         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78314         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78315         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78316         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78317         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78318         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78319         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78320         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78321         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78322         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78323         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78324         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78325         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78326         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78327         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78328         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78329         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78330         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78331         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78332         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78333         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78334         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78335         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78336         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78337         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78338         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78339         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78340         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78341         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78342         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78343         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78344         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78345         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78346         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78347         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78348         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78349         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78350         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78351         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78352         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78353         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78354         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78355         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78356         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78357         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78358         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78359         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78360         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78361         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78362         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78363         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78364         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78365         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78366         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78367         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78368         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78369         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78370         lib/yesno.c, lib/yesno.h:
78371         Update FSF postal mail address.
78372
78373 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78374
78375         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78376         tests/test-memmem.c, tests/test-stpncpy.c:
78377         Update FSF postal mail address.
78378
78379 2005-05-13  Bruno Haible  <bruno@clisp.org>
78380
78381         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78382         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78383         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78384         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78385         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78386         Add support for 64-bit integers in the MSVC compiler.
78387
78388 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78389
78390         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78391
78392 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78393
78394         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78395
78396 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * doc/getdate.texi (General date syntax): Don't say that date
78399         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78400         Problem reported by Nic Ferrier.
78401
78402 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78403
78404         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78405         specified in ai_socktype. Fix invalid ai_protocol
78406         check. ai_protocol is usually set to 0 or depending on
78407         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78408         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78409         ai_socktype / ai_protocol in the returned addrinfo structure.
78410
78411 2005-05-10  Simon Josefsson  <jas@extundo.com>
78412
78413         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78414         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78415
78416 2005-05-10  Karl Berry  <karl@gnu.org>
78417
78418         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78419         (from http://www.gnu.org/licenses).
78420         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78421         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78422         fdl.texi suffices.
78423
78424 2005-05-10  Karl Berry  <karl@gnu.org>
78425
78426         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78427         (COPYING.DOC): remove.
78428
78429         * config/srclist-update: new FSF address.
78430
78431 2005-05-10  Derek Price  <derek@ximbiot.com>
78432
78433         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78434         possible.
78435
78436 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78437             Bruno Haible  <bruno@clisp.org>
78438
78439         * modules/inet_ntop: New file.
78440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78441         inet_ntop.
78442
78443 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78444             Bruno Haible  <bruno@clisp.org>
78445
78446         * m4/inet_ntop.m4: New file.
78447
78448 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78449             Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/inet_ntop.h: New file.
78452         * lib/inet_ntop.c: New file, from glibc with modifications.
78453
78454 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78455
78456         * modules/time_r (License): Change to LGPL.
78457         * modules/extensions (License): Change to LGPL.  Actually,
78458         the license is more permissive than that, but currently gnulib-tool
78459         doesn't know how to handle more-permissive licenses.
78460
78461         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78462         Problem reported by Dave Love.
78463
78464 2005-05-08  Jim Meyering  <jim@meyering.net>
78465
78466         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78467         blank.
78468
78469 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * modules/argmatch (Depends-on): Add stdbool.
78472         * modules/backupfile (Depends-on): Likewise.
78473         * modules/chdir-long (Depends-on): Likewise.
78474         * modules/closeout (Depends-on): Likewise.
78475         * modules/cycle-check (Depends-on): Likewise.
78476         * modules/dirname (Depends-on): Likewise.
78477         * modules/fnmatch (Depends-on): Likewise.
78478         * modules/fsusage (Depends-on): Likewise.
78479         * modules/fwriteerror (Depends-on): Likewise.
78480         * modules/getcwd (Depends-on): Likewise.
78481         * modules/getloadavg (Depends-on): Likewise.
78482         * modules/hard-locale (Depends-on): Likewise.
78483         * modules/makepath (Depends-on): Likewise.
78484         * modules/mountlist (Depends-on): Likewise.
78485         * modules/nanosleep (Depends-on): Likewise.
78486         * modules/posixtm (Depends-on): Likewise.
78487         * modules/quotearg (Depends-on): Likewise.
78488         * modules/readtokens (Depends-on): Likewise.
78489         * modules/readtokens0 (Depends-on): Likewise.
78490         * modules/readutmp (Depends-on): Likewise.
78491         * modules/save-cwd (Depends-on): Likewise.
78492         * modules/strftime (Depends-on): Likewise.
78493         * modules/userspec (Depends-on): Likewise.
78494         * modules/utimecmp (Depends-on): Likewise.
78495         * modules/xgetcwd (Depends-on): Likewise.
78496         * modules/xnanosleep (Depends-on): Likewise.
78497         * modules/xstrtod (Depends-on): Likewise.
78498         * modules/yesno (Depends-on): Likewise.
78499
78500 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78503         needless checks.
78504
78505 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         Merge from coreutils.  Among other things,
78508         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78509         * lib/fd-safer.c: New file.
78510         * lib/fcntl-safer.h, open-safer.c: Remove.
78511         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78512         * lib/dup-safer.c: Include unistd-safer.h first.
78513         Don't include errno.h.
78514         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78515         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78516         * lib/file-type.c: Rely on file-type.h change.
78517         * lib/getloadavg.c: Include unistd-safer.h.
78518         (getloadavg): Use safer open.
78519         * lib/getusershell.c: Include "stdio-safer.h".
78520         (getusershell): Use safer fopen.
78521         * lib/long-options.c (long_options): Use NULL rather than 0.
78522         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78523         'free'.
78524         * lib/modechange.c: Likewise.
78525         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78526         (MODE_DONE): New constant.
78527         (struct mode_change): Remove 'next' member.
78528         (make_node_op_equals): New function; like the old one of the
78529         same name, except it allocates an array.
78530         (mode_compile, mode_create_from_ref): Use it.
78531         (mode_compile): Allocate result as an array, not a linked list.
78532         Parse octal string ourself, so that we catch mistakes like "+0".
78533         (mode_adjust): Arg is an array, not a linked list.
78534         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78535         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78536         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78537         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78538         Remove.  This is now stat-macros.h's job.
78539         (talloc): Remove.  All callers replaced by xalloc, so that
78540         our invokers don't have to worry about reporting memory failures.
78541         (make_node_op_equals): Remove.
78542         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78543         New constants.
78544         (struct mode_change): Moved here from modechange.h.
78545         (mode_append_entry): Remove.
78546         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78547         apps to have incorrect behavior.  Use simpler algorithm for head
78548         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78549         Detect more invalid usages rather than having somewhat-random behavior.
78550         Don't insert an "a=" action, as that leads to incorrect behavior.
78551         (mode_compile, mode_create_from_ref): Return NULL on error instead
78552         of an enum, since now there's only one way to have an error.  All
78553         callers changed.
78554         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78555         at the correct time.  Simplify calculation of "+u" and its ilk.
78556         Don't mishandle "+X".
78557         (mode_free): Remove "register" and localize decls.
78558         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78559         (struct mode_change): Move to modechange.c; callers don't
78560         need to see this stuff.
78561         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78562         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78563         (mode_change, mode_adjust): Reflect the new signatures noted above.
78564         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78565         that might redefine system include files.
78566         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78567         (my_usleep): Use NULL rather than (void *) 0.
78568         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78569         Use siginterrupt to specify that system calls should be interrupted.
78570         (rpl_nanosleep): Move initialization of suspended closer to call of
78571         my_usleep.
78572         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78573         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78574         (desirable_utmp_entry): New function.
78575         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78576         using x2nrealloc, to simplify logic.
78577         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78578         size calculation.  Do not assume utmp file is a regular file.
78579         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78580         (READ_UTMP_CHECK_PIDS): New constant.
78581         * lib/save-cwd.c: Include unistd-safer.h.
78582         (save_cwd): Use fd_safer.
78583         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78584         [!_LIBC] Include "stat-macros.h" instead.
78585         * lib/unistd-safer.h (fd_safer): New decl.
78586
78587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * modules/getloadavg (Depends-on): Add unistd-safer.
78590         * modules/getusershell (Depends-on): Add stdio-safer.
78591         * modules/lstat (Depends-on): Remove xalloc.
78592         * modules/mkstemp (Depends-on): Add stat-macros.
78593         * modules/modechange (Depends-on): Remove xstrtol.
78594         Add stat-macros, xalloc.
78595         * modules/save-cwd (Depends-on): Add unistd-safer.
78596         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78597         * modules/unistd-safer (Files): Add lib/fd-safer.c
78598         (Makefile.am): Remove lib_SOURCES.
78599
78600         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78601         Remove fcntl-safer; unistd-safer supersedes it.
78602
78603 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78606         AC_HEADER_STAT.
78607         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78608         (gl_PREREQ_CHOWN): Remove.
78609         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78610         it.  Don't require AC_HEADER_STAT.
78611         (gl_PREREQ_LSTAT): Remove.
78612         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78613         Don't require AC_HEADER_STAT.
78614         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78615         (gl_PREREQ_RMDIR): Remove.
78616         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78617         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78618         the stat-macros module a prerequisite.
78619         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78620         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78621         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78622         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78623         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78624         variable names.
78625         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78626         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78627         variable prefixes.
78628         * m4/fcntl-safer.m4: Remove.
78629         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78630         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78631         Invoke gl_PREREQ_FD_SAFER.
78632         (gl_PREREQ_FD_SAFER): New macro.
78633         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78634         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78635         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78636         Remove duplicate call to AC_LIBOBJ(readutmp).
78637         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78638
78639         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78640         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78641
78642 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * MODULES.html.sh (Misc): Add byteswap.
78645
78646 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78647
78648         * modules/getcwd (Depends-on): Add extensions.
78649         * modules/openat (Depends-on): Likewise.
78650
78651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78652
78653         * modules/byteswap: New file.
78654
78655 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78656
78657         * m4/byteswap.m4: New file.
78658
78659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78660
78661         * lib/byteswap_.h: New file.
78662
78663 2005-04-25  Karl Berry  <karl@gnu.org>
78664
78665         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78666
78667 2005-04-25  Albert Chin  <china@thewrittenword.com>
78668
78669         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78670         Toolkit C bug.
78671
78672 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78673
78674         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78675         (func_ln_if_changed): Remove forcibly for no error message
78676         in case file does not exist.
78677
78678 2005-04-19  Simon Josefsson  <jas@extundo.com>
78679
78680         * gnulib-tool (Options): Make --symlink mean --symbolic.
78681
78682 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78683
78684         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78685
78686 2005-04-16  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78689
78690 2005-04-15  Simon Josefsson  <jas@extundo.com>
78691
78692         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78693
78694 2005-04-15  Simon Josefsson  <jas@extundo.com>
78695
78696         * gnulib-tool: Rename --symlink to --symbolic.
78697
78698 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78699
78700         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78701         symbolic links to files instead of copying/moving.  Add --aux-dir,
78702         specifying directory relative --dir where auxiliary build tools
78703         are placed.
78704
78705 2005-04-14  Bruno Haible  <bruno@clisp.org>
78706
78707         * modules/allocsa (License): Change to LGPL.
78708         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78709
78710 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78713         that "UTC +1 second" continues to work.  Problem reported
78714         by Dmitry V. Levin.
78715         (relunit_snumber): New rule.
78716         (relunit): Use it.
78717
78718 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78719
78720         * lib/getdate.y (universal_time_zone_table): New constant.
78721         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78722         universal_time_zone_table.
78723         (lookup_zone): Prefer universal_time_zone_table to
78724         local_time_zone_table, so that "GMT" time stamps are allowed in
78725         London during the summer.  Problem reported by Ian Abbott.
78726
78727 2005-04-12  Jim Meyering  <jim@meyering.net>
78728
78729         * lib/human.c (humblock): Set *options even when returning due to
78730         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78731         warning from gcc-4.
78732
78733 2005-04-09  Jim Meyering  <jim@meyering.net>
78734
78735         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78736         -Wuninitialized: initialize tm0.tm_year.
78737
78738 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78741         count, since there's no maximum.  All uses changed.
78742         Add member dsts_seen.
78743         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78744         not being INT_MAX.
78745         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78746         Use pc_rels_seen to decide whther a date is absolute.
78747
78748         * lib/getdate.y (number): Don't overwrite year.
78749         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78750         check.
78751
78752 2005-04-02  Simon Josefsson  <jas@extundo.com>
78753
78754         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78755         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78756
78757 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78758
78759         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78760         where no absolute path name can be longer than PATH_MAX.
78761
78762 2005-03-27  Jim Meyering  <jim@meyering.net>
78763
78764         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78765
78766 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78769         "one's complement" -> "ones' complement" in comment, as per Knuth.
78770         "value of type" -> "type or expression" in comment.
78771         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78772
78773 2005-03-26  Jim Meyering  <jim@meyering.net>
78774
78775         Comment nits.
78776         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78777         Correct typos: s/or/of/.
78778
78779 2005-03-26  Jim Meyering  <jim@meyering.net>
78780
78781         * modules/check-include-files: Move to ../ and rename to...
78782         * check-module: ...this.
78783
78784 2005-03-25  Jim Meyering  <jim@meyering.net>
78785
78786         * modules/xvasprintf (Files): Add xalloc.h.
78787
78788 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78789
78790         * modules/gettext (Files): config/config.rpath ->
78791         build-aux/config.rpath
78792         * modules/iconv (Files): Likewise.
78793         Problem reported by Oskar Liljeblad.
78794
78795 2005-03-23  Jim Meyering  <jim@meyering.net>
78796
78797         * modules/check-include-files: New script to check for
78798         missing dependencies, multiple includes, etc.
78799
78800         * modules/c-strtold (Depends-on): Add xalloc.
78801         * modules/c-strtod (Depends-on): Add xalloc.
78802         * modules/hash (Depends-on): Add xalloc.
78803         (Files): Remove lib/xalloc.h.
78804
78805         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78806         * modules/userspec (Files): Add lib/inttostr.h.
78807
78808 2005-03-23  Jim Meyering  <jim@meyering.net>
78809
78810         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78811
78812 2005-03-22  Jim Meyering  <jim@meyering.net>
78813
78814         * modules/stat-macros: New module.
78815         * modules/canonicalize, modules/euidaccess, modules/file-type,
78816         * modules/filemode, modules/lchown, modules/makepath,
78817         * modules/rmdir, modules/stat: Depend on new stat-macros module
78818         rather than listing lib/stat-macros.h manually.
78819         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78820
78821 2005-03-22  Jim Meyering  <jim@meyering.net>
78822
78823         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78824
78825 2005-03-22  Bruno Haible  <bruno@clisp.org>
78826
78827         * config/srclist.txt: Replace target directory 'config' with
78828         'build-aux'.
78829         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78830         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78831         ../build-aux/.
78832
78833 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * modules/chdir-long (Depends-on): Add mempcpy.
78836
78837         * modules/acl, modules/backupfile, modules/c-strtod,
78838         modules/c-strtold, modules/canon-host, modules/canonicalize,
78839         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78840         modules/exclude, modules/exitfail, modules/file-type,
78841         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78842         modules/getdate, modules/getline, modules/getpagesize,
78843         modules/getpass, modules/getugroups, modules/group-member,
78844         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78845         modules/inttostr, modules/long-options, modules/makepath,
78846         modules/md5, modules/memcasecmp, modules/memcoll,
78847         modules/modechange, modules/mountlist, modules/path-concat,
78848         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78849         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78850         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78851         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78852         modules/strftime, modules/strndup, modules/strverscmp,
78853         modules/timespec, modules/unlocked-io, modules/userspec,
78854         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78855         modules/yesno:
78856         Remove lib_SOURCES line from Makefile.am section, as this is now
78857         done automatically by the corresponding Autoconf macro.
78858
78859 2005-03-21  Jim Meyering  <jim@meyering.net>
78860
78861         Changes imported from coreutils.
78862
78863         * lib/cycle-check.c: Don't include xalloc.h.
78864
78865         * lib/path-concat.c: Don't include assert.h.
78866         (path_concat): Remove assertion that would have triggered
78867         for ABASE starting with more than one slash.
78868         Reported by Andreas Schwab.
78869
78870         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78871         properly when ABASE is an absolute file name.
78872         Correct the description of this function.
78873         Include <assert.h>.
78874         Add an assertion and a test driver.
78875         This fixes a bug introduced on 2004-07-02.
78876         Andreas Schwab reported the resulting failure of cp --parents:
78877         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78878
78879 2005-03-21  Jim Meyering  <jim@meyering.net>
78880
78881         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78883
78884 2005-03-21  Jim Meyering  <jim@meyering.net>
78885         and  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78888         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78889         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78890         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78891         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78892         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78893         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78894         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78895         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78896         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78897         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78898         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78899         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78900         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78901         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78902         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78903         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78904         for these modules.
78905
78906 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78909         (which shouldn't happen), generate nothing instead of returning 0
78910         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78911
78912 2005-03-16  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78915         HAVE_LONGLONG_64BIT.
78916
78917 2005-03-16  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78920         HAVE_LONGLONG_64BIT.
78921
78922 2005-03-16  Bruno Haible  <bruno@clisp.org>
78923
78924         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78925         HAVE_LONGLONG_64BIT.
78926
78927 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78930         reliably distinguish strftime failure from empty output on POSIX
78931         hosts.
78932
78933 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78934
78935         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78936         (iconv_string): Don't guess a size-zero buffer, as that might cause
78937         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78938         result would be 'too large', where 'too large' is (heuristically)
78939         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78940         overflow concerns.  This will prevent some unwanted malloc failures
78941         when the inputs are very large.
78942
78943 2005-03-15  Karl Berry  <karl@gnu.org>
78944
78945         * config/srclist.txt (config.rpath): from gettext.
78946         * config/config.rpath: update.
78947
78948 2005-03-15  Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78951         to 'negate'.
78952
78953         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78954         variable.
78955
78956         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78957         results.
78958
78959 2005-03-14  Simon Josefsson  <jas@extundo.com>
78960
78961         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78962         <fx@gnu.org>.
78963
78964 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78967         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78968         intprops.h.
78969         * lib/strtol.c: Likewise.
78970
78971 2005-03-14  Jim Meyering  <jim@meyering.net>
78972
78973         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78974         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78975         to be nonzero so that we (and caller) can detect the difference
78976         between a valid zero-length expansion and an error return, even
78977         when the underlying strftime fails before writing anything into
78978         that location.
78979
78980 2005-03-14  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78983         Update from GNU gettext 0.14.3.
78984
78985 2005-03-10  Jim Meyering  <jim@meyering.net>
78986
78987         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78988
78989 2005-03-10  Jim Meyering  <jim@meyering.net>
78990
78991         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78992         so that this module works on systems without fchdir.
78993
78994 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         Factor int-properties macros into a single file, except for
78997         glibc-related files.
78998         * lib/intprops.h: New file.
78999         * lib/getloadavg.c: Include it instead of limits.h.
79000         (INT_STRLEN_BOUND): Remove.
79001         * lib/human.c: Include intprops.h.
79002         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79003         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79004         302/1000.
79005         * lib/inttostr.h: Include intprops.h instead of limits.h.
79006         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79007         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79008         for consistency with intprops.h.
79009         (time_t_is_integer, twos_complement_arithmetic): Use them.
79010         * lib/sig2str.h: Include <signal.h>, intprops.h.
79011         (INT_STRLEN_BOUND): Remove.
79012         * lib/strftime.c (TYPE_SIGNED): Remove.
79013         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79014         * lib/strtol.c: Adjust comments to match intprops.h.
79015         * lib/userspec.c: Include intprops.h.
79016         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79017         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79018         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79019         instead of rolling our own expressions.
79020         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79021
79022         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79023         instead of int.
79024         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79025         the right thing even if adding 1900 would overflow.  Similarly
79026         for tm_mon + 1 and tm_yday + 1.
79027         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79028         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79029         (DO_SIGNED_NUMBER): New macro.
79030         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79031
79032 2005-03-07  Bruno Haible  <bruno@clisp.org>
79033
79034         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79035
79036 2005-03-07  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79039
79040 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79041
79042         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79043         (func_import): Only replace files via --import when they have actually
79044         changed.
79045
79046 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79047
79048         * m4/mmap-anon.m4: New file.
79049         * m4/pagealign_alloc.m4: New file.
79050
79051 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79052             Bruno Haible  <bruno@clisp.org>
79053
79054         * modules/pagealign_alloc: New file.
79055         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79056
79057 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79058             Bruno Haible  <bruno@clisp.org>
79059
79060         * lib/pagealign_alloc.h: New file.
79061         * lib/pagealign_alloc.c: New file.
79062
79063 2005-03-03  Bruno Haible  <bruno@clisp.org>
79064
79065         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79066         Use an all-permissive copyright notice, recommended by RMS.
79067
79068 2005-03-02  Bruno Haible  <bruno@clisp.org>
79069
79070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79071         of AIX, the replacement has to be done only after <string.h> is
79072         included, therefore not in config.h. stpncpy.h does the replacement,
79073         and stpncpy.c uses it.
79074
79075 2005-03-02  Bruno Haible  <bruno@clisp.org>
79076
79077         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79078         stpncpy.c uses it.
79079
79080 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79083         The workaround isn't strictly needed for POSIX conformance, and
79084         it's too much of a pain to configure and maintain.  We'll ask
79085         people to fix their kernels instead.
79086         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79087         (NANOSLEEP_BUG_WORKAROUND): Remove.
79088         (xnanosleep): Remove the workaround.
79089
79090 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79093         Reported by Derek Price.
79094         (Include): Add "timespec.h".
79095
79096         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79097
79098 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79101         to detect nanosleep bug.
79102
79103 2005-03-01  Bruno Haible  <bruno@clisp.org>
79104
79105         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79106
79107 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * modules/gethrxtime: New file.
79110         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79111         (Depends-on): Add gethrxtime.
79112         (configure.ac): Add gl_XNANOSLEEP.
79113         (Makefile.am): Remove lib_SOURCES line.
79114
79115 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79118         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79119
79120 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79123         * lib/timespec.h (gettime): Return void, since it always
79124         succeeds now.  All uses changed.
79125         * lib/gettime.c (gettime): Likewise.
79126         [HAVE_NANOTIME]: Prefer nanotime.
79127         Assume gettimeofday succeeds, as POSIX requires.
79128         Assime time () succeeds, since other code already does.
79129         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79130         (timespec_subtract): Remove.
79131         (NANOSLEEP_BUG_WORKAROUND): New constant.
79132         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79133         things considerably.  Use it only on GNU/Linux hosts, since the
79134         workaround shouldn't be needed elsewhere.
79135
79136 2005-02-24  Bruno Haible  <bruno@clisp.org>
79137
79138         * modules/gettext (Files): Add m4/glibc2.m4.
79139
79140 2005-02-24  Bruno Haible  <bruno@clisp.org>
79141
79142         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79143         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79144         * m4/progtest.m4:
79145         Update from GNU gettext 0.14.2.
79146         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79147
79148 2005-02-24  Bruno Haible  <bruno@clisp.org>
79149
79150         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79151         * lib/config.charset: Update from GNU gettext 0.14.2.
79152
79153 2005-02-24  Bruno Haible  <bruno@clisp.org>
79154
79155         * lib/gettext.h: Update from GNU gettext 0.14.2.
79156
79157 2005-02-23  Simon Josefsson  <jas@extundo.com>
79158
79159         * m4/iconvme.m4: New file.
79160
79161 2005-02-23  Jim Meyering  <jim@meyering.net>
79162
79163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79164         change.
79165         Thanks to Bruno Haible for catching it.
79166
79167 2005-02-22  Simon Josefsson  <jas@extundo.com>
79168
79169         * modules/iconvme: New file.
79170
79171         * MODULES.html.sh: Add iconvme.
79172
79173 2005-02-22  Simon Josefsson  <jas@extundo.com>
79174
79175         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79176
79177 2005-02-22  Simon Josefsson  <jas@extundo.com>
79178
79179         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79180
79181 2005-02-22  Jim Meyering  <jim@meyering.net>
79182
79183         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79184         s/ifndef/ifdef/.
79185
79186 2005-02-20  Neil Conway  <neilc@samurai.com>
79187
79188         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79189         returned by OSX/Darwin if the specified buffer is not large
79190         enough for the hostname.
79191
79192 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79193
79194         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79195         pass it to _help, otherwise the latter coredumps trying to
79196         dereference state.root_argp.
79197
79198 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * modules/chdir-long (Depends-on): Add memrchr.
79201         * modules/memrchr (Files): Add lib/memrchr.h.
79202         (Include): "memrchr.h".
79203
79204 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79207
79208 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * lib/memrchr.h: New file.
79211         * lib/chdir-long.c: Include it.
79212         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79213         Don't bother including stddef.h.
79214
79215 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79218         inclusion.
79219         Include <sys/types.h>, for dev_t.
79220         (ME_DUMMY, ME_REMOTE): Move from here....
79221         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79222         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79223         Dmitry V. Levin.
79224         Include mountlist.h first, to test the interface.
79225
79226 2005-01-29  Bruno Haible  <bruno@clisp.org>
79227
79228         * lib/progname.c (program_name): Initialize.
79229         Needed when linking statically on MacOS X.
79230
79231 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79232
79233         Sync from coreutils.
79234         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79235         (Depends-on): Add c-strtod.
79236         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79237
79238 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         Sync from coreutils.
79241         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79242
79243         Remove files that are specific to coreutils.
79244         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79245
79246 2005-01-28  Bruno Haible  <bruno@clisp.org>
79247
79248         * modules/javacomp: New file.
79249         * MODULES.html.sh (Java): Add javacomp.
79250
79251 2005-01-28  Bruno Haible  <bruno@clisp.org>
79252
79253         * m4/javacomp.m4: New file, from GNU gettext.
79254
79255 2005-01-28  Bruno Haible  <bruno@clisp.org>
79256
79257         * lib/javacomp.sh.in: New file, from GNU gettext.
79258         * lib/javacomp.h: New file, from GNU gettext.
79259         * lib/javacomp.c: New file, from GNU gettext.
79260
79261 2005-01-26  Simon Josefsson  <jas@extundo.com>
79262
79263         * lib/gai_strerror.c: Use GPL in header.
79264
79265 2005-01-26  Bruno Haible  <bruno@clisp.org>
79266
79267         * modules/javaexec: New file.
79268         * MODULES.html.sh (Java): Add javaexec.
79269
79270 2005-01-26  Bruno Haible  <bruno@clisp.org>
79271
79272         * m4/javaexec.m4: New file, from GNU gettext.
79273
79274 2005-01-26  Bruno Haible  <bruno@clisp.org>
79275
79276         * lib/javaexec.sh.in: New file, from GNU gettext.
79277         * lib/javaexec.h: New file, from GNU gettext.
79278         * lib/javaexec.c: New file, from GNU gettext.
79279
79280 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79281
79282         * modules/lchown (Depends-on): Remove lchown.h
79283
79284 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79285
79286         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79287         must be defined if the header file was not found, in order
79288         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79289
79290 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79291
79292         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79293         initializers for struct pentry_state.
79294         (__argp_error): Check return value of __asprintf
79295         (__argp_failure): Translate error message
79296
79297         * lib/argp-parse.c: Removed braces around the expansion of N_()
79298
79299 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79302         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79303         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79304         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79305         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79306         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79307         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79308         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79309         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79310         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79311         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79312         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79313         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79314         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79315         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79316         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79317         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79318         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79319         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79320         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79321         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79322         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79323         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79324         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79325         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79326         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79327         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79328         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79329         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79330         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79331         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79332         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79333         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79334         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79335         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79336         Use an all-permissive copyright notice, recommended by RMS.
79337
79338 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * modules/chdir-long (Depends-on): Remove mempcpy.
79341
79342 2005-01-21  Jim Meyering  <jim@meyering.net>
79343
79344         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79345         same value as for Solaris 9.
79346
79347         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79348         component length.  This included changing the parameter to be
79349         of type `char *' rather than `char const *'.
79350         * lib/chdir-long.h (chdir_long): Update prototype.
79351
79352         * lib/openat.c (fdopendir, fstatat): New functions.
79353         * lib/openat.h: Include headers required for use of DIR and struct
79354         stat.
79355         [AT_SYMLINK_NOFOLLOW]: Define.
79356         (fdopendir, fstatat): Add prototypes.
79357
79358 2005-01-21  Bruno Haible  <bruno@clisp.org>
79359
79360         * modules/classpath: New file.
79361         * MODULES.html.sh (Java): Add classpath.
79362
79363 2005-01-21  Bruno Haible  <bruno@clisp.org>
79364
79365         * lib/classpath.h: New file, from GNU gettext.
79366         * lib/classpath.c: New file, from GNU gettext.
79367
79368 2005-01-20  Simon Josefsson  <jas@extundo.com>
79369
79370         * modules/version-etc-fsf: New file.
79371
79372 2005-01-20  Simon Josefsson  <jas@extundo.com>
79373
79374         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79375         * lib/version-etc.c: Remove version_etc_copyright.
79376         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79377         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79378
79379 2005-01-20  Simon Josefsson  <jas@extundo.com>
79380
79381         * lib/base64.h (isbase64): Add.
79382
79383         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79384         using a unsigned prototype, don't inline.
79385         (base64_decode): Use it.
79386
79387 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79390         it.
79391
79392 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * lib/save-cwd.c (save_cwd): Remove code to support the case
79395         where fchdir is missing or flaky.
79396
79397 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79400
79401 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79404         AC_LIBSOURCES now does this.
79405         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79406         with new ullong_max module.
79407
79408 2005-01-19  Bruno Haible  <bruno@clisp.org>
79409
79410         * modules/sh-quote: New file.
79411         * MODULES.html.sh (Executing programs): Add sh-quote.
79412
79413 2005-01-19  Bruno Haible  <bruno@clisp.org>
79414
79415         * lib/sh-quote.h: New file, from GNU gettext.
79416         * lib/sh-quote.c: New file, from GNU gettext.
79417
79418 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         Merge from coreutils.
79421         * m4/ullong_max.m4: New file.
79422         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79423         (gl_MACROS): Assume localeconv exists.
79424
79425 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         Merge changes from coreutils, as described below in several
79428         changelogs dated today.
79429
79430         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79431         (O_DIRECTORY): Remove; not needed here, since "." must be
79432         a directory.  All uses removed.
79433         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79434         universal on Suns, and we also need to test for IRIX.
79435         Revamp code to use 'if' rather than '#if'.
79436         Avoid unnecessary comparison of cwd->desc to 0.
79437
79438         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79439         for known valid error numbers rather than observed invalid ones.
79440
79441 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         * modules/ullong_max: New file.
79444
79445         * modules/chdir-long, modules/openat: New files.
79446         * modules/save-cwd (Depends-on): Depend on chdir-long.
79447         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79448
79449 2005-01-18  Jim Meyering  <jim@meyering.net>
79450
79451         Merge from coreutils.
79452         * m4/chdir-long.m4, m4/openat.m4: New files.
79453         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79454         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79455         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79456         is sane and DOES follow symlinks.  Besides, testing 20 different
79457         systems found no broken chown implementations.
79458         Prompted by a change in rsync's copy of this macro.
79459         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79460
79461         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79462
79463         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79464         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79465         NULL-means-set-to-current-time semantics.
79466         Remove temporary file immediately, rather than waiting
79467         for configure's at-exit trap code to do it.
79468
79469 2005-01-18  Jim Meyering  <jim@meyering.net>
79470
79471         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79472
79473         * lib/utimens.c (futimens): Account for the fact that futimes
79474         can also fail with errno == ENOSYS or errno == ENOENT.
79475         Patch from Dmitry V. Levin.
79476
79477         Change the name of the robust chdir function from chdir to chdir_long.
79478         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79479         (restore_cwd): Use chdir_long, not chdir.
79480         * lib/chdir-long.c: Renamed from chdir.c.
79481         * lib/chdir-long.h: Renamed from chdir.h.
79482         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79483         Hurd.
79484
79485 2005-01-18  Bruno Haible  <bruno@clisp.org>
79486
79487         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79488         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79489         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79490         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79491         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79492         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79493         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79494         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79495         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79496         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79497         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79498         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79499         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79500         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79501         Use an all-permissive copyright notice, recommended by RMS.
79502
79503 2005-01-18  Bob Proulx  <bob@proulx.com>
79504
79505         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79506         simplify offsetof() macro construct to avoid compile failure with
79507         native HP-UX 11.0 ANSI C compiler.
79508
79509 2005-01-17  Bruno Haible  <bruno@clisp.org>
79510
79511         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79512         redundant because stpncpy.m4 takes care of it.
79513
79514 2005-01-17  Bruno Haible  <bruno@clisp.org>
79515
79516         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79517
79518 2005-01-17  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79521         used.
79522
79523 2005-01-17  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/fwriteerror.h (fwriteerror): Change specification to include
79526         fclose.
79527         * lib/fwriteerror.c: Include <stdbool.h>.
79528         (fwriteerror): At the end, close the file stream. Record whether
79529         stdout was already closed.
79530
79531 2005-01-17  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/execute.c (environ): Declare if needed.
79534         * lib/pipe.c (environ): Likewise.
79535         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79536
79537 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79538
79539         * modules/argp: Depend on vsnprintf
79540
79541 2005-01-10  Jim Meyering  <jim@meyering.net>
79542
79543         * modules/closeout (Depends-on): Add atexit.
79544
79545 2005-01-06  Bruno Haible  <bruno@clisp.org>
79546
79547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79548
79549 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79552         definitions to be after all include files, to avoid collisions.
79553         Problem reported by Bob Proulx.
79554
79555 2005-01-04  Jim Meyering  <jim@meyering.net>
79556
79557         Changes imported from coreutils.
79558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79559         as the mkstemp template, use a temporary directory and an
79560         8.3-friendly template to avoid trouble on systems like DJGPP.
79561         Reported by Juan M. Guerrero via Stepan Kasal.
79562         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79563         close. Remove the temporary directory right away, rather than waiting
79564         for configure's at-exit trap code to do it.
79565         Suggestion from Stepan Kasal.
79566
79567 2005-01-01  Simon Josefsson  <jas@extundo.com>
79568
79569         * gnulib-tool: Print #include directives when --import'ing.
79570
79571 2004-12-28  Simon Josefsson  <jas@extundo.com>
79572
79573         * tests/test-base64.c: Include required header files.  Remove
79574         unused variables.
79575
79576 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * modules/error (Depends-on): Remove gettext.
79579
79580 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79583         not needed.  This removes a dependency on the gettext module.
79584         [defined _LIBC]: Do not include <libintl.h>; not needed.
79585
79586 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79589         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79590
79591 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79594         HAVE_DECL_STRTOLD.
79595
79596 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         * modules/getdate (Depends-on): Remove alloca-opt.
79599
79600 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79603
79604 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/argp-parse.c: Include <stddef.h>.
79607         (alignof, alignto): New macros.
79608         (parser_init): Don't assume that void * is aligned sufficiently
79609         for struct option.
79610
79611         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79612         need to extend the stack.
79613         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79614         large.
79615
79616 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79617
79618         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79619
79620 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79623         (2004-10-24) change.  Apparently this was a false alarm.
79624
79625         * modules/getdate: Depend on alloca-opt, not alloca.
79626
79627 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79630         Remove now-obsolete comment about AIX.
79631         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79632         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79633         (YYMAXDEPTH): New macro.
79634
79635 2004-12-18  Simon Josefsson  <jas@extundo.com>
79636
79637         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79638
79639 2004-12-18  Bruno Haible  <bruno@clisp.org>
79640
79641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79642
79643 2004-12-18  Bruno Haible  <bruno@clisp.org>
79644
79645         * lib/fatal-signal.c (fatal_signals): Make non-const.
79646         (init_fatal_signals): New function.
79647         (uninstall_handlers, install_handlers): Ignore signals that were set to
79648         SIG_IGN.
79649         (at_fatal_signal): Call init_fatal_signals.
79650         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79651         SIG_IGN.
79652         Reported by Paul Eggert.
79653
79654 2004-12-18  Bruno Haible  <bruno@clisp.org>
79655
79656         * doc/alloca.texi: New file.
79657         * doc/alloca-opt.texi: New file.
79658
79659 2004-12-17  Jim Meyering  <jim@meyering.net>
79660
79661         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79662         Otherwise, install-sh could exit with improper exit status when
79663         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79664
79665 2004-12-16  Simon Josefsson  <jas@extundo.com>
79666
79667         * tests/test-base64.c: Add license.
79668
79669 2004-12-15  Stepan Kasal  <address@hidden>
79670
79671         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79672
79673 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * modules/getcwd (Files): Add m4/d-ino.m4.
79676         Suggested by Mark D. Baushke.
79677
79678 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * lib/getdate.y (textint): New member "negative".
79681         (time_zone_hhmm): New function.
79682         Expect 14 shift-reduce conflicts, not 13.
79683         (o_colon_minutes): New rule.
79684         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79685         (yylex): Set the "negative" member of signed numbers.
79686
79687 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * doc/getdate.texi (Time of day items, Time zone items):
79690         Describe new formats +00:00, UTC+00:00.
79691
79692 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79695         spurious "-l"s.  Problem reported by Stepan Kasal.
79696
79697 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79700         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79701
79702 2004-12-04  Simon Josefsson  <jas@extundo.com>
79703
79704         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79705         Vandoorselaere <yoann@prelude-ids.org>.
79706
79707 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         Changes imported from coreutils.
79710         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79711         exist.
79712         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79713
79714 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         Changes imported from coreutils.
79717         * lib/hard-locale.c: Assume <locale.h> exists.
79718         Include "strdup.h".
79719         (GLIBC_VERSION): New macro.
79720         (hard_locale): Assume setlocale exists.
79721         Rewrite to avoid #ifdef.
79722         Use strdup rather than malloc + strcpy.
79723         * lib/human.c: Assume <locale.h> exists.
79724         (human_readable): Assume localeconv exists.
79725
79726 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * modules/hard-locale (Depends-on): Add strdup.
79729
79730 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79731
79732         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79733         convert T2, not T.  (Imported from libc.)
79734
79735 2004-11-30  Simon Josefsson  <jas@extundo.com>
79736
79737         * modules/restrict (License): Change to LGPL.
79738
79739 2004-11-30  Simon Josefsson  <jas@extundo.com>
79740
79741         * m4/restrict.m4: Add copyright and copying conditions.
79742
79743 2004-11-30  Simon Josefsson  <jas@extundo.com>
79744
79745         * m4/base64.m4: New file.
79746
79747 2004-11-30  Simon Josefsson  <jas@extundo.com>
79748
79749         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79750         base64.
79751
79752         * tests/test-base64.c: New file.
79753
79754         * modules/base64: New file.
79755
79756 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79757
79758         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79759         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79760
79761         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79762
79763 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79766         (__getcwd.c): Don't restore errno; glibc doesn't.
79767         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79768         first, falling back to our code only if its results look suspicious.
79769         Ensure that the resulting buffer is only as large as necessary.
79770
79771         * lib/readutmp.c: Include readutmp.h first.
79772         Include <errno.h>, since readutmp.h no longer does that.
79773         * lib/readutmp.h: Don't include <errno.h>,
79774         <sys/param.h>, <time.h>; not needed to establish interface.
79775         (errno): Remove decl.
79776         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79777         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79778         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79779
79780 2004-11-28  Simon Josefsson  <jas@extundo.com>
79781
79782         * lib/base64.h, base64.c: New file.
79783
79784 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79787
79788 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79791         (Depends-on): Remove pathmax, same.  Add mempcpy.
79792         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79793         (Makefile.am): Append getcwd.h to lib_SOURCES.
79794         (Include): Add getcwd.h.
79795         (Maintainer): Change from Jim Meyering to "all, glibc",
79796         since getdate now uses intended-for-glibc code.
79797         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79798         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79799
79800 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79803         HP's ANSI C compiler.
79804         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79805         Declaring int functions causes warnings on some modern systems and
79806         shouldn't be needed to compile on ancient ones.
79807         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79808         defined.
79809
79810         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79811         with the following changes.
79812         (__set_errno): Parenthesize properly.
79813         Include <stdbool.h>.
79814         (MIN, MAX, MATCHING_INO): New macros.
79815         (__getcwd): Define with prototype, not K&R form.
79816         Use heuristics to allocate default buffer on stack if possible.
79817         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79818         behavior, and to avoid the PATH_MAX limit when computing
79819         ../../../../...
79820         Use MATCHING_INO to compare inode number to file.
79821         Check for arithmetic overflow in size calculations.
79822         Fix bug in reallocation of dot array that caused getcwd to fail
79823         on directories nested deeper than 75.
79824         Be more careful about saving errno on error.
79825         Do not use realloc; use only free+malloc, as this is a bit
79826         more flexible and avoids a needless copy operation.
79827         Do not inspect st_dev and st_ino for symbolic links; POSIX
79828         doesn't specify the latter.
79829         Check for closedir errors.
79830         Avoid needless casts.
79831         Use "#ifdef weak_alias" around weak_alias, to be like other
79832         glibc code.
79833         The following changes to getcwd.c have effect only when used in
79834         gnulib; they have no effect inside glibc proper.
79835         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79836         as alloca isn't used.
79837         (alloca, __alloca): Likewise.
79838         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79839         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79840         unconditionally, as gnulib assumes C89 or better.
79841         Do not include <sys/param.h>.
79842         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79843         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79844         better.
79845         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79846         Include <dirent.h> in a way that is compatible with modern Autoconf.
79847         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79848         New macros, if not already defined.
79849         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79850         Use "_LIBC", not "defined _LIBC", for consistency.
79851         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79852         a mempcpy module.
79853         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79854         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79855         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79856         credit only to Jim Meyering and adjust the copyright dates.
79857         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79858         <stdlib.h>, <unistd.h>, "pathmax.h".
79859         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79860         (INITIAL_BUFFER_SIZE): Remove.
79861         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79862
79863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79866         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79867         Use the _ONCE methods, for efficiency.
79868         Check for fcntl.h.  In test program, include <errno.h>
79869         and <fcntl.h> if available.  Remove old K&R cruft from
79870         test program.  Check for common errors in GNU/Linux,
79871         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79872         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79874         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79875         name accordingly.
79876         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79877         accommodate new getcwd.c.
79878         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79879         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79880         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79881         that's all we need now.
79882
79883 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79884
79885         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79886         argp-parse.c depends on getopt internals, that means we should
79887         always use our getopt, to be on the safe side.
79888         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79889         order not to spoil the result of an eventual previous invocation
79890         of gl_GETOPT_SUBSTITUTE.
79891
79892 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79893
79894         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79895         redefinition warnings. To avoid them, include the defines
79896         in `#if !defined __need_getopt ... #endif'. The only place
79897         where __getopt_argv_const is used is in definitions
79898         of getopt_long and getopt_long_only below, which are as well
79899         protected by `#ifndef __need_getopt'.
79900         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79901         __need_getopt after including <stdio.h> and <unistd.h> These
79902         headers might have defined it.
79903
79904 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79907
79908 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79911         (futimens): New function, which uses futimes if available.
79912         (futimens, utimens): Support timespec==NULL, with same semantics
79913         as utime and utimens.
79914         * lib/utimens.h (futimens): New decl.
79915
79916 2004-11-23  Jim Meyering  <jim@meyering.net>
79917
79918         * lib/getopt_.h: Remove trailing blanks.
79919
79920 2004-11-23  Jim Meyering  <jim@meyering.net>
79921
79922         * lib/__fpending.c: Add comment.
79923
79924 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79925
79926         * modules/canonicalize (Depends-on): Add xreadlink.
79927         Problem reported by James Youngman.
79928
79929 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79932         New macros.
79933         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79934         optopt): Use them instead of invoking ## directly; otherwise, the
79935         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79936
79937 2004-11-19  Bruno Haible  <bruno@clisp.org>
79938
79939         * lib/strtok_r.c: Move comments from here...
79940         * lib/strtok_r.h: ... to here.
79941
79942 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79945         implementations that mishandle size_t overflow.
79946
79947 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79950         might fail.  Problem reported by Yoann Vandoorselaere.
79951         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79952         implementations that mishandle size_t overflow.
79953
79954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * modules/canon-host (Depends-on): Add strdup.
79957
79958 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79961
79962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * lib/canon-host.c: Include "strdup.h".
79965         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79966         Use strdup instead of malloc/strcpy to duplicate strings.
79967
79968         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79969         (human_space_before_unit): New constant.
79970         * lib/human.c (human_readable): Support it.
79971
79972         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79973         (xgetcwd): Set errno correctly when failing.
79974         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79975         the failure is actually due to a PATH_MAX problem.
79976
79977         Further getopt changes to make it more likely that glibc will
79978         buy the changes back.
79979         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79980         (getopt): Use it, so to preserve glibc semantic
79981         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79982         when compiling for libc.
79983         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79984         (getopt_long, getopt_long_only): Use it.
79985
79986         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79987         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79988         (getopt): Argv is now char * const *, as per standard.
79989         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79990         not char *__getopt_argv_const *.
79991         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79992         _getopt_long_only_r): Likewise.
79993         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79994         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79995         _getopt_long_r, _getopt_long_only_r): Likewise.
79996         * lib/getopt_.h (__getopt_argv_const): Remove.
79997         (getopt): Argv is now char * const *, as per standard.
79998
79999         * lib/getdate.y (tORDINAL): New token.
80000         (day, relunit): Allow it for relative times.
80001         (relative_time_table): Use tORDINAL for ordinals.
80002
80003 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80006         Document that "second" isn't allowed as an ordinal number.
80007
80008 2004-11-16  Jim Meyering  <jim@meyering.net>
80009
80010         * modules/closeout (Depends-on): Add fpending.
80011
80012 2004-11-15  Jim Meyering  <jim@meyering.net>
80013
80014         * lib/closeout.c: Include "__fpending.h" once again.
80015         Include <stdbool.h>.
80016         (close_stdout): Don't fail just because stdout was closed initially,
80017         since some programs don't write to stdout in the normal course of
80018         operation (other than --version and --help), and we don't want this
80019         function to make e.g. `touch file >&-' fail.
80020         But do fail if it was closed and someone has tried to write to it.
80021         E.g., `printf foo >&-' must fail.
80022
80023 2004-11-13  Jim Meyering  <jim@meyering.net>
80024
80025         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80026
80027 2004-11-12  Simon Josefsson  <jas@extundo.com>
80028
80029         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80030         small doc fix is still pending.
80031
80032 2004-11-11  Simon Josefsson  <jas@extundo.com>
80033
80034         * modules/strtok_r: New file.
80035
80036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80037         strtok_r.
80038
80039 2004-11-11  Simon Josefsson  <jas@extundo.com>
80040
80041         * m4/strtok_r.m4: New file.
80042
80043         * m4/getopt.m4: Replace opterr.
80044
80045 2004-11-11  Simon Josefsson  <jas@extundo.com>
80046
80047         * lib/strtok_r.h, strtok_r.c: New file.
80048
80049 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80052         of replacing opterr, getopt, etc.  This should handle the
80053         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80054
80055 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80058         we can stop lying to compilers about the constness of argv when we
80059         are compiled outside glibc.
80060         (getopt, getopt_long, getopt_long_only): Use it.
80061         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80062         _getopt_internal, getopt): Likewise.
80063         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80064         _getopt_long_only_r): Likewise.
80065         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80066         _getopt_long_r, _getopt_long_only_r): Likewise.
80067
80068         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80069         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80070         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80071         the other external symbols.
80072         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80073         declaration, since the above renaming now works around collisions.
80074
80075 2004-11-11  Jim Meyering  <jim@meyering.net>
80076
80077         * lib/linebreak.c: Remove trailing blanks.
80078         * lib/alloca_.h: Likewise.
80079         * lib/acosl.c: Likewise.
80080         * lib/euidaccess.c: Likewise.
80081         * lib/allocsa.h: Likewise.
80082
80083 2004-11-10  Simon Josefsson  <jas@extundo.com>
80084
80085         * m4/getaddrinfo.m4: New file.
80086
80087 2004-11-10  Simon Josefsson  <jas@extundo.com>
80088
80089         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80090
80091 2004-11-10  Simon Josefsson  <jas@extundo.com>
80092
80093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80094         getaddrinfo.
80095
80096         * modules/getaddrinfo: New file.
80097
80098 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80101
80102 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * lib/mktime.c (SHR): New macro, which is a portable
80105         substitute for >> that should work even on Crays.
80106         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80107         Problem reported by Mark D. Baushke in
80108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80109         * lib/getdate.y (SHR): Likewise.
80110         (tm_diff): Use it.
80111         * lib/strftime.c (SHR): Likewise.
80112         (tm_diff): Use it.
80113         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80114         quote_these_too, so that right shifts are well defined.  All uses
80115         changed.
80116
80117 2004-11-10  Jim Meyering  <jim@meyering.net>
80118
80119         Ensure that no close failure goes unreported.
80120         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80121         return early when it seems there's nothing to flush.
80122         Don't include __fpending.h.
80123
80124 2004-11-10  Jim Meyering  <jim@meyering.net>
80125
80126         * modules/closeout (Depends-on): Remove fpending.
80127
80128 2004-11-10  Jim Meyering  <jim@meyering.net>
80129
80130         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80131
80132 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80133
80134         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80135         gl_FUNC_STRFTIME.
80136         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80137         and AC_REQUIRE when possible, to avoid duplicate checks.
80138         Check for <wchar.h>.
80139
80140 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80143
80144 2004-11-09  Bruno Haible  <bruno@clisp.org>
80145
80146         * m4/sockpfaf.m4: New file.
80147
80148 2004-11-05  Bruno Haible  <bruno@clisp.org>
80149
80150         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80151         Reported by Mark D. Baushke <mdb@cvshome.org>.
80152
80153 2004-11-04  Bruno Haible  <bruno@clisp.org>
80154
80155         2004-09-11  Bruno Haible  <bruno@clisp.org>
80156                 * allocsa.valgrind: New file.
80157         2004-02-06  Bruno Haible  <bruno@clisp.org>
80158                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80159                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80160                 Reported by Christopher Seip <chris.seip@hp.com>.
80161
80162 2004-11-04  Bruno Haible  <bruno@clisp.org>
80163
80164         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80165         (Makefile.am): Distribute it.
80166
80167 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80170         with errno == ERANGE if the buffer is too small.
80171         Problem reported by Mark D. Baushke.
80172
80173 2004-11-03  Albert Chin  <china@thewrittenword.com>
80174             Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80177         equivalent, substitute $ac_type for equivalent type rather than
80178         blindly using uint32_t *always* which won't work if uint32_t is not
80179         available.  Define _UINT32_T to work around typedef of uint32_t if
80180         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80181         2.5.1.
80182
80183 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * m4/jm-macros.m4: Sync from coreutils.
80186         (gl_MACROS): Check for mbrlen, for pathchk.
80187         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80188
80189 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * lib/xreadlink.c (MAXSIZE): New macro.
80192         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80193         size does not exceed MAXSIZE.  Avoid cast.
80194         As suggested by Mark D. Baushke in
80195         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80196         if readlink fails with buffer size just under MAXSIZE, try again
80197         with MAXSIZE.
80198
80199 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80202
80203 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80204         and  Paul Eggert  <eggert@cs.ucla.edu>
80205
80206         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80207         (get_date): Overparenthesize to avoid GCC warning.
80208
80209 2004-11-02  Bruno Haible  <bruno@clisp.org>
80210
80211         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80212         returns void.
80213
80214 2004-11-02  Bruno Haible  <bruno@clisp.org>
80215
80216         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80217         function returns void.
80218
80219 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80222         fflush_unlocked, flockfile, funlockfile, funlockfile,
80223         fputs_unlocked, putc_unlocked.
80224
80225 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80228         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80229         already declared.
80230
80231 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80232
80233         * modules/getdate (Files): Add doc/getdate.texi.
80234         (Depends-on): Add setenv, xalloc.
80235
80236 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * lib/getdate.y: Add support for TZ="foo" within a date string.
80239         Fix some bugs near time_t boundaries.  Reject dates with
80240         out-of-range components, e.g., "Sept 31".
80241         Include <stdlib.h>, "setenv.h", "xalloc.h".
80242         (ISDIGIT_LOCALE): Remove; unused.
80243         Note that the TZ and time functions used here are not reentrant.
80244         (mktime_ok, get_tz): New functions.
80245         (TZBUFSIZE): New constant.
80246         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80247         This requires that we sometimes generate our own TZ="XXX..." setting.
80248
80249 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         * doc/getdate.texi: New file, from coreutils with modifications for
80252         the new TZ parsing.
80253
80254 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80255
80256         * lib/mktime.c (not_equal_tm): Remove redundant check.
80257
80258 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * modules/regex (lib_SOURCES): Add regex.c.
80261         Reported by James Youngman in
80262         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80263
80264 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         * lib/getdate.y: Use Bison 1.875 features, and some minor
80267         code cleanups.  This change does not affect semantics.
80268         Don't include <stdlib.h>; no longer needed.
80269         Don't include unlocked-io.h; only the "#if TEST" code uses
80270         stdio, and performance isn't crucial there.
80271         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80272         Bison 1.875 features as described below.
80273         All uses of "PC." replaced by "pc->".
80274         (YYSTYPE): Add a forward declaration.
80275         (yylex, yyerror): Use full prototypes in forward decls.
80276         Use "%pure-parser" rather than obsolescent "%pure_parser".
80277         Use %parse-param and %lex-param instead of obsolescent
80278         YYPARSE_PARAM and YYLEX_PARAM.
80279         (meridian_table, month_and_day_table, time_units_table,
80280         relative_time_table, time_zone_table, military_table,
80281         lookup_zone, lookup_word, get_date):
80282         Use NULL instead of 0 where appropriate.
80283         (to_hour): Avoid abort (), to avoid a dependency on
80284         stdlib.h.
80285         (yyerror, yylex): Now accepts parser_control * arg.
80286         (main) [TEST]: Use '\0' rather than 0 for char.
80287
80288 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80291
80292 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80293
80294         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80295         It's now the caller's responsibility to handle the case where
80296         !HAVE_GETPAGESIZE && !defined getpagesize.
80297
80298         * lib/mktime.c (leapyear): Arg is long int, not int.
80299
80300 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80303
80304 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80307         missing.  Problem reported by James Youngman.
80308
80309 2004-10-16  Simon Josefsson  <jas@extundo.com>
80310
80311         * gnulib-tool: Fix comments.  Fix parse problem.
80312         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80313
80314 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80317         implementation of getopt_long.  Problem reported by Alexander Taler in:
80318         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80319
80320 2004-10-15  Bruno Haible  <bruno@clisp.org>
80321
80322         * gnulib-tool: Untabify. Initialize supplied_libname.
80323         (func_usage): More homogenous output.
80324         (func_modules_transitive_closure, func_modules_to_filelist,
80325         func_emit_lib_Makefile_am): New functions.
80326         (func_import): New function, extracted from big case statement. Use
80327         func_get_license, func_modules_transitive_closure,
80328         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80329         opt_lgpl. Don't use test -a, as it's not portable.
80330         (func_create_testdir): Use func_modules_transitive_closure,
80331         func_modules_to_filelist, func_emit_lib_Makefile_am.
80332
80333 2004-10-15  Bruno Haible  <bruno@clisp.org>
80334
80335         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80336
80337 2004-10-15  Bruno Haible  <bruno@clisp.org>
80338
80339         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80340         the portions belonging to each module.
80341         Suggested by Derek Robert Price <derek@ximbiot.com>.
80342
80343 2004-10-12  Simon Josefsson  <jas@extundo.com>
80344
80345         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80346         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80347         to real functions.
80348
80349 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80350
80351         * modules/vsnprintf: New file.
80352
80353 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80354
80355         * m4/vsnprintf.m4: New file.
80356
80357 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80358
80359         * lib/vsnprintf.h: New file.
80360         * lib/vsnprintf.c: New file.
80361
80362 2004-10-11  Bruno Haible  <bruno@clisp.org>
80363
80364         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80365         vsnprintf.
80366
80367 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80370
80371 2004-10-07  Bruno Haible  <bruno@clisp.org>
80372
80373         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80374         fits into the provided buffer.
80375
80376 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80377
80378         * lib/diacrit.c, diacrit.h: Add GPL notice.
80379
80380         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80381         notice.
80382         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80383         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80384         This avoids a potential constant-folding bug.
80385
80386 2004-10-05  Bruno Haible  <bruno@clisp.org>
80387
80388         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80389         for the declaration of strsep.
80390
80391 2004-10-05  Bruno Haible  <bruno@clisp.org>
80392
80393         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80394
80395 2004-10-04  Simon Josefsson  <jas@extundo.com>
80396
80397         * modules/memmem: New file.
80398         * tests/test-memmem.c: New file.
80399         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80400
80401 2004-10-04  Simon Josefsson  <jas@extundo.com>
80402
80403         * m4/memmem.m4: New file.
80404
80405 2004-10-04  Simon Josefsson  <jas@extundo.com>
80406
80407         * lib/memmem.h: New file.
80408         * lib/memmem.c: New file, taken from glibc.
80409
80410 2004-10-04  Simon Josefsson  <jas@extundo.com>
80411
80412         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80413         '#ifdef USE_UNLOCKED_IO'.
80414
80415 2004-10-04  Simon Josefsson  <jas@extundo.com>
80416
80417         * config/srclist.txt: Add memmem from glibc.
80418
80419 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80422
80423         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80424         modules/exclude, modules/getdate, modules/getline,
80425         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80426         modules/getusershell, modules/linebuffer, modules/md5,
80427         modules/mountlist, modules/posixtm, modules/readtokens,
80428         modules/readutmp, modules/regex, modules/sha1,
80429         modules/version-etc, modules/yesno:
80430         Remove dependency on unlocked-io.
80431
80432 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80435
80436         * m4/unlocked-io.m4: Add copyright notice.
80437         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80438
80439 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80442         * lib/xmalloc.c (xmemdup): Likewise.
80443         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80444         XFREE): Remove these long-obsolescent macros.
80445         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80446         * lib/xstrdup.c: Remove.
80447
80448         * lib/regex.c (re_comp): Cast gettext return value to char *,
80449         Problem reported by Martin Neitzel via Mark D. Baushke.
80450
80451 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80454         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80455         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80456         regex.c, sha1.c, version-etc.c, yesno.c:
80457         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80458         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80459         the includer's responsibility.
80460
80461         Sync from coreutils.
80462
80463         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80464         points to the start of a string, as the C Standard says the
80465         resulting behavior is undefined.
80466
80467         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80468         simple -> simple_backups, numbered_existing ->
80469         numbered_existing_backups, numbered -> numbered_backups
80470         to avoid shadowing problems.  All uses changed.
80471         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80472         * lib/backupfile.c (check_extension, numbered_backup):
80473         Rename locals to avoid shadowing 'basename'.
80474         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80475         once.
80476
80477         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80478         * lib/.cvsignore: Add getopt.h.
80479
80480 2004-10-04  Bruno Haible  <bruno@clisp.org>
80481
80482         * modules/README: New file.
80483         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80484         not a module.
80485
80486 2004-10-02  Jim Meyering  <jim@meyering.net>
80487
80488         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80489
80490 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80491
80492         * modules/strsep: New file.
80493
80494 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80495
80496         * m4/strsep.m4: New file.
80497
80498 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80499
80500         * lib/strsep.h: New file.
80501         * lib/strsep.c: New file.
80502
80503 2004-10-01  Simon Josefsson  <jas@extundo.com>
80504
80505         * lib/snprintf.c (snprintf): Handle size==0.
80506
80507 2004-10-01  Simon Josefsson  <jas@extundo.com>
80508             Bruno Haible  <bruno@clisp.org>
80509
80510         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80511         (snprintf): Declare 'args'.
80512
80513 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * lib/snprintf.c: Remove comments as to why each header is needed.
80516
80517 2004-10-01  Bruno Haible  <bruno@clisp.org>
80518
80519         * MODULES.html.sh: Add strsep.
80520
80521 2004-09-30  Simon Josefsson  <jas@extundo.com>
80522
80523         * modules/snprintf: New file.
80524
80525 2004-09-30  Simon Josefsson  <jas@extundo.com>
80526
80527         * m4/snprintf.m4: New file.
80528
80529 2004-09-30  Simon Josefsson  <jas@extundo.com>
80530
80531         * lib/snprintf.h, lib/snprintf.c: New files.
80532
80533 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80534
80535         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80536         (hol_entry_help): Never translate an empty string.
80537         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80538         * lib/argp.h (OPTION_NO_TRANS): New option.
80539
80540 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * modules/argp (Maintainer): Replace Simon Josefsson
80543         by Sergey Poznyakoff.
80544
80545 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80548         changes merged back into glibc.
80549
80550 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80551
80552         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80553
80554 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80555
80556         * lib/xvasprintf.c: Include xalloc.h.
80557         (xvasprintf): Use xalloc_die, not xmalloc_die.
80558
80559 2004-09-29  Bruno Haible  <bruno@clisp.org>
80560
80561         * modules/alloca-opt: New file, derived from modules/alloca.
80562         * modules/allocsa: Depend on alloca-opt instead of alloca.
80563         * modules/setenv: Likewise.
80564         * modules/vasnprintf: Likewise.
80565         * MODULES.html.sh: Add alloca-opt.
80566
80567 2004-09-28  Simon Josefsson  <jas@extundo.com>
80568
80569         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80570         LGPL, and to replace license template from GPL to LGPL.
80571
80572 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * modules/dummy: Change license to LGPL.
80575
80576 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80577
80578         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80579
80580 2004-09-24  Simon Josefsson  <jas@extundo.com>
80581
80582         * modules/minmax (License): Change from GPL to LGPL.
80583
80584 2004-09-23  Simon Josefsson  <jas@extundo.com>
80585
80586         * gnulib-tool (--import): Typo.
80587
80588 2004-09-23  Simon Josefsson  <jas@extundo.com>
80589
80590         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80591
80592 2004-09-22  Bruno Haible  <bruno@clisp.org>
80593
80594         * modules/*: Add 'License' field.
80595         * gnulib-tool: Accept --extract-license option.
80596         (func_get_license): New function.
80597
80598 2004-09-21  Bruno Haible  <bruno@clisp.org>
80599
80600         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80601         Reported by Simon Josefsson.
80602
80603 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80606         gl_AC_TYPE_LONG_LONG.
80607
80608 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80611
80612 2004-09-18  Simon Josefsson  <jas@extundo.com>
80613         and  Paul Eggert  <eggert@cs.ucla.edu>
80614
80615         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80616         calls with autoreconf.  Define GL_LIB.
80617
80618 2004-09-14  Karl Berry  <karl@gnu.org>
80619
80620         * config/srclist.txt: unsync setenv.c, sigh.
80621
80622 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80625         Problem reported by Bruno Haible in:
80626         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80627
80628 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * config/srclist.txt: Comment out argp-pvh.c.
80631
80632 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80633
80634         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80635         in case some system header has #define'd it.  Problem reported by
80636         Soeren D. Schulze in
80637         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80638
80639 2004-09-09  Karl Berry  <karl@gnu.org>
80640
80641         * regex.[ch]: delete from the root.  These were supposed to be
80642                 synced with emacs cvs, but this has not happened for about
80643                 a year, and anyway nothing else uses emacs regex.[ch].
80644                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80645                 lib/regex[.ch] is untouched.
80646
80647 2004-09-09  Bruno Haible  <bruno@clisp.org>
80648
80649         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80650
80651 2004-09-09  Bruno Haible  <bruno@clisp.org>
80652
80653         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80654         modifications.
80655         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80656
80657 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80658
80659         * modules/xvasprintf: New file.
80660         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80661
80662 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80663
80664         * lib/xvasprintf.h: New file.
80665         * lib/xvasprintf.c: New file.
80666         * lib/xasprintf.c: New file.
80667
80668 2004-09-08  Bruno Haible  <bruno@clisp.org>
80669
80670         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80671
80672 2004-09-08  Bruno Haible  <bruno@clisp.org>
80673
80674         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80675         length is > INT_MAX.
80676         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80677         more.
80678
80679 2004-09-08  Bruno Haible  <bruno@clisp.org>
80680
80681         * lib/stdint_.h: New file, taken from GNU clisp.
80682
80683 2004-09-08  Bruno Haible  <bruno@clisp.org>
80684             Oskar Liljeblad  <oskar@osk.mine.nu>
80685
80686         * modules/stdint: New file.
80687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80688
80689 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         Import from coreutils.
80692         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80693         strings on unbounded length.  alloca's performance benefits aren't
80694         that important here.
80695         (V_STRDUP): Remove.
80696         (parse_with_separator): New function, with most of the internals
80697         of the old parse_user_spec.  Allow user to omit both user and group,
80698         for compatibility with FreeBSD.
80699         Clone only the user name, not the entire spec.
80700         Do not set *uid, *gid unless entirely successful.
80701         Avoid memory leak in some failing cases.
80702         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80703         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80704         (parse_user_spec): Rewrite to use parse_with_separator.
80705
80706 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * modules/userspec: Don't depend on alloca.
80709
80710 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80713
80714 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80717         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80718         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80719
80720 2004-08-16  Simon Josefsson  <jas@extundo.com>
80721
80722         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80723         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80724         Add --dry-run for --import.
80725         Let user provided command line parameters override configure.ac
80726         settings.
80727
80728 2004-08-12  Simon Josefsson  <jas@extundo.com>
80729
80730         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80731         as discussed with Paul Eggert in threads rooted at
80732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80733         and
80734         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80735         Before, the test was empty, and relied on ELIDE_CODE in source
80736         code.)
80737         (gl_PREREQ_GETOPT): New macro.
80738         (gl_GETOPT): Use them.
80739
80740 2004-08-12  Simon Josefsson  <jas@extundo.com>
80741
80742         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80743         * lib/getopt_.h: Renamed from getopt.h.
80744
80745 2004-08-12  Simon Josefsson  <jas@extundo.com>
80746
80747         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80748         Change default library name from libfoo to libgnu.
80749         Now, if you have a configure.ac that says:
80750                 gl_SOURCE_BASE(gl)
80751                 gl_M4_BASE(gl/m4)
80752                 gl_MODULES(error getopt etcetera)
80753                 gl_INIT
80754         you can import all you need by running:
80755                 ../gnulib/gnulib-tool --import
80756
80757         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80758         (Makefile.am): Rewrite, use logic from argz.
80759         (Include): Use <getopt.h> instead of "getopt.h".
80760
80761 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * modules/argp (Files): Add m4/unlocked-io.m4.
80764         (Depends-on): Add extensions.
80765
80766 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80769         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80770         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80771         Check for program_invocation_name, program_invocation_short_name,
80772         flockfile, funlockfile, features.h, _getopt_long_only_r.
80773
80774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80777         its complicated substitute.
80778         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80779         and program_invocation_name.
80780         (__argp_basename) [!_LIBC]: Remove; the only use was
80781         replaced by its body.
80782         (__argp_short_program_name): Change condition from
80783         !defined __argp_short_program_name to
80784         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80785         to match argp-namefrob.h.
80786         (__argp_failure): Don't assume strerror_r returns char *.
80787         * lib/argp-parse.c (N_): Define unconditionally.
80788         (argp_default_options): Fill out initializers with 0 to avoid
80789         gcc warnings.
80790
80791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80792
80793         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80794         getopt1.c.
80795
80796 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         Merge from coreutils.
80799
80800         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80801
80802         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80803         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80804
80805 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80806
80807         Merge from coreutils.
80808
80809         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80810         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80811         for Reliant Unix 5.43.
80812
80813         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80814         (union fooround): Use uintmax_t, not long int.
80815         The rest is a merge from libc:
80816         [defined _LIBC]: Include <shlib-compat.h>.
80817         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80818
80819         * lib/settime.c (settime): Recode to avoid warning with
80820         Sun Forte C 6U2.
80821
80822         * lib/strverscmp.c: Convert to UTF-8.
80823
80824 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80827         m4/uintmax_t.m4.
80828
80829 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         * modules/xalloc-die: New file.
80832         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80833
80834         * modules/md5 (Files): Add m4/uint32_t.m4.
80835         * modules/sha1: Renamed from modules/sha.
80836         (Files):
80837         Rename lib/sha.h to lib/sha1.h.
80838         Rename lib/sha.c to lib/sha1.c.
80839         Rename m4/sha.m4 to m4/sha1.m4.
80840         (lib_SOURCES): Likewise.
80841         (configure.ac): Rename gl_SHA to gl_SHA1.
80842         (Include): sha.h -> sha1.h.
80843
80844 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80847         * m4/sha1.m4: Renamed from sha.m4.
80848         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80849
80850 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * lib/obstack.h (obstack_empty_p):
80853         Don't assume that chunk->contents is suitably aligned.
80854         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80855         Likewise. Problem reported by Benno in
80856         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80857
80858         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80859         readable.  This could be improved further but it'd take some work.
80860
80861 2004-08-08  Simon Josefsson  <jas@extundo.com>
80862
80863         * modules/xgethostname (Depends-on): Remove exit and error (not
80864         used).
80865
80866         * modules/getpass-gnu: Add getpass.h.
80867         (Depends-on): Add stdbool.
80868         * modules/getpass: Add getpass.h.
80869
80870 2004-08-08  Simon Josefsson  <jas@extundo.com>
80871
80872         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80873         Check getpass declaration.
80874
80875 2004-08-08  Simon Josefsson  <jas@extundo.com>
80876
80877         * lib/xgethostname.c: Don't include error.h (not used).
80878
80879         * lib/getpass.h: Add.
80880         * lib/getpass.c: Include getpass.h first.
80881
80882 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         * lib/xalloc-die.c: New file.
80885         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80886         All uses removed.
80887         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80888         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80889         xalloc-die.c.
80890         (_, N_, xalloc_die): Move to xalloc-die.c.
80891         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80892         so that we needn't mess with xalloc_msg_memory_exhausted.
80893
80894         * lib/sha1.h: Renamed from sha.h.
80895         (SHA1_H): Renamed from _SHA_H.
80896         (sha1_ctx): Renamed from sha_ctx.
80897         (sha1_init_ctx): Renamed from sha_init_ctx.
80898         (sha1_process_block): Renamed from sha_process_block.
80899         (sha1_process_bytes): Renamed from sha_process_bytes.
80900         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80901         (sha1_read_ctx): Renamed from sha_read_ctx.
80902         (sha1_stream): Renamed from sha_stream.
80903         (sha1_buffer): Renamed from sha_buffer.
80904         * lib/sha1.c: Likewise; renamed from sha.c.
80905         Do not include <sys/types.h>.
80906         Include <stddef.h> rather than <stdlib.h>.
80907
80908 2004-08-08  Bruno Haible  <bruno@clisp.org>
80909
80910         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80911         FILESYSTEM_PREFIX_LEN.
80912         * lib/progreloc.c: Likewise.
80913         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80914
80915 2004-08-06  Simon Josefsson  <jas@extundo.com>
80916
80917         * modules/progname (Depends-on): Don't depend on stdbool.
80918
80919 2004-08-06  Simon Josefsson  <jas@extundo.com>
80920
80921         * modules/getsubopt: New file.
80922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80923         getsubopt.
80924
80925 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         More merge from coreutils.
80928
80929         * m4/utimens.m4, m4/utimecmp.m4: New files.
80930         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80931         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80932         prereq.m4, sha.m4: Import changes from coreutils.
80933
80934 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         More merge from coreutils.
80937         * modules/raise, modules/readtokens0, modules/utimens:
80938         * modules/utimecmp, module/xnanosleep: New files.
80939         * modules/strftime: Add lib/strftime.h.
80940         Change include from <time.h> to "strftime.h".
80941         * modules/yesno: Add lib/yesno.h.
80942         * modules/backupfile: Remove lib/addext.c.
80943         * modules/euidaccess: Add stat-macros.h.
80944         * modules/canonicalize, modules/euidaccess,
80945         modules/filemode, modules/lchown, modules/makepath,
80946         modules/rmdir, modules/stat: Likewise.
80947
80948 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80949
80950         Merge from tar.
80951         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80952         SIZE_MAX is a valid preprocessor constant.
80953         (__argp_basename): Change from "#ifndef _LIBC"
80954         to "#ifndef __argp_short_program_name", so that
80955         we don't compile these functions for tar.
80956
80957         More merges from coreutils.
80958         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80959         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80960         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80961         * lib/addext.c: Remove; no longer needed.
80962         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80963         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80964         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80965         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80966         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80967         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80968         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80969         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80970         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80971         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80972         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80973         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80974         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80975         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80976         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80977         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80978         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80979         Import changes from coreutils.
80980
80981 2004-08-05  Simon Josefsson  <jas@extundo.com>
80982
80983         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80984
80985 2004-08-05  Simon Josefsson  <jas@extundo.com>
80986
80987         * m4/getsubopt.m4: New file.
80988
80989 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80990
80991         Merge from coreutils.
80992
80993         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80994         * m4/getcwd-path-max.m4: New files.
80995
80996         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80997         FILESYSTEM_PREFIX_LEN ->
80998         FILE_SYSTEM_PREFIX_LEN.
80999         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81000         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81001         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81002         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81003
81004         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81005         prerequisite modules now handle the DOS stuff.
81006         Don't check for unistd.h.
81007
81008 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81009
81010         Merge from coreutils.
81011
81012         * lib/.gdb-history: Remove; this doesn't belong here.
81013
81014         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81015         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81016         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81017         * lib/getcwd.c: New files.
81018
81019         * lib/dirname.h: Include <stdbool.h>.
81020         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81021         for consistency with POSIX terminology.  All uses changed.
81022         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81023         (strip_trailing_slashes): Use bool for booleans.
81024         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81025
81026         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81027         sometimes returns a positive errno value even when it succeeds.
81028         (print_errno_message) [!LIBC]: Fall back on strerror if
81029         __strerror_r fails.
81030
81031         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81032         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81033         (longest_relative_suffix): New function.
81034         (path_concat): Use it.  Assume first argument is not NULL.
81035         Port to DOS.  Omit redundant separators.
81036         Report an error instead of returning NULL.
81037         Use mempcpy instead of memcpy.
81038         (xpath_concat): Remove: not declared or used.
81039
81040         * lib/same.h: Include <stdbool.h>
81041         (same_name): Return bool, not int.
81042         * lib/same.c (same_name): Likewise.
81043         (errno): Don't declare; we assume C89 or better now.
81044
81045         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81046         if not already defined.
81047
81048         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81049         * lib/dup-safer.c (errno): Likewise.
81050
81051 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81052
81053         Merge from coreutils.
81054         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81055         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81056         * modules/path-concat: Don't depend on strdup.
81057
81058 2004-08-03  Simon Josefsson  <jas@extundo.com>
81059
81060         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81061         * lib/progname.h: Don't include stdbool.h.
81062
81063 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81066         * MODULES.html.sh (func_all_modules): Remove fatal.
81067
81068 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81071
81072 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81075         working.
81076
81077 2004-08-02  Simon Josefsson  <jas@extundo.com>
81078
81079         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81080         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81081         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81082
81083 2004-08-01  Simon Josefsson  <jas@extundo.com>
81084
81085         * lib/xgetdomainname.c: Include stdlib.h, for free().
81086
81087 2004-07-19  Bruno Haible  <bruno@clisp.org>
81088
81089         * MODULES.html.sh (func_all_modules): Add dummy.
81090
81091 2004-07-16  Simon Josefsson  <jas@extundo.com>
81092
81093         * modules/dummy: New file.
81094
81095 2004-07-16  Simon Josefsson  <jas@extundo.com>
81096
81097         * lib/dummy.c: New file.
81098
81099 2004-07-16  Bruno Haible  <bruno@clisp.org>
81100
81101         * lib/backupfile.h: Add extern "C" for C++.
81102         * lib/closeout.h: Likewise.
81103         * lib/copy-file.h: Likewise.
81104         * lib/findprog.h: Likewise.
81105         * lib/full-write.h: Likewise.
81106         * lib/pathname.h: Likewise.
81107         * lib/progname.h: Likewise.
81108         * lib/stpcpy.h: Likewise.
81109         * lib/stpncpy.h: Likewise.
81110         * lib/strcase.h: Likewise.
81111         * lib/strstr.h: Likewise.
81112         * lib/xalloc.h: Likewise.
81113
81114         * lib/mbswidth.h: Add extern "C" for C++.
81115         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81116
81117 2004-07-13  Robert Millan  <robertmh@gnu.org>
81118
81119         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81120
81121 2004-07-09  Simon Josefsson  <jas@extundo.com>
81122
81123         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81124         failed without this.)
81125
81126 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * modules/chown (Files): Add lib/fchown-stub.c, since
81129         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81130
81131 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * lib/fchown-stub.c: New file.
81134
81135 2004-06-24  Jim Meyering  <jim@meyering.net>
81136
81137         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81138
81139 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * modules/argz: Omit "#include".
81142
81143         * MODULES.html.sh (func_all_modules): Add calloc, to match
81144         2004-06-01 addition of calloc module.
81145
81146 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         * m4/argz.m4: New file, which is autoupdated from libtool.
81149
81150 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81153         libtool.
81154
81155 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         * config/srclist-update: Don't insist on "USA." before the
81158         close-comment, as libtool omits the period and puts the */ on a
81159         separate line.
81160         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81161         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81162
81163 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81164
81165         * modules/argz: New file.
81166         * MODULES.html.sh (func_all_modules): Add argz.
81167
81168 2004-06-12  Jim Meyering  <jim@meyering.net>
81169         and  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * modules/hash (Files): Add lib/xalloc.h.
81172         * modules/pipe (Depends-on): Add wait-process.
81173         * modules/stat (Depends-on): Add xalloc.
81174         * modules/userspec (Files): Add lib/userspec.h.
81175         * modules/xstrto
81176
81177         Upgrade from gettext-0.13.
81178         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81179         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81180         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81181
81182 2004-06-10  Jim Meyering  <jim@meyering.net>
81183
81184         * lib/calloc.c: New file.
81185
81186 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * lib/getdate.y (yylex): Allow space between sign and number.
81189         Problem reported by Dan Jacobson.
81190
81191 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         Merge from coreutils CVS.
81194
81195         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81196         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81197         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81198         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81199         xstrtol.m4: Fix copyright date and/or serial number.
81200
81201         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81202         See if we need an fchown replacement.
81203         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81204         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81205         and use the replacement function if we detect either defect.
81206
81207         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81208         gl_UTIMECMP.
81209
81210 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81211         and  Jim Meyering  <jim@meyering.net>
81212
81213         Merge from coreutils CVS.
81214
81215         * lib/stat-macros.h: New file, with contents from file-type.h
81216         and coreutils' system.h.
81217         * lib/file-type.c: Include "stat-macros.h".
81218         * lib/file-type.h (file_type): Move all macro definitions to new file,
81219         stat-macros.h.
81220
81221         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81222         Wrap old code with this conditional.
81223         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81224         function that does not dereference symlinks.
81225         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81226
81227         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81228         dependency problems.
81229         (xreadlink): Accept new arg SIZE, for efficiency.
81230         All decls and uses changed.
81231         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81232
81233         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81234         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81235
81236         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81237         sysexits.h.
81238
81239 2004-06-01  Jim Meyering  <jim@meyering.net>
81240
81241         * m4/calloc.m4: New file.
81242
81243 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81246         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81247         Also, fix a typo in a diagnostic.
81248
81249 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81252         or AC_FUNC_REALLOC.
81253
81254 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81257         macros to be defined.
81258         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81259         the allocator returns NULL because the requested size is zero.
81260
81261 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81264         var.  Add comment explaining why libc still defines it.  This
81265         merges the following patch from glibc:
81266         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81267
81268 2004-05-20  Andreas Schwab  <schwab@suse.de>
81269
81270         * m4/free.m4: Replace free if it not known to work, not the other
81271         way round.
81272
81273 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81276         present in glibc since revision 1.1 of this file.
81277         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81278         obstack_alignment_mask, obstack_alloc, obstack_base,
81279         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81280         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81281         obstack_grow0, obstack_init, obstack_int_grow,
81282         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81283         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81284         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81285         nonexistent functions.
81286
81287 2004-05-18  Karl Berry  <karl@gnu.org>
81288
81289         * config/srclist.txt: break link for vasnprintf.c.
81290
81291 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81292
81293         Port obstack to the AS/400, where pointers are 16 bytes wide and
81294         you cannot cast an integer to a valid pointer.  This patch is
81295         currently waiting to be integrated into glibc; see
81296         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81297
81298         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81299         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81300         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81301         (struct obstack): temp member is now a union of a pointer and
81302         an integer, instead of an integer.  All integer uses changed.
81303         This does not affect the physical layout of struct obstack,
81304         except on hosts (like the AS/400) where the size or alignment of
81305         void * is greater than that of ptrdiff_t.
81306         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81307         __STDC__)]: Store temporary in pointer member of union, not
81308         integer member.
81309         * lib/obstack.c: Include <stddef.h>, for offsetof.
81310         (struct fooalign): Remove; it doesn't need a name.
81311         (union fooround): Change double to long double, and add void *.
81312         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81313         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81314         not a macro.  Hence the values are always int; so remove all
81315         casts-to-int in uses.
81316
81317 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81320         we can get this patch merged into glibc.
81321
81322 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81323             Paul Eggert  <eggert@cs.ucla.edu>
81324
81325         * m4/argp: Depend on alloca.
81326
81327 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81328             Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81331         freecoding.
81332
81333 2004-05-17  Bruno Haible  <bruno@clisp.org>
81334
81335         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81336         precision that consists of a '.' followed by an empty digit string.
81337         Patch by Tor Lillqvist <tml@iki.fi>.
81338
81339 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81342         for backward compatibility with older code.  We need our own
81343         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81344         it under some other name, and our alloca.h will define it.
81345
81346 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81347             Derek Price  <derek@ximbiot.com>
81348
81349         * lib/alloca.c: Include <alloca.h>, to get our interface.
81350         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81351         include <alloca.h> first.  Use C89 prototype for alloca; this
81352         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81353         Use #elif for simplicity, since we can assume C89 now.
81354         Don't try to source the system alloca.h since it will not be found
81355         and to prevent recursively including its replacement.
81356         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81357         * lib/regex.c: Likewise.
81358
81359 2004-05-16  Derek Price  <derek@ximbiot.com>
81360             Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         getline cleanup.  This changes the getndelim2 API: both order of
81363         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81364         no delimiter).
81365
81366         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81367         interface does that.
81368         (getline): Always use getdelim, so that we don't have two
81369         copies of this code.
81370         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81371         if available.
81372         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81373         (GETNDELIM2_MAXIMUM): New macro.
81374         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81375         instead of the old practice of delim2==0.  All callers changed.
81376         Return -1 on overflow, instead of returning junk.
81377         Do not set *linesize unless allocation succeeds.
81378         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81379         that we include sys/types.h.
81380         * lib/getnline.h: Likewise.
81381         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81382         (getndelim2): Reorder arguments.
81383         * lib/getnline.c (getnline, getndelim):
81384         Don't discard the NMAX argument.
81385         (getnline): Invoke getndelim, to avoid code duplication.
81386         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81387         of (size_t) -1 by callers of the getnline family.
81388
81389 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81392         Check for gettimeofday.
81393         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81394         Check for settimeofday, stime.
81395
81396 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/nanosleep.c (suspended): Change its type from int to
81399         sig_atomic_t volatile.
81400         (first_call): Make it private to rpl_nanosleep, and have it
81401         be zero initially as that's a bit faster.
81402         (my_usleep): Round up fractional times instead of truncating them,
81403         as this is the usual meaning for 'sleep'.
81404
81405         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81406         doesn't work.
81407         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81408         (ENOSYS): Define if not defined.
81409         (settime): Fall back on stime if it exists and settimeofday fails.
81410         But don't bother with fallbacks if a method fails with errno == EPERM.
81411
81412 2004-05-11  Jim Meyering  <jim@meyering.net>
81413
81414         Prior to this change, the save_cwd caller required read access to the
81415         current directory on most systems (ones with the fchdir function).
81416
81417         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81418         fails, try write-only, and finally, resort to using xgetcwd.
81419
81420 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * lib/obstack.c, obstack.h: Import changes from libc.
81423
81424 2004-04-28  Bruno Haible  <bruno@clisp.org>
81425
81426         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81427         also implicitly appends .exe to executables.
81428         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81429         accepts Windows pathnames.
81430         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81432         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81433         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81434         Reported by Derek Robert Price <derek@ximbiot.com>.
81435
81436 2004-04-21  Karl Berry  <karl@gnu.org>
81437
81438         * config/srclist.txt (localcharset.c): break sync.
81439
81440 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81441
81442         * m4/host-os.m4: Add a copyright notice.
81443
81444 2004-04-20  Jim Meyering  <jim@meyering.net>
81445
81446         Change UTILS_ to gl_ in AC_DEFINE'd names.
81447         Change utils_- and jm_-prefixed variables, too.
81448         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81449         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81451
81452         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81453         Don't emit trailing blanks.
81454         Also rename jm_-prefixed variables to have gl_ prefix.
81455
81456         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81457         Also rename jm_-prefixed variables to have gl_ prefix.
81458
81459         * m4/jm-macros.m4: Reflect the renamings.
81460         * m4/prereq.m4: Likewise.
81461
81462 2004-04-20  Jim Meyering  <jim@meyering.net>
81463
81464         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81465         memory.
81466
81467 2004-04-20  Jim Meyering  <jim@meyering.net>
81468             Bruno Haible  <bruno@clisp.org>
81469
81470         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81471         memory when realloc fails.
81472
81473 2004-04-19  Jim Meyering  <jim@meyering.net>
81474
81475         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81476         now that readutmp.c may call `free (0)'.
81477
81478 2004-04-19  Bruno Haible  <bruno@clisp.org>
81479
81480         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81481         * m4/inttypes_h.m4: Likewise.
81482         * m4/stdint_h.m4: Likewise.
81483         * m4/intmax_t.m4: Likewise.
81484         * m4/uintmax_t.m4: Likewise.
81485
81486 2004-04-18  Jim Meyering  <jim@meyering.net>
81487
81488         * m4/prereq.m4: Don't forbid jm_ prefix.
81489
81490         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81491         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81492         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81493         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81494         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81495         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81496         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81497         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81498         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81499         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81500         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81501         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81502         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81503         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81504         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81505         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81506         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81507         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81508         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81509
81510 2004-04-18  Jim Meyering  <jim@meyering.net>
81511
81512         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81513         failure, don't leak memory and do call END_UTMP_ENT.
81514
81515 2004-04-16  Jim Meyering  <jim@meyering.net>
81516
81517         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81518         coreutils' stat program.
81519         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81520
81521 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81522
81523         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81524         C89.
81525         (CHAR_BIT): Remove, since we assume C89.
81526         Include <stdint.h> if available, as per current Autoconf CVS advice.
81527
81528 2004-03-31  Jim Meyering  <jim@meyering.net>
81529
81530         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81531         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81532         * m4/xalloc.m4: Likewise.
81533
81534 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81535
81536         Merge from coreutils.
81537
81538         * m4/inttostr.m4: New file.
81539         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81540         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81541         Require gl_CLOCK_TIME.
81542         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81543
81544 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81545
81546         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81547         not bool, to be more consistent with Unix conventions.
81548         Suggested by Bruno Haible.
81549
81550         Merge from coreutils.
81551
81552         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81553         * lib/umaxtostr.c: New files.
81554
81555         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81556         the usual <time.h> dance.
81557         (get_date): Change signature to support fractional time stamps.
81558         All callers changed.
81559         * lib/getdate.y: Include "getdate.h" first, as we can now
81560         assume C89 and don't need to worry about 'const'.
81561         Similarly, include "unlocked-io.h" near start, not in middle.
81562         Include <limits.h>.
81563         (textint.value): Use long int rather than int.
81564         (textint.digits): Use size_t rather than int.
81565         (BILLION, LOG10_BILLION): New constants.
81566         (parser_control): New member rel_ns.  Members day_ordinal,
81567         time_zone, month, day, hour, minutes, rel_year, rel_month,
81568         rel_day, rel_hour, rel_minutes, rel_seconds
81569         are now long int, not int.  Member seconds is now struct timespec,
81570         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81571         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81572         not int.
81573         (%union.intval): Now long int, not int.
81574         New member timespec.
81575         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81576         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81577         (spec): Now is a timespec or an item list.
81578         (timespec, items): New nonterminals.
81579         (time, rel, relunit, number, get_date):
81580         Add support for fractional seconds.
81581         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81582         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81583         (to_hour): First arg is now long int, not int.
81584         (to_year): Returns long int, not int.
81585         Don't treat year -70 like 70.
81586         (tm_diff): Returns long int, not int.
81587         (lookup_word): Use bool instead of int when appropriate.
81588         (yylex): Use size_t for count, not int.
81589         Detect overflow when parsing large integer constants.
81590         Add support for fractions.
81591         (get_date): Make pointers 'const' if possible.
81592         Use more-portable code to detect integer overflow.
81593         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81594         Don't use ctime; it's not reliable if the year has >4 digits.
81595
81596         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81597         This is for compatibility with BSD.
81598
81599         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81600         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81601         From coreutils' system.h.
81602
81603         * lib/userspec.c: Don't include "posixver.h".
81604         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81605         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81606         compatible extension.  Simplify code by removing a boolean int
81607         that was always nonzero if a string was nonnull.
81608
81609 2004-03-30  Jim Meyering  <jim@meyering.net>
81610
81611         Merge from coreutils.
81612
81613         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81614         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81615         on some systems one must include <grp.h> before it.
81616         Reported by Christian Krackowizer.
81617
81618 2004-03-30  Jim Meyering  <jim@meyering.net>
81619
81620         Merge from coreutils.
81621
81622         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81623
81624         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81625         an empty input stream.
81626
81627         * lib/readtokens.c: Include <stdbool.h>.
81628         (readtoken): Use `size_t' rather than int/long.
81629         All callers adjusted.
81630         Use `bool' rather than `int' where appropriate.
81631         Use memset rather than an explicit loop.
81632         Use x2nrealloc rather than xrealloc.
81633         Allow the use of `\0' as a delimiter.
81634         (readtokens): Likewise.
81635         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81636
81637 2004-03-30  Jim Meyering  <jim@meyering.net>
81638
81639         * m4/realloc.m4: Remove file, since now it does no more than
81640         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81641         the `configure.ac' section of module/realloc.
81642         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81643
81644 2004-03-30  Bruno Haible  <bruno@clisp.org>
81645
81646         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81647         nonnull.
81648
81649 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81650
81651         Merge changes to getloadavg.c from coreutils and Emacs.
81652
81653         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81654         Define to an expression, not to the empty string.
81655         Include cloexec.h and xalloc.h.
81656         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81657         Use set_cloexec_flag rather than rolling our own.
81658         * lib/cloexec.c, lib/cloexec.h: New files.
81659
81660 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81661
81662         * m4/cloexec.m4: New file.
81663
81664 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81665
81666         * lib/getopt.h: Sync with libc CVS.
81667
81668 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81669             Bruno Haible  <bruno@clisp.org>
81670
81671         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81672         mbswidth.
81673
81674 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81675             Bruno Haible  <bruno@clisp.org>
81676
81677         * lib/mbswidth.h: Include <wchar.h> only if
81678         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81679         <wchar.h>.
81680         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81681
81682 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81683
81684         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81685         Sync with libc CVS.
81686         * lib/getopt_int.h: New file, also synced from libc.
81687
81688 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81689
81690         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81691         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81692         Bring back getopt.c, getopt.h, getopt1.c.
81693
81694 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81695
81696         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81697         All uses changed.  Check for sa_sigaction member; this fixes
81698         a bug first reported by Jason Andrade in
81699         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81700
81701 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81702
81703         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81704         '#if' expressions.  Unlike the code it replaces, it does not
81705         depend on (defined _SC_PAGESIZE).  However, it does depend on
81706         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81707         first reported by Jason Andrade in
81708         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81709
81710 2004-02-25  Simon Josefsson  <jas@extundo.com>
81711
81712         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81713
81714 2004-02-25  Simon Josefsson  <jas@extundo.com>
81715
81716         * lib/strdup.h: New file.
81717         * lib/strdup.c: Include it.
81718         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81719         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81720
81721 2004-02-23  Karl Berry  <karl@gnu.org>
81722
81723         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81724         (from fencepost.gnu.org:/gd/gnuorg).
81725
81726 2004-02-23  Karl Berry  <karl@gnu.org>
81727
81728         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81729         * config/srclist.txt: add maintain/standards documents.
81730
81731 2004-02-18  Bruno Haible  <bruno@clisp.org>
81732
81733         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81734         Reported by Derek Robert Price <derek@ximbiot.com>.
81735
81736 2004-02-16  Karl Berry  <karl@gnu.org>
81737
81738         * config/mkinstalldirs, install-sh: update from automake.
81739
81740 2004-02-06  Karl Berry  <karl@gnu.org>
81741
81742         * m4/po.m4: update from gettext 0.14.1.
81743
81744 2004-02-06  Karl Berry  <karl@gnu.org>
81745
81746         * lib/config.charset: update from gettext 0.14.1.
81747
81748 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81749
81750         Add comments and code, prompted by suggestions from Bruno Haible
81751         for sh-quote.
81752         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81753         describing the enum quoting_style values.
81754         * lib/quotearg.c (quotearg_alloc): New function.
81755         (quotearg_buffer_restyled): Treat lone { and } as special.
81756         Treat = as special.  Work around bug with older shells
81757         that "see" a '\' that is really the 2nd byte of a multibyte char.
81758         Quote empty string with shell_quoting_style.
81759
81760 2004-02-03  Bruno Haible  <bruno@clisp.org>
81761
81762         * m4/pipe.m4: New file, from GNU gettext.
81763
81764 2004-02-03  Bruno Haible  <bruno@clisp.org>
81765
81766         * lib/pipe.h: New file, from GNU gettext.
81767         * lib/pipe.c: New file, from GNU gettext.
81768
81769 2004-01-27  Bruno Haible  <bruno@clisp.org>
81770
81771         * m4/execute.m4: New file, from GNU gettext.
81772
81773 2004-01-27  Bruno Haible  <bruno@clisp.org>
81774
81775         * lib/execute.h: New file, from GNU gettext.
81776         * lib/execute.c: New file, from GNU gettext.
81777         * lib/w32spawn.h: New file, from GNU gettext.
81778
81779 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81780
81781         Merge from diffutils.
81782
81783         * lib/file-type.c (file_type): Add typed memory objects.
81784         * lib/file-type.h (S_TYPEISTMO): New macro.
81785
81786         * lib/c-stack.h (c_stack_action): Remove argv argument.
81787         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81788         (die): Don't calculate message unless segv_action returns.
81789         (get_stack_location, min_address_from_argv, max_address_from_argv,
81790         volatile stack_base, volatile_stack_size): Remove.
81791         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81792         that every segmentation violation is a stack overflow.  (Ouch!)
81793         See Debian bug 136249 (still outstanding) for more info about why
81794         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81795
81796 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81797
81798         Exit-status fix from coreutils.
81799
81800         Use exit_failure consistently in place of EXIT_FAILURE,
81801         so that program exit statuses are consistent on failure.
81802
81803         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81804         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81805         * lib/argmatch.h: Comment fix to match the above.
81806         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81807         Now a macro referring to exit_failure, instead of a separate
81808         variable.  Include "exitfail.h" to get it.
81809         * lib/xstrtol.h: Include "exitfail.h".
81810         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81811
81812         * lib/long-options.c (parse_long_options): Use prototype
81813         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81814         for clarity.
81815
81816 2004-01-21  Jim Meyering  <jim@meyering.net>
81817
81818         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81819         so as not to conflict with a different-sized __mktime_internal
81820         function in GNU libc.
81821         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81822         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81823
81824 2004-01-20  Karl Berry  <karl@gnu.org>
81825
81826         * config/config.guess: update from config.
81827
81828         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81829
81830 2004-01-20  Bruno Haible  <bruno@clisp.org>
81831
81832         Safer stack allocation.
81833         * lib/setenv.c: Include allocsa.h.
81834         (alloca): Remove fallback definition.
81835         (freea): Remove macro.
81836         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81837         instead of freea.
81838
81839 2004-01-20  Bruno Haible  <bruno@clisp.org>
81840
81841         * m4/eealloc.m4: New file, from GNU gettext.
81842
81843 2004-01-20  Bruno Haible  <bruno@clisp.org>
81844
81845         * m4/allocsa.m4: New file, from GNU gettext.
81846
81847 2004-01-20  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/xallocsa.h: New file, from GNU gettext.
81850         * lib/xallocsa.c: New file, from GNU gettext.
81851
81852 2004-01-20  Bruno Haible  <bruno@clisp.org>
81853
81854         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81855
81856 2004-01-20  Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81859         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81860         specially.
81861
81862 2004-01-20  Bruno Haible  <bruno@clisp.org>
81863
81864         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81865         patch.
81866
81867 2004-01-20  Bruno Haible  <bruno@clisp.org>
81868
81869         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81870
81871 2004-01-20  Bruno Haible  <bruno@clisp.org>
81872
81873         * lib/eealloc.h: New file.
81874
81875 2004-01-20  Bruno Haible  <bruno@clisp.org>
81876
81877         * lib/binary-io.h: Avoid warnings on Cygwin.
81878
81879 2004-01-20  Bruno Haible  <bruno@clisp.org>
81880
81881         * lib/allocsa.h: New file, from GNU gettext.
81882         * lib/allocsa.c: New file, from GNU gettext.
81883
81884 2004-01-18  Karl Berry  <karl@gnu.org>
81885
81886         * doc/gpl.texi, doc/lgpl.texi: new files.
81887
81888 2004-01-18  Karl Berry  <karl@gnu.org>
81889
81890         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81891         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81892
81893 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81894
81895         Merge from coreutils.
81896
81897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81898         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81899         (gl_DEFAULT_POSIX2_VERSION): Move
81900         the documentation from 'configure' into 'config.hin',
81901         so that 'configure --help' isn't burdened by it and
81902         we don't have to worry about its formatting there.
81903         Reword the documentation so that it's more succinct
81904         and can be run together into a single paragraph.
81905         * m4/same.m4 (gl_SAME): Check for pathconf.
81906
81907 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81908
81909         Merge from coreutils.
81910
81911         * lib/posixver.c: Include posixver.h.
81912
81913         * lib/same.c: Include <stdbool.h>, <limits.h>.
81914         (_POSIX_NAME_MAX): Define if not defined.
81915         (MIN): New macro.
81916         (same_name): If file names are silently truncated, report
81917         that the file names are the same if they are the same after
81918         the silent truncation.
81919
81920         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81921         conversion function.
81922         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81923         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81924         longer needed.
81925
81926 2004-01-15  Jim Meyering  <jim@meyering.net>
81927
81928         Merge from coreutils.
81929
81930         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81931         if no library is required.
81932         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81933         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81934         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81935         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81936         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81937         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81938         value, $ac_cv_search_crypt, if it's "none required".
81939         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81940         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81941         not gl_FUNC_GETLOADAVG.
81942         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81943         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81944
81945 2004-01-15  Jim Meyering  <jim@meyering.net>
81946
81947         Merge from coreutils.
81948
81949         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81950         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81951         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81952
81953         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81954         optional configure-time default.
81955
81956         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81957
81958         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81959
81960 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81961
81962         Merge from coreutils.
81963
81964         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81965         value, $ac_cv_search_nanosleep, if it's "none required".
81966
81967 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81968
81969         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81970         with like-named macro in fnmatch.c.
81971         (EXT): Use an internal constant instead.
81972
81973         Merge fnmatch patches from glibc.
81974         * lib/fnmatch.c (mbsinit): Remove define.
81975         Add libc_hidden_ver (__fnmatch, fnmatch).
81976         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81977         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81978
81979 2004-01-14  Karl Berry  <karl@gnu.org>
81980
81981         * config/install-sh: update from automake.
81982
81983 2004-01-13  Karl Berry  <karl@gnu.org>
81984
81985         * config/install-sh: update from automake.
81986
81987 2004-01-09  Karl Berry  <karl@gnu.org>
81988
81989         * config/install-sh: update from automake.
81990
81991 2004-01-05  Karl Berry  <karl@gnu.org>
81992
81993         * config/config.{sub,guess}: update from config.
81994
81995 2003-12-31  Karl Berry  <karl@gnu.org>
81996
81997         * config/depcomp: update from automake.
81998
81999 2003-12-14  Karl Berry  <karl@gnu.org>
82000
82001         * lib/config.charset: update from gettext-runtime.
82002
82003 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82004
82005         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82006         Bug reported by Alfred M. Szmidt.
82007
82008 2003-12-03  Bruno Haible  <bruno@clisp.org>
82009
82010         * m4/gettext.m4: Upgrade from gettext-0.13.
82011         * m4/po.m4: Upgrade from gettext-0.13.
82012         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82013         * m4/intmax.m4: New file, from gettext-0.13.
82014         * m4/printf-posix.m4: New file, from gettext-0.13.
82015
82016 2003-11-29  Karl Berry  <karl@gnu.org>
82017
82018         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82019
82020 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82021             Bruno Haible  <bruno@clisp.org>
82022
82023         * lib/printf-parse.h: Don't include sys/types.h.
82024         (ARG_NONE): New macro.
82025         (char_directive): Change type of *arg_index fields to size_t.
82026         * lib/printf-parse.c: Don't include sys/types.h.
82027         (SSIZE_MAX): Remove macro.
82028         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82029         Remove unnecessary overflow check.
82030         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82031         fields.
82032
82033 2003-11-25  Bruno Haible  <bruno@clisp.org>
82034
82035         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82036
82037 2003-11-25  Bruno Haible  <bruno@clisp.org>
82038
82039         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82040         gt_TYPE_SSIZE_T.
82041
82042 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82043
82044         * modules/alloca: Remove dependency on xalloc.
82045
82046 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82047
82048         * lib/alloca.c: Remove dependency on xalloc module.
82049         (xalloc_die): Remove.
82050         (memory_full) [!defined emacs]: New macro.
82051         [!defined emacs]: Don't include xalloc.h.
82052         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82053         address arithmetic overflows.  Change datatypes a bit to avoid
82054         unnecessary casts.
82055
82056 2003-11-22  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82059         s/size/size_t/.
82060
82061 2003-11-21  Karl Berry  <karl@gnu.org>
82062
82063         * config/config.{sub,guess}: update from config.
82064
82065 2003-11-18  Karl Berry  <karl@gnu.org>
82066
82067         * config/config.{sub,guess}: update from config.
82068
82069         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82070
82071 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82072
82073         * README: Mention that S+T cannot overflow if S is the size of
82074         an existing object and T is sufficiently small.
82075
82076 2003-11-17  Jim Meyering  <jim@meyering.net>
82077
82078         On systems without utime and without a utimes function capable of
82079         dealing with a NULL struct utimbuf* argument, this utime replacement
82080         could -- in unusual circumstances -- leak a file descriptor.
82081         * lib/utime.c: Include <unistd.h> and <errno.h>.
82082         (utime_null): Be sure to close `fd' and to preserve errno.
82083         Reported by Geoff Collyer via Arnold Robbins.
82084
82085 2003-11-17  Bruno Haible  <bruno@clisp.org>
82086
82087         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82088         (Depends-on): Add xsize.
82089
82090 2003-11-17  Bruno Haible  <bruno@clisp.org>
82091
82092         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82093
82094 2003-11-17  Bruno Haible  <bruno@clisp.org>
82095
82096         * lib/vasnprintf.c (alloca): Remove fallback definition.
82097         (freea): Remove definition.
82098         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82099         Reported by Paul Eggert.
82100
82101 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82102             Bruno Haible  <bruno@clisp.org>
82103
82104         Protect against address arithmetic overflow.
82105         * lib/printf-args.h: Include stddef.h.
82106         (arguments): Change type of field 'count' to size_t.
82107         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82108         'unsigned int' where appropriate.
82109         * lib/printf-parse.h: Include sys/types.h.
82110         (char_directive): Change type of *arg_index fields to ssize_t.
82111         (char_directives): Change type of fields 'count', max_*_length to
82112         size_t.
82113         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82114         (SSIZE_MAX): Define fallback value.
82115         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82116         instead of 'int' where appropriate. Check a_allocated, d_allocated
82117         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82118         * lib/vasnprintf.c: Include xsize.h.
82119         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82120         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82121         overflow. Avoid wraparound when converting a width or precision from
82122         decimal to binary.
82123
82124 2003-11-16  Bruno Haible  <bruno@clisp.org>
82125
82126         Update from GNU gettext.
82127         * lib/printf-parse.c: Generalize to it can be compiled for wide
82128         strings.
82129         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82130         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82131         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82132         SNPRINTF): New macros.
82133         Don't include <alloca.h> if the file is used inside libintl.
82134         (local_wcslen): New function, for Solaris 2.5.1.
82135         (VASNPRINTF): Use it instead of wcslen.
82136
82137 2003-11-16  Bruno Haible  <bruno@clisp.org>
82138
82139         * lib/xsize.h (xmax): New function.
82140         (xsum, xsum3, xsum4): Declare as "pure" functions.
82141
82142 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82143
82144         * modules/xalloc (Files): Undo latest change, since xalloc.h
82145         no longer needs SIZE_MAX or PTRDIFF_MAX.
82146
82147 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82148
82149         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82150         gl_PTRDIFF_MAX.
82151
82152 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82153
82154         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82155         "return", to pacify some unknown compiler.  Problem reported
82156         by Joerg Schilling.
82157
82158 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82159
82160         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82161         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82162         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82163         heuristic is just as accurate as far as we know, and it removes a
82164         dependency on size_max.m4 and ptrdiff_max.m4.
82165
82166 2003-11-11  Bruno Haible  <bruno@clisp.org>
82167
82168         * modules/xsize (Files): Add m4/size_max.m4.
82169         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82170
82171 2003-11-11  Bruno Haible  <bruno@clisp.org>
82172
82173         * m4/size_max.m4: New file.
82174         * m4/ptrdiff_max.m4: New file.
82175         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82176         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82177         (gl_XALLOC): Invoke it.
82178
82179 2003-11-11  Bruno Haible  <bruno@clisp.org>
82180
82181         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82182         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82183         defined.
82184
82185 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82186
82187         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82188         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82189         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82190         From Bruno Haible.
82191         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82192         not (size_t) -1, since it's defined here.
82193
82194 2003-11-09  Karl Berry  <karl@gnu.org>
82195
82196         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82197
82198 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82199
82200         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82201         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82202         Reject sizes of exactly SIZE_MAX bytes.
82203         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82204         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82205
82206 2003-11-05  Bruno Haible  <bruno@clisp.org>
82207
82208         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82209         SIZE_MAX defined in <limits.h> on Solaris.
82210
82211 2003-11-04  Jim Meyering  <jim@meyering.net>
82212
82213         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82214         variable names, rather than @VAR@.
82215         * modules/poll: Likewise.
82216
82217 2003-11-04  Bruno Haible  <bruno@clisp.org>
82218
82219         * modules/xsize: New file.
82220         * modules/linebreak: Depend on xsize.
82221         * MODULES.html.sh (func_all_modules): Add xsize.
82222
82223 2003-11-04  Bruno Haible  <bruno@clisp.org>
82224
82225         * m4/xsize.m4: New file.
82226
82227 2003-11-04  Bruno Haible  <bruno@clisp.org>
82228
82229         * lib/xsize.h: New file.
82230         * lib/linebreak.c: Include xsize.h.
82231         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82232         argument for overflow.
82233         Suggested by Paul Eggert.
82234
82235 2003-11-03  Karl Berry  <karl@gnu.org>
82236
82237         * config/config.{guess,sub}: update from config.
82238
82239 2003-11-03  Jim Meyering  <jim@meyering.net>
82240
82241         * modules/userspec (lib_SOURCES): Add userspec.h.
82242         (Include): Add "userspec.h".
82243         Improve description.
82244
82245 2003-11-03  Jim Meyering  <jim@meyering.net>
82246
82247         * lib/userspec.c: Include "userspec.h".
82248         * lib/userspec.h: New file.
82249
82250 2003-11-03  Bruno Haible  <bruno@clisp.org>
82251
82252         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82253
82254 2003-11-03  Bruno Haible  <bruno@clisp.org>
82255
82256         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82257         available, to avoid (extremely rare) race condition.
82258         Suggested by Paul Eggert.
82259
82260 2003-11-02  Karl Berry  <karl@gnu.org>
82261
82262         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82263
82264 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82265
82266         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82267         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82268         (read_filesystem_list): Set and use me_type_malloced.
82269         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82270         whatever the type happens to be), for brevity and consistency.
82271         Check for size calculation overflow on Alphas running OSF/1.
82272
82273 2003-10-31  Jim Meyering  <jim@meyering.net>
82274
82275         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82276
82277         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82278
82279 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82280             Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82283         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82284
82285 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82288         netbsd*-gnu*.  Suggested by Robert Millan.
82289
82290 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82291
82292         * modules/group-member: Depend on stdbool.
82293
82294 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82295
82296         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82297
82298 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82299
82300         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82301         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82302         after the 'gnu' in these cases.  This fixes some bugs in the
82303         previous change, and is based on suggestions by Robert Millan.
82304
82305 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82306
82307         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82308         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82309         no longer needed.
82310         * lib/quotearg.c (quotearg_n_options): Use it.
82311         * lib/group-member.c: Include <stdbool.h>.
82312         (free_group_info): Arg is now const *; don't free arg.
82313         (get_group_info): Now returns bool and accepts struct group_info *,
82314         rather than returning a malloc'ed struct group_info *.
82315         All uses changed.  Check for overflow in internal size calculation.
82316
82317         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82318         rather than xmalloc/xrealloc.
82319         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82320         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82321         conformance bug: the old code used a pointer after freeing the
82322         storage that it addressed.
82323         * lib/hash.c (hash_initialize): Simplify the code by using
82324         xalloc_oversized rather than doing it by hand.
82325         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82326         the buffer preserved.  Use free and xmalloc instead.
82327         * lib/quotearg.c (quotearg_n_options): Likewise.
82328         Use a simpler test for size overflow.  Don't use xalloc_oversized
82329         because unsigned int might be wider than size_t (!); this suggests
82330         that we should switch from unsigned int to size_t for slot numbers.
82331
82332 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82333
82334         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82335         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82336         NetBSD kernels.  Requested by Richard Stallman.
82337
82338 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82339
82340         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82341         to allocate the returned structure.  Do not allocate a subarray,
82342         as x2nrealloc will do that.
82343         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82344         instead of xnrealloc.
82345         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82346
82347 2003-10-27  Bruno Haible  <bruno@clisp.org>
82348
82349         * lib/stdbool_.h: Better support for BeOS.
82350
82351 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82352
82353         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82354         now uses inline.
82355
82356 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82357
82358         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82359         callers that want to do their own size-overflow checking.  Include
82360         <stdbool.h>, since xalloc_oversized returns bool.
82361         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82362         to use xalloc_oversized.
82363
82364         Add two functions x2realloc, x2nrealloc, for programs that grow
82365         arrays dynamically by doubling their sizes.
82366         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82367         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82368         New functions.
82369
82370         Port to C99 semantics for 'inline' of external functions.
82371         Bug reported by Bruno Haible.
82372         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82373         with the old contents of xnmalloc.
82374         (xnmalloc, xmalloc): Use it.
82375         (xnrealloc_inline): New static inline function,
82376         with the old contents of xnrealloc.
82377         (xnrealloc, xrealloc): Use it.
82378
82379         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82380         that.
82381
82382 2003-10-26  Karl Berry  <karl@gnu.org>
82383
82384         * config/srclist.txt (COPYING.DOC): no longer available from
82385         /gd/gnuorg; don't know where the ultimate source is.
82386
82387 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82388
82389         Fix several address-calculation bugs in the hash modules,
82390         plus some minor code cleanup.
82391
82392         * lib/hash.h: Include <stdbool.h>, for bool.
82393         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82394         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82395         hash_get_n_entries, hash_get_max_bucket_length,
82396         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82397         hash_rehash): Use size_t rather than unsigned.
82398         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82399         hash_get_n_buckets_used, hash_get_n_entries,
82400         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82401         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82402         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82403         Likewise.
82404         (SIZE_MAX): Define if not defined.
82405         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82406         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82407         hash_print):
82408         Use const * when possible.
82409         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82410         (check_tuning): Fix bug: if tuning parameters were very close to
82411         0 or 1, rounding errors could have caused subscript violations.
82412         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82413         (hash_initialize): Add 'fail:' label
82414         to free table and return NULL, and use it to simplify code.
82415         Use calloc rather than clearing the storage ourself.
82416         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82417         buffer size calculations.
82418         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82419         Include <stddef.h>, for size_t.
82420         * lib/hash-pjw.c (hash_pjw): Likewise.
82421         Switch to method described by Bruno Haible.
82422         Include <limits.h>, for CHAR_BIT.
82423         (SIZE_BITS): New macro.
82424
82425 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82426
82427         * m4/getline.m4 (AM_FUNC_GETLINE):
82428         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82429         hosts.  Problem reported by Derek Robert Price in
82430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82431         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82432         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82433
82434 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82435
82436         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82437         ceiling the allocation at NMAX bytes rather than silently
82438         discarding input bytes before NMAX is reached.  This makes
82439         a difference only if NMAX exceeds SIZE_MAX / 2.
82440
82441         * lib/obstack.c: Merge from glibc.
82442         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82443         Add libc_hidden_def (_obstack_newchunk).
82444         (_obstack_free) [! defined _LIBC]: Remove.
82445         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82446         a clone of the function body.
82447         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82448         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82449
82450         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82451         glibc.
82452         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82453         arg to memcpy.
82454
82455         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82456         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82457         Don't use lvalue casts, as GCC plans to remove support for them
82458         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82459         was also present in the non-GCC version, indicating that this
82460         code had always been buggy and had never been widely used.
82461         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82462         Use the fast variant of each macro, rather than copying the
82463         definiens of the fast variant; that way, we'll be more likely to
82464         catch future bugs in the fast variants.
82465
82466 2003-10-20  Bruno Haible  <bruno@clisp.org>
82467
82468         * modules/wait-process: New file.
82469         * MODULES.html.sh (func_all_modules): Add wait-process.
82470
82471 2003-10-20  Bruno Haible  <bruno@clisp.org>
82472
82473         * m4/wait-process.m4: New file.
82474
82475 2003-10-20  Bruno Haible  <bruno@clisp.org>
82476
82477         * lib/wait-process.h: New file, from GNU gettext.
82478         * lib/wait-process.c: New file, from GNU gettext.
82479
82480 2003-10-19  Jim Meyering  <jim@meyering.net>
82481
82482         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82483         HPUX 10.20.
82484
82485 2003-10-18  Karl Berry  <karl@gnu.org>
82486
82487         * config/config.guess: update from config.
82488
82489 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82490
82491         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82492         (getgroups): First arg is int, not size_t.
82493         Don't let 'free' mangle errno.
82494
82495 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82496
82497         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82498
82499 2003-10-16  Karl Berry  <karl@gnu.org>
82500
82501         * config/config.{guess,sub}: update from config.
82502
82503 2003-10-16  Jim Meyering  <jim@meyering.net>
82504
82505         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82506         memcpy.
82507
82508 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82509
82510         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82511         (SIZE_MAX): Remove.
82512         (new_exclude, add_exclude_file): Initial size no longer needs to
82513         be a power of 2.
82514         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82515         our own address arithmetic overflow checking.
82516
82517         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82518         (fnmatch): Do not alloca more than 2000 wide characters;
82519         instead, use malloc for large buffers.
82520         Check for address arithmetic overflow, and return -1
82521         with errno set to ENOMEM in that case.
82522         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82523         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82524         instead, return -1.  Check for address arithmetic overflow.
82525
82526 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82527
82528         Handle invalid suffixes and overflow independently, so that
82529         callers can treat them independently as needed.  Fix some bugs in
82530         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82531         suffix for a human-readable blocksize.  The major caller-visible
82532         change is the addition of a new
82533         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82534         that both overflow and suffix chars were found.
82535
82536         * lib/human.c (humblock): Don't check separately for invalid suffix
82537         char; that is xstrtoumax's job (now that its bug is fixed).
82538         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82539         INTMAX_MAX]: New macros.
82540         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82541         TYPE_MAXIMUM): New macros.
82542         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82543         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82544         if overflow occurs, as it's what __strtol does and it's more useful
82545         in practice.
82546         (__xstrtol): If __strtol reports some error other than ERANGE,
82547         reflect it to the caller as LONGINT_INVALID.  If it reports
82548         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82549         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82550         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82551         value.
82552         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82553         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82554         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82555         [defined UINTMAX_MAX]: New macros.
82556
82557 2003-10-14  Bruno Haible  <bruno@clisp.org>
82558
82559         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82560
82561 2003-10-14  Bruno Haible  <bruno@clisp.org>
82562
82563         * m4/sig_atomic_t: New file, from GNU gettext.
82564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82565
82566 2003-10-14  Bruno Haible  <bruno@clisp.org>
82567
82568         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82569         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82570         Also use volatile where needed.
82571
82572 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82573
82574         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82575         Change maintainer from Bruno Haible to 'all'.
82576
82577 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82578
82579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82580
82581 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82582
82583         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82584         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82585         and define in terms of the other primitives.
82586         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82587         (SIZE_MAX): Define if not already defined.
82588         (array_size_overflow): New function.
82589         (xalloc_die): Abort instead of exiting if 'error' returns.
82590         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82591         (xmalloc, xrealloc): Use them.
82592         (xcalloc): Check for address arithmetic overflow.
82593         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82594         a bit faster than strcpy.
82595
82596 2003-10-10  Simon Josefsson  <jas@extundo.com>
82597
82598         * modules/argp (Depends-on): Add restrict and strcase.
82599
82600 2003-10-10  Simon Josefsson  <jas@extundo.com>
82601
82602         * m4/argp.m4: Add AC_C_INLINE.
82603
82604 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82605
82606         Merge getpass from libc, plus a few fixes.
82607
82608         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82609         Include <stdbool.h>.
82610         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82611         __fsetlocking to empty.
82612         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82613         do include <bits/libc-lock.h>.
82614         Do not include <fcntl.h>; not needed.
82615         [_LIBC]: Include <wchar.h>.
82616         (NOTCANCEL_MODE): New macro.
82617         (flockfile, funlockfile) [_LIBC]: New macros.
82618         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82619         [!_LIBC]: New macros.
82620         (call_fclose): New function.
82621         (getpass): Use it.  Save tty stream separately; this simplifies the
82622         code and makes it more reliable if stdin happens to equal stdout.
82623         Invoke __fsetlocking on tty.
82624         Handle thread cancellation if needed.
82625         Namespace cleanup (use __tcgetattr, __getline).
82626         Use bool for Booleans.
82627         [USE_IN_LIBIO]: Handle wide streams.
82628         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82629         stream might go where.
82630
82631         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82632         doesn't have to include <stdio.h> before us.
82633         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82634         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82635         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82636         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82637         if not declared, so that we can use getpass.c code from libc without
82638         rewriting it.
82639         (flockfile, ftrylockfile, funlockfile): New macros.
82640
82641 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82642
82643         * modules/getpass: Depend on stdbool.
82644
82645 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82646
82647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82648
82649 2003-10-07  Karl Berry  <karl@gnu.org>
82650
82651         * config/config.{guess,sub}: update from config.
82652
82653 2003-10-06  Jim Meyering  <jim@meyering.net>
82654             Bruno Haible  <bruno@clisp.org>
82655
82656         This lets translators provide better translations for the
82657         "Written by ..." part of --version output.
82658         * lib/version-etc.h: Include stdarg.h.
82659         (version_etc_copyright): Declare as readonly.
82660         (version_etc): Make this function variadic with a NULL-terminated list
82661         of author name strings.
82662         (version_etc_va): New declaration.
82663         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82664         (version_etc_copyright): Declare as readonly.
82665         (version_etc_va): New function. Provide a different translatable string
82666         for each possible number of authors < 10. Abbreviate when there are 10
82667         authors or more.
82668         (version_etc): Make this function variadic. Call version_etc_va.
82669         Suggestion from Gary V. Vaughan.
82670
82671         * lib/long-options.h (parse_long_options): Change prototype: the
82672         authors string is moved to the end and becomes variadic.
82673         * lib/long-options.c: Include stdarg.h.
82674         (parse_long_options): Make this function variadic, too.
82675         Call version_etc_va, not version_etc.
82676
82677 2003-10-06  Bruno Haible  <bruno@clisp.org>
82678
82679         * modules/version-etc-2: Remove file.
82680         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82681
82682 2003-10-06  Bruno Haible  <bruno@clisp.org>
82683
82684         * modules/fatal-signal: New file.
82685         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82686
82687 2003-10-06  Bruno Haible  <bruno@clisp.org>
82688
82689         * m4/fatal-signal.m4: New file.
82690         * m4/signalblocking.m4: New file, from GNU gettext.
82691
82692 2003-10-06  Bruno Haible  <bruno@clisp.org>
82693
82694         * lib/version-etc-2.h: Remove file.
82695         * lib/version-etc-2.c: Remove file.
82696
82697 2003-10-06  Bruno Haible  <bruno@clisp.org>
82698
82699         * lib/fatal-signal.h: New file, from GNU gettext.
82700         * lib/fatal-signal.c: New file, from GNU gettext.
82701
82702 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82703
82704         * README: Rework advice for preventing empty .o files.
82705         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82706         not <sys/types.h>.
82707
82708 2003-10-04  Karl Berry  <karl@gnu.org>
82709
82710         * lib/argp*: update from libc.
82711
82712 2003-10-04  Karl Berry  <karl@gnu.org>
82713
82714         * config/config.{guess,sub}: update from config.
82715
82716 2003-10-02  Bruno Haible  <bruno@clisp.org>
82717
82718         * modules/lchown (Include): Add lchown.h.
82719         * modules/time_r (Include): Use "..." syntax.
82720         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82721
82722 2003-10-01  Simon Josefsson  <jas@extundo.com>
82723
82724         * MODULES.html.sh (func_all_modules): Move gethostname from section
82725         'based on' to section 'lacking' POSIX:2001.
82726
82727 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82728
82729         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82730         to output mode on the same stream.
82731
82732 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82733
82734         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82735         Fix arg typo in previous patch.
82736
82737 2003-09-28  Jim Meyering  <jim@meyering.net>
82738
82739         * lib/error.c: Correct cpp indentation.
82740
82741 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82742
82743         * modules/free: New file.
82744
82745 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82746
82747         * m4/free.m4: New file.
82748
82749 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82750
82751         * lib/minmax.h (MIN, MAX)
82752         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82753         Omit the special code that used __typeof__, since we worry that
82754         it could be more trouble than it's worth.  See:
82755         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82756         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82757
82758         * lib/free.c: New file.
82759
82760 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82761
82762         Trivial fixes to Makefile.am parts of module listings.
82763         * modules/strstr: Append strstr.h to lib_SOURCES.
82764         * modules/strcase: Likewise, for strcase.h.
82765
82766 2003-09-27  Karl Berry  <karl@gnu.org>
82767
82768         * config/mkinstalldirs: update from automake.
82769
82770 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82771
82772         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82773         (error_tail): Do not loop, reallocating temporary buffer, since
82774         the output cannot contain more wide characters than the input
82775         contains bytes, the size must be big enough already.  This avoids
82776         one potential size overflow calculation.  Check for size overflow
82777         when calculating temporary buffer size.  Free temporary buffer
82778         when done, if it was allocated with malloc; this plugs a memory
82779         leak.  Remove casts from void * to pointers, that are no longer
82780         needed now that we're assuming C89 or better.
82781
82782         Merge error changes from glibc.
82783
82784         * lib/error.c, error.h: Update copyright notice header to match glibc.
82785         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82786         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82787         Disable cancellation while printing error.
82788         * lib/error.h: Prepend __ to parameter names.
82789
82790 2003-09-26  Jim Meyering  <jim@meyering.net>
82791
82792         * lib/error.c (error_tail): Move some declarations
82793         into inner scope where the local variables are used.
82794
82795 2003-09-26  Bruno Haible  <bruno@clisp.org>
82796
82797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82798         stpncpy().
82799         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82800
82801 2003-09-26  Bruno Haible  <bruno@clisp.org>
82802
82803         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82804         (stpncpy): Define as alias for gnu_stpncpy.
82805         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82806
82807 2003-09-25  Simon Josefsson  <jas@extundo.com>
82808
82809         * lib/xgetdomainname.h: New file.
82810         * lib/xgetdomainname.c: New file.
82811
82812 2003-09-25  Simon Josefsson  <jas@extundo.com>
82813             Bruno Haible  <bruno@clisp.org>
82814
82815         * modules/getdomainname: New file.
82816         * modules/xgetdomainname: New file.
82817         * MODULES.html.sh (func_all_modules): Add getdomainname,
82818         xgetdomainname.
82819
82820 2003-09-25  Simon Josefsson  <jas@extundo.com>
82821             Bruno Haible  <bruno@clisp.org>
82822
82823         * m4/getdomainname.m4: New file.
82824
82825 2003-09-25  Simon Josefsson  <jas@extundo.com>
82826             Bruno Haible  <bruno@clisp.org>
82827
82828         * lib/getdomainname.h: New file.
82829         * lib/getdomainname.c: New file.
82830
82831 2003-09-25  Karl Berry  <karl@gnu.org>
82832
82833         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82834
82835 2003-09-25  Karl Berry  <karl@gnu.org>
82836
82837         * config/install-sh: update from automake.
82838
82839 2003-09-25  Bruno Haible  <bruno@clisp.org>
82840
82841         * modules/version-etc-2: New file, from modules/version-etc with
82842         modifications.
82843         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82844
82845 2003-09-25  Bruno Haible  <bruno@clisp.org>
82846
82847         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82848         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82849
82850 2003-09-24  Simon Josefsson  <jas@extundo.com>
82851
82852         * modules/xgethostname: Add xgethostname.h.
82853
82854 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82855
82856         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82857         the buffer associated with the argument.  Bug reported by
82858         Simon Josefsson.
82859
82860 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82861
82862         * README: Document assumptions that 'int' is at least 32 bits
82863         wide, that integer arithmetic is 2's complement without overflow,
82864         that there are no holes in integer values, that adding sizes of
82865         two nonoverlapping objects can't overflow, and that all-bits-zero
82866         yields scalar zero.  Fix spelling and capitalization typos.
82867
82868 2003-09-19  Karl Berry  <karl@gnu.org>
82869
82870         * lib/argp.h: update from libc.
82871
82872 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82873
82874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82875         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82876         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82877
82878 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82879
82880         * gnulib-tool: Use "test -h", not "test -L", for portability
82881         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82882         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82883         (sed_extract_prog): Issue s commands one-by-one, rather than
82884         using \| in one s command.
82885
82886 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82887
82888         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82889         input error, instead of returning NULL the next time we are called
82890         (and therefore losing track of errno).
82891
82892 2003-09-16  Bruno Haible  <bruno@clisp.org>
82893
82894         * gnulib-tool (func_create_testdir): Warn about duplicated
82895         dependencies.
82896
82897 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82898
82899         * modules/argmatch, modules/fatal, modules/obstack,
82900         modules/xalloc, modules/xgethostname: Sort dependencies by
82901         importance, not alphabetically.
82902
82903 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82904
82905         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82906         fails, so that the caller gets the proper errno.
82907
82908         * lib/readutmp.c (read_utmp): Likewise.
82909         Check for fstat error.  Close stream and free storage
82910         when failing.
82911
82912 2003-09-14  Karl Berry  <karl@gnu.org>
82913
82914         * config/srclist.txt (strdup.c): disable for c89 changes.
82915
82916 2003-09-14  Jim Meyering  <jim@meyering.net>
82917
82918         * lib/getloadavg.c: Correct cpp indentation.
82919         * lib/strdup.c: Likewise.
82920         * lib/vasnprintf.c: Likewise.
82921
82922 2003-09-14  Bruno Haible  <bruno@clisp.org>
82923
82924         * modules/fwriteerror: New file.
82925         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82926
82927 2003-09-14  Bruno Haible  <bruno@clisp.org>
82928
82929         * lib/fwriteerror.h: New file.
82930         * lib/fwriteerror.c: New file.
82931
82932 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82933
82934         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82935         modules/xgethostname, modules/xalloc: Depend on exit.
82936
82937 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82938
82939         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82940
82941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82942         and AC_MINIX, too, so that their extensions are available.
82943
82944         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82945         This macro has been superseded by gl_BACKUPFILE.
82946
82947         More patches to assume C89 or better.
82948
82949         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82950
82951         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82952         unconditionally.
82953         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82954         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82955         Include <string.h>, <stdlib.h> unconditionally.
82956         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82957         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82958         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82959         headers or for string.h.
82960         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82961         or strtoul.
82962
82963         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82964         headers.
82965         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82966         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82967         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82968         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82970         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82971         memcpy, memset.
82972         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82973         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82974         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82975         strtol.
82976         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82977         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82979         strtoul.
82980
82981 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82984         * lib/obstack.c [!defined _LIBC]: Likewise.
82985         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82986         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82987         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82988
82989         More changes to assume C89 or better.
82990
82991         * lib/error.c (error_tail): Assume vprintf.
82992
82993         * lib/argmatch.c (getenv): Remove decl.
82994         * lib/progreloc.c (get_full_program_name): Define via prototype.
82995         * lib/setenv.c (clearenv): Likewise.
82996         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82997         needed.
82998         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82999         (malloc, memcpy): Remove decls.
83000         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83001         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83002         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83003         (memcpy): Remove macro.
83004         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83005         (__P): Remove.  All uses removed.
83006         (PTR): Remove.  All uses changed to void *.
83007         (CHAR_BIT, NULL): Remove.
83008         (spaces, zeros, memset_space, memset_zero)
83009         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83010         Remove.
83011         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83012         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83013         Define with prototype.
83014         Remove now-unnecessary prototype decl.
83015         (extra_args_spec): Assume ANSI C.  All uses changed.
83016         (extra_args_spec_iso): Remove.
83017         (my_strftime, emacs_strftimeu): Define via prototype.
83018         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83019         unconditionally.
83020         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83021         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83022         (strtoul, strtol): Remove decls.
83023         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83024         LONG_MAX): Remove.
83025         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83026         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83027         (LOCALE_PARAM_PROTO): New macro.
83028         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83029         (INTERNAL (strtol), strtol): Define with a prototype.
83030         (PARAMS): Remove.  All uses removed.
83031         * lib/tempname.c: Include <string.h> unconditionally.
83032         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83033         * lib/xgethostname.c (main): Define with a prototype.
83034         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83035         Include <stdlib.h> unconditionally.
83036         (calloc, malloc, realloc, free): Remove decls.
83037         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83038         Include <stdlib.h> unconditionally.  Sort include file names.
83039         (strtod): Remove.
83040         (xstrtod): Define with a prototype.
83041         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83042         (strtol, strtoul): Remove decls.
83043
83044 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83045
83046         More patches to assume C89 or better.
83047         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83048         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83049         string.h, memchr, STDC_HEADERS.
83050
83051 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83052
83053         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83054         Include <stdlib.h>, <string.h> unconditionally.
83055         Remove now-unnecessary cast to char *.
83056         * lib/strnlen.c: Include <string.h> unconditionally.
83057         * lib/yesno.c (yesno): Define with a prototype.
83058
83059 2003-09-11  Bruno Haible  <bruno@clisp.org>
83060
83061         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83062
83063 2003-09-10  Jim Meyering  <jim@meyering.net>
83064
83065         * lib/error.c: Correct indentation of cpp directives.
83066
83067 2003-09-10  Bruno Haible  <bruno@clisp.org>
83068
83069         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83070         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83071         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83072         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83073         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83074         <stdlib.h> and <string.h> checks.
83075         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83076         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83077
83078 2003-09-10  Bruno Haible  <bruno@clisp.org>
83079
83080         * lib/strcspn.c: Include <string.h> unconditionally.
83081         * lib/strpbrk.c: Include <string.h> unconditionally.
83082         * lib/strstr.c: Include <string.h> unconditionally.
83083         * lib/unicodeio.c: Include <string.h> unconditionally.
83084         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83085         * lib/unsetenv.c: Likewise.
83086         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83087         * lib/yesno.c: Include <stdlib.h> unconditionally.
83088         (rpmatch): Add prototype.
83089
83090 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83091
83092         More patches to assume C89 or better.
83093         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83094         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83095         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83096         or for string.h.
83097         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83098         stdlib.h.
83099         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83100         C headers.
83101         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83102         string.h.
83103         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83104         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83105         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83106         or for string.h.
83107         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83108         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83109         C headers.
83110         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83111         memcpy.
83112         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83113         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83114         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83115         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83116         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83117         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83118         string.h, free.
83119         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83120         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83121         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83122         C headers, or for string.h.
83123         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83124         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83125         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83126         headers, memory.h, stdlib.h, string.h, strings.h.
83127         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83128         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83129         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83130         strchr.
83131         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83132         headers, memory.h, string.h.
83133         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83134         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83135         free.
83136         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83137         headers.
83138         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83139         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83140         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83141         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83142         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83143
83144 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83145
83146         More K&R removal.
83147
83148         * lib/acosl.c (main): Use a prototype.
83149         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83150         tanl.c: Likewise.
83151
83152         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83153
83154         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83155         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83156         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83157         with a prototype.
83158         * lib/getopt.c (const): Remove macro.
83159         Include <string.h> unconditionally.
83160         (my_index): Remove; all uses changed to strchr.
83161         (strlen): Remove decl.
83162         (exchange): Remove forward decl; no longer needed.
83163         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83164         Define with prototype.
83165         * lib/getopt1.c (const): Remove macro.
83166         (getopt_long, getopt_long_only, main): Define with prototype.
83167
83168         * lib/getugroups.c: Include <string.h> unconditionally.
83169
83170         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83171         (getusershell, setusershell, endusershell, readname, main):
83172         Define with prototypes.
83173
83174         * lib/group-member.c: Include group-member.h first.
83175         Include <stdlib.h> unconditionally.
83176
83177         * lib/hard-locale.c: Include hard-locale.h first.
83178         Include <stdlib.h>, <string.h> unconditionally.
83179
83180         * lib/hash.c (free, malloc): Remove decls.
83181         Include <stdlib.h> unconditionally.
83182
83183         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83184         (getenv): Do not declare.
83185
83186         * lib/idcache.c: Include <string.h> unconditionally.
83187
83188         * lib/long-options.c: Include long-options.h first, to test interface.
83189         Include <stdlib.h> unconditionally.
83190
83191         * lib/makepath.c: Include makepath.h first, to test interface.
83192         Include <stdlib.h> and <string.h> unconditionally.
83193
83194         * lib/linebuffer.c: Include <stdlib.h>.
83195         (free): Remove decl.
83196
83197         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83198         stddef.h. rpl_malloc returns void *, not char *.
83199         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83200         prototype.
83201
83202         * lib/md5.h: Include <limits.h> unconditionally.
83203         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83204         (__P): Remove; all uses removed.
83205         * lib/md5.c: Include "md5.h" first.
83206         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83207         md5_buffer, md5_process_bytes, md5_process_block):
83208         Define with prototypes.
83209         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83210         * lib/sha.c: Include "sha.h" first.
83211         Include <stdlib.h>, <string.h> unconditionally.
83212
83213         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83214         * lib/memcmp.c (__ptr_t): Likewise.
83215         * lib/memrchr.c (__ptr_t): Likewise.
83216         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83217         Include <string.h> unconditionally.
83218         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83219         * lib/memchr.c: Include <stdlib.h> unconditionally.
83220         * lib/memchr.c (LONG_MAX): Remove.
83221         * lib/memrchr.c (LONG_MAX): Likewise.
83222         * lib/memchr.c (__memchr): Define via a prototype.
83223         * lib/memrchr.c (__memrchr): Likewise.
83224         * lib/memcmp.c (__P): Remove, and remove all uses.
83225         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83226         Remove forward decls; no longer needed.
83227         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83228         Use types required by C89 in prototype.
83229
83230         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83231         * lib/savedir.c: Likewise.
83232         * lib/mkdir.c (free): Remove decl.
83233         * lib/rmdir.c (rmdir): Define with a prototype.
83234         * lib/savedir.c: Include savedir.h first, to test interface.
83235
83236         * lib/mktime.c (STDC_HEADERS): Remove.
83237         Include <stdlib.h>, <string.h> unconditionally.
83238
83239         * lib/modechange.c: Include <stdlib.h> unconditionally.
83240         (malloc): Remove decl.
83241
83242         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83243         (free): Remove decl.
83244
83245         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83246         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83247         (This type really should be intptr_t, but that's a C99ism.)
83248         (_obstack_memcpy): Remove: all uses changed to memcpy.
83249         Include <string.h> unconditionally.
83250         (struct obstack): Assume __STDC__ for types of members
83251         chunkfun, freefun, extra_arg.
83252         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83253         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83254         obstack_begin, obstack_specify_allocation,
83255         obstack_specify_allocation_with_arg, obstack_chunkfun,
83256         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83257         Remove unprototyped decls and the macros that use them.
83258         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83259         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83260         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83261         (defined __STDC__ && __STDC__)]:
83262         Remove nonprototyped code.
83263         Include <stdlib.h> unconditionally.
83264         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83265         _obstack_allocated_p, _obstack_free, obstack_free,
83266         _obstack_memory_used, print_and_abort):
83267         Define using prototypes.
83268         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83269         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83270         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83271         obstack_next_free, obstack_object_size, obstack_room) [0]:
83272         Remove unused, unprototyped code.
83273
83274         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83275
83276         * lib/physmem.c (physmem_total, physmem_available, main): Define
83277         with prototypes.
83278
83279         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83280         (main): Define with a prototype.
83281
83282         * lib/posixver.c (getenv): Remove decl.
83283
83284         * lib/putenv.c (malloc): Returns void *, not char *.
83285         Include <string.h> unconditionally.
83286         (strchr, memcpy, NULL): Do not define.
83287
83288         * lib/readtokens.c: Include readtokens.h first, to test interface.
83289         Include <stdlib.h>, <string.h> unconditionally.
83290         (init_tokenbuffer): Define with a prototype.
83291
83292         * lib/regex.c (PARAMS): Remove.  All uses removed.
83293         All uses of _RE_ARGS removed, too.
83294         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83295         unconditionally.
83296         (bzero): Assume memset exists.
83297         (memcmp, memcpy, NULL): Remove.
83298         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83299         char, or assignments to local vars of type signed char.
83300         (init_syntax_once, PREFIX(extract_number_and_incr),
83301         PREFIX(print_partial_compiled_pattern),
83302         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83303         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83304         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83305         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83306         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83307         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83308         wcs_compile_range, byte_compile_range, truncate_wchar,
83309         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83310         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83311         count_mbs_length, wcs_re_match_2_internal,
83312         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83313         PREFIX(alt_match_null_string_p),
83314         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83315         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83316         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83317         now-unnecessary declaration, if any.
83318         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83319         regcomp, regexec):
83320         Remove now-unnecessary casts among pointer types.
83321         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83322
83323         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83324         (free): Remove decl.
83325
83326         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83327
83328         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83329         (free): Remove decl.
83330
83331         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83332         * lib/xgetcwd.c: Likewise.
83333
83334         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83335         (free): Remove decl.
83336
83337         * lib/strchrnul.c (strchrnul): Define with a prototype.
83338         Fix bug: c_in was not converted to char before searching.
83339
83340         The following changes are not K&R related:
83341
83342         * lib/group-member.h: Include <sys/types.h>, so that this file is
83343         self-contained.
83344         * lib/makepath.h: Likewise.
83345
83346         * lib/getusershell.c (readname, default_index, line_size, readname):
83347         Use size_t, not int, for sizes.
83348         (readname): If the size overflows, report an error instead of
83349         looping forever.
83350
83351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83352
83353         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83354         libc.
83355
83356 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83357
83358         * README: New section: portability guidelines.
83359
83360 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83361
83362         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83363         C89 spec.
83364
83365 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83366
83367         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83368
83369 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83370
83371         Assume C89 or better; remove K&R cruft.
83372         A few of these changes were first proposed by Derek Robert Price
83373         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83374
83375         * lib/addext.c: Include <string.h> unconditionally.
83376         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83377         Don't declare getenv or malloc.
83378
83379         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83380         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83381         (NULL): Remove.
83382         (find_stack_direction, alloca): Use prototypes.
83383
83384         * lib/atexit.c (atexit): Define using a prototype.
83385
83386         * lib/basename.c, dirname.c, stripslash.c:
83387         Include <string.h> unconditionally.
83388
83389         * lib/bcopy.c: Include <stddef.h>.
83390         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83391
83392         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83393
83394         * lib/error.h (error, error_at_line, error_print_progname)
83395         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83396         * lib/error.c: Include error.h first, to check interface.
83397         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83398         (VA_START): Remove; all uses changeed to va_start.
83399         (exit, strerror): Remove decls.
83400         (error_print_progname): Prototype uncondionally.
83401         Don't include <errno.h>; no longer needed.
83402         (private_strerror): Remove.
83403         (error_tail): Always define.
83404         (error, error_at_line): Assume C89 or better; always use prototypes.
83405         * lib/fatal.c: Include "fatal.h" first, to test interface.
83406         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83407         (VA_START): Remove; all uses changed to va_start.
83408         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83409         this case.
83410         (exit): Remove decl.
83411         (fatal): Prototype unconditionally.  Assume va_start works.
83412         Abort at end, to pacify gcc.
83413
83414         * lib/euidaccess.c (main): Define with a prototype.
83415
83416         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83417
83418         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83419
83420         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83421         prototypes.
83422         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83423         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83424         (getenv): Remove decl.
83425         (fnmatch): Define using a prototype.
83426         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83427         (FCT): Define using a prototype.
83428
83429         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83430
83431         * lib/gethostname.c: Include <stddef.h>.
83432         (gethostname): Define with prototype.  Length is size_t, not int.
83433
83434 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83435
83436         Assume C89 or better; remove K&R cruft.
83437         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83438         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83439         string.h, getenv, malloc.
83440         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83441         headers.
83442         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83443         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83444         do not check for strerror.
83445         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83446         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83447         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83448         do not check for doprnt or vprintf.
83449         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83450         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83451
83452 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83453
83454         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83455         getversion.c should have been removed then, but was accidentally
83456         preserved.
83457
83458         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83459         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83460
83461 2003-09-08  Karl Berry  <karl@gnu.org>
83462
83463         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83464                 config, forget about prep.
83465
83466         * config/depcomp, missing: update from automake.
83467
83468 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83469
83470         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83471         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83472
83473 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83474
83475         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83476         copy_tm_result.  Bug reported by Simon Josefsson in
83477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83478
83479 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83480
83481         * m4/time_r.m4: New file.
83482         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83483         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83484         is. Check for timegm declaration.
83485         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83486         Do not check for gmtime_r.
83487         Replace mktime if __mktime_internal does not exist and if mktime
83488         hasn't been replaced already.
83489
83490 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83491
83492         * lib/time_r.c, lib/time_r.h: New files.
83493
83494         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83495         __localtime_r.
83496         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83497         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83498
83499         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83500         __gmtime_r.
83501         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83502         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83503         Include <time_r.h>.
83504
83505         * lib/timegm.c: Switch to glibc implementation, with the following
83506         changes:
83507         [defined HAVE_CONFIG_H]: Include <config.h>.
83508         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83509         (__mktime_internal) [!defined _LIBC]: New decl.
83510         (__gmtime_r) [!defined _LIBC]: New macro and function.
83511         (timegm): Use a prototype, since gnulib assumes C89.
83512         Do not bother declaring tmp to be const, as it's not really usefu.
83513         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83514         (timegm): Declare only if HAVE_DECL_TIMEGM.
83515
83516 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83517
83518         * MODULES.html.sh (func_all_modules): Add time_r.
83519         * modules/time_r: New file.
83520         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83521         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83522
83523 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83524
83525         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83526         Bug reported by Lute Kamstra in
83527         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83528
83529         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83530         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83531         course with correspondingly smaller numbers for tomorrow and
83532         yesterday.  From Tadayoshi Funaba.  Originally installed into
83533         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83534         coreutils merge?).
83535
83536 2003-08-31  Simon Josefsson  <jas@extundo.com>
83537
83538         * modules/timegm: New file.
83539         * MODULES.html.sh (func_all_modules): Add timegm.
83540
83541 2003-08-31  Simon Josefsson  <jas@extundo.com>
83542
83543         * m4/timegm.m4: New file.
83544
83545 2003-08-31  Simon Josefsson  <jas@extundo.com>
83546
83547         * lib/timegm.h: New file.
83548         * lib/timegm.c: New file.  Based on
83549         wget-1.8.2/src/http.c:mktime_from_utc.
83550
83551 2003-08-31  Karl Berry  <karl@gnu.org>
83552
83553         * lib/argp.h: update from libc.
83554
83555 2003-08-28  Bruno Haible  <bruno@clisp.org>
83556
83557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83558         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83559         followed by '#define fnmatch fnmatch_posix' gives an error.
83560
83561 2003-08-28  Bruno Haible  <bruno@clisp.org>
83562
83563         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83564         warning on QNX, which defines O_BINARY to 000000.
83565
83566 2003-08-27  Jim Meyering  <jim@meyering.net>
83567
83568         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83569         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83570         would fail after 32.  Reported by Danny Levinson.  Details here:
83571         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83572
83573 2003-08-24  Bruno Haible  <bruno@clisp.org>
83574
83575         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83576         MSVC7 <stdio.h> is included later.
83577
83578 2003-08-22  Simon Josefsson  <jas@extundo.com>
83579
83580         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83581
83582 2003-08-20  Karl Berry  <karl@gnu.org>
83583
83584         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83585
83586 2003-08-20  Bruno Haible  <bruno@clisp.org>
83587
83588         * modules/progname: New file.
83589         * MODULES.html.sh (func_all_modules): Add progname.
83590
83591 2003-08-20  Bruno Haible  <bruno@clisp.org>
83592
83593         * lib/progname.h: New file, from GNU gettext.
83594         * lib/progname.c: New file, from GNU gettext.
83595         * lib/progreloc.c: New file, from GNU gettext.
83596
83597 2003-08-19  Jim Meyering  <jim@meyering.net>
83598
83599         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83600         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83601
83602 2003-08-19  Bruno Haible  <bruno@clisp.org>
83603
83604         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83605         more.
83606
83607 2003-08-19  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/xstrdup.c: Assume <string.h> exists.
83610
83611 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83612
83613         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83614         in makefile rules.
83615
83616 2003-08-18  Jim Meyering  <jim@meyering.net>
83617
83618         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83619         * m4/lib-ld.m4: Likewise.
83620
83621 2003-08-18  Jim Meyering  <jim@meyering.net>
83622
83623         * lib/setenv.h: Indent nested cpp directive.
83624         * lib/vasnprintf.c: Remove trailing blanks.
83625
83626 2003-08-17  Simon Josefsson  <jas@extundo.com>
83627
83628         * modules/xstrndup: New file.
83629         * MODULES.html.sh (func_all_modules): Add xstrndup.
83630
83631 2003-08-17  Simon Josefsson  <jas@extundo.com>
83632
83633         * modules/argp: Fix autoconf macro name. Add more dependencies.
83634
83635 2003-08-17  Simon Josefsson  <jas@extundo.com>
83636
83637         * m4/xstrndup.m4: New file.
83638
83639 2003-08-17  Simon Josefsson  <jas@extundo.com>
83640
83641         * m4/argp.m4: New file.
83642
83643 2003-08-17  Simon Josefsson  <jas@extundo.com>
83644             Bruno Haible  <bruno@clisp.org>
83645
83646         * lib/xstrndup.h: New file.
83647         * lib/xstrndup.c: New file.
83648
83649 2003-08-17  Bruno Haible  <bruno@clisp.org>
83650
83651         * modules/strndup (Files, Include): Add lib/strndup.h.
83652
83653 2003-08-17  Bruno Haible  <bruno@clisp.org>
83654
83655         * modules/euidaccess (Files): Add lib/euidaccess.h.
83656
83657 2003-08-17  Bruno Haible  <bruno@clisp.org>
83658
83659         * lib/strndup.h: New file.
83660
83661 2003-08-17  Bruno Haible  <bruno@clisp.org>
83662
83663         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83664         like AC_GNU_SOURCE.
83665         * modules/extensions (configure.ac): Comment out the invocation of
83666         gl_USE_SYSTEM_EXTENSIONS.
83667
83668 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83669
83670         Merges from coreutils, etc.
83671         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83672         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83673         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83674         fixing a typo.
83675         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83676         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83677
83678 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83679
83680         Document merge from coreutils.
83681         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83682         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83683         * modules/utime: Add m4/utimes-null.m4.
83684
83685 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83686
83687         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83688         space, undoing this 2003-08-12 change:
83689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83690
83691 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83692
83693         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83694         strtoul.c from libc, undoing this 2003-08-12 change:
83695         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83696
83697 2003-08-16  Jim Meyering  <jim@meyering.net>
83698
83699         Merges from coreutils.
83700         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83701         prefix.  Adjust cache variables similarly.  Create 500 rather than
83702         just 300 files, to exercise bug on Darwin6.5, too.
83703         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83704         $missing_dir.
83705         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83706         AM_SYS_POSIX_TERMIOS.
83707         Reported by mkc@mathdogs.com.
83708         Also change use of $am_cv_sys_posix_termios
83709         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83710         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83711         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83712         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83713         in /proc/mounts until it finds one with matching device number.  This
83714         is unnecessary when the FILE argument *is* a mount point.  No stat call
83715         is necessary in that case.  So, disable the statvfs-testing code on
83716         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83717         as RedHat bug# 84846.
83718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83719         to 1MB, so as not to render systems with no stack size limit (e.g.,
83720         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83721         Include <unistd.h>.  On some systems,
83722         it is required for the definition of _SC_PAGESIZE.
83723
83724 2003-08-16  Jim Meyering  <jim@meyering.net>
83725
83726         Merge from coreutils.
83727         * lib/xstrtoimax.c: #else #if -> #elif.
83728         * lib/xstrtoumax.c: Likewise.
83729
83730 2003-08-16  Jim Meyering  <jim@meyering.net>
83731
83732         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83733         * m4/utimes.m4: Removed.
83734         * m4/utimes-null.m4: Renamed from utimes.m4.
83735
83736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83737         to 1MB, so as not to render systems with no stack size limit (e.g.,
83738         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83739         Include <unistd.h>.  On some systems,
83740         it is required for the definition of _SC_PAGESIZE.
83741
83742 2003-08-16  Jim Meyering  <jim@meyering.net>
83743         and Paul Eggert  <eggert@cs.ucla.edu>
83744
83745         Merges from coreutils, etc.
83746
83747         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83748         using the latest version from cvs.  This avoids problems with #line
83749         directives using a vendor (Sun) compiler.
83750         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83751         Don't set GETGROUPS_LIB here; now it's
83752         done via getgroups.m4's wrapper function.
83753         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83754         rather than just in sh-util/configure.in, so that the
83755         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83756         same.
83757         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83758         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83759         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83760         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83761         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83762         Remove code that is now done by the newly-required macros.
83763         Append $(EXEEXT) to DF_PROG.
83764         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83765         Do not invoke or require the following here,
83766         since prereq.m4 or some gnulib .m4 now does this for us:
83767         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83768         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83769         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83770         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83771         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83772         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83773         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83774         AC_FUNC_OBSTACK.
83775         Do not replace the following functions, as this is now the job
83776         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83777         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83778         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83779         atexit getpass, strdup, getpagesize.
83780         Replace 'raise'.
83781         Do not check for the following functions, as this is now the job
83782         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83783         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83784         setregid.
83785         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83786         Check for sys/sysctl.h.
83787         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83788         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83789         of checking for ssize_t ourselves.
83790
83791         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83792         Require every macro that gnulib/modules/* suggests for us.
83793         (jm_PREREQ_ADDEXT): New macro.
83794         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83795         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83796
83797         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83798         (gl_PHYSMEM): Use it.
83799         Also check for `table' function.
83800         Check for new headers and functions.
83801         Add check for sys/sysmp.h.
83802         With suggestions from Kaveh Ghazi.
83803         Ignore headers that are present but cannot be compiled.  This
83804         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83805         C 5.4.
83806
83807 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83808
83809         Document merge from coreutils.
83810         * modules/userspec: Depend on posixver.
83811         * modules/strftime: Depend on tzset.
83812
83813 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83814
83815         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83816         rather than tab, after '#' in shell-script copyright notices.
83817         Suggested by Bruno Haible.
83818
83819 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83820
83821         * config/srclist-update: Use three spaces, rather than tab, after '#'
83822         in shell-script copyright notices.  Suggested by Bruno Haible.
83823         Remove unnecessary parenthesization in regular expression.
83824
83825 2003-08-15  Jim Meyering  <jim@meyering.net>
83826
83827         Merge from coreutils.
83828         * lib/xgethostname.c: Include <stdlib.h>.
83829         (xghostname): Don't exit for anything other than memory-related
83830         failure; just return NULL.
83831         * lib/userspec.c: Include "posixver.h".
83832         (parse_user_spec): Accept `.' as a separator only
83833         in pre-POSIX-200112 mode.
83834         * lib/strtoimax.c: Use #elif rather than #else #if.
83835         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83836         Remove function, now that we can rely on a working tzset function.
83837         [!_LIBC]: Ensure that the required autoconf test has been run.
83838         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83839         Use underlying_strftime for %r.
83840         * lib/sha.c: Merge in some clean-up and optimization changes from
83841         glibc.
83842         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83843         Ensure that it is a multiple of 64.
83844         Rearrange loop exit tests so as to avoid performing an
83845         additional fread after encountering an error or EOF.
83846         * lib/realloc.c: Update copyright date.
83847
83848 2003-08-15  Jim Meyering  <jim@meyering.net>
83849         and Paul Eggert  <eggert@twinsun.com>
83850
83851         Merge from coreutils.
83852         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83853         member but strut utmpx does not.  Needed for AIX 4.3.3.
83854         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83855
83856 2003-08-15  Jim Meyering  <jim@meyering.net>
83857         and Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         Merges from coreutils, etc.
83860         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83861         Require gl_FUNC_TZSET_CLOBBER.
83862         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83863         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83864         members.
83865
83866 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83867
83868         Help the merge from coreutils.
83869         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83870         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83871         * m4/tzset.m4: Use it too.
83872
83873 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83874
83875         * modules/tzset: New file.
83876
83877 2003-08-14  Jim Meyering  <jim@meyering.net>
83878
83879         Merges from coreutils.
83880         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83881         variable names, rather than @FNMATCH_H@.
83882         * modules/alloca: Likewise for $(ALLOCA_H).
83883
83884         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83885         the three copies of the literal target, `fnmatch.h'.
83886         * modules/alloca (alloca.h): Likewise.
83887
83888 2003-08-14  Jim Meyering  <jim@meyering.net>
83889
83890         Merge from coreutils.
83891         * m4/tzset.m4: New file.
83892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83893         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83894         otherwise, AIX 5.1 systems would end up using the latter.
83895         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83896         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83897         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83898         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83899
83900 2003-08-14  Jim Meyering  <jim@meyering.net>
83901
83902         Merge from coreutils.
83903         * lib/obstack.h: Whitespace changes.
83904         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83905         and xcalloc return values.
83906         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83907         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83908         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83909         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83910         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83911         error from mntctl.
83912         Use mntctl's return value to drive the entry-processing loop, since
83913         we can't rely on the value of the vmt_length member in the last
83914         entry.  On some systems doing so could result in exhausting
83915         virtual memory.  Based in part on a patch from Mike Jetzer.
83916
83917 2003-08-14  Jim Meyering  <jim@meyering.net>
83918         and Paul Eggert  <eggert@twinsun.com>
83919
83920         Merges from coreutils, plus other fixes.
83921         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83922         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83923         for credits and details.  Thanks to Kaveh Ghazi for helping
83924         to keep these files in sync.
83925         (ARRAY_SIZE): Define it.
83926         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83927         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83928         (memcasecmp): Don't assume size_t fits in unsigned int.
83929         Remove casts and duplicate code.
83930         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83931         (memcpy): Remove definition.
83932         Merge in some clean-up and optimization changes from glibc.
83933         [BLOCKSIZE]: Move definition to top of file.
83934         Ensure that it is a multiple of 64.
83935         Rearrange loop exit tests so as to avoid performing an
83936         additional fread after encountering an error or EOF.
83937         * lib/md5.h (md5_uintptr): Define.
83938         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83939         return to the initial working directory.  Preserve errno
83940         for caller.
83941         * lib/idcache.c: Include "xalloc.h".
83942         (xmalloc, xrealloc): Remove decls.
83943         (getuser): Remove casts no longer required in C89.
83944         * lib/human.c: Include stdio.h, for sprintf.
83945         * lib/group-member.c: Include "xalloc.h".
83946         (xmalloc, xrealloc): Remove decls.
83947         (get_group_info): Remove casts no longer required in C89.
83948         * lib/getusershell.c (readname): Remove casts no longer required in
83949         C89.
83950         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83951         * lib/getline.c: Whitespace fix, from coreutils.
83952
83953 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83954
83955         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83956         Check for isascii.
83957
83958         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83959         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83960         Undo previous (whitespace-only) change.
83961
83962 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83963
83964         * lib/exclude.c: Include <ctype.h>
83965         (IN_CTYPE_DOMAIN): New macro.
83966         (is_space): New fn.
83967         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83968         and empty lines.
83969
83970         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83971         Undo previous (whitespace-only) change.
83972
83973 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83974
83975         * config/srclist-update: Change update back to the old behavior,
83976         leaving whitespace alone.  Use one 'sed' command rather than a
83977         pipeline.
83978         (fixlicense): Now a variable, not a function.
83979         (remove_trailing_blanks): Remove.
83980         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83981         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83982         Undo previous (whitespace-only) change.
83983
83984 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83985
83986         Merge from coreutils.
83987         * modules/euidaccess: Add lib_SOURCES, include for new
83988         file euidaccess.h
83989
83990 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83991
83992         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83993         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83994         Normalize leading white space and remove trailing white space.
83995
83996         Merge from coreutils
83997         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83998
83999         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84000         0.12.1.  These files are now being upgraded automatically by
84001         ../config/srclist-update.
84002
84003 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84004
84005         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84006         Normalize leading white space and remove trailing white space.
84007         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84008         notice, as per ../config/srclist-update.
84009
84010         Merge from coreutils.
84011         * lib/euidaccess.h: New file.
84012         * lib/euidaccess.c: Include it.
84013         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84014         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84015         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84016
84017 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84018
84019         * config/srclist-update: Add copyright notice.
84020         (remove_id_lines, remove_trailing_blanks): New constants.
84021         (fixfile): Use them to normalize spacing a bit in copied files.
84022         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84023         Normalize leading white space and remove trailing white space.
84024
84025         * config/texinfo.tex: Sync with texinfo.
84026
84027         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84028         strtoul.c from libc, to merge coreutils whitespace changes.
84029
84030         * config/srclist.txt: Get the following m4 files from gettext:
84031         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84032         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84033         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84034         wint_t.m4.
84035
84036 2003-08-12  Karl Berry  <karl@gnu.org>
84037
84038         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84039         been made.
84040
84041 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84042
84043         * modules/gnu-source, m4/gnu-source.m4:
84044         Remove; we're assuming Autoconf 2.54 or later now.
84045         Suggested by Bruno Haible.
84046         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84047
84048 2003-08-11  Bruno Haible  <bruno@clisp.org>
84049
84050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84051
84052 2003-08-11  Bruno Haible  <bruno@clisp.org>
84053
84054         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84055         (vasnprintf): Use it instead of wcslen.
84056
84057 2003-08-11  Bruno Haible  <bruno@clisp.org>
84058
84059         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84060         value to ensure that _Bool promotes to int. Use #define for _Bool when
84061         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84062
84063 2003-08-10  Karl Berry  <karl@gnu.org>
84064
84065         * lib/regex.h: update from libc (whitespace fix).
84066
84067 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84068
84069         Merge some files from coreutils.  These changes were
84070         originally made by Jim Meyering.
84071         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84072         many older Unixes require this.
84073         * lib/alloca.c (alloca): Remove cast to argument of free;
84074         no longer needed in C89.
84075         * lib/alloca_.h, regex.h: Fix white space to match
84076         what GNU indent does.
84077
84078 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84079
84080         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84081         apparently Emacs's Unicode mode got confused before my 2003-08-05
84082         checkin.
84083
84084 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84085
84086         * m4/extensions.m4: New file.
84087         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84088         Require gl_USE_SYSTEM_EXTENSIONS.
84089         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84090         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84091
84092 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84093
84094         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84095         * modules/extensions, modules/gnu-source: New files.
84096         * modules/timespec, modules/unlocked-io: Depend on extensions.
84097
84098 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84099
84100         * modules/restrict: New file.
84101         * MODULES.html.sh (func_all_modules): Add restrict.
84102         * modules/regex: Depend on restrict.
84103
84104 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84105
84106         * m4/restrict.m4: New file.
84107         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84108
84109 2003-08-07  Bruno Haible  <bruno@clisp.org>
84110
84111         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84112         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84113
84114 2003-08-07  Bruno Haible  <bruno@clisp.org>
84115
84116         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84117         makes the module 'getndelim2' compatible with the module 'getline'.
84118
84119 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84120
84121         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84122         byte with "\201" to avoid glitches when editing that source file
84123         with multi-gnome-terminal.
84124
84125 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84126
84127         * lib/bumpalloc.h: Remove.
84128
84129 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84130
84131         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84132         * modules/bumpalloc: Remove.
84133
84134 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84135
84136         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84137         GNU coding style.
84138
84139         Merge from coreutils.
84140         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84141         1. From glibc.
84142         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84143         from Karl Berry, implemented by Jim Meyering.
84144         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84145         from Dmitry V. Levin.
84146         Remove anachronistic cast of xrealloc.
84147         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84148         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84149         type. Otherwise, it wouldn't compile with at least /bin/cc on
84150         ymp-cray-unicos9.0.2.X.
84151         Combine two mostly-identical uses of alloca into one.
84152         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84153
84154 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84155
84156         [From Emacs.]
84157
84158         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84159         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84160         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84161         obsolete NLIST_NAME_UNION.
84162         [__GNU__]: Undef BSD and FSCALE.
84163         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84164
84165 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84166
84167         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84168         an enum type, so that it's guaranteed to promote to int.  See:
84169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84170
84171 2003-08-03  Karl Berry  <karl@gnu.org>
84172
84173         * config/depcomp: update from automake.
84174
84175 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84176
84177         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84178         (strerror): Don't assume that a printable int fits in 14 bytes.
84179
84180 2003-07-31  Bruno Haible  <bruno@clisp.org>
84181
84182         * modules/getpass-gnu: New file.
84183         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84184
84185 2003-07-31  Bruno Haible  <bruno@clisp.org>
84186
84187         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84188
84189 2003-07-24  Karl Berry  <karl@gnu.org>
84190
84191         * config/missing: update from automake.
84192
84193 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84194             Bruno Haible  <bruno@clisp.org>
84195
84196         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84197         * lib/getline.c (getline, getdelim): Likewise.
84198         Remove _GNU_SOURCE define; now it's defined in config.h through
84199         m4/getline.m4.
84200
84201 2003-07-23  Karl Berry  <karl@gnu.org>
84202
84203         * config/config.sub: update from prep.
84204
84205 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84206
84207         * modules/xalloc (Depends-on): Add exitfail.
84208         * modules/xmemcoll: Likewise.
84209
84210 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84211
84212         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84213         over-parenthesization in macros.
84214
84215         Sync with coreutils.
84216
84217         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84218         required by C99.
84219
84220         Use `exit_failure' for xalloc and xmemcoll instead of their own
84221         private exit-failure variables.
84222         * lib/xalloc.h (xalloc_exit_failure): Remove.
84223         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84224         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84225         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84226         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84227         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84228
84229 2003-07-20  Jim Meyering  <jim@meyering.net>
84230
84231         * modules/closeout (Depends-on): Add exitfail.
84232         Suggestion from Bruno Haible.
84233
84234 2003-07-19  Karl Berry  <karl@gnu.org>
84235
84236         * config/config.sub: update from prep.
84237
84238 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84239
84240         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84241         Remove.
84242         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84243         to test that it can stand by itself.  Include "exitfail.h".
84244         Clients should set exit_failure instead.
84245         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84246
84247 2003-07-18  Bruno Haible  <bruno@clisp.org>
84248
84249         * modules/getndelim2: New file.
84250         * modules/getline: Share files with module getndelim2.
84251         * modules/getnline: Depend on getndelim2 instead of sharing files with
84252         it. Add getnline.c to lib_SOURCES.
84253         * MODULES.html.sh (func_all_modules): Add getndelim2.
84254
84255 2003-07-18  Bruno Haible  <bruno@clisp.org>
84256
84257         * m4/getndelim2.m4: New file.
84258         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84259         invoke gl_PREREQ_GETNDELIM2.
84260         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84261         gl_PREREQ_GETNDELIM2.
84262         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84263         gl_GETNDELIM2.
84264
84265 2003-07-18  Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/getndelim2.h: New file.
84268         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84269         getndelim2.h.
84270         (getndelim2): Make non-static. Change return type to ssize_t.
84271         * lib/getline.h: Change argument names.
84272         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84273         * lib/getnline.c: Include getndelim2.h.
84274
84275 2003-07-18  Andreas Schwab  <schwab@suse.de>
84276
84277         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84278
84279 2003-07-17  Karl Berry  <karl@gnu.org>
84280
84281         * config/config.sub: update from prep.
84282
84283 2003-07-17  Bruno Haible  <bruno@clisp.org>
84284
84285         * modules/getnline: New file.
84286         * modules/getline: Add lib/getndelim2.c to source file list.
84287         * MODULES.html.sh (func_all_modules): Add getnline.
84288
84289 2003-07-17  Bruno Haible  <bruno@clisp.org>
84290
84291         * m4/getnline.m4: New file.
84292
84293 2003-07-17  Bruno Haible  <bruno@clisp.org>
84294
84295         * m4/Makefile.am.in: Remove file.
84296         * m4/Makefile.am: Remove file.
84297         * m4/Makefile.in: Remove file.
84298
84299 2003-07-17  Bruno Haible  <bruno@clisp.org>
84300
84301         * lib/getnline.h: New file.
84302         * lib/getnline.c: New file.
84303         * lib/getndelim2.c: New file, extracted from getline.c.
84304         (getndelim2): Renamed from getdelim2, with added nmax argument.
84305         * lib/getline.c: Include getndelim2.c.
84306         (getdelim2): Moved out to getndelim2.c.
84307         (getline, getdelim): Update.
84308
84309 2003-07-17  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/Makefile.am: Remove file.
84312         * lib/Makefile.in: Remove file.
84313
84314 2003-07-17  Bruno Haible  <bruno@clisp.org>
84315
84316         * configure.in: Remove file.
84317         * Makefile.in: Remove file.
84318
84319 2003-07-17  Bruno Haible  <bruno@clisp.org>
84320
84321         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84322
84323 2003-07-16  Karl Berry  <karl@gnu.org>
84324
84325         * config/srclist-update: was running fixlicense twice, which caused
84326                 texinfo.tex to be nullified for some reason.  Simplify,
84327                 $gplsrc is no longer needed as far as I can see?
84328
84329 2003-07-16  Jim Meyering  <jim@meyering.net>
84330
84331         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84332
84333 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84334
84335         * config/srclist.txt: Get the following files from gettext-runtime/intl
84336         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84337         ref-del.sin.  From Bruno Haible.
84338         * config/srclist-update (fixfile): Change grep pattern again, since the
84339         previous fix didn't work (there was another trailing $).  Use
84340         '[$]' to escape the $s.
84341
84342 2003-07-15  Karl Berry  <karl@gnu.org>
84343
84344         * lib/vasnprintf.c: update from gettext.
84345
84346 2003-07-15  Karl Berry  <karl@gnu.org>
84347
84348         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84349         gets expanded when surrounded by '$'.
84350
84351 2003-07-15  Jim Meyering  <jim@meyering.net>
84352
84353         * modules/save-cwd: Don't depend on error.  From Derek Price.
84354
84355 2003-07-15  Jim Meyering  <jim@meyering.net>
84356
84357         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84358
84359 2003-07-14  Simon Josefsson  <jas@extundo.com>
84360
84361         * modules/mempcpy: New file.
84362         * MODULES.html.sh (func_all_modules): Add mempcpy.
84363
84364 2003-07-14  Simon Josefsson  <jas@extundo.com>
84365
84366         * m4/mempcpy.m4: New file.
84367
84368 2003-07-14  Simon Josefsson  <jas@extundo.com>
84369
84370         * lib/mempcpy.h: New file.
84371         * lib/mempcpy.c: New file.
84372
84373 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84374
84375         * modules/getdate, modules/posixtm: Depend on mktime.
84376
84377 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84378
84379         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84380         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84381         unicodeio.c, unicodeio.h, unlocked-io.h:
84382         Switch from LGPL to GPL.
84383
84384 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84385
84386         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84387         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84388         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84389         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84390         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84391         updated automatically by ../config/srclist-update.  This changes
84392         their license from LPGL to GPL.
84393
84394 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84395
84396         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84397         assumed to refer to the root of the most recent stable gettext version.
84398         * config/srclistvars.sh: Add defaults for eggert.
84399         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84400         Match "This program" as well as "The program".  This is needed
84401         for gettext.
84402
84403 2003-07-14  Jim Meyering  <jim@meyering.net>
84404
84405         Don't emit diagnostics.  Let callers do that.
84406         * lib/save-cwd.c: Don't include "error.h".
84407         (save_cwd): Don't call error.  Ensure that errno is valid
84408         when returning nonzero.
84409
84410         * lib/save-cwd.h (restore_cwd): Update prototype.
84411         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84412         Simplify.  Don't call error upon failure.  Let callers do that.
84413         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84414         when auditing is enabled.  But don't bother updating the #if.
84415
84416 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84417
84418         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84419         it breaks C++ compilation.
84420         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84421
84422 2003-07-10  Simon Josefsson  <jas@extundo.com>
84423
84424         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84425
84426 2003-07-10  Jim Meyering  <jim@meyering.net>
84427
84428         * m4/clock_time.m4: Remove trailing blank.
84429         * m4/intmax_t.m4: Likewise.
84430
84431 2003-07-10  Jim Meyering  <jim@meyering.net>
84432
84433         * lib/vasnprintf.c: Remove trailing blanks.
84434         Make cpp indentation consistent.
84435
84436 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84437
84438         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84439         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84440         Switch from LGPL to GPL.
84441
84442 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84443
84444         * config/srclist.txt: Sort sublists.  Add
84445         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84446         that differ from gnulib for one reason or another; we'd like this list
84447         to be smaller but for now let's document what we have.
84448
84449 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84450
84451         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84452         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84453         and sweeter "eval x=$x".
84454         * config/srclist.txt: Get lib/argp* from glibc.
84455
84456 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/mktime.c: Fix some boundary cases and remove need for floating
84459         point.
84460
84461         Issue a compile-time diagnostic if time_t is floating point, or if
84462         two's complement arithmetic is not in effect, or if arithmetic
84463         right shift does not propagate the sign.  These assumptions were
84464         all in the original code but they weren't checked.
84465
84466         (TIME_T_MIDPOINT, verify): New macros.
84467         (__isleap): Remove; it has integer overflow problems.
84468         (leapyear): New function, without those problems.
84469         (ydhms_tm_diff): Remove; splitting into two parts.
84470         (ydhms_diff): New function, containing the arithmetic part of
84471         the old ydhms_tm_diff function.  Issue a compile-time
84472         diagnostic if we are not using C99 integer division.
84473         Avoid casts when possible.
84474         (guess_time_tm): New function, containing the checking part of
84475         the old ydhms_tm_diff function.  Return the new value, rather than
84476         the difference between it and the old.  Accept a new argument T
84477         so that *T specifies the old value.  Check for overflow in the result.
84478
84479         (__mktime_internal): Use a time_t offset, not a long int offset.
84480         This undoes the 2003-06-04 change, which is no longer needed now
84481         that we have better overflow checking.
84482         (localtime_offset): Likewise.
84483
84484         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84485         and long are 64-bit but int is only 32-bit.
84486         (ydhms_diff): Use long int to store year1 and yday1.
84487         Issue a compile-time diagnostic if long int is not wide enough.
84488
84489         (__mktime_internal): Use long int to store adjusted year and yday.
84490         Use plain C rather than preprocessor commands, if that doesn't
84491         affect efficiency.
84492         Check for overflow (and try to repair) after each probe
84493         rather than checking only at the very end.  This avoids some bugs
84494         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84495         does not equal GMT offset at maximum time).
84496         Use integer to check for overflow rather than floating point; this
84497         is more portable to non-IEEE hosts, and is a tad faster.
84498         When we detect that we are oscillating between two values,
84499         don't check whether tm_isdst has the requested value, since
84500         we already know the answer.  When tm_isdst has the wrong value,
84501         use a different heuristic to find the right one, based on the
84502         extreme values actually observed in practice in tz2003a,
84503         rather than the (overly optimistic) "previous 3 calendar quarters".
84504
84505         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84506         "T const" to accommodate glibc style.
84507         (check_result): Use less-confusing report format.  "long" -> "long int.
84508         (main): Likewise.
84509         Don't loop if the iteration overflows time_t.
84510         Allow a negative step in the iteration.
84511
84512 2003-07-06  Karl Berry  <karl@gnu.org>
84513
84514         * config/depcomp: update from automake.
84515         * config/config.sub: update from prep.
84516
84517 2003-07-03  Karl Berry  <karl@gnu.org>
84518
84519         * config/config.guess: update from prep.
84520
84521 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84522
84523         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84524         xreadlink.c now includes it unconditionally.
84525
84526 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84527
84528         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84529         having it depend on HAVE_SYS_TYPES_H.
84530
84531 2003-07-01  Bruno Haible  <bruno@clisp.org>
84532
84533         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84534         <sys/types.h> should be sufficient.
84535         Reported by Paul Eggert.
84536
84537 2003-06-26  Karl Berry  <karl@gnu.org>
84538
84539         * config/depcomp: update from automake.
84540
84541 2003-06-26  Bruno Haible  <bruno@clisp.org>
84542
84543         * modules/human: Depend on module stdbool.
84544
84545 2003-06-25  Bruno Haible  <bruno@clisp.org>
84546
84547         * modules/readlink: New file.
84548         * modules/xreadlink: Depend on it.
84549         * MODULES.html.sh (func_all_modules): Add readlink.
84550
84551 2003-06-25  Bruno Haible  <bruno@clisp.org>
84552
84553         * m4/readlink.m4: New file.
84554
84555 2003-06-25  Bruno Haible  <bruno@clisp.org>
84556
84557         * lib/readlink.c: New file.
84558
84559 2003-06-22  Karl Berry  <karl@gnu.org>
84560
84561         * config/srclist.txt: update mkinstalldirs from automake.
84562         * config/mkinstalldirs: update.
84563
84564 2003-06-22  Bruno Haible  <bruno@clisp.org>
84565
84566         Portability to mingw32.
84567         * m4/ssize_t.m4: New file, from GNU gettext.
84568         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84569         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84570
84571 2003-06-22  Bruno Haible  <bruno@clisp.org>
84572
84573         * modules/safe-read: Add m4/ssize_t.m4.
84574         * modules/xreadlink: Add m4/ssize_t.m4.
84575
84576 2003-06-20  Bruno Haible  <bruno@clisp.org>
84577
84578         Assume C89, so PARAMS isn't needed.
84579         * lib/unicodeio.h (PARAMS): Remove.
84580         * lib/unicodeio.c: Don't use PARAMS.
84581
84582 2003-06-18  Karl Berry  <karl@gnu.org>
84583
84584         * config/config.{guess,sub}: update from prep.
84585
84586 2003-06-18  Jim Meyering  <jim@meyering.net>
84587
84588         Merge changes from coreutils.
84589         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84590         Remove explicit declarations of xmalloc and realloc.
84591         Include xalloc.h.
84592         (read_utmp): Remove anachronistic cast of xmalloc.
84593
84594 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84595
84596         Assume C89, so PARAMS isn't needed.
84597         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84598         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84599         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84600         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84601         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84602         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84603         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84604         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84605         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84606         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84607         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84608         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84609         no longer needed. Anyway, config.h should always be included before any
84610         other file.
84611
84612 2003-06-11  Simon Josefsson  <jas@extundo.com>
84613
84614         * modules/sysexits: New file.
84615         * MODULES.html.sh (func_all_modules): Add sysexits.
84616
84617 2003-06-11  Simon Josefsson  <jas@extundo.com>
84618
84619         * lib/sysexit_.h: New file.
84620
84621 2003-06-11  Derek Price  <derek@ximbiot.com>
84622
84623         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84624         necessary.
84625
84626 2003-06-11  Bruno Haible  <bruno@clisp.org>
84627
84628         * m4/sysexits.m4: New file.
84629
84630 2003-06-10  Simon Josefsson  <jas@extundo.com>
84631
84632         * lib/argp.h: New file, from glibc.
84633         * lib/argp-ba.c: New file, from glibc.
84634         * lib/argp-eexst.c: New file, from glibc.
84635         * lib/argp-fmtstream.c: New file, from glibc.
84636         * lib/argp-fmtstream.h: New file, from glibc.
84637         * lib/argp-fs-xinl.c: New file, from glibc.
84638         * lib/argp-help.c: New file, from glibc.
84639         * lib/argp-namefrob.h: New file, from glibc.
84640         * lib/argp-parse.c: New file, from glibc.
84641         * lib/argp-pv.c: New file, from glibc.
84642         * lib/argp-pvh.c: New file, from glibc.
84643         * lib/argp-xinl.c: New file, from glibc.
84644
84645 2003-06-10  Simon Josefsson  <jas@extundo.com>
84646
84647         * modules/strchrnul: New file.
84648
84649 2003-06-10  Simon Josefsson  <jas@extundo.com>
84650
84651         * modules/argp: New file.
84652
84653 2003-06-10  Simon Josefsson  <jas@extundo.com>
84654
84655         * m4/strchrnul.m4: New file.
84656
84657 2003-06-10  Simon Josefsson  <jas@extundo.com>
84658
84659         * lib/strchrnul.h: New file.
84660         * lib/strchrnul.c: New file.
84661
84662 2003-06-10  Bruno Haible  <bruno@clisp.org>
84663
84664         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84665
84666 2003-06-07  Karl Berry  <karl@gnu.org>
84667
84668         * config/config.{guess,sub}: update from prep.
84669
84670 2003-06-07  Jim Meyering  <jim@meyering.net>
84671
84672         * modules/strtod: Use $(...) notation, not @...@ for
84673         AC_REPLACE'd variables.
84674         * modules/localcharset: Likewise.
84675
84676 2003-06-07  Jim Meyering  <jim@meyering.net>
84677
84678         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84679         in place of my name in the copyright comment.
84680         Remove definition and uses of __P.
84681
84682         From coreutils.
84683         * lib/stat.c: Don't declare xmalloc explicitly.
84684         Instead, include "xalloc.h".
84685         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84686         xrealloc, and xcalloc return values.
84687         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84688         Improve comment.
84689         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84690
84691 2003-06-07  Bruno Haible  <bruno@clisp.org>
84692
84693         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84694         avoid AC_CONFIG_LINKS.
84695         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84696         fnmatch.h, to avoid AC_CONFIG_LINKS.
84697         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84698
84699 2003-06-07  Bruno Haible  <bruno@clisp.org>
84700
84701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84702         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84703         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84704         directory.
84705         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84706         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84707         directory.
84708
84709 2003-06-06  Jim Meyering  <jim@meyering.net>
84710
84711         Merge from coreutils.
84712         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84713         Consolidate declarations and initializations of *_base* locals.
84714
84715         Merge from coreutils.
84716         This avoids a core dump on systems without GNU putenv,
84717         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84718         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84719         (unsetenv): New static function, from GNU libc.
84720         (rpl_putenv): Use it.
84721
84722         * lib/modechange.c: Remove trailing blanks.
84723
84724         Merge from coreutils.
84725         * lib/fsusage.c: Remove declaration of statfs.
84726         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84727
84728         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84729
84730 2003-06-06  Jim Meyering  <jim@meyering.net>
84731
84732         * lib/stdbool_.h: Renamed from stdbool.h.in.
84733
84734 2003-06-06  Jim Meyering  <jim@meyering.net>
84735             Bruno Haible  <bruno@clisp.org>
84736
84737         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84738         Adjust Makefile.am snippet not to redirect directly to target.
84739         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84740
84741 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84742
84743         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84744         mismatch, look in future quarters as well as past.  This fixes a
84745         bug when processing fall-backwards gaps immediately after a long
84746         period of daylight-saving time.
84747
84748         * lib/mktime.c: Assume freestanding C89 or better.
84749         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84750         (__P): Remove; not used.
84751         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84752         (mktime, not_equal_tm, print_tm, check_result,
84753         main): Use prototypes.  Use const * where appropriate.
84754         (main): Fix typo in testing code that uncovered by above changes.
84755         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84756
84757 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84758
84759         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84760         locale.h, localeconv.  This merges changes from coreutils.
84761
84762         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84763         It can be removed after the next Autoconf is released.
84764         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84765         needed.
84766
84767 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84768
84769         * lib/mktime.c: Fix Debian bug 177940
84770         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84771         (localtime_offset): Now long int, not time_t, because we want it
84772         to be guaranteed to be signed.  All uses changed.
84773         (__mktime_internal): If overflow would occur when adding offset,
84774         don't add it.
84775
84776         Merge 'human' changes from coreutils.  Rewrite to support
84777         locale-specific notations like thousands separators.
84778         * lib/human.c: Simplify authorship notice.
84779         Include human.h immediately after config.h.
84780         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84781         <limits.h>: Do not include, since human.h does.
84782         (SIZE_MAX, UINTMAX_MAX): New macros.
84783         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84784         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84785         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84786         (power_letter): Renamed from suffixes.
84787         (generate_suffix_backwards): Remove.
84788         (adjust_value): Now takes int style (because of human.h changes)
84789         and long double value (for greater precision on some platforms).
84790         (group_number): New function.
84791         (human_readable): Use it.  Use integer options, not enum.
84792         Put the options before the sizes in the arg list.
84793         Support all the new options.
84794         The old human_readable function has been removed;
84795         use inttostr.h instead.
84796         (human_readable, default_block_size, humblock):
84797         Use uintmax_t, not int, for block sizes.
84798         (human_readable_inexact, block_size_types): Remove.
84799         (block_size_opts): New constant.
84800         (human_options): Renamed from human_block_size, with new signature
84801         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84802         * lib/human.h: Add copyright and authorship notice.
84803         Include <limits.h> and <stdbool.h> unconditionally.
84804         (PARAMS): Remove.  All uses removed.
84805         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84806         (enum human_inexact_style): Remove tag; now a nameless enum.
84807         (human_floor, human_ceiling, human_round_to_even): Now have
84808         values 2, 0, 1 rather than -1, 1, 0.
84809         (human_group_digits, human_suppress_point_zero, human_autoscale,
84810         human_base_1024, human_SI, human_B): New constants.
84811         (human_readable_inexact, human_block_size): Remove.
84812         (human_readable): Size args are now uintmax_t, not int.
84813         (human_options): New decl.
84814
84815         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84816         unnecessary now that we assume C89 or better.  This change
84817         imported from coreutils.
84818
84819         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84820         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84821         in the 2003-05-30 sync from glibc.
84822
84823         .h files should stand alone, but we shouldn't include <sys/types.h>
84824         if we can get away with just <stddef.h>.
84825
84826         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84827         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84828         rather than <sys/types.h>, as we merely need size_t.
84829         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84830         to get size_t.
84831         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84832         Include <stdio.h>, to get FILE.
84833         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84834         memcasecmp.h has included <stddef.h> and all we need is size_t.
84835         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84836         our interface, instead of including <sys/types.h>
84837
84838 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84839
84840         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84841         now, as glibc mktime is buggy on non-glibc systems.
84842
84843 2003-06-03  Karl Berry  <karl@gnu.org>
84844
84845         * config/config.sub: update from prep.
84846
84847 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84848
84849         [from coreutils]
84850         Fix some minor time-related bugs with POSIX time arguments.
84851         Some valid time stamps were being rejected (notably -1, and
84852         time stamps before 1900 on 64-bit hosts).  And some invalid
84853         time stamps were being accepted, e.g. September 31.
84854
84855         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84856         that we can return (time_t) -1 successfully.
84857         * lib/posixtm.c: Likewise.
84858         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84859         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84860         (t): Remove static var.
84861         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84862         of static var.  All uses changed.
84863         (year): Do not reject years before 1900; they can occur with
84864         64-bit time_t.
84865         (posix_time_parse): Do not check for out-of-range components;
84866         that is now the caller's responsibility, since our checks were
84867         only approximations.
84868         (posixtime): Use mktime to check for out-of-range components,
84869         since it knows them exactly.
84870         If mktime returns (time_t) -1, check whether an error actually occurred
84871         by invoking localtime on -1.
84872         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84873         posixtime failures better.
84874         Improve the test data (in comments only).
84875
84876 2003-06-02  Karl Berry  <karl@gnu.org>
84877
84878         * config/mkinstalldirs (version): new variable.
84879         (--version): new option.
84880         (usage): improve message.
84881
84882 2003-05-30  Karl Berry  <karl@gnu.org>
84883
84884         * lib/mktime.c: update from libc.
84885
84886 2003-05-30  Bruno Haible  <bruno@clisp.org>
84887
84888         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84889         * config/config.rpath: Upgrade to gettext-0.12.1.
84890
84891 2003-05-30  Bruno Haible  <bruno@clisp.org>
84892
84893         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84894         * m4/nls.m4: New file, from gettext-0.12.1.
84895         * m4/po.m4: New file, from gettext-0.12.1.
84896         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84897
84898 2003-05-30  Bruno Haible  <bruno@clisp.org>
84899
84900         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84901         * lib/localcharset.h: Likewise.
84902         * lib/localcharset.c: Likewise.
84903
84904 2003-05-29  Karl Berry  <karl@gnu.org>
84905
84906         * config/config.rpath: update from gettext.
84907
84908 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84909
84910         Assume the headers required for C89 freestanding compilers.
84911         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84912         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84913         * m4/human.m4 (gl_HUMAN): Likewise.
84914         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84915         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84916         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84917         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84919         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84920
84921 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84922
84923         Assume the headers required for C89 freestanding compilers.
84924         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84925         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84926         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84927         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84928         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84929         define, since <limits.h> is guaranteed to do that.
84930         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84931         * lib/exclude.c: Include <stdbool.h> unconditionally.
84932         * lib/tempname.c: Include <stddef.h> unconditionally.
84933         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84934         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84935         <stddef.h> does that.
84936         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84937         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84938         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84939         needed.
84940         * lib/xstrtol.c: Likewise.
84941         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84942         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84943
84944         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84945         warnings on some platforms.
84946
84947         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84948         arbitrarily.
84949
84950 2003-05-26  Jim Meyering  <jim@meyering.net>
84951
84952         Merge in a change from coreutils:
84953         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84954         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84955         that condition, rather than `-1' which is slightly misleading.
84956         Change the name of the cache variable to have the gl_ prefix.
84957         Prompted by a patch from Richard Dawe for DJGPP.
84958
84959 2003-05-24  Karl Berry  <karl@gnu.org>
84960
84961         * config/config.guess: update from prep.
84962
84963 2003-05-22  Karl Berry  <karl@gnu.org>
84964
84965         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84966
84967 2003-05-20  Karl Berry  <karl@gnu.org>
84968
84969         * config/config.guess: update from prep.
84970
84971 2003-05-18  Karl Berry  <karl@gnu.org>
84972
84973         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84974         might actually be set by the user.
84975
84976         * config/depcomp, install-sh, mdate-sh: update from automake.
84977
84978 2003-05-17  Bruno Haible  <bruno@clisp.org>
84979
84980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84981         invalid expansion for AC_EGREP_CPP.
84982         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84983         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84984         Suggested by Akim Demaille <akim@epita.fr> in
84985         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84986
84987 2003-05-12  Jim Meyering  <jim@meyering.net>
84988
84989         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84990         the space-padded-by-default conversion specifiers, %e, %k, %l.
84991
84992 2003-05-12  Bruno Haible  <bruno@clisp.org>
84993
84994         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84995         the string is longer than 4 KB.
84996
84997 2003-05-11  Karl Berry  <karl@gnu.org>
84998
84999         * config/config.{guess,sub}: update from prep.
85000
85001 2003-05-09  Bruno Haible  <bruno@clisp.org>
85002
85003         * modules/error: Add m4/strerror_r.m4 to file list.
85004
85005 2003-05-03  Bruno Haible  <bruno@clisp.org>
85006
85007         Upgrade to Unicode-4.0.
85008         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85009         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85010         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85011         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85012         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85013         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85014         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85015         Change width of U+E0100..U+E01EF from 1 to 0.
85016
85017 2003-04-25  Jim Meyering  <jim@meyering.net>
85018
85019         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85020         of type size_t, not int.
85021
85022 2003-04-25  Bruno Haible  <bruno@clisp.org>
85023
85024         * lib/copy-file.c: Include <stddef.h>, for size_t.
85025
85026 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85027
85028         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85029         code which expansion is under static control.  Patch imported from
85030         Akim Demaille's patch to Bison; see
85031         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85032
85033 2003-04-14  Bruno Haible  <bruno@clisp.org>
85034
85035         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85036
85037 2003-04-11  Jim Meyering  <jim@meyering.net>
85038
85039         Merge changes from Coreutils.
85040
85041         2003-03-22  Jim Meyering  <jim@meyering.net>
85042
85043         * lib/strftime.c (widen): Cast alloca return value to proper type.
85044
85045         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85046
85047         From GNU libc.
85048         * lib/strftime.c (my_strftime): Handle very large width
85049         specifications for numeric values correctly.  Improve checks for
85050         overflow.
85051
85052         2003-01-19  Jim Meyering  <jim@meyering.net>
85053
85054         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85055         definitions.
85056         (nl_get_alt_digit) [! defined my_strftime]: Define.
85057         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85058         _nl_get_alt_digit and _nl_get_walt_digit.
85059
85060         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85061         libc. These changes have no effect outside of _LIBC.
85062
85063 2003-04-10  Bruno Haible  <bruno@clisp.org>
85064
85065         * modules/findprog: New file.
85066         * MODULES.html.sh (func_all_modules): Add it.
85067
85068 2003-04-10  Bruno Haible  <bruno@clisp.org>
85069
85070         * m4/findprog.m4: New file.
85071         * m4/eaccess.m4: New file.
85072
85073 2003-04-10  Bruno Haible  <bruno@clisp.org>
85074
85075         * lib/findprog.h: New file, from GNU gettext.
85076         * lib/findprog.c: New file, from GNU gettext.
85077
85078 2003-04-05  Jim Meyering  <jim@meyering.net>
85079
85080         Merge changes from Coreutils.
85081
85082         * lib/exclude.h (PARAMS): Remove definition and uses.
85083         * lib/exclude.c: Remove uses of `PARAMS'.
85084
85085         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85086         Add test-cases for DOS filenames. Declare program_name.
85087         (main): Set up program_name.  Patch by Rich Dawe.
85088
85089         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85090         error from mntctl.
85091         Use mntctl's return value to drive the entry-processing loop, since
85092         we can't rely on the value of the vmt_length member in the last
85093         entry.  On some systems doing so could result in exhausting
85094         virtual memory.  Based in part on a patch from Mike Jetzer.
85095
85096 2003-04-04  Bruno Haible  <bruno@clisp.org>
85097
85098         * modules/linebreak: New file.
85099         * MODULES.html.sh (func_all_modules): Add it.
85100
85101 2003-04-04  Bruno Haible  <bruno@clisp.org>
85102
85103         * m4/linebreak.m4: New file.
85104
85105 2003-04-04  Bruno Haible  <bruno@clisp.org>
85106
85107         * lib/linebreak.h: New file, from GNU gettext.
85108         * lib/linebreak.c: New file, from GNU gettext with slight
85109         modifications.
85110         * lib/lbrkprop.h: New file, from GNU gettext.
85111
85112 2003-04-03  Bruno Haible  <bruno@clisp.org>
85113
85114         * modules/utf8-ucs4: New file.
85115         * modules/utf16-ucs4: New file.
85116         * modules/ucs4-utf8: New file.
85117         * modules/ucs4-utf16: New file.
85118         * MODULES.html.sh (func_all_modules): Add them.
85119
85120 2003-04-03  Bruno Haible  <bruno@clisp.org>
85121
85122         * m4/utf-ucs4.m4: New file.
85123         * m4/ucs4-utf.m4: New file.
85124
85125 2003-04-03  Bruno Haible  <bruno@clisp.org>
85126
85127         * lib/utf8-ucs4.h: New file, from GNU gettext.
85128         * lib/utf16-ucs4.h: New file, from GNU gettext.
85129         * lib/ucs4-utf8.h: New file, from GNU gettext.
85130         * lib/ucs4-utf16.h: New file, from GNU gettext.
85131
85132 2003-04-02  Bruno Haible  <bruno@clisp.org>
85133
85134         * modules/binary-io: New file.
85135         * MODULES.html.sh (func_all_modules): Add it.
85136
85137 2003-04-02  Bruno Haible  <bruno@clisp.org>
85138
85139         * lib/binary-io.h: New file, from GNU gettext.
85140
85141 2003-04-01  Bruno Haible  <bruno@clisp.org>
85142
85143         * modules/pathname: New file.
85144         * MODULES.html.sh (func_all_modules): Add it.
85145
85146 2003-04-01  Bruno Haible  <bruno@clisp.org>
85147
85148         * lib/pathname.h: New file, from GNU gettext.
85149         * lib/concatpath.c: New file, from GNU gettext.
85150
85151 2003-03-30  Bruno Haible  <bruno@clisp.org>
85152
85153         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85154
85155 2003-03-30  Bruno Haible  <bruno@clisp.org>
85156
85157         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85158         function chown() doesn't exist.
85159
85160 2003-03-28  Bruno Haible  <bruno@clisp.org>
85161
85162         * modules/copy-file: New file.
85163         * MODULES.html.sh (func_all_modules): Add it.
85164
85165 2003-03-28  Bruno Haible  <bruno@clisp.org>
85166
85167         * m4/copy-file.m4: New file.
85168
85169 2003-03-28  Bruno Haible  <bruno@clisp.org>
85170
85171         * lib/copy-file.h: New file, from GNU gettext.
85172         * lib/copy-file.c: New file, from GNU gettext.
85173
85174 2003-03-18  Jim Meyering  <jim@meyering.net>
85175
85176         * lib/quote.c (quote_n): Fix typo in comment.
85177
85178 2003-03-18  Bruno Haible  <bruno@clisp.org>
85179
85180         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85181         checking.
85182         * m4/onceonly_2_57.m4: Likewise.
85183
85184 2003-03-17  Bruno Haible  <bruno@clisp.org>
85185
85186         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85187         (m4_quote): Remove macro.
85188         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85189
85190 2003-03-14  Jim Meyering  <jim@meyering.net>
85191
85192         Merge changes from Coreutils.
85193         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85194         to be const, in order to avoid warnings.
85195         (obstack_room): Likewise.
85196         (obstack_empty_p): Likewise.
85197
85198 2003-03-14  Bruno Haible  <bruno@clisp.org>
85199
85200         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85201         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85202
85203 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85204
85205         Merge changes from Bison.
85206         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85207         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85208         when compiling Bison 1.875's `bitset bset = obstack_alloc
85209         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85210         * lib/hash.c: Include <stdbool.h> unconditionally.
85211
85212 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85213
85214         * m4/onceonly.m4 (m4_quote): New macro.
85215         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85216         Quote AC_FOREACH variable-expansions properly.
85217
85218 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85219
85220         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85221
85222 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85223
85224         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85225         Reported by Bruce Becker; see:
85226         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85227
85228 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85229             Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85232         Reported by John Hughes, see
85233         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85234
85235 2003-02-20  Bruno Haible  <bruno@clisp.org>
85236
85237         * MODULES.html.sh (func_all_modules): Add poll.
85238
85239 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85240
85241         * modules/poll: New file.
85242
85243 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85244
85245         * lib/poll_.h: New file.
85246         * lib/poll.c: New file.
85247
85248 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85249
85250         * m4/poll.m4: New file.
85251
85252 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85253
85254         * modules/mathl: New file.
85255
85256 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85257
85258         * lib/mathl.h: New file.
85259         * lib/acosl.c: New file.
85260         * lib/asinl.c: New file.
85261         * lib/atanl.c: New file.
85262         * lib/ceill.c: New file.
85263         * lib/cosl.c: New file.
85264         * lib/expl.c: New file.
85265         * lib/floorl.c: New file.
85266         * lib/frexpl.c: New file.
85267         * lib/ldexpl.c: New file.
85268         * lib/logl.c: New file.
85269         * lib/sincosl.c: New file.
85270         * lib/sinl.c: New file.
85271         * lib/sqrtl.c: New file.
85272         * lib/tanl.c: New file.
85273         * lib/trigl.c: New file.
85274         * lib/trigl.h: New file.
85275
85276 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85277
85278         * m4/mathl.m4: New file.
85279
85280 2003-02-18  Bruno Haible  <bruno@clisp.org>
85281
85282         * MODULES.html.sh (func_all_modules): Add mathl.
85283
85284 2003-02-17  Bruno Haible  <bruno@clisp.org>
85285
85286         * modules/mkdtemp: New module.
85287         * MODULES.html.sh (func_all_modules): Add it.
85288
85289 2003-02-17  Bruno Haible  <bruno@clisp.org>
85290
85291         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85292
85293 2003-02-17  Bruno Haible  <bruno@clisp.org>
85294
85295         * lib/mkdtemp.h: New file, from GNU gettext.
85296         * lib/mkdtemp.c: New file, from GNU gettext.
85297
85298 2003-02-02  Jim Meyering  <jim@meyering.net>
85299
85300         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85301         e.g. glibc-2.2.93.
85302
85303 2003-01-31  Bruno Haible  <bruno@clisp.org>
85304
85305         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85306         'rpl_rename'.
85307         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85308         'rpl_strnlen'.
85309         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85310         'rpl_strtod'.
85311         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85312         'rpl_utime'.
85313
85314 2003-01-31  Bruno Haible  <bruno@clisp.org>
85315
85316         * lib/rename.c: #undef rename before defining rpl_rename.
85317         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85318
85319 2003-01-30  Bruno Haible  <bruno@clisp.org>
85320
85321         * modules/vasnprintf, modules/vasprintf: New modules.
85322         * MODULES.html.sh (func_all_modules): Add them.
85323
85324 2003-01-30  Bruno Haible  <bruno@clisp.org>
85325
85326         * m4/signed.m4: New file, from GNU gettext.
85327         * m4/longdouble.m4: New file, from GNU gettext.
85328         * m4/wchar_t.m4: New file, from GNU gettext.
85329         * m4/wint_t.m4: New file, from GNU gettext.
85330         * m4/vasnprintf.m4: New file.
85331         * m4/vasprintf.m4: New file.
85332
85333 2003-01-30  Bruno Haible  <bruno@clisp.org>
85334
85335         * lib/printf-args.h: New file, from GNU gettext.
85336         * lib/printf-args.c: New file, from GNU gettext.
85337         * lib/printf-parse.h: New file, from GNU gettext.
85338         * lib/printf-parse.c: New file, from GNU gettext.
85339         * lib/vasnprintf.h: New file, from GNU gettext.
85340         * lib/vasnprintf.c: New file, from GNU gettext.
85341         * lib/asnprintf.c: New file, from GNU gettext.
85342         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85343         * lib/vasprintf.c: New file, from GNU gettext.
85344         * lib/asprintf.c: New file, from GNU gettext.
85345
85346 2003-01-29  Bruno Haible  <bruno@clisp.org>
85347
85348         * modules/stpncpy: New module.
85349         * MODULES.html.sh (func_all_modules): Add it.
85350
85351 2003-01-29  Bruno Haible  <bruno@clisp.org>
85352
85353         * m4/stpncpy.m4: New file.
85354
85355 2003-01-29  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85358         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85359
85360 2003-01-28  Bruno Haible  <bruno@clisp.org>
85361
85362         * modules/c-ctype: New module.
85363         * MODULES.html.sh (func_all_modules): Add it.
85364
85365 2003-01-28  Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85368         Paul Eggert.
85369         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85370         Paul Eggert.
85371
85372 2003-01-27  Bruno Haible  <bruno@clisp.org>
85373
85374         * modules/xsetenv: New module.
85375         * MODULES.html.sh (func_all_modules): Add it.
85376
85377 2003-01-27  Bruno Haible  <bruno@clisp.org>
85378
85379         * lib/xsetenv.h: New file, from GNU gettext.
85380         * lib/xsetenv.c: New file, from GNU gettext.
85381
85382 2003-01-23  Jim Meyering  <jim@meyering.net>
85383
85384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85385         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85386
85387 2003-01-23  Bruno Haible  <bruno@clisp.org>
85388
85389         * modules/minmax: New module.
85390         * MODULES.html.sh (func_all_modules): Add it.
85391
85392 2003-01-23  Bruno Haible  <bruno@clisp.org>
85393
85394         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85395         Eggert.
85396
85397 2003-01-22  Bruno Haible  <bruno@clisp.org>
85398
85399         * modules/exit: New module.
85400         * MODULES.html.sh (func_all_modules): Add it.
85401
85402 2003-01-22  Bruno Haible  <bruno@clisp.org>
85403
85404         * lib/exit.h: New file, from GNU gettext.
85405
85406 2003-01-19  Bruno Haible  <bruno@clisp.org>
85407
85408         * gnulib-tool: Recognize option --extract-maintainer.
85409         (func_get_maintainer): New function.
85410         * modules/*: Add Maintainer entry.
85411
85412 2003-01-16  Jim Meyering  <jim@meyering.net>
85413
85414         * m4/regex.m4: The `regex' struct is both input and output.
85415         Initialize it before each use.  Patch by Tim Waugh.
85416
85417 2003-01-16  Bruno Haible  <bruno@clisp.org>
85418
85419         * MODULES.html.sh: Add a table of contents. Add the module name as
85420         leftmost column. Add hyperlinks.
85421
85422 2003-01-15  Bruno Haible  <bruno@clisp.org>
85423
85424         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85425
85426 2003-01-15  Bruno Haible  <bruno@clisp.org>
85427
85428         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85430         suffix.
85431
85432 2003-01-15  Bruno Haible  <bruno@clisp.org>
85433
85434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85435
85436 2003-01-15  Bruno Haible  <bruno@clisp.org>
85437
85438         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85439         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85440
85441 2003-01-14  Jim Meyering  <jim@meyering.net>
85442
85443         * lib/same.c (same_name): Tweak a comment.
85444
85445 2003-01-14  Bruno Haible  <bruno@clisp.org>
85446
85447         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85448         when a string comparison is sufficient.
85449
85450 2003-01-14  Bruno Haible  <bruno@clisp.org>
85451
85452         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85453         'unsigned int'.
85454
85455 2003-01-14  Bruno Haible  <bruno@clisp.org>
85456
85457         * lib/hash-pjw.c: Add comment about low quality of this function.
85458
85459 2003-01-13  Bruno Haible  <bruno@clisp.org>
85460
85461         * modules/stpcpy: Distribute lib/stpcpy.h.
85462         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85463
85464 2003-01-13  Bruno Haible  <bruno@clisp.org>
85465
85466         * modules/*: Add a description.
85467         * modules/strpbrk: Fix Makefile.am snippet.
85468         * modules/strtoimax: Fix dependencies.
85469         * modules/strtoumax: Likewise.
85470
85471 2003-01-13  Bruno Haible  <bruno@clisp.org>
85472
85473         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85474         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85475         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85476
85477 2003-01-13  Bruno Haible  <bruno@clisp.org>
85478
85479         * gnulib-tool (func_create_testdir): Store config/* files in the main
85480         directory.
85481         * config.rpath: Move to ...
85482         * config/config.rpath: ... here.
85483         * modules/gettext: Contains config/config.rpath, not config.rpath.
85484         * modules/iconv: Likewise.
85485
85486 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85487
85488         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85489         to avoid collisions with libcurses and libreadline.
85490
85491         * m4/getstr.m4: Remove.
85492         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85493
85494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85495
85496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85497         to avoid collisions with libcurses and libreadline.
85498
85499         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85500         * lib/getstr.h, getstr.c: Remove.
85501         * lib/getline.c: Include "getline.h", to check interface.
85502         Move body of old getstr.c here: this defines MIN_CHUNK and
85503         declares getdelim2, which is renamed from getstr.
85504         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85505
85506         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85507         All uses changed.
85508         * lib/linebuffer.h: Likewise.
85509         (readline): Remove backward-compatibility macro.
85510
85511 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85512
85513         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85514         to avoid collisions with libcurses and libreadline.
85515         * getstr: Remove.
85516         * MODULES.html.sh: Remove getstr.
85517         * modules/getline: Depend on unlocked-io, not getstr.
85518
85519 2003-01-12  Jim Meyering  <jim@meyering.net>
85520
85521         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85522
85523 2003-01-10  Bruno Haible  <bruno@clisp.org>
85524
85525         * modules/alloca: Change Makefile.am requirements. Simplify Include
85526         requirements. Add lib/alloca_.h to file list.
85527
85528 2003-01-10  Bruno Haible  <bruno@clisp.org>
85529
85530         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85531
85532 2003-01-10  Bruno Haible  <bruno@clisp.org>
85533
85534         * lib/alloca_.h: New file.
85535         * lib/getdate.y: Unconditionally include alloca.h.
85536         * lib/makepath.c: Likewise.
85537         * lib/setenv.c: Likewise.
85538         * lib/userspec.c: Likewise.
85539
85540 2003-01-09  Karl Berry  <karl@gnu.org>
85541
85542         * MODULES.html.sh: include `dirname $0` in PATH, to find
85543         gnulib-tool.
85544
85545 2003-01-09  Bruno Haible  <bruno@clisp.org>
85546
85547         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85548         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85549
85550 2003-01-09  Bruno Haible  <bruno@clisp.org>
85551
85552         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85553
85554 2003-01-09  Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/stdbool.h.in: New file.
85557
85558 2003-01-09  Bruno Haible  <bruno@clisp.org>
85559
85560         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85561         * MODULES.html.sh: Likewise.
85562
85563 2003-01-08  Jim Meyering  <jim@meyering.net>
85564
85565         * lib/full-write.c: Undefine and define-away `const' after inclusion
85566         of errno.h, not before.  Suggestion from Bruno Haible.
85567
85568 2003-01-08  Bruno Haible  <bruno@clisp.org>
85569
85570         * modules/full-read: Depend on full-write.
85571
85572 2003-01-08  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/safe-read.c: Include specification header first, to ensure its
85575         selfcontainedness.
85576         * lib/full-write.c: Likewise.
85577
85578 2003-01-07  Jim Meyering  <jim@meyering.net>
85579
85580         * lib/full-write.c: Rework so that it may serve to define full_read,
85581         too.
85582         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85583
85584 2003-01-07  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85587         <inttypes.h>.
85588         * lib/xstrtol.h: Likewise.
85589         * lib/xstrtoimax.c: Likewise.
85590         * lib/xstrtoumax.c: Likewise.
85591         * lib/human.h: Likewise.
85592
85593         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85594         on systems that have <inttypes.h> but not <stdint.h>.
85595
85596 2003-01-07  Bruno Haible  <bruno@clisp.org>
85597
85598         * MODULES.html.sh: Add copyright notice.
85599         (missed_files): Omit CVS directory entries.
85600         (func_module): Make it work with sed-3.02.
85601         * MODULES.txt: Remove file.
85602
85603 2003-01-06  Jim Meyering  <jim@meyering.net>
85604
85605         * lib/version-etc.c: Update year in translatable copyright string.
85606
85607 2003-01-03  Karl Berry  <karl@gnu.org>
85608
85609         * config/config.{guess,sub}: update from prep.
85610
85611 2003-01-02  Karl Berry  <karl@gnu.org>
85612
85613         * doc/COPYING.DOC: belatedly updated to 1.2.
85614
85615 2003-01-01  Karl Berry  <karl@gnu.org>
85616
85617         * gnulib-tool (func_verify_module): report module name $module in
85618         error message, not $1.
85619         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85620         be created, only if it doesn't exist.
85621         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85622
85623 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85624
85625         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85626
85627 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85628
85629         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85630         memcmp if strcoll doesn't work.
85631
85632 2002-12-31  Bruno Haible  <bruno@clisp.org>
85633
85634         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85635         nonempty.
85636
85637 2002-12-31  Bruno Haible  <bruno@clisp.org>
85638
85639         * lib/memcoll.c (STRCOLL): New macro.
85640         (memcoll): Use it.
85641
85642 2002-12-31  Bruno Haible  <bruno@clisp.org>
85643
85644         * lib/localcharset.h: New file.
85645         * lib/localcharset.c: Include it.
85646         * lib/unicodeio.c: Likewise.
85647
85648 2002-12-31  Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85651         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85652
85653 2002-12-31  Bruno Haible  <bruno@clisp.org>
85654
85655         * lib/getline.h: Include <stddef.h>, for size_t.
85656
85657         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85658         * lib/unicodeio.c: Don't include <stddef.h>.
85659
85660 2002-12-31  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85663         HAVE_TM_ZONE.
85664
85665 2002-12-24  Karl Berry  <karl@gnu.org>
85666
85667         * config/config.guess: update from prep.
85668
85669 2002-12-24  Bruno Haible  <bruno@clisp.org>
85670
85671         General infrasructure.
85672         * m4/README: Rewritten.
85673         * m4/onceonly.m4: New file.
85674         * m4/onceonly_2_57.m4: New file.
85675
85676         Module atexit.
85677         * m4/atexit.m4: New file.
85678
85679         Module strtod.
85680         * m4/strtod.m4: New file.
85681
85682         Module strtol.
85683         * m4/strtol.m4: New file.
85684
85685         Module strtoul.
85686         * m4/strtoul.m4: New file.
85687
85688         Module memchr.
85689         * m4/memchr.m4: New file.
85690
85691         Module memcmp.
85692         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85693         (jm_FUNC_MEMCMP): Invoke it.
85694
85695         Module memcpy.
85696         * m4/memcpy.m4: New file.
85697
85698         Module memmove.
85699         * m4/memmove.m4: New file.
85700
85701         Module memset.
85702         * m4/memset.m4: New file.
85703
85704         Module strcspn.
85705         * m4/strcspn.m4: New file.
85706
85707         Module strpbrk.
85708         * m4/strpbrk.m4: New file.
85709
85710         Module strstr.
85711         * m4/strstr.m4: New file.
85712
85713         Module strerror.
85714         * m4/strerror.m4: New file.
85715
85716         Module mktime.
85717         * m4/mktime.m4: Renamed from jm-mktime.m4.
85718         (gl_PREREQ_MKTIME): New macro.
85719         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85720
85721         Module malloc.
85722         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85723         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85724         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85725
85726         Module realloc.
85727         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85728         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85729         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85730
85731         Module strftime.
85732         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85733         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85734         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85735         gl_TM_GMTOFF.
85736         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85737
85738         Module xalloc.
85739         * m4/xalloc.m4: New file.
85740
85741         Module alloca.
85742         * m4/alloca.m4: New file.
85743
85744         Module putenv.
85745         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85746         (jm_FUNC_PUTENV): Invoke it.
85747
85748         Module setenv.
85749         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85750         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85751         when invoked twice.
85752         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85753         gt_FUNC_SETENV.
85754
85755         Module memrchr.
85756         * m4/memrchr.m4: New file.
85757
85758         Module stpcpy.
85759         * m4/stpcpy.m4: New file.
85760
85761         Module strcase.
85762         * m4/strcase.m4: New file.
85763
85764         Module strdup.
85765         * m4/strdup.m4: New file.
85766
85767         Module strnlen.
85768         * m4/strnlen.m4: New file.
85769
85770         Module strndup.
85771         * m4/strndup.m4: New file.
85772
85773         Module xstrtod.
85774         * m4/xstrtod.m4: New file.
85775
85776         Module xstrtol.
85777         * m4/xstrtol.m4: New file.
85778
85779         Module getdate.
85780         * m4/getdate.m4: New file.
85781
85782         Module unlocked-io.
85783         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85784         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85785         * m4/jm-glibc-io.m4n: Remove file.
85786
85787         Module long-options.
85788         * m4/long-options.m4: New file.
85789
85790         Module md5.
85791         * m4/md5.m4: New file.
85792
85793         Module sha.
85794         * m4/sha.m4: New file.
85795
85796         Module getstr.
85797         * m4/getstr.m4: New file.
85798
85799         Module getline.
85800         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85801         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85802         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85803         simply getline. Infoke gl_PREREQ_GETLINE.
85804
85805         Module obstack.
85806         * m4/obstack.m4: New file.
85807
85808         Module hash.
85809         * m4/hash.m4: New file.
85810
85811         Module readtokens.
85812         * m4/readtokens.m4: New file.
85813
85814         Module strverscmp.
85815         * m4/strverscmp.m4: New file.
85816
85817         Module stdbool.
85818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85819         OSF/1.
85820
85821         Module strtoll.
85822         * m4/strtoll.m4: New file.
85823
85824         Module strtoull.
85825         * m4/strtoull.m4: New file.
85826
85827         Module strtoimax.
85828         * m4/strtoimax.m4: New file.
85829
85830         Module strtoumax.
85831         * m4/strtoumax.m4: New file.
85832
85833         Module xstrtoimax.
85834         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85835         jm_AC_PREREQ_XSTRTOIMAX.
85836         Moved the strtol prerequisites to strtol.m4.
85837         Moved the strtoll prerequisites to strtoll.m4.
85838         Moved the strtoimax prerequisites to strtoimax.m4.
85839
85840         Module xstrtoumax.
85841         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85842         jm_AC_PREREQ_XSTRTOUMAX.
85843         Moved the strtoul prerequisites to strtoul.m4.
85844         Moved the strtoull prerequisites to strtoull.m4.
85845         Moved the strtoumax prerequisites to strtoumax.m4.
85846
85847         Module chown.
85848         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85849         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85850
85851         Module dup2.
85852         * m4/dup2.m4: New file.
85853
85854         Module ftruncate.
85855         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85856         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85857
85858         Module getgroups.
85859         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85860         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85861
85862         Module gettimeofday.
85863         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85864         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85865         gl_PREREQ_GETTIMEOFDAY.
85866
85867         Module mkdir.
85868         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85869         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85870
85871         Module mkstemp.
85872         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85873         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85874         jm_AC_TYPE_UINTMAX_T.
85875         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85876
85877         Module stat.
85878         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85879         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85880
85881         Module lstat.
85882         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85883         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85884
85885         Module timespec.
85886         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85887         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85888         * m4/st_mtim.m4: Indentation.
85889
85890         Module nanosleep.
85891         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85892         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85893         gl_PREREQ_NANOSLEEP.
85894
85895         Module regex.
85896         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85897         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85898         (gl_REGEX): New macro.
85899
85900         Module rename.
85901         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85902         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85903
85904         Module rmdir.
85905         * m4/rmdir.m4: New file.
85906
85907         Module utime.
85908         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85909         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85910         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85911
85912         Module dirname.
85913         * m4/dirname.m4: New file.
85914
85915         Module getopt.
85916         * m4/getopt.m4: New file.
85917
85918         Module unistd-safer.
85919         * m4/unistd-safer.m4: New file.
85920
85921         Module fnmatch.
85922         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85923         declaration.
85924         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85925         (gl_FUNC_FNMATCH_POSIX): New macro.
85926         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85927         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85928         simply fnmatch.
85929
85930         Module exclude.
85931         * m4/exclude.m4: New file.
85932
85933         Module human.
85934         * m4/human.m4: New file.
85935
85936         Module acl.
85937         * m4/acl.m4: Nop.
85938
85939         Module backupfile.
85940         * m4/backupfile.m4: New file.
85941         * m4/d-ino.m4: Indentation.
85942
85943         Module fsusage.
85944         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85945         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85946         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85947
85948         Module dirfd.
85949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85950         requirements.
85951
85952         Module euidaccess.
85953         * m4/euidaccess.m4: New file.
85954
85955         Module file-type.
85956         * m4/file-type.m4: New file.
85957
85958         Module fileblocks.
85959         * m4/fileblocks.m4: New file.
85960
85961         Module filemode.
85962         * m4/filemode.m4: New file.
85963
85964         Module isdir.
85965         * m4/isdir.m4: New file.
85966
85967         Module lchown.
85968         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85969         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85970
85971         Module makepath.
85972         * m4/makepath.m4: New file.
85973
85974         Module modechange.
85975         * m4/modechange.m4: New file.
85976
85977         Module mountlist.
85978         * m4/mountlist.m4: New file.
85979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85980         Indentation.
85981
85982         Module path-concat.
85983         * m4/path-concat.m4: New file.
85984
85985         Module pathmax.
85986         * m4/pathmax.m4: New file.
85987
85988         Module same.
85989         * m4/same.m4: New file.
85990
85991         Module save-cwd.
85992         * m4/save-cwd.m4: New file.
85993
85994         Module savedir.
85995         * m4/savedir.m4: New file.
85996
85997         Module xgetcwd.
85998         * m4/xgetcwd.m4: New file.
85999         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86000
86001         Module xreadlink.
86002         * m4/xreadlink.m4: New file.
86003
86004         Module safe-read.
86005         * m4/safe-read.m4: New file.
86006
86007         Module safe-write.
86008         * m4/safe-write.m4: New file.
86009
86010         Module closeout.
86011         * m4/closeout.m4: New file.
86012
86013         Module stdio-safer.
86014         * m4/stdio-safer.m4: New file.
86015
86016         Module getpass.
86017         * m4/getpass.m4: New file.
86018
86019         Module getugroups.
86020         * m4/getugroups.m4: New file.
86021
86022         Module group-member.
86023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86024         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86025
86026         Module idcache.
86027         * m4/idcache.m4: New file.
86028
86029         Module userspec.
86030         * m4/userspec.m4: New file.
86031
86032         Module gettime.
86033         * m4/clock_time.m4: New file.
86034         * m4/gettime.m4: New file.
86035
86036         Module settime.
86037         * m4/settime.m4: New file.
86038
86039         Module posixtm.
86040         * m4/posixtm.m4: New file.
86041
86042         Module gethostname.
86043         * m4/gethostname.m4: New file.
86044
86045         Module canon-host.
86046         * m4/canon-host.m4: New file.
86047
86048         Module gettext.
86049         * m4/codeset.m4: New file, from gettext-0.11.5.
86050         * m4/gettext.m4: New file, from gettext-0.11.5.
86051         * m4/glibc21.m4: New file, from gettext-0.11.5.
86052         * m4/iconv.m4: New file, from gettext-0.11.5.
86053         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86054         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86055         * m4/inttypes.m4: New file, from gettext-0.11.5.
86056         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86057         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86058         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86059         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86060         * m4/lib-link.m4: New file, from gettext-0.11.5.
86061         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86062         * m4/progtest.m4: New file, from gettext-0.11.5.
86063         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86064         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86065         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86066
86067         Module localcharset.
86068         * m4/localcharset.m4: New file.
86069
86070         Module hard-locale.
86071         * m4/hard-locale.m4: New file.
86072
86073         Module mbswidth.
86074         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86075         onceonly macros.
86076         * m4/mbrtowc.m4: Add comment.
86077
86078         Module memcasecmp.
86079         * m4/memcasecmp.m4: New file.
86080
86081         Module memcoll.
86082         * m4/memcoll.m4: New file.
86083
86084         Module unicodeio.
86085         * m4/unicodeio.m4: New file.
86086
86087         Module rpmatch.
86088         * m4/rpmatch.m4: New file.
86089
86090         Module yesno.
86091         * m4/yesno.m4: New file.
86092
86093         Module exitfail.
86094         * m4/exitfail.m4: New file.
86095
86096         Module c-stack.
86097         * m4/c-stack.m4 (gl_C_STACK): New macro.
86098         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86099
86100         Module error.
86101         * m4/error.m4 (gl_ERROR): New macro.
86102         (jm_PREREQ_ERROR): Use onceonly macros.
86103
86104         Module fatal.
86105         * m4/fatal.m4: New file.
86106
86107         Module getloadavg.
86108         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86109         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86110
86111         Module getpagesize.
86112         * m4/getpagesize.m4: New file.
86113
86114         Module getusershell.
86115         * m4/getusershell.m4: New file.
86116
86117         Module physmem.
86118         * m4/physmem.m4: New file.
86119
86120         Module posixver.
86121         * m4/posixver.m4: New file.
86122
86123         Module quotearg.
86124         * m4/quotearg.m4: New file.
86125
86126         Module quote.
86127         * m4/quote.m4: New file.
86128
86129         Module readutmp.
86130         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86131
86132         Module sig2str.
86133         * m4/sig2str.m4: New file.
86134
86135         Other.
86136         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86137         ulonglong.m4.
86138         * m4/intmax_t.m4: New file.
86139         * m4/d-type.m4: Indentation.
86140         * m4/jm-macros.m4: Update.
86141         * m4/prereq.m4 (jm_PREREQ): Update.
86142         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86143         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86144         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86145         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86146         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86147         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86148         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86149         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86150         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86151         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86152         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86153         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86154         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86155         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86156         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86157         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86158         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86159         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86160         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86161
86162 2002-12-24  Bruno Haible  <bruno@clisp.org>
86163
86164         * MODULES.txt: Update according to m4/ changes.
86165
86166         Module gettext.
86167         * config.rpath: New file, from gettext-0.11.5.
86168
86169         * modules/*: New module descriptions.
86170         * gnulib-tool: New file.
86171         * MODULES.html.sh: New file.
86172
86173 2002-12-21  Karl Berry  <karl@gnu.org>
86174
86175         * doc/fdl.texi: update to version 1.2.
86176
86177 2002-12-19  Karl Berry  <karl@gnu.org>
86178
86179         * config/config.guess: update from prep.
86180
86181 2002-12-18  Bruno Haible  <bruno@clisp.org>
86182
86183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86184         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86185
86186 2002-12-17  Bruno Haible  <bruno@clisp.org>
86187
86188         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86189         stdlib.h, string.h.
86190
86191 2002-12-17  Bruno Haible  <bruno@clisp.org>
86192
86193         * lib/canon-host.c (strdup): Remove unused declaration.
86194
86195         * lib/fsusage.c: Include full_read.h.
86196         (get_fs_usage): Use full_read instead of safe_read.
86197
86198         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86199
86200 2002-12-12  Karl Berry  <karl@gnu.org>
86201
86202         * config/config.guess: update from prep.
86203
86204 2002-12-11  Bruno Haible  <bruno@clisp.org>
86205
86206         * m4/setenv.m4: New file, from gettext-0.11.5.
86207
86208 2002-12-11  Bruno Haible  <bruno@clisp.org>
86209
86210         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86211         not unsetenv().
86212         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86213         modifications:
86214
86215         2002-12-11  Bruno Haible  <bruno@clisp.org>
86216
86217                 * setenv.c (alloca): Fall back to malloc.
86218                 (freea): New macro.
86219                 (setenv): Use freea() to free memory allocated with alloca().
86220
86221         2002-11-13  Bruno Haible  <bruno@clisp.org>
86222
86223                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86224                 function declarations.
86225                 * unsetenv.c (unsetenv): Likewise.
86226
86227         2002-03-04  Bruno Haible  <bruno@clisp.org>
86228
86229                 Portability to AIX 4.3.3.
86230                 * unsetenv.c: New file, extracted from setenv.c.
86231                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86232
86233         2001-12-20  Bruno Haible  <bruno@clisp.org>
86234
86235                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86236                 use malloc instead. For SunOS 4.
86237
86238         2001-12-11  Bruno Haible  <bruno@clisp.org>
86239
86240                 * setenv.c: Declare alloca.
86241                 (compar_fn_t): New typedef.
86242                 (KNOWN_VALUE, STORE_VALUE): Use it.
86243
86244         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86245         setenv.h.
86246
86247 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86248
86249         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86250         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86251         Choose values that are less likely to collide with system fnmatch
86252         options.
86253         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86254         defined (e.g., a pure POSIX system).
86255         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86256         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86257
86258 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86259
86260         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86261         a pain in practice to deal with generated m4 files.  This change
86262         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86263
86264         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86265         and jm-glibc-io.m4, as they are no longer a special case.
86266         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86267         kludge and the auto-generation stuff.  Check only whether the
86268         functions are declared, not whether they exist, since older hosts
86269         that don't declare the functions can't use the optimization anyway.
86270
86271 2002-12-06  Jim Meyering  <jim@meyering.net>
86272
86273         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86274
86275         Merge in changes from libc's misc/error.c, in preparation
86276         for the merge of gnulib's changes back into libc.
86277
86278         * lib/error.c (_): Define only if not already defined.
86279         Move definition to follow all #include directives.
86280         Include unlocked-io.h only if !_LIBC.
86281         [_LIBC]: Include <libio/libioP.h>.
86282         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86283         (fflush): Tweak definition to use INTUSE.
86284         (putc): Define.
86285
86286 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86287
86288         * lib/alloca.c [defined emacs]: Include "lisp.h".
86289         (xalloc_die) [defined emacs]: New macro.
86290         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86291         [! defined emacs]: Include <xalloc.h>.
86292         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86293         (pointer): Typedef to POINTER_TYPE *.
86294         (malloc): Remove decl; we now always use xmalloc.
86295         (alloca): Use old-style definition, since Emacs needs this.
86296         Check for arithmetic overflow when computing combined size.
86297
86298 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86299
86300         Do not generate unlocked-io.h automatically, since it's easier to
86301         maintain it by hand.
86302
86303         * lib/unlocked-io.h: New file, from GNU diffutils,
86304         but with proper copyright notice and attribution.
86305         * lib/gen-uio: Remove.
86306         * lib/Makefile.am: Add copyright notice.
86307         (libfetish_a_SOURCES): Add unlocked-io.h.
86308         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86309         (DISTCLEANFILES, io_functions): Remove macros.
86310         (EXTRA_DIST): Remove gen_uio.
86311         (unlocked-io.h): Remove rule.
86312
86313 2002-12-04  Jim Meyering  <jim@meyering.net>
86314
86315         Reflect the fact that stat.c and lstat.c are no longer generated.
86316         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86317         (DISTCLEANFILES): Likewise.
86318         (EXTRA_DIST): Likewise.
86319         (all_local): Don't depend on stat.c or lstat.c.
86320         (stat.c, lstat.c): Remove rules.
86321         (EXTRA_DIST): Remove xstat.in.
86322
86323         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86324         * lib/stat.c: New file.  Contents mostly from xstat.in.
86325         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86326         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86327
86328         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86329         too.
86330         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86331
86332 2002-12-03  Jim Meyering  <jim@meyering.net>
86333
86334         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86335         but not semantics, to minimize the differences between these two files.
86336         (safe_read): Change comment to mention SAFE_READ_ERROR.
86337
86338         * lib/safe-read.c (IS_EINTR): Define.
86339         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86340
86341 2002-12-02  Jim Meyering  <jim@meyering.net>
86342
86343         * lib/safe-read.c (EINTR): Define.
86344         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86345         (INT_MAX): Provide fallback.
86346         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86347
86348         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86349
86350 2002-12-02  Bruno Haible  <bruno@clisp.org>
86351
86352         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86353         Define, taken from safe-read.c.
86354         (INT_MAX): Provide fallback.
86355         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86356         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86357
86358         * lib/safe-read.c (EINTR): Remove definition.
86359         (safe_read): Don't use EINTR if it is absent.
86360
86361 2002-12-01  Jim Meyering  <jim@meyering.net>
86362
86363         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86364         zero.
86365         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86366
86367 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86368
86369         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86370         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86371         with `if (! (value < limit)) abort ();', for readability.
86372
86373 2002-11-26  Karl Berry  <karl@gnu.org>
86374
86375         * lib/strdup.c: copy from libc again, with jim's ok.
86376         * lib/.cppi-disable: re-add strdup.c
86377
86378 2002-11-25  Karl Berry  <karl@gnu.org>
86379
86380         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86381         instead of "strtol.c".
86382
86383 2002-11-25  Karl Berry  <karl@gnu.org>
86384
86385         * config/install-sh: update from automake for variable quoting, $0 in
86386         error msgs, etc.
86387
86388         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86389         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86390         entry.
86391
86392 2002-11-25  Jim Meyering  <jim@meyering.net>
86393
86394         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86395
86396 2002-11-24  Karl Berry  <karl@gnu.org>
86397
86398         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86399         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86400
86401 2002-11-24  Jim Meyering  <jim@meyering.net>
86402
86403         Update from coreutils:
86404
86405         * lib/mktime.c: Merge in changes from libc.
86406
86407         Avoid a link-time failure on some Linux systems.
86408         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86409         (otherwise).
86410         (__mon_yday): Declare with the STATIC attribute.
86411         (__mktime_internal): Likewise.
86412         Based on a report from Greg Schafer.
86413
86414 2002-11-23  Jim Meyering  <jim@meyering.net>
86415
86416         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86417         Use `unsigned', not `int', as type of index.
86418
86419         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86420
86421         * lib/fsusage.c: Remove unneeded parentheses around operands of
86422         `defined'.
86423
86424 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86425
86426         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86427         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86428         so that we can be included first.
86429         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86430         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86431         No need to include stddef.h or sys/types.h any more.
86432         Surround local include files with "", not "<>".
86433         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86434         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86435         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86436         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86437         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86438         (ISPRINT): Remove; no longer needed now that we assume C89.
86439
86440         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86441         Preserve errno.
86442
86443         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86444         quotearg_char): Use SIZE_MAX rather than
86445         (size_t) -1 when we are talking about "infinity".
86446
86447         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86448
86449 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86450
86451         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86452         hint that one should use `if (! x) abort ();' rather than `assert
86453         (x);', and anyway it's one less thing to worry about configuring.
86454         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86455         hash_rehash, hash_insert): Use abort rather than assert.
86456
86457 2002-11-22  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/safe-read.h: Assume C89. Add comments.
86460         (safe_read): Change return type to size_t.
86461         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86462         byte counts > SSIZE_MAX correctly.
86463         * lib/safe-write.h: New file.
86464         * lib/safe-write.c: New file.
86465         * lib/full-read.h: New file.
86466         * lib/full-read.c: New file.
86467         * lib/full-write.h: Assume C89. Add comments.
86468         * lib/full-write.c: Include safe-write.h.
86469         (full_write): Rewritten to use safe_write.
86470         Suggested by Jim Meyering and Paul Eggert.
86471
86472 2002-11-21  Jim Meyering  <jim@meyering.net>
86473
86474         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86475
86476         Merge in changes from the coreutils.
86477
86478         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86479         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86480         <stdint.h>.
86481         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86482         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86483         int.  Work more efficiently if X is the same width as uintmax_t.
86484         Do not compare X to -1, to avoid bogus compiler warning.
86485         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86486         Don't assume that f_frsize and f_bsize are the same type.
86487
86488         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86489         warning on FreeBSD.
86490
86491         * lib/makepath.c (make_path): Restore umask *before* creating the final
86492         component.
86493         (make_path): Minor reformatting.
86494
86495         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86496         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86497         HAVE_MALLOC/HAVE_REALLOC.
86498
86499         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86500         dummy ones.  At least on GNU/Linux systems, `auto' means something
86501         else.
86502         From Michael Stone.
86503
86504 2002-11-21  Bruno Haible  <bruno@clisp.org>
86505
86506         Remove case insensitive option matching.
86507         * lib/argmatch.h (argcasematch): Remove declaration.
86508         (ARGCASEMATCH): Remove macro.
86509         (__xargmatch_internal): Remove case_sensitive argument.
86510         (XARGMATCH): Update.
86511         (XARGCASEMATCH): Remove macro.
86512         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86513         case_sensitive argument.
86514         (argcasematch): Remove function.
86515         (__xargmatch_internal): Remove case_sensitive argument.
86516         (main): Use XARGMATCH instead of XARGCASEMATCH.
86517
86518         * lib/xmalloc.c: Change compile-time error message. Add comment about
86519         required autoconf version.
86520
86521 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86522
86523         Merge argmatch cleanups from Bison.  Assume C89.
86524
86525         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86526         Include stdlib.h, for EXIT_FAILURE.
86527         Always include <string.h>, since we assume C89.
86528         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86529         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86530         Include <stddef.h> instead, since it's all we need for size_t.
86531         (PARAMS): Remove.  All uses removed.
86532         (ARRAY_CARDINALITY): Do not bother to #undef.
86533         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86534         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86535         Remove unnecessary parentheses.
86536         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86537         Insert necessary parentheses.
86538         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86539         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86540
86541 2002-11-19  Bruno Haible  <bruno@clisp.org>
86542
86543         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86544         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86545
86546         * lib/mbswidth.h (PARAMS): Remove macro.
86547         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86548         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86549
86550         * lib/gcd.h (PARAMS): Remove macro.
86551         (gcd): Use ANSI C function declarations.
86552         * lib/gcd.c (gcd): Likewise.
86553
86554 2002-11-15  Bruno Haible  <bruno@clisp.org>
86555
86556         * lib/strcspn.c: Include <stddef.h>.
86557         (strcspn): Use ANSI C function declaration. Change return type to
86558         size_t. Use NULL.
86559         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86560         (strpbrk): Use NULL.
86561         * lib/strpbrk.h (PARAMS): Remove macro.
86562         (strpbrk): Use ANSI C function declaration.
86563         * lib/strstr.c: Don't include <sys/types.h>.
86564         * lib/strstr.h (PARAMS): Remove macro.
86565         (strstr): Use ANSI C function declarations.
86566
86567 2002-11-14  Karl Berry  <karl@gnu.org>
86568
86569         * config/mkinstalldirs: `do' on separate line, instead of
86570         `for var; do'.
86571
86572 2002-11-06  Bruno Haible  <bruno@clisp.org>
86573
86574         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86575         * lib/gcd.c (gcd): Likewise.
86576
86577 2002-11-05  Bruno Haible  <bruno@clisp.org>
86578
86579         * lib/gcd.h: New file, from gettext-0.11.5.
86580         * lib/gcd.c: New file, from gettext-0.11.5.
86581
86582 2002-11-05  Bruno Haible  <bruno@clisp.org>
86583
86584         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86585         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86586         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86587         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86588
86589         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86590         <libintl.h>.
86591         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86592         <libintl.h>.
86593
86594         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86595         * lib/human.c: Include gettext.h instead of <libintl.h>.
86596         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86597         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86598         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86599         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86600         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86601         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86602         (textdomain): Remove definition.
86603         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86604
86605         * lib/long-options.c: Remove include of <libintl.h> and definition of
86606         _.
86607         * lib/same.c: Remove include of <libintl.h> and definition of _.
86608
86609 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86610
86611         * lib/config.charset: A few additions for Solaris.
86612
86613 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86614
86615         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86616         * lib/localcharset.c (locale_charset): Declare as extern "C".
86617
86618 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86619
86620         * lib/config.charset: msdos in uk_UA uses CP1125.
86621
86622 2002-11-04  Bruno Haible  <bruno@clisp.org>
86623
86624         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86625         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86626         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86627         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86628         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86629
86630 2002-11-04  Bruno Haible  <bruno@clisp.org>
86631
86632         * lib/localcharset.c (locale_charset): Don't return an empty string.
86633
86634 2002-11-04  Bruno Haible  <bruno@clisp.org>
86635
86636         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86637         aliases.
86638
86639 2002-11-04  Bruno Haible  <bruno@clisp.org>
86640
86641         * lib/config.charset: Update for newest glibc. Add canonical names
86642         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86643
86644 2002-11-04  Bruno Haible  <bruno@clisp.org>
86645
86646         * lib/config.charset: Add support for NetBSD.
86647
86648 2002-11-04  Bruno Haible  <bruno@clisp.org>
86649
86650         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86651
86652 2002-11-01  Bruno Haible  <bruno@clisp.org>
86653
86654         * configure.in: Add AC_CONFIG_AUX_DIR call.
86655         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86656         test/Makefile.
86657         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86658
86659 2002-09-28  Karl Berry  <karl@gnu.org>
86660
86661         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86662         installed automake until the next release, since changes have been
86663         made.
86664
86665 2002-09-25  Karl Berry  <karl@gnu.org>
86666
86667         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86668         * lib/getopt*: copy from libc/posix.
86669         * lib/gettext.h: copy from gettext.
86670         * lib/.cppi-disable: add strdup.c, gettext.h.
86671
86672 2002-09-25  Karl Berry  <karl@gnu.org>
86673
86674         * config/srclist.txt: enable gettext.h check.
86675         * config/config.{guess,sub}: update from prep.
86676         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86677                 from automake 1.6.3.
86678         See srclist*.
86679
86680 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86681
86682         * regex.c (PATFETCH): Remove the translating fetch.
86683         (PATFETCH_RAW): Rename to PATFETCH.
86684         (set_image_of_range): New fun.
86685         (SET_RANGE_TABLE_WORK_AREA): Use it.
86686         (regex_compile): Don't translate the pattern chars so eagerly.
86687         Only do it when inserting an `exactn' bytecode or when handling
86688         a char-range.
86689         (mutually_exclusive_p): Avoid empty statement.
86690
86691 2002-07-06  Jim Meyering  <meyering@lucent.com>
86692
86693         * m4/README: Don't mention Makefile.am.in.
86694         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86695
86696 2002-07-01  Jim Meyering  <meyering@lucent.com>
86697
86698         * lib/c-stack.c: Include sys/time.h.
86699         From Volker Borchert.
86700
86701 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86702
86703         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86704
86705 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86706
86707         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86708         New macro.  Use it uniformly instead of
86709         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86710         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86711         reported by Vin Shelton.
86712
86713 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86714
86715         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86716         Do not assume SA_SIGINFO behavior.
86717         Bug reported by Jim Meyering on NetBSD 1.5.2.
86718
86719 2002-06-22  Jim Meyering  <meyering@lucent.com>
86720
86721         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86722         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86723
86724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86725         now that configure.ac uses AC_GNU_SOURCE.
86726         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86727         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86728
86729         Update to latest tools.  Suggestions from Paul Eggert.
86730         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86731         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86732         * m4/fnmatch.m4: Likewise.
86733         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86734         to AC_HEADER_STDBOOL
86735
86736 2002-06-22  Jim Meyering  <meyering@lucent.com>
86737
86738         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86739         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86740
86741 2002-06-22  Jim Meyering  <meyering@lucent.com>
86742
86743         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86744
86745         * lib/exitfail.c, exitfail.h: Likewise.
86746         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86747
86748         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86749         of fnmatch.h.
86750         (EXTRA_DIST): Add fnmatch_loop.c.
86751         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86752
86753         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86754         * lib/fnmatch.c: Update from diffutils-2.8.2.
86755         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86756         * lib/fnmatch.h: Remove file.
86757
86758 2002-06-21  Jim Meyering  <meyering@lucent.com>
86759
86760         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86761         * m4/mbrtowc.m4: Likewise.
86762
86763         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86764         * m4/mbswidth.m4: Reflect name change:
86765         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86767
86768         * m4/lib-link.m4: Update from gettext-0.11.2.
86769         * m4/gettext.m4: Likewise.
86770
86771         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86772         From Alfred M. Szmidt.
86773
86774 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86775
86776         * lib/file-type.h: Report an error if neither S_ISREG nor
86777         S_IFREG is defined, instead of using a test specific to glibc
86778         2.2.  This should be safe, since POSIX requires S_ISREG and
86779         Unix Version 7 had S_IFREG.  We don't need to check for
86780         <sys/types.h> since we don't use any symbols that it defines.
86781
86782 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86783
86784         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86785         $@-t, so that each temporary file name is unique and valid in the first
86786         8 characters, for operation under DOS.
86787
86788 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86789
86790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86791
86792 2002-06-15  Jim Meyering  <meyering@lucent.com>
86793
86794         Work even with DJGPP 2.03, which lacks support for symlinks.
86795         From Richard Dawe.
86796         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86797         is defined.
86798         * lib/lchown.c (S_ISLNK): Likewise.
86799
86800 2002-06-15  Jim Meyering  <meyering@lucent.com>
86801
86802         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86803         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86804         have been included before this file.
86805
86806 2002-06-14  Jim Meyering  <meyering@lucent.com>
86807
86808         * lib/file-type.h: Use the version from diffutils-2.8.2.
86809         * lib/file-type.c: Likewise.
86810
86811 2002-06-07  Jim Meyering  <meyering@lucent.com>
86812
86813         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86814         They're needed at least for NetBSD 1.5.2.
86815         ($statxfs_includes): Include those same headers.
86816         ($statxfs_includes): Include sys/vfs.h if available.
86817         ($statxfs_includes): Likewise for sys/statvfs.h.
86818         Check for the following members in both structs statfs and statvfs:
86819         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86820
86821 2002-06-01  Jim Meyering  <meyering@lucent.com>
86822
86823         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86824         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86825
86826 2002-05-28  Jim Meyering  <meyering@lucent.com>
86827
86828         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86829         Reported by Volker Borchert.
86830
86831 2002-05-27  Jim Meyering  <meyering@lucent.com>
86832
86833         Fix a problem seen only on nonconforming systems whereby ls.c's
86834         use of localtime, and then of gettimeofday would cause trouble:
86835         the localtime call used to initialize rpl_gettimeofday's save
86836         mechanism would clobber ls's current local time information so
86837         that in any long listing the first file would always be listed
86838         with date 1970-01-01.  Analysis by Volker Borchert.
86839
86840         * lib/gettimeofday.c (localtime): Undefine.
86841         (rpl_localtime): New function.
86842
86843 2002-05-27  Jim Meyering  <meyering@lucent.com>
86844
86845         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86846         localtime.
86847
86848         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86849         use the replacement function; it wouldn't resolve at link time.
86850         Reported by Volker Borchert.
86851
86852 2002-05-22  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86855         file-type.h.
86856         * lib/file-type.h: New file.
86857         * lib/file-type.c (file_type): New file/function.  Extracted from
86858         diffutils.
86859
86860 2002-04-30  Jim Meyering  <meyering@lucent.com>
86861
86862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86863
86864 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86865
86866         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86867
86868 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86869
86870         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86871         Do not check for alloca.h (no longer used) or stdbool.h (was never
86872         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86873
86874 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86875
86876         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86877
86878 2002-04-29  Jim Meyering  <meyering@lucent.com>
86879
86880         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86881         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86882         Use AC_FUNC_STRNLEN here instead.
86883
86884         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86885         With autoconf-2.53a, it's part of AC_PROG_CC.
86886
86887 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86888
86889         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86891
86892 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86893
86894         * lib/sig2str.h, lib/sig2str.c: New files.
86895         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86896
86897 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86898
86899         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86900         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86901         of 127, since 64 is the largest conceivable number for ancient
86902         nonstandard hosts.
86903         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86904
86905 2002-04-28  Jim Meyering  <meyering@lucent.com>
86906
86907         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86908
86909 2002-04-24  Jim Meyering  <meyering@lucent.com>
86910
86911         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86912         (jm_PREREQ): Use it.
86913
86914         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86915         mach/mach.h fcntl.h.
86916         Check for this function: setlocale.
86917
86918 2002-04-24  Jim Meyering  <meyering@lucent.com>
86919
86920         * lib/gettext.h: New file, from Gettext.
86921         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86922         (libfetish_a_SOURCES): Add gettext.h.
86923
86924 2002-04-16  Jim Meyering  <meyering@lucent.com>
86925
86926         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86927         ut_pid, ut_id, ut_exit.
86928
86929 2002-04-16  Jim Meyering  <meyering@lucent.com>
86930
86931         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86932         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86933         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86934
86935 2002-04-12  Jim Meyering  <meyering@lucent.com>
86936
86937         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86938         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86939         existence of the getmntinfo function.  Needed for Darwin 5.3.
86940
86941         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86942         This is necessary at least on Darwin 5.3.
86943
86944         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86945         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86946         strnlen.o in the library, and that makes some versions of ranlib
86947         object.
86948
86949 2002-04-12  Jim Meyering  <meyering@lucent.com>
86950
86951         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86952
86953 2002-04-09  Jim Meyering  <meyering@lucent.com>
86954
86955         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86956         to be more precise.  Rather than saying we're checking whether the
86957         function `works', say what we're testing.
86958         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86959         Reported by Bruno Haible.
86960
86961 2002-03-10  Jim Meyering  <meyering@lucent.com>
86962
86963         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86964         Suggestion from Santiago Vila.
86965
86966 2002-03-08  Jim Meyering  <meyering@lucent.com>
86967
86968         * lib/rename.c: Mention that this wrapper is needed also on
86969         mips-dec-ultrix4.4 systems.
86970
86971 2002-03-02  Jim Meyering  <meyering@lucent.com>
86972
86973         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86974         not HAVE_CLOCK_SETTIME.
86975
86976 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86977
86978         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86979         Check for clock_settime.
86980
86981 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86982
86983         * lib/nanosleep.h: Rename to....
86984         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86985
86986         * lib/gettime.c: New file.
86987         * lib/settime.c: New file.
86988         * lib/stime.c: Remove.
86989
86990         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86991         timespec.h.  Remove nanosleep.h.
86992
86993 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86994
86995         * m4/acl.m4: New file.
86996         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86997         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86998
86999 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87000
87001         * lib/acl.c, lib/acl.h: New files.
87002         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87003
87004 2002-02-24  Jim Meyering  <meyering@lucent.com>
87005
87006         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87007         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87008         cause trouble.  Reported by Nelson Beebe.
87009
87010 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87011
87012         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87013         compilers that don't know that xalloc_die never returns.
87014
87015 2002-02-20  Jim Meyering  <meyering@lucent.com>
87016
87017         * lib/getdate.c: Regenerate using bison-1.33.
87018
87019 2002-02-17  Jim Meyering  <meyering@lucent.com>
87020
87021         * config/config.guess (main): Don't use `head -1'; it's no longer
87022         portable. Use `sed 1q' instead.
87023
87024 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87025
87026         * m4/codeset.m4: Upgrade to gettext-0.11.
87027         * m4/gettext.m4: Upgrade to gettext-0.11.
87028         * m4/glibc21.m4: Upgrade to gettext-0.11.
87029         * m4/iconv.m4: Upgrade to gettext-0.11.
87030         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87031         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87032         * m4/lib-ld.m4: New file, from gettext-0.11.
87033         * m4/lib-link.m4: New file, from gettext-0.11.
87034         * m4/lib-prefix.m4: New file, from gettext-0.11.
87035         * m4/progtest.m4: Upgrade to gettext-0.11.
87036
87037 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87038
87039         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87040         (jm_PREREQ): Use it.
87041
87042 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87043
87044         * lib/posixver.c, lib/posixver.h: New files.
87045         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87046
87047 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87048             Bruno Haible  <bruno@clisp.org>
87049
87050         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87051         (fwrite_success_callback): New declaration.
87052         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87053         print_unicode_char. Call failure callback instead of error.
87054         (fwrite_success_callback): New function.
87055         (exit_failure_callback): New function.
87056         (fallback_failure_callback): New function.
87057         (print_unicode_char): Call unicode_to_mb.
87058
87059 2002-01-26  Jim Meyering  <meyering@lucent.com>
87060
87061         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87062         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87063
87064 2002-01-26  Jim Meyering  <meyering@lucent.com>
87065
87066         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87067
87068 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87069
87070         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87071
87072 2002-01-22  Jim Meyering  <meyering@lucent.com>
87073
87074         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87075         Otherwise, some versions of automake would omit the rule that makes
87076         Makefile from Makefile.in.
87077
87078 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87079
87080         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87081         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87082         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87083         (memcoll): Set errno to zero if there is no error.
87084
87085         * lib/quotearg.c (quotearg_buffer_restyled):
87086         Fix bug with quoting buffers containing NUL when backslashing escapes.
87087         This bug was exposed by the other changes in this patch.
87088         (quotearg_n_options): New arg ARGSIZE.
87089         All callers changed.
87090         (quoting_options_from_style): New function.
87091         (quotearg_n_style): Use it.
87092         (quotearg_n_style_mem): New function.
87093
87094         * lib/quotearg.h (quotearg_n_style_mem): New function.
87095
87096 2002-01-19  Jim Meyering  <meyering@lucent.com>
87097
87098         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87099         Remove useless quotes: DF_PROG="df".
87100         * m4/strnlen.m4: New file.
87101
87102 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87103
87104         * lib/backupfile.c (ISDIGIT): Comment fix.
87105         * lib/getdate.y (ISDIGIT): Likewise.
87106         * lib/posixtm.c (ISDIGIT, year): Likewise.
87107         * lib/strverscmp.c (ISDIGIT): Likewise.
87108         * lib/userspec.c (ISDIGIT): Likewise.
87109
87110 2002-01-16  Jim Meyering  <meyering@lucent.com>
87111
87112         * lib/getdate.y: Add three semicolons, each just before a closing
87113         brace. Bison (as of version 1.31) no longer papers over that mistake.
87114
87115 2002-01-05  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87118
87119 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87120
87121         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87122         not silently exit merely because the output buffer happens to
87123         have nothing pending.
87124
87125 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87126
87127         See the big note in ../ChangeLog.
87128         * lib/human.c (suffixes): Prefer K to k for 1024.
87129         (generate_suffix_backwards): New function.
87130         (human_readable_inexact): Use it.
87131         * lib/xstrtol.c (__xstrtol): If there is no number but there
87132         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87133         Accept 'K' as well as 'k'.
87134
87135 2001-12-15  Jim Meyering  <meyering@lucent.com>
87136
87137         * lib/regex.h (__restrict_arr): Update from libc.
87138
87139         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87140         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87141         (STREQ): Define.
87142
87143 2001-12-14  Jim Meyering  <meyering@lucent.com>
87144
87145         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87146         Suggestion from Bruno Haible.
87147
87148 2001-12-10  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87151         xrealloc, Instead, include "xalloc.h".
87152         (initbuffer): Don't cast xmalloc return value to char*.
87153         (readline): Reword comment.
87154         Don't cast xrealloc return value to char*
87155         Return NULL, not 0.
87156
87157 2001-12-09  Jim Meyering  <meyering@lucent.com>
87158
87159         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87160         about `signed and unsigned type in conditional expression'.
87161         * lib/posixtm.c (posix_time_parse): Likewise.
87162
87163         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87164
87165         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87166         to avoid a pedantic warning.
87167
87168         * lib/getstr.c: Don't include assert.h.
87169         (getstr): Remove warning-evoking assertions.
87170         Return -1 if offset parameter is out of bounds.
87171         Change the type of a local from int to size_t.
87172
87173         * lib/strftime.c (my_strftime_localtime_r): Include this function
87174         definition in the `#if ! HAVE_TM_GMTOFF' block.
87175
87176         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87177         Include xalloc.h instead.
87178
87179 2001-12-02  Jim Meyering  <meyering@lucent.com>
87180
87181         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87182         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87183         included.
87184
87185         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87186         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87187
87188 2001-11-30  Akim Demaille  <akim@epita.fr>
87189
87190         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87191         before being defined.
87192
87193 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87194
87195         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87196         First arg is int, not unsigned.
87197         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87198         (SIZE_MAX, UINT_MAX): New macros.
87199         (quotearg_n_options): Abort if N is negative.
87200         Avoid overflow check on hosts where size_t is 64 bits and int
87201         is 32 bits, as overflow is impossible there.
87202         Fix off-by-one typo that caused unnecessary reallocation.
87203
87204 2001-11-27  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/tempname.c: Merge with version from libc.
87207         * lib/regex.c: Likewise.
87208
87209         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87210         systems for which STDC_HEADERS is 0, it was not included, resulting in
87211         a warning about an integer-to-pointer conversion problem with getenv.
87212         Reported by Volker Borchert.
87213
87214 2001-11-26  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/gtod.h: Remove file.
87217         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87218         * lib/gettimeofday.c: Don't include gtod.h.
87219         (GTOD_init): Remove function.
87220         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87221         Suggestion from Volker Borchert.
87222
87223 2001-11-23  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87226         it.
87227         * lib/hash.c (struct hash_table): Define it here instead.
87228
87229 2001-11-22  Jim Meyering  <meyering@lucent.com>
87230
87231         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87232
87233 2001-11-20  Jim Meyering  <meyering@lucent.com>
87234
87235         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87236         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87237
87238 2001-11-19  Jim Meyering  <meyering@lucent.com>
87239
87240         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87241         directory.  Use "conftestXXXXXX" as the template.
87242         Suggestion from Paul Eggert.
87243
87244         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87245         immediately, so the test doesn't mistakenly hit the max-open-files
87246         limit.
87247
87248 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87249
87250         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87251         (TEMPORARIES): New macro.
87252         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87253         removes an artificial limitation (e.g. HP-UX 10.20, where
87254         TMP_MAX is 17576).
87255
87256 2001-11-18  Jim Meyering  <meyering@lucent.com>
87257
87258         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87259
87260 2001-11-18  Jim Meyering  <meyering@lucent.com>
87261
87262         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87263         on SunOS 4.
87264
87265         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87266         files will be created before anything else.
87267
87268 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87269
87270         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87271         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87272
87273 2001-11-17  Jim Meyering  <meyering@lucent.com>
87274
87275         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87276         Prompted by a report from Bob Proulx.
87277
87278         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87279         Instead, require UTILS_FUNC_MKSTEMP.
87280
87281 2001-11-17  Jim Meyering  <meyering@lucent.com>
87282
87283         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87284         Now, that's done as part of AC_FUNC_STRTOD.
87285
87286 2001-11-17  Jim Meyering  <meyering@lucent.com>
87287
87288         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87289         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87290         rather than group writable.  Patch by Juan F. Codagnone.
87291
87292         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87293         xrealloc, Instead, include "xalloc.h".
87294
87295         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87296         Remove explicit declarations of xmalloc, xrealloc,
87297         and xstrdup.  Instead, include "xalloc.h".
87298
87299         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87300         unlocked-io.h.
87301         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87302         Likewise.
87303         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87304
87305         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87306         Reported by Padraig Brady.
87307
87308         * lib/mkstemp.c: #undef mkstemp.
87309         Include config.h.
87310         (rpl_mkstemp): Rename from mkstemp.
87311         Protoize.
87312
87313 2001-11-16  Jim Meyering  <meyering@lucent.com>
87314
87315         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87316         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87317         determine the amount of total physical memory, use pstat_getstatic.
87318         HPUX-11 doesn't define _SC_PHYS_PAGES.
87319         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87320         If sysconf couldn't be used to determine the amount of available
87321         physical memory, use both pstat_getstatic and pstat_getdynamic.
87322         Based on a patch from Bob Proulx.
87323
87324 2001-11-10  Jim Meyering  <meyering@lucent.com>
87325
87326         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87327         (jm_PREREQ): Use it.
87328
87329 2001-11-09  Jim Meyering  <meyering@lucent.com>
87330
87331         * m4/jm-macros.m4: Require autoconf-2.52f.
87332         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87333         Use these AC_-prefixed names, not the AM_-prefixed ones.
87334
87335         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87336
87337 2001-11-05  Jim Meyering  <meyering@lucent.com>
87338
87339         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87340
87341 2001-11-04  Jim Meyering  <meyering@lucent.com>
87342
87343         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87344         $DEFS.
87345
87346 2001-11-03  Jim Meyering  <meyering@lucent.com>
87347
87348         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87349         of AC_DEFUN.
87350
87351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87352         know the name of the variable in the macro definition.
87353
87354 2001-11-03  Jim Meyering  <meyering@lucent.com>
87355
87356         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87357         in argmatch_to_argument call.
87358
87359         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87360         argument.
87361
87362         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87363         e.g., a fault due to an attempt to free a NULL pointer.
87364
87365 2001-11-01  Jim Meyering  <meyering@lucent.com>
87366
87367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87368         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87369
87370 2001-11-01  Jim Meyering  <meyering@lucent.com>
87371
87372         * lib/dirfd.c, lib/dirfd.h: New files.
87373         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87374
87375         * lib/hash.c (hash_print) [TESTING]: Clean up.
87376
87377 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87378
87379         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87380         to avoid a warning if -Wall.
87381
87382 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87383
87384         * README: New file
87385         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87386         (per RMS's instructions, this is now the canonical source)
87387         * lgpl/, gpl/: New directories.
87388
87389 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87392
87393 2001-10-21  Jim Meyering  <meyering@lucent.com>
87394
87395         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87396         this code would end up calling gettext even in packages built
87397         with --disable-nls.
87398         * lib/getopt.c (_): Likewise.
87399         * lib/regex.c (_): Likewise.
87400
87401 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87402
87403         * m4/error.m4 (jm_PREREQ_ERROR):
87404         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87405         AC_FUNC_STRERROR_R does that.
87406         Check for strerror declaration.
87407
87408         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87409         are supposed to have them these days.
87410         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87411         Merge changes from latest Autoconf CVS.
87412         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87413         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87414         POSIX decided to standardize on the int flavor of strerror_r.
87415
87416 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87417
87418         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87419         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87420         Use strerror_r that is only a macro, even if it is not a function.
87421         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87422         (private_strerror): Use prototypes, not old-style function definition.
87423         (print_errno_message): New function.
87424         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87425         char*-flavored one.
87426         (error_tail, error, error_at_line): Use it.
87427
87428 2001-10-11  Jim Meyering  <meyering@lucent.com>
87429
87430         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87431         and quote_n (1, ... to avoid clobbering a buffer.
87432
87433 2001-10-05  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87436         hash-pjw.h.
87437         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87438         * lib/hash-pjw.h: New file.
87439
87440 2001-09-30  Jim Meyering  <meyering@lucent.com>
87441
87442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87443         `struct fsstat' has the `f_fstypename' member.
87444         Use that to define FS_TYPE, which is now used to make
87445         the getfsstat link test tighter.
87446
87447 2001-09-30  Jim Meyering  <meyering@lucent.com>
87448
87449         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87450         Include <sys/ucred.h>, for Apple Darwin.
87451         Include sys/mount.h and sys/fs_types.h only if available.
87452         (FS_TYPE): Define.
87453         (read_filesystem_list): Use FS_TYPE.
87454
87455 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87456
87457         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87458         a boolean context.
87459
87460 2001-09-29  Jim Meyering  <meyering@lucent.com>
87461
87462         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87463         [one-argument getmntent function]): Include stdio.h before mntent.h.
87464         SunOS 4.1.x needs it for the declaration of `FILE'.
87465         Patch by Volker Borchert.
87466
87467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87468         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87469         sys/fs_types.h, and make the link-test for getfsstat guard #include
87470         directives with appropriate #if HAVE_*_H tests so that we can
87471         detect getfsstat on Apple Darwin1.3.7 systems.
87472         Reported by Nelson Beebe.
87473         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87474
87475 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87476
87477         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87478         #defines strtoimax.  Also treat the other strto* functions
87479         like strtoimax.
87480
87481         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87482         Check for strtoul and strtoumax,
87483         as those declarations are made even in the signed case.
87484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87485         Likewise, for strtol and strtoimax.
87486
87487 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87488
87489         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87490         #defines strtoimax.  Also treat the other strto* functions
87491         like strtoimax.
87492
87493         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87494         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87495         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87496
87497 2001-09-26  Jim Meyering  <meyering@lucent.com>
87498
87499         Most macros in unlocked-io.h had the wrong number of arguments.
87500         * lib/gen-uio: New script.
87501         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87502         * lib/unlocked-io.hin: Remove file.
87503         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87504         rather than trying to embed it here.
87505         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87506         Reported by Padraig Brady.
87507
87508 2001-09-25  Volker Borchert  <bt@teknon.de>
87509
87510         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87511         `result'.
87512
87513 2001-09-24  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87516
87517 2001-09-23  Jim Meyering  <meyering@lucent.com>
87518
87519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87520         instead of the mere test for existence of mntent.h.  The latter
87521         would get a false-positive on AIX 3.4 systems.
87522         In the outer getmntent if-block, don't die if neither of the getmntent
87523         tests succeeds.  Instead, just fall through and continue with the
87524         remaining tests.
87525
87526 2001-09-23  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/mountlist.c: Remove useless parentheses in #if directives.
87529         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87530         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87531
87532 2001-09-22  Jim Meyering  <meyering@lucent.com>
87533
87534         * m4/gettext.m4: New file.  From gettext.
87535         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87536         * m4/progtest.m4: Likewise
87537         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87538         * m4/glibc21.m4: Likewise.
87539
87540         * m4/libintl.m4: Remove.  No longer used.
87541
87542 2001-09-22  Jim Meyering  <meyering@lucent.com>
87543
87544         * lib/localcharset.c: Update from latest gettext.
87545         * lib/config.charset: Likewise.
87546
87547 2001-09-20  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87550         strtoimax.
87551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87552         strtoumax.
87553
87554 2001-09-20  Jim Meyering  <meyering@lucent.com>
87555
87556         * lib/xstrtol.c (strtoimax): Guard declaration with
87557         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87558         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87559         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87560         (strtoumax): Likewise, for completeness (it wasn't necessary).
87561
87562 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87563
87564         * lib/strtoimax.c (HAVE_LONG_LONG):
87565         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87566         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87567         to work around bug in IBM C compiler.
87568
87569 2001-09-17  Jim Meyering  <meyering@lucent.com>
87570
87571         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87572         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87573         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87574         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87575         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87576         whenever the right hand side need not be expanded by the shell.
87577
87578 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87579
87580         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87581         library.  It's not correct, as some older glibcs are buggy.
87582         fnmatch wasn't fixed until glibc 2.2.
87583
87584         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87585         special shell magic here.
87586
87587 2001-09-16  Jim Meyering  <meyering@lucent.com>
87588
87589         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87590         * m4/jm-macros.m4: Require it.
87591
87592 2001-09-16  Jim Meyering  <meyering@lucent.com>
87593
87594         * lib/mkdir.c: New file.
87595
87596 2001-09-15  Jim Meyering  <meyering@lucent.com>
87597
87598         * m4/jm-macros.m4: Check for help2man.
87599
87600 2001-09-11  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87603         The body, by Paul Eggert, was moved here from configure.in.
87604         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87605
87606 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87607
87608         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87609         (jm_PREREQ): Use it.
87610
87611 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87612
87613         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87614         Use ssize_t, not int, to store result of readlink.
87615         Check for ssize_t overflow as well as size_t overflow,
87616         as POSIX says the result of readlink is implementation-defined
87617         when ssize_t overflows.
87618         Remove unnecessary cast to char*.
87619         Use free+malloc instead of realloc, as the storage doesn't need
87620         to be preserved and it's clearer and can be more efficient that way.
87621         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87622         * lib/xreadlink.h (xreadlink): Update prototype.
87623
87624 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87625
87626         * lib/xgetcwd.c: Revert some of the previous change; intead,
87627         fix the HAVE_GETCWD_NULL code to behave more like the
87628         !HAVE_GETCWD_NULL code used to.
87629
87630         Include "xalloc.h".
87631         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87632         invoke xalloc_die.
87633
87634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87635
87636         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87637         sys/param.h, as pathmax.h includes them.
87638
87639 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87640
87641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87642         (jm_PREREQ_XGETCWD): New macro.
87643
87644         * m4/getcwd.m4: New file.
87645
87646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87647
87648         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87649         like the HAVE_GETCWD_NULL code.
87650         Include pathmax.h if not HAVE_GETCWD.
87651         Do not include xalloc.h.
87652         (INITIAL_BUFFER_SIZE): New symbol.
87653         Do not use xmalloc / xrealloc, since the caller is responsible for
87654         handling errors.  Preserve errno around `free' during failure.
87655         Do not overrun buffer when using getwd.
87656
87657 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87658
87659         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87660         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87661         getcwd (NULL, 0).
87662
87663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87664
87665         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87666         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87667         spotted by Jim Meyering.
87668
87669 2001-09-03  Jim Meyering  <meyering@lucent.com>
87670
87671         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87672         failure.
87673
87674 2001-09-02  Jim Meyering  <meyering@lucent.com>
87675
87676         * lib/error.c: Update from GNU libc.
87677
87678 2001-09-01  Jim Meyering  <meyering@lucent.com>
87679
87680         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87681         Used by df.
87682
87683 2001-09-01  Jim Meyering  <meyering@lucent.com>
87684
87685         * lib/xreadlink.c: New file.
87686         * lib/xreadlink.h: New file.
87687         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87688         xreadlink.h.
87689
87690         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87691         doesn't conflict with sparc Solaris 7's definition in
87692         /usr/include/sys/int_types.h.
87693
87694         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87695         files.
87696         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87697         and strncasecmp as r-values.  Unixware didn't have declarations.
87698
87699 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87700
87701         * lib/xstrtol.h: Add copyright notice.
87702         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87703         LONGINT_INVALID_SUFFIX_CHAR.
87704
87705 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87706
87707         * lib/xstrtol.c (strtoimax): New decl.
87708
87709 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87710
87711         * lib/xgetcwd.c: Don't include pathmax.h.
87712         Include stdlib.h and unistd.h if available.
87713         Include xalloc.h.
87714         (xmalloc, xstrdup, free): Remove decls.
87715         (xgetcwd): Don't assume sizes fit in unsigned.
87716         Check for overflow when computing sizes.
87717         Simplify reallocation code.
87718
87719 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87720
87721         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87722         a directory's st_size can have an arbitrary value, so the old
87723         usage could waste an arbitrary amount of memory.  All uses
87724         changed.
87725         * lib/savedir.h: Update prototype.
87726
87727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87728
87729         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87730
87731         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87732         old strtoimax.c.
87733
87734         Also, make the following further changes to make this file's
87735         configuration more similar to that of strtol.c:
87736         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87737         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87738         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87739         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87740         changed to signed values.
87741
87742         And make the following changes as well:
87743         Fix copyright notice, as 1999 was missing.
87744         (verify): New macro.
87745         (strtoimax): Check sizes at compile-time, not run-time.
87746         Prefer strtol to strtoll if both work.
87747         (main): Remove; it was not that useful and was a pain to maintain.
87748
87749         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87750
87751 2001-08-31  Jim Meyering  <meyering@lucent.com>
87752
87753         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87754         Use an initial, malloc'd, buffer of length 128 rather than
87755         a statically allocated one of length 1024.
87756
87757 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87758
87759         Simplify code, partly by assuming autoconf 2.52 semantics.
87760
87761         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87762
87763         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87764         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87765         All uses removed.
87766         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87767         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87768         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87769         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87770         jm_AC_HEADER_INTTYPES_H.
87771         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87772
87773         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87774
87775         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87776         Quote first arg of AC_DEFUN.
87777         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87778         since they are needed to parse the include file even if we need
87779         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87780         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87781         but with opposite signedness.
87782
87783 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87784
87785         Merge 'exclude' changes from tar 1.13.22.
87786         This fixes one or two unlikely storage allocation overflow bugs,
87787         but doesn't change user-visible behavior otherwise.
87788
87789 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87790
87791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87792         (jm_PREREQ_EXCLUDE): New macro.
87793
87794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87795
87796         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87797         tm to be declared.
87798
87799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87800
87801         * lib/hash.c: Remove '2001' from copyright notice.
87802
87803 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87804
87805         * lib/full-write.h: New file.
87806         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87807         * lib/full-write.c: Correct credits, as cccp.c no longer
87808         exists and anyway it was so heavily changed from the old cccp
87809         code as to be unrecognizable.  Include full-write.h.
87810         (full_write): Return size_t, with short writes meaning failure.
87811         All callers changed.  This fixes a bug with large buffers
87812         on 64-bit hosts.
87813         * lib/utime.c: Include full-write.h.
87814
87815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87816
87817         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87818         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87819         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87820         Include if available.
87821         (<xalloc.h>): Include
87822         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87823         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87824         collide with FNM macros.
87825         (struct patopts): New struct.
87826         (struct exclude): Use it, as exclude patterns now come with options.
87827         (new_exclude): Support above changes.
87828         (new_exclude, add_exclude_file):
87829         Initial size must now be a power of two to simplify overflow checking.
87830         (free_exclude, fnmatch_no_wildcards): New function.
87831         (excluded_filename): No longer requires options arg, as the options
87832         are determined by add_exclude.  Now returns bool, not int.
87833         (excluded_filename, add_exclude):
87834         Add support for the fancy new exclusion options.
87835         (add_exclude, add_exclude_file): Now takes int options arg.
87836         Check for arithmetic overflow when computing sizes.
87837         (add_exclude_file): xrealloc might modify errno, so don't
87838         realloc until after errno might be used.
87839
87840         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87841         New macros.
87842         (free_exclude): New decl.
87843         (add_exclude, add_exclude_file): Now takes int options arg.
87844         (excluded_filename): No longer requires options arg, as the options
87845         are determined by add_exclude.  Now returns bool, not int.
87846
87847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87848
87849         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87850
87851 2001-08-27  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87854
87855         * lib/version-etc.c (N_): Remove definition.
87856         Revert most of last change.
87857         Instead, simply don't mark the `Copyright...' string for translation.
87858         Based on advice from Paul Eggert.
87859
87860         * lib/strtoxmax.c: Tweak comment.
87861
87862 2001-08-26  Jim Meyering  <meyering@lucent.com>
87863
87864         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87865
87866         * m4/xstrtoimax.m4: New file.
87867         * m4/xstrtoumax.m4: Add comments explaining why we
87868         AC_REPLACE_FUNCS(strtol).
87869
87870 2001-08-26  Jim Meyering  <meyering@lucent.com>
87871
87872         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87873         of copyright with `%s' so translators don't get an untranslated
87874         message in 2002.
87875         (COPYRIGHT_YEAR): Define.
87876         (version_etc): Use fprintf rather than fputs.
87877         Suggestion from Ulrich Drepper.
87878
87879         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87880
87881         * lib/strtoll.c: New file, from GNU libc.
87882         * lib/xstrtoimax.c: New file.
87883
87884         * lib/xstrtol.h: Add xstrtoimax.
87885         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87886         * lib/strtoimax.c: New file.  Likewise, but first define
87887         STRTOUXMAX_SIGNED.
87888
87889         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87890         ...
87891         * lib/strtoxmax.c: ... then renamed to this.
87892
87893 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87894
87895         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87896         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87897         (jm_AC_TYPE_INTMAX_T): New macro.
87898         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87899
87900         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87901
87902         * m4/longlong.m4: Renamed from ulonglong.m4.
87903         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87904         * m4/uintmax_t.m4: Removed.
87905
87906 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87907
87908         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87909         Port to Solaris 8, where 'sed' requires a space after the 'r'
87910         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87911         Redirect output to $tmp just once.
87912
87913 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87914
87915         * lib/addext.c (<errno.h>): Include.
87916         (errno): Declare if not defined.
87917         (addext): Work correctly when pathconf returns -1 and leaves
87918         errno alone because there is no limit.  Also, work even if
87919         pathconf returns a value greater than SIZE_MAX.
87920
87921 2001-08-12  Jim Meyering  <meyering@lucent.com>
87922
87923         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87924         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87925         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87926         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87927         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87928         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87929         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87930         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87931         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87932         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87933         utime.m4, utimes.m4, xstrtoumax.m4:
87934         Quote the first argument in each use of AC_DEFUN.
87935
87936 2001-08-12  Jim Meyering  <meyering@lucent.com>
87937
87938         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87939         Simply `return getcwd (NULL, 0);'.
87940         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87941         Use 1300 as initial value for length, not PATH_MAX.
87942
87943         * lib/pathmax.h: Clean up cpp syntax.
87944
87945 2001-08-12  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/gettimeofday.c: New file.
87948         * lib/gtod.h: New file.
87949         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87950
87951 2001-08-05  Jim Meyering  <meyering@lucent.com>
87952
87953         * m4/jm-macros.m4: Require autoconf-2.52.
87954
87955 2001-08-04  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87958         stmt, to get in sync with glibc.
87959
87960 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87961
87962         The following changes are from gettext 0.10.39 as maintained by
87963         Bruno Haible.
87964
87965         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87966         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87967         with inverted sense.  All uses changed.
87968
87969         * lib/mbswidth.c: Don't include <limits.h>.
87970         Include <stdlib.h> and <string.h> unconditionally.
87971         (iswcntrl, mbsinit, ISCNTRL): New macros.
87972         (mbsnwidth): Use K&R style function declarations.
87973         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87974         can optimize it when MB_CUR_MAX == 1.
87975         The width of control characters is zero, not 1.
87976
87977 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87978
87979         The following changes are from gettext 0.10.39 as maintained by
87980         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87981
87982         * m4/codeset.m4: Upgrade to serial AM1.
87983         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87984         all uses changed.  Quote first arg of AC_DEFUN.
87985         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87986
87987         * m4/iconv.m4: Upgrade to serial AM2.
87988         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87989         Add --with-libconv-prefix.
87990         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87991         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87992         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87993         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87994         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87995
87996         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87997         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87998         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87999         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88000         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88001         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88002         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88003         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88004         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88005
88006         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88007         string.h any more.
88008
88009         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88010         not the default value.
88011
88012         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88013         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88014         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88015         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88016         Also check for iswcntrl, used for wcwidth fallback.
88017         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88018         to Autoconf 2.13.
88019
88020 2001-08-03  Jim Meyering  <meyering@lucent.com>
88021
88022         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88023         as it was in the original.  Reported by Paul Eggert.
88024
88025 2001-07-16  Jim Meyering  <meyering@lucent.com>
88026
88027         * m4/gettimeofday.m4: New file.
88028         Prompted by a report from Bernhard Baehr.
88029
88030 2001-07-15  Jim Meyering  <meyering@lucent.com>
88031
88032         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88033         stuff. Now it's in ../Makefile.cfg.
88034
88035 2001-07-15  Jim Meyering  <meyering@lucent.com>
88036
88037         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88038         (BUILT_SOURCES): Add unlocked-io.h.
88039         (io_functions): Define.
88040         (unlocked-io.h): New rule.
88041         (DISTCLEANFILES): Add unlocked-io.h.
88042         (all-local): Depend on unlocked-io.h, to ensure it is created.
88043
88044         * lib/unlocked-io.hin: New file
88045
88046         * lib/regex.c: Update from glibc.
88047
88048 2001-07-05  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88051         recommendation.
88052         (libfetish_a_SOURCES): Put all .h files here instead.
88053         Remove a thus-exposed (better checks in automake) duplicate and
88054         two unnecessary .h files.
88055
88056 2001-07-04  Jim Meyering  <meyering@lucent.com>
88057
88058         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88059         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88060         distcheck failure.
88061
88062 2001-07-02  Jim Meyering  <meyering@lucent.com>
88063
88064         The following changes were prompted by suggestions from Bruno Haible.
88065
88066         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88067         is now generated.
88068         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88069         definition of EXTRA_DIST.
88070         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88071         ensure that the generated file is created/updated whenever the list
88072         of $(unlocked_functions) is changed.
88073         (jm-glibc-io.m4): New rule.
88074         (unlocked-io.h): New rule -- currently unused.
88075
88076 2001-06-24  Jim Meyering  <meyering@lucent.com>
88077
88078         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88079         unmatched right bracket, rather than kludging it with an extra,
88080         falsely-matching quote in a comment.  Patch by Akim Demaille.
88081
88082 2001-06-11  Jim Meyering  <meyering@lucent.com>
88083
88084         * lib/regex.c: Update from GNU libc.
88085
88086 2001-05-27  Jim Meyering  <meyering@lucent.com>
88087
88088         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88089         Check for ut_type in struct utmp.
88090
88091 2001-05-27  Jim Meyering  <meyering@lucent.com>
88092
88093         * lib/readutmp.h (UT_TYPE): Define.
88094
88095 2001-05-24  Jim Meyering  <meyering@lucent.com>
88096
88097         * lib/argmatch.c: Include "quote.h".
88098         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88099         quote function.  Reported by Göran Uddeborg.
88100
88101 2001-05-22  Jim Meyering  <meyering@lucent.com>
88102
88103         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88104         now that we use the package-supplied version unconditionally.
88105         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88106
88107 2001-05-21  Jim Meyering  <meyering@lucent.com>
88108
88109         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88110         shell syntax errors.
88111
88112 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88113
88114         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88115
88116 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88117
88118         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88119         Don't bother to check library strftime, since
88120         we'll be using our own my_strftime function anyway.
88121         Define my_strftime instead of strftime.
88122
88123 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88124
88125         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88126         which is not yet declared.
88127
88128 2001-05-15  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/regex.m4: Use proper quoting so brackets appear in the test
88131         program.
88132         Reported by, and with help from, Bruno Haible.
88133
88134 2001-05-13  Jim Meyering  <meyering@lucent.com>
88135
88136         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88137         undefined.
88138
88139 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88140
88141         dirname code cleanup.  base_name now behaves more compatibly
88142         with POSIX basename when given file names that have trailing
88143         slashes, and similarly for dir_name.  Add new primitives
88144         base_len and dir_len.  Put the directory-name-related decls
88145         into dirname.h.
88146
88147         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88148         * lib/backupfile.c (base_name): Likewise.
88149         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88150         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88151         * lib/makepath.c (strip_trailing_slashes): Likewise.
88152         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88153         ISSLASH): Likewise.
88154         * lib/rename.c (strip_trailing_slashes): Likewise.
88155         * lib/same.c (base_name): Likewise.
88156         * lib/stripslash.c (ISSLASH): Likewise.
88157
88158         * lib/addext.c: Include <dirname.h> after size_t is defined.
88159         * lib/backupfile.c: Likewise.
88160
88161         * lib/addext.c (addext): Use base_len to trim redundant
88162         trailing slashes instead of doing it ourselves.
88163         But do not trim the last slash if it is not redundant.
88164
88165         * lib/backupfile.c (find_backup_file_name,
88166         max_backup_version): Use base_len instead of rolling it ourselves.
88167         Handle the case of "" and (on DOS) "C:" correctly.
88168
88169         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88170         needed. Include <string.h>, <dirname.h>.
88171         (base_name): Allow file names ending in slashes, other than names
88172         that are all slashes.  In this case, return the basename followed
88173         by the slashes.  This is more general, and can be used in places
88174         where the original base_name purposely had an assertion failure.
88175         (base_len): New function.
88176
88177         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88178         Do not include <assert.h>; no longer needed.
88179         Include xalloc.h.
88180         (memrchr): Remove decl.
88181         (dir_name_r): Remove.
88182         (dir_len): Renamed from dirlen.  All callers changed.
88183         Rewrite in terms of base_name, for simplicity and consistency.
88184         (dir_name): Never return NULL.  All callers changed.
88185         Do not include <stdlib.h> in test program; no longer needed.
88186         return 0; is fine for test program.
88187
88188         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88189         New macros.
88190         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88191
88192         * lib/path-concat.c (path_concat): Use base_len to compute
88193         base length, not strlen; this means we cannot rely on memcpy
88194         to null-terminate.
88195
88196         * lib/same.c (STREQ): Remove.
88197         (same_name): Handle the case where the basename ends in trailing '/'.
88198
88199         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88200         a slash was stripped.  Do not strip the last slash after a
88201         file system prefix.
88202
88203 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88204
88205         * lib/Makefile.am (libfetish_a_SOURCES):
88206         Add strftime.c, since we now compile it on all hosts.
88207
88208         * lib/strftime.c (my_strftime):
88209         Define to nstrftime if emacs, but only if my_strftime is not defined.
88210         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88211         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88212         Add one more extra argument: a nanoseconds value.
88213         All uses changed.
88214         (ns): New macro.
88215         (my_strftime function): Add %N format.
88216         (emacs_strftimeu): Renamed from emacs_strftime,
88217         with extra ut argument.
88218
88219 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88220
88221         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88222
88223 2001-04-21  Jim Meyering  <meyering@lucent.com>
88224
88225         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88226         doesn't interfere.
88227
88228 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88229
88230         * m4/ftruncate.m4: Check for chsize.
88231         Link with ftruncate.o unconditionally if ftruncate is missing.
88232         This was required when cross-compiling to i586-mingw32msvc.
88233
88234 2001-04-08  Jim Meyering  <meyering@lucent.com>
88235
88236         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88237         recomputed; that's necessary when the offset spans a DST transition.
88238         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88239
88240 2001-04-02  Jim Meyering  <meyering@lucent.com>
88241
88242         * lib/regex.h, regex.c: Update from GNU libc.
88243
88244 2001-03-24  Jim Meyering  <meyering@lucent.com>
88245
88246         * m4/jm-macros.m4: Require autoconf-2.49d.
88247
88248 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88249
88250         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88251
88252 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88253
88254         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88255
88256 2001-03-17  Jim Meyering  <meyering@lucent.com>
88257
88258         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88259         now that the version in autoconf is equivalent.
88260         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88261
88262         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88263         Suggestion from Akim Demaille.
88264
88265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88266         (jm_PREREQ_TEMPNAME): New function.
88267
88268 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88269
88270         * lib/tempname.c (uint64_t): Define to uintmax_t if
88271         not defined, and if UINT64_MAX is not defined.
88272         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88273         Reported by John David Anglin.
88274
88275 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88276
88277         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88278         resolve alias if codeset is empty.
88279         * lib/config.charset (BeOS): Use wildcard syntax.
88280
88281 2001-03-13  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/path-concat.c (path_concat)
88284         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88285         concatenating e.g., `C:' and `foo'.
88286         From Bruno Haible.
88287
88288 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88289
88290         * lib/localcharset.c (locale_charset): Don't use
88291         setlocale(LC_CTYPE,NULL). Don't return NULL.
88292         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88293
88294 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88295
88296         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88297         support for DOS/DJGPP.
88298
88299 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88300
88301         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88302         lacks mkstemp.  Compile our own tempname.c if we compile our own
88303         mkstemp.c, as mkstemp relies on tempname.
88304
88305 2001-03-01  Jim Meyering  <meyering@lucent.com>
88306
88307         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88308         AH_VERBATIM really does output its argument verbatim.
88309
88310 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88311
88312         * lib/Makefile.am (libfetish_a_SOURCES):
88313         Add dup-safer.c, fopen-safer.c.
88314         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88315
88316         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88317         * lib/unistd-safer.h: New files.
88318
88319 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88320
88321         The mkstemp replacement is taken from glibc 2.2.2, with some
88322         portability fixes for use outside glibc, as follows:
88323
88324         * lib/tempname.c (struct_stat64): New macro.
88325         (direxists, __gen_tempname): Use it.
88326         This avoids a portability problem with Solaris 8.
88327
88328         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88329         (<stddef.h>, <stdint.h>, <string.h>):
88330         Include only if STDC_HEADERS || _LIBC.
88331         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88332         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88333         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88334         (__set_errno): Define this macro if <errno.h> doesn't.
88335         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88336         Define these macros if <stdio.h> doesn't.
88337         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88338         Define these macros if <sys/stat.h>
88339         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88340         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88341         __xstat64): Define if not _LIBC.
88342         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88343         (__gen_tempname): Invoke gettimeofday only if
88344         HAVE_GETTIMEOFDAY || _LIBC;
88345         otherwise, fall back on plain "time".
88346         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88347
88348         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88349
88350         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88351
88352 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88353
88354         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88355
88356 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88357
88358         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88359         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88360         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88361         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88362
88363 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88364
88365         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88366         Remove workaround macros for hosts that have mbrtowc but not
88367         mbstate_t, as we now insist on proper declarations for both
88368         before using mbrtowc.
88369
88370 2001-02-17  Jim Meyering  <meyering@lucent.com>
88371
88372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88373         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88374         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88375         UnixWare 7.1.1.
88376
88377         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88378         rather than AC_CACHE_VAL.
88379
88380 2001-02-17  Jim Meyering  <meyering@lucent.com>
88381
88382         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88383         around included file name.
88384
88385         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88386
88387         * lib/strftime.c: Update from GNU libc (the only changes were to
88388         comments).
88389
88390 2001-02-17  Jim Meyering  <meyering@lucent.com>
88391
88392         * lib/regex.c: Update from libc.
88393
88394 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88395
88396         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88397         clash.
88398
88399 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88400
88401         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88402         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88403         Reported by Mark Hounschell via Paul Eggert.
88404
88405 2001-02-07  Jim Meyering  <meyering@lucent.com>
88406
88407         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88408
88409 2001-02-05  Jim Meyering  <meyering@lucent.com>
88410
88411         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88412         it includes the patch required for `large file' support with at least
88413         HP-UX's 10.20 /bin/cc.
88414
88415 2001-02-03  Jim Meyering  <meyering@lucent.com>
88416
88417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88418         AS_IF, now that it works once again (mysteriously).
88419         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88420
88421 2001-01-30  Jim Meyering  <meyering@lucent.com>
88422
88423         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88424         * m4/chown.m4: Rename conftestchown to conftest.chown.
88425         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88426         s/conftestdir2/conftest.d2/.
88427         * m4/utimes.m4: s/conftestdata/conftest.data/
88428         Inspired by Pavel Roskin's change in autoconf.
88429
88430 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88431
88432         * lib/config.charset: Update for FreeBSD 4.2.
88433
88434 2001-01-27  Jim Meyering  <meyering@lucent.com>
88435
88436         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88437         a use of AS_IF.
88438         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88439
88440 2001-01-26  Jim Meyering  <meyering@lucent.com>
88441
88442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88443         quotearg.c includes it.
88444
88445 2001-01-26  Jim Meyering  <meyering@lucent.com>
88446
88447         * lib/quotearg.c: Include stddef.h.
88448         * lib/quote.c: Include stddef.h.
88449         Reported by Axel Kittenberger.
88450
88451         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88452         line in double quotes so that it evokes a better diagnostic.
88453         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88454         Reported by Axel Kittenberger.
88455
88456 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88457
88458         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88459         as if it was a `charset'.
88460
88461 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88462
88463         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88464         has const.
88465
88466 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88467
88468         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88469         to avoid a warning.  Add back 'const' to inptr.
88470
88471 2001-01-20  Jim Meyering  <meyering@lucent.com>
88472
88473         Be sure that headers are checked before used in code compiled
88474         for the type checks.
88475         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88476         In place of that, invoke jm_CHECK_ALL_TYPES.
88477         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88478         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88479         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88480         The check for ssize_t was mistakenly run before the test for unistd.h.
88481
88482         The configure-time check for stdbool.h was missing.
88483         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88484         (jm_PREREQ_HASH): New function.
88485
88486 2001-01-17  Jim Meyering  <meyering@lucent.com>
88487
88488         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88489         for autoconf-2.49c.
88490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88491
88492 2001-01-16  Jim Meyering  <meyering@lucent.com>
88493
88494         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88495         From Bruno Haible.
88496
88497 2001-01-14  Jim Meyering  <meyering@lucent.com>
88498
88499         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88500         foo and bar.  Create conftestdir/ in the script, not in the C code.
88501         Remove directories in the script, not in the C code.
88502         Remove conftestdir{,2} before trying to create the directory.
88503         Make the entire configure script fail if the mkdir fails.
88504
88505 2001-01-14  Jim Meyering  <meyering@lucent.com>
88506
88507         * lib/rename.c: New file.  From Volker Borchert.
88508         Include stdlib.h, string.h or strings.h, and xalloc.h.
88509         Use strip_trailing_slashes rather than open-coding it.
88510
88511 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88512
88513         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88514
88515 2001-01-03  Jim Meyering  <meyering@lucent.com>
88516
88517         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88518         of local `inptr' to avoid warning with some system declarations of
88519         iconv.
88520
88521 2001-01-02  Volker Borchert  <bt@teknon.de>
88522
88523         * m4/rename.m4: New file.
88524         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88525
88526 2001-01-01  Jim Meyering  <meyering@lucent.com>
88527
88528         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88529         even on systems with utmpx.h.  It's necessary for the declaration of
88530         utmp's ut_user member.  Reported by Andreas Jaeger.
88531
88532         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88533         available. They are required for the declarations of getgrgid and
88534         getpwuid resp.
88535         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88536         Reported by Andreas Jaeger.
88537
88538 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88539
88540         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88541         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88542         so `make install' also works in VPATH builds.
88543
88544 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88545
88546         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88547         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88548         can be used in subdirectories.
88549
88550 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88551
88552         * lib/modechange.c: Do not assume that mode_t uses the
88553         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88554         the other-execute bit of FOO even if S_IXOTH != 1.
88555
88556         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88557         WOTH, XOTH, ALLM): New macros.
88558         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88559          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88560         Use them.
88561         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88562         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88563         (mode_compile):
88564         No need to use uintmax_t; unsigned long is long enough.
88565         Don't bother to get suffix since we don't use it.
88566
88567 2000-12-26  Jim Meyering  <meyering@lucent.com>
88568
88569         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88570         better with autoheader.
88571
88572 2000-12-24  Jim Meyering  <meyering@lucent.com>
88573
88574         * lib/hash.c (is_prime): Return explicit boolean values.
88575         (hash_get_first): Return NULL to appease Irix5.6's 89.
88576         Reported by Nelson Beebe.
88577
88578 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88579
88580         * lib/localcharset.c (locale_charset): Add support for Win32.
88581
88582 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88583
88584         * lib/physmem.h, lib/physmem.c: New files.
88585
88586         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88587         (noinst_HEADERS): Add physmem.h.
88588
88589         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88590         't' for compatibility with Solaris 8 sort.
88591
88592 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88593
88594         * lib/config.charset: Add support for BeOS.
88595
88596 2000-12-17  Jim Meyering  <meyering@lucent.com>
88597
88598         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88599         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88600
88601 2000-12-16  Jim Meyering  <meyering@lucent.com>
88602
88603         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88604         N and M) would have treated it like `chown N:N FILE'.
88605
88606         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88607
88608 2000-12-16  Jim Meyering  <meyering@lucent.com>
88609
88610         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88611         SHELLS_FILE to a file name that's useful on djgpp systems.
88612         Include stdlib.h.
88613         (ADDITIONAL_DEFAULT_SHELLS): Define.
88614         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88615         Based mostly on a patch from Prashant TR.
88616
88617 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88618
88619         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88620         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88621         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88622
88623 2000-12-08  Andreas Schwab  <schwab@suse.de>
88624
88625         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88626         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88627
88628 2000-12-07  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/stripslash.c (ISSLASH): Define.
88631         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88632         `/'.
88633         From Prashant TR.
88634
88635         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88636         (dir_name_r): Declare this function as static.
88637         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88638         manifest itself on a name containing a mix of slashes and
88639         backslashes.
88640         Make this function work with names starting with a DOS-style
88641         drive letter and colon prefix.
88642         (dir_name): Append `.' if necessary.
88643         Based mostly on patches from Prashant TR and Eli Zaretskii.
88644
88645         * lib/dirname.h (dir_name_r): Remove prototype.
88646
88647 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88648
88649         * m4/off_t-format.m4: Remove this file.
88650         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88651
88652 2000-12-06  Jim Meyering  <meyering@lucent.com>
88653
88654         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88655         replacement strtoull, we may well need the replacement strtoul, too.
88656         Check for declarations of strtoul and strtoull.
88657         Check for strtol.  Mainly as a cue to cause automake to include
88658         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88659         Check for limits.h -- strtol.c needs it.
88660
88661 2000-12-05  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88664
88665 2000-12-04  Jim Meyering  <meyering@lucent.com>
88666
88667         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88668         Also include memory.h, stdlib.h, unistd.h if appropriate.
88669         Reported by Andreas Jaeger (conflicting declaration of malloc).
88670
88671 2000-12-02  Jim Meyering  <meyering@lucent.com>
88672
88673         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88674         * m4/jm-macros.m4 (jm_MACROS): require it.
88675
88676 2000-12-02  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88679
88680 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88681
88682         * lib/memrchr.c: Include <config.h> before any system include file.
88683
88684 2000-11-30  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88687
88688 2000-11-30  Jim Meyering  <meyering@lucent.com>
88689
88690         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88691
88692 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88693
88694         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88695
88696 2000-11-26  Jim Meyering  <meyering@lucent.com>
88697
88698         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88699
88700 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88701
88702         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88703         size of (size_t) -1; it's not portable.
88704
88705 2000-11-17  Jim Meyering  <meyering@lucent.com>
88706
88707         * lib/strstr.c: Update from GNU libc.
88708
88709 2000-11-17  Akim Demaille  <akim@epita.fr>
88710
88711         * lib/obstack.h: Formatting changes.
88712         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88713         prevent type checking.
88714         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88715         cast the value to (void *): assigning a `foo *' to a `void *'
88716         variable is valid.
88717         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88718
88719 2000-11-16  Jim Meyering  <meyering@lucent.com>
88720
88721         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88722
88723 2000-11-11  Jim Meyering  <meyering@lucent.com>
88724
88725         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88726
88727 2000-11-10  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/obstack.h: Update from GNU libc.
88730         * lib/obstack.c: Likewise.
88731
88732 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88733
88734         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88735
88736 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88737
88738         * lib/getusershell.c (setusershell): Use rewind rather than
88739         fseek/fseeko, to avoid configuration hassles with fseeko.
88740         Don't bother opening SHELLS_FILE if shellstream is NULL;
88741         it's not necessary.
88742
88743 2000-11-05  Jim Meyering  <meyering@lucent.com>
88744
88745         * lib/makepath.h (make_dir): Declare.
88746         * lib/makepath.c (make_dir): Remove `static' attribute.
88747         Tweak a comment.
88748
88749 2000-11-04  Jim Meyering  <meyering@lucent.com>
88750
88751         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88752
88753 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88754
88755         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88756         last one in a bucket, advance to the next bucket.
88757
88758 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88759
88760         * lib/fnmatch.c: Do not comment out all the code if we are using
88761         the GNU C library, because in some cases we are replacing buggy
88762         code in the GNU C library itself.
88763
88764 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88765
88766         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88767         (regex_compile): Catch bogus \(\1\).
88768
88769 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88770
88771         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88772         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88773         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88774
88775 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88776
88777         * lib/error.h, getline.h, modechange.h:
88778         Remove "2000" from Copyright line, as the file hasn't been
88779         changed this year other than in the copyright notice.
88780
88781         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88782         was changed this year.
88783
88784 2000-10-29  Jim Meyering  <meyering@lucent.com>
88785
88786         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88787         renaming.
88788         * m4/ls-mntd-fs.m4: Likewise
88789
88790 2000-10-29  Jim Meyering  <meyering@lucent.com>
88791
88792         * lib/xstat.in: Fix grammar in comment.
88793
88794 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88795
88796         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88797         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88798         doesn't define __restrict_arr.
88799
88800 2000-10-28  Jim Meyering  <meyering@lucent.com>
88801
88802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88803         (jm_PREREQ_MEMCHR): New function.
88804
88805 2000-10-28  Jim Meyering  <meyering@lucent.com>
88806
88807         * lib/memchr.c: Update from libc.
88808         Adjust for portability:
88809         [HAVE_STDLIB_H]: Include stdlib.h.
88810         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88811         Undef __memchr, too.
88812         [!weak_alias]: Define __memchr to memchr.
88813
88814         * lib/regex.c: Update from libc.
88815         * lib/regex.h: Likewise.
88816         * lib/getopt1.c: Likewise.
88817         * lib/memcmp.c: Likewise.
88818
88819         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88820         Avoid using fseek, when possible -- it's broken by design.
88821         Patch by Ulrich Drepper.
88822
88823 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88824
88825         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88826         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88827         Giving in to popular pressure to shut up the compiler with casts.
88828
88829 2000-10-26  Jim Meyering  <meyering@lucent.com>
88830
88831         * lib/strftime.c: Update from libc.
88832
88833 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88834
88835         * regex.c: More `unsigned char' -> `re_char' changes.
88836         Also change several `int' into `re_wchar_t'.
88837         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88838         (PUSH_FAILURE_POINTER): Don't cast any more.
88839         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88840         We want GCC to complain, since this piece of code makes
88841         re_match non-reentrant, which *should* be fixed.
88842         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88843         (EXTEND_BUFFER): Use RETALLOC.
88844         (SET_LIST_BIT): Don't cast.
88845         (re_wchar_t): New type.
88846         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88847         that those two functions will always properly return.
88848         (IMMEDIATE_QUIT_CHECK): Cast to void.
88849         (analyse_first): Use recursion rather than an explicit stack.
88850         (re_compile_fastmap): Can't fail anymore.
88851         (re_search_2): Don't check re_compile_fastmap for failure.
88852         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88853         Now also sets the new value (passed in a new argument).
88854         (re_match_2_internal): Use it.
88855         Also, use a new var `reg' of type size_t when looping through regs
88856         rather than reuse the inappropriate `mcnt'.
88857
88858 2000-10-25  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/obstack.c: Update from libc.
88861
88862 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88863
88864         * regex.c (regex_compile): Change the way of handling a range from
88865         a char less than 256 to a char not less than 256.
88866
88867 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88868
88869         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88870         NT-Emacs only.
88871         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88872         so that re_search functions only quit when callers expect them to.
88873
88874 2000-10-23  Jim Meyering  <meyering@lucent.com>
88875
88876         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88877         wrong.  That set_locale call must not have any side effects.
88878         From Paul Eggert.
88879
88880 2000-10-22  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88883         [CYCLIC]: Remove now-unused definition.
88884
88885         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88886         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88887         Suggestion from Ulrich Drepper.
88888
88889 2000-10-21  Jim Meyering  <meyering@lucent.com>
88890
88891         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88892         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88894
88895 2000-10-21  Jim Meyering  <meyering@lucent.com>
88896
88897         * lib/dirname.c (memrchr): Declare if necessary.
88898         (dir_name): Remove the restriction that there be no
88899         trailing slashes.  Now, this code skips past them, effectively
88900         ignoring them.
88901         [TEST_DIRNAME] (main): New unit tests.
88902
88903         * lib/memrchr.c: New file from GNU libc.
88904         Undef __memrchr, too.
88905         [!weak_alias]: Define __memrchr to memrchr.
88906         Guard weak_alias use with `#ifdef weak_alias'.
88907
88908 2000-10-21  Jim Meyering  <meyering@lucent.com>
88909
88910         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88911         (dir_name): Use dir_name_r.
88912         * lib/dirname.h (dir_name_r): Declare it.
88913
88914 2000-10-17  Jim Meyering  <meyering@lucent.com>
88915
88916         * lib/quote.h (PARAMS): Define and use.
88917         Reported by Akim Demaille.
88918
88919         * lib/getopt.c: Update from libc.
88920
88921 2000-10-16  Jim Meyering  <meyering@lucent.com>
88922
88923         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88924         setlocale.
88925         From Jan Fedak.
88926
88927 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88928
88929         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88930
88931 2000-09-25  Jim Meyering  <meyering@lucent.com>
88932
88933         * lib/md5.h (rol): Define (from GnuPG).
88934
88935         * lib/sha.c: Give credit (GnuPG) where due.
88936         (M): Use rol rather than open-coding it.
88937         Add a FIXME comment.
88938
88939 2000-09-21  Jim Meyering  <meyering@lucent.com>
88940
88941         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88942         Reported by Michael Stone.
88943
88944 2000-09-20  Jim Meyering  <meyering@lucent.com>
88945
88946         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88947         (noinst_HEADERS): Add sha.h.
88948         Based on code from Scott G. Miller and from GnuPG.
88949
88950 2000-09-18  Jim Meyering  <meyering@lucent.com>
88951
88952         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88953         LIBS. Otherwise, everyone ends up linking with -lelf for some
88954         configurations.
88955         Reported by Mike Stone.
88956
88957 2000-09-15  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/regex.c: Update from libc.
88960
88961 2000-09-10  Jim Meyering  <meyering@lucent.com>
88962
88963         * lib/getopt.c (_getopt_internal): Update from glibc.
88964
88965 2000-09-09  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88968         think it should be used as a general replacement for isascii.
88969         * lib/fnmatch.c: Likewise.
88970         * lib/mbswidth.c: Likewise
88971         * lib/regex.c: Likewise.
88972
88973         Don't use atoi.
88974         * lib/userspec.c: Include sys/param.h and limits.h.
88975         Include xstrtol.h.
88976         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88977         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88978         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88979         UID, GID.  Check range.
88980
88981 2000-09-06  Jim Meyering  <meyering@lucent.com>
88982
88983         * lib/getopt.c (_getopt_internal): Update from glibc.
88984
88985 2000-08-30  Jim Meyering  <meyering@lucent.com>
88986
88987         * lib/strftime.c: Merge in changes from GNU libc.
88988
88989 2000-08-26  Jim Meyering  <meyering@lucent.com>
88990
88991         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88992         * m4/fpending.m4: New file.
88993
88994 2000-08-26  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/closeout.c: Include "__fpending.h".
88997         (close_stdout_status): Return right away if there's nothing to flush.
88998
88999         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89000         * lib/__fpending.c: New file.
89001         * lib/__fpending.h: New file.
89002
89003 2000-08-20  Jim Meyering  <meyering@lucent.com>
89004
89005         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89006         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89007         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89008
89009 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89010
89011         Improve fileutils installation on systems where running
89012         programs (like install) can't be unlinked.
89013         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89014         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89015
89016 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89017
89018         Standardize on "memory exhausted" instead of "Memory exhausted"
89019         or "virtual memory exhausted".
89020         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89021         "virtual memory exhausted".
89022         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89023         our own message.
89024         * lib/userspec.c (parse_user_spec): Likewise.
89025         * lib/bumpalloc.h: comment fix
89026         * lib/same.c, userspec.c: Include xalloc.h.
89027
89028         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89029         not char *const and pointing to a constant array.
89030         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89031         (xrealloc): Comment fix.
89032
89033         * lib/userspec.c (parse_user_spec):
89034         Don't translate a message until just before returning,
89035         to avoid unnecessary translation.
89036
89037 2000-08-07  Jim Meyering  <meyering@lucent.com>
89038
89039         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89040         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89041         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89042         getgroups.c, gethostname.c, getopt.h, group-member.c,
89043         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89044         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89045         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89046         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89047         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89048         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89049         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89050         yesno.c: Back out Copyright date changes for each file with no change
89051         this year.  This eases coordination with other programs using the same
89052         source code modules.  From Paul Eggert.
89053
89054 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89055
89056         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89057         not char, for compatibility with glibc 2.1.3 strftime.c.
89058
89059 2000-08-03  Greg McGary  <greg@mcgary.org>
89060
89061         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89062         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89063         (EXTEND_BUFFER): Use them.
89064
89065 2000-08-01  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/dirname.c (ISSLASH): Define.
89068         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89069         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89070         both `\' and `/' may be use as path separators.
89071         Based on a patch from Prashant TR.
89072
89073 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89074
89075         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89076         slot vector a constant, since it might get modified.
89077
89078 2000-07-31  Jim Meyering  <meyering@lucent.com>
89079
89080         * lib/xmalloc.c: Use `virtual memory exhausted', not
89081         `Memory exhausted'.
89082         * lib/obstack.c (print_and_abort): Likewise.
89083
89084 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89085
89086         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89087         buffer, so that the caller can always quote one small
89088         component of a "memory exhausted" message in slot 0.
89089         From a suggestion by Jim Meyering.
89090
89091 2000-07-30  Jim Meyering  <meyering@lucent.com>
89092
89093         * lib/makepath.c (make_path): Quote the other instance, too.
89094
89095         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89096         (STATIC_BUF_SIZE): Define.
89097         (quotearg_n_options): Use only statically allocated storage when
89098         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89099         than STATIC_BUF_SIZE.
89100
89101 2000-07-29  Jim Meyering  <meyering@lucent.com>
89102
89103         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89104         * lib/dirname.c (dir_name): Likewise.
89105
89106         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89107         `/'.
89108
89109         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89110         (dir_name): Assert that there are no trailing slashes.
89111
89112 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89113
89114         * lib/mbswidth.h (mbswidth): Add a flags argument.
89115         (mbswidth): New declaration.
89116         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89117         * lib/mbswidth.c (mbswidth): Add a flags argument.
89118         (mbsnwidth): New function.
89119
89120 2000-07-24  Jim Meyering  <meyering@lucent.com>
89121
89122         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89123
89124 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89125
89126         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89127
89128 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89129
89130         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89131         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89132         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89133         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89134         invoke multibyte primitives.
89135
89136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89137
89138         * lib/quotearg.c:
89139         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89140         so that mbstate_t is always defined.
89141
89142         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89143         be 1 in at least one GCC installation, and this configuration
89144         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89145         performance on hosts that have mbrtowc but have only unibyte
89146         locales, but I assume these hosts are rare.
89147
89148 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89149
89150         * lib/mbswidth.c (_XOPEN_SOURCE):
89151         Don't define; this causes problems on Solaris 7.
89152         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89153
89154 2000-07-23  Jim Meyering  <meyering@lucent.com>
89155
89156         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89157         too: getgrgid, getpwuid, getuid.
89158
89159 2000-07-23  Jim Meyering  <meyering@lucent.com>
89160
89161         * lib/basename.c (base_name): Add an assertion.
89162
89163 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89164
89165         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89166         shadow its mbsinit function.
89167
89168 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89169
89170         * lib/mbswidth.h: New file.
89171         * lib/mbswidth.c: New file.
89172         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89173         (noinst_HEADERS): Add mbswidth.h.
89174
89175 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89176
89177         * lib/config.charset: Add support for FreeBSD. Improve support for
89178         HP-UX and IRIX 6.
89179
89180 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89181
89182         * m4/mbswidth.m4: New file.
89183         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89184
89185 2000-07-15  Jim Meyering  <meyering@lucent.com>
89186
89187         * lib/makepath.c: Include quote.h.
89188         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89189         corresponding argument in a `quote (...)' call.
89190         Give better diagnostics.
89191
89192         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89193         (noinst_HEADERS): Add quote.h.
89194
89195         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89196         from tar's src/misc.c.
89197         * lib/quote.h: New file.  Prototypes for same.
89198
89199 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89200
89201         From a suggestion by Bruno Haible.
89202         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89203         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89204         to decide whether to define the BeOS workaround macro;
89205         this adjusts to the change to AC_MBSTATE_T.
89206
89207 2000-07-14  Jim Meyering  <meyering@lucent.com>
89208
89209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89210         jm_AC_TYPE_UINTMAX_T.
89211
89212 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89213
89214         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89215
89216         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89217         quotearg_buffer_restyled): Add support for
89218         clocale_quoting_style.  Undo previous change to
89219         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89220         and "{RIGHT QUOTATION MARK}" msgids.
89221
89222 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89223
89224         From a suggestion by Bruno Haible.
89225         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89226         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89227         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89228         and mbstate_t, to a single-part test that simply defines mbstate_t.
89229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89230         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89231
89232 2000-07-10  Jim Meyering  <meyering@lucent.com>
89233
89234         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89235
89236         * m4/gnu-source.m4: Output to confdefs.h directly.
89237         Suggestion from Akim Demaille.
89238
89239 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89240
89241         The old behavior of quoting `like this' doesn't look good with
89242         newer, ISO-style fonts.  See:
89243         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89244
89245         Instead, quote "like this" by default.  Let the translator
89246         tailor the locale-specific quoting behavior by providing
89247         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89248
89249         * lib/quotearg.c (N_): New macro.
89250         (gettext_default): New function.
89251         (quotearg_buffer_restyled): Use
89252         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89253         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89254
89255 2000-07-09  Jim Meyering  <meyering@lucent.com>
89256
89257         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89258         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89259
89260         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89262
89263 2000-07-09  Jim Meyering  <meyering@lucent.com>
89264
89265         * lib/Most files: Update copyright dates to include 2000.
89266
89267 2000-07-08  Jim Meyering  <meyering@lucent.com>
89268
89269         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89270         if not defined.
89271         (xgethostname): Remove now-unnecessary #ifdef.
89272         Move declaration of `err' into loop where it's used.
89273
89274 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89275         and Bruno Haible  <haible@clisp.cons.org>
89276
89277         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89278         only if the test for an object-type mbstate_t fails.  This
89279         prevents us from mistakenly reporting that mbstate_t is a
89280         system object type after we "#define mbstate_t int" to work
89281         around its lack.
89282
89283 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89284         and Bruno Haible  <haible@clisp.cons.org>
89285
89286         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89287
89288 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89289
89290         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89291         to strerror_r.
89292         Include <ctype.h> for use of isalpha.
89293
89294 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89295
89296         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89297         by allocating a larger buffer. Test the gethostname return value for
89298         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89299         returns an error and ENAMETOOLONG isn't defined.
89300
89301 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89302
89303         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89304         dimension.
89305
89306 2000-07-04  Jim Meyering  <meyering@lucent.com>
89307
89308         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89309         of the deprecated AC_CHECKING.
89310
89311 2000-07-04  Jim Meyering  <meyering@lucent.com>
89312
89313         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89314         Reported by Bruno Haible.
89315
89316 2000-07-04  Jim Meyering  <meyering@lucent.com>
89317
89318         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89319         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89320         lacks mbrtowc.
89321
89322 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89323
89324         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89325         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89326
89327 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89328         and Bruno Haible  <haible@clisp.cons.org>
89329
89330         * lib/quotearg.c (mbrtowc):
89331         Assign to *pwc, and return 1 only if result is nonzero.
89332         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89333
89334 2000-07-03  Jim Meyering  <meyering@lucent.com>
89335
89336         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89337
89338 2000-07-03  Jim Meyering  <meyering@lucent.com>
89339
89340         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89341         This is necessary to get a definition of e.g., UTMP_FILE on
89342         HP-UX 10.20.
89343         From Bob Proulx.
89344
89345 2000-07-02  Jim Meyering  <meyering@lucent.com>
89346
89347         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89348
89349         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89350         AC_LIBOBJ(function_name).
89351         * m4/chown.m4: Likewise.
89352         * m4/fnmatch.m4: Likewise.
89353         * m4/ftruncate.m4: Likewise.
89354         * m4/getgroups.m4: Likewise.
89355         * m4/getline.m4: Likewise.
89356         * m4/group-member.m4: Likewise.
89357         * m4/jm-macros.m4: Likewise.
89358         * m4/lstat.m4: Likewise.
89359         * m4/malloc.m4: Likewise.
89360         * m4/memcmp.m4: Likewise.
89361         * m4/nanosleep.m4: Likewise.
89362         * m4/putenv.m4: Likewise.
89363         * m4/realloc.m4: Likewise.
89364         * m4/regex.m4: Likewise.
89365         * m4/stat.m4: Likewise.
89366         * m4/strftime.m4: Likewise.
89367
89368 2000-07-02  Jim Meyering  <meyering@lucent.com>
89369
89370         * lib/quotearg.c (mbstate_t): Don't define here.
89371
89372 2000-07-02  Jim Meyering  <meyering@lucent.com>
89373
89374         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89375
89376 2000-07-01  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89379
89380 2000-07-01  Jim Meyering  <meyering@lucent.com>
89381
89382         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89383         problem.
89384
89385 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89386
89387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89388         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89389
89390 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89391
89392         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89393         per change in ../m4/ls-mntd-fs.m4.
89394         (read_filesystem_list): Ignore symbolic links.
89395
89396 2000-06-29  Jim Meyering  <meyering@lucent.com>
89397
89398         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89399         for declaration of strcmp.
89400
89401         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89402
89403         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89404         Avoid warning by casting result to `char *' to remove `const'.
89405
89406 2000-06-28  Jim Meyering  <meyering@lucent.com>
89407
89408         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89409         included by quotearg.c, for which we perform this test.  From
89410         Bruno Haible.
89411
89412 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89413
89414         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89416         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89417
89418 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89419
89420         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89421
89422 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89423
89424         savedir now sets errno on failure and invokes xmalloc to get memory.
89425         Fix a couple of other minor bugs while we're at it.
89426
89427         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89428         (NAMLEN): Remove macro.
89429         (malloc, realloc): Remove decls.
89430         (stpcpy): Likewise.
89431         ("xalloc.h"): Include.
89432         (NAME_SIZE_DEFAULT): New macro.
89433         (savedir): Use xmalloc / xrealloc to allocate memory.
89434         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89435         Skip "" directory entries.
89436         Use strlen to calculate directory entry length, since the old method
89437         is rarely used these days and isn't worth supporting.
89438         Don't use a pointer after freeing it.
89439         Check for integer overflow when calculating allocation size.
89440         Use memcpy to copy entries, instead of stpcpy.
89441         Set errno properly when returning NULL.
89442         Check for readdir error.
89443
89444 2000-06-26  Jim Meyering  <meyering@lucent.com>
89445
89446         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89447
89448 2000-06-25  Jim Meyering  <meyering@lucent.com>
89449
89450         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89451         Linux header bug when _XOPEN_SOURCE is defined to 500.
89452
89453 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89454
89455         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89456         deficiency.
89457
89458 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89459
89460         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89461         Include xalloc.h.
89462         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89463
89464 2000-06-24  Jim Meyering  <meyering@lucent.com>
89465
89466         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89467         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89468         for which strerror does return char*, but which lacks a conveniently
89469         accessible declaration of the function.  If the compile-test says
89470         strerror_r doesn't work, then resort to a `run'-test that works on
89471         BeOS and segfaults on DEC Unix.
89472
89473 2000-06-24  Jim Meyering  <meyering@lucent.com>
89474
89475         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89476
89477 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89478
89479         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89481
89482 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89483
89484         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89485         (mbrtowc, mbstate_t): Define substitutes if
89486         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89487         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89488         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89489
89490 2000-06-23  Jim Meyering  <meyering@lucent.com>
89491
89492         * m4/afs.m4: Add missing AC_MSG_RESULT.
89493         Reported by Bruno Haible.
89494
89495         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89496         Suggestion from Bruno Haible.
89497
89498 2000-06-23  Jim Meyering  <meyering@lucent.com>
89499
89500         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89501
89502 2000-06-21  Jim Meyering  <meyering@lucent.com>
89503
89504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89505
89506 2000-06-21  Jim Meyering  <meyering@lucent.com>
89507
89508         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89509         (noinst_HEADERS): Add getstr.h.
89510
89511         * lib/getline.c (getstr): Move into a separate file.
89512         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89513         the following changes: new parameter, delim2; both delim[12]
89514         parameters have type `int', not `char'.  The latter would lose
89515         with 8-bit delimiters.
89516         * lib/getstr.h: New file.
89517
89518 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89519
89520         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89521         than 1024, return a memory chunk of least possible size, instead
89522         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89523         Use free/xmalloc instead of xrealloc to avoid copying for very long
89524         paths.
89525
89526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89527
89528         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89529         the empty string.
89530
89531 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89532
89533         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89534         address, not strdup.  Include <stdlib.h> and don't declare free().
89535
89536 2000-06-19  Jim Meyering  <meyering@lucent.com>
89537
89538         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89539
89540 2000-06-18  Jim Meyering  <meyering@lucent.com>
89541
89542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89543
89544         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89545         `checking whether...' message to be consistent with that of the
89546         lstat test.
89547
89548 2000-06-18  Jim Meyering  <meyering@lucent.com>
89549
89550         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89551         Besides, these days every porting target provides a mkdir function.
89552
89553         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89554         needed. (this snippet comes from src/system.h).
89555
89556 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89557
89558         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89559
89560 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89561
89562         * lib/human.c (adjust_value): New function.
89563         (human_readable_inexact): Apply rounding style even when
89564         printing approximate values.
89565
89566 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89567
89568         * lib/human.c (human_readable_inexact): Allow an input block
89569         size that is not a multiple of the output block size, and vice versa.
89570         Reported by Piergiorgio Sartor.
89571
89572 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89573
89574         * lib/getdate.y (get_date): Apply relative times after time
89575         zone indicator, not before.  Reported by Todd A. Jacobs.
89576
89577 2000-06-13  Jim Meyering  <meyering@lucent.com>
89578
89579         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89580
89581         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89582
89583 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89584
89585         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89586
89587 2000-06-12  Jim Meyering  <meyering@lucent.com>
89588
89589         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89590         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89591         optional argument.
89592         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89593         the optional argument, `lib'.
89594
89595 2000-06-08  Jim Meyering  <meyering@lucent.com>
89596
89597         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89598
89599 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89600
89601         Rewrite largefile configuration so that we don't need to run
89602         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89603         AC_CANONICAL_HOST in configure.in -- jmm]
89604
89605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89606         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89607         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89608         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89609         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89610         All uses changed.
89611         Instead of inspecting the output of getconf, try to compile the
89612         test program without and with the macro definition.
89613         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89614         for getconf.  Instead, check for the needed flags by compiling
89615         test programs.
89616
89617 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89618
89619         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89620
89621 2000-06-04  Jim Meyering  <meyering@lucent.com>
89622
89623         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89624         SunOS 4.1.4 for which gid_t is an unsigned type.
89625
89626 2000-06-03  Jim Meyering  <meyering@lucent.com>
89627
89628         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89629         now that autoconf requires that.
89630
89631         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89632         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89633         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89634
89635 2000-06-03  Jim Meyering  <meyering@lucent.com>
89636
89637         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89638
89639 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89640
89641         * m4/glibc21.m4: New file.
89642         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89643
89644 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89645
89646         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89647         newer, don't install charset.alias.
89648         * lib/config.charset: Change the Linux/glibc rules so they become empty
89649         on glibc-2.1 or newer.
89650
89651 2000-06-02  Jim Meyering  <meyering@lucent.com>
89652
89653         * lib/mountlist.c: Back out last change.  Instead, do this...
89654         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89655         me_dummy member using the same `ignore'-testing code.
89656         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89657         fs_type strings.
89658         From Mark D. Roth.
89659
89660 2000-05-29  Jim Meyering  <meyering@lucent.com>
89661
89662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89663         mounts with the `ignore' attribute.  Based on a patch from
89664         Mark D. Roth.
89665
89666 2000-05-28  Jim Meyering  <meyering@lucent.com>
89667
89668         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89669         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89670         * m4/stat.m4: Likewise.
89671         * m4/lstat.m4: Likewise.
89672         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89673
89674         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89675         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89676
89677 2000-05-26  Jim Meyering  <meyering@lucent.com>
89678
89679         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89680
89681 2000-05-24  Jim Meyering  <meyering@lucent.com>
89682
89683         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89684         autoconf requires that.
89685         * m4/lib-check.m4: Likewise.
89686         * m4/jm-macros.m4: Likewise.
89687         * m4/strftime.m4: Likewise.
89688
89689         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89690         AC_CHECK_DECLS, now that autoconf requires that.
89691
89692 2000-05-22  Jim Meyering  <meyering@lucent.com>
89693
89694         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89695         * m4/lstat.m4: Likewise.
89696
89697 2000-05-22  Jim Meyering  <meyering@lucent.com>
89698
89699         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89700
89701 2000-05-20  Jim Meyering  <meyering@lucent.com>
89702
89703         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89704         (jm_PREREQ): Use it.
89705
89706 2000-05-18  Jim Meyering  <meyering@lucent.com>
89707
89708         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89709         back, too, since it may have been modified by allocate_entry.
89710         (hash_delete): Rewrite to use neither the assignment operator
89711         nor the comma operator in an if-expression.
89712
89713 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89714
89715         * lib/closeout.c:
89716         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89717         Remove; no longer needed.
89718         "quotearg.h": Add include.
89719         (file_name): Do not bother to explicitly initialize to NULL; it's less
89720         efficient on some hosts.
89721         (close_stdout_status): Remove test as to whether stdout was already
89722         closed; it breaks for the case "echo x | sort >&-".
89723         Quote file name colons.
89724         Do not assume that _("write error") lacks format strings.
89725
89726 2000-05-15  Jim Meyering  <meyering@lucent.com>
89727
89728         * lib/version-etc.c (version_etc_copyright): Update the copyright
89729         string used in all --version output.
89730
89731 2000-05-14  Jim Meyering  <meyering@lucent.com>
89732
89733         * lib/closeout.c (close_stdout_set_file_name): New function.
89734         (close_stdout_status): Use new file-scoped global.
89735         Return right away if fstat says the stdout file descriptor is invalid.
89736         * lib/closeout.h (close_stdout_set_file_name): Declare.
89737
89738 2000-05-10  Jim Meyering  <meyering@lucent.com>
89739
89740         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89741         (close_stdout_set_status): New function.
89742         * lib/closeout.h (close_stdout_set_status): Declare.
89743
89744 2000-05-09  Jim Meyering  <meyering@lucent.com>
89745
89746         * m4/gettext.m4: Rename this...
89747         * m4/libintl.m4: ...to this.
89748
89749 2000-05-08  Jim Meyering  <meyering@lucent.com>
89750
89751         * lib/long-options.c: Don't include closeout.h.
89752         (parse_long_options): Don't call close_stdout for --version.
89753
89754 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89755
89756         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89757         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89758         2.1.3 bug.  This avoids a clash when files like regex.c define
89759         _GNU_SOURCE.
89760
89761 2000-05-06  Jim Meyering  <meyering@lucent.com>
89762
89763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89764         (AC_REPLACE_FUNCS): Add strnlen.
89765
89766         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89767         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89768
89769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89770         AC_SEARCH_LIBS call for nanosleep.
89771         (LIB_NANOSLEEP): Set and AC_SUBST.
89772
89773 2000-05-06  Jim Meyering  <meyering@lucent.com>
89774
89775         * lib/strnlen.c: Undefine __strnlen and strnlen.
89776         [!weak_alias]: Define __strnlen to strnlen.
89777
89778         * lib/atexit.c: New file, from libiberty.
89779
89780 2000-05-06  Jim Meyering  <meyering@lucent.com>
89781
89782         * lib/closeout.c (close_stdout_status): Also check for errors on the
89783         stderr stream.
89784
89785 2000-05-05  Jim Meyering  <meyering@lucent.com>
89786
89787         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89788         AC_SEARCH_LIBS call for clock_gettime.
89789         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89790
89791         * m4/search-libs.m4: Update from autoconf.
89792
89793         su doesn't work on Solaris 2.6.
89794         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89795         <shadow.h>.  Reported by Dragos Harabor.
89796
89797 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89798
89799         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89800         memcpy instead of xmalloc, xrealloc, path_concat.
89801         (locale_charset): Treat empty environment variables as absent.
89802         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89803
89804 2000-05-04  Jim Meyering  <meyering@lucent.com>
89805
89806         * lib/getopt.c: Update from glibc.
89807         * lib/obstack.c: Likewise.
89808         * lib/obstack.h: Likewise.
89809         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89810         file
89811
89812         * lib/regex.h: Likewise.
89813         * lib/strndup.c: Likewise.
89814         * lib/strnlen.c: New file, from glibc.
89815
89816 2000-05-03  Jim Meyering  <meyering@lucent.com>
89817
89818         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89819
89820 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89821
89822         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89823         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89824         compile-time test, rather than inspecting host and OS, to
89825         decide whether to define _LARGEFILE_SOURCE.
89826
89827 2000-05-01  Jim Meyering  <meyering@lucent.com>
89828
89829         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89830
89831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89832         Based on a patch from Bruno Haible.
89833
89834 2000-05-01  Jim Meyering  <meyering@lucent.com>
89835
89836         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89837
89838 2000-04-29  Jim Meyering  <meyering@lucent.com>
89839
89840         * lib/path-concat.c: Declare strdup only if it's not defined.
89841         * lib/canon-host.c: Likewise.
89842
89843 2000-04-28  Jim Meyering  <meyering@lucent.com>
89844
89845         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89846         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89847         is included first, then limits.h is included by locale.h by libintl.h.
89848         From John David Anglin.
89849
89850 2000-04-25  Jim Meyering  <meyering@lucent.com>
89851
89852         * lib/makepath.c (S_IRWXUGO): Define.
89853         (make_path): Always perform explicit chmod if MODE specifies any
89854         of the `special' permission bits.  Prompted by a bug report against
89855         install from Mate Wierdl and Joost van Baal.
89856
89857 2000-04-18  Jim Meyering  <meyering@lucent.com>
89858
89859         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89860         (jm_PREREQ): Use it.
89861
89862 2000-04-18  Jim Meyering  <meyering@lucent.com>
89863
89864         * lib/README: New file.
89865
89866         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89867         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89868
89869 2000-04-17  Jim Meyering  <meyering@lucent.com>
89870
89871         Get it right :-)
89872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89873         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89874         Suggestion from Akim Demaille.
89875
89876 2000-04-17  Jim Meyering  <meyering@lucent.com>
89877
89878         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89879         the definition of it to rpl_strftime also defined-away the system's
89880         declaration.
89881
89882 2000-04-15  Jim Meyering  <meyering@lucent.com>
89883
89884         Use `C' to denote so-called `contiguous' files, the same way
89885         that tar does.
89886         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89887         (ftypelet): Use S_ISCTG.
89888         From Michael Deutschmann.
89889
89890 2000-04-14  Jim Meyering  <meyering@lucent.com>
89891
89892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89893         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89894         clobbered.
89895
89896 2000-04-14  Jim Meyering  <meyering@lucent.com>
89897
89898         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89899
89900 2000-04-13  Jim Meyering  <meyering@lucent.com>
89901
89902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89903         AH_VERBATIM to insert required #ifndef into config.h.in.
89904         Suggestion from Akim Demaille.
89905
89906 2000-04-12  Jim Meyering  <meyering@lucent.com>
89907
89908         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89909         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89910         Christian Krackowizer.
89911
89912         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89913         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89914         (AC_SYS_LARGEFILE): Require.
89915         (AM_C_PROTOTYPES): Require.
89916
89917 2000-04-08  Jim Meyering  <meyering@lucent.com>
89918
89919         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89920         names don't conflict.  Reported by Eli Zaretskii.
89921
89922 2000-04-07  Jim Meyering  <meyering@lucent.com>
89923
89924         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89925         sys/types.h, to work around system header problems on AIX 3.2.5.
89926         From Bruno Haible.
89927
89928 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89929
89930         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89931         bug.  Deal with the different error behavior of Irix iconv.
89932
89933 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89934
89935         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89936         IRIX if the installer said otherwise.
89937
89938 2000-04-05  Jim Meyering  <meyering@lucent.com>
89939
89940         Portability tweaks required for ultrix4.3.
89941         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89942         (jm_CHECK_DECLS): Add getutent to the list of functions.
89943         (_jm_DECL_HEADERS): Add utmpx.h.
89944         From John David Anglin.
89945
89946         * m4/strftime.m4: Back out the 2000-04-02 change.
89947         Instead of that change, simply undefine putenv in the test program.
89948
89949 2000-04-05  Jim Meyering  <meyering@lucent.com>
89950
89951         Portability tweaks required for ultrix4.3.
89952         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89953         getutent.
89954         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89955         * lib/canon-host.c: Declare strdup.
89956         * lib/path-concat.c: Likewise.
89957         From John David Anglin.
89958
89959 2000-04-04  Jim Meyering  <meyering@lucent.com>
89960
89961         Be more DOS 8.3-friendly.
89962         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89963         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89964         * lib/Makefile.am: Reflect renaming.
89965         Reported by Eli Zaretskii.
89966
89967         Use a temporary file name that won't clash with `charset.alias'
89968         in the DOS 8.3 name space.
89969         * lib/Makefile.am (charset_tmp): Define.
89970         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89971         (uninstall-local): Likewise.
89972         Reported by Eli Zaretskii.
89973
89974 2000-04-03  Jim Meyering  <meyering@lucent.com>
89975
89976         * m4/gettext.m4: Fix typo in comment.
89977
89978         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89979         textutils/configure.in).  Suggestion from Paul Eggert.
89980         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89981
89982 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89983
89984         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89985         variable in the shell rather than using putenv, which isn't
89986         portable.  This avoids the configure-time inter-test dependency
89987         on the potentially-renamed putenv function.
89988
89989 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89990
89991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89992         before checking struct stat.st_blksize, so that
89993         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89994
89995 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89996
89997         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89998         since strftime.c uses HAVE_STRFTIME to decide whether to use
89999         the underlying strftime.
90000
90001 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90002
90003         * lib/time/strftime.c (my_strftime): Make sure we call the system
90004         strftime, not ourselves, when invoking the underlying strftime.
90005
90006 2000-03-24  Jim Meyering  <meyering@lucent.com>
90007
90008         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90009         (charset_alias): Define.
90010         (install-exec-local): Factor out common code.
90011         (uninstall-local): Split lines longer than 80.
90012         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90013         (SUFFIXES): Define.
90014         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90015         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90016
90017 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90018
90019         * lib/config.charset: Output a line containing "Packages using this
90020         file".
90021         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90022         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90023         ref-del.sed): New rules.
90024
90025 2000-03-17  Jim Meyering  <meyering@lucent.com>
90026
90027         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90028         Otherwise, include <strings.h>
90029
90030 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90031
90032         * lib/unicodeio.c (utf8_wctomb): New function.
90033         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90034         format instead of in UCS-4 with platform dependent endianness.
90035
90036 2000-03-10  Jim Meyering  <meyering@lucent.com>
90037
90038         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90039         From Marco Franzen.
90040
90041 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90042
90043         * lib/savedir.c (savedir): Work even if directory size is
90044         negative; this can happen with some screwy NFS configurations.
90045
90046 2000-03-06  Jim Meyering  <meyering@lucent.com>
90047
90048         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90049         if it's NULL (because we ran out of memory).  From Bruno Haible.
90050
90051 2000-03-05  Jim Meyering  <meyering@lucent.com>
90052
90053         * lib/localcharset.c ("path-concat.h"): Include.
90054         (get_charset_aliases): Use path_concat instead of ANSI string
90055         concatenation.
90056
90057         * lib/unicodeio.h (PARAMS): Define.
90058         Use it to guard prototype.
90059
90060 2000-03-04  Jim Meyering  <meyering@lucent.com>
90061
90062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90063         for lib/localcharset.c.
90064
90065 2000-03-04  Jim Meyering  <meyering@lucent.com>
90066
90067         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90068         installing into it.
90069         (uninstall-local): Uncomment this rule so `make distcheck' works
90070         once again.
90071
90072         * lib/unicodeio.c (<errno.h>): Include it.
90073         (errno): Declare if not defined.
90074
90075         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90076
90077         * lib/config.charset: New version, incorporating remarks from a linux
90078         i18n mailing list.  From Bruno Haible.
90079
90080 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90081
90082         * m4/codeset.m4: New file.
90083         * m4/iconv.m4: New file.
90084         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90085
90086 2000-03-03  Jim Meyering  <meyering@lucent.com>
90087
90088         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90089
90090 2000-03-02  Jim Meyering  <meyering@lucent.com>
90091
90092         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90093         the messages come out on separate lines.
90094
90095         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90096         rather than jm_CHECK_DECLARATIONS.
90097         * m4/decl.m4: Remove now-unused file.
90098
90099         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90100         geteuid.
90101
90102 2000-03-02  Jim Meyering  <meyering@lucent.com>
90103
90104         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90105
90106 2000-03-01  Jim Meyering  <meyering@lucent.com>
90107
90108         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90109         * lib/unicodeio.c: Likewise.
90110
90111 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90112
90113         * lib/config.charset: New file.
90114         * lib/localcharset.c: New file.
90115         * lib/unicodeio.h, lib/unicodeio.c: New files.
90116         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90117         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90118         (noinst_HEADERS): Add unicodeio.h.
90119         (all-local, install-exec-local, charset.alias): New targets.
90120
90121 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90122
90123         * lib/quotearg.c (ALERT_CHAR): New macro.
90124         (quotearg_buffer_restyled): Use it.
90125
90126 2000-02-27  Jim Meyering  <meyering@lucent.com>
90127
90128         * m4/check-decl.m4: Add getenv to the list.
90129
90130 2000-02-27  Jim Meyering  <meyering@lucent.com>
90131
90132         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90133         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90134
90135         * lib/backupfile.c: Guard inclusion of stdlib.h with
90136         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90137         Declare malloc if needed.
90138
90139         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90140         `#ifndef HAVE_DECL..'
90141         now that autoconf always defines the HAVE_DECL_ symbols.
90142         * lib/human.c: Likewise.
90143         * lib/same.c: Likewise.
90144         * lib/strtoumax.c: Likewise.
90145
90146         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90147         declaration check was not run.
90148         * lib/hash.c: Likewise.
90149         * lib/human.c: Likewise.
90150         * lib/same.c: Likewise.
90151         * lib/strtoumax.c: Likewise.
90152
90153         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90154         `.', then first look up the entire `.'-containing string as a login
90155         name.
90156
90157 2000-02-23  Jim Meyering  <meyering@lucent.com>
90158
90159         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90160         in place of my hack.
90161
90162 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90163
90164         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90165         (textint): New typedef.
90166         (parser_control): Member year changed from int to textint.
90167         All uses changed.
90168         (YYSTYPE): Removed; replaced by %union with int and textint members.
90169         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90170         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90171         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90172         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90173         (date, number, to_year): Use width of number in digits, not its value,
90174         to determine whether it's a 2-digit year, or a 2-digit time.
90175         (yylex): Store number of digits of numeric tokens.
90176         Reported by John Kendall.
90177
90178         (parser_control): Changed from struct parser_control to typedef (for
90179         consistency).  All uses changed.
90180
90181         (tID): Removed; not used.
90182         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90183
90184 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90185
90186         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90187         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90188
90189 2000-02-12  Jim Meyering  <meyering@lucent.com>
90190
90191         * lib/userspec.c (ISDIGIT): Define it.
90192         (isdigit): Remove definition.
90193         (is_number): Use ISDIGIT, not isdigit.
90194         <libintl.h>: Include.
90195         (_ and N_): Define.
90196         (parse_user_spec): Mark translatable strings.
90197
90198 2000-02-10  Jim Meyering  <meyering@lucent.com>
90199
90200         With these changes, nanosleep.[ch] are finally enough like the other
90201         lib/* replacement files to compile on a few more losing systems.
90202
90203         * lib/nanosleep.h: Don't include config.h.
90204         Remove prototype from declaration of nanosleep.
90205         (PARAMS): Remove now-unneeded definition.
90206         * lib/nanosleep.c: #undef nanosleep.
90207         (rpl_nanosleep): Rename from nanosleep.
90208
90209 2000-02-10  Jim Meyering  <meyering@lucent.com>
90210
90211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90212         gnu_nanosleep to rpl_nanosleep.
90213
90214 2000-02-09  Jim Meyering  <meyering@lucent.com>
90215
90216         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90217         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90218
90219 2000-02-08  Akim Demaille  <akim@epita.fr>
90220
90221         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90222         `[' and `]' and remove uses of `changequote'.
90223         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90224         (AC_SYS_LARGEFILE): Likewise.
90225         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90226         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90227         of changequote.
90228         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90229         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90230         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90231         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90232
90233 2000-02-05  Jim Meyering  <meyering@lucent.com>
90234
90235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90236         Remove explicit use of AC_HEADER_TIME.  It is required by
90237         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90238         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90239         in autoconf whereby the expansion of the latter ended up preceding
90240         the expansion of its prerequisite, AC_HEADER_TIME.
90241         Reported by Volker Borchert.
90242
90243 2000-02-03  Jim Meyering  <meyering@lucent.com>
90244
90245         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90246
90247 2000-02-03  Jim Meyering  <meyering@lucent.com>
90248
90249         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90250         rather than with `#if HAVE_UTMPNAME'.
90251
90252 2000-02-02  Jim Meyering  <meyering@lucent.com>
90253
90254         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90255         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90256         Reported by Eli Zaretskii.
90257
90258 2000-02-01  Jim Meyering  <meyering@lucent.com>
90259
90260         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90261
90262 2000-01-31  Jim Meyering  <meyering@lucent.com>
90263
90264         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90265         functions.  Add the time.h and sys/time.h headers along with the
90266         AC_REQUIRE'ment of AC_HEADER_TIME.
90267
90268 2000-01-31  Jim Meyering  <meyering@lucent.com>
90269
90270         * lib/nanosleep.h (nanosleep): Guard declaration with
90271         `#if ! HAVE_DECL_NANOSLEEP'.
90272         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90273         the declaration in that vendor's sys/timers.h.
90274         Reported by Christian Krackowizer.
90275
90276         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90277         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90278         (ISPRINT): Likewise.
90279         Reported by Tom Tromey.
90280
90281 2000-01-30  Jim Meyering  <meyering@lucent.com>
90282
90283         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90284
90285         * m4/prereq.m4 (utmp_includes): Define.
90286         Check for ut_user and ut_name members in both struct utmpx
90287         and struct utmp.
90288
90289 2000-01-30  Jim Meyering  <meyering@lucent.com>
90290
90291         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90292         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90293         header files where only utmpx.ut_user is declared.
90294
90295         * lib/readutmp.h (UT_USER): Define.
90296
90297 2000-01-29  Jim Meyering  <meyering@lucent.com>
90298
90299         * m4/lib-check.m4: New file containing library-related checks from
90300         fileutils and sh-utils (textutils had none).
90301
90302 2000-01-28  Jim Meyering  <meyering@lucent.com>
90303
90304         * m4/perl.m4: Change format of warning message to look more like that
90305         from the missing script.  Suggestion from François Pinard.
90306
90307 2000-01-25  Jim Meyering  <meyering@lucent.com>
90308
90309         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90310         well as time.h in the compile check.
90311         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90312         Fix typo in cross-compiling case: s/yes/no/.
90313
90314 2000-01-23  Jim Meyering  <meyering@lucent.com>
90315
90316         * m4/jm-macros.m4: Move df-related tests here from
90317         fileutils/configure.in
90318
90319         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90320         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90321
90322         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90323         s/space/ac_fsusage_space/.
90324         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90325
90326         * m4/ftruncate.m4: New file (derived from part of
90327         fileutils/configure.in).
90328         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90329         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90330
90331         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90332         AC_SUBST these here, rather than just in sh-util/configure.in, so
90333         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90334         all the same.
90335         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90336         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90337         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90338         (AC_SUBST(POW_LIBM)): Likewise.
90339         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90340
90341 2000-01-23  Jim Meyering  <meyering@lucent.com>
90342
90343         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90344         obstack.c.
90345
90346 2000-01-22  Jim Meyering  <meyering@lucent.com>
90347
90348         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90349
90350         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90351
90352         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90353         configure.in
90354         (AC_CHECK_HEADERS): Likewise for sh-utils.
90355         (AC_CHECK_HEADERS): Likewise for textutils.
90356         Merge the three lists of headers.
90357
90358         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90359         from fileutils' configure.in.
90360
90361         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90362         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90363         check-decl.m4.
90364
90365         * m4/check-decl.m4: Use #if rather than #ifdef.
90366         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90367         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90368         (_jm_DECL_HEADERS): Define new function.
90369         (jm_CHECK_DECLARATIONS): Require it.
90370
90371 2000-01-22  Jim Meyering  <meyering@lucent.com>
90372
90373         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90374         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90375         Required for some AIX systems.  Reported by Christian Krackowizer.
90376         [TESTING] (main): New function.
90377
90378         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90379         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90380         letters.
90381
90382         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90383         iswprint.
90384
90385         * lib/strverscmp.c (ISDIGIT): Define.
90386         (strverscmp): Use ISDIGIT, not isdigit.
90387
90388 2000-01-19  Jim Meyering  <meyering@lucent.com>
90389
90390         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90391         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90392         defines `struct timespec' in <sys/time.h>
90393
90394         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90395         Thanks to Akim for explaining.
90396
90397 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90398
90399         * lib/nanosleep.c (nanosleep):
90400         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90401         POSIX.1 doesn't require SA_INTERRUPT and some systems
90402         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90403         it's been part of POSIX.1 since day 1 (in 1988).
90404
90405 2000-01-17  Jim Meyering  <meyering@lucent.com>
90406
90407         * lib/interlock: Remove unused file.  Reported by François Pinard.
90408
90409 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90410
90411         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90412         alert, backslash, formfeed, and vertical tab unnecessarily in
90413         shell quoting style.
90414
90415 2000-01-16  Jim Meyering  <meyering@lucent.com>
90416
90417         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90418         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90419         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90420         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90421
90422 2000-01-16  Jim Meyering  <meyering@lucent.com>
90423
90424         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90425         because the latter didn't work.
90426
90427 2000-01-15  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90430         (AC_REPLACE_FUNCS): Add memcpy and memset.
90431         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90432         Add strpbrk.
90433         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90434
90435 2000-01-12  Jim Meyering  <meyering@lucent.com>
90436
90437         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90438         (jm_PREREQ): Use it.
90439         (jm_PREREQ_READUTMP): New macro.
90440         (jm_PREREQ): Use it.
90441
90442 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90443
90444         Quote multibyte characters correctly.
90445         * m4/c-bs-a.m4: New file.
90446         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90447         (jm_PREREQ): Use it.
90448
90449 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90450
90451         * m4/uintmax_t.m4: Port to autoconf 2.13.
90452
90453 2000-01-08  Jim Meyering  <meyering@ascend.com>
90454
90455         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90456         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90457
90458 2000-01-04  Jim Meyering  <meyering@ascend.com>
90459
90460         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90461         jm_STRUCT_DIRENT_D_TYPE.
90462         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90463         jm_STRUCT_DIRENT_D_INO.
90464         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90465         jm_STRUCT_UTIMBUF.
90466         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90467         renamings.
90468         * m4/utime.m4: Likewise.
90469
90470         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90471         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90472
90473 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90474
90475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90476         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90477
90478 2000-01-02  Jim Meyering  <meyering@ascend.com>
90479
90480         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90481         remember if this is necessary.
90482
90483 1999-12-26  Jim Meyering  <meyering@ascend.com>
90484
90485         * m4/jm-macros.m4: Use it here.
90486         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90487
90488 1999-12-23  Jim Meyering  <meyering@ascend.com>
90489
90490         * m4/jm-macros.m4: Check for clock_gettime (moved from
90491         fileutils/configure.in)
90492         Check for gettimeofday.
90493
90494 1999-12-20  Jim Meyering  <meyering@ascend.com>
90495
90496         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90497         autoconf-2.14a-1999-12-20.
90498
90499 1999-12-19  Jim Meyering  <meyering@ascend.com>
90500
90501         * m4/lstat-slash.m4: New file.
90502         * m4/jm-macros.m4: Use the new macro:
90503         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90504
90505 1999-12-07  Jim Meyering  <meyering@ascend.com>
90506
90507         * m4/perl.m4: Require that File::Compare be available, too.
90508         Too many systems seem to lack it.
90509
90510         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90511         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90512
90513 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90514
90515         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90516         problem with the QNX 4.25 shell, which doesn't propagate exit
90517         status of failed commands inside shell assignments.
90518
90519 1999-11-17  Jim Meyering  <meyering@ascend.com>
90520
90521         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90522
90523 1999-11-07  Jim Meyering  <meyering@ascend.com>
90524
90525         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90526
90527 1999-11-06  Jim Meyering  <meyering@ascend.com>
90528
90529         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90530         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90531
90532 1999-11-05  Jim Meyering  <meyering@ascend.com>
90533
90534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90535         configure.in of textutils, fileutils, and sh-utils into this one
90536         (shared between those packages) file.
90537         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90538         AC_STRUCT_ST_BLKSIZE.
90539
90540 1999-11-03  Jim Meyering  <meyering@ascend.com>
90541
90542         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90543         of AC_CHECK_TYPE checks includes unistd.h.
90544         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90545         Suggestion from Akim Demaille.
90546
90547 1999-10-30  Jim Meyering  <meyering@ascend.com>
90548
90549         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90550         m4-quoted string.
90551         * m4/ls-mntd-fs.m4: Likewise.
90552         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90553         * m4/jm-winsz1.m4: Likewise.
90554
90555         * m4/const.m4: Remove file, since the fix made it into the experimental
90556         version of autoconf.
90557         * m4/mktime.m4: Likewise.
90558
90559         * m4/check-type.m4: Remove file, now that the latest version of
90560         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90561
90562         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90563         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90564         AC_CHECK_TYPE.
90565
90566 1999-10-04  Jim Meyering  <meyering@ascend.com>
90567
90568         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90569
90570 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90571
90572         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90573         2.95.1 bug with HP-UX 10.20.
90574
90575 1999-09-17  Jim Meyering  <meyering@ascend.com>
90576
90577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90578         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90579         due to missing strdup (against sh-utils-2.0).
90580
90581 1999-08-29  Jim Meyering  <meyering@ascend.com>
90582
90583         * m4/jm-macros.m4: Require jm_BISON.
90584         * m4/bison.m4: New file.
90585
90586 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90587
90588         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90589         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90590
90591 1999-08-05  Jim Meyering  <meyering@ascend.com>
90592
90593         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90594         to avoid conflicts with `conftest' on 8+3 filesystems.
90595         Suggestion from Eli Zaretskii.
90596
90597 1999-08-04  Jim Meyering  <meyering@ascend.com>
90598
90599         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90600         fileutils and sh-utils (textutils's getline test was inadequate).
90601         (AM_FUNC_GETLINE): Run this test.
90602         (AC_CHECK_FUNCS): Check for getdelim.
90603         Reported by Bob Proulx.
90604
90605 1999-08-02  Jim Meyering  <meyering@ascend.com>
90606
90607         * m4/jm-macros.m4: Add a comment.
90608
90609 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90610
90611         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90612         <inttypes.h> defines strtoumax as a macro (and not as a
90613         function).
90614
90615 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90616
90617         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90618         that we can shift, multiply and divide unsigned long long
90619         values; Ultrix cc can't do it.
90620
90621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90622
90623         * m4/mktime.m4: New file, which is a preview of what should appear
90624         in the next public autoconf release.
90625
90626 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90627
90628         * m4/lfs.m4: Remove this file.
90629         * m4/largefile.m4: New file.  It contains the old contents of
90630         lfs.m4, except that all names with prefix AC_LFS have been
90631         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90632         compatible with future autoconf versions.  Also, some minor m4
90633         quoting problems have been fixed.
90634
90635 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90636
90637         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90638         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90639         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90640         and simplify the shell code.
90641
90642 1999-08-01  Jim Meyering  <meyering@ascend.com>
90643
90644         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90645         m4.
90646
90647 1999-07-20  Jim Meyering  <meyering@ascend.com>
90648
90649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90650
90651 1999-07-15  Jim Meyering  <meyering@ascend.com>
90652
90653         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90654
90655 1999-05-22  Jim Meyering  <meyering@ascend.com>
90656
90657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90658
90659 1999-05-20  Jim Meyering  <meyering@ascend.com>
90660
90661         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90662         Add a colon after each `then' in case $4 is empty.
90663
90664 1999-05-16  Jim Meyering  <meyering@ascend.com>
90665
90666         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90667
90668 1999-05-10  Jim Meyering  <meyering@ascend.com>
90669
90670         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90671
90672         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90673         AC_FUNC_MKTIME.
90674
90675 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90676
90677         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90678
90679 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90680
90681         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90682         not CPPFLAGS, so that linking works correctly in IRIX.
90683
90684 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90685
90686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90687
90688 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90689
90690         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90691         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90693         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90694         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90695
90696         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90697
90698 1999-04-20  Jim Meyering  <meyering@ascend.com>
90699
90700         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90701         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90702         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90703
90704 1999-04-18  Jim Meyering  <meyering@ascend.com>
90705
90706         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90707         * m4/jm-macros.m4: Use it.
90708
90709 1999-04-06  Jim Meyering  <meyering@ascend.com>
90710
90711         * m4/strftime.m4: Remove test for %f.
90712
90713 1999-03-29  Jim Meyering  <meyering@ascend.com>
90714
90715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90716         superset of the AC_TYPE_* checks in the textutils, fileutils,
90717         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90718         AC_TYPE_PID_T.
90719
90720 1999-03-28  Jim Meyering  <meyering@ascend.com>
90721
90722         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90723         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90724         replaced e.g., in the *.sh files of the sh-utils.
90725
90726 1999-03-20  Jim Meyering  <meyering@ascend.com>
90727
90728         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90729         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90730         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90731
90732 1999-03-19  Jim Meyering  <meyering@ascend.com>
90733
90734         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90735
90736 1999-03-12  Jim Meyering  <meyering@ascend.com>
90737
90738         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90739
90740 1999-03-07  Jim Meyering  <meyering@ascend.com>
90741
90742         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90743         declared.
90744
90745 1999-02-17  Jim Meyering  <meyering@ascend.com>
90746
90747         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90748         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90749
90750 1999-02-07  Jim Meyering  <meyering@ascend.com>
90751
90752         * m4/group-member.m4: New file -- extracted from sh-utils'
90753         configure.in.
90754
90755         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90756         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90757
90758 1999-02-06  Jim Meyering  <meyering@ascend.com>
90759
90760         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90761         * m4/fnmatch.m4: Likewise.
90762         * m4/getgroups.m4: Likewise.
90763         * m4/lstat.m4: Likewise.
90764         * m4/malloc.m4: Likewise.
90765         * m4/putenv.m4: Likewise.
90766         * m4/realloc.m4: Likewise.
90767         * m4/regex.m4: Likewise.
90768         * m4/stat.m4: Likewise.
90769         * m4/strftime.m4: Likewise.
90770         Suggestion from Alain Magloire.
90771
90772         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90773         * m4/fnmatch.m4: Likewise.
90774         * m4/getgroups.m4: Likewise.
90775         * m4/getline.m4: Likewise.
90776         * m4/lstat.m4: Likewise.
90777         * m4/malloc.m4: Likewise.
90778         * m4/memcmp.m4: Likewise.
90779         * m4/putenv.m4: Likewise.
90780         * m4/realloc.m4: Likewise.
90781         * m4/regex.m4: Likewise.
90782         * m4/stat.m4: Likewise.
90783         * m4/strftime.m4: Likewise.
90784         Suggestion from Alain Magloire.
90785
90786         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90787         an argument.
90788
90789         * m4/regex.m4: Add a run-time Test for proper operation of
90790         re_compile_pattern.
90791
90792 1999-01-31  Jim Meyering  <meyering@ascend.com>
90793
90794         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90795
90796 1999-01-30  Jim Meyering  <meyering@ascend.com>
90797
90798         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90799
90800         * m4/jm-mktime.m4: Make this a wrapper around the official
90801         AM_FUNC_MKTIME rather than my private copy, now that the official one
90802         is up to date.
90803         * m4/mktime.m4: Remove file.
90804
90805         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90806         * m4/uptime.m4: Likewise.
90807         * m4/uintmax_t.m4: Likewise.
90808
90809 1999-01-28  Jim Meyering  <meyering@ascend.com>
90810
90811         * m4/jm-macros.m4: Use jm_AFS.
90812         * m4/afs.m4: New file (from fileutils' configure.in).
90813
90814         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90815         * m4/chown.m4: Likewise.
90816         * m4/d-ino.m4: Likewise.
90817         * m4/d-type.m4: Likewise.
90818         * m4/fnmatch.m4: Likewise.
90819         * m4/getgroups.m4: Likewise.
90820         * m4/gettext.m4: Likewise.
90821         * m4/jm-mktime.m4: Likewise.
90822         * m4/jm-winsz2.m4: Likewise.
90823         * m4/lcmessage.m4: Likewise.
90824         * m4/ls-mntd-fs.m4: Likewise.
90825         * m4/malloc.m4: Likewise.
90826         * m4/memcmp.m4: Likewise.
90827         * m4/putenv.m4: Likewise.
90828         * m4/realloc.m4: Likewise.
90829         * m4/st_mtim.m4: Likewise.
90830         * m4/strftime.m4: Likewise.
90831
90832 1999-01-16  Jim Meyering  <meyering@ascend.com>
90833
90834         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90835         (ARGMATCH_DIE_DECL): Define.
90836
90837 1999-01-12  Jim Meyering  <meyering@ascend.com>
90838
90839         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90840         Reported by Lars Hecking.
90841
90842 1999-01-10  Jim Meyering  <meyering@ascend.com>
90843
90844         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90845         gross kludge.
90846         * m4/inttypes_h.m4: Likewise.
90847         * m4/lstat.m4: Likewise.
90848         * m4/malloc.m4: Likewise.
90849         * m4/readdir.m4: Likewise.
90850         * m4/realloc.m4: Likewise.
90851         * m4/st_dm_mode.m4: Likewise.
90852         * m4/stat.m4: Likewise.
90853         * m4/utimbuf.m4: Likewise.
90854         * m4/utimes.m4: Likewise.
90855
90856         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90857         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90858         comments in config.h.in are meaningful.
90859
90860         * m4/jm-macros.m4: Require autoconf-2.13 here.
90861
90862         * m4/regex.m4: By default, don't use the included regex.c on systems
90863         with glibc 2.  Suggestion from Uli Drepper.
90864
90865 1999-01-02  Jim Meyering  <meyering@ascend.com>
90866
90867         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90868
90869 1998-12-18  Jim Meyering  <meyering@ascend.com>
90870
90871         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90872         Based on a suggestion from Lars Hecking.
90873
90874 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90875
90876         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90877
90878 1998-11-16  Jim Meyering  <meyering@ascend.com>
90879
90880         * m4/lfs.m4: Double-quote the `uname...` expression.
90881
90882 1998-11-14  Jim Meyering  <meyering@ascend.com>
90883
90884         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90885         * m4/stat.m4: Likewise.
90886
90887 1998-11-03  Jim Meyering  <meyering@ascend.com>
90888
90889         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90890         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90891
90892 1998-10-18  Jim Meyering  <meyering@ascend.com>
90893
90894         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90895
90896 1998-10-17  Jim Meyering  <meyering@ascend.com>
90897
90898         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90899         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90900         calls for those previously hard-coded headers.  Instead, take a new
90901         parameter.
90902         (jm_CHECK_DECLARATIONS): Reflect interface change.
90903         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90904         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90905
90906         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90907
90908 1998-10-14  Jim Meyering  <meyering@ascend.com>
90909
90910         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90911         instead of "TZ=America/Vancouver".  From Paul Eggert.
90912
90913 1998-10-11  Jim Meyering  <meyering@ascend.com>
90914
90915         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90916         This adds a test for a recently added compatibility fix for mktime.c.
90917         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90918
90919 1998-09-27  Jim Meyering  <meyering@ascend.com>
90920
90921         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90922
90923         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90924         ../configure.in, including a change from Gordon Matzigkeit to allow
90925         cross-compiling for the Hurd.
90926
90927         * m4/glibc.m4: New file/macro to test for the GNU C Library
90928         versions 1 and 2.  From Gordon Matzigkeit.
90929         Indent.
90930
90931 1998-09-21  Jim Meyering  <meyering@ascend.com>
90932
90933         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90934
90935 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90936
90937         Port nanosecond-resolution times to UnixWare 2.1.2 and
90938         pedantic Solaris 2.6.
90939
90940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90941         AC_STRUCT_ST_MTIM.
90942         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90943         Generate name of ns member, instead of just 1 or undef.
90944         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90945
90946 1998-08-15  Jim Meyering  <meyering@ascend.com>
90947
90948         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90949         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90950         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90951         instead of jm_TYPE_SSIZE_T.
90952
90953 1998-08-12  Jim Meyering  <meyering@ascend.com>
90954
90955         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90956
90957 1998-08-02  Jim Meyering  <meyering@ascend.com>
90958
90959         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90960         in acconfig.h manually.
90961
90962 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90963
90964         * m4/st_mtim.m4: New file.
90965
90966 1998-07-28  Jim Meyering  <meyering@ascend.com>
90967
90968         * m4/utimes.m4: Undef stat.
90969
90970 1998-07-25  Jim Meyering  <meyering@ascend.com>
90971
90972         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90973         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90974
90975 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90976
90977         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90978         uid and gid actually remain unchanged.
90979
90980 1998-07-07  Jim Meyering  <meyering@ascend.com>
90981
90982         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90983
90984 1998-07-04  Jim Meyering  <meyering@ascend.com>
90985
90986         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90987         to prove that this macro can be used in packages without regex.c.
90988
90989 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90990
90991         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90992         is to be used.
90993
90994 1998-07-03  Jim Meyering  <meyering@ascend.com>
90995
90996         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90997
90998         * m4/gettext.m4: New file -- from gettext-0.10.35.
90999         * m4/lcmessage.m4: Likewise.
91000         * m4/progtest.m4: Likewise.
91001
91002         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91003         * m4/jm-macros.m4: Require the new macro.
91004
91005 1998-06-29  Jim Meyering  <meyering@ascend.com>
91006
91007         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91008         for the definition of NGROUPS (used in a system header included
91009         by sys/mount.h).
91010
91011 1998-06-28  Jim Meyering  <meyering@ascend.com>
91012
91013         * m4/ls-mntd-fs.m4: New file.
91014         * m4/fstypename.m4: New file.
91015
91016         * m4/jm-macros.m4: Require the new macro.
91017         * m4/jm-glibc-io.m4: New file.
91018
91019 1998-05-19  Jim Meyering  <meyering@ascend.com>
91020
91021         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91022         * m4/lchown.m4: New file.
91023
91024         * m4/Makefile.am.in: New file.
91025         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91026
91027 1998-05-14  Jim Meyering  <meyering@ascend.com>
91028
91029         * m4/Makefile.am (EXTRA_DIST): Add them.
91030         * m4/jm-macros.m4: New file.
91031         * m4/utimbuf.m4: New file.
91032
91033 1998-05-12  Jim Meyering  <meyering@ascend.com>
91034
91035         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91036
91037 1998-05-11  Jim Meyering  <meyering@ascend.com>
91038
91039         * m4/isc-posix.m4: New file.
91040
91041 1998-05-10  Jim Meyering  <meyering@ascend.com>
91042
91043         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91044
91045 1998-05-09  Jim Meyering  <meyering@ascend.com>
91046
91047         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91048         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91049         with automake.
91050
91051         * m4/ssize_t.m4: New file.
91052         * m4/mktime.m4: Remove file -- the new automake has this now.
91053
91054 1998-04-26  Jim Meyering  <meyering@ascend.com>
91055
91056         * m4/assert.m4: New file.
91057         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91058
91059 1998-04-05  Jim Meyering  <meyering@ascend.com>
91060
91061         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91062         (jm_PREREQ): Use it here.
91063
91064 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91065
91066         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91067         in acconfig.h.
91068
91069 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91070
91071         * m4/prereq.m4: New file.
91072         * m4/error.m4: New file.
91073         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91074
91075 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91076
91077         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91078         cache-check for the same variable -- that defeated the purpose of
91079         the test; the test program was never run.  This was a problem only
91080         on systems with losing getline functions -- HP-UX 10.20 is one.
91081         Reported by Bjorn Helgaas.
91082
91083 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91084
91085         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91086
91087 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91088
91089         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91090
91091         * m4/const.m4: New file.  Use an initializer in this declaration
91092         typedef int charset[2]; const charset x;
91093         Reported by Bob Glickstein.
91094
91095 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91096
91097         * m4/chown.m4: Fix reversed types on -1 args to chown.
91098         From Kaveh Ghazi.
91099
91100 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91101
91102         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91103         Add lseek and memchr.
91104
91105         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91106         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91107         have a 20-character limit on names.
91108
91109 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91110
91111         * m4/inttypes_h.m4: New file.
91112         * m4/uintmax_t.m4: New file.
91113         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91114
91115
91116         -----
91117
91118         Local Variables:
91119         coding: utf-8
91120         End:
91121
91122         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91123
91124         Copying and distribution of this file, with or without
91125         modification, are permitted provided the copyright notice
91126         and this notice are preserved.