1759167290c51b90b7712e0d72ffa58b50a65e43
[gnulib.git] / ChangeLog
1 2012-01-10  Bruno Haible  <bruno@clisp.org>
2
3         doc: Mention --with-tests option.
4         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6         --with-tests.
7         Reported by Reuben Thomas.
8
9 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10
11         users.txt: order package names lexicographically.
12         * users.txt: Order package names lexicographically.
13
14 2012-01-10  Jim Meyering  <meyering@redhat.com>
15
16         maint.mk: fix description in comment
17         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
18
19         ignore-value: remove deprecated ignore_ptr function
20         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
21         * NEWS: Note this.
22
23 2012-01-09  Jim Meyering  <meyering@redhat.com>
24
25         test-init.sh: avoid a subshell
26         * tests/test-init.sh: Remove protective subshell.
27         Suggested by Bernhard Voelker.  While a subshell is normally
28         required to protect against older shells (Solaris, FreeBSD) that
29         warn about a missing program before performing redirection, the
30         shell-selection tests performed by init.sh probably exclude any
31         offending shell.
32
33 2012-01-08  Bruno Haible  <bruno@clisp.org>
34
35         setlocale tests: Avoid test failure on Solaris 11 2011-11.
36         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
37         variable.
38
39 2012-01-08  Bruno Haible  <bruno@clisp.org>
40
41         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
42         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
45         macro.
46         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
47         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
48         * lib/spawn_faction_addopen.c: Add workaround implementation if
49         HAVE_WORKING_POSIX_SPAWN.
50         * modules/spawn (Makefile): Substitute
51         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
52         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
53         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
54         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
55         (Depends-on): Update conditions.
56         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57         the Solaris 11 bug.
58
59 2012-01-08  Bruno Haible  <bruno@clisp.org>
60
61         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
62         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
63         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
64         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
65         macro.
66         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
67         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
68         * lib/spawn_faction_adddup2.c: Add workaround implementation if
69         HAVE_WORKING_POSIX_SPAWN.
70         * modules/spawn (Makefile): Substitute
71         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
72         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
73         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
74         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
75         (Depends-on): Update conditions.
76         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
77         the Solaris 11 bug.
78
79 2012-01-08  Bruno Haible  <bruno@clisp.org>
80
81         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
82         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
83         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
84         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
85         HAVE_WORKING_POSIX_SPAWN.
86         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
87         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
88         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
89         * lib/spawn_faction_addclose.c: Add workaround implementation if
90         HAVE_WORKING_POSIX_SPAWN.
91         * modules/spawn (Makefile): Substitute
92         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
93         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
94         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
95         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
96         (Depends-on): Update conditions.
97         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
98         the Solaris 11 bug.
99
100 2012-01-08  Bruno Haible  <bruno@clisp.org>
101
102         doc: Update for Solaris 11 2011-11.
103         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
104         * m4/printf.m4: Update comments.
105
106 2012-01-08  Bruno Haible  <bruno@clisp.org>
107
108         mktime: Avoid compilation error on Solaris 11.
109         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
110
111 2012-01-08  Bruno Haible  <bruno@clisp.org>
112
113         doc: Small fix.
114         * doc/posix-headers/nl_types.texi: Correct platforms list.
115
116 2012-01-08  Simon Josefsson  <simon@josefsson.org>
117
118         Add lgpl-3.0 module.
119         * MODULES.html.sh (Support for building documentation): Add
120         lgpl-3.0.
121         * modules/lgpl-3.0: New file.
122
123 2012-01-08  Jim Meyering  <meyering@redhat.com>
124
125         select.c: indent with spaces, not TABs
126         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
127
128 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
129
130         quotearg: do not use grave accent for left quote
131         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
132         locale_quoting_style.
133         (quotearg_buffer_restyled): Fix example.
134         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
135
136 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
137
138         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
139         Most programs do not have translation catalogs for English and much
140         less separate catalogs for British and American English.  Drop the
141         suggestion to translators about these two, and provide it
142         automatically for Unicode locales.  Like most programs, even those
143         using American English, we use single quotation marks.  This conflicts
144         with the American typographic convention, but works better when you
145         cite the entire error message within double quotes.  It also tries not
146         to clash with established practice and with what non-gnulib programs
147         will usually do.
148         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
149         using an UTF-8 or GB-18030 locale.  The list of other locales with
150         quotes was provided by Bruno Haible.
151         (quotearg_buffer_restyled): Adjust instructions to translators.
152         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
153         text, since this would be wrong when using Unicode.
154         * modules/quotearg: Depend on c-strcaseeq.
155
156 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
157
158         quotearg: fix Wikipedia link
159         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
160
161 2012-01-07  Simon Josefsson  <simon@josefsson.org>
162
163         Fix for mingw with MSVC9.
164         * m4/ld-version-script.m4: Check that compiler rejects version
165         scripts with syntax errors.  Reported by Bruno Haible
166         <bruno@clisp.org>.
167
168 2012-01-06  Bruno Haible  <bruno@clisp.org>
169
170         Talk about "native Windows API", not "Woe32".
171         * lib/accept4.c: Update comments to mention native Windows.
172         * lib/execute.c: Likewise.
173         * lib/fatal-signal.c: Likewise.
174         * lib/localcharset.c: Likewise.
175         * lib/nanosleep.c: Likewise.
176         * lib/nl_langinfo.c: Likewise.
177         * lib/pclose.c: Likewise.
178         * lib/pipe-filter-gi.c: Likewise.
179         * lib/pipe-filter-ii.c: Likewise.
180         * lib/pipe.c: Likewise.
181         * lib/pipe2.c: Likewise.
182         * lib/popen.c: Likewise.
183         * lib/progreloc.c: Likewise.
184         * lib/relocatable.c: Likewise.
185         * lib/sigaction.c: Likewise.
186         * lib/sigprocmask.c: Likewise.
187         * lib/spawn-pipe.h: Likewise.
188         * lib/spawn-pipe.c: Likewise.
189         * lib/spawni.c: Likewise.
190         * lib/stat-time.h: Likewise.
191         * lib/w32spawn.h: Likewise.
192         * tests/test-isatty.c: Likewise.
193         * lib/config.charset: More comments.
194         * doc/gnulib-intro.texi: Mention native Windows.
195         * doc/posix-functions/_Exit_C99.texi: Likewise.
196         * doc/posix-headers/fcntl.texi: Likewise.
197
198 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
199
200         argp: Avoid crash if translator uses % characters in a translation.
201         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
202         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
203
204 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
205
206         doc: C11 and C++11 are now official
207         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
208         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
209         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
210         * modules/stdalign:
211         Replace references to draft C1X to C11, and to draft C++0X to C++11.
212
213 2012-01-06  Bruno Haible  <bruno@clisp.org>
214
215         uc-is-grapheme-break tests: Tweak.
216         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
217         message.
218
219 2012-01-06  Bruno Haible  <bruno@clisp.org>
220
221         test-init.sh: correct the test for diff -u
222         * tests/test-init.sh: Also redirect stdout to /dev/null.
223
224 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
225
226         Use ', not `, for quoting output.
227         * build-aux/announce-gen (usage, sizes, print_news_deltas)
228         (print_changelog_deltas, get_tool_versions, main program):
229         * build-aux/git-version-gen:
230         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
231         * build-aux/move-if-change (help):
232         * build-aux/useless-if-before-free (usage, main program):
233         * check-module (parse_module_file, usage)
234         (find_included_lib_files, check_module):
235         * lib/argmatch.c (main) [TEST]:
236         * lib/argp-help.c (_help):
237         * lib/getopt1.c (main) [TEST]:
238         * lib/git-merge-changelog.c (usage):
239         * lib/xstrtol-error.c (xstrtol_error):
240         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
241         * m4/argz.m4 (gl_FUNC_ARGZ):
242         * m4/bison.m4 (gl_BISON):
243         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
244         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
245         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
246         * m4/fpending.m4 (gl_PREREQ_FPENDING):
247         * m4/gc-random.m4 (gl_GC_RANDOM):
248         * m4/intl.m4 (gt_CHECK_DECL):
249         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
251         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
252         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
253         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
254         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
255         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
256         * tests/test-dirname.c (main):
257         * tests/test-getpass.c (main):
258         * tests/test-iconvme.c (main):
259         * tests/test-parse-datetime.c (LOG):
260         * tests/test-xstrtoimax.sh:
261         * tests/test-xstrtol.sh:
262         * tests/test-xstrtoll.sh:
263         * tests/test-xstrtoumax.sh:
264         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
265         * top/GNUmakefile (abort-due-to-no-makefile):
266         Quote 'like this', not `like this', as per the recent change to
267         the GNU coding standards.
268
269 2012-01-05  Bruno Haible  <bruno@clisp.org>
270
271         strtoimax: Don't force a replacement on systems where intmax_t is int.
272         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
273         'intmax_t' is not larger than 'int'.
274         Reported by Pádraig Brady <P@draigBrady.com>.
275
276 2012-01-05  Bruno Haible  <bruno@clisp.org>
277
278         doc: Mention NetBSD bugs.
279         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
280         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
281
282 2012-01-05  Bruno Haible  <bruno@clisp.org>
283
284         strtoumax tests: Enhance tests.
285         * tests/test-strtoumax.c (main): Add tests for large values.
286
287 2012-01-05  Bruno Haible  <bruno@clisp.org>
288
289         strtoimax: Work around AIX 5.1 bug.
290         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
291         definition.
292         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
293         Set HAVE_STRTOIMAX.
294         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
295         REPLACE_STRTOIMAX.
296         * modules/inttypes-incomplete (Makefile.am): Substitute
297         REPLACE_STRTOIMAX.
298         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
299         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
300         (Depends-on): Update conditions.
301         * tests/test-strtoimax.c (main): Add tests for large values.
302         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
303
304 2012-01-05  Bruno Haible  <bruno@clisp.org>
305
306         inttypes: Modernize.
307         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
308         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
309         (Makefile.am): Update inttypes.h rule.
310
311 2012-01-05  Jim Meyering  <meyering@redhat.com>
312
313         init.sh: don't waste a subshell just to redirect stderr
314         * tests/init.sh: In testing for diff -u and diff -c, use a
315         stderr-redirecting exec inside `...` rather than a subshell.
316
317         test-init.sh: avoid failure on HP-UX 11.00
318         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
319         resolves to diff -c or cmp.  Reported by Bruno Haible.
320
321 2012-01-05  Bruno Haible  <bruno@clisp.org>
322
323         Tests for module 'strtoull'.
324         * modules/strtoull-tests: New file.
325         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
326
327 2012-01-05  Bruno Haible  <bruno@clisp.org>
328
329         Tests for module 'strtoll'.
330         * modules/strtoll-tests: New file.
331         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
332
333 2012-01-05  Bruno Haible  <bruno@clisp.org>
334
335         Tests for module 'strtoul'.
336         * modules/strtoul-tests: New file.
337         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
338
339 2012-01-05  Bruno Haible  <bruno@clisp.org>
340
341         Tests for module 'strtol'.
342         * modules/strtol-tests: New file.
343         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
344
345 2012-01-04  Jim Meyering  <meyering@redhat.com>
346
347         test-init.sh: accommodate Solaris 5.10's different diff -u output
348         * tests/test-init.sh: Also exempt @@ lines from the comparison
349         of diff output, since Solaris 5.10 and GNU diff formats differ.
350         Reported by Stefano Lattarini.
351
352 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
353
354         test-posixtm: don't assume signed integer wraparound
355         * tests/test-posixtm.c (main): Don't assume wraparound semantics
356         after signed integer overflow.  Inspired by (though it may not
357         fix) Bruno Haible's bug report in
358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
359
360         Spell out "Windows 9x" and "Windows XP".
361         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
362         "Windows 9x" and "WinXP" with "Windows XP".
363
364 2012-01-04  Jim Meyering  <meyering@redhat.com>
365
366         test-vc-list-files-cvs.sh: remove obsolete comment
367         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
368         double exit.  Now that's all encapsulated via skip_ and Exit.
369
370 2012-01-04  Bruno Haible  <bruno@clisp.org>
371
372         Talk about "native Windows API", not "Win32".
373         * lib/classpath.c: Update comments to mention native Windows.
374         * lib/csharpexec.c: Likewise.
375         * lib/dup2.c: Likewise.
376         * lib/error.c: Likewise.
377         * lib/fcntl.c: Likewise.
378         * lib/filename.h: Likewise.
379         * lib/findprog.c: Likewise.
380         * lib/get-rusage-as.c: Likewise.
381         * lib/get-rusage-data.c: Likewise.
382         * lib/getpagesize.c: Likewise.
383         * lib/javaexec.c: Likewise.
384         * lib/msvc-inval.c: Likewise.
385         * lib/msvc-nothrow.c: Likewise.
386         * lib/nanosleep.c: Likewise.
387         * lib/nonblocking.c: Likewise.
388         * lib/printf-parse.c: Likewise.
389         * lib/setlocale.c: Likewise.
390         * lib/sigaction.c: Likewise.
391         * lib/strerror_r.c: Likewise.
392         * lib/tmpdir.c: Likewise.
393         * lib/vasnprintf.c: Likewise.
394         * lib/w32spawn.h: Likewise.
395         * lib/waitpid.c: Likewise.
396         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
397         * m4/locale-ar.m4: Likewise.
398         * m4/locale-fr.m4: Likewise.
399         * m4/locale-ja.m4: Likewise.
400         * m4/locale-tr.m4: Likewise.
401         * m4/locale-zh.m4: Likewise.
402         * m4/printf.m4: Likewise.
403         * tests/test-cloexec.c: Likewise.
404         * tests/test-copy-acl.sh: Likewise.
405         * tests/test-copy-file.sh: Likewise.
406         * tests/test-file-has-acl.sh: Likewise.
407         * tests/test-set-mode-acl.sh: Likewise.
408         * tests/test-dup-safer.c: Likewise.
409         * tests/test-dup2.c: Likewise.
410         * tests/test-dup3.c: Likewise.
411         * tests/test-fcntl.c: Likewise.
412         * tests/test-nonblocking-pipe.h: Likewise.
413         * tests/test-nonblocking-socket.h: Likewise.
414         * tests/test-pipe.c: Likewise.
415         * tests/test-pipe2.c: Likewise.
416         * tests/test-spawn-pipe-child.c: Likewise.
417         * doc/acl-resources.txt: Likewise.
418         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
419         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
420         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
421         * lib/localcharset.c: Update comments to mention native Windows.
422         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
423         * lib/localename.c: Likewise.
424         * lib/progreloc.c: Likewise.
425         * lib/relocatable.c: Likewise.
426         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
427         (windows_compute_revents): Renamed from win32_compute_revents.
428         (windows_compute_revents_socket): Renamed from
429         win32_compute_revents_socket.
430         * lib/select.c: Update comments to mention native Windows.
431         (windows_poll_handle): Renamed from win32_poll_handle.
432         * m4/threadlib.m4: Update comments to mention native Windows.
433         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
434         --enable-threads=windows instead of --enable-threads=win32. Set
435         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
436         * lib/glthread/lock.h: Update comments to mention native Windows.
437         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
438         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
439         USE_WIN32_THREADS.
440         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
441         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
442         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
443         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
444         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
445         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
446         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
447         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
448         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
449         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
450         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
451         * tests/test-tls.c: Likewise.
452         Rationale:
453         Microsoft renamed the "Win32 API" to "Windows API", as it is available
454         on both 32-bit and 64-bit Windows systems.
455         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
456         line of distinction is between "native Windows" on one side and Unix/
457         POSIX systems on the other side. More details in
458         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
459         Suggested by Paul Eggert.
460
461 2012-01-03  Bruno Haible  <bruno@clisp.org>
462
463         isatty: Support for MSVC 9.
464         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
465         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
466         (_isatty_nothrow): New function.
467         (isatty): Use it instead of _isatty.
468         (IsConsoleHandle): Add comment, from Paolo Bonzini.
469         * lib/poll.c (IsConsoleHandle): Likewise.
470         * lib/select.c (IsConsoleHandle): Likewise.
471         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
472         (gl_PREREQ_ISATTY): New macro.
473         * modules/isatty (Depends-on): Add msvc-inval.
474         (configure.ac): Invoke gl_PREREQ_ISATTY.
475
476 2012-01-03  Jim Meyering  <meyering@redhat.com>
477
478         maint.mk: remove temporary transition aid from over 1.5 years ago
479         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
480         purpose was to aid in the transition (avoiding silent malfunction)
481         from that old name to the new _sc_search_regexp.  This shim was
482         added by commit 219c504b.
483
484         init.sh: do not try to accommodate compare arguments starting with "-"
485         * tests/init.sh (compare_dev_null_): Do not try to accommodate
486         compare arguments that start with "-".  Besides, we do not worry
487         about this when invoking diff or cmp; why start now with sed?
488         Using "--" to separate options from argument would trigger sed
489         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
490         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
491
492 2012-01-02  Bruno Haible  <bruno@clisp.org>
493
494         Enhance tests for module 'isatty'.
495         * modules/isatty-tests (Depends-on): Add pipe-posix.
496         * tests/test-isatty.c: Include <fcntl.h>.
497         (DEV_NULL): New macro.
498         (main): Test the resut of isatty() also on regular files, pipes, and
499         /dev/null.
500
501         New module 'isatty'.
502         * lib/unistd.in.h (isatty): New declaration.
503         * lib/isatty.c: New file, based on an idea of
504         Bastien Roucariès <roucaries.bastien@gmail.com>.
505         * m4/isatty.m4: New file.
506         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
507         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
508         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
509         REPLACE_ISATTY.
510         * modules/isatty: New file.
511         * doc/posix-functions/isatty.texi: Mention the new module.
512         Suggested by Paolo Bonzini.
513
514 2012-01-02  Bruno Haible  <bruno@clisp.org>
515
516         canonicalize: Tweak 2011-12-29 commit.
517         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
518         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
519
520 2012-01-02  Jim Meyering  <meyering@redhat.com>
521
522         gitlog-to-changelog: describe input syntax in --help output
523         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
524
525         gitlog-to-changelog: fix typo in --help: show backslash before email @
526         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
527         in sources, but not in actual output.
528
529 2011-12-30  Jim Meyering  <meyering@redhat.com>
530
531         gitlog-to-changelog: don't malfunction when name contains %-directive
532         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
533         in a name string cause trouble.  E.g., with a user name of "%s",
534         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
535
536 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
537
538         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
539         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
540         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
541         the "  (tiny change)" notation that is appended to the standard
542         ChangeLog "date  name  email" header line.
543
544 2012-01-01  Jim Meyering  <meyering@redhat.com>
545
546         test-framework-sh: init.sh: fix "make dist" failure
547         When using gnulib-tool's --with-tests option and any module that
548         depends on test-framework-sh, "make dist" would fail due to the
549         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
550         in the gltests directory, and not in the gllib/ directory.
551         One way to work around that is to move the EXTRA_DIST += init.sh
552         from the primary module to the -tests one:
553         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
554         * modules/test-framework-sh (Makefile.am): ...not here.
555         Reported by Tom G. Christensen in
556         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
557
558         version-etc: update copyright year reported by --version
559         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
560
561 2011-12-31  Pádraig Brady  <P@draigBrady.com>
562
563         canonicalize: only stat() if required
564         * lib/canonicalize.c (canonicalize_filename_mode):
565         Avoid calling l?stat() when both CAN_MISSING,
566         and CAN_NOLINKS are set, as we neither need
567         to resolve symlinks or test component existence.
568
569 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
570
571         doc: cover st_ino issues once; add OpenVMS etc.
572         * doc/posix-functions/stat.texi (stat):
573         * doc/posix-functions/lstat.texi (lstat):
574         * doc/posix-functions/fstatat.texi (fstatat):
575         * doc/posix-functions/fstat.texi (fstat):
576         Move general 'struct stat' stuff to sys_stat.texi,
577         leaving behind a pointer.
578         * doc/posix-headers/sys_stat.texi (sys/stat.h):
579         Merge duplicate info about 'struct stat' problems into here.
580         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
581         and suggest partial workarounds.
582
583         same-inode: port to OpenVMS
584         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
585         three st_ino values.
586
587 2011-12-30  Pádraig Brady  <P@draigBrady.com>
588
589         canonicalize: fix references to stat() and lstat()
590         * lib/canonicalize.c (canonicalize_filename_mode):
591         Ensure references always resolve to a replacement
592         function if required (even via a macro).
593
594 2011-12-30  Jim Meyering  <meyering@redhat.com>
595
596         gitlog-to-changelog: remove a little duplication
597         * build-aux/gitlog-to-changelog (main): Grep @lines once,
598         rather than twice.
599
600 2011-12-29  Pádraig Brady  <P@draigBrady.com>
601
602         canonicalize: add support for not resolving symlinks
603         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
604         indicate we don't want to follow symlinks.  Also
605         provide CAN_MODE_MASK to aid setting these existing
606         mutually exclusive values.
607         * lib/canonicalize.c (canonicalize_filename_mode):
608         Extract the flags from can_mode parameter, which
609         are currently just used to select between stat()
610         and lstat().  Also ensure that mutually exclusive
611         values are flagged immediately as invalid.
612         * tests/test-canonicalize.c: Verify symlinks are
613         not followed, and that invalid flag combinations
614         are diagnosed.
615
616 2011-12-25  Jim Meyering  <meyering@redhat.com>
617
618         gitlog-to-changelog: do not clump multi-paragraph entries
619         Identical header lines (date,name,email+coauthors) are suppressed,
620         thus putting all entries with those same characteristics under
621         a single header.  However, when a log entry consists of two or
622         more paragraphs, it may not be clear where it starts and ends.
623         This change makes it so that such an entry is always separated
624         from others by a header line, even when that header would
625         otherwise be suppressed.
626         * build-aux/gitlog-to-changelog: Implement the above.
627         Inspired by a related request from Stefano Lattarini in
628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
629
630 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
631
632         announce-gen: fix `cmd' typo in diagnostic
633         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
634         diagnostic: a missing '$' meant that the command was not output.
635
636 2011-12-23  Jim Meyering  <meyering@redhat.com>
637
638         test-framework-sh: distribute init.sh
639         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
640         Otherwise, "make -C gnulib-tests check" (at least in grep) would
641         fail due to the lack of init.sh.
642
643         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
644         * modules/atexit-tests: Rather than listing tests/init.sh,
645         now that there's a module for it, simply depend on that new module.
646         * modules/closein-tests: Likewise.
647         * modules/exclude-tests: Likewise.
648         * modules/getcwd-tests: Likewise.
649         * modules/perror-tests: Likewise.
650         * modules/pread-tests: Likewise.
651         * modules/pwrite-tests: Likewise.
652         * modules/vc-list-files-tests: Likewise.
653         * modules/verify-tests: Likewise.
654         * modules/xalloc-die-tests: Likewise.
655         * modules/xstrtoimax-tests: Likewise.
656         * modules/xstrtol-tests: Likewise.
657         * modules/xstrtoll-tests: Likewise.
658         * modules/xstrtoumax-tests: Likewise.
659         * modules/yesno-tests: Likewise.
660
661 2011-12-22  Jim Meyering  <meyering@redhat.com>
662
663         test-framework-sh: add minimal tests of init.sh's compare function
664         * modules/test-framework-sh-tests: New file.
665         * tests/test-init.sh: New file.
666
667         test-framework-sh: new module
668         * modules/test-framework-sh: New file.
669         * MODULES.html.sh (Support for maintaining and releasing projects):
670         List it.
671
672         init.sh: do not emit simulated diff output to stderr
673         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
674
675 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
676
677         .gitignore: ignore gnulib.dvi and regex.info
678         * doc/.gitignore:add gnulib.dvi and regex.info
679
680 2011-12-22  Jim Meyering  <meyering@redhat.com>
681
682         init.sh: correct previous change
683         * tests/init.sh (compare): My previous change was wrong.
684         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
685
686         init.sh: avoid unwarranted test failure when using "set -e"
687         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
688         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
689         a use like "compare exp out" would get evoke an unconditional failure.
690
691 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
692
693         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
694         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
695         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
696         autoreconf that did not.
697         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
698         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
699
700 2011-12-17  Jim Meyering  <meyering@redhat.com>
701
702         bootstrap: remove some now-unneeded code
703         This script arose back when gnulib-tool was young.
704         Since then, it has seen improvements that render much of this
705         script unnecessary.  In particular, it can now make symlinks
706         to the files it uses.  Also, I no longer see as much value in
707         marking files as read-only via comments.
708         If you relied on the symlink-creation feature of the preceding
709         version of this script, you can get most of that functionality
710         by adding the --symlink option to the definition of
711         gnulib_tool_option_extras in your bootstrap.conf file.
712         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
713         Run autopoint and libtoolize *before* gnulib-tool.
714         After it, run an abbreviated autoreconf, rather than a loop around
715         all tools.
716         (slirp, bt_mark_as_generated): Remove functions.
717
718 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
719
720         ftoastr: fix typo
721         * lib/ftoastr.h: Fix misspelling in comment.
722
723 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
724
725         * top/README-release: fix punctuation.
726
727 2011-12-17  Jim Meyering  <meyering@redhat.com>
728
729         bootstrap: correct the recent buildreq change
730         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
731         had no effect.
732         * build-aux/bootstrap (buildreq): Bracket each search term with
733         "*...*", so that the shell "case" statement works as intended.
734         Add comments.
735
736 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
737
738         build: let bootstrap resort to wget when downloading .po files
739         * build-aux/bootstrap (download_po_files): Fallback to wget when
740         downloading the .po files via rsync fails.  This is necessary to
741         bootstrap from behind a strict firewall.
742
743 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
744
745         stdint: don't assume C++11 when compiling with g++
746         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
748         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
749         work also in C++ before C++11, as that improperly inhibits
750         generating a substitute stdint.h for that case.
751
752 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
753
754         alloca: protect comment from gnulib-tool
755         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
756         that gnulib-tool doesn't think it's a license, and munge it to
757         say "GCC version 3".
758
759 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
760
761         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
762         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
763         $(abs_top_builddir) instead of $(top_builddir).
764
765 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
766
767         strftime-tests: also test nanoseconds
768         * tests/test-strftime.c (T): Add a test of %N.
769
770 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
771
772         inttypes, stdint: add C++11 support
773         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
774         when including inttypes.h and stdint.h.  Support this change to
775         the standard.
776         * doc/posix-headers/inttypes.texi (inttypes.h):
777         * doc/posix-headers/stdint.texi (stdint.h): Document this.
778         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
779         Define if not defined already, for the benefit of pre-C++11 hosts.
780         Define the standard format macros (e.g., PRId8) always.
781         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
782         Likewise, if __cpluspus.  Define the standard constant and limit
783         macros (e.g., INT8_C, INT8_MAX) always.
784         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
785         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
786         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
787         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
788         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
789         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
790         Likewise.
791
792 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
793
794         nonblocking tests: Fix test failure on Linux/PPC.
795         Suggested by Prerna Saxena in
796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
797         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
798         Set to 1100000.
799
800 2011-12-12  Jim Meyering  <meyering@redhat.com>
801
802         argmatch: don't hard-code `' when listing valid option arguments
803         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
804         use the quote function to add quotes.  Use fputs rather than
805         fprintf for the format string with no format directive.
806
807 2011-12-07  Eric Blake  <eblake@redhat.com>
808
809         bootstrap: detect tools required by gnulib-tool
810         * build-aux/bootstrap (buildreq): Provide minimum implicit
811         dependencies.
812         * DEPENDENCIES: Mention patch as a prereq.
813
814 2011-12-04  Bruno Haible  <bruno@clisp.org>
815
816         sethostname: Port to Windows platforms.
817         * lib/sethostname.c: Provide an alternate implementation for Windows
818         platforms.
819         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
820         (main): Skip the test if sethostname() fails with EPERM. On Windows
821         platforms, don't check the result of gethostname().
822
823 2011-12-04  Bruno Haible  <bruno@clisp.org>
824             Jim Meyering  <meyering@redhat.com>
825
826         tests: Avoid spurious error message on platforms without mktemp program.
827         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
828
829 2011-12-04  Bruno Haible  <bruno@clisp.org>
830
831         sethostname: Fix documentation.
832         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
833         "not fixed" section.
834
835 2011-12-03  Bruno Haible  <bruno@clisp.org>
836
837         gnulib-tool: Verify that the License field is present and non-empty.
838         * gnulib-tool (func_get_license_raw): New function, extracted from
839         func_get_license.
840         (func_get_license): Use it. Warn if the module is not a test module and
841         has no license.
842         Suggested by Jim Meyering.
843
844 2011-12-03  Bruno Haible  <bruno@clisp.org>
845
846         sethostname tests: Fix link error on mingw.
847         * tests/test-sethostname1.c: New file, extracted from
848         tests/test-sethostname.c.
849         * tests/test-sethostname2.c: New file, extracted from
850         tests/test-sethostname.c.
851         * tests/test-sethostname.c: Remove file.
852         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
853         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
854         (Depends-on): Add gethostname.
855         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
856         Link the latter with $(GETHOSTNAME_LIB).
857
858         sethostname tests: Fix compilation error on mingw.
859         * tests/test-sethostname.c: Don't include <sys/types.h>.
860         (geteuid): Use a dummy value without uid_t.
861         * modules/sethostname-tests (Depends-on): Remove sys_types.
862
863         sethostname tests: Avoid a gcc warning.
864         * tests/test-sethostname.c (main): Remove an unused variable.
865
866         Tweak last commit.
867         * modules/sethostname-tests (Files): Sort by decreasing importance.
868         (configure.ac): Check for geteuid.
869         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
870         the test when there's nothing to test. Drop an unnecessary cast.
871         Improve an error message. Verify that the final sethostname() call
872         succeeds.
873
874 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
875
876         Add a test suite for the sethostname module.
877         * modules/sethostname-tests: New file.  A test program
878         for the sethostname module.
879         * tests/test-sethostname.c: Likewise.
880
881 2011-12-03  Bruno Haible  <bruno@clisp.org>
882
883         Tweak last commit.
884         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
885         Fix preprocessor directives indentation. Fix typos.
886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
887         * modules/unistd (Makefile): Likewise.
888
889 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
890
891         Integrate the sethostname module into unistd.
892         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
893         into the unistd.h header.
894         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
895         preprocessor directives.
896         * modules/unistd: Setup the Makefile substitutions of the
897         SETHOSTNAME preprocessor directives.
898
899 2011-12-03  Bruno Haible  <bruno@clisp.org>
900
901         Tweak last commit.
902         * lib/sethostname.c: Don't include <string.h>.
903         (sethostname): No need to copy the argument string to the stack. Don't
904         call clearerr. Preserve errno when fprintf failed.
905         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
906         Don't invoke AC_REPLACE_FUNCS.
907         * modules/sethostname (Link): Remove empty section.
908         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
909         failure problem.
910
911 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
912
913         New module 'sethostname'.
914         * lib/sethostname.c (sethostname): New file.  Provide sethostname
915         for systems that lack it.
916         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
917         sethostname declaration and function.
918         * modules/sethostname: New file.  Define the sethostname module.
919
920 2011-12-03  Bruno Haible  <bruno@clisp.org>
921
922         Tweak last commit.
923         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
924
925 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
926
927         Split the HOST_NAME_MAX detection into a separate m4 macro.
928         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
929         macro so it can be used by the pending sethostname module.
930
931 2011-12-03  Bruno Haible  <bruno@clisp.org>
932
933         Fix module descriptions syntax.
934         * modules/argv-iter (License): Fix syntax.
935         * modules/di-set (License): Likewise.
936         * modules/ino-map (License): Likewise.
937         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
938
939 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
940
941         stdalign: port to Clang 3.0
942         Problem reported by Simon Josefsson in
943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
944         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
945         which has <stdalign.h> but which does not define alignof.
946         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
947
948 2011-12-01  Eric Blake  <eblake@redhat.com>
949
950         mktempd: silence dd usage
951         * build-aux/mktempd (rand_bytes): Silence dd.
952
953 2011-11-30  Simon Josefsson  <simon@josefsson.org>
954
955         manywarnings: Don't mention gcc version in docstring.
956         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
957         Jim Meyering <meyering@redhat.com>.
958
959 2011-11-30  Jim Meyering  <meyering@redhat.com>
960
961         hash: mark a few floating point constants with "f" suffix
962         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
963         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
964         floating point constants with "f", since they're destined to be
965         saved/used as "float"s.
966
967 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
968
969         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
970         * tests/test-float.c (test_long_double): Correct and re-enable the
971         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
972
973 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
974
975         Avoid subtracting two pointers that don't point into the same block.
976         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
977         only pointers into the same memory block are subtracted. We cannot
978         assume that sizeof (ptrdiff_t) == sizeof (void *).
979
980 2011-11-29  Eric Blake  <eblake@redhat.com>
981
982         maint.mk: add syntax check for use of compare from init.sh
983         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
984         moved here from coreutils.
985
986         manywarnings: drop -Wunsuffixed-float-constants
987         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
988         '1.0D', which is the only way to silence this warning for 'double'.
989
990 2011-11-29  Jim Meyering  <meyering@redhat.com>
991
992         hash: mark compute_bucket_size with the pure attribute
993         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
994
995         quotearg, propername: correct pragma guard expression
996         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
997         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
998
999 2011-11-28  Jim Meyering  <meyering@redhat.com>
1000
1001         propername: do not mark proper_name with the const attribute
1002         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1003         since it examines data pointed to by its parameter.
1004         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1005         the suggestion from -Wsuggest-attribute=const.
1006
1007         propername: mark one more function as const
1008         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1009
1010 2011-11-27  Jim Meyering  <meyering@redhat.com>
1011
1012         mark functions with const and pure attributes
1013
1014         Mark functions per suggestions from gcc-4.6 when using these options:
1015         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1016         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1017         Follow these guidelines: when possible, apply the attribute to
1018         an extern declaration, not to its definition.  Apply it to the
1019         definition only when the definition is static.
1020         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1021         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1022         * lib/base64.h (isbase64): Likewise.
1023         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1024         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1025         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1026         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1027         (c_tolower, c_toupper): Likewise.
1028         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1029         * lib/chdir-long.c (find_non_slash): Likewise.
1030         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1031         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1032         * lib/file-type.h (file_type): Likewise.
1033         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1034         * lib/filevercmp.c (verrevcmp): Likewise.
1035         * lib/freadahead.h (freadahead): Likewise.
1036         * lib/fts.c (fts_maxarglen): Likewise.
1037         * lib/hash-pjw.h (hash_pjw): Likewise.
1038         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1039         * lib/hash.c (is_prime, next_prime): Likewise.
1040         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1041         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1042         (hash_table_ok, hash_get_first, hash_string): Likewise.
1043         (compute_bucket_size): Likewise.
1044         * lib/i-ring.h (i_ring_empty): Likewise.
1045         * lib/isnan.c (isnanl): Likewise.
1046         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1047         * lib/memcasecmp.h (memcasecmp): Likewise.
1048         * lib/memchr2.h (memchr2): Likewise.
1049         * lib/memcmp2.h (memcmp2): Likewise.
1050         * lib/parse-datetime.y (lookup_zone): Likewise.
1051         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1052         [!WINDOWS_SOCKETS]: Likewise.
1053         * lib/strnlen1.h (strnlen1): Likewise.
1054         * lib/uniwidth.in.h (uc_width): Likewise.
1055         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1056         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1057         (quoting_options_from_style): Add a comment.
1058         * lib/propername.h (proper_name): Add a comment.
1059
1060 2011-11-27  Bruno Haible  <bruno@clisp.org>
1061
1062         Remove unused macros from !_LIBC code in glibc-borrowed files.
1063         * lib/fnmatch.c (STRCOLL): Remove macro.
1064         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1065         * lib/glob.c (__stat, __readdir64): Remove macros.
1066         * lib/tempname.c (__open64, __xstat64): Remove macros.
1067         Suggested by Paul Eggert.
1068
1069 2011-11-27  Bruno Haible  <bruno@clisp.org>
1070
1071         getcwd: Fix link error on MSVC 9.
1072         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1073
1074 2011-11-27  Bruno Haible  <bruno@clisp.org>
1075
1076         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1077         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1078         HAVE_OPENDIR is 0.
1079         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1080         HAVE_CLOSEDIR is 0.
1081         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1082         is 0.
1083         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1084
1085 2011-11-27  Bruno Haible  <bruno@clisp.org>
1086
1087         getcwd: Fix bug from 2011-08-17.
1088         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1089         platforms that need it.
1090         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1091         code of 4 to be a failure, not a success. This ensures that
1092         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1093
1094 2011-11-27  Bruno Haible  <bruno@clisp.org>
1095
1096         binary-io tests: Avoid test failure on mingw when libtool is used.
1097         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1098         Don't verify the size of t-bin-out1.tmp here.
1099         * tests/test-binary-io.sh: Verify it here.
1100         Reported by Simon Josefsson.
1101
1102 2011-11-26  Bruno Haible  <bruno@clisp.org>
1103
1104         Fix conflict between two instantiations of module 'unistd'.
1105         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1106         ${include_guard_prefix} also in the autoconf snippet.
1107         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1109         GNULIB_UNISTD_H_GETOPT.
1110         * modules/getopt-posix (configure.ac): Set the
1111         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1112         * modules/getopt-gnu (configure.ac): Likewise.
1113         * modules/unistd (Makefile.am): Change the substitution value of
1114         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1115         Reported by Simon Josefsson.
1116
1117 2011-11-25  Bruno Haible  <bruno@clisp.org>
1118
1119         pagealign_alloc: Doc and comments.
1120         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1121         module.
1122         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1123
1124 2011-11-25  Jim Meyering  <meyering@redhat.com>
1125
1126         test-update-copyright.sh: avoid false-positive failure
1127         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1128         around false positive failure on Cygwin/Windows.  The latter was
1129         matching erroneously-created files with names like
1130         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1131
1132 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1133
1134         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1135         * m4/valgrind-tests.m4: Check that the parameters that will be
1136         used works, not just a subset of them.  Reported by Bruno Haible
1137         <bruno@clisp.org>.
1138
1139 2011-11-24  Jim Meyering  <meyering@redhat.com>
1140
1141         test-stdalign.c: comment out long double tests
1142         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1143         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1144         error: '_Alignas' specifiers cannot reduce alignment of \
1145         'static_longdouble_alignas'.
1146
1147 2011-11-22  Jim Meyering  <meyering@redhat.com>
1148
1149         init.sh: make "compare /dev/null FILE" output more readable
1150         * tests/init.sh (compare_): Document the preferred order of arguments.
1151         (emit_diff_u_header_): New function.
1152         (compare_dev_null_): Emit a simulated diff, rather than just the
1153         contents of the unexpected file.  Suggestion from Bruno Haible.
1154
1155 2011-11-21  Jim Meyering  <meyering@redhat.com>
1156             Eric Blake  <eblake@redhat.com>
1157
1158         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1159         * tests/init.sh: Make our compare function slightly more portable.
1160         Reported by Bruno Haible in
1161         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1162
1163 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1164
1165         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1166         before using it, in code that ends up in config.h.
1167
1168 2011-11-20  Bruno Haible  <bruno@clisp.org>
1169
1170         getcwd: Work around getcwd bug on AIX 5..7.
1171         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1172         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1173         Use a different value for gl_cv_func_getcwd_path_max. Move the
1174         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1175         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1176         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1177         Define HAVE_MINIMALLY_WORKING_GETCWD.
1178         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1179         where it is not even minimally working, that is, on AIX.
1180         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1181         m4/getcwd-path-max.m4.
1182         (main): Update exit code computation.
1183         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1184         getcwd does not handle long file names.
1185
1186 2011-11-20  Bruno Haible  <bruno@clisp.org>
1187
1188         getcwd: Fix bug from 2009-09-10.
1189         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1190         like "no".
1191
1192 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1193
1194         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1195
1196 2011-11-20  Bruno Haible  <bruno@clisp.org>
1197
1198         fma tests: Avoid shadowing local variables.
1199         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1200         expected.
1201
1202 2011-11-20  Bruno Haible  <bruno@clisp.org>
1203
1204         copysignf tests: Fix.
1205         * tests/test-copysignf.c: Fix signature check.
1206
1207 2011-11-20  Bruno Haible  <bruno@clisp.org>
1208
1209         fma: Remove unused code.
1210         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1211         unused macros.
1212
1213 2011-11-20  Bruno Haible  <bruno@clisp.org>
1214
1215         sethostname: Fix doc about AIX.
1216         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1217         sethostname; it has it.
1218
1219         sethostname: Mention more portability problems.
1220         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1221         problem.
1222         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1223
1224 2011-11-19  Bruno Haible  <bruno@clisp.org>
1225
1226         Depend on module fcntl-h when AT_FDCWD is used.
1227         * modules/utimens (Depends-on): Add fcntl-h.
1228         * modules/areadlinkat (Depends-on): Likewise.
1229         * modules/areadlinkat-with-size (Depends-on): Likewise.
1230         * modules/faccessat (Depends-on): Likewise.
1231         * modules/fchmodat (Depends-on): Likewise.
1232         * modules/fchownat (Depends-on): Likewise.
1233         * modules/getcwd (Depends-on): Likewise.
1234         * modules/mkdirat (Depends-on): Likewise.
1235         * modules/mkfifoat (Depends-on): Likewise.
1236         * modules/readlinkat (Depends-on): Likewise.
1237         * modules/symlinkat (Depends-on): Likewise.
1238         * modules/dup2-tests (Depends-on): Likewise.
1239         * modules/fdutimensat-tests (Depends-on): Likewise.
1240         * modules/futimens-tests (Depends-on): Likewise.
1241
1242 2011-11-19  Bruno Haible  <bruno@clisp.org>
1243
1244         euidaccess: Update a comment.
1245         * lib/euidaccess.c: Update comment about platforms with faccessat.
1246
1247 2011-11-19  Bruno Haible  <bruno@clisp.org>
1248
1249         openat: Fix file list.
1250         * modules/openat (Files): Remove lib/at-func.c.
1251
1252 2011-11-19  Bruno Haible  <bruno@clisp.org>
1253
1254         fstatat: Simplify.
1255         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1256         gnulib should define rpl_fstatat, there is a
1257         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1258
1259 2011-11-19  Bruno Haible  <bruno@clisp.org>
1260
1261         Ensure 'inline' can be used in tests/test-utimens-common.h.
1262         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1263         * modules/futimens-tests (configure.ac): Likewise.
1264         * modules/utimens-tests (configure.ac): Likewise.
1265         * modules/utimensat-tests (configure.ac): Likewise.
1266
1267 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1268
1269         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1270         not hash_insert0.
1271         (hash_insert_if_absent): Doc fix.
1272
1273 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1274
1275         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1276
1277 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1278
1279         test-getcwd: disambiguate exit status
1280         * tests/test-getcwd.c (test_long_name): Return 0..7.
1281         (main): Exit with an unambiguous exit status.  The old
1282         code yielded a mysterious mixture of two failure codes.
1283
1284         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1285         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1286         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1287         rpl_fstatat or fstatat.  This should fix the other problem
1288         reported by Kai Habel in
1289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1290         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1292         and I reproduced it on a Solaris 8 host we still have in production.
1293
1294 2011-11-18  Jim Meyering  <meyering@redhat.com>
1295
1296         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1297         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1298         Add a sentence to the comment.
1299         (hash_insert0): New function that simply calls hash_insert_if_absent.
1300         * lib/hash.h (hash_insert_if_absent): Declare it.
1301         (hash_insert0): Add deprecation attribute.
1302         (_GL_ATTRIBUTE_DEPRECATED): Define.
1303         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1304         not hash_insert0.
1305         * NEWS: Mention it, even though it's not really an incompatible change.
1306
1307 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1308
1309         openat: avoid compilation failure due to lack of <errno.h> inclusion
1310         * lib/openat.c: Include <errno.h>.
1311
1312 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1313
1314         * modules/getcwd (Depends-on): Add fdopendir.
1315         This fixes one of the two problems reported by Kai Habel in
1316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1317
1318         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1319         stdalign problem reported by Ian Beckwith in
1320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1321         * modules/crypto/gc-arcfour (Depends-on):
1322         Depend conditionally on crypto/arcfour.
1323         * modules/crypto/gc-arctwo (Depends-on):
1324         Depend conditionally on crypto/arctwo.
1325         * modules/crypto/gc-des (Depends-on):
1326         Depend conditionally on crypto/des.
1327         * modules/crypto/gc-hmac-md5 (Depends-on):
1328         Depend conditionally on crypto/hmac-md5.
1329         * modules/crypto/gc-hmac-sha1 (Depends-on):
1330         Depend conditionally on crypto/hmac-sha1.
1331         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1332         * modules/crypto/gc-md4 (Depends-on):
1333         Depend conditionally on crypto/md4.
1334         * modules/crypto/gc-md5 (Depends-on):
1335         Depend conditionally on crypto/md5.
1336         * modules/crypto/gc-rijndael (Depends-on):
1337         Depend conditionally on crypto/rijndael.
1338         * modules/crypto/gc-sha1 (Depends-on):
1339         Depend conditionally on crypto/sha1.
1340         * modules/crypto/gc-arcfour:
1341         * modules/crypto/gc-arctwo:
1342         * modules/crypto/gc-des:
1343         * modules/crypto/gc-hmac-md5:
1344         * modules/crypto/gc-hmac-sha1:
1345         * modules/crypto/gc-md2:
1346         * modules/crypto/gc-md4:
1347         * modules/crypto/gc-md5:
1348         * modules/crypto/gc-rijndael:
1349         * modules/crypto/gc-sha1:
1350         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1351         now that the conditional dependencies do the work for us.
1352
1353 2011-11-17  Jim Meyering  <meyering@redhat.com>
1354
1355         tests: factor st_ctime-comparison out of two headers
1356         * tests/test-utimens-common.h (ctime_compare): Define.
1357         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1358         * tests/test-lutimens.h (test_lutimens): Likewise.
1359         * tests/test-utimens.h (test_utimens): Likewise.
1360
1361         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1362         Invoke the test program via an init.sh-using wrapper.
1363         * tests/test-getcwd.sh: New file.
1364         * modules/getcwd-tests (Files): Add it.
1365         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1366
1367 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1368
1369         gitlog-to-changelog: support multi-author commits.
1370         The FSF cares about keeping track of all authors of patches to its
1371         projects, but Git doesn't provide obvious support for multi-author
1372         changesets. Consensus seems to be forming around the use of extra
1373         Signed-off-by inspired lines in the log message formatted as
1374         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1375         multi-author commits between version control systems.
1376         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1377         log message and output in standard ChangeLog multi-author format.
1378         Reported by Peter Rosin <peda@lysator.liu.se>
1379
1380 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1381             Bruno Haible  <bruno@clisp.org>
1382
1383         Fix some modules' file list.
1384         * modules/fstatat (Files): Add m4/lstat.m4.
1385         * modules/openat (Files): Likewise.
1386         * modules/unlinkat (Files): Likewise.
1387
1388 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1389
1390         maint.mk: fix tight-scope.mk generation in VPATH builds.
1391         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1392         reference with $(srcdir) so that the file is found correctly even
1393         when running `make syntax-check' in a VPATH build.
1394
1395 2011-11-13  Bruno Haible  <bruno@clisp.org>
1396             Jim Meyering  <meyering@redhat.com>
1397
1398         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1399         * tests/init.sh (compare): Remove "No differences encountered" or
1400         synonymous output from the 'diff' program.
1401
1402 2011-11-13  Bruno Haible  <bruno@clisp.org>
1403
1404         Makefile: Tweak indentation.
1405         * Makefile: Use tab as first character in every line that contains rule
1406         commands.
1407
1408 2011-11-13  Bruno Haible  <bruno@clisp.org>
1409
1410         Syntax check for copyright statements.
1411         * check-copyright: New file.
1412         * Makefile (sc_check_copyright): New rule.
1413
1414 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1415
1416         * build-aux/git-version-gen: Add --prefix to configure the tag
1417         match string.
1418
1419 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1420
1421         * build-aux/git-version-gen: Add --help and --version.
1422
1423 2011-11-12  Jim Meyering  <meyering@redhat.com>
1424
1425         revamp the other test-exclude?.sh scripts to use init.sh, too
1426         * tests/test-exclude1.sh: Use init.sh.
1427         * tests/test-exclude2.sh: Likewise.
1428         * tests/test-exclude3.sh: Likewise.
1429         * tests/test-exclude4.sh: Likewise.
1430         * tests/test-exclude5.sh: Likewise.
1431         * tests/test-exclude6.sh: Likewise.
1432         * tests/test-exclude7.sh: Likewise.
1433         * tests/test-exclude8.sh: Likewise.
1434         * modules/exclude-tests (Files): List init.sh.
1435
1436         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1437         These shell scripts ignored failure of the binary test-exclude,
1438         so making the latter return 77 didn't cause them to be skipped.
1439         * tests/test-exclude5.sh: Exit with test-exclude's error status
1440         when that program fails.  Revamp to use init.sh.
1441         * tests/test-exclude2.sh: Likewise.
1442
1443         test-exclude: fix a typo
1444         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1445
1446 2011-11-11  Bruno Haible  <bruno@clisp.org>
1447
1448         obstack: Fix compilation error on MSVC 9.
1449         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1450
1451 2011-11-11  Jim Meyering  <meyering@redhat.com>
1452
1453         test-exclude: skip tests rather than failing on deficient systems
1454         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1455         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1456         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1457         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1458
1459 2011-11-10  Bruno Haible  <bruno@clisp.org>
1460
1461         ptsname_r test: Avoid gcc warning on glibc systems.
1462         * tests/test-ptsname_r.c (null_ptr): New function.
1463         (test_errors): Use it.
1464
1465 2011-11-10  Bruno Haible  <bruno@clisp.org>
1466
1467         ptsname_r: Avoid compilation error on OSF/1 5.1.
1468         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1470         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1471         function is not declared or incompatibly declared.
1472         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1473         * modules/ptsname_r (Depends-on, configure.ac): Update.
1474         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1475
1476 2011-11-10  Bruno Haible  <bruno@clisp.org>
1477
1478         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1479         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1480         When cross-compiling, guess yes on all platforms except AIX.
1481         Reported by Ludovic Courtès <ludo@gnu.org>.
1482
1483 2011-11-09  Bruno Haible  <bruno@clisp.org>
1484
1485         ptsname_r tests: Fix bugs.
1486         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1487         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1488
1489 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         fstatat: work with cross-compilation
1492         Problem reported by Ludovic Courtès in
1493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1494         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1495         "cross-compiling" and assume the bug is present.  Replace
1496         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1497         an inverted sense, to be more conservative about our assumptions.
1498         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1499
1500 2011-11-09  Bruno Haible  <bruno@clisp.org>
1501
1502         Improve MODULES.html output.
1503         * modules/mkfifoat (Description): Use the word "function".
1504         * modules/readlinkat (Description): Likewise.
1505         * modules/symlinkat (Description): Likewise.
1506
1507 2011-11-09  Eric Blake  <eblake@redhat.com>
1508
1509         ptsname_r-tests: new test module
1510         * modules/ptsname_r-tests: New module.
1511         * tests/test-ptsname_r.c: New file.
1512
1513         ptsname_r: new module
1514         * modules/ptsname_r: New module.
1515         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1516         * lib/ptsname.c (__ptsname_r): Split...
1517         * lib/ptsname_r.c: ...into new file.
1518         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1519         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1520         * modules/stdlib (Makefile.am): Substitute witnesses.
1521         * lib/stdlib.in.h (ptsname_r): Declare it.
1522         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1523         * MODULES.html.sh (Misc): Likewise.
1524         * modules/ptsname (Depends-on): Alter dependency.
1525         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1526
1527 2011-11-09  Jim Meyering  <meyering@redhat.com>
1528
1529         announce-gen: be more concise when there's only one URL+tarball
1530         * build-aux/announce-gen (get_tool_versions): When you distribute
1531         only one type of tarball, combine the first two "Here are..."
1532         sections and make the key-checking grammar independent of
1533         how many tarballs there are.
1534
1535 2011-11-09  Eric Blake  <eblake@redhat.com>
1536
1537         openpty: provide a stub on mingw
1538         * lib/pty.in.h (includes): Provide forward declarations.
1539         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1540
1541         raise: fix mingw handling of SIGPIPE
1542         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1543
1544 2011-11-08  Bruno Haible  <bruno@clisp.org>
1545
1546         More conditional dependencies.
1547         * modules/faccessat (Depends-on): Add conditions.
1548         * modules/fchmodat (Depends-on): Likewise.
1549         * modules/fchownat (Depends-on): Likewise.
1550         * modules/fstatat (Depends-on): Likewise.
1551         * modules/mkfifoat (Depends-on): Likewise.
1552         * modules/readlinkat (Depends-on): Likewise.
1553         * modules/symlinkat (Depends-on): Likewise.
1554         * modules/unlinkat (Depends-on): Likewise.
1555         * modules/utimensat (Depends-on): Likewise.
1556         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1557         * modules/linkat (Depends-on): Refine the conditions.
1558         * modules/renameat (Depends-on): Likewise.
1559
1560 2011-11-08  Bruno Haible  <bruno@clisp.org>
1561
1562         faccessat: Move AC_LIBOBJ invocation to module description.
1563         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1564         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1565         invocation from here...
1566         * modules/faccessat (configure.ac): ... to here. Invoke
1567         gl_PREREQ_FACCESSAT.
1568
1569 2011-11-08  Bruno Haible  <bruno@clisp.org>
1570
1571         faccessat: Simplify autoconf macro.
1572         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1573         gl_FUNC_EUIDACCESS.
1574
1575 2011-11-08  Bruno Haible  <bruno@clisp.org>
1576
1577         renameat: Fix dependencies.
1578         * modules/renameat (Depends-on): Add stdbool.
1579
1580 2011-11-08  Bruno Haible  <bruno@clisp.org>
1581
1582         mkfifoat: Fix module description.
1583         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1584         not gl_UNISTD_MODULE_INDICATOR.
1585
1586 2011-11-08  Bruno Haible  <bruno@clisp.org>
1587
1588         fstatat: Remove unused dependency.
1589         * modules/fstatat (Depends-on): Remove fstat.
1590
1591 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1592
1593         GNUmakefile: behave when Makefile is missing.
1594         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1595
1596 2011-11-08  Bruno Haible  <bruno@clisp.org>
1597
1598         openat: Conditionalize dependencies.
1599         * lib/openat.c: Reduce the scope of some #includes.
1600         * modules/openat (Depends-on): Add conditions.
1601
1602 2011-11-07  Jim Meyering  <meyering@redhat.com>
1603
1604         maint.mk: extract GPG key ID without using a temporary file
1605         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1606         without using a temporary file.  Based on a suggestion from Werner Koch
1607         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1608
1609 2011-11-07  Eric Blake  <eblake@redhat.com>
1610
1611         grantpt: fix typo
1612         * lib/stdlib.in.h (grantpt): Check correct function.
1613
1614         maint.mk: silence new syntax check
1615         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1616
1617 2011-11-06  Bruno Haible  <bruno@clisp.org>
1618
1619         Doc about floating-point and math API.
1620         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1621         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1622
1623 2011-11-06  Bruno Haible  <bruno@clisp.org>
1624
1625         stdalign tests: Skip the test when compiled by Sun C.
1626         * tests/test-stdalign.c (main): Skip the test on Sun C.
1627
1628 2011-11-06  Bruno Haible  <bruno@clisp.org>
1629
1630         ansi-c++-opt: Complete the 2011-06-05 change.
1631         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1632         does not support namespaces, set the variable to "no", not to ":".
1633
1634 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1635
1636         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1637
1638 2011-11-06  Bruno Haible  <bruno@clisp.org>
1639
1640         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1641         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1642         (minus_zerol) [HP-UX]: New macro.
1643         (unary_minus) [HP-UX]: New function.
1644         (copysignl) [HP-UX]: Use unary_minus function.
1645
1646 2011-11-06  Bruno Haible  <bruno@clisp.org>
1647
1648         ldexp, ldexpf, ldexpl: Enhance tests.
1649         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1650         and tests/test-ldexpl.c.
1651         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1652         LDEXP, MIN_EXP, MAX_EXP): New macros.
1653         Include test-ldexp.h.
1654         (main): Just call test_function.
1655         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1656         infinity.h, nan.h.
1657         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1658         MAX_EXP): New macros.
1659         Include test-ldexp.h.
1660         (x, y): Remove variables.
1661         (main): Just call test_function.
1662         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1663         infinity.h, nan.h.
1664         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1665         MAX_EXP): New macros.
1666         Include test-ldexp.h.
1667         (x, y): Remove variables.
1668         (main): Just call test_function.
1669         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1670         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1671         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1672         (Depends-on): Add isnand-nolibm, signbit, float.
1673         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1674         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1675         (Depends-on): Add isnanf-nolibm, signbit, float.
1676
1677 2011-11-06  Bruno Haible  <bruno@clisp.org>
1678
1679         math tests: Cosmetics.
1680         * tests/test-math-c++.cc: Reorder declarations.
1681
1682 2011-11-05  Bruno Haible  <bruno@clisp.org>
1683
1684         fma*: Simplify test.
1685         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1686         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1687
1688         Tests for module 'fmal'.
1689         * modules/fmal-tests: New file.
1690         * tests/test-fmal1.c: New file.
1691         * tests/test-fmal2.c: New file.
1692
1693         New module 'fmal'.
1694         * lib/math.in.h (fmal): New declaration.
1695         * lib/fmal.c: New file.
1696         * m4/fmal.m4: New file.
1697         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1699         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1700         REPLACE_FMAL.
1701         * modules/fmal: New file.
1702         * doc/posix-functions/fmal.texi: Mention the new module and the various
1703         bugs.
1704
1705         Tests for module 'fmaf'.
1706         * modules/fmaf-tests: New file.
1707         * tests/test-fmaf1.c: New file.
1708         * tests/test-fmaf2.c: New file.
1709
1710         New module 'fmaf'.
1711         * lib/math.in.h (fmaf): New declaration.
1712         * lib/fmaf.c: New file.
1713         * m4/fmaf.m4: New file.
1714         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1716         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1717         REPLACE_FMAF.
1718         * modules/fmaf: New file.
1719         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1720         bugs.
1721
1722         Tests for module 'fma'.
1723         * modules/fma-tests: New file.
1724         * tests/test-fma1.c: New file.
1725         * tests/test-fma1.h: New file.
1726         * tests/test-fma2.c: New file.
1727         * tests/test-fma2.h: New file.
1728
1729         New module 'fma'.
1730         * lib/math.in.h (fma): New declaration.
1731         * lib/fma.c: New file.
1732         * m4/fma.m4: New file.
1733         * m4/fegetround.m4: New file.
1734         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1736         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1737         REPLACE_FMA.
1738         * modules/fma: New file.
1739         * doc/posix-functions/fma.texi: Mention the new module and the various
1740         bugs.
1741
1742         Extend gl_MATHFUNC.
1743         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1744         Support 'void' as argument type.
1745         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1746
1747 2011-11-05  Jim Meyering  <meyering@redhat.com>
1748
1749         maint.mk: also prohibit inclusion of dirent.h without use
1750         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1751
1752 2011-11-05  Bruno Haible  <bruno@clisp.org>
1753
1754         ldexpl tests: Avoid test failure on MSVC 9.
1755         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1756         value. Needed in order to enforce the conversion from a value greater
1757         than LDBL_MAX to Infinity.
1758
1759 2011-11-05  Bruno Haible  <bruno@clisp.org>
1760
1761         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1762         * modules/at-internal: New file, extracted from modules/openat.
1763         * modules/openat-h: New file.
1764         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1765         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1766         * modules/openat (Description): Add reference to POSIX function.
1767         (Files): Remove lib/openat.h, lib/openat-proc.c.
1768         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1769         intprops, unistd.
1770         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1771         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1772         gl_FCNTL_MODULE_INDICATOR.
1773         (Include): Remove unistd.h, openat.h.
1774         * modules/areadlinkat (Files): Add lib/at-func.c.
1775         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1776         openat-die, openat-h, save-cwd.
1777         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1778         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1779         openat-die, openat-h, save-cwd, unistd.
1780         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1781         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1782         openat-h, save-cwd. Remove fcntl-h, openat.
1783         * modules/fchmodat (Files): Remove lib/openat.h.
1784         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1785         openat, stdbool, unistd.
1786         * modules/fchownat (Files): Remove lib/openat.h.
1787         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1788         openat, stdbool, sys_stat.
1789         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1790         lib/openat-proc.c.
1791         (Depends-on): Add at-internal.
1792         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1793         * modules/fstatat (Files): Remove lib/openat.h.
1794         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1795         stdbool, unistd.
1796         * modules/fts (Depends-on): Add openat-h.
1797         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1798         openat.
1799         * modules/mkdirat (Files): Remove lib/openat.h.
1800         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1801         openat, stdbool, sys_stat.
1802         * modules/mkfifoat (Files): Add lib/at-func.c.
1803         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1804         openat-h, save-cwd. Remove fcntl-h, openat.
1805         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1806         * modules/readlinkat (Files): Add lib/at-func.c.
1807         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1808         openat-h, save-cwd. Remove fcntl-h, openat.
1809         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1810         openat.
1811         * modules/selinux-at (Files): Add lib/at-func.c.
1812         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1813         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1814         * modules/symlinkat (Files): Add lib/at-func.c.
1815         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1816         openat-h, save-cwd. Remove fcntl-h, openat.
1817         * modules/unlinkat (Files): Remove lib/openat.h.
1818         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1819         stdbool.
1820         * modules/utimensat (Files): Add lib/at-func.c.
1821         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1822         openat-die, openat-h, save-cwd.
1823         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1824         * modules/fdutimensat-tests (Depends-on): Add openat.
1825         * modules/fstatat-tests (Depends-on): Add openat-h.
1826         * modules/readlinkat-tests (Depends-on): Add openat.
1827         * modules/symlinkat-tests (Depends-on): Add openat.
1828
1829 2011-11-05  Bruno Haible  <bruno@clisp.org>
1830
1831         openat: Include <stdbool.h>.
1832         * lib/openat.c: Include <stdbool.h>.
1833
1834 2011-11-04  Bruno Haible  <bruno@clisp.org>
1835
1836         fchownat, renameat, unlinkat: Fix dependencies.
1837         * modules/fchownat (Depends-on): Add fstatat.
1838         * modules/renameat (Depends-on): Likewise.
1839         * modules/unlinkat (Depends-on): Likewise.
1840
1841 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         openat: remove direct dependency on dirent
1844         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1845         and hasn't been needed ever since fdopendir was split into its own
1846         module on 2009-08-31.
1847         * modules/openat (Depends-on): Remove dirent.
1848
1849 2011-11-04  Bruno Haible  <bruno@clisp.org>
1850
1851         renameat: Optimize code size.
1852         * modules/renameat (configure.ac): Don't compile at-func2.c if
1853         REPLACE_RENAMEAT is 1.
1854
1855 2011-11-04  Bruno Haible  <bruno@clisp.org>
1856
1857         openat tests: Fix file list.
1858         * modules/openat-tests (Files): Add tests/test-open.h.
1859
1860 2011-11-04  Bruno Haible  <bruno@clisp.org>
1861
1862         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1863         * modules/fchmodat (Depends-on): Add openat-die.
1864         * modules/fchownat (Depends-on): Likewise.
1865         * modules/linkat (Depends-on): Likewise.
1866         * modules/renameat (Depends-on): Likewise.
1867         * modules/openat (Depends-on): Add dirent.
1868
1869 2011-11-04  Jim Meyering  <meyering@redhat.com>
1870
1871         at-func*.c: fix comments
1872         * lib/at-func2.c: Correct/improve first-line comment.
1873         * lib/at-func.c: Correct grammar in first-line comment.
1874
1875 2011-11-04  Bruno Haible  <bruno@clisp.org>
1876
1877         New module 'mkdirat', split off from module 'openat'.
1878         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1879         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1880         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1881         * modules/mkdirat: New file, extracted from modules/openat.
1882         * modules/openat (Files): Remove lib/mkdirat.c.
1883         (Depends-on): Remove mkdir.
1884         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1885         (Include): Remove <sys/stat.h>.
1886         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1887         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1888         tests/test-mkdir.h.
1889         (Depends-on): Remove ignore-value.
1890         (Makefile.am): Remove rules for test-mkdirat.
1891         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1892         of module 'openat'.
1893         * NEWS: Mention the change.
1894
1895 2011-11-04  Bruno Haible  <bruno@clisp.org>
1896
1897         closedir: Avoid warning on mingw.
1898         * lib/closedir.c: Include <unistd.h>.
1899
1900 2011-11-04  Bruno Haible  <bruno@clisp.org>
1901
1902         New module 'fstatat', split off from module 'openat'.
1903         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1904         defined.
1905         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1906         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1907         gl_FUNC_FSTATAT.
1908         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1909         * modules/fstatat: New file, extracted from modules/openat.
1910         * modules/openat (Files): Remove lib/fstatat.c.
1911         (Depends-on): Remove lstat.
1912         (configure.ac): Remove AC_LIBOBJ of fstatat.
1913         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1914         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1915         tests/test-lstat.h, tests/test-stat.h.
1916         (Depends-on): Remove getcwd-lgpl.
1917         (Makefile.am): Remove rules for test-fstatat.
1918         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1919         of module 'openat'.
1920         * NEWS: Mention the change.
1921         * modules/getcwd (Depends-on): Add fstatat.
1922         * modules/linkat (Depends-on): Likewise.
1923         * modules/mkfifoat-tests (Depends-on): Likewise.
1924         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1925
1926 2011-11-03  Bruno Haible  <bruno@clisp.org>
1927
1928         New module 'unlinkat', split off from module 'openat'.
1929         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1930         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1931         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1932         * modules/unlinkat: New file, extracted from modules/openat. Correct
1933         the dependency conditions.
1934         * modules/openat (Files): Remove lib/unlinkat.c.
1935         (Depends-on): Remove rmdir, unlink.
1936         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1937         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1938         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1939         tests/test-rmdir.h, tests/test-unlink.h.
1940         (Depends-on): Remove unlinkdir.
1941         (Makefile.am): Remove rules for test-unlinkat.
1942         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1943         of module 'openat'.
1944         * NEWS: Mention the change.
1945         * modules/linkat-tests (Depends-on): Add unlinkat.
1946         * modules/mkfifoat-tests (Depends-on): Likewise.
1947         * modules/readlinkat-tests (Depends-on): Likewise.
1948
1949 2011-11-02  Bruno Haible  <bruno@clisp.org>
1950
1951         New module 'fchmodat', split off from module 'openat'.
1952         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1953         defined.
1954         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1955         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1956         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1957         * modules/fchmodat: New file, extracted from modules/openat.
1958         * modules/openat (Files): Remove lib/fchmodat.c.
1959         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1960         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1961         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1962         (Makefile.am): Remove rules for test-fchmodat.
1963         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1964         of module 'openat'.
1965         * NEWS: Mention the change.
1966
1967 2011-11-02  Jim Meyering  <meyering@redhat.com>
1968
1969         putenv: indent #definition of "environ" to placate cppi
1970         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1971
1972         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1973         Git logs are often treated as immutable, because editing them
1974         changes the SHA1 checksums of all descendants.  Thus, errors in
1975         git logs tend to stay there forever.  However, when we generate
1976         a ChangeLog file -- typically for distribution -- from that git log,
1977         we can actually make corrections in the generated file.  The key
1978         lies in recording in machine-readable/applicable form the desired
1979         corrections.  See --help for description and an example.
1980         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1981         (usage): Describe it; alphabetize option descriptions.
1982         (main): Honor the new option, carefully.
1983
1984 2011-11-01  Jim Meyering  <meyering@redhat.com>
1985
1986         gitlog-to-changelog: avoid an infloop
1987         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1988         that ends up being empty.
1989
1990 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1993         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1994         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1995         contains (possibly-quoted) backslashes.  This should avoid
1996         all-too-common shell bugs if COMPLICATED contains backslashes in
1997         the "wrong" places.  Reported by David Evans in
1998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1999         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2000         because we want ASCII ranges.  Is there some reason we don't use
2001         the C locale everywhere in this script?
2002         (func_module, top level): Avoid unwanted pathname expansion when
2003         $repo_url_prefix or $repo_url_suffix_repl contain shell
2004         metacharacters like '?' and '*'.
2005
2006 2011-11-01  Bruno Haible  <bruno@clisp.org>
2007
2008         fchownat: Improve description.
2009         * modules/fchownat (Description): Add link to function.
2010
2011 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2012
2013         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2014         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2016         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2017
2018 2011-11-01  Bruno Haible  <bruno@clisp.org>
2019
2020         alignof: Avoid collision with stdalign module.
2021         * lib/alignof.h (alignof): Remove macro.
2022         * NEWS: Mention the change.
2023         Reported by Paul Eggert.
2024
2025 2011-11-01  Bruno Haible  <bruno@clisp.org>
2026
2027         New module 'fchownat', split off from module 'openat'.
2028         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2029         defined.
2030         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2031         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2032         invoke gl_FUNC_FCHOWNAT.
2033         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2034         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2035         * modules/fchownat: New file, extracted from modules/openat.
2036         * modules/openat (Files): Remove lib/fchownat.c.
2037         (Depends-on): Remove lchown.
2038         (configure.ac): Remove AC_LIBOBJ of fchownat.
2039         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2040         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2041         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2042         (Depends-on): Remove mgetgroups, usleep, stat-time.
2043         (configure.ac): Remove test for getegid.
2044         (Makefile.am): Remove rules for test-fchownat.
2045         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2046         of module 'openat'.
2047         * NEWS: Mention the change.
2048
2049 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2050
2051         stdalign: port better to MSVC and to Sun C 5.11
2052         This fixes some of the problems reported by Bruno Haible in
2053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2054         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2055         shortcomings of MSVC and of Sun C 5.11.
2056         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2057         around __declspec arg.
2058         * modules/stdalign-tests (Files): Add tests/macros.h.
2059         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2060         Include macros.h, for ASSERT.
2061         (DECLARE_ALIGNED): Remove.
2062         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2063         to catch bug), and to 1 if not (simplifies the rest of the code).
2064         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2065         (CHECK_AUTO): Remove.
2066         (CHECK_ALIGNED): Check only the alignment of the static vars,
2067         since auto var alignment isn't supported by Sun C 5.11.
2068         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2069         ASSERT failures are easier to diagnose.
2070
2071 2011-10-31  Bruno Haible  <bruno@clisp.org>
2072
2073         doc about some IRIX 5.3 problems.
2074         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2075         on IRIX 5.3.
2076         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2077         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2078         5.3.
2079         * doc/posix-functions/grantpt.texi: Likewise.
2080         * doc/posix-functions/unlockpt.texi: Likewise.
2081         * doc/posix-functions/lgamma.texi: Likewise.
2082         * doc/posix-functions/nextafter.texi: Likewise.
2083         * doc/posix-functions/remainder.texi: Likewise.
2084         * doc/posix-functions/select.texi: Mention misplaced declaration on
2085         IRIX 5.3.
2086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2087
2088 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2089
2090         gitlog-to-changelog: fix git-log invocation.
2091         git-log mishandles date strings before 1970-01-01 UTC, and there is
2092         no use to specify --since=1970-01-01 by default anyway.
2093         * build-aux/gitlog-to-changelog: By default, when no --since option
2094         was given, do not specify explicit --since option to git-log.
2095
2096 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2097
2098         gitlog-to-changelog: new option --append-dot.
2099         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2100         first non-blank line of each commit message terminated with a dot.
2101
2102 2011-10-30  Bruno Haible  <bruno@clisp.org>
2103
2104         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2105         * lib/ffsl.h: Include <config.h>.
2106         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2107
2108 2011-10-30  Jim Meyering  <meyering@redhat.com>
2109
2110         GNUmakefile: reenable "make syntax-check" for most projects
2111         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2112         build-aux variable", "syntax-check" would do nothing but succeed with
2113         the "No version control files detected..." diagnostic (unless you
2114         happened to override _build-aux via cfg.mk).
2115         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2116         to precede inclusion of maint.mk.  Otherwise, these variables would
2117         be used undefined in any project that does not override the default.
2118
2119 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2120
2121         gitlog-to-changelog: treat a message with only blank lines as empty.
2122         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2123         trailing blank lines before the code that issues a warning about an
2124         empty commit message.
2125
2126 2011-10-30  Jim Meyering  <meyering@redhat.com>
2127
2128         test-parse-datetime.c: avoid new DST-related false positive test failure
2129         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2130         based on the time/date we'll convert, not the current time.
2131         Otherwise, the moment we cross a DST boundary like today's in
2132         Europe, (CEST to CET), that offset ends up being one hour off.
2133
2134 2011-10-27  Bruno Haible  <bruno@clisp.org>
2135
2136         fstat: Tweak documentation.
2137         * modules/fstat (Description): More precise description.
2138
2139 2011-10-27  Bruno Haible  <bruno@clisp.org>
2140
2141         Update documentation regarding 'largefile' module.
2142         * doc/posix-functions/fstat.texi: Tweak wording.
2143         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2144         problems with huge directories and/or small ino_t types.
2145         * doc/posix-functions/readdir.texi: Likewise.
2146         * doc/posix-functions/rewinddir.texi: Likewise.
2147
2148 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2149
2150         maint.mk: don't maintain a second build-aux variable.
2151         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2152         depends on GNUmakefile, which already maintains a cfg.mk
2153         overridable $(_build-aux) for projects with a non-standard
2154         build-aux directory location, although without the $(srcdir)
2155         prefix.  Use that variable consistently instead of introducing a
2156         second one.  Adjust all call sites.
2157
2158 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         Add stdalign module and use it in other modules.
2161         This is based on a previous proposal by Bruno Haible
2162         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2163
2164         stdalign: new module
2165         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2166         * modules/stdalign: New files.
2167         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2168         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2169
2170         stdalign-tests: new module
2171         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2172
2173         argp: use stdalign
2174         * lib/argp-parse.c: Include <stdalign.h>.
2175         (alignof): Remove.
2176         * modules/argp (Depends-on): Add stdalign.
2177
2178         crypto libraries: use stdalign
2179         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2180         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2181         Do not include <stdlib.h> twice, in md4.c.
2182         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2183         because we are accessing a pointer's bit-pattern, not a size.
2184         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2185         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2186         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2187         * modules/crypto/sha512: Likewise.
2188
2189         sys_socket: use stdalign, not alignof
2190         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2191         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2192
2193 2011-10-27  Bruno Haible  <bruno@clisp.org>
2194
2195         raise test: Avoid a test failure on Linux/MIPS.
2196         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2197         because 99 is a valid signal on Linux/MIPS.
2198
2199 2011-10-27  Bruno Haible  <bruno@clisp.org>
2200
2201         nonblocking tests: Fix test failure on Linux/MIPS.
2202         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2203         Set to 270000.
2204
2205 2011-10-27  Bruno Haible  <bruno@clisp.org>
2206
2207         utimensat: Work around problem on Linux/hppa.
2208         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2209         values.
2210         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2211
2212 2011-10-25  Jim Meyering  <meyering@redhat.com>
2213
2214         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2215         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2216         after symbols like NULL, size_t, etc.
2217         Reported by Alfred M. Szmidt.
2218
2219         maint.mk: exempt ENODATA from a syntax-check rule
2220         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2221         from the sc_prohibit_always-defined_macros syntax-check rule.
2222         Add a comment.  See this for more details:
2223         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2224
2225 2011-10-23  Jim Meyering  <meyering@redhat.com>
2226
2227         fts: close parent dir FD before returning from post-traversal fts_read
2228         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2229         unlink A, even though an FD open on A remained.  This is suboptimal
2230         (holding a file descriptor open longer than needed), but otherwise not
2231         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2232         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2233         that represents a real problem: it causes the removal of A to fail
2234         with e.g., "rm: cannot remove `A': Device or resource busy"
2235
2236         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2237         directory file descriptors.  After completing the final, FTS_DP,
2238         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2239         cache, but then proceeded to add a new FD to it via the subsequent
2240         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2241         final file descriptor would be closed only via fts_close's call to
2242         fd_ring_clear.  Now, it is usually closed earlier, via the final
2243         FTS_DP-returning fts_read call.
2244         * lib/fts.c (restore_initial_cwd): New function, converted from
2245         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2246         Update callers.
2247         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2248         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2249
2250 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2251             Bruno Haible  <bruno@clisp.org>
2252             Jim Meyering  <jim@meyering.net>
2253
2254         readme-release: improve safety of release prep instructions.
2255         * README-release: Don't git pull all branches when only master
2256         is needed for the release process.
2257         Run make maintainer-clean before changing trees and merging.
2258         Don't try to run ./configure right after git pull in case files
2259         that influence the bootstrap process have changed, move the
2260         ./configure step to after running ./bootstrap.
2261         Don't bootstrap "one last time"... it's the first time!
2262
2263 2011-10-22  Bruno Haible  <bruno@clisp.org>
2264
2265         errno, strerror-override: Support for MSVC 10.
2266         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2267         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2268         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2269         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2270         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2271         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2272         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2273         Assign values compatible with MSVC 10.
2274         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2275         New macros.
2276         (GNULIB_defined_EWINSOCK): New macro.
2277         * lib/strerror-override.c (strerror_override): Update accordingly.
2278         * lib/strerror-override.h: Likewise.
2279         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2280         longer equal to the corresponding errno value.
2281         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2282
2283 2011-10-22  Bruno Haible  <bruno@clisp.org>
2284
2285         perror: Recognize when test program crashes.
2286         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2287         strerror, set gl_cv_func_perror_works to no.
2288         Reported by Daniel Richard G. <skunk@iskunk.org>.
2289
2290         perror: Fix indentation.
2291         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2292
2293 2011-10-22  Bruno Haible  <bruno@clisp.org>
2294
2295         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2296         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2297         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2298         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2299         functions, not as a macro.
2300         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2301         macros.
2302         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2303         absence of macro.
2304         Suggested by Eric Blake.
2305         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2306
2307 2011-10-21  Bruno Haible  <bruno@clisp.org>
2308
2309         relocatable-prog-wrapper: Don't leave object files behind.
2310         * build-aux/install-reloc: Re-synchronize list of .o files to be
2311         removed with list of compilation units.
2312
2313 2011-10-20  Bruno Haible  <bruno@clisp.org>
2314
2315         openpty, posix_openpt: Remove code duplication.
2316         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2317         * lib/openpty.c: Include <stdlib.h>.
2318         (openpty): Use posix_openpt on all platforms except IRIX.
2319         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2320
2321 2011-10-20  Bruno Haible  <bruno@clisp.org>
2322
2323         unlockpt: Detect invalid argument.
2324         * lib/unlockpt.c: Include <fcntl.h>.
2325         (unlockpt): Check whether fd is valid, using fcntl().
2326         * modules/unlockpt (Depends-on): Add fcntl-h.
2327
2328 2011-10-20  Bruno Haible  <bruno@clisp.org>
2329
2330         openpty: Avoid compilation error on AIX 6.1.
2331         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2332
2333 2011-10-20  Bruno Haible  <bruno@clisp.org>
2334
2335         posix_openpt: Support for OpenBSD.
2336         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2337         (posix_openpt) [OpenBSD]: New code.
2338         * lib/grantpt.c: Include <fcntl.h>.
2339         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2340         * modules/grantpt (Depends-on): Add fcntl-h.
2341
2342 2011-10-20  Bruno Haible  <bruno@clisp.org>
2343
2344         posix_openpt test: Coding style.
2345         * tests/test-posix_openpt.c: Use GNU coding style.
2346
2347 2011-10-20  Bruno Haible  <bruno@clisp.org>
2348
2349         grantpt: Support --avoid=pt_chown.
2350         * modules/grantpt (Files): Add lib/pty-private.h.
2351
2352 2011-10-20  Bruno Haible  <bruno@clisp.org>
2353
2354         posix_openpt: Fix autoconf macro.
2355         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2356         unneeded check for _getpty.
2357
2358 2011-10-20  Bruno Haible  <bruno@clisp.org>
2359
2360         openpty: Update comments.
2361         * lib/openpty.c: Add comments about Minix.
2362
2363 2011-10-19  Eric Blake  <eblake@redhat.com>
2364
2365         openpty: relax license
2366         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2367
2368         pt_chown: use configmake to simplify build
2369         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2370
2371         ptsname and others: relax license
2372         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2373         * modules/unlockpt (License): Likewise.
2374         * modules/pt_chown (License): Likewise.
2375         * modules/ptsname (License): Likewise.
2376         * modules/ttyname_r (License): Likewise.
2377
2378 2011-10-19  Jim Meyering  <meyering@redhat.com>
2379
2380         posix_openpt: remove spurious #endif
2381         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2382
2383 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2384
2385         maint.mk: Respect $(build_aux) in web-manual rule.
2386         * top/maint.mk (web-manual): Find gen-announce script in user's
2387         $(build_aux) directory instead of hard-coding 'build-aux'.
2388
2389 2011-10-19  Bruno Haible  <bruno@clisp.org>
2390
2391         posix_openpt: Fix compilation error.
2392         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2393         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2394         Mention the openpty module as an alternative.
2395
2396 2011-10-19  Bruno Haible  <bruno@clisp.org>
2397
2398         Support for old NeXTstep 3.3 frexp().
2399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2400         execution time of the test to 5 seconds.
2401         Reported by Daniel Richard G. <skunk@iskunk.org>.
2402
2403 2011-10-19  Bruno Haible  <bruno@clisp.org>
2404
2405         Support for old NeXTstep 3.3 sed.
2406         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2407         part, use /.../, not \|...|. Escape periods in the header file name.
2408         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2409         Reported by Daniel Richard G. <skunk@iskunk.org>.
2410
2411 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2412
2413         Support for old NeXTstep 3.3 gcc.
2414         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2415         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2416         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2417         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2418         * lib/regex.h (_Restrict_arr_): Likewise.
2419         * lib/regex_internal.h (re_token_t): Likewise.
2420         * lib/regexec.c (check_node_accept_bytes): Likewise.
2421         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2422
2423 2011-10-18  Eric Blake  <eblake@redhat.com>
2424
2425         posix_openpt: new module
2426         * modules/posix_openpt: New module.
2427         * m4/posix_openpt.m4: New file.
2428         * lib/posix_openpt.c: Likewise.
2429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2430         (gl_STDLIB_H_DEFAULTS): Set defaults.
2431         * modules/stdlib (Makefile.am): Substitute macros.
2432         * lib/stdlib.in.h (posix_openpt): Declare.
2433         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2434         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2435         * modules/posix_openpt-tests: New test module.
2436         * tests/test-posix_openpt.c: New test.
2437
2438 2011-10-15  Bruno Haible  <bruno@clisp.org>
2439
2440         xstrtoll: Fix compilation failure.
2441         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2442         from lib/strtol.c.
2443         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2444         some platforms.
2445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2446
2447 2011-10-15  Bruno Haible  <bruno@clisp.org>
2448
2449         vasnprintf: Optimize bit search operation.
2450         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2452         gl_DOUBLE_EXPONENT_LOCATION.
2453         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2454         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2455         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2456         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2457         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2458         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2459         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2460         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2461         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2462
2463 2011-10-15  Bruno Haible  <bruno@clisp.org>
2464
2465         vasnprintf: Fix comments.
2466         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2467
2468 2011-10-14  Bruno Haible  <bruno@clisp.org>
2469
2470         Tests for module 'integer_length_ll'.
2471         * modules/integer_length_ll-tests: New file.
2472         * tests/test-integer_length_ll.c: New file.
2473
2474         New module 'integer_length_ll'.
2475         * lib/integer_length_ll.c: New file.
2476         * modules/integer_length_ll: New file.
2477
2478 2011-10-14  Bruno Haible  <bruno@clisp.org>
2479
2480         Tests for module 'integer_length_l'.
2481         * modules/integer_length_l-tests: New file.
2482         * tests/test-integer_length_l.c: New file.
2483
2484         New module 'integer_length_l'.
2485         * lib/integer_length_l.c: New file.
2486         * modules/integer_length_l: New file.
2487
2488 2011-10-14  Bruno Haible  <bruno@clisp.org>
2489
2490         Tests for module 'integer_length'.
2491         * modules/integer_length-tests: New file.
2492         * tests/test-integer_length.c: New file.
2493
2494         New module 'integer_length'.
2495         * lib/integer_length.h: New file.
2496         * lib/integer_length.c: New file.
2497         * modules/integer_length: New file.
2498
2499 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2500
2501         popen: Fix dependency conditions.
2502         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2503
2504 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2505
2506         perror: Fix autoconf test.
2507         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2508         <stdlib.h> and <string.h>.
2509
2510 2011-10-14  Bruno Haible  <bruno@clisp.org>
2511
2512         ffsl: Optimize on 64-bit platforms.
2513         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2514         unrolling.
2515
2516 2011-10-13  Bruno Haible  <bruno@clisp.org>
2517
2518         ffsl: Optimize on 32-bit platforms.
2519         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2520         use ffs() without a loop.
2521
2522         ffsl, ffsll: Optimize for GCC.
2523         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2524         * lib/ffsl.c (GCC_BUILTIN): New macro.
2525         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2526
2527 2011-10-13  Bruno Haible  <bruno@clisp.org>
2528
2529         ffs, bcopy, memset: Support symbol renaming via config.h.
2530         * lib/ffs.c: Include <config.h>.
2531         * lib/bcopy.c: Likewise.
2532         * lib/memset.c: Likewise.
2533
2534 2011-10-10  Bruno Haible  <bruno@clisp.org>
2535
2536         atanl: Simplify for platforms where 'long double' == 'double'.
2537         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2538         alternative implementation.
2539         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2540         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2541         * modules/atanl (Depends-on): Add atan. Update conditions.
2542
2543 2011-10-10  Bruno Haible  <bruno@clisp.org>
2544
2545         acosl: Simplify for platforms where 'long double' == 'double'.
2546         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2547         alternative implementation.
2548         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2549         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2550         * modules/acosl (Depends-on): Add acos. Update conditions.
2551
2552 2011-10-10  Bruno Haible  <bruno@clisp.org>
2553
2554         asinl: Simplify for platforms where 'long double' == 'double'.
2555         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2556         alternative implementation.
2557         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2558         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2559         * modules/asinl (Depends-on): Add asin. Update conditions.
2560
2561 2011-10-10  Bruno Haible  <bruno@clisp.org>
2562
2563         tanl: Simplify for platforms where 'long double' == 'double'.
2564         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2565         implementation.
2566         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2567         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2568         * modules/tanl (Depends-on): Add tan. Update conditions.
2569         (configure.ac): Don't compile trigl.c if
2570         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2571
2572 2011-10-10  Bruno Haible  <bruno@clisp.org>
2573
2574         cosl: Simplify for platforms where 'long double' == 'double'.
2575         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2576         implementation.
2577         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2578         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2579         * modules/cosl (Depends-on): Add cos. Update conditions.
2580         (configure.ac): Don't compile sincosl.c and trigl.c if
2581         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2582
2583 2011-10-10  Bruno Haible  <bruno@clisp.org>
2584
2585         sinl: Simplify for platforms where 'long double' == 'double'.
2586         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2587         implementation.
2588         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2589         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2590         * modules/sinl (Depends-on): Add sin. Update conditions.
2591         (configure.ac): Don't compile sincosl.c and trigl.c if
2592         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2593
2594 2011-10-10  Bruno Haible  <bruno@clisp.org>
2595
2596         logl: Simplify for platforms where 'long double' == 'double'.
2597         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2598         implementation.
2599         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2600         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2601         * modules/logl (Depends-on): Add log. Update conditions.
2602
2603 2011-10-10  Bruno Haible  <bruno@clisp.org>
2604
2605         expl: Simplify for platforms where 'long double' == 'double'.
2606         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2607         implementation.
2608         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2609         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2610         * modules/expl (Depends-on): Add exp. Update conditions.
2611
2612 2011-10-10  Bruno Haible  <bruno@clisp.org>
2613
2614         sqrtl: Simplify for platforms where 'long double' == 'double'.
2615         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2616         alternative implementation.
2617         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2618         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2619         * modules/sqrtl (Depends-on): Update conditions.
2620
2621 2011-10-10  Bruno Haible  <bruno@clisp.org>
2622
2623         ldexpl: Simplify for platforms where 'long double' == 'double'.
2624         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2625         alternative implementation.
2626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2627         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2628         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2629
2630 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2631
2632         ffsll: set correct witness
2633         * modules/ffsll (configure.ac): Fix typo.
2634
2635 2011-10-10  Bruno Haible  <bruno@clisp.org>
2636
2637         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2638         * lib/printf-frexpl.c: Include <config.h>.
2639         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2640         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2641         second time.
2642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2643         gl_LONG_DOUBLE_VS_DOUBLE.
2644         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2645         conditions.
2646
2647 2011-10-10  Bruno Haible  <bruno@clisp.org>
2648
2649         frexpl: Simplify for platforms where 'long double' == 'double'.
2650         * lib/frexpl.c: Include <config.h>.
2651         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2652         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2653         time.
2654         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2655         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2656         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2657         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2658         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2659         conditions.
2660
2661 2011-10-10  Jim Meyering  <meyering@redhat.com>
2662
2663         test-renameat: don't leave behind a temporary file
2664         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2665           ERROR: files left in build directory after distclean:
2666           ./gltests/test-renameat.too
2667           make[1]: *** [distcleancheck] Error 1
2668         Reported by Tom G. Christensen.
2669
2670 2011-10-09  Bruno Haible  <bruno@clisp.org>
2671
2672         rint: Determine RINT_LIBM correctly on AIX 7.
2673         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2674         directly, not only through a function pointer. Also accept an optional
2675         4th argument with extra code.
2676         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2677         rintf() call by gcc when optimizing.
2678
2679         mathfunc.m4: Refactor.
2680         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2681         m4 variable.
2682
2683 2011-10-09  Bruno Haible  <bruno@clisp.org>
2684
2685         rintl: Simplify for platforms where 'long double' == 'double'.
2686         * lib/rintl.c: Include <config.h>.
2687         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2688         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2689         time.
2690         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2691         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2692         * modules/rintl (Depends-on): Add rint. Update conditions.
2693
2694 2011-10-09  Bruno Haible  <bruno@clisp.org>
2695
2696         roundl: Simplify for platforms where 'long double' == 'double'.
2697         * lib/roundl.c: Include <config.h>.
2698         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2699         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2700         time.
2701         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2702         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2703         * modules/roundl (Depends-on): Add round. Update conditions.
2704
2705 2011-10-09  Bruno Haible  <bruno@clisp.org>
2706
2707         truncl: Simplify for platforms where 'long double' == 'double'.
2708         * lib/truncl.c: Include <config.h>.
2709         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2710         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2711         time.
2712         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2713         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2714         * modules/truncl (Depends-on): Add trunc. Update conditions.
2715
2716 2011-10-09  Bruno Haible  <bruno@clisp.org>
2717
2718         ceill: Simplify for platforms where 'long double' == 'double'.
2719         * lib/ceill.c: Include <config.h>.
2720         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2721         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2722         time.
2723         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2724         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2725         * modules/ceill (Depends-on): Add ceil. Update conditions.
2726
2727 2011-10-09  Bruno Haible  <bruno@clisp.org>
2728
2729         floorl: Simplify for platforms where 'long double' == 'double'.
2730         * lib/floorl.c: Include <config.h>.
2731         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2732         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2733         time.
2734         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2735         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2736         * modules/floorl (Depends-on): Add floor. Update conditions.
2737
2738 2011-10-09  Bruno Haible  <bruno@clisp.org>
2739
2740         rint: Fix ordering constraints.
2741         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2742         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2743         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2744
2745 2011-10-09  Bruno Haible  <bruno@clisp.org>
2746
2747         copysignl: Simplify for platforms where 'long double' == 'double'.
2748         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2749         alternative.
2750         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2751         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2752         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2753
2754 2011-10-09  Bruno Haible  <bruno@clisp.org>
2755
2756         Tests for module 'rintl'.
2757         * modules/rintl-tests: New file.
2758         * tests/test-rintl.c: New file.
2759
2760         New module 'rintl'.
2761         * lib/math.in.h (rintl): New declaration.
2762         * lib/rintl.c: New file.
2763         * m4/rintl.m4: New file.
2764         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2766         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2767         * modules/rintl: New file.
2768         * tests/test-math-c++.cc: Check the declaration of rintl.
2769         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2770         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2771         * doc/posix-functions/rintl.texi: Mention the new module.
2772
2773 2011-10-09  Bruno Haible  <bruno@clisp.org>
2774
2775         Tests for module 'rintf'.
2776         * modules/rintf-tests: New file.
2777         * tests/test-rintf.c: New file.
2778
2779         New module 'rintf'.
2780         * lib/math.in.h (rintf): New declaration.
2781         * lib/rintf.c: New file.
2782         * m4/rintf.m4: New file.
2783         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2785         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2786         * modules/rintf: New file.
2787         * tests/test-math-c++.cc: Check the declaration of rintf.
2788         * doc/posix-functions/rintf.texi: Mention the new module.
2789
2790 2011-10-09  Bruno Haible  <bruno@clisp.org>
2791
2792         rint: Support for MSVC.
2793         * lib/math.in.h (rint): New declaration.
2794         * lib/rint.c: New file.
2795         * m4/rint.m4: New file.
2796         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2798         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2799         * modules/rint (Description): Fix.
2800         (Files): Add lib/rint.c, m4/rint.m4.
2801         (Depends-on): Add math.
2802         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2803         gl_MATH_MODULE_INDICATOR.
2804         * tests/test-math-c++.cc: Check the declaration of rint.
2805         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2806         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2807         * doc/posix-functions/rint.texi: Mention the replacement provided by
2808         the module.
2809
2810         rint tests: More tests.
2811         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2812         minus-zero.h, infinity.h, nan.h.
2813         (main): Skip the test if the current rounding mode is not standard. Add
2814         tests for negative numbers, minus zero, infinity, NaN.
2815         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2816         tests/nan.h.
2817         (Depends-on): Add isnand-nolibm.
2818
2819 2011-10-09  Bruno Haible  <bruno@clisp.org>
2820
2821         Tests for module 'copysignl'.
2822         * modules/copysignl-tests: New file.
2823         * tests/test-copysignl.c: New file.
2824
2825         New module 'copysignl'.
2826         * lib/math.in.h (copysignl): New declaration.
2827         * lib/copysignl.c: New file.
2828         * m4/copysignl.m4: New file.
2829         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2831         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2832         HAVE_COPYSIGNL.
2833         * modules/copysignl: New file.
2834         * tests/test-math-c++.cc: Check the declaration of copysignl.
2835         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2836         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2837         * doc/posix-functions/copysignl.texi: Mention the new module.
2838
2839 2011-10-09  Bruno Haible  <bruno@clisp.org>
2840
2841         Tests for module 'copysignf'.
2842         * modules/copysignf-tests: New file.
2843         * tests/test-copysignf.c: New file.
2844
2845         New module 'copysignf'.
2846         * lib/math.in.h (copysignf): New declaration.
2847         * lib/copysignf.c: New file.
2848         * m4/copysignf.m4: New file.
2849         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2851         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2852         HAVE_COPYSIGNF.
2853         * modules/copysignf: New file.
2854         * tests/test-math-c++.cc: Check the declaration of copysignf.
2855         * doc/posix-functions/copysignf.texi: Mention the new module.
2856
2857 2011-10-09  Bruno Haible  <bruno@clisp.org>
2858
2859         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2860         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2861         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2862         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2863         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2864         gl_SIGNAL_H_DEFAULTS.
2865
2866 2011-10-09  Bruno Haible  <bruno@clisp.org>
2867
2868         poll: Make macro safer.
2869         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2870         ac_cv_header_poll_h is not set.
2871
2872 2011-10-09  Bruno Haible  <bruno@clisp.org>
2873
2874         copysign: Provide replacement.
2875         * lib/math.in.h (copysign): New declaration.
2876         * lib/copysign.c: New file.
2877         * m4/copysign.m4: New file.
2878         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2880         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2881         HAVE_COPYSIGN.
2882         * modules/copysign (Description): Clarify.
2883         (Files): Add lib/copysign.c, m4/copysign.m4.
2884         (Depends-on): Add math, signbit.
2885         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2886         gl_MATH_MODULE_INDICATOR.
2887         * tests/test-math-c++.cc: Check the declaration of copysign.
2888         * doc/posix-functions/copysign.texi: Mention the effects of the module
2889         on Minix and MSVC.
2890
2891 2011-10-09  Bruno Haible  <bruno@clisp.org>
2892
2893         isinf: Ensure macro on AIX 5.1.
2894         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2895         macro.
2896         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2897
2898 2011-10-09  Bruno Haible  <bruno@clisp.org>
2899
2900         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2901         * modules/snprintf-posix-tests (configure.ac): Require
2902         gl_LONG_DOUBLE_VS_DOUBLE.
2903         * modules/sprintf-posix-tests (configure.ac): Likewise.
2904         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2905         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2906         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2907         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2908         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2909         tests on platforms where 'long double' is the same as 'double'.
2910         * tests/test-sprintf-posix.h (test_function): Likewise.
2911         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2912         * tests/test-vasprintf-posix.c (test_function): Likewise.
2913
2914         *printf: Fix for platforms where 'long double' == 'double'.
2915         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2916         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2917         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2918         * modules/fprintf-posix (Files): Likewise.
2919         * modules/obstack-printf-posix (Files): Likewise.
2920         * modules/snprintf-posix (Files): Likewise.
2921         * modules/sprintf-posix (Files): Likewise.
2922         * modules/vasnprintf (Files): Likewise.
2923         * modules/vasnprintf-posix (Files): Likewise.
2924         * modules/vasprintf-posix (Files): Likewise.
2925         * modules/vdprintf-posix (Files): Likewise.
2926         * modules/vfprintf-posix (Files): Likewise.
2927         * modules/vsnprintf-posix (Files): Likewise.
2928         * modules/vsprintf-posix (Files): Likewise.
2929         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2930         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2931         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2932         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2933         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2934         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2935         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2936
2937         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2938         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2939         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2940         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2941         'long double'.
2942         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2943
2944         isinf: Fix for platforms where 'long double' == 'double'.
2945         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2946         Don't blindly assume 80-bit 'long double'.
2947
2948         isfinite: Fix for platforms where 'long double' == 'double'.
2949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2950         Don't blindly assume 80-bit 'long double'.
2951
2952         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2953         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2954         * modules/isfinite-tests (configure.ac): Require
2955         gl_LONG_DOUBLE_VS_DOUBLE.
2956         * modules/isinf-tests (configure.ac): Likewise.
2957         * modules/isnan-tests (configure.ac): Likewise.
2958         * modules/isnanl-tests (configure.ac): Likewise.
2959         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2960         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2961         tests on platforms where 'long double' is the same as 'double'.
2962         * tests/test-isinf.c (test_isinfl): Likewise.
2963         * tests/test-isnan.c (test_long_double): Likewise.
2964         * tests/test-isnanl.h (main): Likewise.
2965
2966 2011-10-08  Bruno Haible  <bruno@clisp.org>
2967
2968         Tests for module 'tanhf'.
2969         * modules/tanhf-tests: New file.
2970         * tests/test-tanhf.c: New file.
2971
2972         New module 'tanhf'.
2973         * lib/math.in.h (tanhf): New declaration.
2974         * lib/tanhf.c: New file.
2975         * m4/tanhf.m4: New file.
2976         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2978         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2979         * modules/tanhf: New file.
2980         * tests/test-math-c++.cc: Check the declaration of tanhf.
2981         * doc/posix-functions/tanhf.texi: Mention the new module.
2982
2983         tanh: Use a .m4 file.
2984         * m4/tanh.m4: New file.
2985         * modules/tanh (Files): Add it.
2986         (configure.ac): Just invoke gl_FUNC_TANH.
2987
2988 2011-10-08  Bruno Haible  <bruno@clisp.org>
2989
2990         Tests for module 'coshf'.
2991         * modules/coshf-tests: New file.
2992         * tests/test-coshf.c: New file.
2993
2994         New module 'coshf'.
2995         * lib/math.in.h (coshf): New declaration.
2996         * lib/coshf.c: New file.
2997         * m4/coshf.m4: New file.
2998         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3000         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3001         * modules/coshf: New file.
3002         * tests/test-math-c++.cc: Check the declaration of coshf.
3003         * doc/posix-functions/coshf.texi: Mention the new module.
3004
3005         cosh: Use a .m4 file.
3006         * m4/cosh.m4: New file.
3007         * modules/cosh (Files): Add it.
3008         (configure.ac): Just invoke gl_FUNC_COSH.
3009
3010 2011-10-08  Bruno Haible  <bruno@clisp.org>
3011
3012         Tests for module 'sinhf'.
3013         * modules/sinhf-tests: New file.
3014         * tests/test-sinhf.c: New file.
3015
3016         New module 'sinhf'.
3017         * lib/math.in.h (sinhf): New declaration.
3018         * lib/sinhf.c: New file.
3019         * m4/sinhf.m4: New file.
3020         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3022         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3023         * modules/sinhf: New file.
3024         * tests/test-math-c++.cc: Check the declaration of sinhf.
3025         * doc/posix-functions/sinhf.texi: Mention the new module.
3026
3027         sinh: Use a .m4 file.
3028         * m4/sinh.m4: New file.
3029         * modules/sinh (Files): Add it.
3030         (configure.ac): Just invoke gl_FUNC_SINH.
3031
3032 2011-10-08  Bruno Haible  <bruno@clisp.org>
3033
3034         Tests for module 'atan2f'.
3035         * modules/atan2f-tests: New file.
3036         * tests/test-atan2f.c: New file.
3037
3038         New module 'atan2f'.
3039         * lib/math.in.h (atan2f): New declaration.
3040         * lib/atan2f.c: New file.
3041         * m4/atan2f.m4: New file.
3042         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3044         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3045         * modules/atan2f: New file.
3046         * tests/test-math-c++.cc: Check the declaration of atan2f.
3047         * doc/posix-functions/atan2f.texi: Mention the new module.
3048
3049         atan2: Use a .m4 file.
3050         * m4/atan2.m4: New file.
3051         * modules/atan2 (Files): Add it.
3052         (configure.ac): Just invoke gl_FUNC_ATAN2.
3053
3054 2011-10-08  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'atanf'.
3057         * modules/atanf-tests: New file.
3058         * tests/test-atanf.c: New file.
3059
3060         New module 'atanf'.
3061         * lib/math.in.h (atanf): New declaration.
3062         * lib/atanf.c: New file.
3063         * m4/atanf.m4: New file.
3064         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3066         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3067         * modules/atanf: New file.
3068         * tests/test-math-c++.cc: Check the declaration of atanf.
3069         * doc/posix-functions/atanf.texi: Mention the new module.
3070
3071         atan: Use a .m4 file.
3072         * m4/atan.m4: New file.
3073         * modules/atan (Files): Add it.
3074         (configure.ac): Just invoke gl_FUNC_ATAN.
3075
3076 2011-10-08  Bruno Haible  <bruno@clisp.org>
3077
3078         Tests for module 'acosf'.
3079         * modules/acosf-tests: New file.
3080         * tests/test-acosf.c: New file.
3081
3082         New module 'acosf'.
3083         * lib/math.in.h (acosf): New declaration.
3084         * lib/acosf.c: New file.
3085         * m4/acosf.m4: New file.
3086         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3088         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3089         * modules/acosf: New file.
3090         * tests/test-math-c++.cc: Check the declaration of acosf.
3091         * doc/posix-functions/acosf.texi: Mention the new module.
3092
3093         acos: Use a .m4 file.
3094         * m4/acos.m4: New file.
3095         * modules/acos (Files): Add it.
3096         (configure.ac): Just invoke gl_FUNC_ACOS.
3097
3098 2011-10-08  Bruno Haible  <bruno@clisp.org>
3099
3100         Tests for module 'asinf'.
3101         * modules/asinf-tests: New file.
3102         * tests/test-asinf.c: New file.
3103
3104         New module 'asinf'.
3105         * lib/math.in.h (asinf): New declaration.
3106         * lib/asinf.c: New file.
3107         * m4/asinf.m4: New file.
3108         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3110         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3111         * modules/asinf: New file.
3112         * tests/test-math-c++.cc: Check the declaration of asinf.
3113         * doc/posix-functions/asinf.texi: Mention the new module.
3114
3115         asin: Use a .m4 file.
3116         * m4/asin.m4: New file.
3117         * modules/asin (Files): Add it.
3118         (configure.ac): Just invoke gl_FUNC_ASIN.
3119
3120 2011-10-08  Bruno Haible  <bruno@clisp.org>
3121
3122         Tests for module 'tanf'.
3123         * modules/tanf-tests: New file.
3124         * tests/test-tanf.c: New file.
3125
3126         New module 'tanf'.
3127         * lib/math.in.h (tanf): New declaration.
3128         * lib/tanf.c: New file.
3129         * m4/tanf.m4: New file.
3130         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3132         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3133         * modules/tanf: New file.
3134         * tests/test-math-c++.cc: Check the declaration of tanf.
3135         * doc/posix-functions/tanf.texi: Mention the new module.
3136
3137         tan: Use a .m4 file.
3138         * m4/tan.m4: New file.
3139         * modules/tan (Files): Add it.
3140         (configure.ac): Just invoke gl_FUNC_TAN.
3141
3142 2011-10-08  Bruno Haible  <bruno@clisp.org>
3143
3144         Tests for module 'cosf'.
3145         * modules/cosf-tests: New file.
3146         * tests/test-cosf.c: New file.
3147
3148         New module 'cosf'.
3149         * lib/math.in.h (cosf): New declaration.
3150         * lib/cosf.c: New file.
3151         * m4/cosf.m4: New file.
3152         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3154         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3155         * modules/cosf: New file.
3156         * tests/test-math-c++.cc: Check the declaration of cosf.
3157         * doc/posix-functions/cosf.texi: Mention the new module.
3158
3159         cos: Use a .m4 file.
3160         * m4/cos.m4: New file.
3161         * modules/cos (Files): Add it.
3162         (configure.ac): Just invoke gl_FUNC_COS.
3163
3164 2011-10-08  Bruno Haible  <bruno@clisp.org>
3165
3166         Tests for module 'sinf'.
3167         * modules/sinf-tests: New file.
3168         * tests/test-sinf.c: New file.
3169
3170         New module 'sinf'.
3171         * lib/math.in.h (sinf): New declaration.
3172         * lib/sinf.c: New file.
3173         * m4/sinf.m4: New file.
3174         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3176         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3177         * modules/sinf: New file.
3178         * tests/test-math-c++.cc: Check the declaration of sinf.
3179         * doc/posix-functions/sinf.texi: Mention the new module.
3180
3181         sin: Use a .m4 file.
3182         * m4/sin.m4: New file.
3183         * modules/sin (Files): Add it.
3184         (configure.ac): Just invoke gl_FUNC_SIN.
3185
3186 2011-10-08  Bruno Haible  <bruno@clisp.org>
3187
3188         Tests for module 'powf'.
3189         * modules/powf-tests: New file.
3190         * tests/test-powf.c: New file.
3191
3192         New module 'powf'.
3193         * lib/math.in.h (powf): New declaration.
3194         * lib/powf.c: New file.
3195         * m4/powf.m4: New file.
3196         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3198         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3199         * modules/powf: New file.
3200         * tests/test-math-c++.cc: Check the declaration of powf.
3201         * doc/posix-functions/powf.texi: Mention the new module.
3202
3203         pow: Use a .m4 file.
3204         * m4/pow.m4: New file.
3205         * modules/pow (Files): Add it.
3206         (configure.ac): Just invoke gl_FUNC_POW.
3207
3208 2011-10-08  Bruno Haible  <bruno@clisp.org>
3209
3210         Tests for module 'log10f'.
3211         * modules/log10f-tests: New file.
3212         * tests/test-log10f.c: New file.
3213
3214         New module 'log10f'.
3215         * lib/math.in.h (log10f): New declaration.
3216         * lib/log10f.c: New file.
3217         * m4/log10f.m4: New file.
3218         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3220         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3221         * modules/log10f: New file.
3222         * tests/test-math-c++.cc: Check the declaration of log10f.
3223         * doc/posix-functions/log10f.texi: Mention the new module.
3224
3225         log10: Use a .m4 file.
3226         * m4/log10.m4: New file.
3227         * modules/log10 (Files): Add it.
3228         (configure.ac): Just invoke gl_FUNC_LOG10.
3229
3230 2011-10-08  Bruno Haible  <bruno@clisp.org>
3231
3232         Tests for module 'logf'.
3233         * modules/logf-tests: New file.
3234         * tests/test-logf.c: New file.
3235
3236         New module 'logf'.
3237         * lib/math.in.h (logf): New declaration.
3238         * lib/logf.c: New file.
3239         * m4/logf.m4: New file.
3240         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3242         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3243         * modules/logf: New file.
3244         * tests/test-math-c++.cc: Check the declaration of logf.
3245         * doc/posix-functions/logf.texi: Mention the new module.
3246
3247         log: Use a .m4 file.
3248         * m4/log.m4: New file.
3249         * modules/log (Files): Add it.
3250         (configure.ac): Just invoke gl_FUNC_LOG.
3251
3252 2011-10-08  Bruno Haible  <bruno@clisp.org>
3253
3254         Tests for module 'expf'.
3255         * modules/expf-tests: New file.
3256         * tests/test-expf.c: New file.
3257
3258         New module 'expf'.
3259         * lib/math.in.h (expf): New declaration.
3260         * lib/expf.c: New file.
3261         * m4/expf.m4: New file.
3262         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3264         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3265         * modules/expf: New file.
3266         * tests/test-math-c++.cc: Check the declaration of expf.
3267         * doc/posix-functions/expf.texi: Mention the new module.
3268
3269         exp: Use a .m4 file.
3270         * m4/exp.m4: New file.
3271         * modules/exp (Files): Add it.
3272         (configure.ac): Just invoke gl_FUNC_EXP.
3273
3274 2011-10-08  Bruno Haible  <bruno@clisp.org>
3275
3276         Tests for module 'sqrtf'.
3277         * modules/sqrtf-tests: New file.
3278         * tests/test-sqrtf.c: New file.
3279
3280         New module 'sqrtf'.
3281         * lib/math.in.h (sqrtf): New declaration.
3282         * lib/sqrtf.c: New file.
3283         * m4/sqrtf.m4: New file.
3284         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3286         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3287         * modules/sqrtf: New file.
3288         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3289         * doc/posix-functions/sqrtf.texi: Mention the new module.
3290
3291 2011-10-08  Bruno Haible  <bruno@clisp.org>
3292
3293         Tests: Avoid link failures w.r.t. libintl.
3294         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3295         $(LIBINTL).
3296         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3297         $(LIBINTL).
3298         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3299         against $(LIBINTL).
3300         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3301         $(LIBINTL).
3302         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3303         $(LIBINTL).
3304         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3305
3306 2011-10-08  Bruno Haible  <bruno@clisp.org>
3307
3308         pow tests: Defeat compiler optimizations.
3309         * tests/test-pow.c (main): Assign arguments to x and y before use.
3310
3311 2011-10-08  Bruno Haible  <bruno@clisp.org>
3312
3313         gnulib-tool: Improve last commit.
3314         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3315         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3316         ignore dependencies that are not among the modules list.
3317
3318 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3319
3320         gnulib-tool: don't follow dependencies to avoided modules
3321         This fixes a bug that is related to the previous one.
3322         * gnulib-tool (func_modules_transitive_closure)
3323         (func_emit_autoconf_snippets):
3324         Check whether a dependency is acceptable before using it.
3325         (--extract-dependencies): Report an error if --avoid is also used,
3326         since this combination of options is not yet supported.
3327
3328         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3329         Problem reported by Peter Dyballa in
3330         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3331         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3332         when echoing "$condition".
3333
3334 2011-10-07  Bruno Haible  <bruno@clisp.org>
3335
3336         Fix documentation about math functions on MacOS X.
3337         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3338         MacOS X 10.5.
3339         * doc/posix-functions/fdim.texi: Likewise.
3340         * doc/posix-functions/feclearexcept.texi: Likewise.
3341         * doc/posix-functions/fegetenv.texi: Likewise.
3342         * doc/posix-functions/fegetround.texi: Likewise.
3343         * doc/posix-functions/feholdexcept.texi: Likewise.
3344         * doc/posix-functions/feraiseexcept.texi: Likewise.
3345         * doc/posix-functions/fesetenv.texi: Likewise.
3346         * doc/posix-functions/fesetround.texi: Likewise.
3347         * doc/posix-functions/fetestexcept.texi: Likewise.
3348         * doc/posix-functions/feupdateenv.texi: Likewise.
3349         * doc/posix-functions/fmax.texi: Likewise.
3350         * doc/posix-functions/fmin.texi: Likewise.
3351         * doc/posix-functions/log2.texi: Likewise.
3352         * doc/posix-functions/modff.texi: Likewise.
3353         * doc/posix-functions/nan.texi: Likewise.
3354         * doc/posix-functions/nanf.texi: Likewise.
3355         * doc/posix-functions/nextafterf.texi: Likewise.
3356         * doc/posix-functions/remquo.texi: Likewise.
3357
3358 2011-10-07  Bruno Haible  <bruno@clisp.org>
3359
3360         modff: Drop assumption about library that defines modff.
3361         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3362         AC_CHECK_FUNCS.
3363         * modules/modff (Files): Add m4/mathfunc.m4.
3364
3365 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3366
3367         raise tests: Avoid a GCC warning.
3368         * tests/test-raise.c (handler): Use _Noreturn.
3369
3370 2011-10-07  Bruno Haible  <bruno@clisp.org>
3371
3372         Tests for module 'ldexpf'.
3373         * modules/ldexpf-tests: New file.
3374         * tests/test-ldexpf.c: New file.
3375
3376         New module 'ldexpf'.
3377         * lib/math.in.h (ldexpf): New declaration.
3378         * lib/ldexpf.c: New file.
3379         * m4/ldexpf.m4: New file.
3380         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3382         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3383         * modules/ldexpf: New file.
3384         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3385         * doc/posix-functions/ldexpf.texi: Mention the new module.
3386
3387 2011-10-06  Bruno Haible  <bruno@clisp.org>
3388
3389         frexpf: Work around problems on IRIX and mingw.
3390         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3392         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3393         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3394         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3395         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3396         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3397
3398 2011-10-06  Bruno Haible  <bruno@clisp.org>
3399
3400         fabsf: Drop assumption about library that defines fabsf.
3401         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3402         AC_CHECK_FUNCS.
3403         * modules/fabsf (Files): Add m4/mathfunc.m4.
3404
3405 2011-10-06  Bruno Haible  <bruno@clisp.org>
3406
3407         frexpf: Drop assumption about library that defines frexpf.
3408         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3409         'int *', 'float *', 'long double *', 'float', 'long double'.
3410         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3411         AC_CHECK_FUNCS.
3412         * modules/frexpf (Files): Add m4/mathfunc.m4.
3413
3414         Tests for module 'frexpf'.
3415         * modules/frexpf-tests: New file.
3416         * tests/test-frexpf.c: New file.
3417
3418         New module 'frexpf'.
3419         * lib/math.in.h (frexpf): New declaration.
3420         * lib/frexpf.c: New file.
3421         * m4/frexpf.m4: New file.
3422         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3424         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3425         * modules/frexpf: New file.
3426         * tests/test-math-c++.cc: Check the declaration of frexpf.
3427         * doc/posix-functions/frexpf.texi: Mention the new module.
3428
3429 2011-10-06  Bruno Haible  <bruno@clisp.org>
3430
3431         math: Sort function declarations of math.in.h.
3432         * lib/math.in.h (frexp, logb): Move declarations.
3433
3434 2011-10-05  Bruno Haible  <bruno@clisp.org>
3435
3436         Tests for module 'modff'.
3437         * modules/modff-tests: New file.
3438         * tests/test-modff.c: New file.
3439
3440         New module 'modff'.
3441         * lib/math.in.h (modff): New declaration.
3442         * lib/modff.c: New file.
3443         * m4/modff.m4: New file.
3444         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3446         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3447         * modules/modff: New file.
3448         * tests/test-math-c++.cc: Check the declaration of modff.
3449         * doc/posix-functions/modff.texi: Mention the new module.
3450
3451         modf tests: Make test sharper.
3452         * tests/test-modf.c (main): Strengthen upper bound.
3453
3454         modf: Use a .m4 file.
3455         * m4/modf.m4: New file.
3456         * modules/modf (Files): Add it.
3457         (configure.ac): Just invoke gl_FUNC_MODF.
3458
3459 2011-10-05  Bruno Haible  <bruno@clisp.org>
3460
3461         Tests for module 'fmodf'.
3462         * modules/fmodf-tests: New file.
3463         * tests/test-fmodf.c: New file.
3464
3465         New module 'fmodf'.
3466         * lib/math.in.h (fmodf): New declaration.
3467         * lib/fmodf.c: New file.
3468         * m4/fmodf.m4: New file.
3469         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3471         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3472         * modules/fmodf: New file.
3473         * tests/test-math-c++.cc: Check the declaration of fmodf.
3474         * doc/posix-functions/fmodf.texi: Mention the new module.
3475
3476         fmod: Use a .m4 file.
3477         * m4/fmod.m4: New file.
3478         * modules/fmod (Files): Add it.
3479         (configure.ac): Just invoke gl_FUNC_FMOD.
3480
3481 2011-10-05  Bruno Haible  <bruno@clisp.org>
3482
3483         Tests for module 'fabsf'.
3484         * modules/fabsf-tests: New file.
3485         * tests/test-fabsf.c: New file.
3486
3487         New module 'fabsf'.
3488         * lib/math.in.h (fabsf): New declaration.
3489         * lib/fabsf.c: New file.
3490         * m4/fabsf.m4: New file.
3491         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3493         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3494         * modules/fabsf: New file.
3495         * tests/test-math-c++.cc: Check the declaration of fabsf.
3496         * doc/posix-functions/fabsf.texi: Mention the new module.
3497
3498         fabs: Use a .m4 file.
3499         * m4/fabs.m4: New file.
3500         * modules/fabs (Files): Add it.
3501         (configure.ac): Just invoke gl_FUNC_FABS.
3502
3503 2011-10-05  Jim Meyering  <meyering@redhat.com>
3504
3505         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3506         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3507         ls -lL regression introduced in coreutils-8.12, it does so at the
3508         cost of an additional stat call in the common case.  Besides, now
3509         that the kernel change that prompted commit 95f7c57f has been reverted
3510         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3511         we have no use for commit 95f7c57f, "file-has-acl: use
3512         acl_extended_file_nofollow if available".
3513
3514 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3515
3516         file-has-acl: revert unintended change in behavior of ls -L
3517         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3518         derived from...
3519         (file_has_acl): ...code here.  Call it.
3520         This problem was introduced with 2011-07-22 commit 95f7c57f,
3521         "file-has-acl: use acl_extended_file_nofollow if available".
3522         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3523
3524 2011-10-03  Bruno Haible  <bruno@clisp.org>
3525
3526         poll: Avoid link errors on MSVC.
3527         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3528         * modules/poll (Depends-on): Add sockets.
3529         (Link): New section.
3530         * NEWS: Mention the change.
3531         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3532         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3533         $(LIB_POLL) instead of $(LIBSOCKET).
3534
3535 2011-10-03  Bruno Haible  <bruno@clisp.org>
3536
3537         sys_select tests: Fix link error on MSVC 9.
3538         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3539         with $(LIB_SELECT) instead of $(LIBSOCKET).
3540
3541 2011-10-03  Bruno Haible  <bruno@clisp.org>
3542
3543         sys_select: Fix compilation error on mingw.
3544         * lib/sys_select.in.h: On native Windows, include <io.h>.
3545
3546 2011-10-03  Bruno Haible  <bruno@clisp.org>
3547
3548         wmemset: Support for MSVC.
3549         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3550         whether wmemset() exists.
3551
3552 2011-10-03  Bruno Haible  <bruno@clisp.org>
3553
3554         wmemmove: Support for MSVC.
3555         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3556         whether wmemmove() exists.
3557
3558 2011-10-03  Bruno Haible  <bruno@clisp.org>
3559
3560         wmemcpy: Support for MSVC.
3561         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3562         whether wmemcpy() exists.
3563
3564 2011-10-03  Bruno Haible  <bruno@clisp.org>
3565
3566         wmemcmp: Support for MSVC.
3567         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3568         whether wmemcmp() exists.
3569
3570 2011-10-03  Bruno Haible  <bruno@clisp.org>
3571
3572         wmemchr: Support for MSVC.
3573         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3574         whether wmemchr() exists.
3575
3576 2011-10-03  Bruno Haible  <bruno@clisp.org>
3577
3578         glthread/*, strsignal: Support for MSVC.
3579         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3580         including <winsock.h> on MSVC 9.
3581         * lib/glthread/lock.h: Likewise.
3582         * lib/glthread/thread.h: Likewise.
3583         * lib/glthread/tls.h: Likewise.
3584         * lib/glthread/yield.h: Likewise.
3585         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3586         if HAVE_UNISTD_H is false.
3587         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3588
3589 2011-10-03  Bruno Haible  <bruno@clisp.org>
3590
3591         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3592         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3593         Set to 100000.
3594
3595 2011-10-03  Bruno Haible  <bruno@clisp.org>
3596
3597         acl: Fix specification.
3598         * lib/file-has-acl.c (file_has_acl): Fix specification.
3599
3600 2011-10-03  Bruno Haible  <bruno@clisp.org>
3601
3602         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3603         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3604         (compute_curr_prefix, shared_library_fullname,
3605         find_shared_library_fullname, get_shared_library_fullname, relocate):
3606         Use it together with PIC && INSTALLDIR.
3607         Reported by <jojelino@gmail.com>
3608         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3609
3610 2011-10-01  Jim Meyering  <meyering@redhat.com>
3611
3612         maint.mk: adjust a release-related rule not to require use of gzip
3613         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3614         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3615         projects that build only .tar.xz files.  Also fix an erroneous test.
3616
3617         test-linkat: don't leave behind a temporary file
3618         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3619         Otherwise, coreutils' "make distcheck" would fail with this:
3620           Only in /c/cu/tests/torture/coreutils/test/\
3621             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3622           make[2]: *** [my-distcheck] Error 1
3623
3624         float, math: add omitted file
3625         * lib/itold.c: Add file, required for yesterday's float change.
3626
3627 2011-10-01  Bruno Haible  <bruno@clisp.org>
3628
3629         isinf: Fix for OpenBSD/x86.
3630         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3631         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3632         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3633
3634 2011-10-01  Bruno Haible  <bruno@clisp.org>
3635
3636         isfinite: Fix syntax error in configure test.
3637         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3638
3639         isfinite: Fix typo.
3640         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3641         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3642
3643 2011-10-01  Bruno Haible  <bruno@clisp.org>
3644
3645         nonblocking tests: Fix test failure on Linux/IA-64.
3646         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3647         Set to 270000.
3648
3649 2011-10-01  Bruno Haible  <bruno@clisp.org>
3650
3651         mkfifoat tests: Fix a test failure on mingw.
3652         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3653         with error ENOSYS.
3654
3655 2011-09-30  Bruno Haible  <bruno@clisp.org>
3656
3657         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3658         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3659         'long double'. Set REPLACE_ITOLD.
3660         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3661         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3662         * lib/itold.c: New file.
3663         * modules/float (Files): Add lib/itold.c.
3664         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3665         (Makefile.am): Substitute REPLACE_ITOLD.
3666         * modules/math (Depends-on): Add float.
3667         (Makefile.am): Substitute REPLACE_ITOLD.
3668         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3669         * doc/posix-headers/math.texi: Likewise.
3670         * doc/posix-functions/logl.texi: Likewise.
3671
3672 2011-09-30  Bruno Haible  <bruno@clisp.org>
3673
3674         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3675         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3676         Set to 140000.
3677
3678 2011-09-30  Bruno Haible  <bruno@clisp.org>
3679
3680         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3681         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3682         invocation, say "right after AC_PROG_CC_STDC", not "right after
3683         AC_PROG_CC".
3684         Reported by Gary V. Vaughan <gary@gnu.org>.
3685
3686 2011-09-30  Bruno Haible  <bruno@clisp.org>
3687
3688         Centralize C99 requirement.
3689         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3690         * modules/stdarg (configure.ac-early): Invoke it instead of
3691         AC_PROG_CC_STDC.
3692         Reported by Gary V. Vaughan and Paul Eggert.
3693
3694 2011-09-29  Bruno Haible  <bruno@clisp.org>
3695
3696         float: Fix LDBL_MAX value on Linux/PowerPC.
3697         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3698         on Linux/PowerPC.
3699         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3700         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3701         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3702         platform.
3703         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3704
3705 2011-09-29  Bruno Haible  <bruno@clisp.org>
3706
3707         doc: Improve doc about gl_EARLY.
3708         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3709         AC_PROG_CC_STDC invocation.
3710         Reported by Gary V. Vaughan <gary@gnu.org>.
3711
3712 2011-09-28  Bruno Haible  <bruno@clisp.org>
3713
3714         fgetc, fputc, fread, fwrite tests: Fix link error.
3715         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3716         on non-MSVC platforms.
3717         * tests/test-fputc.c (main): Likewise.
3718         * tests/test-fread.c (main): Likewise.
3719         * tests/test-fwrite.c (main): Likewise.
3720         Reported by Jim Meyering.
3721
3722 2011-09-27  Bruno Haible  <bruno@clisp.org>
3723
3724         fputc, fwrite tests: Avoid test failure on MSVC.
3725         * tests/test-fgetc.c: Include msvc-inval.h.
3726         (main): Invoke gl_msvc_inval_ensure_handler.
3727         * tests/test-fputc.c: Include msvc-inval.h.
3728         (main): Invoke gl_msvc_inval_ensure_handler.
3729         * tests/test-fread.c: Include msvc-inval.h.
3730         (main): Invoke gl_msvc_inval_ensure_handler.
3731         * tests/test-fwrite.c: Include msvc-inval.h.
3732         (main): Invoke gl_msvc_inval_ensure_handler.
3733         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3734         * modules/fputc-tests (Depends-on): Likewise.
3735         * modules/fread-tests (Depends-on): Likewise.
3736         * modules/fwrite-tests (Depends-on): Likewise.
3737
3738 2011-09-27  Bruno Haible  <bruno@clisp.org>
3739
3740         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3741         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3742         (raise): Remove older, duplicated declaration.
3743         (_gl_raise_SIGPIPE): New declaration.
3744         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3745         (rpl_raise): Remove function.
3746         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3747         a gnulib-defined SIGPIPE here.
3748         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3749         'sigprocmask' has detected missing signal-blocking and the module
3750         'sigpipe' is enabled.
3751         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3752
3753 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3754
3755         base64-tests: avoid memory leak
3756         * tests/test-base64.c (main): Plug memory leak.
3757
3758         base32: new module
3759         * modules/base32: New module.
3760         * lib/base32.c: New file.
3761         * lib/base32.h: Likewise.
3762         * m4/base32.m4: Likewise.
3763         * modules/base32-tests: New test.
3764         * tests/test-base32.c: Likewise.
3765         * MODULES.html.sh (Misc): Mention it.
3766
3767 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3768
3769         gnulib: use more-standard license notice wording
3770         * gnulib-tool (func_emit_copyright_notice): When emitting a
3771         license notice into a file, use the standard wording as suggested
3772         by the current information for GNU maintainers, except say "file"
3773         rather than "program".  The new wording gives a license version
3774         number, which addresses an issue raised by Glenn Morris in
3775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3776         * m4/onceonly.m4: Use that same wording here, too.
3777
3778         dup2: minor simplification
3779         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3780         as lib/dup2.c no longer uses 'inline'.
3781
3782 2011-09-25  Bruno Haible  <bruno@clisp.org>
3783
3784         strings: Fix compilation error on MSVC.
3785         * lib/strings.in.h: Include <stddef.h> for size_t.
3786
3787 2011-09-25  Bruno Haible  <bruno@clisp.org>
3788
3789         fflush et al.: Document limitation on MSVC.
3790         * doc/posix-functions/fflush.texi: Document possible crash in handling
3791         mode other than DEFAULT_HANDLING.
3792         * doc/posix-functions/fgetc.texi: Likewise.
3793         * doc/posix-functions/fputc.texi: Likewise.
3794         * doc/posix-functions/fread.texi: Likewise.
3795         * doc/posix-functions/fwrite.texi: Likewise.
3796
3797 2011-09-25  Bruno Haible  <bruno@clisp.org>
3798
3799         msvc-inval: Allow three invalid parameter handling modes.
3800         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3801         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3802         macros.
3803         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3804         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3805         SANE_LIBRARY_HANDLING as a no-op.
3806         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3807         <stdlib.h>.
3808         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3809
3810 2011-09-25  Bruno Haible  <bruno@clisp.org>
3811
3812         msvc-inval: Make handler multithread-safe.
3813         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3814         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3815         declarations.
3816         (gl_msvc_inval_current): New declaration.
3817         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3818         Operate on the structure returned by gl_msvc_inval_current().
3819         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3820         Remove varaiables.
3821         (tls_index, tls_initialized): New variables.
3822         (not_per_thread): New variable.
3823         (gl_msvc_inval_current): New function.
3824         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3825         returned by gl_msvc_inval_current().
3826
3827 2011-09-25  Bruno Haible  <bruno@clisp.org>
3828
3829         msvc-inval: Install handler globally.
3830         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3831         !_MSC_VER.
3832         (gl_msvc_invalid_parameter_handler): Remove declaration.
3833         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3834         declarations.
3835         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3836         Install the handler globally, don't uninstall it.
3837         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3838         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3839         currently valid, call RaiseException instead.
3840         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3841         for !_MSC_VER.
3842
3843 2011-09-25  Bruno Haible  <bruno@clisp.org>
3844
3845         strerror_r-posix: Fix for MSVC 9.
3846         * lib/strerror_r.c (local_snprintf): New function.
3847         (snprintf): Define to local_snprintf, not to _snprintf.
3848
3849 2011-09-25  Bruno Haible  <bruno@clisp.org>
3850
3851         ftruncate: Support for MSVC 9.
3852         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3853         (chsize_nothrow): New function.
3854         (chsize): Redefine as a macro.
3855         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3856         * modules/ftruncate (Depends-on): Add msvc-inval.
3857
3858 2011-09-25  Bruno Haible  <bruno@clisp.org>
3859
3860         New module 'fstat'.
3861         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3862         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3863         * lib/fchdir.c (rpl_fstat): Remove function.
3864         * m4/fstat.m4: New file.
3865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3867         declared.
3868         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3869         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3870         * modules/fstat: New file.
3871         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3872         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3873         is set.
3874         * doc/posix-functions/fstat.texi: Mention the new module and the
3875         problem on MSVC.
3876         * NEWS: Mention the change.
3877         * modules/acl (Depends-on): Add fstat.
3878         * modules/chdir-safer (Depends-on): Likewise.
3879         * modules/chown (Depends-on): Likewise.
3880         * modules/copy-file (Depends-on): Likewise.
3881         * modules/fchdir (Depends-on): Likewise.
3882         * modules/fdopendir (Depends-on): Likewise.
3883         * modules/fopen (Depends-on): Likewise.
3884         * modules/fts (Depends-on): Likewise.
3885         * modules/getcwd (Depends-on): Likewise.
3886         * modules/isapipe (Depends-on): Likewise.
3887         * modules/linkat (Depends-on): Likewise.
3888         * modules/lseek (Depends-on): Likewise.
3889         * modules/mkdir-p (Depends-on): Likewise.
3890         * modules/open (Depends-on): Likewise.
3891         * modules/openat (Depends-on): Likewise.
3892         * modules/read-file (Depends-on): Likewise.
3893         * modules/renameat (Depends-on): Likewise.
3894         * modules/utimens (Depends-on): Likewise.
3895
3896 2011-09-25  Bruno Haible  <bruno@clisp.org>
3897
3898         linkat: Fix compilation on MSVC 9.
3899         * lib/linkat.c: Don't include <stdint.h>.
3900
3901 2011-09-25  Bruno Haible  <bruno@clisp.org>
3902
3903         fclose: Support for MSVC 9.
3904         * lib/fclose.c: Include msvc-inval.h.
3905         (fclose_nothrow): New function.
3906         (rpl_fclose): Use it.
3907         * modules/fclose (Depends-on): Add msvc-inval.
3908         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3909
3910 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         dup2: minor simplifications
3913         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3914         that it's a performance win.
3915         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3916         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3917
3918 2011-09-24  Jim Meyering  <meyering@redhat.com>
3919
3920         test-futimens: avoid a warning from gcc -Wshadow
3921         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3922         to avoid a shadowing warning.
3923
3924 2011-09-24  Bruno Haible  <bruno@clisp.org>
3925
3926         fdopen: Support for MSVC 9.
3927         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3928         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3929         * lib/fdopen.c: Include msvc-inval.h.
3930         (fdopen_nothrow): New function.
3931         (rpl_fdopen): Use it.
3932         * modules/fdopen (Depends-on): Add msvc-inval.
3933         * modules/fclose-tests (Depends-on): Add fdopen.
3934         * modules/fflush-tests (Depends-on): Likewise.
3935         * modules/fgetc-tests (Depends-on): Likewise.
3936         * modules/fputc-tests (Depends-on): Likewise.
3937         * modules/fread-tests (Depends-on): Likewise.
3938         * modules/freopen-tests (Depends-on): Likewise.
3939         * modules/fseeko-tests (Depends-on): Likewise.
3940         * modules/ftello-tests (Depends-on): Likewise.
3941         * modules/fwrite-tests  (Depends-on): Likewise.
3942         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3943
3944 2011-09-24  Bruno Haible  <bruno@clisp.org>
3945
3946         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3947         * modules/fgetc-tests (Depends-on): Add unistd.
3948         * modules/fputc-tests (Depends-on): Likewise.
3949         * modules/fread-tests (Depends-on): Likewise.
3950         * modules/fwrite-tests (Depends-on): Likewise.
3951
3952 2011-09-24  Bruno Haible  <bruno@clisp.org>
3953
3954         dup: Simplify autoconf test.
3955         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3956         on gl_MSVC_INVAL's result.
3957
3958 2011-09-24  Bruno Haible  <bruno@clisp.org>
3959
3960         Tests for function fwrite().
3961         * modules/fwrite-tests: New file.
3962         * tests/test-fwrite.c: New file.
3963         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3964
3965         Tests for function fread().
3966         * modules/fread-tests: New file.
3967         * tests/test-fread.c: New file.
3968         * modules/stdio-tests (Depends-on): Add fread-tests.
3969
3970         Activate fputc tests.
3971         * modules/stdio-tests (Depends-on): Add fputc-tests.
3972
3973         Enhance fgetc, fputc tests.
3974         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3975         * tests/test-fputc.c (main): Likewise.
3976
3977 2011-09-24  Bruno Haible  <bruno@clisp.org>
3978
3979         write: Support for MSVC 9.
3980         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3981         is not 1.
3982         * lib/write.c (write_nothrow): New function.
3983         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3984         not 1. Use write_nothrow.
3985         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3986         invalid parameter handler.
3987         (gl_PREREQ_WRITE): New macro.
3988         * modules/write (Depends-on): Add msvc-inval.
3989         (configure.ac): Invoke gl_PREREQ_WRITE.
3990         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3991
3992 2011-09-24  Bruno Haible  <bruno@clisp.org>
3993
3994         read: Fix last commit.
3995         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3996
3997 2011-09-24  Bruno Haible  <bruno@clisp.org>
3998
3999         dup2: Fix last commit.
4000         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4001         (rpl_dup2): Disable fcntl workaround on native Windows.
4002
4003         sigprocmask: Make code safer.
4004         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4005         section that changes macro definitions for this compilation unit.
4006
4007 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4008
4009         dup2: clarify by coalescing Windows-specific material
4010         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4011         "msvc-nothrow.h"' to the Windows-specific section, so that the
4012         Emacs source need not contain these include files.
4013         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4014         Windows-specific fixes into this function rather than just the
4015         nothrow fix, as this shortens and clarifies the code.  Always
4016         define as a function, as that's a bit cleaner than having it be
4017         sometimes a function and sometimes a macro.
4018         (rpl_dup2): Move the Windows-specific stuff out of here and into
4019         ms_windows_dup2.  Don't protect the Haiku-related fix with
4020         "#if !defined __linux__", as the same code also works around
4021         a Linux kernel bug, and it doesn't add any system calls on any
4022         platform.  Add comment about FreeBSD 6.1.
4023
4024         sigprocmask: move #include directive
4025         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4026         Windows-specific section, so that the Emacs source need not
4027         contain msvc-inval.h.
4028
4029 2011-09-23  Bruno Haible  <bruno@clisp.org>
4030
4031         read: Support for MSVC 9.
4032         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4033         is not 1.
4034         * lib/read.c (read_nothrow): New function.
4035         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4036         read_nothrow.
4037         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4038         invalid parameter handler.
4039         (gl_PREREQ_READ): New macro.
4040         * modules/read (Depends-on): Add msvc-inval.
4041         (configure.ac): Invoke gl_PREREQ_READ.
4042         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4043
4044 2011-09-23  Bruno Haible  <bruno@clisp.org>
4045
4046         close: Support for MSVC 9.
4047         * lib/close.c: Include <errno.h>, msvc-inval.h.
4048         (close_nothrow): New function.
4049         (rpl_close): Use it.
4050         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4051         invalid parameter handler.
4052         * modules/close (Depends-on): Add msvc-inval.
4053         * modules/dup2-tests (Depends-on): Add close.
4054         * modules/dup3-tests (Depends-on): Likewise.
4055         * modules/fcntl-tests (Depends-on): Likewise.
4056         * modules/spawn-pipe-tests (Depends-on): Likewise.
4057         * modules/unistd-safer-tests (Depends-on): Likewise.
4058         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4059
4060 2011-09-23  Bruno Haible  <bruno@clisp.org>
4061
4062         New module 'dup'.
4063         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4064         Allow replacement.
4065         * lib/dup.c: New file.
4066         * lib/fchdir.c (rpl_dup): Remove function.
4067         * m4/dup.m4: New file.
4068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4069         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4070         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4071         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4072         * modules/dup: New file.
4073         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4074         'dup' module is in use.
4075         * modules/fdopendir (Depends-on): Add dup.
4076         * modules/fdutimensat-tests (Depends-on): Likewise.
4077         * modules/fts (Depends-on): Likewise.
4078         * modules/futimens-tests (Depends-on): Likewise.
4079         * modules/posix_spawnp-tests (Depends-on): Likewise.
4080         * modules/unistd-safer-tests (Depends-on): Likewise.
4081         * modules/utimens-tests (Depends-on): Likewise.
4082         * doc/posix-functions/dup.texi: Mention the new module and the problem
4083         on MSVC.
4084
4085 2011-09-23  Bruno Haible  <bruno@clisp.org>
4086
4087         getdtablesize: Support for MSVC 9.
4088         * lib/getdtablesize.c: Include msvc-inval.h.
4089         (_setmaxstdio_nothrow): New function.
4090         (_setmaxstdio): Redefine it.
4091         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4092         * modules/getdtablesize (Depends-on): Add msvc-inval.
4093         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4094
4095 2011-09-23  Bruno Haible  <bruno@clisp.org>
4096
4097         signal-h: Rename from signal.
4098         * modules/signal-h: Renamed from modules/signal.
4099         * modules/pthread_sigmask (Depends-on): Update.
4100         * modules/raise (Depends-on): Likewise.
4101         * modules/sigaction (Depends-on): Likewise.
4102         * modules/sigpipe (Depends-on): Likewise.
4103         * modules/sigprocmask (Depends-on): Likewise.
4104         * modules/sys_select (Depends-on): Likewise.
4105         * modules/signal-h-tests: Renamed from modules/signal-tests.
4106         (Files, Depends-on, Makefile.am): Update.
4107         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4108         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4109         (Files, Makefile.am): Update.
4110         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4111         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4112         * modules/signal: New placeholder file.
4113         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4114         * doc/posix-headers/signal.texi: Update.
4115         * NEWS: Mention the change.
4116
4117 2011-09-23  Bruno Haible  <bruno@clisp.org>
4118
4119         sigprocmask: Avoid crashes through signal() on MSVC 9.
4120         * lib/sigprocmask.c: Include msvc-inval.h.
4121         (signal_nothrow): New function.
4122         (signal): Redefine it.
4123         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4124         * modules/sigprocmask (Depends-on): Add msvc-inval.
4125         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4126
4127 2011-09-23  Bruno Haible  <bruno@clisp.org>
4128
4129         Tests for module 'raise'.
4130         * modules/raise-tests: New file.
4131         * tests/test-raise.c: New file.
4132
4133         raise: Support for MSVC.
4134         * lib/signal.in.h (raise): New declaration.
4135         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4136         for native Windows platforms.
4137         * m4/raise.m4: New file.
4138         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4139         HAVE_RAISE, REPLACE_RAISE.
4140         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4141         REPLACE_RAISE.
4142         * modules/raise (Status, Notice): Remove fields.
4143         (Files): Add m4/raise.m4.
4144         (Depends-on): Add signal, msvc-inval.
4145         (configure.ac): Use the common idioms.
4146         (Maintainer): Add me.
4147         * tests/test-signal-c++.cc: Check the signature of raise.
4148         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4149
4150 2011-09-23  Bruno Haible  <bruno@clisp.org>
4151
4152         pipe2: Fix compilation on pre-C99 compilers.
4153         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4154
4155 2011-09-23  Bruno Haible  <bruno@clisp.org>
4156
4157         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4158         * lib/msvc-nothrow.h: New file.
4159         * lib/msvc-nothrow.c: New file.
4160         * m4/msvc-nothrow.m4: New file.
4161         * modules/msvc-nothrow: New file.
4162         * lib/dup2.c: Include msvc-nothrow.h.
4163         (rpl_dup2): No need to protect _get_osfhandle call here.
4164         * lib/accept4.c: Include msvc-nothrow.h.
4165         * lib/error.c: Likewise.
4166         * lib/fcntl.c: Likewise.
4167         * lib/lseek.c: Likewise.
4168         * lib/nonblocking.c: Likewise.
4169         * lib/poll.c: Likewise.
4170         * lib/read.c: Likewise.
4171         * lib/select.c: Likewise.
4172         * lib/sockets.h: Likewise.
4173         * lib/sockets.c: Likewise.
4174         * lib/stdio-read.c: Likewise.
4175         * lib/stdio-write.c: Likewise.
4176         * lib/write.c: Likewise.
4177         * lib/w32sock.h: Likewise.
4178         * lib/w32spawn.h: Likewise.
4179         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4180         * lib/fsync.c: Likewise.
4181         * lib/isapipe.c: Likewise.
4182         * modules/dup2 (Depends-on): Add msvc-nothrow.
4183         * modules/accept4 (Depends-on): Likewise.
4184         * modules/error (Depends-on): Likewise.
4185         * modules/fcntl (Depends-on): Likewise.
4186         * modules/lseek (Depends-on): Likewise.
4187         * modules/nonblocking (Depends-on): Likewise.
4188         * modules/poll (Depends-on): Likewise.
4189         * modules/read (Depends-on): Likewise.
4190         * modules/select (Depends-on): Likewise.
4191         * modules/sockets (Depends-on): Likewise.
4192         * modules/sigpipe (Depends-on): Likewise.
4193         * modules/write (Depends-on): Likewise.
4194         * modules/accept (Depends-on): Likewise.
4195         * modules/bind (Depends-on): Likewise.
4196         * modules/connect (Depends-on): Likewise.
4197         * modules/gethostname (Depends-on): Likewise.
4198         * modules/getpeername (Depends-on): Likewise.
4199         * modules/getsockname (Depends-on): Likewise.
4200         * modules/getsockopt (Depends-on): Likewise.
4201         * modules/ioctl (Depends-on): Likewise.
4202         * modules/listen (Depends-on): Likewise.
4203         * modules/recv (Depends-on): Likewise.
4204         * modules/recvfrom (Depends-on): Likewise.
4205         * modules/send (Depends-on): Likewise.
4206         * modules/sendto (Depends-on): Likewise.
4207         * modules/setsockopt (Depends-on): Likewise.
4208         * modules/shutdown (Depends-on): Likewise.
4209         * modules/socket (Depends-on): Likewise.
4210         * modules/execute (Depends-on): Likewise.
4211         * modules/spawn-pipe (Depends-on): Likewise.
4212         * modules/flock (Depends-on): Likewise.
4213         * modules/fsync (Depends-on): Likewise.
4214         * modules/isapipe (Depends-on): Likewise.
4215         * tests/test-cloexec.c: Include msvc-nothrow.h.
4216         * tests/test-dup-safer.c: Likewise.
4217         * tests/test-dup2.c: Likewise.
4218         * tests/test-dup3.c: Likewise.
4219         * tests/test-fcntl.c: Likewise.
4220         * tests/test-pipe.c: Likewise.
4221         * tests/test-pipe2.c: Likewise.
4222         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4223         * modules/unistd-safer-tests (Depends-on): Likewise.
4224         * modules/dup2-tests (Depends-on): Likewise.
4225         * modules/dup3-tests (Depends-on): Likewise.
4226         * modules/fcntl-tests (Depends-on): Likewise.
4227         * modules/pipe-posix-tests (Depends-on): Likewise.
4228         * modules/pipe2-tests (Depends-on): Likewise.
4229
4230 2011-09-23  Bruno Haible  <bruno@clisp.org>
4231
4232         dup2: Make code more maintainable.
4233         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4234         (rpl_dup2): Use it.
4235         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4236         * modules/dup2 (configure.ac): Invoke it.
4237         Reported by Paul Eggert.
4238
4239 2011-09-23  Bruno Haible  <bruno@clisp.org>
4240
4241         msvc-inval: Fix compilation error.
4242         * lib/msvc-inval.h: Include <excpt.h>.
4243
4244 2011-09-23  Bruno Haible  <bruno@clisp.org>
4245
4246         mkdir: Tweak for MSVC 9.
4247         * lib/sys_stat.in.h: Update comments.
4248         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4249
4250         Tests for module 'chdir'.
4251         * modules/chdir-tests: New file.
4252         * tests/test-chdir.c: New file.
4253
4254         New module 'chdir'.
4255         * modules/chdir: New file.
4256         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4257         (chdir): New declaration.
4258         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4259         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4260         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4261         * tests/test-unistd-c++.cc: Check signature of chdir.
4262         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4263         * modules/chdir-long (Depends-on): Add chdir.
4264         * modules/fchdir (Depends-on): Likewise.
4265         * modules/rename (Depends-on): Likewise.
4266         * modules/savewd (Depends-on): Likewise.
4267
4268         rmdir: Support for mingw, MSVC 9.
4269         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4270         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4271
4272         getcwd: Tweak for MSVC 9.
4273         * lib/unistd.in.h: Update comments.
4274         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4275
4276 2011-09-22  Bruno Haible  <bruno@clisp.org>
4277
4278         strerror_r-posix: Avoid a link error on MSVC.
4279         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4280         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4281
4282 2011-09-22  Bruno Haible  <bruno@clisp.org>
4283
4284         select: Avoid link errors on MSVC.
4285         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4286         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4287         * modules/pselect (Link): Likewise.
4288         * NEWS: Mention the change.
4289         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4290         test-select-stdin against $(LIB_SELECT).
4291         * modules/pselect-tests (Makefile.am): Link test-pselect against
4292         $(LIB_SELECT).
4293
4294 2011-09-22  Bruno Haible  <bruno@clisp.org>
4295
4296         select: Avoid compilation error on MSVC.
4297         * lib/select.c: Don't include <stdbool.h>.
4298
4299 2011-09-21  Bruno Haible  <bruno@clisp.org>
4300
4301         Consolidate all uses of PATH_MAX in *.m4 files.
4302         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4303         macros.
4304         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4305         and gl_PATHMAX_SNIPPET.
4306         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4308         * modules/chdir-long (Files): Add m4/pathmax.m4.
4309         * modules/getcwd (Files): Likewise.
4310
4311 2011-09-21  Bruno Haible  <bruno@clisp.org>
4312
4313         ftruncate: Un-deprecate, concentrate on Win32 support.
4314         * modules/ftruncate (Status, Notice): Remove sections.
4315         (Depends-on): Add largefile.
4316         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4317         non-mingw platforms.
4318         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4319         include <io.h>.
4320         * modules/perror-tests (Depends-on): Add ftruncate.
4321         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4322         'ftruncate' module.
4323
4324 2011-09-21  Bruno Haible  <bruno@clisp.org>
4325
4326         Add dependencies to new dirent related modules.
4327         * modules/opendir (Depends-on): Add closedir.
4328         * modules/getcwd (Depends-on): Add opendir, closedir.
4329         * modules/dirent-safer-tests (Depends-on): Likewise.
4330         * modules/fdopendir-tests (Depends-on): Likewise.
4331         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4332         * modules/renameat-tests (Depends-on): Likewise.
4333
4334 2011-09-21  Bruno Haible  <bruno@clisp.org>
4335
4336         opendir: Avoid compilation error on mingw.
4337         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4338         * modules/opendir (Depends-on): Add unistd.
4339
4340 2011-09-21  Bruno Haible  <bruno@clisp.org>
4341
4342         ftruncate tests: Avoid a test failure on mingw.
4343         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4344
4345 2011-09-21  Bruno Haible  <bruno@clisp.org>
4346
4347         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4348         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4349         native Windows.
4350
4351 2011-09-21  Bruno Haible  <bruno@clisp.org>
4352
4353         New module 'fdopen'.
4354         * lib/stdio.in.h (fdopen): New declaration.
4355         * lib/fdopen.c: New file.
4356         * m4/fdopen.m4: New file.
4357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4358         REPLACE_FDOPEN.
4359         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4360         REPLACE_FDOPEN.
4361         * modules/fdopen: New file.
4362         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4363         * tests/test-stdio-c++.cc: Check signature of fdopen.
4364         * doc/posix-functions/fdopen.texi: Mention the new module.
4365
4366 2011-09-21  Bruno Haible  <bruno@clisp.org>
4367
4368         unlockpt tests: Avoid test failure on NetBSD 5.1.
4369         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4370         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4371
4372 2011-09-21  Bruno Haible  <bruno@clisp.org>
4373
4374         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4375         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4376         * tests/test-getlogin_r.c (main): Likewise.
4377
4378 2011-09-20  Bruno Haible  <bruno@clisp.org>
4379
4380         time tests: Don't require pid_t.
4381         * doc/posix-headers/time.texi: Revert last change.
4382         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4383         * tests/test-time.c: Comment out the check for pid_t.
4384
4385 2011-09-20  Bruno Haible  <bruno@clisp.org>
4386
4387         fsync tests: Avoid a test failure on mingw.
4388         * tests/test-fsync.c (main): Allow a failure with EIO.
4389
4390 2011-09-20  Bruno Haible  <bruno@clisp.org>
4391
4392         euidaccess: Update comments.
4393         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4394
4395 2011-09-20  Bruno Haible  <bruno@clisp.org>
4396
4397         Ensure EBADF returns for socket functions on mingw.
4398         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4399         descriptor is invalid.
4400         * lib/bind.c (rpl_bind): Likewise.
4401         * lib/connect.c (rpl_connect): Likewise.
4402         * lib/getpeername.c (rpl_getpeername): Likewise.
4403         * lib/getsockname.c (rpl_getsockname): Likewise.
4404         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4405         * lib/listen.c (rpl_listen): Likewise.
4406         * lib/recv.c (rpl_recv): Likewise.
4407         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4408         * lib/send.c (rpl_send): Likewise.
4409         * lib/sendto.c (rpl_sendto): Likewise.
4410         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4411         * lib/shutdown.c (rpl_shutdown): Likewise.
4412
4413 2011-09-20  Bruno Haible  <bruno@clisp.org>
4414
4415         select tests: EBADF tests.
4416         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4417         test_bad_fd): New functions.
4418         (test_function): Invoke also test_bad_fd.
4419
4420 2011-09-20  Bruno Haible  <bruno@clisp.org>
4421
4422         Tests for module 'posix_spawn_file_actions_addopen.
4423         * modules/posix_spawn_file_actions_addopen-tests: New file.
4424         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4425
4426         Tests for module 'posix_spawn_file_actions_adddup2'.
4427         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4428         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4429
4430         Tests for module 'posix_spawn_file_actions_addclose'.
4431         * modules/posix_spawn_file_actions_addclose-tests: New file.
4432         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4433
4434 2011-09-20  Bruno Haible  <bruno@clisp.org>
4435
4436         Tests for module 'unlockpt'.
4437         * modules/unlockpt-tests: New file.
4438         * tests/test-unlockpt.c: New file.
4439         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4440
4441         Tests for module 'grantpt'.
4442         * modules/grantpt-tests: New file.
4443         * tests/test-grantpt.c: New file.
4444         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4445
4446 2011-09-20  Bruno Haible  <bruno@clisp.org>
4447
4448         freopen tests: EBADF tests.
4449         * tests/test-freopen.c: Include errno.h, unistd.h.
4450         (main): Add tests for EBADF, commented out for the moment.
4451
4452         fclose tests: EBADF tests.
4453         * tests/test-fclose.c (main): Add tests for EBADF.
4454
4455         fflush tests: EBADF tests.
4456         * tests/test-fflush.c: Include errno.h, macros.h.
4457         (main): Add tests for EBADF.
4458
4459         ftello tests: EBADF tests.
4460         * tests/test-ftello4.sh: New file.
4461         * tests/test-ftello4.c: New file.
4462         * modules/ftello-tests (Files): Add them.
4463         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4464
4465         fseeko tests: EBADF tests.
4466         * tests/test-fseeko4.sh: New file.
4467         * tests/test-fseeko4.c: New file.
4468         * modules/fseeko-tests (Files): Add them.
4469         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4470
4471         Tests for function fputc().
4472         * modules/fputc-tests: New file.
4473         * tests/test-fputc.c: New file.
4474         * modules/stdio-tests (Depends-on): Add fputc-tests.
4475
4476         Tests for function fgetc().
4477         * modules/fgetc-tests: New file.
4478         * tests/test-fgetc.c: New file.
4479         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4480
4481         Tests for function fdopen().
4482         * modules/fdopen-tests: New file.
4483         * tests/test-fdopen.c: New file.
4484         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4485
4486         Tests for module 'vdprintf'.
4487         * modules/vdprintf-tests: New file.
4488         * tests/test-vdprintf.c: New file.
4489
4490         Tests for module 'dprintf'.
4491         * modules/dprintf-tests: New file.
4492         * tests/test-dprintf.c: New file.
4493
4494 2011-09-20  Bruno Haible  <bruno@clisp.org>
4495
4496         Tests for module 'ioctl'.
4497         * modules/ioctl-tests: New file.
4498         * tests/test-ioctl.c: New file.
4499
4500 2011-09-20  Bruno Haible  <bruno@clisp.org>
4501
4502         fcntl tests: EBADF tests.
4503         * tests/test-fcntl.c (main): Add more tests for EBADF.
4504
4505 2011-09-20  Bruno Haible  <bruno@clisp.org>
4506
4507         utimensat tests: EBADF tests.
4508         * tests/test-utimensat.c (main): Add tests for EBADF.
4509
4510         renameat tests: EBADF tests.
4511         * tests/test-renameat.c (main): Add tests for EBADF.
4512
4513         mkfifoat tests: EBADF tests.
4514         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4515
4516         readlinkat tests: EBADF tests.
4517         * tests/test-readlinkat.c (main): Add tests for EBADF.
4518
4519         symlinkat tests: EBADF tests.
4520         * tests/test-symlinkat.c (main): Add tests for EBADF.
4521
4522         linkat tests: EBADF tests.
4523         * tests/test-linkat.c (main): Add tests for EBADF.
4524
4525         Tests for module 'faccessat'.
4526         * modules/faccessat-tests: New file.
4527         * tests/test-faccessat.c: New file.
4528
4529         fdopendir tests: EBADF tests.
4530         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4531
4532         openat tests: EBADF tests.
4533         * tests/test-fchownat.c (main): Add tests for EBADF.
4534         * tests/test-fstatat.c (main): Likewise.
4535         * tests/test-mkdirat.c (main): Likewise.
4536         * tests/test-openat.c (main): Likewise.
4537         * tests/test-unlinkat.c (main): Likewise.
4538         * tests/test-fchmodat.c: New file.
4539         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4540         (Makefile.am): Also run 'test-fchmodat'.
4541
4542 2011-09-20  Bruno Haible  <bruno@clisp.org>
4543
4544         utimens, futimens, fdutimensat tests: EBADF tests.
4545         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4546
4547         Tests for function fstat().
4548         * modules/fstat-tests: New file.
4549         * tests/test-fstat.c: New file.
4550         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4551
4552 2011-09-20  Bruno Haible  <bruno@clisp.org>
4553
4554         test-ttyname_r tests: EBADF tests.
4555         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4556
4557         Tests for module 'isatty'.
4558         * modules/isatty-tests: New file.
4559         * tests/test-isatty.c: New file.
4560
4561         Tests for module 'write'.
4562         * modules/write-tests: New file.
4563         * tests/test-write.c: New file.
4564
4565         Tests for module 'read'.
4566         * modules/read-tests: New file.
4567         * tests/test-read.c: New file.
4568
4569         pwrite tests: EBADF tests.
4570         * tests/test-pwrite.c (main): Add tests for EBADF.
4571
4572         pread tests: EBADF tests.
4573         * tests/test-pread.c (main): Add tests for EBADF.
4574
4575         lseek tests: EBADF tests.
4576         * tests/test-lseek.c (main): Add more tests for EBADF.
4577
4578         Tests for module 'ftruncate'.
4579         * modules/ftruncate-tests: New file.
4580         * tests/test-ftruncate.sh: New file.
4581         * tests/test-ftruncate.c: New file.
4582
4583         fsync tests: EBADF tests.
4584         * tests/test-fsync.c (main): Add more tests for EBADF.
4585
4586         fdatasync tests: EBADF tests.
4587         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4588
4589         Tests for module 'fchown'.
4590         * modules/fchown-tests: New file.
4591         * tests/test-fchown.c: New file.
4592
4593         Tests for module 'fchmod'.
4594         * modules/fchmod-tests: New file.
4595         * tests/test-fchmod.c: New file.
4596
4597         fchdir tests: EBADF tests.
4598         * tests/test-fchdir.c (main): Add more tests for EBADF.
4599
4600         dup2 tests: EBADF tests.
4601         * tests/test-dup2.c (main): Add more tests for EBADF.
4602
4603         Tests for module 'dup'.
4604         * modules/dup-tests: New file.
4605         * tests/test-dup.c: New file.
4606
4607         Tests for module 'close'.
4608         * modules/close-tests: New file.
4609         * tests/test-close.c: New file.
4610
4611 2011-09-20  Bruno Haible  <bruno@clisp.org>
4612
4613         Tests for module 'shutdown'.
4614         * modules/shutdown-tests: New file.
4615         * tests/test-shutdown.c: New file.
4616
4617         Tests for module 'setsockopt'.
4618         * modules/setsockopt-tests: New file.
4619         * tests/test-setsockopt.c: New file.
4620
4621         Tests for module 'sendto'.
4622         * modules/sendto-tests: New file.
4623         * tests/test-sendto.c: New file.
4624
4625         Tests for module 'send'.
4626         * modules/send-tests: New file.
4627         * tests/test-send.c: New file.
4628
4629         Tests for module 'recvfrom'.
4630         * modules/recvfrom-tests: New file.
4631         * tests/test-recvfrom.c: New file.
4632
4633         Tests for module 'recv'.
4634         * modules/recv-tests: New file.
4635         * tests/test-recv.c: New file.
4636
4637         Tests for module 'listen'.
4638         * modules/listen-tests: New file.
4639         * tests/test-listen.c: New file.
4640
4641         Tests for module 'getsockopt'.
4642         * modules/getsockopt-tests: New file.
4643         * tests/test-getsockopt.c: New file.
4644
4645         Tests for module 'getsockname'.
4646         * modules/getsockname-tests: New file.
4647         * tests/test-getsockname.c: New file.
4648
4649         Tests for module 'getpeername'.
4650         * modules/getpeername-tests: New file.
4651         * tests/test-getpeername.c: New file.
4652
4653         Tests for module 'connect'.
4654         * modules/connect-tests: New file.
4655         * tests/test-connect.c: New file.
4656
4657         Tests for module 'bind'.
4658         * modules/bind-tests: New file.
4659         * tests/test-bind.c: New file.
4660
4661         accept4 tests: Fix for native Windows.
4662         * tests/test-accept4.c: Include sockets.h.
4663         (main): Invoke gl_sockets_startup.
4664         * modules/accept4-tests (Depends-on): Add sockets.
4665
4666         accept tests: Fix for native Windows.
4667         * tests/test-accept.c: Include sockets.h.
4668         (main): Invoke gl_sockets_startup.
4669         * modules/accept-tests (Depends-on): Add sockets.
4670
4671 2011-09-19  Bruno Haible  <bruno@clisp.org>
4672
4673         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4674         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4675         do...while(0).
4676         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4677         Suggested by Paul Eggert.
4678
4679 2011-09-19  Bruno Haible  <bruno@clisp.org>
4680
4681         sched: Ensure pid_t is defined.
4682         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4683         not define pid_t.
4684         * lib/sched.in.h: Include <sys/types.h>.
4685         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4687
4688 2011-09-19  Bruno Haible  <bruno@clisp.org>
4689
4690         msvc-inval: Ensure the entire expansion is a single statement.
4691         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4692         of braces.
4693
4694 2011-09-19  Jim Meyering  <meyering@redhat.com>
4695
4696         tests: use printf, not echo in init.sh's warn_ function
4697         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4698         misbehave when given strings containing a backslash or starting
4699         with e.g., -n.  James Youngman suggested setting IFS.
4700
4701 2011-09-19  Eric Blake  <eblake@redhat.com>
4702
4703         futimens: enhance test
4704         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4705         closed non-negative fd.
4706
4707         date: accept 'hence' as opposite of 'ago'
4708         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4709         * tests/test-parse-datetime.c (main): Enhance test.
4710         Suggested by Jesse Wilson.
4711
4712 2011-09-19  Jim Meyering  <meyering@redhat.com>
4713
4714         getcwd: don't fail in a deep directory on a system without openat
4715         Before this change, getcwd would fail when called from a directory
4716         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4717         the non-openat implementation used "..", "../..", "../../..", etc.
4718         to access ancestor directories.  With too many, that string would
4719         be longer than PATH_MAX.
4720         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4721         using gnulib's openat replacement.
4722         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4723         we're using the replacement function.
4724
4725 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4726
4727         maint.mk: avoid warnings from perl about missing files
4728         * top/maint.mk (def_sym_regex): Ignore files listed in
4729         $(gl_other_headers_) that do not exist, say because a project
4730         does not use a corresponding module.
4731
4732 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4733
4734         stat: use pathmax.h only if needed
4735         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4736         This is better for Emacs, which does not have a mingw port and
4737         therefore can avoid the pathmax module.
4738
4739         utimens: remove dependency on dup2
4740         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4741         to work around the Linux kernel bug.
4742         * modules/utimens (Depends-on): Remove dup2.
4743
4744 2011-09-18  Bruno Haible  <bruno@clisp.org>
4745
4746         inet_ntop, inet_pton: Look for it also in libresolv.
4747         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4748         libnsl, search for it in libresolv.
4749         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4750         Needed on Solaris 7.
4751
4752 2011-09-18  Bruno Haible  <bruno@clisp.org>
4753
4754         accept, accept4 tests: Avoid link error on Solaris.
4755         * modules/accept-tests (Makefile.am): Link test-accept against
4756         $(LIBSOCKET).
4757         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4758         $(LIBSOCKET).
4759
4760         accept4: Avoid link error on Solaris.
4761         * modules/accept4 (Link): New section.
4762
4763         socket functions: Avoid link errors on Solaris.
4764         * modules/accept (Depends-on): Add socketlib.
4765         (Link): New section.
4766         * modules/bind (Depends-on): Add socketlib.
4767         (Link): New section.
4768         * modules/connect (Depends-on): Add socketlib.
4769         (Link): New section.
4770         * modules/getpeername (Depends-on): Add socketlib.
4771         (Link): New section.
4772         * modules/getsockname (Depends-on): Add socketlib.
4773         (Link): New section.
4774         * modules/getsockopt (Depends-on): Add socketlib.
4775         (Link): New section.
4776         * modules/listen (Depends-on): Add socketlib.
4777         (Link): New section.
4778         * modules/recv (Depends-on): Add socketlib.
4779         (Link): New section.
4780         * modules/recvfrom (Depends-on): Add socketlib.
4781         (Link): New section.
4782         * modules/send (Depends-on): Add socketlib.
4783         (Link): New section.
4784         * modules/sendto (Depends-on): Add socketlib.
4785         (Link): New section.
4786         * modules/setsockopt (Depends-on): Add socketlib.
4787         (Link): New section.
4788         * modules/shutdown (Depends-on): Add socketlib.
4789         (Link): New section.
4790         * modules/socket (Depends-on): Add socketlib.
4791         (Link): New section.
4792
4793 2011-09-18  Bruno Haible  <bruno@clisp.org>
4794
4795         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4796         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4797         than 5 seconds.
4798         * modules/ptsname-tests (configure.ac): Test for alarm.
4799
4800 2011-09-18  Bruno Haible  <bruno@clisp.org>
4801
4802         posix_spawn_file_actions_add*: Fix module dependencies.
4803         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4804         posix_spawn_file_actions_init.
4805         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4806         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4807
4808 2011-09-18  Bruno Haible  <bruno@clisp.org>
4809
4810         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4811         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4812         * tests/test-renameat.c (main): Likewise.
4813
4814 2011-09-18  Bruno Haible  <bruno@clisp.org>
4815
4816         Tests for module 'accept4'.
4817         * modules/accept4-tests: New file.
4818         * tests/test-accept4.c: New file.
4819
4820 2011-09-18  Bruno Haible  <bruno@clisp.org>
4821
4822         Tests for module 'accept'.
4823         * modules/accept-tests: New file.
4824         * tests/test-accept.c: New file.
4825
4826 2011-09-18  Bruno Haible  <bruno@clisp.org>
4827
4828         dup2: Support for MSVC.
4829         * lib/dup2.c: Include msvc-inval.h.
4830         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4831         _get_osfhandle calls.
4832         * modules/dup2 (Depends-on): Add msvc-inval.
4833         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4834
4835         New module 'msvc-inval'.
4836         * lib/msvc-inval.h: New file.
4837         * lib/msvc-inval.c: New file.
4838         * m4/msvc-inval.m4: New file.
4839         * modules/msvc-inval: New file.
4840
4841 2011-09-17  Bruno Haible  <bruno@clisp.org>
4842
4843         Tests for module 'pclose'.
4844         * modules/pclose-tests: New file.
4845
4846         New module 'pclose'.
4847         * lib/stdio.in.h (pclose): New declaration.
4848         * lib/pclose.c: New file.
4849         * m4/pclose.m4: New file.
4850         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4851         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4852         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4853         * modules/pclose: New file.
4854         * modules/popen-tests (Depends-on): Add pclose.
4855         * modules/popen-safer-tests (Depends-on): Likewise.
4856         * doc/posix-functions/pclose.texi: Mention the new module.
4857
4858 2011-09-17  Bruno Haible  <bruno@clisp.org>
4859
4860         popen: Support for MSVC.
4861         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4862         * lib/popen.c (popen): Provide alternate definition for native Windows.
4863         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4865         * modules/popen (Depends-on, configure.ac): Update condition.
4866         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4867         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4868         fixed.
4869
4870 2011-09-17  Bruno Haible  <bruno@clisp.org>
4871
4872         isnanl, isnand, isnanf: Work around MSVC bug.
4873         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4874
4875 2011-09-17  Bruno Haible  <bruno@clisp.org>
4876
4877         sys_socket tests: Fix recent mistake.
4878         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4879
4880 2011-09-17  Bruno Haible  <bruno@clisp.org>
4881
4882         putenv: Support for MSVC.
4883         * modules/putenv (Depends-on): Add environ.
4884         * lib/putenv.c (environ): Disable declaration.
4885         * lib/unistd.in.h: Update comment.
4886
4887 2011-09-17  Bruno Haible  <bruno@clisp.org>
4888
4889         math: Avoid macro redefinition warnings on MSVC.
4890         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4891         Undefine before redefining.
4892
4893 2011-09-17  Bruno Haible  <bruno@clisp.org>
4894
4895         doc: Mention functions which are declared as macros.
4896         * doc/posix-functions/*[fl].texi: Mention that some functions are
4897         defined as macros with arguments only.
4898
4899 2011-09-17  Bruno Haible  <bruno@clisp.org>
4900
4901         Add dependencies to new dirent related modules.
4902         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4903         * modules/fts (Depends-on): Likewise.
4904         * modules/glob (Depends-on): Likewise.
4905         * modules/savedir (Depends-on): Likewise.
4906         * modules/scandir (Depends-on): Likewise.
4907         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4908         * modules/fdopendir (Depends-on): Add opendir.
4909
4910 2011-09-17  Bruno Haible  <bruno@clisp.org>
4911
4912         inet_pton: Support for MSVC on Windows Vista or newer.
4913         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4914         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4915         HAVE_DECL_INET_PTON is defined.
4916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4917         On platforms with <winsock2.h>, test whether inet_pton is declared in
4918         <ws2tcpip.h>. If so, arrange to replace it.
4919         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4920         REPLACE_INET_PTON.
4921         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4922         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4923         (Depends-on, configure.ac): Update condition.
4924         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4925
4926 2011-09-17  Bruno Haible  <bruno@clisp.org>
4927
4928         inet_ntop: Support for MSVC on Windows Vista or newer.
4929         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4930         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4931         HAVE_DECL_INET_NTOP is defined.
4932         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4933         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4934         <ws2tcpip.h>. If so, arrange to replace it.
4935         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4936         REPLACE_INET_NTOP.
4937         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4938         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4939         (Depends-on, configure.ac): Update condition.
4940         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4941
4942 2011-09-16  Eric Blake  <eblake@redhat.com>
4943
4944         test-fsync: yet another enhancement
4945         * tests/test-fsync.c (main): Also test behavior on read-only text
4946         file.
4947
4948 2011-09-16  Bruno Haible  <bruno@clisp.org>
4949
4950         Enhance fsync, fdatasync tests.
4951         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4952         * tests/test-fdatasync.c (main): Likewise.
4953
4954 2011-09-16  Bruno Haible  <bruno@clisp.org>
4955
4956         Support for MSVC compiler: Ensure mode_t gets defined.
4957         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4958         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4960         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4961         * tests/test-fcntl-h.c: Check that mode_t is defined.
4962         * tests/test-sys_stat.c: Likewise.
4963         * tests/test-sys_types.c: Likewise.
4964         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4965         * doc/posix-headers/sys_stat.texi: Likewise.
4966         * doc/posix-headers/sys_types.texi: Likewise.
4967
4968 2011-09-16  Bruno Haible  <bruno@clisp.org>
4969
4970         sys_stat: Support for MSVC.
4971         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4972         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4973         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4974         MSVC.
4975
4976 2011-09-16  Bruno Haible  <bruno@clisp.org>
4977
4978         Support for MSVC compiler: Ensure off_t gets defined.
4979         * lib/unistd.in.h: Include <sys/types.h>.
4980         * tests/test-fcntl-h.c: Check that off_t is defined.
4981         * tests/test-sys_stat.c: Likewise.
4982         * tests/test-sys_types.c: Likewise.
4983
4984 2011-09-16  Eric Blake  <eblake@redhat.com>
4985
4986         fdatasync: port to Solaris
4987         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4988         * modules/fdatasync (Link): Document it.
4989         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4990
4991         fdatasync: port to MacOS X 10.7
4992         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4993         declared.
4994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4995         * modules/unistd (Makefile.am): Substitute it.
4996         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4997         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4998
4999         fdatasync: minor improvements
5000         * modules/fdatasync (Depends-on): Add condition for fsync.
5001         * lib/fdatasync.c (fdatasync): Add comment.
5002         * tests/test-unistd-c++.cc: Test fdatasync.
5003
5004         unistd: update refs to newer POSIX
5005         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5006         Suggested by Bruno Haible.
5007
5008         fdatasync: new module
5009         * modules/fsync (Description): Document difference to fdatasync.
5010         * modules/fdatasync: New module.
5011         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5012         * lib/fdatasync.c (fdatasync): Likewise.
5013         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5014         defaults.
5015         * modules/unistd (Makefile.am): Set witnesses.
5016         * lib/unistd.in.h (fdatasync): Declare.
5017         * MODULES.html.sh: Document it.
5018         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5019         * modules/fdatasync-tests: New test.
5020         * tests/test-fdatasync.c: Likewise.
5021
5022 2011-09-16  Eric Blake  <eblake@redhat.com>
5023
5024         test-fsync: enhance tests
5025         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5026         * tests/test-fsync.c (main): Enhance test.
5027
5028 2011-09-15  Bruno Haible  <bruno@clisp.org>
5029
5030         Support for MSVC compiler: Ensure ssize_t gets defined.
5031         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5032         * doc/posix-headers/stdio.texi: Likewise.
5033         * modules/stdio (Depends-on): Add ssize_t.
5034         * modules/sys_socket (Depends-on): Likewise.
5035         * modules/sys_types (Depends-on): Likewise.
5036         * modules/sys_uio (Depends-on): Likewise.
5037         * modules/unistd (Depends-on): Likewise.
5038         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5039         * tests/test-sys_types.c: Check that ssize_t is defined.
5040
5041 2011-09-14  Bruno Haible  <bruno@clisp.org>
5042
5043         Avoid using #, the m4 comment starter character, near brackets.
5044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5045         delimiter character in sed expressions.
5046         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5047         Suggested by Eric Blake.
5048
5049         Properly quote AC_CHECK_DECLS' 4th argument.
5050         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5051         argument.
5052         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5053         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5054         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5055         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5056         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5057         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5059         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5060         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5061         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5062         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5063         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5064         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5065         * m4/isinf.m4 (gl_ISINF): Likewise.
5066         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5067         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5068         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5069         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5072         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5073         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5074         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5075         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5076         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5077         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5079         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5081         Reported by Eric Blake.
5082
5083         Properly quote AC_CHECK_DECL's 4th argument.
5084         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5085         argument.
5086         * m4/argp.m4 (gl_ARGP): Likewise.
5087         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5088         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5089         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5090         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5091         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5092         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5094         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5095         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5096         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5097         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5098         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5099         Reported by Eric Blake.
5100
5101 2011-09-14  Eric Blake  <eblake@redhat.com>
5102
5103         opendir: avoid compile warning
5104         * lib/opendir.c (includes): Always include errno.h.
5105         Reported by Tatsuro MATSUOKA.
5106
5107 2011-09-14  Jim Meyering  <meyering@redhat.com>
5108
5109         maint.mk: sc_tight_scope: propagate failure from sub-make
5110         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5111         Reported by Martin von Gagern.
5112
5113 2011-09-13  Bruno Haible  <bruno@clisp.org>
5114
5115         tempname: Support for MSVC.
5116         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5117         MSVC.
5118         * modules/tempname (Depends-on): Add fcntl-h.
5119
5120 2011-09-13  Bruno Haible  <bruno@clisp.org>
5121
5122         sys_time: Support for MSVC.
5123         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5124         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5125         include <winsock2.h>.
5126         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5127         function declarations that collide with POSIX.
5128         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5129         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5130
5131 2011-09-13  Bruno Haible  <bruno@clisp.org>
5132
5133         stat: Support for MSVC.
5134         * lib/stat.c: Include pathmax.h.
5135         * modules/stat (Depends-on): Add pathmax.
5136
5137         pathmax: Support for native Windows.
5138         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5139
5140 2011-09-12  Bruno Haible  <bruno@clisp.org>
5141
5142         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5143         * lib/dirent.in.h (struct dirent): New type.
5144         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5145         DT_WHT): New macros.
5146         (DIR): New type.
5147         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5148         (readdir, rewinddir): New declarations.
5149         * lib/dirent-private.h: New file.
5150         * lib/opendir.c: New file.
5151         * lib/readdir.c: New file.
5152         * lib/rewinddir.c: New file.
5153         * lib/closedir.c: New file.
5154         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5155         * m4/opendir.m4: New file.
5156         * m4/readdir.m4: New file.
5157         * m4/rewinddir.m4: New file.
5158         * m4/closedir.m4: New file.
5159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5160         REPLACE_CLOSEDIR here.
5161         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5162         readdir, rewinddir are declared.
5163         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5164         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5165         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5166         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5167         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5168         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5169         * modules/opendir: New file.
5170         * modules/readdir: New file.
5171         * modules/rewinddir: New file.
5172         * modules/closedir: New file.
5173         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5174         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5175         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5176         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5177         * NEWS: Mention the 'fchdir' change.
5178
5179 2011-09-11  Bruno Haible  <bruno@clisp.org>
5180
5181         asm-underscore.m4: Support for MSVC.
5182         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5183         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5184
5185 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5186
5187         Doc about crypt functions.
5188         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5189         needing for _GNU_SOURCE to get crypt.
5190         * doc/posix-functions/encrypt.texi: Likewise.
5191         * doc/posix-functions/setkey.texi: Likewise.
5192
5193 2011-09-11  Bruno Haible  <bruno@clisp.org>
5194
5195         doc: Update regarding MSVC 9.
5196         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5197         tested".
5198         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5199         * doc/posix-headers/*.texi: Likewise.
5200         * doc/pastposix-functions/*.texi: Likewise.
5201         * doc/glibc-functions/*.texi: Likewise.
5202         * doc/glibc-headers/*.texi: Likewise.
5203
5204 2011-09-11  Bruno Haible  <bruno@clisp.org>
5205
5206         unistd et al.: Don't assume <unistd.h> exists.
5207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5208         does not exist.
5209         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5210         exist. But include <stdlib.h>.
5211         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5212         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5213         symlink() does not exist.
5214         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5215         include <io.h> instead.
5216         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5217         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5218         include <direct.h> instead.
5219         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5220         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5221         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5222         <io.h> instead.
5223         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5224         correctly if the system does not have hard links.
5225         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5226         <direct.h> instead.
5227         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5228         it when looking for function declarations.
5229         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5230         <direct.h> and <io.h> instead.
5231         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5232
5233 2011-09-11  Bruno Haible  <bruno@clisp.org>
5234
5235         strcase: Support for MSVC.
5236         * modules/strcase (Status, Notice): Remove obsoletion mark.
5237         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5238         * doc/posix-functions/strncasecmp.texi: Likewise.
5239
5240         strings: Don't assume <strings.h> exists.
5241         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5242         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5243         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5244         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5245
5246 2011-09-11  Bruno Haible  <bruno@clisp.org>
5247
5248         dirent: Don't assume <dirent.h> exists.
5249         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5250         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5251         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5252         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5253
5254 2011-09-11  Bruno Haible  <bruno@clisp.org>
5255
5256         Fix wint_t on MSVC.
5257         * lib/wchar.in.h (wint_t): On MSVC, override it.
5258         * lib/wctype.in.h (wint_t): Likewise.
5259         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5260         MSVC.
5261         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5262         * doc/posix-headers/wctype.texi: Likewise.
5263
5264 2011-09-11  Bruno Haible  <bruno@clisp.org>
5265
5266         sys_types: Fix typo.
5267         * lib/sys_types.in.h: Fix typo in comment.
5268         Reported by Paul Eggert.
5269
5270         Support for MSVC compiler: Ensure size_t gets defined.
5271         * modules/strings (Depends-on): Add 'sys_types'.
5272         * modules/sys_uio (Depends-on): Likewise.
5273         * lib/sys_uio.in.h: Update comment.
5274
5275         C++ tests for module 'sys_types'.
5276         * modules/sys_types-c++-tests: New file.
5277         * tests/test-sys_types-c++.cc: New file.
5278
5279         Tests for module 'sys_types'.
5280         * modules/sys_types-tests: New file.
5281         * tests/test-sys_types.c: New file.
5282
5283         New module 'sys_types'.
5284         * lib/sys_types.in.h: New file.
5285         * m4/sys_types_h.m4: New file.
5286         * modules/sys_types: New file.
5287         * doc/posix-headers/sys_types.texi: Mention the new module and the
5288         size_t problem on MSVC 9.
5289
5290 2011-09-11  Bruno Haible  <bruno@clisp.org>
5291
5292         Support for MSVC compiler: Avoid division by a literal 0.
5293         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5294         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5295         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5296         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5297         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5298         * tests/infinity.h: New file.
5299         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5300         on MSVC.
5301         * tests/test-ceilf1.c: Include infinity.h.
5302         (main): Use Infinityf.
5303         * tests/test-ceil1.c: Include infinity.h.
5304         (main): Use Infinityd.
5305         * tests/test-ceill.c: Include infinity.h.
5306         (main): Use Infinityl.
5307         * tests/test-dprintf-posix.c: Include infinity.h.
5308         (test_function): Use Infinityd.
5309         * tests/test-floorf1.c: Include infinity.h.
5310         (main): Use Infinityf.
5311         * tests/test-floor1.c: Include infinity.h.
5312         (main): Use Infinityd.
5313         * tests/test-floorl.c: Include infinity.h.
5314         (main): Use Infinityl.
5315         * tests/test-fprintf-posix.c: Include infinity.h.
5316         (test_function): Use Infinityd.
5317         * tests/test-frexp.c: Include infinity.h.
5318         (main): Use Infinityd.
5319         * tests/test-frexpl.c: Include infinity.h.
5320         (main): Use Infinityl.
5321         * tests/test-isfinite.c: Include infinity.h.
5322         (test_isfinitef): Use Infinityf.
5323         (test_isfinited): Use Infinityd.
5324         (test_isfinitel): Use Infinityl.
5325         * tests/test-isinf.c: Include infinity.h.
5326         (test_isinff): Use Infinityf.
5327         (test_isinfd): Use Infinityd.
5328         (test_isinfl): Use Infinityl.
5329         * tests/test-isnan.c: Include infinity.h.
5330         (test_float): Use Infinityf.
5331         (test_double): Use Infinityd.
5332         (test_long_double): Use Infinityl.
5333         * tests/test-isnanf.h: Include infinity.h.
5334         (main): Use Infinityf.
5335         * tests/test-isnand.h: Include infinity.h.
5336         (main): Use Infinityd.
5337         * tests/test-isnanl.h: Include infinity.h.
5338         (main): Use Infinityl.
5339         * tests/test-ldexpl.c: Include infinity.h.
5340         (main): Use Infinityl.
5341         * tests/test-printf-posix.h: Include infinity.h.
5342         (test_function): Use Infinityd.
5343         * tests/test-roundf1.c: Include infinity.h.
5344         (main): Use Infinityf.
5345         * tests/test-round1.c: Include infinity.h.
5346         (main): Use Infinityd.
5347         * tests/test-roundl.c: Include infinity.h.
5348         (main): Use Infinityl.
5349         * tests/test-signbit.c: Include infinity.h.
5350         (test_signbitf): Use Infinityf.
5351         (test_signbitd): Use Infinityd.
5352         (test_signbitl): Use Infinityl.
5353         * tests/test-snprintf-posix.h: Include infinity.h.
5354         (test_function): Use Infinityd, Infinityl.
5355         * tests/test-sprintf-posix.h: Include infinity.h.
5356         (test_function): Use Infinityd, Infinityl.
5357         * tests/test-truncf1.c: Include infinity.h.
5358         (main): Use Infinityf.
5359         * tests/test-trunc1.c: Include infinity.h.
5360         (main): Use Infinityd.
5361         * tests/test-truncl.c: Include infinity.h.
5362         (main): Use Infinityl.
5363         * tests/test-vasnprintf-posix.c: Include infinity.h.
5364         (test_function): Use Infinityd, Infinityl.
5365         * tests/test-vasprintf-posix.c: Include infinity.h.
5366         (test_function): Use Infinityd, Infinityl.
5367         * modules/ceilf-tests (Files): Add tests/infinity.h.
5368         * modules/ceil-tests (Files): Likewise.
5369         * modules/ceill-tests (Files): Likewise.
5370         * modules/dprintf-posix-tests (Files): Likewise.
5371         * modules/floorf-tests (Files): Likewise.
5372         * modules/floor-tests (Files): Likewise.
5373         * modules/floorl-tests (Files): Likewise.
5374         * modules/fprintf-posix-tests (Files): Likewise.
5375         * modules/frexp-tests (Files): Likewise.
5376         * modules/frexp-nolibm-tests (Files): Likewise.
5377         * modules/frexpl-tests (Files): Likewise.
5378         * modules/frexpl-nolibm-tests (Files): Likewise.
5379         * modules/isfinite-tests (Files): Likewise.
5380         * modules/isinf-tests (Files): Likewise.
5381         * modules/isnan-tests (Files): Likewise.
5382         * modules/isnanf-tests (Files): Likewise.
5383         * modules/isnanf-nolibm-tests (Files): Likewise.
5384         * modules/isnand-tests (Files): Likewise.
5385         * modules/isnand-nolibm-tests (Files): Likewise.
5386         * modules/isnanl-tests (Files): Likewise.
5387         * modules/isnanl-nolibm-tests (Files): Likewise.
5388         * modules/ldexpl-tests (Files): Likewise.
5389         * modules/printf-posix-tests (Files): Likewise.
5390         * modules/roundf-tests (Files): Likewise.
5391         * modules/round-tests (Files): Likewise.
5392         * modules/roundl-tests (Files): Likewise.
5393         * modules/signbit-tests (Files): Likewise.
5394         * modules/snprintf-posix-tests (Files): Likewise.
5395         * modules/sprintf-posix-tests (Files): Likewise.
5396         * modules/truncf-tests (Files): Likewise.
5397         * modules/trunc-tests (Files): Likewise.
5398         * modules/truncl-tests (Files): Likewise.
5399         * modules/vasnprintf-posix-tests (Files): Likewise.
5400         * modules/vasprintf-posix-tests (Files): Likewise.
5401         * modules/vdprintf-posix-tests (Files): Likewise.
5402         * modules/vfprintf-posix-tests (Files): Likewise.
5403         * modules/vprintf-posix-tests (Files): Likewise.
5404         * modules/vsnprintf-posix-tests (Files): Likewise.
5405         * modules/vsprintf-posix-tests (Files): Likewise.
5406         * modules/xprintf-posix-tests (Files): Likewise.
5407
5408 2011-09-11  Bruno Haible  <bruno@clisp.org>
5409
5410         Ensure pid_t gets defined.
5411         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5412         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5413         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5414         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5415         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5416         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5417         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5418         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5419         * tests/test-fcntl-h.c: Check that pid_t is defined.
5420         * tests/test-sched.c: Likewise.
5421         * tests/test-termios.c: Likewise.
5422         * tests/test-time.c: Likewise.
5423         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5424         * doc/posix-headers/signal.texi: Likewise.
5425         * doc/posix-headers/sys_types.texi: Likewise.
5426         * doc/posix-headers/time.texi: Likewise.
5427
5428 2011-09-11  Bruno Haible  <bruno@clisp.org>
5429
5430         acl: Fix compilation on Solaris 10 (older version).
5431         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5432         of ACE_EVERYONE.
5433         * lib/set-mode-acl.c (qset_acl): Likewise.
5434         Reported by Christian Jullien <eligis@orange.fr>.
5435
5436 2011-09-10  Bruno Haible  <bruno@clisp.org>
5437
5438         iconv, unsetenv: Add support for MSVC compiler.
5439         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5440         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5441
5442 2011-09-10  Bruno Haible  <bruno@clisp.org>
5443
5444         *printf: Add support for MSVC compiler.
5445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5446         handles the exception caused by the %n directive. When cross-compiling,
5447         guess no on native Windows.
5448         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5449         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5450         emulate it through vsnprintf.
5451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5452         * doc/posix-functions/dprintf.texi: Update documentation regarding
5453         MSVC 9.
5454         * doc/posix-functions/fprintf.texi: Likewise.
5455         * doc/posix-functions/printf.texi: Likewise.
5456         * doc/posix-functions/snprintf.texi: Likewise.
5457         * doc/posix-functions/sprintf.texi: Likewise.
5458         * doc/posix-functions/swprintf.texi: Likewise.
5459         * doc/posix-functions/vdprintf.texi: Likewise.
5460         * doc/posix-functions/vfprintf.texi: Likewise.
5461         * doc/posix-functions/vprintf.texi: Likewise.
5462         * doc/posix-functions/vsnprintf.texi: Likewise.
5463         * doc/posix-functions/vsprintf.texi: Likewise.
5464         * doc/glibc-functions/asprintf.texi: Likewise.
5465         * doc/glibc-functions/obstack_printf.texi: Likewise.
5466         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5467         * doc/glibc-functions/vasprintf.texi: Likewise.
5468
5469 2011-09-10  Bruno Haible  <bruno@clisp.org>
5470
5471         nocrash: Add support for native Windows.
5472         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5473
5474 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5475             Bruno Haible  <bruno@clisp.org>
5476
5477         absolute-header, include-next: Add support for MSVC compiler.
5478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5479         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5480         directory separator in #line directives.
5481         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5482         recognize also backslash as directory separator in #line directives.
5483
5484 2011-09-08  Jim Meyering  <meyering@redhat.com>
5485
5486         maint.mk: mark the post-release commit log with "maint: " prefix
5487         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5488         one-line commit-log summary.
5489
5490 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5491             Bruno Haible  <bruno@clisp.org>
5492
5493         Doc about crypt functions.
5494         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5495         systems.
5496         * doc/posix-functions/encrypt.texi: Likewise.
5497         * doc/posix-functions/setkey.texi: Likewise.
5498
5499 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5500
5501         * lib/gc.h: Fix copyright header.
5502
5503 2011-09-07  Bruno Haible  <bruno@clisp.org>
5504
5505         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5506         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5507         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5508
5509 2011-09-07  Bruno Haible  <bruno@clisp.org>
5510
5511         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5512         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5513         * lib/freopen.c: Likewise.
5514         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5515         * lib/lstat.c: Likewise.
5516         * lib/stat.c: Likewise.
5517         * lib/open.c: Use different syntax for include of <fcntl.h>.
5518         * lib/openat.c: Include fcntl.h again, explicitly.
5519
5520 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5521
5522         parse-datetime: document the newly accepted format
5523         * doc/parse-datetime.texi (Combined date and time of day items):
5524         New section.
5525
5526 2011-09-06  Bruno Haible  <bruno@clisp.org>
5527
5528         acl: Fix a test failure on newer Solaris 10 with ZFS.
5529         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5530         ENOSYS as no ACL.
5531         Reported by Jim Meyering.
5532
5533 2011-09-06  Bruno Haible  <bruno@clisp.org>
5534
5535         acl: Update for AIX >= 5.3 with NFS.
5536         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5537         ENOSYS as no ACL.
5538
5539         acl: Fix a test failure on AIX >= 5.3 with NFS.
5540         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5541         as no ACL.
5542
5543 2011-09-06  Bruno Haible  <bruno@clisp.org>
5544
5545         acl: Fix a test failure on IRIX 6.5 with NFS.
5546         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5547         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5548         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5549         * lib/copy-acl.c (qcopy_acl): Likewise.
5550
5551 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5552
5553         openat: port to AIX 7.1 with large files
5554         AIX 7.1 does a "#define openat open64at" if large files are in use,
5555         so we can't simply #undef openat.  Use the orig_openat trick (similar
5556         to orig_open in lib/open.c) to work around the problem.  Problem
5557         reported by Kevin Brott for GNU tar, in the thread containing
5558         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5559         * lib/openat.c (__need_system_fcntl_h): Define first.
5560         Include <fcntl.h> and <sys/types.h> before undefining.
5561         (orig_openat) [HAVE_OPENAT]: New inline function.
5562         (openat) [HAVE_OPENAT]: Do not undef.
5563         (rpl_openat): Use orig_openat, not openat.
5564
5565 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5566             Bruno Haible  <bruno@clisp.org>
5567
5568         acl: Avoid errors on NonStop Kernel.
5569         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5570         ENOTSUP errors.
5571
5572 2011-09-05  Bruno Haible  <bruno@clisp.org>
5573
5574         acl: Clean up Solaris code.
5575         * lib/acl-internal.h: Remove no-op #if.
5576         * lib/file-has-acl.c: Likewise.
5577         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5578         * lib/copy-acl.c (qcopy_acl): Likewise.
5579
5580 2011-09-05  Bruno Haible  <bruno@clisp.org>
5581
5582         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5583         binaries built on the original Solaris 10.
5584         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5585         trivial.
5586
5587 2011-09-05  Bruno Haible  <bruno@clisp.org>
5588
5589         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5590         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5591         10.
5592         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5593         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5594         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5595         instead of acl_get, facl_get, acl_set, facl_set.
5596
5597 2011-09-05  Bruno Haible  <bruno@clisp.org>
5598
5599         copy-file: Try unit tests on more file systems.
5600         * tests/test-copy-file-1.sh: New file.
5601         * tests/test-copy-file-2.sh: New file.
5602         * modules/copy-file-tests (Files): Add them.
5603         (Makefile.am): Add them to TESTS.
5604
5605         acl: Try unit tests on more file systems.
5606         * tests/test-file-has-acl-1.sh: New file.
5607         * tests/test-file-has-acl-2.sh: New file.
5608         * tests/test-set-mode-acl-1.sh: New file.
5609         * tests/test-set-mode-acl-2.sh: New file.
5610         * tests/test-copy-acl-1.sh: New file.
5611         * tests/test-copy-acl-2.sh: New file.
5612         * modules/acl-tests (Files): Add them.
5613         (Makefile.am): Add them to TESTS.
5614
5615 2011-09-04  Bruno Haible  <bruno@clisp.org>
5616
5617         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5618         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5619         10.
5620         (OLD_ALLOW, OLD_DENY): New macros.
5621         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5622         ACE_ACCESS_ALLOWED_ACE_TYPE.
5623         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5624         ACE_ACCESS_DENIED_ACE_TYPE.
5625         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5626         (NEW_ACE_EXECUTE): Fix value.
5627         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5628         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5629         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5630         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5631         NEW_ACE_SYNCHRONIZE): New macros.
5632         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5633         instead of acl_fromtext, acl_set, facl_set.
5634         Fixes a coreutils/tests/cp/perm failure.
5635
5636 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5637
5638         openat: test for fstatat (..., 0) bug
5639         Further testing with tar suggests that fstatat (..., 0)
5640         does not work in general, on AIX 7.1; see
5641         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5642         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5643         replacement fstatat (which is what older AIX releases were using
5644         anyway).
5645         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5646         use is now changed to orig_fstatat.  This was probably the right
5647         thing to do anyway.
5648         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5649         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5650         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5651         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5652         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5653         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5654         if the bug is found.
5655
5656         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5657         This tests for another fstatat bug on AIX 7.1:
5658         fstatat (AT_FDCWD, ..., 0) does not work.  See
5659         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5660         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5661         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5662         (rpl_fstatat): Adjust so that it works around either (or both)
5663         bugs if present.
5664         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5665
5666 2011-09-03  Karl Berry  <karl@gnu.org>
5667
5668         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5669         in index entries.
5670
5671 2011-09-02  Bruno Haible  <bruno@clisp.org>
5672
5673         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5674         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5675         values of AR, ARFLAGS, RANLIB.
5676         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5677
5678 2011-09-02  Bruno Haible  <bruno@clisp.org>
5679
5680         Find 'ar' program that fits with --host argument.
5681         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5682
5683 2011-09-02  Bruno Haible  <bruno@clisp.org>
5684
5685         tests: init.sh: Support any non-GNU diff.
5686         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5687         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5688         Solaris 8.
5689
5690 2011-09-02  Bruno Haible  <bruno@clisp.org>
5691
5692         tests: init.sh: work also with any non-GNU diff that supports -u
5693         * tests/init.sh: Relax check for diff -u support.
5694         Rather than checking for GNU diff via --version, simply check
5695         for support for -u itself.  Useful at least on OpenBSD 4.9,
5696         AIX 7.1, IRIX 6.5, and Solaris 10.
5697
5698 2011-09-01  Bruno Haible  <bruno@clisp.org>
5699
5700         strtoimax, strtoumax: Document problem on HP-UX 11.
5701         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5702         * doc/posix-functions/strtoumax.texi: Likewise.
5703
5704 2011-09-01  Bruno Haible  <bruno@clisp.org>
5705
5706         strtoumax: Avoid link error on OSF/1 with DTK cc.
5707         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5708         defined as a function.
5709         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5710         strtoumax is defined, not whether it is declared.
5711
5712 2011-09-01  Bruno Haible  <bruno@clisp.org>
5713
5714         strtoimax: Avoid link error on OSF/1 with DTK cc.
5715         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5716         defined as a function.
5717         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5718         strtoimax is defined, not whether it is declared.
5719
5720 2011-09-01  Bruno Haible  <bruno@clisp.org>
5721
5722         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5723         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5724         as a function.
5725         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5726         whether it is declared.
5727
5728 2011-09-01  Bruno Haible  <bruno@clisp.org>
5729
5730         imaxabs: Avoid link error on OSF/1 with DTK cc.
5731         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5732         as a function.
5733         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5734         whether it is declared.
5735
5736 2011-09-01  Bruno Haible  <bruno@clisp.org>
5737
5738         Tests for module 'strtoumax'.
5739         * modules/strtoumax-tests: New file.
5740         * tests/test-strtoumax.c: New file.
5741
5742         Tests for module 'strtoimax'.
5743         * modules/strtoimax-tests: New file.
5744         * tests/test-strtoimax.c: New file.
5745
5746         Tests for module 'imaxdiv'.
5747         * modules/imaxdiv-tests: New file.
5748         * tests/test-imaxdiv.c: New file.
5749
5750         Tests for module 'imaxabs'.
5751         * modules/imaxabs-tests: New file.
5752         * tests/test-imaxabs.c: New file.
5753
5754 2011-09-01  Bruno Haible  <bruno@clisp.org>
5755
5756         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5757         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5758         pthread_create.
5759
5760 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5761
5762         openat: work around AIX 7.1 fstatat issue
5763         This should fix the problem that was not properly fixed
5764         in the previous change, dated 2011-08-30.
5765         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5766         __need_system_stat_h defined.
5767         (orig_fstatat) [HAVE_FSTATAT]: New function.
5768         (rpl_fstatat): Go back to the old way of doing things,
5769         except call orig_fstatat instead of fstatat.
5770         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5771         Remove unnecessary check whether fstatat fills in st_size etc.
5772
5773 2011-09-01  Bruno Haible  <bruno@clisp.org>
5774
5775         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5776         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5777         just include the system's header.
5778
5779 2011-08-31  Jim Meyering  <meyering@redhat.com>
5780
5781         tests: avoid spurious assertion failure in test-float.c on ppc64
5782         * tests/test-float.c (test_long_double): Comment out an assertion,
5783         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5784         with gcc-4.4.4.
5785
5786         maint: indent with spaces, not TABs
5787         I need to get in the habit of running gnulib's "make check".
5788         Both of these would have been caught.
5789         * m4/largefile.m4: Indent with spaces, not TABs.
5790         * lib/parse-datetime.y (iso_8601_time): Likewise.
5791         Spotted by Pádraig Brady.
5792
5793         test-parse-datetime.c: accommodate a relatively strict gcc warning
5794         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5795         to avoid a warning from gcc's -Werror=missing-declarations.
5796         Insert a few spaces-before-funcall-parenthesis.
5797
5798 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5799
5800         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5801         The parser now accepts ISO 8601 date-time strings with "T" as the
5802         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5803         with a space between the date and time strings.  Now it also parses
5804         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5805         variants like "2004-02-29T16:21:42.333-07:00"
5806         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5807         of day representation using the 'T' separator character.
5808         * doc/parse-datetime.texi (General date syntax): replace use of
5809         deprecated --iso-8601 option with --rfc-3339 in example of date
5810         command output formats that can be parsed.
5811         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5812         lib/parse-datetime.y.
5813         (gmt_offset): New function.
5814         (main): Add additional test cases to validate ISO8601 extended
5815         date and time of day parsing.
5816
5817 2011-08-31  Bruno Haible  <bruno@clisp.org>
5818
5819         freopen: Documentation.
5820         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5821         name.
5822         Reported by Claudio Bley <claudio.bley@gmail.com>.
5823
5824 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5825
5826         freopen: Don't crash if the filename argument is NULL.
5827         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5828         NULL.
5829
5830 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         openat: work around AIX 7.1 fstatat bug
5833         Problem reported by Kevin Brott for GNU tar, in the thread containing
5834         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5835         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5836         FSTATAT_ST_SIZE_ETC_BROKEN.
5837         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5838         rpl_fstatat.
5839         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5840         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5841         AC_CHECK_FUNCS_ONCE for fstatat.
5842         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5843         fchmodat, mkdirat, openat and unlinkat.
5844
5845 2011-08-30  Bruno Haible  <bruno@clisp.org>
5846
5847         Avoid endless recursions if config.h includes some header files.
5848         * lib/fopen.c (__need_FILE): Define already before including config.h.
5849         * lib/freopen.c (__need_FILE): Likewise.
5850         * lib/open.c (__need_system_fcntl_h): Likewise.
5851         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5852         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5853         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5854
5855 2011-08-25  Karl Berry  <karl@gnu.org>
5856
5857         * config/srclist.txt (ylwrap): new try.
5858         * build-aux/ylwrap: new file.
5859
5860 2011-08-23  Bruno Haible  <bruno@clisp.org>
5861
5862         tmpdir: Use a good default directory on native Windows.
5863         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5864         (P_tmpdir): Default to _P_tmpdir on native Windows.
5865         (path_search): On native Windows, try the value returned by GetTempPath
5866         before trying P_tmpdir.
5867         * modules/tmpdir (Depends-on): Add pathmax.
5868         Suggested by John Darrington <john@darrington.wattle.id.au>.
5869
5870 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5871
5872         doc: fix typo in README-release
5873         * top/README-release: Capitalize first word of a sentence.
5874
5875 2011-08-19  Jim Meyering  <meyering@redhat.com>
5876
5877         fts: do not exhaust memory when processing million-entry directories
5878         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5879         directory would require about 256*N bytes of memory.  Thus, it was
5880         easy to construct a directory too large to be processed by any of
5881         those tools.  With this change, fts' maximum memory utilization is
5882         now limited to around 30MB.
5883         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5884         (fts_read): When we've processed the final entry (i.e., when
5885         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5886         using the parent entry to read any remaining entries.  Dispatch
5887         depending on what fts_build returns:
5888         - NULL+stop, aka failure: stop
5889         - NULL otherwise: move up in the dir hierarchy
5890         - non-NULL: handle this new entry
5891         (fts_build): Declare and use new local, continue_readdir.
5892         Prepare to be called from fts_read, when the entries
5893         from a partially-read directory have just been exhausted.
5894         In that case, we'll skip the opendir and instead use the parent's
5895         fts_dirp and derive dir_fd from that.
5896         Finally, in the readdir loop, if we read max_entries entries,
5897         exit the loop ensuring *not* to call closedir.  This is required
5898         so that fts_dirp can be reused on a subsequent call.
5899         Prompted by Ben England's report of memory exhaustion in find
5900         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5901
5902         maint: fts: move decl of `dp' down into while loop; split a long line
5903         * lib/fts.c (fts_build): No semantic change.
5904
5905         fts: add/use new struct member, fts_dirp
5906         We are about to use this to manage any directory with
5907         too many entries to read all of them into memory at once.
5908         To do that, we'll need to save the DIR* pointer in each
5909         affected FTSENT struct.
5910         * lib/fts_.h: Include <dirent.h>.
5911         (struct FTSENT) [fts_dirp]: New member.
5912         * lib/fts.c (closedir_and_clear): Define.
5913         Use it in place of closedir so that we are sure to
5914         clear the new fts_dirp member when done with it.
5915         (fts_alloc): Initialize the new member.
5916         (fts_lfree): Free, if needed.
5917
5918         maint: fts: give __opendir2 a new parameter and rename
5919         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5920         than surreptitiously using sole caller's "dir_fd".
5921         (fts_opendir): Rename from __opendir2.
5922
5923         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5924         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5925
5926         maint: fts.c: correct off-by-one indentation
5927         * lib/fts.c (fts_build): Correct indentation, change style
5928         of a couple of block comments, and bracing style.
5929
5930         maint: fts.c: move __opendir2 #define "up" out of function body
5931         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5932
5933         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5934         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5935         out for a long time and besides was useful only on BSD systems.
5936
5937 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5938
5939         regex: port to Stratus OpenVOS
5940         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5941         define to empty, rather than attempting nonportable optimizations.
5942         Problem reported by Paul Green in:
5943         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5944         and fix suggested by Eric Blake in:
5945         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5946
5947 2011-08-17  Eric Blake  <eblake@redhat.com>
5948
5949         getcwd: fix test failures on mingw
5950         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5951         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5952         test if long directory cannot be created, and allow mingw errno.
5953
5954         getcwd-lgpl: fix m4 to match relaxed test for BSD
5955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5956         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5957         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5958         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5959         signature problem.
5960
5961         getcwd: fix compilation on mingw64
5962         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5963         getcwd.
5964         Reported by Marc-André Lureau.
5965
5966         pipe2: silence compiler warning
5967         * lib/pipe2.c (pipe2): Hide label if it is not used.
5968
5969 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5970
5971         relocatable-prog: fix link error
5972         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5973         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5974         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5975         into modules/relocatable-lib without noticing that
5976         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5977         also needs to build relocatable.c.
5978
5979 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5980
5981         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5983         shell code: it contained a 'break' that was not in a loop.
5984         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5985         via a shell-language loop; this may have been true in old Autoconf
5986         versions, but it's not true in Autoconf 2.68.  I found this bug
5987         when testing coreutils git on Solaris 8, whose shell complains
5988         about the syntax error.
5989
5990 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5991
5992         * lib/base64.c: Fix comment to reference RFC 4648.
5993         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5994         <gvtulder@gmail.com>.
5995
5996 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5997
5998         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5999
6000         po/Makefile.in.in: fix make -q problem
6001         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6002         rule, since there's no file named 'check-macro-version' and its
6003         use as a file breaks make -q.
6004         (all): Don't depend on check-macro-version.
6005         (CHECK_MACRO_VERSION): New macro.
6006         (stamp-po): Use it.
6007
6008         configmake: fix make -q problem
6009         * modules/configmake (configmake.h): Update configmake.h's time stamp
6010         even if the file does not change.  Otherwise, 'make -q' fails.
6011         Problem reported by Simon Josefsson in
6012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6013
6014 2011-08-11  Jim Meyering  <meyering@redhat.com>
6015
6016         git-version-gen: correct the advice in a comment
6017         * build-aux/git-version-gen: Correct comment.
6018         Don't recommend to list .tarball-version in .gitignore.
6019
6020 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         base64: fix off-by-one buffer size bug
6023         Problem and (trivial) fix reported by Gijs van Tulder in
6024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6025         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6026         * tests/test-base64.c (main): Catch the bug.
6027
6028 2011-08-10  Eric Blake  <eblake@redhat.com>
6029
6030         closein: correct comments
6031         * lib/closein.c (close_stdin): Improve comments.
6032
6033 2011-08-09  Bruno Haible  <bruno@clisp.org>
6034
6035         More tests for 'fseeko'.
6036         * tests/test-fseeko3.c: New file, from Eric Blake.
6037         * tests/test-fseeko3.sh: New file.
6038         * modules/fseeko-tests (Files): Add them.
6039         (TESTS): Add test-fseeko3.sh.
6040         (check_PROGRAMS): Add test-fseeko3.
6041
6042 2011-08-09  Eric Blake  <eblake@redhat.com>
6043
6044         fseeko: remove unneeded hack
6045         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6046
6047         fseeko: fix bug on glibc
6048         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6049         Reported by John W. Eaton.
6050
6051 2011-08-08  Bruno Haible  <bruno@clisp.org>
6052
6053         unictype/base: Fix interoperability with preinstalled libunistring.
6054         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6055         Reported by Simon Josefsson.
6056
6057 2011-08-08  Bruno Haible  <bruno@clisp.org>
6058
6059         iswblank: Detect declaration correctly.
6060         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6061         AC_CHECK_DECLS invocation.
6062
6063 2011-08-08  Bruno Haible  <bruno@clisp.org>
6064
6065         tcgetsid: Detect declaration correctly.
6066         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6067         AC_CHECK_DECLS invocation.
6068         Reported by Simon Josefsson.
6069
6070 2011-08-08  Eric Blake  <eblake@redhat.com>
6071
6072         largefile: fix typo that regressed large file support
6073         * modules/largefile (configure.ac-early): Fix section name.
6074
6075 2011-08-06  Karl Berry  <karl@gnu.org>
6076
6077         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6078         a separate module.
6079
6080 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6081
6082         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6083         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6084         get prototype for free.
6085
6086 2011-08-04  Bruno Haible  <bruno@clisp.org>
6087
6088         Tests for module 'pathmax'.
6089         * modules/pathmax-tests: New file.
6090         * tests/test-pathmax.c: New file.
6091
6092         canonicalize-lgpl: Support larger filenames on the Hurd.
6093         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6094         Reported by Paul Eggert.
6095
6096         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6097         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6098         * lib/chdir-long.h: Include pathmax.h.
6099         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6100         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6101         (PATH_MAX): Remove code that is done by pathmax.h.
6102         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6103         * lib/tmpfile.c: Add a comment.
6104         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6105         * modules/chdir-long (Depends-on): Add pathmax.
6106         * modules/getcwd (Depends-on): Add pathmax.
6107         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6108         is not defined.
6109         * doc/posix-headers/limits.texi: Mention the pathmax module.
6110         * NEWS: Mention the change.
6111
6112 2011-08-02  Bruno Haible  <bruno@clisp.org>
6113
6114         pthread_sigmask: Actually use results of gl_THREADLIB.
6115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6116         gl_THREADLIB, not gl_[]THREADLIB.
6117         Reported by Eric Blake.
6118
6119 2011-08-02  Jim Meyering  <meyering@redhat.com>
6120
6121         maint.mk: relax the default _gl_TS_function_match regexp
6122         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6123         space between function name and "(" in an "extern" declaration.
6124         That would fail to match a decl with no space there: extern void foo();
6125
6126 2011-07-31  Iain Nicol  <iain@thenicols.net>
6127
6128         git-version-gen: document that EXTRA_DIST must include .version
6129         * build-aux/git-version-gen: In the how-to-use comment, document
6130         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6131         will fail when run from an unpacked distribution tarball.
6132
6133 2011-08-01  Bruno Haible  <bruno@clisp.org>
6134
6135         wctype-h: Fix last change.
6136         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6137         REPLACE_TOWLOWER to 0.
6138         Reported by Sam Steingold <sds@gnu.org>.
6139
6140 2011-07-31  Bruno Haible  <bruno@clisp.org>
6141
6142         frexpl: Update autoconf test.
6143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6144         according to changes of 2011-06-20.
6145
6146 2011-07-31  Bruno Haible  <bruno@clisp.org>
6147
6148         sys_utsname: Add support for Minix.
6149         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6150         <sys/utsname.h>.
6151         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6152         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6153
6154 2011-07-31  Bruno Haible  <bruno@clisp.org>
6155
6156         strings: Add support for Minix.
6157         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6158         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6159         * doc/posix-headers/strings.texi: Document the Minix problem.
6160
6161 2011-07-31  Bruno Haible  <bruno@clisp.org>
6162
6163         wctype-h: Add support for Minix.
6164         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6165         REPLACE_TOWLOWER.
6166         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6167         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6168         REPLACE_ISWCNTRL.
6169
6170 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6171
6172         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6173         This is a performance improvement for 64-bit hosts: it causes the
6174         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6175
6176 2011-07-31  Bruno Haible  <bruno@clisp.org>
6177
6178         stdioext: Add support for Minix.
6179         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6180         * lib/fpurge.c (fpurge): Likewise.
6181         * lib/freadahead.c (freadahead): Likewise.
6182         * lib/freadable.c (freadable): Likewise.
6183         * lib/freading.c (freading): Likewise.
6184         * lib/freadptr.c (freadptr): Likewise.
6185         * lib/freadseek.c (freadptrinc): Likewise.
6186         * lib/fseeko.c (rpl_fseeko): Likewise.
6187         * lib/fseterr.c (fseterr): Likewise.
6188         * lib/fwritable.c (fwritable): Likewise.
6189         * lib/fwriting.c (fwriting): Likewise.
6190         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6191         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6192
6193 2011-07-31  Bruno Haible  <bruno@clisp.org>
6194
6195         errno: Port to Minix.
6196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6197         ECONNABORTED are defined.
6198         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6199         GNULIB_defined_ECONNABORTED): New macros.
6200         * lib/strerror-override.h (strerror_override): Test also
6201         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6202         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6203         ECONNABORTED.
6204         * doc/posix-headers/errno.texi: Mention the Minix problem.
6205
6206 2011-07-31  Bruno Haible  <bruno@clisp.org>
6207
6208         Work around declaration collisions on Minix.
6209         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6210         defined, set REPLACE_MBSINIT.
6211         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6212         defined, set REPLACE_MBRTOWC.
6213         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6214         set REPLACE_MBRLEN.
6215         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6216         defined, set REPLACE_MBSRTOWCS.
6217         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6218         defined, set REPLACE_WCRTOMB.
6219         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6220         defined, set REPLACE_WCSRTOMBS.
6221
6222 2011-07-31  Bruno Haible  <bruno@clisp.org>
6223
6224         Add support for Minix with ACK compiler.
6225         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6226         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6227         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6228
6229 2011-07-31  Bruno Haible  <bruno@clisp.org>
6230
6231         Documentation about Minix.
6232         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6233         * doc/glibc-headers/*.texi: Likewise.
6234         * doc/posix-functions/*.texi: Likewise.
6235         * doc/glibc-functions/*.texi: Likewise.
6236
6237 2011-07-31  Bruno Haible  <bruno@clisp.org>
6238
6239         snippet/warn-on-use: Fix indentation.
6240         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6241
6242 2011-07-25  Jim Meyering  <meyering@redhat.com>
6243
6244         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6245         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6246         commands.
6247
6248 2011-07-27  Jim Meyering  <meyering@redhat.com>
6249
6250         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6251         * top/maint.mk (gl_extract_significant_defines_): Now that
6252         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6253         gnulib/lib/signal.in.h, and now that we recommend to
6254         define-if-undefined those two symbols in application code,
6255         we must filter them out of the "significant" list.
6256         This avoids a "make syntax-check" failure in coreutils.
6257
6258 2011-07-26  Eric Blake  <eblake@redhat.com>
6259
6260         warnings: add comments about previous patch
6261         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6262         * m4/include_next.m4: Likewise.
6263         * m4/warn-on-use.m4: Likewise.
6264         * m4/warnings.m4: Likewise, and simplify use.
6265         Suggested by Stefano Lattarini.
6266
6267         include-next, warnings: support older autoconf
6268         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6269         AS_VAR_PUSHDEF in a way that works with older autoconf.
6270         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6271         Reported by Daniel P. Berrange.
6272
6273 2011-07-25  Bruno Haible  <bruno@clisp.org>
6274
6275         fseek, ftell: Fix doc.
6276         * doc/posix-functions/fseek.texi: Reword statement about
6277         AC_SYS_LARGEFILE.
6278         * doc/posix-functions/ftell.texi: Likewise.
6279
6280 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6281             Bruno Haible  <bruno@clisp.org>
6282
6283         Add dependencies to the 'largefile' module.
6284         * modules/fopen (Depends-on): Add 'largefile'.
6285         * modules/freopen (Depends-on): Likewise.
6286         * modules/fseeko (Depends-on): Likewise.
6287         * modules/ftello (Depends-on): Likewise.
6288         * modules/glob (Depends-on): Likewise.
6289         * modules/lseek (Depends-on): Likewise.
6290         * modules/lstat (Depends-on): Likewise.
6291         * modules/mkostemp (Depends-on): Likewise.
6292         * modules/mkostemps (Depends-on): Likewise.
6293         * modules/mkstemp (Depends-on): Likewise.
6294         * modules/mkstemps (Depends-on): Likewise.
6295         * modules/open (Depends-on): Likewise.
6296         * modules/openat (Depends-on): Likewise.
6297         * modules/pread (Depends-on): Likewise.
6298         * modules/pwrite (Depends-on): Likewise.
6299         * modules/scandir (Depends-on): Likewise.
6300         * modules/stat (Depends-on): Likewise.
6301         * modules/tmpfile (Depends-on): Likewise.
6302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6303         since the containing module now depends on the largefile module.
6304         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6305         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6306         off_t is fixed by gnulib.
6307         * doc/posix-functions/freopen.texi: Likewise.
6308         * doc/posix-functions/fseeko.texi: Likewise.
6309         * doc/posix-functions/fstatat.texi: Likewise.
6310         * doc/posix-functions/ftello.texi: Likewise.
6311         * doc/posix-functions/glob.texi: Likewise.
6312         * doc/posix-functions/lseek.texi: Likewise.
6313         * doc/posix-functions/lstat.texi: Likewise.
6314         * doc/posix-functions/mkstemp.texi: Likewise.
6315         * doc/posix-functions/open.texi: Likewise.
6316         * doc/posix-functions/openat.texi: Likewise.
6317         * doc/posix-functions/pread.texi: Likewise.
6318         * doc/posix-functions/pwrite.texi: Likewise.
6319         * doc/posix-functions/scandir.texi: Likewise.
6320         * doc/posix-functions/stat.texi: Likewise.
6321         * doc/posix-functions/tmpfile.texi: Likewise.
6322         * doc/glibc-functions/mkostemp.texi: Likewise.
6323         * doc/glibc-functions/mkostemps.texi: Likewise.
6324         * doc/glibc-functions/mkstemps.texi: Likewise.
6325
6326 2011-07-25  Bruno Haible  <bruno@clisp.org>
6327
6328         fcntl: Move AC_LIBOBJ invocation to module description.
6329         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6330         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6331
6332         fcntl: Remove call-in from fchdir.m4.
6333         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6335
6336         dup3: Remove potential call-in from fchdir.m4.
6337         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6339
6340         dup2: Move AC_LIBOBJ invocation to module description.
6341         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6342         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6343         Don't invoke AC_LIBOBJ.
6344         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6345
6346         dup2: Remove call-in from fchdir.m4.
6347         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6349
6350         fclose: Move AC_LIBOBJ invocation to module description.
6351         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6352         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6353         to 1.
6354         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6355
6356         fclose: Remove call-in from close.m4.
6357         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6358         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6359
6360         close: Move AC_LIBOBJ invocation to module description.
6361         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6362         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6363         1.
6364         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6365
6366         close: Remove call-in from fchdir.m4.
6367         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6369
6370         open: Move AC_LIBOBJ invocation to module description.
6371         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6372         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6373         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6374
6375         open: Remove call-in from fchdir.m4.
6376         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6378
6379         fchdir: Start to remove gl_REPLACE_* idiom.
6380         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6381         (gl_FUNC_FCHDIR): Invoke it.
6382
6383 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         * lib/ftell.c (ftell): Comment out cast.
6386
6387         close: use gl_REPLACE_FCLOSE only if defined
6388         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6389         is defined.  The close module doesn't depend on the fclose module
6390         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6392         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6393
6394 2011-07-24  Jim Meyering  <meyering@redhat.com>
6395
6396         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6397         * tests/test-select.h (test_function): Declare as "static".
6398
6399 2011-07-24  Bruno Haible  <bruno@clisp.org>
6400
6401         doc: Mention the effects of AC_SYS_LARGEFILE.
6402         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6403         on this function.
6404         * doc/posix-functions/aio_error.texi: Likewise.
6405         * doc/posix-functions/aio_fsync.texi: Likewise.
6406         * doc/posix-functions/aio_read.texi: Likewise.
6407         * doc/posix-functions/aio_return.texi: Likewise.
6408         * doc/posix-functions/aio_suspend.texi: Likewise.
6409         * doc/posix-functions/aio_write.texi: Likewise.
6410         * doc/posix-functions/fgetpos.texi: Likewise.
6411         * doc/posix-functions/fopen.texi: Likewise.
6412         * doc/posix-functions/freopen.texi: Likewise.
6413         * doc/posix-functions/fsetpos.texi: Likewise.
6414         * doc/posix-functions/fstatvfs.texi: Likewise.
6415         * doc/posix-functions/ftruncate.texi: Likewise.
6416         * doc/posix-functions/ftw.texi: Likewise.
6417         * doc/posix-functions/getrlimit.texi: Likewise.
6418         * doc/posix-functions/glob.texi: Likewise.
6419         * doc/posix-functions/lio_listio.texi: Likewise.
6420         * doc/posix-functions/lockf.texi: Likewise.
6421         * doc/posix-functions/mkstemp.texi: Likewise.
6422         * doc/posix-functions/mmap.texi: Likewise.
6423         * doc/posix-functions/nftw.texi: Likewise.
6424         * doc/posix-functions/openat.texi: Likewise.
6425         * doc/posix-functions/opendir.texi: Likewise.
6426         * doc/posix-functions/posix_fadvise.texi: Likewise.
6427         * doc/posix-functions/posix_fallocate.texi: Likewise.
6428         * doc/posix-functions/pread.texi: Likewise.
6429         * doc/posix-functions/pwrite.texi: Likewise.
6430         * doc/posix-functions/readdir.texi: Likewise.
6431         * doc/posix-functions/readdir_r.texi: Likewise.
6432         * doc/posix-functions/rewinddir.texi: Likewise.
6433         * doc/posix-functions/scandir.texi: Likewise.
6434         * doc/posix-functions/seekdir.texi: Likewise.
6435         * doc/posix-functions/setrlimit.texi: Likewise.
6436         * doc/posix-functions/statvfs.texi: Likewise.
6437         * doc/posix-functions/telldir.texi: Likewise.
6438         * doc/posix-functions/tmpfile.texi: Likewise.
6439         * doc/posix-functions/truncate.texi: Likewise.
6440         * doc/glibc-functions/fallocate.texi: Likewise.
6441         * doc/glibc-functions/fstatfs.texi: Likewise.
6442         * doc/glibc-functions/fts_children.texi: Likewise.
6443         * doc/glibc-functions/fts_read.texi: Likewise.
6444         * doc/glibc-functions/getdirentries.texi: Likewise.
6445         * doc/glibc-functions/mkostemp.texi: Likewise.
6446         * doc/glibc-functions/mkostemps.texi: Likewise.
6447         * doc/glibc-functions/mkstemps.texi: Likewise.
6448         * doc/glibc-functions/preadv.texi: Likewise.
6449         * doc/glibc-functions/pwritev.texi: Likewise.
6450         * doc/glibc-functions/sendfile.texi: Likewise.
6451         * doc/glibc-functions/statfs.texi: Likewise.
6452
6453 2011-07-24  Bruno Haible  <bruno@clisp.org>
6454
6455         doc: Fix typo.
6456         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6457
6458 2011-07-24  Bruno Haible  <bruno@clisp.org>
6459
6460         doc: Mention fsusage.
6461         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6462
6463 2011-07-24  Bruno Haible  <bruno@clisp.org>
6464
6465         doc: Mention new glibc headers and functions.
6466         * doc/glibc-headers/gshadow.texi: New file.
6467         * doc/glibc-functions/endsgent.texi: New file.
6468         * doc/glibc-functions/fgetsgent.texi: New file.
6469         * doc/glibc-functions/fgetsgent_r.texi: New file.
6470         * doc/glibc-functions/getsgent.texi: New file.
6471         * doc/glibc-functions/getsgent_r.texi: New file.
6472         * doc/glibc-functions/getsgnam.texi: New file.
6473         * doc/glibc-functions/getsgnam_r.texi: New file.
6474         * doc/glibc-functions/putsgent.texi: New file.
6475         * doc/glibc-functions/setsgent.texi: New file.
6476         * doc/glibc-functions/sgetsgent.texi: New file.
6477         * doc/glibc-functions/sgetsgent_r.texi: New file.
6478         * doc/glibc-functions/malloc_info.texi: New file.
6479         * doc/glibc-functions/preadv.texi: New file.
6480         * doc/glibc-functions/pwritev.texi: New file.
6481         * doc/glibc-functions/register_printf_modifier.texi: New file.
6482         * doc/glibc-functions/register_printf_specifier.texi: New file.
6483         * doc/glibc-functions/register_printf_type.texi: New file.
6484         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6485         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6486         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6487         * doc/glibc-functions/pthread_getname_np.texi: New file.
6488         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6489         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6490         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6491         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6492         * doc/glibc-functions/pthread_setname_np.texi: New file.
6493         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6494         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6495         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6496         * doc/glibc-functions/qsort_r.texi: New file.
6497         * doc/glibc-functions/quick_exit.texi: New file.
6498         * doc/glibc-functions/syncfs.texi: New file.
6499         * doc/gnulib.texi: Include them.
6500         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6501         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6502         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6503         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6504         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6505         * doc/glibc-functions/execvpe.texi: Likewise.
6506
6507 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6508
6509         ftell: don't include <unistd.h>
6510         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6511         guaranteed to define off_t, and the ftell module depends on the
6512         stdio module.
6513
6514         ftell: do not assume wraparound signed arithmetic
6515         * lib/ftell.c: Include <limits.h>.
6516         (ftell): Don't assume wraparound signed arithmetic.
6517
6518 2011-07-24  Bruno Haible  <bruno@clisp.org>
6519
6520         close: No longer depend on module 'fclose'.
6521         * modules/close (Depends-on): Remove fclose.
6522         * NEWS: Mention the change.
6523         Suggested by Sam Steingold <sds@gnu.org>.
6524
6525 2011-07-24  Bruno Haible  <bruno@clisp.org>
6526
6527         fsusage: Enable large volume support on AIX >= 5.2.
6528         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6529         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6530         instead of STAT_STATVFS.
6531         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6532
6533         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6534         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6535         f_blocks field only on MacOS X.
6536
6537         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6538         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6539         * modules/fsusage (Depends-on): Add largefile.
6540
6541 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         * README: Modernize discussion of signed integers.
6544         Assuming overflow wraparound is no longer safe.
6545         Mention ones' complement and signed magnitude.
6546
6547 2011-07-22  Bruno Haible  <bruno@clisp.org>
6548
6549         select tests, pselect tests: Refactor.
6550         * tests/test-select.h: New file, extracted from tests/test-select.c.
6551         (select_fn): New type.
6552         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6553         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6554         test_pipe): Add my_select argument.
6555         (test_function): Renamed from main. Add my_select argument.
6556         * tests/test-select.c: Move most code to tests/test-select.h. Include
6557         test-select.h.
6558         * modules/select-tests (Files): Add tests/test-select.h.
6559         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6560         (my_select, main): New functions.
6561         * modules/pselect-tests (Files): Add tests/test-select.h,
6562         tests/macros.h, tests/signature.h.
6563         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6564         (configure.ac): Check for <sys/wait.h>.
6565
6566 2011-07-22  Bruno Haible  <bruno@clisp.org>
6567
6568         sys_select tests: Check the signature of FD_*.
6569         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6570         signature tests from here...
6571         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6572         here.
6573         * modules/sys_select-tests (Files): Add tests/signature.h.
6574
6575 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6576
6577         largefile: new module, replacing large-inode
6578         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6579         * MODULES.html.sh: Add largefile, remove large-inode.
6580         * modules/largefile, m4/largefile.m4: New files.
6581         * modules/large-inode, m4/large-inode.m4: Remove.
6582
6583         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6584         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6585         implementations that use only 32 bits to count blocks.
6586         On typical hosts with 1024-byte blocks, this fails with file
6587         systems as small as 4 TiB.  Problem reported by Herb Wartens
6588         <http://debbugs.gnu.org/9140> and this should also fix a similar
6589         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6590
6591         large-inode: New module
6592         * MODULES.html.sh: Add it.
6593         * modules/large-inode, m4/large-inode.m4: New files.
6594
6595         extensions: Enable extensions on MacOS X 10.5 and later.
6596         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6597
6598 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6599
6600         file-has-acl: use acl_extended_file_nofollow if available
6601         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6602         (acl_extended_file): New macro.
6603         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6604         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6605
6606 2011-07-21  Bruno Haible  <bruno@clisp.org>
6607
6608         Declare system functions in a way that works with C++.
6609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6610         declare fdopendir as extern "C".
6611         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6612         declare frexpl as extern "C".
6613         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6614         declare gai_strerror as extern "C".
6615         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6616         programs, declare gai_strerror as extern "C".
6617         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6618         declare getlogin_r as extern "C".
6619         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6620         as extern "C".
6621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6622         declare ldexpl as extern "C".
6623         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6624         as extern "C".
6625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6626         program, declare getmntinfo as extern "C".
6627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6628         stpncpy as extern "C".
6629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6630         program, declare __xpg_strerror_r as extern "C".
6631         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6632         strndup as extern "C".
6633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6634         declare memset and bzero as extern "C".
6635         Reported by Sam Steingold <sds@gnu.org>.
6636
6637 2011-07-12  Jim Meyering  <meyering@redhat.com>
6638
6639         maint.mk: prohibit inclusion of "verify.h" without use
6640         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6641
6642 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6643
6644         timer-time: A new module to check for timer_settime()
6645         * m4/timer_time.m4: Check for the posix function.
6646         * modules/timer-time: Add the new module.
6647         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6648         Mention it.
6649
6650 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6651             Bruno Haible  <bruno@clisp.org>
6652
6653         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6654         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6655         not defined, assume POSIX threads and look for pthread_sigmask in
6656         $LIBS, without changing $CPPFLAGS.
6657
6658 2011-07-19  Bruno Haible  <bruno@clisp.org>
6659
6660         strstr: Update cross-compilation guess.
6661         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6662         CPUs, guess no, in view of glibc
6663         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6664         Suggested by Eric Blake. Reported by Reuben Thomas.
6665
6666 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6667
6668         getopt-gnu: suppress core dumps from detection code
6669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6670         to suppress core dumps that may well occur on glibc systems.
6671         * modules/getopt-gnu: Depend on nocrash.
6672
6673 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         pthread_sigmask: ensure usleep is declared
6676         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6677         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6678
6679 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         doc: Document NonStop portability issues.
6682         * doc/posix-functions/sigaction.texi (sigaction):
6683         * doc/posix-headers/signal.texi (signal.h):
6684         Document NonStop.  See Joachim Schmitz in
6685         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6686
6687 2011-07-15  Bruno Haible  <bruno@clisp.org>
6688
6689         ffsl, ffsll: Avoid unportable behaviour.
6690         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6691
6692 2011-07-15  Bruno Haible  <bruno@clisp.org>
6693
6694         ffs: More tests.
6695         * tests/test-ffs.c (NBITS): New macro.
6696         (main): Add more tests.
6697         * tests/test-ffsl.c (NBITS): New macro.
6698         (main): Add more tests.
6699         * tests/test-ffsll.c (NBITS): New macro.
6700         (main): Add more tests.
6701
6702 2011-07-15  Eric Blake  <eblake@redhat.com>
6703
6704         ffsl, ffsll: new modules
6705         * modules/ffsl: New file.
6706         * modules/ffsll: Likewise.
6707         * m4/ffsl.m4: Likewise.
6708         * m4/ffsll.m4: Likewise.
6709         * lib/ffsl.c: Likewise.
6710         * lib/ffsl.h: Likewise.
6711         * lib/ffsll.c: Likewise.
6712         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6713         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6714         * modules/string (Makefile.am): Substitute witnesses.
6715         * lib/strings.in.h (ffsl, ffsll): Declare.
6716         * modules/ffsl-tests: New test file.
6717         * modules/ffsll-tests: Likewise.
6718         * tests/test-ffsl.c: Likewise.
6719         * tests/test-ffsll.c: Likewise.
6720         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6721         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6722         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6723
6724         ffs: fix m4 prerequisite
6725         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6726
6727         ffs: avoid undefined behavior
6728         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6729         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6730         Reported by Bruno Haible.
6731
6732 2011-07-12  Bruno Haible  <bruno@clisp.org>
6733
6734         pthread_sigmask: Rely on module 'threadlib'.
6735         * modules/pthread_sigmask (Depends-on): Add threadlib.
6736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6737         is defined.
6738
6739 2011-07-12  Bruno Haible  <bruno@clisp.org>
6740
6741         regex: Depend on module 'strcase'.
6742         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6743
6744 2011-07-12  Jim Meyering  <meyering@redhat.com>
6745
6746         warn-on-use: fix typo in file name
6747         * modules/snippet/warn-on-use (Files): Correct file name:
6748         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6749
6750 2011-07-12  Bruno Haible  <bruno@clisp.org>
6751
6752         strings: Document module.
6753         * doc/posix-headers/strings.texi: Mention module 'strings'.
6754
6755 2011-07-12  Bruno Haible  <bruno@clisp.org>
6756
6757         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6758         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6759         (Files, Makefile.am): Update.
6760         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6761         * modules/stdlib (Depends-on): Update.
6762
6763 2011-07-12  Bruno Haible  <bruno@clisp.org>
6764
6765         * NEWS: Mention the changes.
6766
6767         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6768         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6769         (Files, Makefile.am): Update.
6770         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6771         * modules/arpa_inet (Depends-on): Update.
6772         * modules/ctype (Depends-on): Update.
6773         * modules/dirent (Depends-on): Update.
6774         * modules/fcntl-h (Depends-on): Update.
6775         * modules/glob (Depends-on): Update.
6776         * modules/iconv-h (Depends-on): Update.
6777         * modules/inttypes-incomplete (Depends-on): Update.
6778         * modules/langinfo (Depends-on): Update.
6779         * modules/locale (Depends-on): Update.
6780         * modules/math (Depends-on): Update.
6781         * modules/netdb (Depends-on): Update.
6782         * modules/poll-h (Depends-on): Update.
6783         * modules/pty (Depends-on): Update.
6784         * modules/search (Depends-on): Update.
6785         * modules/signal (Depends-on): Update.
6786         * modules/spawn (Depends-on): Update.
6787         * modules/stdio (Depends-on): Update.
6788         * modules/stdlib (Depends-on): Update.
6789         * modules/string (Depends-on): Update.
6790         * modules/strings (Depends-on): Update.
6791         * modules/sys_file (Depends-on): Update.
6792         * modules/sys_ioctl (Depends-on): Update.
6793         * modules/sys_select (Depends-on): Update.
6794         * modules/sys_socket (Depends-on): Update.
6795         * modules/sys_stat (Depends-on): Update.
6796         * modules/sys_time (Depends-on): Update.
6797         * modules/sys_times (Depends-on): Update.
6798         * modules/sys_utsname (Depends-on): Update.
6799         * modules/sys_wait (Depends-on): Update.
6800         * modules/termios (Depends-on): Update.
6801         * modules/time (Depends-on): Update.
6802         * modules/unistd (Depends-on): Update.
6803         * modules/wchar (Depends-on): Update.
6804         * modules/wctype-h (Depends-on): Update.
6805         * MODULES.html.sh (Support for building libraries and executables):
6806         Update.
6807
6808         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6809         * modules/snippet/unused-parameter: Renamed from
6810         modules/unused-parameter.
6811         (Files, Makefile.am): Update.
6812         * build-aux/snippet/unused-parameter.h: Renamed from
6813         build-aux/unused-parameter.h.
6814         * modules/selinux-h (Depends-on): Update.
6815         * modules/unistr/base (Depends-on): Update.
6816         * MODULES.html.sh (Core language properties): Update.
6817
6818         Rename module 'link-warning' to 'snippet/link-warning'.
6819         * modules/snippet/link-warning: Renamed from modules/link-warning.
6820         (Files, Makefile.am): Update.
6821         * build-aux/snippet/link-warning.h: Renamed from
6822         build-aux/link-warning.h.
6823         * MODULES.html.sh (Support for building libraries and executables):
6824         Update.
6825
6826         Rename module 'c++defs' to 'snippet/c++defs'.
6827         * modules/snippet/c++defs: Renamed from modules/c++defs.
6828         (Files, Makefile.am): Update.
6829         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6830         * modules/arpa_inet (Depends-on): Update.
6831         * modules/ctype (Depends-on): Update.
6832         * modules/dirent (Depends-on): Update.
6833         * modules/fcntl-h (Depends-on): Update.
6834         * modules/glob (Depends-on): Update.
6835         * modules/iconv-h (Depends-on): Update.
6836         * modules/langinfo (Depends-on): Update.
6837         * modules/locale (Depends-on): Update.
6838         * modules/math (Depends-on): Update.
6839         * modules/netdb (Depends-on): Update.
6840         * modules/poll-h (Depends-on): Update.
6841         * modules/pty (Depends-on): Update.
6842         * modules/search (Depends-on): Update.
6843         * modules/signal (Depends-on): Update.
6844         * modules/spawn (Depends-on): Update.
6845         * modules/stdio (Depends-on): Update.
6846         * modules/stdlib (Depends-on): Update.
6847         * modules/string (Depends-on): Update.
6848         * modules/strings (Depends-on): Update.
6849         * modules/sys_ioctl (Depends-on): Update.
6850         * modules/sys_select (Depends-on): Update.
6851         * modules/sys_socket (Depends-on): Update.
6852         * modules/sys_stat (Depends-on): Update.
6853         * modules/sys_time (Depends-on): Update.
6854         * modules/sys_wait (Depends-on): Update.
6855         * modules/termios (Depends-on): Update.
6856         * modules/time (Depends-on): Update.
6857         * modules/unistd (Depends-on): Update.
6858         * modules/wchar (Depends-on): Update.
6859         * modules/wctype-h (Depends-on): Update.
6860
6861         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6862         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6863         (Files, Makefile.am): Update.
6864         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6865         * modules/argv-iter (Depends-on): Update.
6866         * modules/arpa_inet (Depends-on): Update.
6867         * modules/dirent (Depends-on): Update.
6868         * modules/fcntl-h (Depends-on): Update.
6869         * modules/fnmatch (Depends-on): Update.
6870         * modules/getopt-posix (Depends-on): Update.
6871         * modules/glob (Depends-on): Update.
6872         * modules/iconv-h (Depends-on): Update.
6873         * modules/inttypes-incomplete (Depends-on): Update.
6874         * modules/locale (Depends-on): Update.
6875         * modules/math (Depends-on): Update.
6876         * modules/netdb (Depends-on): Update.
6877         * modules/search (Depends-on): Update.
6878         * modules/signal (Depends-on): Update.
6879         * modules/spawn (Depends-on): Update.
6880         * modules/stdio (Depends-on): Update.
6881         * modules/stdlib (Depends-on): Update.
6882         * modules/string (Depends-on): Update.
6883         * modules/strings (Depends-on): Update.
6884         * modules/sys_socket (Depends-on): Update.
6885         * modules/sys_stat (Depends-on): Update.
6886         * modules/sys_time (Depends-on): Update.
6887         * modules/sys_times (Depends-on): Update.
6888         * modules/sys_utsname (Depends-on): Update.
6889         * modules/time (Depends-on): Update.
6890         * modules/unistd (Depends-on): Update.
6891         * modules/wchar (Depends-on): Update.
6892         * MODULES.html.sh (Support for building libraries and executables):
6893         Update.
6894
6895 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6896
6897         Improvements on _Noreturn and related modules.
6898
6899         modules/_Exit-tests: test _Noreturn too
6900         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6901         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6902         (main): Use them.
6903
6904         stdnoreturn, stdnoreturn-tests: remove modules
6905         They're not needed here and a bit premature for use elsewhere.  See
6906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6907         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6908         * tests/test-stdnoreturn.c: Remove files.
6909         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6910         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6911         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6912         and using noreturn.
6913         * modules/openat, modules/sigpipe-die, modules/xalloc:
6914         * modules/xmemdup0, modules/xstrtol:
6915         Remove dependency on stdnoreturn.
6916
6917         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6918         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6919         Reparenthesize to avoid GCC warning.
6920         Support Microsoft's syntax.
6921         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6922
6923         _Noreturn-tests: remove module
6924         * modules/_Noreturn-tests: Remove.
6925         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6926         * tests/test-_Noreturn.c: Remove.
6927         * tests/test-stdnoreturn.c: Merge from the old
6928         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6929
6930 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6931
6932         _Noreturn, stdnoreturn, and related modules.
6933
6934         * top/maint.mk: Adjust to new noreturn support.
6935         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6936         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6937
6938         xalloc: use stdnoreturn.h
6939         * lib/xalloc.h: Include <stdnoreturn.h>.
6940         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6941         * modules/xalloc (Depends-on): Add stdnoreturn.
6942
6943         xstrtol: use stdnoreturn.h
6944         * lib/xstrtol.h: Include <stdnoreturn.h>.
6945         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6946         * modules/xstrtol (Depends-on): Add stdnoreturn.
6947
6948         xmemdup0: use stdnoreturn.h
6949         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6950         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6951         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6952
6953         sigpipe-die: use stdnoreturn.h
6954         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6955         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6956         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6957
6958         openat: use stdnoreturn.h
6959         * lib/openat.h: Include <stdnoreturn.h>.
6960         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6961         * modules/openat (Depends-on): Add stdnoreturn.
6962
6963         * lib/openat-die.c (openat_save_fail): Modernize comment.
6964
6965         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6966
6967         * lib/glthread/thread.h: Modernize comment.
6968
6969         obstack: use _Noreturn
6970         * lib/obstack.c (__attribute__): Remove macro.
6971         (print_and_abort): Use _Noreturn.
6972
6973         c-stack: use _Noreturn
6974         * lib/c-stack.c (die, overflow_handler, segv_handler):
6975         Use _Noreturn rather than __attribute__((noreturn)).
6976
6977         argmatch-tests, exclude_tests: use _Noreturn
6978         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6979         Remove.
6980         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6981
6982         stdlib: use _Noreturn
6983         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6984         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6985         * modules/stdlib (Depends-on): Add _Noreturn.
6986         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6987
6988         stdnoreturn-tests: new module
6989         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6990
6991         stdnoreturn: new module
6992         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6993         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6994
6995         _Noreturn-tests: new module
6996         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6997
6998         _Noreturn: new module
6999         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7000         New section, mentioning it.
7001         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7002
7003         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7004
7005 2011-07-11  Eric Blake  <eblake@redhat.com>
7006
7007         ffs: new module
7008         * modules/ffs: New file.
7009         * m4/ffs.m4: Likewise.
7010         * lib/ffs.c: Likewise.
7011         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7012         * modules/strings (Makefile.am): Substitute witness.
7013         (Depends-on): Add c++defs.
7014         * lib/strings.in.h (ffs): Declare.
7015         * modules/ffs-tests: New test file.
7016         * tests/test-ffs.c: Test new module.
7017         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7018         * doc/posix-functions/ffs.texi (ffs): Likewise.
7019
7020         regex: avoid compiler warning
7021         * lib/regex.c (includes): Include <strings.h>, for use of
7022         strcasecmp in regcomp.c.
7023         Reported by Joachim Schmitz.
7024
7025 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7026
7027         stdint: respect system's intmax_t if INTMAX_MAX
7028         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7029         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7030         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7031         long but int64_t is long long, and where we will clash with the
7032         system intmax_t if we override it.  See
7033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7034         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7035         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7036         similarly for UINTMAX_C.
7037
7038 2011-07-08  Bruno Haible  <bruno@clisp.org>
7039
7040         pthread_sigmask tests: Avoid a compiler warning.
7041         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7042         non-zero.
7043
7044         sigprocmask tests: A better way to avoid a compiler warning.
7045         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7046         (main): Complain if system() returns non-zero.
7047         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7048
7049 2011-07-08  Bruno Haible  <bruno@clisp.org>
7050
7051         pthread_sigmask: Work around IRIX bug.
7052         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7053         bug.
7054         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7055         there may be unblocked pending signals.
7056         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7057
7058 2011-07-08  Bruno Haible  <bruno@clisp.org>
7059
7060         pthread_sigmask: Work around Cygwin bug.
7061         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7062         bug.
7063         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7064         the system's pthread_sigmask function.
7065         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7066
7067 2011-07-08  Bruno Haible  <bruno@clisp.org>
7068
7069         pthread_sigmask: Work around bug in single-threaded implementation.
7070         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7071         FreeBSD, HP-UX, Solaris bug.
7072         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7073         * lib/pthread_sigmask.c: Include <stddef.h>.
7074         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7075         the system's pthread_sigmask function.
7076         * modules/pthread_sigmask (configure.ac): Invoke
7077         gl_PREREQ_PTHREAD_SIGMASK.
7078         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7079         HP-UX, Solaris.
7080
7081 2011-07-08  Eric Blake  <eblake@redhat.com>
7082
7083         test-sigprocmask: avoid compiler warning
7084         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7085         * tests/test-sigprocmask.c (main): Use it to silence warning.
7086         Reported by Jim Meyering.
7087
7088         test-snprintf: avoid compiler warning
7089         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7090         * tests/test-vsnprintf.c (main): Likewise.
7091         Reported by Jim Meyering.
7092
7093 2011-07-08  Bruno Haible  <bruno@clisp.org>
7094
7095         Tests for module 'pthread_sigmask'.
7096         * modules/pthread_sigmask-tests: New file.
7097         * tests/test-pthread_sigmask1.c: New file, based on
7098         tests/test-sigprocmask.c.
7099         * tests/test-pthread_sigmask2.c: New file.
7100
7101 2011-07-08  Jim Meyering  <meyering@redhat.com>
7102
7103         test-getopt.h: avoid warning about an unused variable
7104         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7105
7106 2011-07-07  Jim Meyering  <meyering@redhat.com>
7107
7108         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7109         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7110         now that it no longer contains leading TABs.
7111         Remove unused "url=FIXME" statement.
7112
7113 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7114
7115         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7117         When gl_THREADLIB is not in use, assume that the POSIX sematics
7118         are desired.  This is better for Emacs, which uses POSIX semantics
7119         on GNUish and/or POSIXish platforms, and does not use threads at
7120         all otherwise.
7121
7122         pthread_sigmask: fix typo when testing for libraries
7123         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7124         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7125
7126 2011-07-08  Eric Blake  <eblake@redhat.com>
7127
7128         fts: introduce FTS_NOATIME
7129         * lib/fts_.h (FTS_NOATIME): New bit flag.
7130         (FTS_OPTIONMASK): Adjust.
7131         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7132         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7133
7134 2011-07-08  Bruno Haible  <bruno@clisp.org>
7135
7136         Tests for module 'thread'.
7137         * modules/thread-tests: New file.
7138         * tests/test-thread_self.c: New file.
7139         * tests/test-thread_create.cc: New file.
7140
7141 2011-07-08  Bruno Haible  <bruno@clisp.org>
7142
7143         thread: Avoid gcc warnings when using gl_thread_self().
7144         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7145         'void *'.
7146         (gl_thread_self_pointer): Update.
7147
7148 2011-07-07  Bruno Haible  <bruno@clisp.org>
7149
7150         signal-c++-tests: Check declaration of pthread_sigmask.
7151         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7152         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7153         $(LIB_PTHREAD_SIGMASK).
7154
7155 2011-07-07  Bruno Haible  <bruno@clisp.org>
7156
7157         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7158         * lib/signal.in.h (pthread_sigmask): Override if
7159         REPLACE_PTHREAD_SIGMASK is 1.
7160         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7161         REPLACE_PTHREAD_SIGMASK.
7162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7163         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7164         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7165         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7166         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7167
7168 2011-07-07  Bruno Haible  <bruno@clisp.org>
7169
7170         pthread_sigmask: Ensure declaration in <signal.h>.
7171         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7172         include <pthread.h>.
7173         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7174         problem.
7175
7176 2011-07-07  Bruno Haible  <bruno@clisp.org>
7177
7178         pthread_sigmask: Document the module.
7179         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7180
7181 2011-07-07  Bruno Haible  <bruno@clisp.org>
7182
7183         pthread_sigmask: Follow gnulib conventions.
7184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7185         gl_PTHREAD_SIGMASK.
7186         * modules/pthread_sigmask (configure.ac): Update.
7187
7188 2011-07-07  Bruno Haible  <bruno@clisp.org>
7189
7190         pthread_sigmask: Make declaration C++ safe.
7191         * lib/signal.in.h: In two special conditions, just do an #include_next.
7192         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7193         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7194         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7195         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7196         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7197         not REPLACE_PTHREAD_MASK.
7198         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7199         not REPLACE_PTHREAD_MASK.
7200         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7201
7202 2011-07-07  Bruno Haible  <bruno@clisp.org>
7203
7204         pthread_sigmask: Fix return value.
7205         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7206         * lib/pthread_sigmask.c: New file.
7207         * modules/pthread_sigmask (Files): Add it.
7208         (configure.ac): Invoke AC_LIBOBJ.
7209
7210 2011-07-07  Eric Blake  <eblake@redhat.com>
7211
7212         getopt: more portable argv creation
7213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7214         const, use char arrays rather than strings.
7215         Suggested by Paul Eggert.
7216
7217 2011-07-07  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'sigprocmask'.
7220         * modules/sigprocmask-tests: New file.
7221         * tests/test-sigprocmask.c: New file.
7222
7223 2011-07-07  Bruno Haible  <bruno@clisp.org>
7224
7225         float tests: Tweak.
7226         * tests/test-float.c (main): Tweak skip message.
7227
7228 2011-07-07  Eric Blake  <eblake@redhat.com>
7229
7230         getopt: avoid compiler warning during configure
7231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7232         assigning string literals to non-const pointer.
7233
7234         getopt-gnu: avoid crash in glibc getopt
7235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7236         * tests/test-getopt.h (test_getopt): Enhance test.
7237         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7238         * doc/posix-functions/getopt.texi (getopt): Document it.
7239         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7240         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7241         Likewise.
7242
7243 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7244
7245         getopt: handle W; without long options in getopt [BZ #12922]
7246         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7247         but no long options are defined, just return 'W'.
7248
7249 2011-07-07  Bruno Haible  <bruno@clisp.org>
7250
7251         Avoid literal tabs.
7252         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7253         variable containing a tab instead of a literal tab.
7254         Reported by Jim Meyering.
7255
7256 2011-07-07  Bruno Haible  <bruno@clisp.org>
7257
7258         Comments.
7259         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7260
7261 2011-07-06  Bruno Haible  <bruno@clisp.org>
7262
7263         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7264         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7265         <winsock2.h>.
7266         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7267         lib/sys_socket.in.h.
7268         (close, gethostname): Hide declarations from <winsock2.h>.
7269         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7270         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7271         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7272         (select): Don't override if gnulib's <sys/select.h> was already
7273         included.
7274         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7275         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7276         setsockopt, shutdown, select): Tweak indentation.
7277
7278 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7279
7280         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7281         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7282         in an application that does not use the sys_select module.
7283
7284 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7285
7286         poll: do not return 0 on timeout=-1
7287         * lib/poll.c: Loop with yield if no events occured
7288
7289 2011-07-06  Eric Blake  <eblake@redhat.com>
7290
7291         pthread_sigmask: always replace when not using pthread
7292         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7293         replacement when using some threading other than pthread.  Fix
7294         logic bug.
7295
7296 2011-07-06  Bruno Haible  <bruno@clisp.org>
7297
7298         Comments.
7299         * m4/printf.m4: Update comments about mingw.
7300
7301 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7302
7303         sys_select: define sigset_t more portably
7304         * lib/sys_select.in.h: Always include <sys/types.h>, since
7305         we now need sigset_t and mingw defines it there.
7306         Include <signal.h> before split inclusion guard, to avoid
7307         mishaps on Solaris, whose <signal.h> eventually includes us.
7308         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7309         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7310         which come from ...
7311         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7312         gl_CHECK_TYPE_SIGSET_T.
7313         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7314         does the real work.
7315         * modules/sys_select (Depends-on): Add 'signal'.
7316
7317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7318         Suggested by Bruno Haible.
7319
7320         pselect: Use pthread_sigmask, not sigprocmask.
7321         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7322         multithreaded apps better than sigprocmask does.
7323         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7324         sigprocmask directly.
7325
7326 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7327
7328         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7329         Don't #undef,  since we don't need any underlying pselect.
7330         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7331         (Depends-on): Add select.
7332         (Link): Add $(LIBSOCKET).
7333         These changes suggested by Bruno Haible.
7334
7335         pselect: document better
7336         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7337         * doc/posix-functions/pselect.texi (pselect): Document new module.
7338
7339         pthread_sigmask: new module
7340         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7341         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7342         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7343         This is done only as a macro; I don't know how well that'll
7344         work for C++.  Move <sys/types.h> include before the include_next,
7345         to avoid mishap on Solaris.
7346         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7347         * modules/signal (Makefile.am): Substitute the check's results.
7348         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7349
7350         test-pselect: new module
7351         * modules/pselect-tests, tests/test-pselect.c: New files.
7352         * tests/test-select.c, tests/test-sys_select-c++.cc:
7353         If TEST_PSELECT is defined, test pselect instead of testing select.
7354
7355         * tests/test-sys_select.c (sigset_t): Test for it, too.
7356         Suggested by Bruno Haible.
7357
7358 2011-07-05  Eric Blake  <eblake@redhat.com>
7359
7360         snprintf: guarantee %1$d, for libintl
7361         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7363         * doc/posix-functions/snprintf.texi (snprintf): Update.
7364         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7365         * tests/test-snprintf.c (main): Enhance test.
7366         * tests/test-vsnprintf.c (main): Likewise.
7367
7368 2011-07-05  Jim Meyering  <meyering@redhat.com>
7369
7370         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7371         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7372         per Bruno's request, to accommodate this idiom (no space after "#")
7373         even when the function is inside an #if block:
7374         char *
7375         gets (char *s)
7376         #undef gets
7377         {
7378           ...
7379         }
7380
7381 2011-07-04  Jim Meyering  <meyering@redhat.com>
7382
7383         maint: indent with spaces, not TABs, and add a rule to check this
7384         * tests/test-userspec.c: Indent with spaces, not TABs.
7385         * tests/test-argp.c: Likewise.
7386         * tests/test-c-stack2.sh: Likewise.
7387         * tests/test-parse-duration.sh: Likewise
7388         * m4/strtod.m4: Likewise.
7389         * m4/alloca.m4: Likewise.
7390         * m4/pselect.m4: Likewise.
7391         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7392
7393 2011-07-03  Jim Meyering  <meyering@redhat.com>
7394
7395         maint.mk: correct omissions in prohibit_argmatch_without_use check
7396         This rule would mistakenly report that argmatch.h is included without
7397         use even when both the argmatch and invalid_arg macro were used.
7398         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7399         of argmatch and invalid_arg.
7400
7401 2011-07-03  Bruno Haible  <bruno@clisp.org>
7402
7403         Comments about EINTR.
7404         * lib/safe-read.h: Explain the purpose of this module.
7405         * lib/safe-write.h: Likewise.
7406         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7407         module.
7408         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7409         module.
7410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7411
7412 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7413
7414         xnanosleep: Rewrite to use new dtotimespec module.
7415         It has the conversion code that used to be in xnanosleep.
7416         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7417         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7418         (TIME_T_MAX): Remove.
7419         (xnanosleep): Rewrite in terms of dtotimespec.
7420         * modules/xnanosleep (Depends-on): Add dtotimespec.
7421         Remove intprops, stdbool.
7422
7423         timespec-add, timespec-sub: new modules
7424         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7425         * lib/timespec-add.c, lib/timespec-sub.c:
7426         * modules/timespec-add, modules/timespec-sub: New files.
7427
7428         dtotimespec: new module
7429         * lib/timespec.h (dtotimespec): New decl.
7430         * lib/dtotimespec.c, modules/dtotimespec: New files.
7431
7432         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7433
7434         pselect: new module
7435         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7436         (pselect): New decls.
7437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7438         since the standard pselect decl uses 'restrict'.
7439         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7440         HAVE_PSELECT, REPLACE_PSELECT.
7441         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7442         HAVE_PSELECT, REPLACE_PSELECT.
7443         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7444
7445         sys_select: don't depend on sys_socket
7446         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7448         This fix works on GNU and GNU-like platforms, but has not been tested
7449         on native Windows.
7450         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7452         gl_HEADER_SYS_SOCKET.
7453         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7454         gl_PREREQ_SYS_H_WINSOCK2.
7455
7456 2011-06-29  Eric Blake  <eblake@redhat.com>
7457
7458         pipe2: fix C89 compile problem
7459         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7460         Reported by Bruno Haible.
7461
7462         pipe, pipe2: don't corrupt fd on error
7463         * lib/pipe.c (pipe): Leave fd unchanged on error.
7464         * lib/pipe2.c (pipe2): Likewise.
7465         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7466         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7467
7468 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7469
7470         mmap-anon: do not use regular expressions inadvertently
7471         * m4/mmap-anon.m4: Remove trailing period from strings sought
7472         in the output.
7473
7474 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7475
7476         nanosleep: fix integer overflow problem
7477         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7478         arithmetic wraps around on overflow.
7479
7480         nanosleep: simplify carrying
7481         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7482         first call to the underyling nanosleep, not for the last one.
7483         This doesn't fix any bugs, but it simplifies the computation of
7484         the remaining delay.  Found while auditing integer overflow issues.
7485
7486         dup2: remove test for existence of fcntl
7487         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7488         "#if HAVE_FCNTL", in the configure-time test program.
7489         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7490         and therefore speeds up "configure" a bit.  Found while
7491         adding the dup2 module to Emacs.
7492
7493 2011-06-24  Eric Blake  <eblake@redhat.com>
7494
7495         maint.mk: enhance useless header checks
7496         * top/maint.mk (_sc_header_without_use): Check both include
7497         styles.
7498         (sc_prohibit_assert_without_use)
7499         (sc_prohibit_close_stream_without_use)
7500         (sc_prohibit_getopt_without_use)
7501         (sc_prohibit_quotearg_without_use)
7502         (sc_prohibit_quote_without_use)
7503         (sc_prohibit_long_options_without_use)
7504         (sc_prohibit_inttostr_without_use)
7505         (sc_prohibit_ignore_value_without_use)
7506         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7507         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7508         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7509         (sc_prohibit_hash_pjw_without_use)
7510         (sc_prohibit_safe_read_without_use)
7511         (sc_prohibit_argmatch_without_use)
7512         (sc_prohibit_canonicalize_without_use)
7513         (sc_prohibit_root_dev_ino_without_use)
7514         (sc_prohibit_openat_without_use)
7515         (sc_prohibit_c_ctype_without_use)
7516         (sc_prohibit_signal_without_use)
7517         (sc_prohibit_stdio--_without_use)
7518         (sc_prohibit_stdio-safer_without_use)
7519         (sc_prohibit_strings_without_use)
7520         (sc_prohibit_intprops_without_use)
7521         (sc_prohibit_stddef_without_use)
7522         (sc_prohibit_xfreopen_without_use): Update clients.
7523
7524 2011-06-24  Jim Meyering  <meyering@redhat.com>
7525
7526         syntax-check: keep one maint.mk rule in sync with its header
7527         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7528         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7529         I prefer to avoid temporary files here, so use <(...), but that
7530         is not supported by /bin/sh, so...
7531         (SHELL): Define to /bin/bash.
7532
7533 2011-06-24  Eric Blake  <eblake@redhat.com>
7534
7535         maint.mk: update sc_prohibit_intprops_without_use
7536         * top/maint.mk (_intprops_names): Match recent changes.
7537
7538 2011-06-24  Bruno Haible  <bruno@clisp.org>
7539
7540         strerror-override: No-op tweak.
7541         * lib/strerror-override.h (strerror_override): Reorder conditions,
7542         for consistency with lib/strerror-override.c.
7543
7544 2011-06-23  Eric Blake  <eblake@redhat.com>
7545
7546         maint.mk: test further PATH_MAX issues
7547         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7548         (sc_prohibit_path_max_allocation): ...and also test alloca.
7549         Suggested by Jim Meyering.
7550
7551 2011-06-22  Eric Blake  <eblake@redhat.com>
7552
7553         maint.mk: add syntax-check to avoid char[PATH_MAX]
7554         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7555
7556         stat: be robust to PATH_MAX definition
7557         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7558         * modules/stat (Depends-on): Add verify.
7559
7560         link: work around IRIX bug
7561         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7562         * lib/link.c (rpl_link): Work around it.
7563         * tests/test-link.h (test_link): Enhance test.
7564         * doc/posix-functions/link.texi (link): Document the bug.
7565
7566         getopt: silence clang warning
7567         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7568         dereference.
7569         Reported by Gustavo Martin Domato.
7570
7571 2011-06-22  Jim Meyering  <meyering@redhat.com>
7572
7573         bootstrap: do not insert a blank line into each .gitignore file
7574         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7575
7576 2011-06-21  Eric Blake  <eblake@redhat.com>
7577
7578         perror: test for output mismatch
7579         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7580         perror on IRIX.
7581
7582         strerror_r: fix OpenBSD behavior on out-of-range
7583         * lib/strerror_r.c (strerror_r): Always use maximal string.
7584         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7585
7586         strerror_r: fix OpenBSD behavior on 0
7587         * lib/strerror-override.c (strerror_override): Also override 0
7588         when needed.
7589         * lib/strerror-override.h (strerror_override): Likewise.
7590         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7591         earlier.
7592         * lib/strerror_r.c (strerror_r): Likewise.
7593         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7594         behavior...
7595         (gl_FUNC_STRERROR_0): ...into new macro.
7596         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7597         is overridden.
7598         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7599         * modules/strerror-override (Files): Add strerror.m4.
7600         (configure.ac): Also provide override for 0 when needed.
7601         * doc/posix-functions/strerror.texi (strerror): Document this.
7602         * doc/posix-functions/perror.texi (perror): Likewise.
7603
7604         perror: adjust array size
7605         * modules/perror (Depends-on): Add strerror-override.
7606         * lib/perror.c (perror): Use it to avoid magic number.
7607
7608         strerror-override: reduce size
7609         * lib/strerror-override.c (strerror_override): Use fewer lines.
7610
7611 2011-06-20  Bruno Haible  <bruno@clisp.org>
7612
7613         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7614         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7615
7616 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         alloca: port to compilers that can optimize like GCC 4.6.0
7619         * lib/alloca.c (find_stack_direction): New signature, taken from
7620         Autoconf git.  This works with GCC 4.6.0.  This code should never
7621         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7622         be used with other compilers that optimize as well as GCC 4.6.0 does.
7623         (alloca): Adjust to new signature.
7624         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7625         New macro, which patches Autoconf in a similar way.
7626
7627         c-stack: stop worrying about stack direction
7628         * lib/c-stack.c (find_stack_direction): Remove.
7629         (segv_handler): Don't worry about stack direction growth, as it's
7630         too much of a pain to configure this correctly, given how compilers
7631         are optimizing-away our stack-growth detection code.  Instead, assume
7632         that any access to just before or just after the stack is OK.
7633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7634         Don't require AC_FUNC_ALLOCA; no longer needed.
7635
7636 2011-06-20  Eric Blake  <eblake@redhat.com>
7637
7638         test-stat: don't allocate PATH_MAX bytes
7639         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7640         PATH_MAX-sized buffer.
7641         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7642         * modules/stat-tests (Depends-on): Likewise.
7643         * tests/test-fstatat.c (includes): Drop pathmax.h.
7644         * tests/test-stat.c (includes): Likewise.
7645         Reported by Bruno Haible.
7646
7647 2011-06-20  Bruno Haible  <bruno@clisp.org>
7648
7649         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7650         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7651         * lib/float.c: New file.
7652         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7653         REPLACE_FLOAT_LDBL.
7654         * modules/float (Files): Add lib/float.c.
7655         (configure.ac): Invoke AC_LIBOBJ.
7656         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7657
7658 2011-06-20  Bruno Haible  <bruno@clisp.org>
7659
7660         Tests for module 'float'.
7661         * modules/float-tests: New file.
7662         * tests/test-float.c: New file.
7663
7664 2011-06-19  Bruno Haible  <bruno@clisp.org>
7665
7666         isinf: Coding style.
7667         * lib/isinf.c: Use GNU coding style.
7668
7669 2011-06-19  Bruno Haible  <bruno@clisp.org>
7670
7671         linkat test: Avoid test failure on AIX 7.1.
7672         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7673         * tests/test-link.h (test_link): Likewise.
7674
7675 2011-06-19  Bruno Haible  <bruno@clisp.org>
7676
7677         pread test: Avoid test failure on OpenBSD 4.9.
7678         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7679
7680 2011-06-19  Bruno Haible  <bruno@clisp.org>
7681
7682         sprintf-posix: Fix test failure on AIX 7.1.
7683         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7684         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7685         on AIX.
7686         * doc/posix-functions/fprintf.texi: Likewise.
7687         * doc/posix-functions/printf.texi: Likewise.
7688         * doc/posix-functions/snprintf.texi: Likewise.
7689         * doc/posix-functions/sprintf.texi: Likewise.
7690         * doc/posix-functions/vdprintf.texi: Likewise.
7691         * doc/posix-functions/vfprintf.texi: Likewise.
7692         * doc/posix-functions/vprintf.texi: Likewise.
7693         * doc/posix-functions/vsnprintf.texi: Likewise.
7694         * doc/posix-functions/vsprintf.texi: Likewise.
7695
7696 2011-06-19  Bruno Haible  <bruno@clisp.org>
7697
7698         roundl-ieee: Fix test failure on AIX 7.1.
7699         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7700         * doc/posix-functions/roundl.texi: Mention problem with negative
7701         arguments.
7702
7703 2011-06-19  Bruno Haible  <bruno@clisp.org>
7704
7705         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7706         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7707         * doc/posix-functions/round.texi: Mention problem with negative
7708         arguments.
7709         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7710
7711 2011-06-19  Bruno Haible  <bruno@clisp.org>
7712
7713         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7715         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7716         * doc/posix-functions/roundf.texi: Mention problem with negative
7717         arguments.
7718         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7719
7720 2011-06-19  Bruno Haible  <bruno@clisp.org>
7721
7722         ceilf-ieee: Work around bug on MacOS X 10.5.
7723         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7724
7725         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7726         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7727         IEEE compliant, avoid compiler optimizations.
7728         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7729         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7730         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7731         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7732         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7733         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7734         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7736         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7738
7739 2011-06-19  Bruno Haible  <bruno@clisp.org>
7740
7741         ceilf-ieee: Work around bug on AIX 7.1.
7742         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7743         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7744
7745 2011-06-19  Bruno Haible  <bruno@clisp.org>
7746
7747         ceil-ieee: Work around bug on AIX 7.1.
7748         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7749         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7750
7751 2011-06-18  Bruno Haible  <bruno@clisp.org>
7752
7753         fsync test: Avoid test failure on MacOS X and AIX.
7754         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7755         EINVAL.
7756
7757 2011-06-18  Bruno Haible  <bruno@clisp.org>
7758
7759         openat, fdopendir tests: Fix link errors.
7760         * modules/openat-tests (Depends-on): Add progname.
7761         * modules/fdopendir-tests (Depends-on): Likewise.
7762         * tests/test-fchownat.c: Include progname.h.
7763         (main): Call set_program_name.
7764         * tests/test-fstatat.c: Include progname.h.
7765         (main): Call set_program_name.
7766         * tests/test-mkdirat.c: Include progname.h.
7767         (main): Call set_program_name.
7768         * tests/test-openat.c: Include progname.h.
7769         (main): Call set_program_name.
7770         * tests/test-unlinkat.c: Include progname.h.
7771         (main): Call set_program_name.
7772         * tests/test-fdopendir.c: Include progname.h.
7773         (main): Call set_program_name.
7774
7775 2011-06-18  Bruno Haible  <bruno@clisp.org>
7776
7777         Doc update.
7778         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7779         HP-UX.
7780         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7781
7782 2011-06-18  Bruno Haible  <bruno@clisp.org>
7783
7784         getcwd tests: Avoid compilation error on HP-UX 11.31.
7785         * modules/getcwd-tests (Depends-on): Add pathmax.
7786         * tests/test-getcwd.c: Include pathmax.h.
7787
7788 2011-06-18  Bruno Haible  <bruno@clisp.org>
7789
7790         isfinite, isinf: Fix link error on AIX 6 and 7.
7791         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7792         needed, also test the macro with a 'float' argument.
7793         * m4/isinf.m4 (gl_ISINF): Likewise.
7794
7795 2011-06-18  Bruno Haible  <bruno@clisp.org>
7796
7797         getloadavg: Don't clobber LIBS. Regression from previous commit.
7798         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7799         AC_CHECK_LIB from here...
7800         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7801         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7802         gl_func_getloadavg_done.
7803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7804
7805 2011-06-18  Bruno Haible  <bruno@clisp.org>
7806
7807         clean-temp: Improve documentation.
7808         * lib/clean-temp.h: Explain better how to use this module.
7809         Reported by John Darrington <john@darrington.wattle.id.au>.
7810
7811 2011-06-17  Bruno Haible  <bruno@clisp.org>
7812
7813         pread, pwrite: Avoid cc warning on AIX.
7814         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7815         (pwrite): Likewise.
7816
7817 2011-06-17  Bruno Haible  <bruno@clisp.org>
7818
7819         spawn-pipe tests: Fix link error.
7820         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7822
7823 2011-06-17  Bruno Haible  <bruno@clisp.org>
7824
7825         Tests: Remove unnecessary dependency.
7826         * modules/canonicalize-tests (Depends-on): Remove progname.
7827         * modules/chown-tests (Depends-on): Likewise.
7828         * modules/dirname-tests (Depends-on): Likewise.
7829         * modules/fdopendir-tests (Depends-on): Likewise.
7830         * modules/fdutimensat-tests (Depends-on): Likewise.
7831         * modules/hash-tests (Depends-on): Likewise.
7832         * modules/lchown-tests (Depends-on): Likewise.
7833         * modules/linkat-tests (Depends-on): Likewise.
7834         * modules/renameat-tests (Depends-on): Likewise.
7835         * modules/spawn-pipe-tests (Depends-on): Likewise.
7836         * modules/utimensat-tests (Depends-on): Likewise.
7837
7838 2011-06-17  Bruno Haible  <bruno@clisp.org>
7839
7840         spawn-pipe tests: Fix link error.
7841         * tests/test-spawn-pipe-child.c: Undefine fflush.
7842
7843 2011-06-17  Bruno Haible  <bruno@clisp.org>
7844
7845         Fix tests link errors.
7846         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7847         * modules/chown-tests (Makefile.am): Don't link test-chown with
7848         LIBINTL.
7849         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7850         LIBINTL.
7851         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7852         LIBINTL.
7853         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7854         LIBINTL.
7855
7856 2011-06-16  Bruno Haible  <bruno@clisp.org>
7857
7858         crypto/gc-sha1: Fix recent regression.
7859         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7860         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7861
7862         crypto/gc-md5: Fix recent regression.
7863         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7864
7865         crypto/gc-md4: Fix recent regression.
7866         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7867         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7868
7869         crypto/gc-arctwo: Fix recent regression.
7870         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7871         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7872
7873         crypto/gc-rijndael: Fix recent regression.
7874         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7875         (configure.ac): Invoke AC_LIBOBJ here.
7876         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7878
7879         crypto/gc-hmac-sha1: Fix recent regression.
7880         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7881         (configure.ac): Invoke AC_LIBOBJ here.
7882         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7884
7885         crypto/gc-hmac-md5: Fix recent regression.
7886         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7887         (configure.ac): Invoke AC_LIBOBJ here.
7888         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7890
7891         crypto/gc-des: Fix recent regression.
7892         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7893         (configure.ac): Invoke AC_LIBOBJ here.
7894         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7896
7897         crypto/gc-arcfour: Fix recent regression.
7898         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7899         (configure.ac): Invoke AC_LIBOBJ here.
7900         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7901         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7902
7903 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7904
7905         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7906         After the 2011-05-21 change, this macro requires
7907         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7908         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7909
7910 2011-06-16  Bruno Haible  <bruno@clisp.org>
7911
7912         fprintftime: Move AC_LIBOBJ invocations to module description.
7913         * m4/fprintftime.m4: Remove file.
7914         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7915         (configure.ac): Remove gl_FPRINTFTIME call.
7916         (Makefile.am): Augment lib_SOURCES.
7917         Reported by Jim Meyering.
7918
7919 2011-06-16  Bruno Haible  <bruno@clisp.org>
7920
7921         tmpfile-safer: Finish 2011-05-23 commit.
7922         * m4/stdio-safer.m4: Really remove file.
7923         Reported by Jim Meyering.
7924
7925 2011-06-16  Bruno Haible  <bruno@clisp.org>
7926
7927         syntax-check: Fix typo.
7928         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7929         printf-posix.m4.
7930         Reported by Jim Meyering.
7931
7932 2011-06-13  Jim Meyering  <meyering@redhat.com>
7933
7934         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7935         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7936
7937 2011-05-23  Bruno Haible  <bruno@clisp.org>
7938
7939         yesno: Move AC_LIBOBJ invocations to module description.
7940         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7941         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7942
7943 2011-05-23  Bruno Haible  <bruno@clisp.org>
7944
7945         xstrtol: Move AC_LIBOBJ invocations to module description.
7946         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7947         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7948
7949 2011-05-23  Bruno Haible  <bruno@clisp.org>
7950
7951         xstrtold: Move AC_LIBOBJ invocations to module description.
7952         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7953         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7954
7955 2011-05-23  Bruno Haible  <bruno@clisp.org>
7956
7957         xstrtod: Move AC_LIBOBJ invocations to module description.
7958         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7959         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7960
7961 2011-05-23  Bruno Haible  <bruno@clisp.org>
7962
7963         xnanosleep: Move AC_LIBOBJ invocations to module description.
7964         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7965         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7966
7967 2011-05-23  Bruno Haible  <bruno@clisp.org>
7968
7969         xgetcwd: Move AC_LIBOBJ invocations to module description.
7970         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7971         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7972
7973 2011-05-23  Bruno Haible  <bruno@clisp.org>
7974
7975         xalloc: Move AC_LIBOBJ invocations to module description.
7976         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7977         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7978
7979 2011-05-23  Bruno Haible  <bruno@clisp.org>
7980
7981         write-any-file: Move AC_LIBOBJ invocations to module description.
7982         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7983         invocation.
7984         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7985
7986 2011-05-23  Bruno Haible  <bruno@clisp.org>
7987
7988         utimens: Move AC_LIBOBJ invocations to module description.
7989         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7990         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7991
7992 2011-05-23  Bruno Haible  <bruno@clisp.org>
7993
7994         utimecmp: Move AC_LIBOBJ invocations to module description.
7995         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7996         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7997
7998 2011-05-23  Bruno Haible  <bruno@clisp.org>
7999
8000         userspec: Move AC_LIBOBJ invocations to module description.
8001         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8002         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8003
8004 2011-05-23  Bruno Haible  <bruno@clisp.org>
8005
8006         unlinkdir: Move AC_LIBOBJ invocations to module description.
8007         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8008         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8009
8010 2011-05-23  Bruno Haible  <bruno@clisp.org>
8011
8012         unistd-safer: Move AC_LIBOBJ invocations to module description.
8013         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8014         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8015
8016 2011-05-23  Bruno Haible  <bruno@clisp.org>
8017
8018         tempname: Move AC_LIBOBJ invocations to module description.
8019         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8020         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8021
8022 2011-05-23  Bruno Haible  <bruno@clisp.org>
8023
8024         strftime: Move AC_LIBOBJ invocations to module description.
8025         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8026         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8027
8028 2011-05-23  Bruno Haible  <bruno@clisp.org>
8029
8030         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8031         * m4/stdlib-safer.m4: Remove file.
8032         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8033         (configure.ac): Remove gl_STDLIB_SAFER call.
8034         (Makefile.am): Augment lib_SOURCES.
8035
8036 2011-05-23  Bruno Haible  <bruno@clisp.org>
8037
8038         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8039         * m4/stdio-safer.m4: Remove file.
8040         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8041         (configure.ac): Remove gl_TMPFILE_SAFER call.
8042         (Makefile.am): Augment lib_SOURCES.
8043
8044 2011-05-23  Bruno Haible  <bruno@clisp.org>
8045
8046         popen-safer: Move AC_LIBOBJ invocations to module description.
8047         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8048         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8049         (configure.ac): Remove gl_POPEN_SAFER call.
8050         (Makefile.am): Augment lib_SOURCES.
8051
8052 2011-05-23  Bruno Haible  <bruno@clisp.org>
8053
8054         freopen-safer: Move AC_LIBOBJ invocations to module description.
8055         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8056         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8057         (configure.ac): Remove gl_FREOPEN_SAFER call.
8058         (Makefile.am): Augment lib_SOURCES.
8059
8060 2011-05-23  Bruno Haible  <bruno@clisp.org>
8061
8062         fopen-safer: Move AC_LIBOBJ invocations to module description.
8063         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8064         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8065         (configure.ac): Remove gl_FOPEN_SAFER call.
8066         (Makefile.am): Augment lib_SOURCES.
8067
8068 2011-05-23  Bruno Haible  <bruno@clisp.org>
8069
8070         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8071         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8072         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8073
8074 2011-05-23  Bruno Haible  <bruno@clisp.org>
8075
8076         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8077         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8078         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8079
8080 2011-05-23  Bruno Haible  <bruno@clisp.org>
8081
8082         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8083         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8084         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8085
8086 2011-05-23  Bruno Haible  <bruno@clisp.org>
8087
8088         settime: Move AC_LIBOBJ invocations to module description.
8089         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8090         * modules/settime (Makefile.am): Augment lib_SOURCES.
8091
8092 2011-05-23  Bruno Haible  <bruno@clisp.org>
8093
8094         savedir: Move AC_LIBOBJ invocations to module description.
8095         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8096         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8097
8098 2011-05-23  Bruno Haible  <bruno@clisp.org>
8099
8100         save-cwd: Move AC_LIBOBJ invocations to module description.
8101         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8102         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8103
8104 2011-05-23  Bruno Haible  <bruno@clisp.org>
8105
8106         same: Move AC_LIBOBJ invocations to module description.
8107         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8108         * modules/same (Makefile.am): Augment lib_SOURCES.
8109
8110 2011-05-23  Bruno Haible  <bruno@clisp.org>
8111
8112         safe-write: Move AC_LIBOBJ invocations to module description.
8113         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8114         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8115         instead of gl_SAFE_WRITE.
8116         (Makefile.am): Augment lib_SOURCES.
8117
8118 2011-05-23  Bruno Haible  <bruno@clisp.org>
8119
8120         safe-read: Move AC_LIBOBJ invocations to module description.
8121         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8122         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8123         of gl_SAFE_READ.
8124         (Makefile.am): Augment lib_SOURCES.
8125
8126 2011-05-23  Bruno Haible  <bruno@clisp.org>
8127
8128         safe-alloc: Move AC_LIBOBJ invocations to module description.
8129         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8130         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8131
8132 2011-05-23  Bruno Haible  <bruno@clisp.org>
8133
8134         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8135         * m4/rijndael.m4: Remove file.
8136         * modules/crypto/rijndael (Files): Remove it.
8137         (configure.ac): Remove gl_RIJNDAEL call.
8138         (Makefile.am): Augment lib_SOURCES.
8139
8140 2011-05-23  Bruno Haible  <bruno@clisp.org>
8141
8142         readtokens: Move AC_LIBOBJ invocations to module description.
8143         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8144         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8145
8146 2011-05-23  Bruno Haible  <bruno@clisp.org>
8147
8148         read-file: Move AC_LIBOBJ invocations to module description.
8149         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8150         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8151         of gl_FUNC_READ_FILE.
8152         (Makefile.am): Augment lib_SOURCES.
8153
8154 2011-05-23  Bruno Haible  <bruno@clisp.org>
8155
8156         quotearg: Move AC_LIBOBJ invocations to module description.
8157         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8158         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8159
8160 2011-05-23  Bruno Haible  <bruno@clisp.org>
8161
8162         quote: Move AC_LIBOBJ invocations to module description.
8163         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8164         * modules/quote (Makefile.am): Augment lib_SOURCES.
8165
8166 2011-05-23  Bruno Haible  <bruno@clisp.org>
8167
8168         posixver: Move AC_LIBOBJ invocations to module description.
8169         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8170         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8171
8172 2011-05-23  Bruno Haible  <bruno@clisp.org>
8173
8174         posixtm: Move AC_LIBOBJ invocations to module description.
8175         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8176         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8177
8178 2011-05-23  Bruno Haible  <bruno@clisp.org>
8179
8180         physmem: Move AC_LIBOBJ invocations to module description.
8181         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8182         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8183
8184 2011-05-23  Bruno Haible  <bruno@clisp.org>
8185
8186         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8187         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8188         invocation.
8189         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8190
8191 2011-05-23  Bruno Haible  <bruno@clisp.org>
8192
8193         mpsort: Move AC_LIBOBJ invocations to module description.
8194         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8195         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8196
8197 2011-05-23  Bruno Haible  <bruno@clisp.org>
8198
8199         modechange: Move AC_LIBOBJ invocations to module description.
8200         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8201         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8202
8203 2011-05-23  Bruno Haible  <bruno@clisp.org>
8204
8205         mkdir-p: Move AC_LIBOBJ invocations to module description.
8206         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8207         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8212         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8213         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8214
8215 2011-05-23  Bruno Haible  <bruno@clisp.org>
8216
8217         mgetgroups: Move AC_LIBOBJ invocations to module description.
8218         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8219         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8220
8221 2011-05-23  Bruno Haible  <bruno@clisp.org>
8222
8223         memxor: Move AC_LIBOBJ invocations to module description.
8224         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8225         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8226
8227 2011-05-23  Bruno Haible  <bruno@clisp.org>
8228
8229         memcoll: Move AC_LIBOBJ invocations to module description.
8230         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8231         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8232
8233 2011-05-23  Bruno Haible  <bruno@clisp.org>
8234
8235         memcasecmp: Move AC_LIBOBJ invocations to module description.
8236         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8237         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8238
8239 2011-05-23  Bruno Haible  <bruno@clisp.org>
8240
8241         crypto/md5: Move AC_LIBOBJ invocations to module description.
8242         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8243         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8244
8245 2011-05-23  Bruno Haible  <bruno@clisp.org>
8246
8247         crypto/md4: Move AC_LIBOBJ invocations to module description.
8248         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8249         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         crypto/md2: Move AC_LIBOBJ invocations to module description.
8254         * m4/md2.m4: Remove file.
8255         * modules/crypto/md2 (Files): Remove it.
8256         (configure.ac): Remove gl_MD2 call.
8257         (Makefile.am): Augment lib_SOURCES.
8258
8259 2011-05-23  Bruno Haible  <bruno@clisp.org>
8260
8261         long-options: Move AC_LIBOBJ invocations to module description.
8262         * m4/long-options.m4: Remove file.
8263         * modules/long-options (Files): Remove it.
8264         (configure.ac): Remove gl_LONG_OPTIONS call.
8265         (Makefile.am): Augment lib_SOURCES.
8266
8267 2011-05-23  Bruno Haible  <bruno@clisp.org>
8268
8269         i-ring: Move AC_LIBOBJ invocations to module description.
8270         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8271         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8272
8273 2011-05-23  Bruno Haible  <bruno@clisp.org>
8274
8275         idcache: Move AC_LIBOBJ invocations to module description.
8276         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8277         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8278
8279 2011-05-23  Bruno Haible  <bruno@clisp.org>
8280
8281         human: Move AC_LIBOBJ invocations to module description.
8282         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8283         * modules/human (Makefile.am): Augment lib_SOURCES.
8284
8285 2011-05-23  Bruno Haible  <bruno@clisp.org>
8286
8287         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8288         * m4/hmac-sha1.m4: Remove file.
8289         * modules/crypto/hmac-sha1 (Files): Remove it.
8290         (configure.ac): Remove gl_HMAC_SHA1 call.
8291         (Makefile.am): Augment lib_SOURCES.
8292
8293 2011-05-23  Bruno Haible  <bruno@clisp.org>
8294
8295         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8296         * m4/hmac-md5.m4: Remove file.
8297         * modules/crypto/hmac-md5 (Files): Remove it.
8298         (configure.ac): Remove gl_HMAC_MD5 call.
8299         (Makefile.am): Augment lib_SOURCES.
8300
8301 2011-05-23  Bruno Haible  <bruno@clisp.org>
8302
8303         hash: Move AC_LIBOBJ invocations to module description.
8304         * m4/hash.m4: Remove file.
8305         * modules/hash (Files): Remove it.
8306         (configure.ac): Remove gl_HASH call.
8307         (Makefile.am): Augment lib_SOURCES.
8308
8309 2011-05-23  Bruno Haible  <bruno@clisp.org>
8310
8311         hard-locale: Move AC_LIBOBJ invocations to module description.
8312         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8313         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8314
8315 2011-05-23  Bruno Haible  <bruno@clisp.org>
8316
8317         getugroups: Move AC_LIBOBJ invocations to module description.
8318         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8319         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8320
8321 2011-05-23  Bruno Haible  <bruno@clisp.org>
8322
8323         gettime: Move AC_LIBOBJ invocations to module description.
8324         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8325         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8326
8327 2011-05-23  Bruno Haible  <bruno@clisp.org>
8328
8329         getndelim2: Move AC_LIBOBJ invocations to module description.
8330         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8331         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8332
8333 2011-05-23  Bruno Haible  <bruno@clisp.org>
8334
8335         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8336         * m4/gc-pbkdf2-sha1.m4: Remove file.
8337         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8338         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8339         (Makefile.am): Augment lib_SOURCES.
8340
8341 2011-05-23  Bruno Haible  <bruno@clisp.org>
8342
8343         fts: Move AC_LIBOBJ invocations to module description.
8344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8345         * modules/fts (configure.ac): ... to here.
8346
8347 2011-05-23  Bruno Haible  <bruno@clisp.org>
8348
8349         file-type: Move AC_LIBOBJ invocations to module description.
8350         * m4/file-type.m4: Remove file.
8351         * modules/file-type (Files): Remove it.
8352         (configure.ac): Remove gl_FILE_TYPE call.
8353         (Makefile.am): Augment lib_SOURCES.
8354
8355 2011-05-23  Bruno Haible  <bruno@clisp.org>
8356
8357         filenamecat*: Respect rules for use of AC_LIBOBJ.
8358         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8359         Remove AC_LIBOBJ invocation.
8360         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8361         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8362
8363 2011-05-23  Bruno Haible  <bruno@clisp.org>
8364
8365         filemode: Move AC_LIBOBJ invocations to module description.
8366         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8367         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8368
8369 2011-05-23  Bruno Haible  <bruno@clisp.org>
8370
8371         openat-safer: Move AC_LIBOBJ invocations to module description.
8372         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8373         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8374
8375 2011-05-23  Bruno Haible  <bruno@clisp.org>
8376
8377         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8378         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8379         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8380
8381 2011-05-23  Bruno Haible  <bruno@clisp.org>
8382
8383         exclude: Move AC_LIBOBJ invocations to module description.
8384         * m4/exclude.m4: Remove file.
8385         * modules/exclude (Files): Remove it.
8386         (configure.ac): Remove gl_EXCLUDE call.
8387         (Makefile.am): Augment lib_SOURCES.
8388
8389 2011-05-23  Bruno Haible  <bruno@clisp.org>
8390
8391         dirname*: Respect rules for use of AC_LIBOBJ.
8392         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8393         invocations.
8394         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8395         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8396
8397 2011-05-23  Bruno Haible  <bruno@clisp.org>
8398
8399         dirent-safer: Move AC_LIBOBJ invocations to module description.
8400         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8401         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8402
8403 2011-05-23  Bruno Haible  <bruno@clisp.org>
8404
8405         crypto/des: Move AC_LIBOBJ invocations to module description.
8406         * m4/des.m4: Remove file.
8407         * modules/crypto/des (Files): Remove it.
8408         (configure.ac): Remove gl_DES call.
8409         (Makefile.am): Augment lib_SOURCES.
8410
8411 2011-05-23  Bruno Haible  <bruno@clisp.org>
8412
8413         cycle-check: Move AC_LIBOBJ invocations to module description.
8414         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8415         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8416
8417 2011-05-23  Bruno Haible  <bruno@clisp.org>
8418
8419         c-strtold: Move AC_LIBOBJ invocations to module description.
8420         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8421         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8422
8423 2011-05-23  Bruno Haible  <bruno@clisp.org>
8424
8425         c-strtod: Move AC_LIBOBJ invocations to module description.
8426         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8427         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8428
8429 2011-05-23  Bruno Haible  <bruno@clisp.org>
8430
8431         crc: Move AC_LIBOBJ invocations to module description.
8432         * m4/crc.m4: Remove file.
8433         * modules/crc (Files): Remove it.
8434         (configure.ac): Remove gl_CRC call.
8435         (Makefile.am): Augment lib_SOURCES.
8436
8437 2011-05-23  Bruno Haible  <bruno@clisp.org>
8438
8439         close-stream: Move AC_LIBOBJ invocations to module description.
8440         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8441         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8442
8443 2011-05-23  Bruno Haible  <bruno@clisp.org>
8444
8445         closeout: Move AC_LIBOBJ invocations to module description.
8446         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8447         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8448
8449 2011-05-23  Bruno Haible  <bruno@clisp.org>
8450
8451         closein: Move AC_LIBOBJ invocations to module description.
8452         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8453         * modules/closein (Makefile.am): Augment lib_SOURCES.
8454
8455 2011-05-23  Bruno Haible  <bruno@clisp.org>
8456
8457         cloexec: Move AC_LIBOBJ invocations to module description.
8458         * m4/cloexec.m4: Remove file.
8459         * modules/cloexec (Files): Remove it.
8460         (configure.ac): Remove gl_CLOEXEC call.
8461         (Makefile.am): Augment lib_SOURCES.
8462
8463 2011-05-23  Bruno Haible  <bruno@clisp.org>
8464
8465         check-version: Move AC_LIBOBJ invocations to module description.
8466         * m4/check-version.m4: Remove file.
8467         * modules/check-version (Files): Remove it.
8468         (configure.ac): Remove gl_CHECK_VERSION call.
8469         (Makefile.am): Augment lib_SOURCES.
8470
8471 2011-05-23  Bruno Haible  <bruno@clisp.org>
8472
8473         chdir-safer: Move AC_LIBOBJ invocations to module description.
8474         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8475         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8476
8477 2011-05-23  Bruno Haible  <bruno@clisp.org>
8478
8479         canonicalize: Move AC_LIBOBJ invocations to module description.
8480         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8481         AC_LIBOBJ invocation.
8482         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8483
8484 2011-05-23  Bruno Haible  <bruno@clisp.org>
8485
8486         canon-host: Move AC_LIBOBJ invocations to module description.
8487         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8488         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8489         instead of gl_CANON_HOST.
8490         (Makefile.am): Augment lib_SOURCES.
8491
8492 2011-05-23  Bruno Haible  <bruno@clisp.org>
8493
8494         backupfile: Move AC_LIBOBJ invocations to module description.
8495         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8496         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8497
8498 2011-05-23  Bruno Haible  <bruno@clisp.org>
8499
8500         argmatch: Move AC_LIBOBJ invocations to module description.
8501         * m4/argmatch.m4: Remove file.
8502         * modules/argmatch (Files): Remove it.
8503         (configure.ac): Remove gl_ARGMATCH call.
8504         (Makefile.am): Augment lib_SOURCES.
8505
8506 2011-05-23  Bruno Haible  <bruno@clisp.org>
8507
8508         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8509         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8510         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8511
8512 2011-05-23  Bruno Haible  <bruno@clisp.org>
8513
8514         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8515         * m4/arcfour.m4: Remove file.
8516         * modules/crypto/arcfour (Files): Remove it.
8517         (configure.ac): Remove gl_ARCFOUR call.
8518         (Makefile.am): Augment lib_SOURCES.
8519
8520 2011-05-22  Bruno Haible  <bruno@clisp.org>
8521
8522         write: Move AC_LIBOBJ invocations to module description.
8523         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8524         * modules/write (configure.ac): ... to here.
8525
8526 2011-05-22  Bruno Haible  <bruno@clisp.org>
8527
8528         wmemset: Move AC_LIBOBJ invocations to module description.
8529         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8530         here...
8531         * modules/wmemset (configure.ac): ... to here.
8532
8533 2011-05-22  Bruno Haible  <bruno@clisp.org>
8534
8535         wmemmove: Move AC_LIBOBJ invocations to module description.
8536         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8537         here...
8538         * modules/wmemmove (configure.ac): ... to here.
8539
8540 2011-05-22  Bruno Haible  <bruno@clisp.org>
8541
8542         wmemcpy: Move AC_LIBOBJ invocations to module description.
8543         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8544         here...
8545         * modules/wmemcpy (configure.ac): ... to here.
8546
8547 2011-05-22  Bruno Haible  <bruno@clisp.org>
8548
8549         wmemcmp: Move AC_LIBOBJ invocations to module description.
8550         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8551         here...
8552         * modules/wmemcmp (configure.ac): ... to here.
8553
8554 2011-05-22  Bruno Haible  <bruno@clisp.org>
8555
8556         wmemchr: Move AC_LIBOBJ invocations to module description.
8557         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8558         here...
8559         * modules/wmemchr (configure.ac): ... to here.
8560
8561 2011-05-22  Bruno Haible  <bruno@clisp.org>
8562
8563         wcswidth: Move AC_LIBOBJ invocations to module description.
8564         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8565         here...
8566         * modules/wcswidth (configure.ac): ... to here.
8567
8568 2011-05-22  Bruno Haible  <bruno@clisp.org>
8569
8570         wcwidth: Respect rules for use of AC_LIBOBJ.
8571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8572         invocation from here...
8573         * modules/wcwidth (configure.ac): ... to here.
8574         (Depends-on): Update conditions.
8575
8576 2011-05-22  Bruno Haible  <bruno@clisp.org>
8577
8578         wctype: Move AC_LIBOBJ invocations to module description.
8579         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8580         invocation from here...
8581         * modules/wctype (configure.ac): ... to here.
8582         (Depends-on): Update conditions.
8583
8584 2011-05-22  Bruno Haible  <bruno@clisp.org>
8585
8586         wctrans: Move AC_LIBOBJ invocations to module description.
8587         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8588         invocation from here...
8589         * modules/wctrans (configure.ac): ... to here.
8590
8591 2011-05-22  Bruno Haible  <bruno@clisp.org>
8592
8593         wctomb: Move AC_LIBOBJ invocations to module description.
8594         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8595         invocations from here...
8596         * modules/wctomb (configure.ac): ... to here.
8597
8598 2011-05-22  Bruno Haible  <bruno@clisp.org>
8599
8600         wctob: Move AC_LIBOBJ invocations to module description.
8601         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8602         gl_PREREQ_WCTOB invocations from here...
8603         * modules/wctob (configure.ac): ... to here.
8604         (Depends-on): Update conditions.
8605
8606 2011-05-22  Bruno Haible  <bruno@clisp.org>
8607
8608         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8609         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8610         here...
8611         * modules/wcsxfrm (configure.ac): ... to here.
8612
8613 2011-05-22  Bruno Haible  <bruno@clisp.org>
8614
8615         wcstok: Move AC_LIBOBJ invocations to module description.
8616         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8617         * modules/wcstok (configure.ac): ... to here.
8618
8619 2011-05-22  Bruno Haible  <bruno@clisp.org>
8620
8621         wcsstr: Move AC_LIBOBJ invocations to module description.
8622         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8623         * modules/wcsstr (configure.ac): ... to here.
8624
8625 2011-05-22  Bruno Haible  <bruno@clisp.org>
8626
8627         wcsspn: Move AC_LIBOBJ invocations to module description.
8628         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8629         * modules/wcsspn (configure.ac): ... to here.
8630
8631 2011-05-22  Bruno Haible  <bruno@clisp.org>
8632
8633         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8634         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8635         gl_PREREQ_WCSRTOMBS invocations from here...
8636         * modules/wcsrtombs (configure.ac): ... to here.
8637
8638 2011-05-22  Bruno Haible  <bruno@clisp.org>
8639
8640         wcsrchr: Move AC_LIBOBJ invocations to module description.
8641         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8642         here...
8643         * modules/wcsrchr (configure.ac): ... to here.
8644
8645 2011-05-22  Bruno Haible  <bruno@clisp.org>
8646
8647         wcspbrk: Move AC_LIBOBJ invocations to module description.
8648         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8649         here...
8650         * modules/wcspbrk (configure.ac): ... to here.
8651
8652 2011-05-22  Bruno Haible  <bruno@clisp.org>
8653
8654         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8655         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8656         gl_PREREQ_WCSNRTOMBS invocations from here...
8657         * modules/wcsnrtombs (configure.ac): ... to here.
8658
8659 2011-05-22  Bruno Haible  <bruno@clisp.org>
8660
8661         wcsnlen: Move AC_LIBOBJ invocations to module description.
8662         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8663         here...
8664         * modules/wcsnlen (configure.ac): ... to here.
8665
8666 2011-05-22  Bruno Haible  <bruno@clisp.org>
8667
8668         wcsncpy: Move AC_LIBOBJ invocations to module description.
8669         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8670         here...
8671         * modules/wcsncpy (configure.ac): ... to here.
8672
8673 2011-05-22  Bruno Haible  <bruno@clisp.org>
8674
8675         wcsncmp: Move AC_LIBOBJ invocations to module description.
8676         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8677         here...
8678         * modules/wcsncmp (configure.ac): ... to here.
8679
8680 2011-05-22  Bruno Haible  <bruno@clisp.org>
8681
8682         wcsncat: Move AC_LIBOBJ invocations to module description.
8683         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8684         here...
8685         * modules/wcsncat (configure.ac): ... to here.
8686
8687 2011-05-22  Bruno Haible  <bruno@clisp.org>
8688
8689         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8690         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8691         from here...
8692         * modules/wcsncasecmp (configure.ac): ... to here.
8693
8694 2011-05-22  Bruno Haible  <bruno@clisp.org>
8695
8696         wcslen: Move AC_LIBOBJ invocations to module description.
8697         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8698         * modules/wcslen (configure.ac): ... to here.
8699
8700 2011-05-22  Bruno Haible  <bruno@clisp.org>
8701
8702         wcsdup: Move AC_LIBOBJ invocations to module description.
8703         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8704         * modules/wcsdup (configure.ac): ... to here.
8705
8706 2011-05-22  Bruno Haible  <bruno@clisp.org>
8707
8708         wcscspn: Move AC_LIBOBJ invocations to module description.
8709         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8710         here...
8711         * modules/wcscspn (configure.ac): ... to here.
8712
8713 2011-05-22  Bruno Haible  <bruno@clisp.org>
8714
8715         wcscpy: Move AC_LIBOBJ invocations to module description.
8716         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8717         * modules/wcscpy (configure.ac): ... to here.
8718
8719 2011-05-22  Bruno Haible  <bruno@clisp.org>
8720
8721         wcscoll: Move AC_LIBOBJ invocations to module description.
8722         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8723         here...
8724         * modules/wcscoll (configure.ac): ... to here.
8725
8726 2011-05-22  Bruno Haible  <bruno@clisp.org>
8727
8728         wcscmp: Move AC_LIBOBJ invocations to module description.
8729         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8730         * modules/wcscmp (configure.ac): ... to here.
8731
8732 2011-05-22  Bruno Haible  <bruno@clisp.org>
8733
8734         wcschr: Move AC_LIBOBJ invocations to module description.
8735         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8736         * modules/wcschr (configure.ac): ... to here.
8737
8738 2011-05-22  Bruno Haible  <bruno@clisp.org>
8739
8740         wcscat: Move AC_LIBOBJ invocations to module description.
8741         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8742         * modules/wcscat (configure.ac): ... to here.
8743
8744 2011-05-22  Bruno Haible  <bruno@clisp.org>
8745
8746         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8747         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8748         here...
8749         * modules/wcscasecmp (configure.ac): ... to here.
8750
8751 2011-05-22  Bruno Haible  <bruno@clisp.org>
8752
8753         wcrtomb: Move AC_LIBOBJ invocations to module description.
8754         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8755         invocations from here...
8756         * modules/wcrtomb (configure.ac): ... to here.
8757
8758 2011-05-22  Bruno Haible  <bruno@clisp.org>
8759
8760         wcpncpy: Move AC_LIBOBJ invocations to module description.
8761         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8762         here...
8763         * modules/wcpncpy (configure.ac): ... to here.
8764
8765 2011-05-22  Bruno Haible  <bruno@clisp.org>
8766
8767         wcpcpy: Move AC_LIBOBJ invocations to module description.
8768         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8769         * modules/wcpcpy (configure.ac): ... to here.
8770
8771 2011-05-22  Bruno Haible  <bruno@clisp.org>
8772
8773         waitpid: Move AC_LIBOBJ invocations to module description.
8774         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8775         invocation from here...
8776         * modules/waitpid (configure.ac): ... to here.
8777
8778 2011-05-22  Bruno Haible  <bruno@clisp.org>
8779
8780         utimensat: Move AC_LIBOBJ invocations to module description.
8781         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8782         here...
8783         * modules/utimensat (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         usleep: Move AC_LIBOBJ invocations to module description.
8788         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8789         here...
8790         * modules/usleep (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         unlockpt: Move AC_LIBOBJ invocations to module description.
8795         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8796         gl_PREREQ_UNLOCKPT invocations from here...
8797         * modules/unlockpt (configure.ac): ... to here.
8798
8799 2011-05-22  Bruno Haible  <bruno@clisp.org>
8800
8801         unlink: Respect rules for use of AC_LIBOBJ.
8802         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8803         * modules/unlink (configure.ac): ... to here.
8804
8805 2011-05-22  Bruno Haible  <bruno@clisp.org>
8806
8807         uname: Move AC_LIBOBJ invocations to module description.
8808         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8809         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8810         here...
8811         * modules/uname (configure.ac): ... to here.
8812
8813 2011-05-22  Bruno Haible  <bruno@clisp.org>
8814
8815         ttyname_r: Move AC_LIBOBJ invocations to module description.
8816         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8817         gl_PREREQ_TTYNAME_R invocations from here...
8818         * modules/ttyname_r (configure.ac): ... to here.
8819
8820 2011-05-22  Bruno Haible  <bruno@clisp.org>
8821
8822         tsearch: Move AC_LIBOBJ invocations to module description.
8823         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8824         invocations from here...
8825         * modules/tsearch (configure.ac): ... to here.
8826
8827 2011-05-22  Bruno Haible  <bruno@clisp.org>
8828
8829         towctrans: Move AC_LIBOBJ invocations to module description.
8830         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8831         AC_LIBOBJ invocation from here...
8832         * modules/towctrans (configure.ac): ... to here.
8833
8834 2011-05-22  Bruno Haible  <bruno@clisp.org>
8835
8836         tmpfile: Move AC_LIBOBJ invocations to module description.
8837         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8838         invocations from here...
8839         * modules/tmpfile (configure.ac): ... to here.
8840
8841 2011-05-22  Bruno Haible  <bruno@clisp.org>
8842
8843         times: Move AC_LIBOBJ invocations to module description.
8844         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8845         * modules/times (configure.ac): ... to here.
8846
8847 2011-05-22  Bruno Haible  <bruno@clisp.org>
8848
8849         time_r: Move AC_LIBOBJ invocations to module description.
8850         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8851         invocations from here...
8852         * modules/time_r (configure.ac): ... to here.
8853
8854 2011-05-22  Bruno Haible  <bruno@clisp.org>
8855
8856         timegm: Move AC_LIBOBJ invocations to module description.
8857         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8858         invocations from here...
8859         * modules/timegm (configure.ac): ... to here.
8860
8861 2011-05-22  Bruno Haible  <bruno@clisp.org>
8862
8863         tcgetsid: Move AC_LIBOBJ invocations to module description.
8864         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8865         and gl_PREREQ_TCGETSID invocations from here...
8866         * modules/tcgetsid (configure.ac): ... to here.
8867         (Depends-on): Update conditions.
8868
8869 2011-05-22  Bruno Haible  <bruno@clisp.org>
8870
8871         symlinkat: Move AC_LIBOBJ invocations to module description.
8872         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8873         here...
8874         * modules/symlinkat (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         symlink: Move AC_LIBOBJ invocations to module description.
8879         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8880         here...
8881         * modules/symlink (configure.ac): ... to here.
8882
8883 2011-05-22  Bruno Haible  <bruno@clisp.org>
8884
8885         strverscmp: Move AC_LIBOBJ invocations to module description.
8886         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8888         from here...
8889         * modules/strverscmp (configure.ac): ... to here.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         strtok_r: Move AC_LIBOBJ invocations to module description.
8894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8895         and gl_PREREQ_STRTOK_R invocations from here...
8896         * modules/strtok_r (configure.ac): ... to here.
8897         (Depends-on): Update conditions.
8898
8899 2011-05-22  Bruno Haible  <bruno@clisp.org>
8900
8901         strtoumax: Move AC_LIBOBJ invocations to module description.
8902         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8904         from here...
8905         * modules/strtoumax (configure.ac): ... to here.
8906
8907 2011-05-22  Bruno Haible  <bruno@clisp.org>
8908
8909         strtoimax: Move AC_LIBOBJ invocations to module description.
8910         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8912         from here...
8913         * modules/strtoimax (configure.ac): ... to here.
8914
8915 2011-05-22  Bruno Haible  <bruno@clisp.org>
8916
8917         strtoull: Move AC_LIBOBJ invocations to module description.
8918         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8920         from here...
8921         * modules/strtoull (configure.ac): ... to here.
8922
8923 2011-05-22  Bruno Haible  <bruno@clisp.org>
8924
8925         strtoll: Move AC_LIBOBJ invocations to module description.
8926         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8928         here...
8929         * modules/strtoll (configure.ac): ... to here.
8930
8931 2011-05-22  Bruno Haible  <bruno@clisp.org>
8932
8933         strtoul: Move AC_LIBOBJ invocations to module description.
8934         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8935         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8936         * modules/strtoul (configure.ac): ... to here.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         strtol: Move AC_LIBOBJ invocations to module description.
8941         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8942         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8943         * modules/strtol (configure.ac): ... to here.
8944
8945 2011-05-22  Bruno Haible  <bruno@clisp.org>
8946
8947         strtod: Move AC_LIBOBJ invocations to module description.
8948         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8949         invocations from here...
8950         * modules/strtod (configure.ac): ... to here.
8951
8952 2011-05-22  Bruno Haible  <bruno@clisp.org>
8953
8954         strstr*: Move AC_LIBOBJ invocations to module description.
8955         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8956         invocations from here...
8957         * modules/strstr-simple (configure.ac): ... to here.
8958         * modules/strstr (configure.ac): ... and here.
8959
8960 2011-05-22  Bruno Haible  <bruno@clisp.org>
8961
8962         strsignal: Move AC_LIBOBJ invocations to module description.
8963         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8964         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8965         * modules/strsignal (configure.ac): ... to here.
8966         (Depends-on): Update conditions.
8967
8968 2011-05-22  Bruno Haible  <bruno@clisp.org>
8969
8970         strsep: Move AC_LIBOBJ invocations to module description.
8971         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8973         here...
8974         * modules/strsep (configure.ac): ... to here.
8975
8976 2011-05-22  Bruno Haible  <bruno@clisp.org>
8977
8978         strptime: Move AC_LIBOBJ invocations to module description.
8979         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8980         gl_PREREQ_STRPTIME invocations from here...
8981         * modules/strptime (configure.ac): ... to here.
8982
8983 2011-05-22  Bruno Haible  <bruno@clisp.org>
8984
8985         strpbrk: Move AC_LIBOBJ invocations to module description.
8986         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8988         here...
8989         * modules/strpbrk (configure.ac): ... to here.
8990
8991 2011-05-22  Bruno Haible  <bruno@clisp.org>
8992
8993         strnlen: Move AC_LIBOBJ invocations to module description.
8994         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8995         invocations from here...
8996         * modules/strnlen (configure.ac): ... to here.
8997
8998 2011-05-22  Bruno Haible  <bruno@clisp.org>
8999
9000         strndup: Move AC_LIBOBJ invocations to module description.
9001         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9002         invocations from here...
9003         * modules/strndup (configure.ac): ... to here.
9004         (Depends-on): Update conditions.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         strncat: Move AC_LIBOBJ invocations to module description.
9009         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9010         invocations from here...
9011         * modules/strncat (configure.ac): ... to here.
9012
9013 2011-05-22  Bruno Haible  <bruno@clisp.org>
9014
9015         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9016         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9017         invocations from here...
9018         * modules/strdup (configure.ac): ... to here.
9019         * modules/strdup-posix (configure.ac): ... and here.
9020
9021 2011-05-22  Bruno Haible  <bruno@clisp.org>
9022
9023         strcspn: Move AC_LIBOBJ invocations to module description.
9024         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9025         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9026         here...
9027         * modules/strcspn (configure.ac): ... to here.
9028
9029 2011-05-22  Bruno Haible  <bruno@clisp.org>
9030
9031         strchrnul: Move AC_LIBOBJ invocations to module description.
9032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9033         gl_PREREQ_STRCHRNUL invocations from here...
9034         * modules/strchrnul (configure.ac): ... to here.
9035
9036 2011-05-22  Bruno Haible  <bruno@clisp.org>
9037
9038         strcasestr*: Move AC_LIBOBJ invocations to module description.
9039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9040         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9041         * modules/strcasestr-simple (configure.ac): ... to here.
9042         * modules/strcasestr (configure.ac): ... and here.
9043
9044 2011-05-22  Bruno Haible  <bruno@clisp.org>
9045
9046         strcase: Move AC_LIBOBJ invocations to module description.
9047         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9048         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9049         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9050         gl_PREREQ_STRNCASECMP invocations from here...
9051         * modules/strcase (configure.ac): ... to here.
9052
9053 2011-05-22  Bruno Haible  <bruno@clisp.org>
9054
9055         stpncpy: Move AC_LIBOBJ invocations to module description.
9056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9057         here...
9058         * modules/stpncpy (configure.ac): ... to here.
9059
9060 2011-05-22  Bruno Haible  <bruno@clisp.org>
9061
9062         stpcpy: Move AC_LIBOBJ invocations to module description.
9063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9065         here...
9066         * modules/stpcpy (configure.ac): ... to here.
9067
9068 2011-05-21  Bruno Haible  <bruno@clisp.org>
9069
9070         stat: Move AC_LIBOBJ invocations to module description.
9071         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9072         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9073         here...
9074         * modules/stat (configure.ac): ... to here.
9075
9076 2011-05-21  Bruno Haible  <bruno@clisp.org>
9077
9078         sleep: Move AC_LIBOBJ invocations to module description.
9079         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9080         * modules/sleep (configure.ac): ... to here.
9081
9082 2011-05-21  Bruno Haible  <bruno@clisp.org>
9083
9084         signbit: Move AC_LIBOBJ invocations to module description.
9085         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9086         * modules/signbit (configure.ac): ... to here.
9087
9088 2011-05-21  Bruno Haible  <bruno@clisp.org>
9089
9090         sigprocmask: Move AC_LIBOBJ invocations to module description.
9091         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9092         gl_PREREQ_SIGPROMASK invocations from here...
9093         * modules/sigprocmask (configure.ac): ... to here.
9094
9095 2011-05-21  Bruno Haible  <bruno@clisp.org>
9096
9097         sigaction: Move AC_LIBOBJ invocations to module description.
9098         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9099         gl_PREREQ_SIGACTION invocations from here...
9100         * modules/sigaction (configure.ac): ... to here.
9101
9102 2011-05-21  Bruno Haible  <bruno@clisp.org>
9103
9104         sig2str: Move AC_LIBOBJ invocations to module description.
9105         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9107         here...
9108         * modules/sig2str (configure.ac): ... to here.
9109
9110 2011-05-21  Bruno Haible  <bruno@clisp.org>
9111
9112         setlocale: Move AC_LIBOBJ invocations to module description.
9113         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9114         gl_PREREQ_SETLOCALE invocations from here...
9115         * modules/setlocale (configure.ac): ... to here.
9116
9117 2011-05-21  Bruno Haible  <bruno@clisp.org>
9118
9119         unsetenv: Move AC_LIBOBJ invocations to module description.
9120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9121         and gl_PREREQ_UNSETENV invocations from here...
9122         * modules/unsetenv (configure.ac): ... to here.
9123         (Depends-on): Update.
9124
9125 2011-05-21  Bruno Haible  <bruno@clisp.org>
9126
9127         setenv: Move AC_LIBOBJ invocations to module description.
9128         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9129         here...
9130         * modules/setenv (configure.ac): ... to here.
9131
9132 2011-05-21  Bruno Haible  <bruno@clisp.org>
9133
9134         selinux-h: Move AC_LIBOBJ invocations to module description.
9135         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9136         AC_LIBOBJ invocation from here...
9137         * modules/selinux-h (configure.ac): ... to here.
9138
9139 2011-05-21  Bruno Haible  <bruno@clisp.org>
9140
9141         select: Respect rules for use of AC_LIBOBJ.
9142         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9143         here...
9144         * modules/select (configure.ac): ... to here.
9145
9146 2011-05-21  Bruno Haible  <bruno@clisp.org>
9147
9148         scandir: Move AC_LIBOBJ invocations to module description.
9149         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9150         invocations from here...
9151         * modules/scandir (configure.ac): ... to here.
9152
9153 2011-05-21  Bruno Haible  <bruno@clisp.org>
9154
9155         rpmatch: Move AC_LIBOBJ invocations to module description.
9156         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9158         here...
9159         * modules/rpmatch (configure.ac): ... to here.
9160
9161 2011-05-21  Bruno Haible  <bruno@clisp.org>
9162
9163         rmdir: Respect rules for use of AC_LIBOBJ.
9164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9165         * modules/rmdir (configure.ac): ... to here.
9166
9167 2011-05-21  Bruno Haible  <bruno@clisp.org>
9168
9169         renameat: Move AC_LIBOBJ invocations to module description.
9170         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9171         here...
9172         * modules/renameat (configure.ac): ... to here.
9173
9174 2011-05-21  Bruno Haible  <bruno@clisp.org>
9175
9176         rename: Respect rules for use of AC_LIBOBJ.
9177         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9178         here...
9179         * modules/rename (configure.ac): ... to here.
9180
9181 2011-05-21  Bruno Haible  <bruno@clisp.org>
9182
9183         remove: Move AC_LIBOBJ invocations to module description.
9184         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9185         here...
9186         * modules/remove (configure.ac): ... to here.
9187
9188 2011-05-21  Bruno Haible  <bruno@clisp.org>
9189
9190         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9192         macro.
9193         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9194         * modules/relocatable-lib (configure.ac): ... to here.
9195         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9196         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9197
9198 2011-05-21  Bruno Haible  <bruno@clisp.org>
9199
9200         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9201         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9202         here...
9203         * modules/relocatable-prog (configure.ac): ... to here.
9204
9205 2011-05-21  Bruno Haible  <bruno@clisp.org>
9206
9207         regex: Move AC_LIBOBJ invocations to module description.
9208         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9209         invocations from here...
9210         * modules/regex (configure.ac): ... to here.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         realloc-*: Move AC_LIBOBJ invocations to module description.
9215         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9216         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9217         AC_LIBOBJ invocations from here...
9218         * modules/realloc-gnu (configure.ac): ... to here.
9219         * modules/realloc-posix (configure.ac): ... and here.
9220
9221 2011-05-21  Bruno Haible  <bruno@clisp.org>
9222
9223         readutmp: Move AC_LIBOBJ invocations to module description.
9224         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9225         * modules/readutmp (configure.ac): ... to here.
9226
9227 2011-05-21  Bruno Haible  <bruno@clisp.org>
9228
9229         readlinkat: Move AC_LIBOBJ invocations to module description.
9230         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9231         here...
9232         * modules/readlinkat (configure.ac): ... to here.
9233
9234 2011-05-21  Bruno Haible  <bruno@clisp.org>
9235
9236         readlink: Move AC_LIBOBJ invocations to module description.
9237         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9238         gl_PREREQ_READLINK invocations from here...
9239         * modules/readlink (configure.ac): ... to here.
9240
9241 2011-05-21  Bruno Haible  <bruno@clisp.org>
9242
9243         readline: Move AC_LIBOBJ invocations to module description.
9244         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9245         gl_PREREQ_READLINE invocations from here...
9246         * modules/readline (configure.ac): ... to here.
9247
9248 2011-05-21  Bruno Haible  <bruno@clisp.org>
9249
9250         read: Move AC_LIBOBJ invocations to module description.
9251         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9252         * modules/read (configure.ac): ... to here.
9253
9254 2011-05-21  Bruno Haible  <bruno@clisp.org>
9255
9256         rawmemchr: Move AC_LIBOBJ invocations to module description.
9257         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9259         from here...
9260         * modules/rawmemchr (configure.ac): ... to here.
9261
9262 2011-05-21  Bruno Haible  <bruno@clisp.org>
9263
9264         random_r: Move AC_LIBOBJ invocations to module description.
9265         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9266         gl_PREREQ_RANDOM_R invocations from here...
9267         * modules/random_r (configure.ac): ... to here.
9268
9269 2011-05-21  Bruno Haible  <bruno@clisp.org>
9270
9271         pwrite: Move AC_LIBOBJ invocations to module description.
9272         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9273         * modules/pwrite (configure.ac): ... to here.
9274
9275 2011-05-21  Bruno Haible  <bruno@clisp.org>
9276
9277         putenv: Move AC_LIBOBJ invocations to module description.
9278         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9279         * modules/putenv (configure.ac): ... to here.
9280
9281 2011-05-21  Bruno Haible  <bruno@clisp.org>
9282
9283         login_tty: Move AC_LIBOBJ invocations to module description.
9284         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9285         * modules/login_tty (configure.ac): ... to here.
9286
9287 2011-05-21  Bruno Haible  <bruno@clisp.org>
9288
9289         openpty: Move AC_LIBOBJ invocations to module description.
9290         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9291         * modules/openpty (configure.ac): ... to here.
9292
9293 2011-05-21  Bruno Haible  <bruno@clisp.org>
9294
9295         forkpty: Move AC_LIBOBJ invocations to module description.
9296         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9297         * modules/forkpty (configure.ac): ... to here.
9298
9299 2011-05-21  Bruno Haible  <bruno@clisp.org>
9300
9301         ptsname: Move AC_LIBOBJ invocations to module description.
9302         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9303         invocations from here...
9304         * modules/ptsname (configure.ac): ... to here.
9305
9306 2011-05-21  Bruno Haible  <bruno@clisp.org>
9307
9308         pread: Move AC_LIBOBJ invocations to module description.
9309         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9310         * modules/pread (configure.ac): ... to here.
9311
9312 2011-05-21  Bruno Haible  <bruno@clisp.org>
9313
9314         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9315         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9316         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9317         * modules/posix_spawn (configure.ac): ... to here.
9318         * modules/posix_spawnp (configure.ac): ... and here.
9319
9320 2011-05-21  Bruno Haible  <bruno@clisp.org>
9321
9322         popen: Move AC_LIBOBJ invocations to module description.
9323         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9324         invocations from here...
9325         * modules/popen (configure.ac): ... to here.
9326
9327 2011-05-21  Bruno Haible  <bruno@clisp.org>
9328
9329         poll: Move AC_LIBOBJ invocations to module description.
9330         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9331         invocations from here...
9332         * modules/poll (configure.ac): ... to here.
9333
9334 2011-05-21  Bruno Haible  <bruno@clisp.org>
9335
9336         pipe-posix: Move AC_LIBOBJ invocations to module description.
9337         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9338         * modules/pipe-posix (configure.ac): ... to here.
9339
9340 2011-05-21  Bruno Haible  <bruno@clisp.org>
9341
9342         openat: Respect rules for use of AC_LIBOBJ.
9343         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9344         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9345         * modules/openat (configure.ac): ... to here.
9346
9347 2011-05-21  Bruno Haible  <bruno@clisp.org>
9348
9349         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9350         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9351         invocation from here...
9352         * modules/obstack-printf (configure.ac): ... to here.
9353         * modules/obstack-printf-posix (configure.ac): ... and here.
9354
9355 2011-05-21  Bruno Haible  <bruno@clisp.org>
9356
9357         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9358         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9359         from here...
9360         * modules/nl_langinfo (configure.ac): ... to here.
9361
9362 2011-05-21  Bruno Haible  <bruno@clisp.org>
9363
9364         nanosleep: Move AC_LIBOBJ invocations to module description.
9365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9366         gl_PREREQ_NANOSLEEP invocations from here...
9367         * modules/nanosleep (configure.ac): ... to here.
9368
9369 2011-05-21  Bruno Haible  <bruno@clisp.org>
9370
9371         mountlist: Move AC_LIBOBJ invocations to module description.
9372         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9373         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9374         * modules/mountlist (configure.ac): ... to here.
9375
9376 2011-05-21  Bruno Haible  <bruno@clisp.org>
9377
9378         mktime: Respect rules for use of AC_LIBOBJ.
9379         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9380         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9381         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9382         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9383         * modules/mktime (configure.ac): ... to here.
9384         * modules/mktime-internal (configure.ac): ... and here.
9385         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9386
9387 2011-05-21  Bruno Haible  <bruno@clisp.org>
9388
9389         mkstemps: Move AC_LIBOBJ invocations to module description.
9390         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9391         here...
9392         * modules/mkstemps (configure.ac): ... to here.
9393
9394 2011-05-21  Bruno Haible  <bruno@clisp.org>
9395
9396         mkstemp: Move AC_LIBOBJ invocations to module description.
9397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9398         gl_PREREQ_MKSTEMP invocations from here...
9399         * modules/mkstemp (configure.ac): ... to here.
9400
9401 2011-05-21  Bruno Haible  <bruno@clisp.org>
9402
9403         mkostemps: Move AC_LIBOBJ invocations to module description.
9404         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9405         here...
9406         * modules/mkostemps (configure.ac): ... to here.
9407
9408 2011-05-21  Bruno Haible  <bruno@clisp.org>
9409
9410         mkostemp: Move AC_LIBOBJ invocations to module description.
9411         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9412         gl_PREREQ_MKOSTEMP invocations from here...
9413         * modules/mkostemp (configure.ac): ... to here.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         mknod: Move AC_LIBOBJ invocations to module description.
9418         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9419         * modules/mknod (configure.ac): ... to here.
9420
9421 2011-05-21  Bruno Haible  <bruno@clisp.org>
9422
9423         mkfifoat: Move AC_LIBOBJ invocations to module description.
9424         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9425         here...
9426         * modules/mkfifoat (configure.ac): ... to here.
9427
9428 2011-05-21  Bruno Haible  <bruno@clisp.org>
9429
9430         mkfifo: Respect rules for use of AC_LIBOBJ.
9431         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9432         here...
9433         * modules/mkfifo (configure.ac): ... to here.
9434
9435 2011-05-21  Bruno Haible  <bruno@clisp.org>
9436
9437         mkdtemp: Move AC_LIBOBJ invocations to module description.
9438         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9439         invocations from here...
9440         * modules/mkdtemp (configure.ac): ... to here.
9441
9442 2011-05-21  Bruno Haible  <bruno@clisp.org>
9443
9444         mkdir: Move AC_LIBOBJ invocations to module description.
9445         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9446         * modules/mkdir (configure.ac): ... to here.
9447
9448 2011-05-21  Bruno Haible  <bruno@clisp.org>
9449
9450         memset: Move AC_LIBOBJ invocations to module description.
9451         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9453         here...
9454         * modules/memset (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         memrchr: Move AC_LIBOBJ invocations to module description.
9459         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9461         here...
9462         * modules/memrchr (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         mempcpy: Move AC_LIBOBJ invocations to module description.
9467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9469         here...
9470         * modules/mempcpy (configure.ac): ... to here.
9471
9472 2011-05-21  Bruno Haible  <bruno@clisp.org>
9473
9474         memmove: Move AC_LIBOBJ invocations to module description.
9475         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9476         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9477         here...
9478         * modules/memmove (configure.ac): ... to here.
9479
9480 2011-05-21  Bruno Haible  <bruno@clisp.org>
9481
9482         memmem*: Move AC_LIBOBJ invocations to module description.
9483         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9484         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9485         here...
9486         (gl_FUNC_MEMMEM): ... and here...
9487         * modules/memmem-simple (configure.ac): ... to here.
9488         * modules/memmem (configure.ac): ... and here.
9489
9490 2011-05-21  Bruno Haible  <bruno@clisp.org>
9491
9492         memcpy: Move AC_LIBOBJ invocations to module description.
9493         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9495         here...
9496         * modules/memcpy (configure.ac): ... to here.
9497
9498 2011-05-21  Bruno Haible  <bruno@clisp.org>
9499
9500         memcmp: Simplify autoconf macro.
9501         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9502         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9503         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9504
9505 2011-05-21  Bruno Haible  <bruno@clisp.org>
9506
9507         memcmp: Move AC_LIBOBJ invocations to module description.
9508         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9509         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9510         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9511         * modules/memcmp (configure.ac): ... to here.
9512         (Depends-on): Update conditions.
9513
9514 2011-05-21  Bruno Haible  <bruno@clisp.org>
9515
9516         memchr: Respect rules for use of AC_LIBOBJ.
9517         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9518         invocations from here...
9519         * modules/memchr (configure.ac): ... to here.
9520
9521 2011-05-21  Bruno Haible  <bruno@clisp.org>
9522
9523         mbtowc: Move AC_LIBOBJ invocations to module description.
9524         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9525         invocations from here...
9526         * modules/mbtowc (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9531         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9532         gl_PREREQ_MBSRTOWCS invocations from here...
9533         * modules/mbsrtowcs (configure.ac): ... to here.
9534
9535 2011-05-21  Bruno Haible  <bruno@clisp.org>
9536
9537         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9538         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9539         gl_PREREQ_MBSNRTOWCS invocations from here...
9540         * modules/mbsnrtowcs (configure.ac): ... to here.
9541
9542 2011-05-21  Bruno Haible  <bruno@clisp.org>
9543
9544         mbsinit: Move AC_LIBOBJ invocations to module description.
9545         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9546         invocations from here...
9547         * modules/mbsinit (configure.ac): ... to here.
9548
9549 2011-05-21  Bruno Haible  <bruno@clisp.org>
9550
9551         mbrlen: Move AC_LIBOBJ invocations to module description.
9552         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9553         invocations from here...
9554         * modules/mbrlen (configure.ac): ... to here.
9555
9556 2011-05-21  Bruno Haible  <bruno@clisp.org>
9557
9558         mbrtowc: Respect rules for use of AC_LIBOBJ.
9559         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9560         invocations from here...
9561         * modules/mbrtowc (configure.ac): ... to here.
9562
9563 2011-05-21  Bruno Haible  <bruno@clisp.org>
9564
9565         malloc-*: Move AC_LIBOBJ invocations to module description.
9566         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9567         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9568         AC_LIBOBJ invocations from here...
9569         * modules/malloc-gnu (configure.ac): ... to here.
9570         * modules/malloc-posix (configure.ac): ... and here.
9571
9572 2011-05-21  Bruno Haible  <bruno@clisp.org>
9573
9574         lstat, openat: Respect rules for use of AC_LIBOBJ.
9575         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9576         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9577         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9578         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9579         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9580         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9581         here.
9582         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9583
9584 2011-05-21  Bruno Haible  <bruno@clisp.org>
9585
9586         lseek: Move AC_LIBOBJ invocations to module description.
9587         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9588         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9589         * modules/lseek (configure.ac): ... to here.
9590
9591 2011-05-21  Bruno Haible  <bruno@clisp.org>
9592
9593         linkat: Move AC_LIBOBJ invocations to module description.
9594         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9595         here...
9596         * modules/linkat (configure.ac): ... to here.
9597
9598 2011-05-21  Bruno Haible  <bruno@clisp.org>
9599
9600         link: Respect rules for use of AC_LIBOBJ.
9601         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9602         * modules/link (configure.ac): ... to here.
9603
9604 2011-05-21  Bruno Haible  <bruno@clisp.org>
9605
9606         lchown: Move AC_LIBOBJ invocations to module description.
9607         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9608         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9609         * modules/lchown (configure.ac): ... to here.
9610
9611 2011-05-21  Bruno Haible  <bruno@clisp.org>
9612
9613         iswctype: Move AC_LIBOBJ invocations to module description.
9614         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9615         here...
9616         * modules/iswctype (configure.ac): ... to here.
9617
9618 2011-05-21  Bruno Haible  <bruno@clisp.org>
9619
9620         iswblank: Move AC_LIBOBJ invocations to module description.
9621         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9622         here...
9623         * modules/iswblank (configure.ac): ... to here.
9624
9625 2011-05-21  Bruno Haible  <bruno@clisp.org>
9626
9627         atanl: Move AC_LIBOBJ invocations to module description.
9628         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9629         * modules/atanl (configure.ac): ... to here.
9630
9631 2011-05-21  Bruno Haible  <bruno@clisp.org>
9632
9633         acosl: Move AC_LIBOBJ invocations to module description.
9634         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9635         * modules/acosl (configure.ac): ... to here.
9636
9637 2011-05-21  Bruno Haible  <bruno@clisp.org>
9638
9639         asinl: Respect rules for use of AC_LIBOBJ.
9640         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9641         * modules/asinl (configure.ac): ... to here.
9642
9643 2011-05-21  Bruno Haible  <bruno@clisp.org>
9644
9645         tanl: Move AC_LIBOBJ invocations to module description.
9646         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9647         * modules/tanl (configure.ac): ... to here.
9648
9649 2011-05-21  Bruno Haible  <bruno@clisp.org>
9650
9651         cosl: Move AC_LIBOBJ invocations to module description.
9652         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9653         * modules/cosl (configure.ac): ... to here.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         sinl: Move AC_LIBOBJ invocations to module description.
9658         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9659         * modules/sinl (configure.ac): ... to here.
9660
9661 2011-05-21  Bruno Haible  <bruno@clisp.org>
9662
9663         logl: Move AC_LIBOBJ invocations to module description.
9664         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9665         * modules/logl (configure.ac): ... to here.
9666
9667 2011-05-21  Bruno Haible  <bruno@clisp.org>
9668
9669         expl: Move AC_LIBOBJ invocations to module description.
9670         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9671         * modules/expl (configure.ac): ... to here.
9672
9673 2011-05-21  Bruno Haible  <bruno@clisp.org>
9674
9675         roundl: Move AC_LIBOBJ invocations to module description.
9676         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9677         * modules/roundl (configure.ac): ... to here.
9678
9679 2011-05-21  Bruno Haible  <bruno@clisp.org>
9680
9681         round: Move AC_LIBOBJ invocations to module description.
9682         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9683         * modules/round (configure.ac): ... to here.
9684
9685 2011-05-21  Bruno Haible  <bruno@clisp.org>
9686
9687         roundf: Move AC_LIBOBJ invocations to module description.
9688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9689         * modules/roundf (configure.ac): ... to here.
9690
9691 2011-05-21  Bruno Haible  <bruno@clisp.org>
9692
9693         truncl: Move AC_LIBOBJ invocations to module description.
9694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9695         * modules/truncl (configure.ac): ... to here.
9696
9697 2011-05-21  Bruno Haible  <bruno@clisp.org>
9698
9699         trunc: Move AC_LIBOBJ invocations to module description.
9700         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9701         * modules/trunc (configure.ac): ... to here.
9702
9703 2011-05-21  Bruno Haible  <bruno@clisp.org>
9704
9705         truncf: Move AC_LIBOBJ invocations to module description.
9706         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9707         * modules/truncf (configure.ac): ... to here.
9708
9709 2011-05-21  Bruno Haible  <bruno@clisp.org>
9710
9711         ceill: Move AC_LIBOBJ invocations to module description.
9712         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9713         * modules/ceill (configure.ac): ... to here.
9714
9715 2011-05-21  Bruno Haible  <bruno@clisp.org>
9716
9717         ceil: Move AC_LIBOBJ invocations to module description.
9718         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9719         * modules/ceil (configure.ac): ... to here.
9720
9721 2011-05-21  Bruno Haible  <bruno@clisp.org>
9722
9723         ceilf: Move AC_LIBOBJ invocations to module description.
9724         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9725         * modules/ceilf (configure.ac): ... to here.
9726
9727 2011-05-21  Bruno Haible  <bruno@clisp.org>
9728
9729         floorl: Respect rules for use of AC_LIBOBJ.
9730         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9731         * modules/floorl (configure.ac): ... to here.
9732
9733 2011-05-21  Bruno Haible  <bruno@clisp.org>
9734
9735         floor: Respect rules for use of AC_LIBOBJ.
9736         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9737         * modules/floor (configure.ac): ... to here.
9738
9739 2011-05-21  Bruno Haible  <bruno@clisp.org>
9740
9741         floorf: Move AC_LIBOBJ invocations to module description.
9742         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9743         * modules/floorf (configure.ac): ... to here.
9744
9745 2011-05-20  Bruno Haible  <bruno@clisp.org>
9746
9747         sqrtl: Respect rules for use of AC_LIBOBJ.
9748         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9749         * modules/sqrtl (configure.ac): ... to here.
9750
9751 2011-05-20  Bruno Haible  <bruno@clisp.org>
9752
9753         ldexpl: Respect rules for use of AC_LIBOBJ.
9754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9755         * modules/ldexpl (configure.ac): ... to here.
9756
9757 2011-05-20  Bruno Haible  <bruno@clisp.org>
9758
9759         frexpl*: Respect rules for use of AC_LIBOBJ.
9760         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9761         invocation from here...
9762         * modules/frexpl (configure.ac): ... to here.
9763         * modules/frexpl-nolibm (configure.ac): ... and here.
9764
9765 2011-05-20  Bruno Haible  <bruno@clisp.org>
9766
9767         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9768         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9769         invocation from here...
9770         * modules/frexp (configure.ac): ... to here.
9771         * modules/frexp-nolibm (configure.ac): ... and here.
9772
9773 2011-05-20  Bruno Haible  <bruno@clisp.org>
9774
9775         isnan: Respect rules for use of AC_LIBOBJ.
9776         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9777         invocations here.
9778         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9779         REPLACE_ISNAN.
9780         * modules/isnand (configure.ac): Likewise.
9781         * modules/isnanl (configure.ac): Likewise.
9782
9783 2011-05-20  Bruno Haible  <bruno@clisp.org>
9784
9785         isnanl*: Respect rules for use of AC_LIBOBJ.
9786         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9787         invocation from here...
9788         * modules/isnanl (configure.ac): ... to here.
9789         * modules/isnanl-nolibm (configure.ac): ... and here.
9790
9791 2011-05-20  Bruno Haible  <bruno@clisp.org>
9792
9793         isnand*: Move AC_LIBOBJ invocations to module description.
9794         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9795         invocation from here...
9796         * modules/isnand (configure.ac): ... to here.
9797         * modules/isnand-nolibm (configure.ac): ... and here.
9798
9799 2011-05-20  Bruno Haible  <bruno@clisp.org>
9800
9801         isnanf*: Move AC_LIBOBJ invocations to module description.
9802         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9803         invocation from here...
9804         * modules/isnanf (configure.ac): ... to here.
9805         * modules/isnanf-nolibm (configure.ac): ... and here.
9806
9807 2011-05-20  Bruno Haible  <bruno@clisp.org>
9808
9809         isnan*: Separate the AC_LIBOBJ invocations.
9810         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9811         AC_LIBOBJ invocation.
9812         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9813         here.
9814         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9815         AC_LIBOBJ invocation.
9816         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9817         here.
9818         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9819         AC_LIBOBJ invocation.
9820         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9821         here.
9822         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9823
9824 2011-05-08  Bruno Haible  <bruno@clisp.org>
9825
9826         isinf: Move AC_LIBOBJ invocations to module description.
9827         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9828         * modules/isinf (configure.ac): ... to here.
9829
9830 2011-05-08  Bruno Haible  <bruno@clisp.org>
9831
9832         isfinite: Move AC_LIBOBJ invocations to module description.
9833         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9834         * modules/isfinite (configure.ac): ... to here.
9835
9836 2011-05-08  Bruno Haible  <bruno@clisp.org>
9837
9838         isblank: Move AC_LIBOBJ invocations to module description.
9839         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9840         here...
9841         * modules/isblank (configure.ac): ... to here.
9842
9843 2011-05-08  Bruno Haible  <bruno@clisp.org>
9844
9845         isapipe: Move AC_LIBOBJ invocations to module description.
9846         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9847         gl_PREREQ_ISAPIPE invocations from here...
9848         * modules/isapipe (configure.ac): ... to here.
9849         (Depends-on): Update condition.
9850
9851 2011-05-08  Bruno Haible  <bruno@clisp.org>
9852
9853         ioctl: Move AC_LIBOBJ invocations to module description.
9854         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9855         invocations from here...
9856         * modules/ioctl (configure.ac): ... to here.
9857         (Depends-on): Update condition.
9858
9859 2011-05-08  Bruno Haible  <bruno@clisp.org>
9860
9861         imaxdiv: Move AC_LIBOBJ invocations to module description.
9862         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9863         invocations from here...
9864         * modules/imaxdiv (configure.ac): ... to here.
9865
9866 2011-05-08  Bruno Haible  <bruno@clisp.org>
9867
9868         imaxabs: Move AC_LIBOBJ invocations to module description.
9869         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9870         invocations from here...
9871         * modules/imaxabs (configure.ac): ... to here.
9872
9873 2011-05-08  Bruno Haible  <bruno@clisp.org>
9874
9875         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9877         AC_LIBOBJ invocations from here...
9878         * modules/getaddrinfo (configure.ac): ... to here.
9879         (Depends-on): Add conditions.
9880
9881 2011-05-08  Bruno Haible  <bruno@clisp.org>
9882
9883         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9884         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9885         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9886         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9887         (gl_PREREQ_INET_PTON): ... from here.
9888         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9889         gl_PREREQ_INET_PTON here.
9890         (Depends-on): Update condition.
9891
9892 2011-05-08  Bruno Haible  <bruno@clisp.org>
9893
9894         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9896         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9897         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9898         (gl_PREREQ_INET_NTOP): ... from here.
9899         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9900         gl_PREREQ_INET_NTOP here.
9901         (Depends-on): Update condition.
9902
9903 2011-05-08  Bruno Haible  <bruno@clisp.org>
9904
9905         iconv_open: Move AC_LIBOBJ invocations to module description.
9906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9907         AC_LIBOBJ invocations from here...
9908         * modules/iconv_open (configure.ac): ... to here.
9909
9910 2011-05-08  Bruno Haible  <bruno@clisp.org>
9911
9912         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9913         If module 'iconv_open' is among the main modules and module
9914         'iconv_open-utf' is among the tests dependencies, then
9915         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9916         return the special iconv_t values. Therefore iconv() and iconv_close()
9917         must support these special iconv_t values, already in lib, not only in
9918         tests.
9919         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9921         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9922         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9923         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9924         (Depends-on): Add the dependencies of iconv_open-utf.
9925         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9926         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9927         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9928
9929 2011-05-08  Bruno Haible  <bruno@clisp.org>
9930
9931         group-member: Move AC_LIBOBJ invocations to module description.
9932         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9933         gl_PREREQ_GROUP_MEMBER invocations from here...
9934         * modules/group-member (configure.ac): ... to here.
9935
9936 2011-05-08  Bruno Haible  <bruno@clisp.org>
9937
9938         grantpt: Move AC_LIBOBJ invocations to module description.
9939         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9940         invocations from here...
9941         * modules/grantpt (configure.ac): ... to here.
9942
9943 2011-05-08  Bruno Haible  <bruno@clisp.org>
9944
9945         glob: Move AC_LIBOBJ invocations to module description.
9946         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9947         from here...
9948         * modules/glob (configure.ac): ... to here.
9949
9950 2011-05-08  Bruno Haible  <bruno@clisp.org>
9951
9952         getusershell: Move AC_LIBOBJ invocations to module description.
9953         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9954         Move AC_LIBOBJ invocation from here...
9955         * modules/getusershell (configure.ac): ... to here.
9956         (Depends-on): Update condition.
9957
9958 2011-05-08  Bruno Haible  <bruno@clisp.org>
9959
9960         gettimeofday: Move AC_LIBOBJ invocations to module description.
9961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9962         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9963         gl_PREREQ_GETTIMEOFDAY invocations from here...
9964         * modules/gettimeofday (configure.ac): ... to here.
9965
9966 2011-05-08  Bruno Haible  <bruno@clisp.org>
9967
9968         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9969         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9970         just gl_FUNC_TZSET.
9971         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9972         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9973         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9974         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9975
9976 2011-05-08  Bruno Haible  <bruno@clisp.org>
9977
9978         getsubopt: Move AC_LIBOBJ invocations to module description.
9979         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9980         gl_PREREQ_GETSUBOPT invocations from here...
9981         * modules/getsubopt (configure.ac): ... to here.
9982
9983 2011-05-08  Bruno Haible  <bruno@clisp.org>
9984
9985         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9986         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9987         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9988         * modules/getpass-gnu (configure.ac): ... to here.
9989
9990 2011-05-08  Bruno Haible  <bruno@clisp.org>
9991
9992         getpass: Move AC_LIBOBJ invocations to module description.
9993         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9994         gl_PREREQ_GETPASS invocations from here...
9995         * modules/getpass (configure.ac): ... to here.
9996
9997 2011-05-08  Bruno Haible  <bruno@clisp.org>
9998
9999         getpagesize: Move AC_LIBOBJ invocations to module description.
10000         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10001         from here...
10002         * modules/getpagesize (configure.ac): ... to here.
10003
10004 2011-05-08  Bruno Haible  <bruno@clisp.org>
10005
10006         getopt: Move AC_LIBOBJ invocations to module description.
10007         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10008         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10009         invocations from here...
10010         * modules/getopt-gnu (configure.ac): ... to here.
10011         * modules/getopt-posix (configure.ac): ... and here.
10012         (Depends-on): Update condition.
10013
10014 2011-05-08  Bruno Haible  <bruno@clisp.org>
10015
10016         getopt, argp: Respect rules for use of AC_LIBOBJ.
10017         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10018         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10019         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10020         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10021
10022 2011-05-08  Bruno Haible  <bruno@clisp.org>
10023
10024         getlogin_r: Move AC_LIBOBJ invocations to module description.
10025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10026         gl_PREREQ_GETLOGIN_R invocations from here...
10027         * modules/getlogin_r (configure.ac): ... to here.
10028
10029 2011-05-08  Bruno Haible  <bruno@clisp.org>
10030
10031         getlogin: Move AC_LIBOBJ invocations to module description.
10032         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10033         here...
10034         * modules/getlogin (configure.ac): ... to here.
10035
10036 2011-05-08  Bruno Haible  <bruno@clisp.org>
10037
10038         getloadavg: Move AC_LIBOBJ invocations to module description.
10039         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10040         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10041         * modules/getloadavg (configure.ac): ... to here.
10042
10043 2011-05-08  Bruno Haible  <bruno@clisp.org>
10044
10045         gethrxtime: Move AC_LIBOBJ invocations to module description.
10046         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10047         LIB_GETHRXTIME from here...
10048         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10049         invocations from here...
10050         * modules/gethrxtime (configure.ac): ... to here.
10051
10052 2011-05-08  Bruno Haible  <bruno@clisp.org>
10053
10054         gethostname: Move AC_LIBOBJ invocations to module description.
10055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10056         gl_PREREQ_GETHOSTNAME invocations from here...
10057         * modules/gethostname (configure.ac): ... to here.
10058
10059 2011-05-08  Bruno Haible  <bruno@clisp.org>
10060
10061         getgroups: Move AC_LIBOBJ invocations to module description.
10062         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10063         here...
10064         * modules/getgroups (configure.ac): ... to here.
10065
10066 2011-05-08  Bruno Haible  <bruno@clisp.org>
10067
10068         getdtablesize: Move AC_LIBOBJ invocations to module description.
10069         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10070         invocation from here...
10071         * modules/getdtablesize (configure.ac): ... to here.
10072
10073 2011-05-08  Bruno Haible  <bruno@clisp.org>
10074
10075         getdomainname: Move AC_LIBOBJ invocations to module description.
10076         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10077         gl_PREREQ_GETDOMAINNAME invocations from here...
10078         * modules/getdomainname (configure.ac): ... to here.
10079
10080 2011-05-08  Bruno Haible  <bruno@clisp.org>
10081
10082         getline: Move AC_LIBOBJ invocations to module description.
10083         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10084         invocations from here...
10085         * modules/getline (configure.ac): ... to here.
10086
10087 2011-05-08  Bruno Haible  <bruno@clisp.org>
10088
10089         getline: Simplify.
10090         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10091         It's already handled through the module dependency.
10092
10093 2011-05-08  Bruno Haible  <bruno@clisp.org>
10094
10095         getdelim: Move AC_LIBOBJ invocations to module description.
10096         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10097         and gl_PREREQ_GETDELIM invocations from here...
10098         * modules/getdelim (configure.ac): ... to here.
10099         (Depends-on): Fix condition.
10100
10101 2011-05-08  Bruno Haible  <bruno@clisp.org>
10102
10103         getcwd: Move AC_LIBOBJ invocations to module description.
10104         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10105         invocations from here...
10106         * modules/getcwd (configure.ac): ... to here.
10107
10108 2011-05-08  Bruno Haible  <bruno@clisp.org>
10109
10110         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10111         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10112         here...
10113         * modules/getcwd-lgpl (configure.ac): ... to here.
10114
10115 2011-05-07  Bruno Haible  <bruno@clisp.org>
10116
10117         crypto/gc: Move AC_LIBOBJ invocations to module description.
10118         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10119         * modules/crypto/gc (configure.ac): ... to here.
10120
10121 2011-05-07  Bruno Haible  <bruno@clisp.org>
10122
10123         fwriting: Move AC_LIBOBJ invocations to module description.
10124         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10125         here...
10126         * modules/fwriting (configure.ac): ... to here.
10127
10128 2011-05-07  Bruno Haible  <bruno@clisp.org>
10129
10130         fwritable: Move AC_LIBOBJ invocations to module description.
10131         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10132         here...
10133         * modules/fwritable (configure.ac): ... to here.
10134
10135 2011-05-07  Bruno Haible  <bruno@clisp.org>
10136
10137         futimens: Move AC_LIBOBJ invocations to module description.
10138         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10139         here...
10140         * modules/futimens (configure.ac): ... to here.
10141
10142 2011-05-07  Bruno Haible  <bruno@clisp.org>
10143
10144         ftruncate: Move AC_LIBOBJ invocations to module description.
10145         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10146         gl_PREREQ_FTRUNCATE invocations from here...
10147         * modules/ftruncate (configure.ac): ... to here.
10148
10149 2011-05-07  Bruno Haible  <bruno@clisp.org>
10150
10151         fsync: Move AC_LIBOBJ invocations to module description.
10152         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10153         invocations from here...
10154         * modules/fsync (configure.ac): ... to here.
10155
10156 2011-05-07  Bruno Haible  <bruno@clisp.org>
10157
10158         fsusage: Move AC_LIBOBJ invocations to module description.
10159         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10160         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10161         * modules/fsusage (configure.ac): ... to here.
10162
10163 2011-05-07  Bruno Haible  <bruno@clisp.org>
10164
10165         freopen: Move AC_LIBOBJ invocations to module description.
10166         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10167         invocations from here...
10168         * modules/freopen (configure.ac): ... to here.
10169
10170 2011-05-07  Bruno Haible  <bruno@clisp.org>
10171
10172         free: Move AC_LIBOBJ invocations to module description.
10173         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10174         invocations from here...
10175         * modules/free (configure.ac): ... to here.
10176
10177 2011-05-07  Bruno Haible  <bruno@clisp.org>
10178
10179         freadable: Move AC_LIBOBJ invocations to module description.
10180         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10181         here...
10182         * modules/freadable (configure.ac): ... to here.
10183
10184 2011-05-07  Bruno Haible  <bruno@clisp.org>
10185
10186         fpurge: Move AC_LIBOBJ invocations to module description.
10187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10188         invocations from here...
10189         * modules/fpurge (configure.ac): ... to here.
10190
10191 2011-05-07  Bruno Haible  <bruno@clisp.org>
10192
10193         fpending: Move AC_LIBOBJ invocations to module description.
10194         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10195         gl_FUNC_FPENDING.
10196         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10197         invocations from here...
10198         * modules/fpending (configure.ac): ... to here.
10199
10200 2011-05-07  Bruno Haible  <bruno@clisp.org>
10201
10202         fopen: Move AC_LIBOBJ invocations to module description.
10203         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10204         invocations from here...
10205         * modules/fopen (configure.ac): ... to here.
10206
10207 2011-05-07  Bruno Haible  <bruno@clisp.org>
10208
10209         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10210         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10211         gl_FUNC_FNMATCH_POSIX.
10212         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10213         invocations from here...
10214         * modules/fnmatch (configure.ac): ... to here.
10215         * modules/fnmatch-gnu (configure.ac): ... and here.
10216
10217 2011-05-07  Bruno Haible  <bruno@clisp.org>
10218
10219         flock: Move AC_LIBOBJ invocations to module description.
10220         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10221         invocations from here...
10222         * modules/flock (configure.ac): ... to here.
10223
10224 2011-05-07  Bruno Haible  <bruno@clisp.org>
10225
10226         fileblocks: Move AC_LIBOBJ invocations to module description.
10227         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10228         gl_PREREQ_FILEBLOCKS invocations from here...
10229         * modules/fileblocks (configure.ac): ... to here.
10230
10231 2011-05-06  Bruno Haible  <bruno@clisp.org>
10232
10233         fflush: Move AC_LIBOBJ invocations to module description.
10234         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10235         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10236         invocations from here...
10237         * modules/fflush (configure.ac): ... to here.
10238
10239 2011-05-06  Bruno Haible  <bruno@clisp.org>
10240
10241         fdopendir: Move AC_LIBOBJ invocations to module description.
10242         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10243         here...
10244         * modules/fdopendir (configure.ac): ... to here.
10245         (Depends-on): Improve conditions.
10246
10247 2011-05-06  Bruno Haible  <bruno@clisp.org>
10248
10249         _Exit: Move AC_LIBOBJ invocations to module description.
10250         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10251         invocations from here...
10252         * modules/_Exit (configure.ac): ... to here.
10253
10254 2011-05-21  Bruno Haible  <bruno@clisp.org>
10255
10256         euidaccess: Respect rules for use of AC_LIBOBJ.
10257         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10259         from here...
10260         * modules/euidaccess (configure.ac): ... to here.
10261
10262 2011-05-06  Bruno Haible  <bruno@clisp.org>
10263
10264         error: Move AC_LIBOBJ invocations to module description.
10265         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10266         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10267         invocations from here...
10268         * modules/error (configure.ac): ... to here.
10269
10270 2011-05-06  Bruno Haible  <bruno@clisp.org>
10271
10272         duplocale: Move AC_LIBOBJ invocations to module description.
10273         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10274         gl_PREREQ_DUPLOCALE invocations from here...
10275         * modules/duplocale (configure.ac): ... to here.
10276
10277 2011-05-05  Bruno Haible  <bruno@clisp.org>
10278
10279         dirfd: Move AC_LIBOBJ invocations to module description.
10280         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10281         gl_FUNC_DIRFD.
10282         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10283         here...
10284         * modules/dirfd (configure.ac): ... to here.
10285         (Depends-on): Fix condition.
10286
10287 2011-05-05  Bruno Haible  <bruno@clisp.org>
10288
10289         chown: Respect rules for use of AC_LIBOBJ.
10290         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10291         * modules/chown (configure.ac): ... to here.
10292
10293 2011-05-05  Bruno Haible  <bruno@clisp.org>
10294
10295         chdir-long: Move AC_LIBOBJ invocations to module description.
10296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10297         gl_PREREQ_CHDIR_LONG invocations from here...
10298         * modules/chdir-long (configure.ac): ... to here.
10299
10300 2011-05-05  Bruno Haible  <bruno@clisp.org>
10301
10302         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10303         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10304         from here...
10305         * modules/canonicalize-lgpl (configure.ac): ... to here.
10306
10307 2011-05-05  Bruno Haible  <bruno@clisp.org>
10308
10309         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10310         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10311         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10312         REPLACE_CALLOC.
10313         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10314         * modules/calloc-gnu (configure.ac): Likewise.
10315
10316 2011-05-05  Bruno Haible  <bruno@clisp.org>
10317
10318         btowc: Move AC_LIBOBJ invocations to module description.
10319         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10320         invocations from here...
10321         * modules/btowc (configure.ac): ... to here.
10322
10323 2011-05-21  Bruno Haible  <bruno@clisp.org>
10324
10325         atexit: Move AC_LIBOBJ invocations to module description.
10326         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10328         here...
10329         * modules/atexit (configure.ac): ... to here.
10330
10331 2011-05-05  Bruno Haible  <bruno@clisp.org>
10332
10333         atoll: Move AC_LIBOBJ invocations to module description.
10334         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10335         invocations from here...
10336         * modules/atoll (configure.ac): ... to here.
10337
10338 2011-05-05  Bruno Haible  <bruno@clisp.org>
10339
10340         argz: Move AC_LIBOBJ invocations to module description.
10341         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10342         * modules/argz (configure.ac): ... to here.
10343
10344 2011-05-05  Bruno Haible  <bruno@clisp.org>
10345
10346         alphasort: Move AC_LIBOBJ invocations to module description.
10347         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10348         gl_PREREQ_ALPHASORT invocations from here...
10349         * modules/alphasort (configure.ac): ... to here.
10350
10351 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10352
10353         verify: new macro verify_expr; verify_true deprecated
10354         * NEWS: Mention this.
10355         * doc/verify.texi (Compile-time Assertions): Document this.
10356         * lib/verify.h (verify_true): Deprecate.
10357         (verify_expr): New macro.
10358         * tests/test-verify.c (function): Test verify_expr.
10359
10360 2011-06-14  Jim Meyering  <meyering@redhat.com>
10361
10362         init.sh: give more portable redirection-related advice in a comment
10363         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10364         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10365         for lots of discussion.  Stefano Lattarini suggested the solution
10366         of putting "9>&2" after the command.  Reported by Bruno Haible.
10367
10368 2011-06-13  Bruno Haible  <bruno@clisp.org>
10369
10370         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10372         'none'.
10373
10374 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         ftoastr: use strtof only if HAVE_STRTOF
10377         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10379         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10380         * modules/ftoastr (configure.ac): Check for strtof.
10381
10382 2011-06-13  Bruno Haible  <bruno@clisp.org>
10383
10384         gnulib-tool: Addendum to 2011-06-08 commit.
10385         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10386         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10387
10388 2011-06-13  Bruno Haible  <bruno@clisp.org>
10389
10390         fseeko: Provide a non-inline replacement of fseek().
10391         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10392         * modules/fseeko (Depends-on): Add fseek.
10393         * modules/fseek (License): Change to LGPLv2+.
10394
10395 2011-06-13  Bruno Haible  <bruno@clisp.org>
10396
10397         ftello: Provide a non-inline replacement of ftell().
10398         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10399         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10400         not have ftello() (such as on mingw).
10401         * modules/ftello (Depends-on): Add ftell.
10402         * modules/ftell (License): Change to LGPLv2+.
10403
10404 2011-05-07  Bruno Haible  <bruno@clisp.org>
10405
10406         ftell: Move AC_LIBOBJ invocations to module description.
10407         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10408         * modules/ftell (configure.ac): ... to here.
10409
10410 2011-05-07  Bruno Haible  <bruno@clisp.org>
10411
10412         ftello: Respect rules for use of AC_LIBOBJ.
10413         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10414         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10415         here...
10416         * modules/ftello (configure.ac): ... to here.
10417
10418 2011-05-07  Bruno Haible  <bruno@clisp.org>
10419
10420         fseeko: Simplify.
10421         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10422         (gl_FUNC_FSEEKO): Inline it here.
10423
10424 2011-05-07  Bruno Haible  <bruno@clisp.org>
10425
10426         fseek: Move AC_LIBOBJ invocations to module description.
10427         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10428         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10429         * modules/fseek (configure.ac): ... to here.
10430
10431 2011-05-07  Bruno Haible  <bruno@clisp.org>
10432
10433         fseek: Respect rules for use of AC_LIBOBJ.
10434         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10435         here...
10436         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10437
10438 2011-05-07  Bruno Haible  <bruno@clisp.org>
10439
10440         fseeko: Respect rules for use of AC_LIBOBJ.
10441         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10442         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10443         here...
10444         * modules/fseeko (configure.ac): ... to here.
10445
10446 2011-06-13  Bruno Haible  <bruno@clisp.org>
10447
10448         gnulib-tool: Allow comments in the 'Depends-on' section.
10449         * doc/gnulib.texi (Module description): Mention comment syntax in the
10450         Depends-on section.
10451         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10452
10453 2011-06-13  Bruno Haible  <bruno@clisp.org>
10454
10455         file-set.h: guard __attibute__ use, now that it's not always defined
10456         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10457         versions that support it.  This fixes a coreutils build failure with
10458         the vendor cc on HP-UX 11.31.
10459
10460 2011-06-12  Bruno Haible  <bruno@clisp.org>
10461
10462         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10463         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10464         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10465         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10466         (acl, aclsort): New declarations.
10467         (aclv_nontrivial): New declaration.
10468         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10469         (file_has_acl): Read also the second kind of HP-UX ACLs.
10470         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10471         kind of HP-UX ACLs if the first kind fails.
10472         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10473         second kind of HP-UX ACLs.
10474         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10475         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10476         agree.
10477         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10478         hpuxjfs.
10479         Handle hpuxjfs.
10480         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10481         hpuxjfs.
10482         Handle hpuxjfs.
10483         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10484         (func_test_same_acls): Use both lsacl and getacl.
10485         Handle hpuxjfs.
10486         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10487         (func_test_same_acls): Use both lsacl and getacl.
10488         Handle hpuxjfs.
10489
10490 2011-06-12  Bruno Haible  <bruno@clisp.org>
10491
10492         acl: Complete the 2010-08-10 fix.
10493         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10494         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10495         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10496         explicitly.
10497         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10498         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10499
10500 2011-06-12  Bruno Haible  <bruno@clisp.org>
10501
10502         spawn-pipe tests: Comments.
10503         * tests/test-spawn-pipe-child.c (main): Update comment.
10504         Reported by James Youngman <jay@gnu.org>.
10505
10506 2011-06-11  James Youngman  <jay@gnu.org>
10507
10508         New module 'stat-size'.
10509         * modules/stat-size: New module.  Provides macros for accessing
10510         file size information in instances of struct stat.  Depends on the
10511         fileblocks module because it calls st_blocks.
10512         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10513         * doc/gnulib.texi: Include stat-size.texi.
10514         * doc/stat-size.texi: Documentation for this module.
10515         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10516         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10517         AC_STRUCT_ST_BLOCKS.
10518
10519 2011-06-09  Bruno Haible  <bruno@clisp.org>
10520
10521         thread: Support pthreads-win32.
10522         * lib/glthread/thread.h (gl_thread_self): Define differently on
10523         pthreads-win32.
10524         (gl_null_thread): New declaration.
10525         (gl_thread_self_pointer): New macro.
10526         * lib/glthread/thread.c (gl_null_thread): New constant.
10527         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10528         gl_thread_self.
10529         * tests/test-tls.c: Likewise.
10530         Suggested by Paul Eggert. Reported by Eric Blake.
10531
10532 2011-06-09  Bruno Haible  <bruno@clisp.org>
10533
10534         thread: Fix confusion between NULL and 0.
10535         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10536         Reported by Paul Eggert.
10537
10538 2011-06-09  Bruno Haible  <bruno@clisp.org>
10539
10540         spawn-pipe tests: Avoid test failure on HP-UX 11.
10541         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10542         is closed.
10543
10544 2011-06-09  Bruno Haible  <bruno@clisp.org>
10545
10546         acl tests: Fix compilation error on HP-UX 11.
10547         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10548
10549 2011-06-09  Bruno Haible  <bruno@clisp.org>
10550
10551         rmdir: Avoid test failure on HP-UX 10.20.
10552         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10553         EEXIST.
10554
10555 2011-06-08  Eric Blake  <eblake@redhat.com>
10556
10557         perror: fix test on mingw
10558         * modules/perror-tests (Depends-on): Add dup2.
10559
10560         strerror_r-posix: fix on MacOS
10561         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10562         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10563         logic bug.
10564         * lib/strerror_r.c (strerror_r): Fix the bug.
10565         * lib/strerror.c (strerror): Likewise.
10566         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10567         problem.
10568         * doc/posix-functions/strerror.texi (strerror): Likewise.
10569         * doc/posix-functions/perror.texi (perror): Likewise.
10570         * tests/test-strerror.c (main): Enhance test.
10571         * tests/test-strerror_r.c (main): Likewise.
10572
10573 2011-06-08  Bruno Haible  <bruno@clisp.org>
10574
10575         gnulib-tool: Better isolation between different gnulib-tool invocations.
10576         * gnulib-tool: New option --witness-c-macro.
10577         (witness_c_macro): New variable.
10578         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10579         AM_CPPFLAGS define it as a C macro.
10580         (func_emit_tests_Makefile_am): Likewise.
10581         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10582         read it from there.
10583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10584         m4_define, not AC_DEFUN.
10585         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10586         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10587         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10588         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10589         s|...|...|, to substitute the values of the GNULIB_* module indicator
10590         variables.
10591         * modules/dirent (Makefile.am): Likewise.
10592         * modules/fcntl-h (Makefile.am): Likewise.
10593         * modules/iconv-h (Makefile.am): Likewise.
10594         * modules/langinfo (Makefile.am): Likewise.
10595         * modules/locale (Makefile.am): Likewise.
10596         * modules/math (Makefile.am): Likewise.
10597         * modules/netdb (Makefile.am): Likewise.
10598         * modules/poll-h (Makefile.am): Likewise.
10599         * modules/pty (Makefile.am): Likewise.
10600         * modules/search (Makefile.am): Likewise.
10601         * modules/signal (Makefile.am): Likewise.
10602         * modules/spawn (Makefile.am): Likewise.
10603         * modules/stdio (Makefile.am): Likewise.
10604         * modules/stdlib (Makefile.am): Likewise.
10605         * modules/string (Makefile.am): Likewise.
10606         * modules/sys_ioctl (Makefile.am): Likewise.
10607         * modules/sys_select (Makefile.am): Likewise.
10608         * modules/sys_socket (Makefile.am): Likewise.
10609         * modules/sys_stat (Makefile.am): Likewise.
10610         * modules/sys_times (Makefile.am): Likewise.
10611         * modules/sys_utsname (Makefile.am): Likewise.
10612         * modules/sys_wait (Makefile.am): Likewise.
10613         * modules/termios (Makefile.am): Likewise.
10614         * modules/time (Makefile.am): Likewise.
10615         * modules/unistd (Makefile.am): Likewise.
10616         * modules/wchar (Makefile.am): Likewise.
10617
10618 2011-06-08  Eric Blake  <eblake@redhat.com>
10619
10620         strerror: simplify replacement
10621         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10622         * modules/strerror (configure.ac): No prereqs needed here...
10623         * modules/strerror-override (configure.ac): ...but this needs it.
10624         (Files): Add file for needed prereq macro.
10625
10626 2011-06-08  Bruno Haible  <bruno@clisp.org>
10627
10628         strerror_r-posix: Tweaks.
10629         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10630         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10631         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10632         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10633         (gl_FUNC_STRERROR_R): ... to here.
10634         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10635
10636 2011-06-07  Eric Blake  <eblake@redhat.com>
10637
10638         perror: document fixed bugs
10639         * doc/posix-functions/perror.texi (perror): Document recent
10640         patches.
10641
10642 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         stat-time: get_stat_birthtime failure is better-defined
10645         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10646         return a timestamp whose tv_sec and tv_nsec values are both -1.
10647         Previously, the spec said only that the tv_nsec value was negative.
10648         This upward-compatible change simplifies GNU tar a bit.
10649
10650 2011-06-07  Eric Blake  <eblake@redhat.com>
10651
10652         strerror_r-posix: work around cygwin 1.7.9
10653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10654         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10655         bug without replacing strerror_r.
10656         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10657         strerror_r is buggy, but without requiring strerror_r compilation.
10658         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10659
10660         test-perror: relax test to ignore cygwin bug
10661         * tests/test-perror2.c (main): Relax test on requiring detection
10662         of stream errors, and use unbuffered stream.
10663         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10664         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10665         * doc/posix-functions/fputc.texi (fputc): Likewise.
10666         * doc/posix-functions/fputs.texi (fputs): Likewise.
10667         * doc/posix-functions/fputws.texi (fputws): Likewise.
10668         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10669         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10670         * doc/posix-functions/getopt.texi (getopt): Likewise.
10671         * doc/posix-functions/perror.texi (perror): Likewise.
10672         * doc/posix-functions/printf.texi (printf): Likewise.
10673         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10674         * doc/posix-functions/psignal.texi (psignal): Likewise.
10675         * doc/posix-functions/putc.texi (putc): Likewise.
10676         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10677         Likewise.
10678         * doc/posix-functions/putchar.texi (putchar): Likewise.
10679         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10680         Likewise.
10681         * doc/posix-functions/puts.texi (puts): Likewise.
10682         * doc/posix-functions/putwc.texi (putwc): Likewise.
10683         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10684         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10685         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10686         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10687         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10688         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10689         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10690         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10691
10692 2011-05-22  Bruno Haible  <bruno@clisp.org>
10693
10694         strerror: Move AC_LIBOBJ invocations to module description.
10695         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10696         gl_PREREQ_STRERROR invocations from here...
10697         * modules/strerror (configure.ac): ... to here.
10698
10699 2011-05-21  Bruno Haible  <bruno@clisp.org>
10700
10701         perror: Use common idiom.
10702         * modules/perror (configure.ac): Reorder statements.
10703
10704 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10705
10706         tests: fix usage message in 'mktempd_'
10707         * tests/init.sh (mktempd_): In the usage message, use literal
10708         'mktempd_', not '$ME' (which is even undefined), as the name of
10709         the subroutine.
10710
10711 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10712
10713         tests init: new function 'fatal_', for hard errors
10714         Before this patch, the only way offered by tests/init.sh to
10715         properly signal a hard error was the `framework_failure_'
10716         function.  But the error message issued by that function,
10717         as its name would suggest, refers to a set-up failure in the
10718         testsuite, while hard errors can obviously also be due to
10719         other reasons.  The best way to fix this inconsistency is to
10720         introduce a new function with a more general error message.
10721         * tests/init.sh (fatal_): New function.
10722
10723 2011-06-06  Eric Blake  <eblake@redhat.com>
10724
10725         canonicalize-lgpl: use common idiom
10726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10727         over newer POSIX -Rf.
10728         Reported by Bruno Haible.
10729
10730         canonicalize-lgpl: work around AIX realpath bug
10731         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10732         * doc/posix-functions/realpath.texi (realpath): Document it.
10733         Reported by Bruno Haible.
10734
10735         strerror: work around FreeBSD bug
10736         * lib/strerror.c (strerror): Special case 0.
10737         Reported by Bruno Haible.
10738
10739         strerror-override: avoid bloating errno module
10740         * modules/errno (Files, configure.ac): Move replacement strings...
10741         * modules/strerror-override: ...to new module.
10742         * modules/strerror (Depends-on): Add strerror-override.
10743         * modules/strerror_r-posix (Depends-on): Likewise.
10744         * MODULES.html.sh: Document new module.
10745         Reported by Bruno Haible.
10746
10747 2011-06-06  Bruno Haible  <bruno@clisp.org>
10748
10749         spawn-pipe tests: Rename program.
10750         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10751         * tests/test-spawn-pipe-child.c: Update comment.
10752         * tests/test-spawn-pipe.sh: Update.
10753         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10754
10755         spawn-pipe tests: Link the child program only against libc.
10756         * tests/test-spawn-pipe-child.c: New file, extracted from
10757         tests/test-spawn-pipe.c.
10758         (main): Expect only one argument.
10759         (is_open): New function, copied from tests/test-pipe.c.
10760         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10761         (child_main): Remove function.
10762         (test_pipe): Pass only one argument to the child program.
10763         (main): Remove child process code. Expect the child program's name as
10764         first argument.
10765         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10766         argument.
10767         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10768         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10769         test-spawn-pipe-child against no libraries.
10770
10771 2011-06-06  Bruno Haible  <bruno@clisp.org>
10772
10773         careadlinkat: Avoid mismatch between ssize_t and int.
10774         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10775         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10776
10777 2011-06-06  Jim Meyering  <meyering@redhat.com>
10778
10779         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10780         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10781         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10782
10783 2011-06-05  Bruno Haible  <bruno@clisp.org>
10784
10785         ansi-c++-opt: Interoperability with libtool.
10786         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10787         set the variable to "no", not to ":".
10788         * NEWS: Mention the change.
10789
10790 2011-06-05  Bruno Haible  <bruno@clisp.org>
10791
10792         acl: Fix test failure on AIX 7.
10793         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10794         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10795
10796 2011-06-05  Bruno Haible  <bruno@clisp.org>
10797
10798         pipe-filter-ii: Fix test failure on AIX and IRIX.
10799         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10800         with EAGAIN, retry with a smaller buffer size.
10801
10802 2011-06-05  Bruno Haible  <bruno@clisp.org>
10803
10804         localename: Fix link dependencies.
10805         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10806         * modules/localename-tests (Makefile.am): Link test-localename with
10807         $(LIBTHREAD).
10808
10809 2011-06-05  Bruno Haible  <bruno@clisp.org>
10810
10811         error: Avoid gcc warning.
10812         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10813
10814 2011-06-05  Bruno Haible  <bruno@clisp.org>
10815
10816         unsetenv: Avoid gcc warning.
10817         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10818
10819 2011-06-05  Bruno Haible  <bruno@clisp.org>
10820
10821         setenv: Avoid gcc warning.
10822         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10823
10824 2011-06-05  Bruno Haible  <bruno@clisp.org>
10825
10826         sys_select: Ensure memset is declared also on AIX 7.
10827         * lib/sys_select.in.h: Include <string.h> also on AIX.
10828         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10829         self-contained also on AIX 7.1.
10830
10831 2011-06-04  Jim Meyering  <meyering@redhat.com>
10832
10833         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10834         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10835         function name, "error".
10836         (_gl_translatable_diag_func_re): New configurable variable.
10837
10838 2011-06-04  Bruno Haible  <bruno@clisp.org>
10839
10840         getopt: Avoid gcc warning.
10841         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10842
10843 2011-06-04  Bruno Haible  <bruno@clisp.org>
10844
10845         strerror_r: Fix comments.
10846         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10847         commit.
10848
10849 2011-06-04  Bruno Haible  <bruno@clisp.org>
10850
10851         perror: Fix compilation error.
10852         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10853         Undefine fprintf, not sprintf.
10854         * modules/perror (Depends-on): Remove intprops, verify.
10855
10856 2011-06-04  Bruno Haible  <bruno@clisp.org>
10857
10858         setlocale: Enable replacement on Cygwin 1.5.
10859         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10860         Cygwin 1.5.x.
10861         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10862         LC_CTYPE category also exists on Cygwin 1.5.x.
10863
10864 2011-06-04  Bruno Haible  <bruno@clisp.org>
10865
10866         strerror-override: Don't disable symbol renamings.
10867         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10868         * lib/strerror-override.c: Include config.h.
10869         (strerror_override): Don't undefine.
10870
10871 2011-06-03  Bruno Haible  <bruno@clisp.org>
10872
10873         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10874         * lib/localename.h: Update copyright header.
10875         * lib/localename.c: Likewise.
10876         * lib/relocatable.h: Likewise.
10877         * lib/relocatable.c: Likewise.
10878
10879 2011-06-02  Bruno Haible  <bruno@clisp.org>
10880
10881         doc: Fix a module name.
10882         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10883
10884 2011-06-02  Bruno Haible  <bruno@clisp.org>
10885
10886         pipe2: Remove dependency on 'nonblocking' module.
10887         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10888         O_NONBLOCK is defined by gnulib.
10889         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10890         is zero.
10891         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10892         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10893         defined by gnulib.
10894         (get_nonblocking_flag): New function.
10895         (main): Test O_NONBLOCK flag only if it is nonzero.
10896         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10897
10898 2011-06-03  Jim Meyering  <meyering@redhat.com>
10899
10900         maint: three new prohibit-header-without-use rules
10901         Prohibit use of cloexec.h, posixver.h, same.h without use.
10902         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10903         (sc_prohibit_posixver_without_use): Likewise.
10904         (sc_prohibit_same_without_use): Likewise.
10905
10906 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10907
10908         allocator: 'die' routine is now given requested size
10909         * lib/allocator.h (struct allocator.die): New size arg.
10910         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10911         If the actual problem is an ssize_t limitation, not a size_t or
10912         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10913
10914 2011-06-01  Eric Blake  <eblake@redhat.com>
10915
10916         strerror: drop strerror_r dependency
10917         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10918         * lib/strerror-override.c (strerror_override): ...to new file.
10919         * lib/strerror-override.h: Add prototype.
10920         * lib/strerror-impl.h: Delete.
10921         * lib/strerror.c (strerror): New implementation.
10922         * modules/errno (Files): Add new files.
10923         (configure.ac): Compile new file as appropriate.
10924         * modules/strerror (Files): Drop unused file.
10925         (Depends-on): Drop strerror_r-posix.
10926         * MODULES.html.sh: Document strerror_r-posix.
10927         Requested by Sam Steingold.
10928
10929         perror: call strerror_r directly
10930         * modules/perror (Files): Drop strerror-impl.h.
10931         * lib/perror.c (perror): Use our own stack buffer, rather than
10932         calling a wrapper that uses static storage.
10933         * doc/posix-functions/perror.texi (perror): Document a limitation
10934         of our replacement.
10935
10936         strerror_r: fix includes for FreeBSD
10937         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10938         since we use abort on some platforms.
10939         Reported by Matthias Bolte.
10940
10941 2011-05-31  Bruno Haible  <bruno@clisp.org>
10942
10943         Fix link errors in tests: openat-die uses gettext-h.
10944         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10945         against $(LIBINTL).
10946         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10947         against $(LIBINTL).
10948         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10949         $(LIBINTL).
10950         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10951         against $(LIBINTL).
10952         * modules/linkat-tests (Makefile.am): Link test-linkat against
10953         $(LIBINTL).
10954         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10955         $(LIBINTL).
10956         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10957         against $(LIBINTL).
10958         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10959         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10960         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10961         $(LIBINTL).
10962         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10963         $(LIBINTL).
10964         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10965         $(LIBINTL).
10966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10967
10968 2011-05-31  Bruno Haible  <bruno@clisp.org>
10969
10970         Fix link errors in tests: wait-process uses gettext-h.
10971         * modules/nonblocking-pipe-tests (Makefile.am): Set
10972         test_nonblocking_pipe_main_LDADD.
10973         * modules/nonblocking-socket-tests (Makefile.am): Link
10974         test-nonblocking-socket-main against $(LIBINTL).
10975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10976
10977 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10978
10979         assert-h: work around 'verify' incompatibility
10980         * lib/verify.h: Use @...@ directives, not ifdef.
10981         * modules/assert-h (assert.h): Implement the directives.
10982         (assert.h): Substitute the symbol-prefix more consistently.
10983
10984 2011-05-29  Jim Meyering  <meyering@redhat.com>
10985
10986         trim: remove three superfluous assignments
10987         * lib/trim.c (trim2): Remove three superfluous assignments
10988         and correct brace positioning.
10989
10990 2011-05-29  Bruno Haible  <bruno@clisp.org>
10991
10992         wctype-h: Avoid namespace pollution on Solaris 2.6.
10993         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10994         identifiers.
10995         * doc/posix-headers/wctype.texi: Mention the problem.
10996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10997
10998 2011-05-28  Jim Meyering  <meyering@redhat.com>
10999
11000         parse-datetime.y: accommodate -Wstrict-overflow
11001         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11002         placate -Wstrict-overflow.
11003
11004         trim: avoid a warning from -O2 -Wstrict-overflow
11005         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11006
11007 2011-05-29  Bruno Haible  <bruno@clisp.org>
11008
11009         gnulib-tool: Fix bug in yesterday's commit.
11010         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11011         twice.
11012
11013 2011-05-29  Bruno Haible  <bruno@clisp.org>
11014
11015         Allow multiple gnulib generated include files to be combined.
11016         * gnulib-tool (func_compute_include_guard_prefix): New function.
11017         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11018         ${gl_include_guard_prefix} references.
11019         (func_import, func_create_testdir): Invoke
11020         func_compute_include_guard_prefix.
11021         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11022         * lib/ctype.in.h: Likewise.
11023         * lib/dirent.in.h: Likewise.
11024         * lib/errno.in.h: Likewise.
11025         * lib/fcntl.in.h: Likewise.
11026         * lib/float.in.h: Likewise.
11027         * lib/getopt.in.h: Likewise.
11028         * lib/iconv.in.h: Likewise.
11029         * lib/langinfo.in.h: Likewise.
11030         * lib/locale.in.h: Likewise.
11031         * lib/math.in.h: Likewise.
11032         * lib/netdb.in.h: Likewise.
11033         * lib/netinet_in.in.h: Likewise.
11034         * lib/poll.in.h: Likewise.
11035         * lib/pthread.in.h: Likewise.
11036         * lib/pty.in.h: Likewise.
11037         * lib/sched.in.h: Likewise.
11038         * lib/se-selinux.in.h: Likewise.
11039         * lib/search.in.h: Likewise.
11040         * lib/signal.in.h: Likewise.
11041         * lib/spawn.in.h: Likewise.
11042         * lib/stdarg.in.h: Likewise.
11043         * lib/stddef.in.h: Likewise.
11044         * lib/stdint.in.h: Likewise.
11045         * lib/stdio.in.h: Likewise.
11046         * lib/stdlib.in.h: Likewise.
11047         * lib/string.in.h: Likewise.
11048         * lib/strings.in.h: Likewise.
11049         * lib/sys_file.in.h: Likewise.
11050         * lib/sys_ioctl.in.h: Likewise.
11051         * lib/sys_select.in.h: Likewise.
11052         * lib/sys_socket.in.h: Likewise.
11053         * lib/sys_stat.in.h: Likewise.
11054         * lib/sys_time.in.h: Likewise.
11055         * lib/sys_times.in.h: Likewise.
11056         * lib/sys_uio.in.h: Likewise.
11057         * lib/sys_utsname.in.h: Likewise.
11058         * lib/sys_wait.in.h: Likewise.
11059         * lib/sysexits.in.h: Likewise.
11060         * lib/termios.in.h: Likewise.
11061         * lib/time.in.h: Likewise.
11062         * lib/unistd.in.h: Likewise.
11063         * lib/wchar.in.h: Likewise.
11064         * lib/wctype.in.h: Likewise.
11065         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11066         * modules/ctype (Makefile.am): Likewise.
11067         * modules/dirent (Makefile.am): Likewise.
11068         * modules/errno (Makefile.am): Likewise.
11069         * modules/fcntl-h (Makefile.am): Likewise.
11070         * modules/float (Makefile.am): Likewise.
11071         * modules/getopt-posix (Makefile.am): Likewise.
11072         * modules/iconv-h (Makefile.am): Likewise.
11073         * modules/langinfo (Makefile.am): Likewise.
11074         * modules/locale (Makefile.am): Likewise.
11075         * modules/math (Makefile.am): Likewise.
11076         * modules/netdb (Makefile.am): Likewise.
11077         * modules/netinet_in (Makefile.am): Likewise.
11078         * modules/poll-h (Makefile.am): Likewise.
11079         * modules/pthread (Makefile.am): Likewise.
11080         * modules/pty (Makefile.am): Likewise.
11081         * modules/sched (Makefile.am): Likewise.
11082         * modules/search (Makefile.am): Likewise.
11083         * modules/selinux-h (Makefile.am): Likewise.
11084         * modules/signal (Makefile.am): Likewise.
11085         * modules/spawn (Makefile.am): Likewise.
11086         * modules/stdarg (Makefile.am): Likewise.
11087         * modules/stddef (Makefile.am): Likewise.
11088         * modules/stdint (Makefile.am): Likewise.
11089         * modules/stdio (Makefile.am): Likewise.
11090         * modules/stdlib (Makefile.am): Likewise.
11091         * modules/string (Makefile.am): Likewise.
11092         * modules/strings (Makefile.am): Likewise.
11093         * modules/sys_file (Makefile.am): Likewise.
11094         * modules/sys_ioctl (Makefile.am): Likewise.
11095         * modules/sys_select (Makefile.am): Likewise.
11096         * modules/sys_socket (Makefile.am): Likewise.
11097         * modules/sys_stat (Makefile.am): Likewise.
11098         * modules/sys_time (Makefile.am): Likewise.
11099         * modules/sys_times (Makefile.am): Likewise.
11100         * modules/sys_uio (Makefile.am): Likewise.
11101         * modules/sys_utsname (Makefile.am): Likewise.
11102         * modules/sys_wait (Makefile.am): Likewise.
11103         * modules/sysexits (Makefile.am): Likewise.
11104         * modules/termios (Makefile.am): Likewise.
11105         * modules/time (Makefile.am): Likewise.
11106         * modules/unistd (Makefile.am): Likewise.
11107         * modules/wchar (Makefile.am): Likewise.
11108         * modules/wctype-h (Makefile.am): Likewise.
11109         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11110
11111 2011-05-29  Bruno Haible  <bruno@clisp.org>
11112
11113         assert-h: Allow multiple gnulib generated replacements to coexist.
11114         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11115
11116 2011-05-29  Bruno Haible  <bruno@clisp.org>
11117
11118         argp: Allow coexistence with strerror_r-posix module.
11119         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11120         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11121         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11122         not the glibc signature.
11123
11124 2011-05-28  Bruno Haible  <bruno@clisp.org>
11125
11126         gnulib-tool: Alternative structure of testdirs, similar to --import.
11127         * gnulib-tool: New option --single-configure.
11128         (func_usage): Document it.
11129         (single_configure): New variable.
11130         (func_modules_transitive_closure_separately,
11131         func_modules_transitive_closure_separately,
11132         func_determine_use_libtests, func_modules_add_dummy_separately,
11133         func_modules_to_filelist_separately): New functions, extracted from
11134         func_import.
11135         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11136         (func_import): Use the new functions.
11137         (func_create_testdir): Set final_modules. Handle $single_configure =
11138         true case.
11139
11140 2011-05-28  Bruno Haible  <bruno@clisp.org>
11141
11142         getloadavg: Remove an unreliable safety check.
11143         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11144         getloadavg.c is in place.
11145         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11146         Reported by Sam Steingold <sds@gnu.org>.
11147
11148 2011-05-28  Bruno Haible  <bruno@clisp.org>
11149
11150         doc: Cleanup yet another file produced by texinfo.tex.
11151         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11152
11153 2011-05-28  Bruno Haible  <bruno@clisp.org>
11154
11155         Finish the conditional dependencies mechanism.
11156         * gnulib-tool: New option --no-conditional-dependencies.
11157         (func_usage): Document it. Don't mark --conditional-dependencies as
11158         experimental.
11159         (cond_dependencies): The possible values can now be true, false, empty.
11160         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11161         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11162         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11163
11164 2011-05-28  Bruno Haible  <bruno@clisp.org>
11165
11166         doc: Use a recent texinfo.tex.
11167         * doc/Makefile (tex_opts): New variable.
11168         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11169
11170 2011-05-28  Jim Meyering  <meyering@redhat.com>
11171
11172         intprops.h: adjust comment to match code change
11173         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11174         only once, it *may* have side effects.  Also fix an unrelated typo.
11175         (_GL_INT_SIGNED): Likewise.
11176
11177 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11178
11179         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11180
11181 2011-05-26  Bruno Haible  <bruno@clisp.org>
11182
11183         mbsrchr: Avoid collision with system function on Interix.
11184         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11185         Reported by Markus Duft <mduft@gentoo.org>.
11186
11187 2011-05-15  James Youngman  <jay@gnu.org>
11188
11189         getopt: for ambiguous options, enumerate the possibilities.
11190         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11191         the ambiguous options when an ambiguous prefix is given. This was
11192         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11193         glibc change was
11194         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11195
11196 2011-05-25  Eric Blake  <eblake@redhat.com>
11197
11198         getcwd: work around mingw bug
11199         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11200         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11201         Reported by Matthias Bolte.
11202
11203 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11204
11205         test-intprops: disable -Wtype-limits diagnostics
11206         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11207         diagnostics.  Otherwise, the integer overflow macros generate many
11208         diagnostics.  Reported by Jim Meyering in
11209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11210
11211         intprops: shorten, to pacify gcc -Woverlength-strings
11212         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11213         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11214         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11215         likely to run afoul of C compiler limits for string constant lengths.
11216         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11217
11218 2011-05-24  Eric Blake  <eblake@redhat.com>
11219
11220         docs: document recently fixed glibc printf bug
11221         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11222         * doc/posix-functions/printf.texi (printf): Likewise.
11223         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11224         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11225
11226         closein-tests: convert to init.sh
11227         * modules/closein-tests (Files): Add init.sh
11228         * tests/test-closein.sh Use it.
11229
11230         yesno-tests: convert to init.sh
11231         * modules/yesno-tests (Files): Add init.sh.
11232         * tests/test-yesno.sh: Use it.
11233
11234         atexit-tests: ensure reliable exit status
11235         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11236         Reported by Bruno Haible.
11237
11238 2011-05-24  Bruno Haible  <bruno@clisp.org>
11239
11240         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11241         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11242         gl_PREREQ_STRERROR_R invocations from here...
11243         * modules/strerror_r-posix (configure.ac): ... to here.
11244
11245 2011-05-24  Eric Blake  <eblake@redhat.com>
11246
11247         strerror_r: fix missing header
11248         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11249
11250         strerror_r: fix AIX test failures
11251         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11252         ERANGE failure.
11253
11254         strerror_r: fix Solaris test failures
11255         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11256         failures.
11257         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11258
11259         strerror_r: enforce POSIX recommendations
11260         * lib/strerror_r.c (safe_copy): New helper method.
11261         (strerror_r): Guarantee a non-empty string.
11262         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11263         recent POSIX rulings and to match our strerror guarantees.
11264         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11265
11266 2011-05-24  Jim Meyering  <meyering@redhat.com>
11267
11268         test-perror2.c: avoid warning about unused variable
11269         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11270
11271 2011-05-24  Eric Blake  <eblake@redhat.com>
11272
11273         perror: avoid spurious test failure on HP-UX
11274         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11275
11276         tests: fix logic bug in init.sh
11277         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11278         shell.
11279
11280 2011-05-24  Jim Meyering  <meyering@redhat.com>
11281
11282         utimensat: do not reference an out-of-scope buffer
11283         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11284         declared in an inner scope, yet "times" would be dereferenced outside
11285         the scope in which "ts" was valid.
11286         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11287         of ts[2] "out/up", so that the use of aliased "times" (via
11288         "times = ts;") does not end up referencing an out-of-scope "ts"
11289
11290         opendir-safer.c: don't clobber errno; don't close negative FD
11291         * lib/opendir-safer.c (opendir_safer):
11292         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11293         file descriptor, and more importantly, don't clobber the
11294         offending errno value with EINVAL.  Before, upon failure
11295         of dup_safer, we would pass the negative file descriptor to
11296         fdopendir, which would clobber errno.
11297
11298 2011-05-23  Bruno Haible  <bruno@clisp.org>
11299
11300         idcache: Fix module description.
11301         * modules/idcache (Include): Set to "idcache.h".
11302
11303 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         gnulib-tool: fix portability problem with MacOS sed
11306         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11307         before the "}".  Problem reported by Leo in
11308         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11309         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11310         sed_extract_condition1, sed_extract_condition2.
11311
11312 2011-05-23  Bruno Haible  <bruno@clisp.org>
11313
11314         hash: Simplify autoconf macro.
11315         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11316
11317 2011-05-23  Bruno Haible  <bruno@clisp.org>
11318
11319         getugroups: Fix module description.
11320         * modules/getugroups (Include): Set to "getugroups.h".
11321
11322 2011-05-23  Bruno Haible  <bruno@clisp.org>
11323
11324         linkat: Simplify autoconf macro.
11325         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11326
11327 2011-05-23  Bruno Haible  <bruno@clisp.org>
11328             Eric Blake  <eblake@redhat.com>
11329
11330         linkat, renameat: Update dependencies.
11331         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11332         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11333         symlinkat.
11334
11335 2011-05-23  Jim Meyering  <meyering@redhat.com>
11336
11337         maint.mk: more tight_scope improvements
11338         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11339         (_gl_TS_headers): Define only in if-0'd block.
11340         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11341         sometimes we must *not* use it.  Adjust uses accordingly.
11342         (sc_tight_scope): Use much simpler grep-based test to determine
11343         whether we skip this rule.
11344
11345         maint.mk: generalize/improve the tight-scope rule
11346         * top/maint.mk: Emit a warning when the test is skipped.
11347         (_gl_TS_dir): Add $(srcdir)/ prefix.
11348         (_gl_TS_function_match): Simplify, rather than trying
11349         to enumerate common types.  Otherwise, it would fail to match an
11350         "extern unsigned char const *" declaration in idutils.
11351         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11352         a way to support use of that type of macro.
11353         (_gl_TS_var_match): Simplify regexp.
11354         (_gl_TS_obj_files): New configurable variable.
11355         (_gl_TS_headers): Likewise.
11356
11357 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11358
11359         verify: fix bug when gnulib <assert.h> is also included
11360         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11361         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11362         Perhaps there's a better way, but this fixes the immediate problem.
11363         Problem reported by Bruno Haible in
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11365
11366 2011-05-22  Bruno Haible  <bruno@clisp.org>
11367
11368         xgetcwd: Simplify autoconf macro.
11369         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11370
11371 2011-05-22  Bruno Haible  <bruno@clisp.org>
11372
11373         New module 'mktime-internal'.
11374         * modules/mktime-internal: New file.
11375         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11376         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11377         mktime_internal as a C macro if libc has __mktime_internal.
11378         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11379         conditions.
11380         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11381
11382 2011-05-22  Bruno Haible  <bruno@clisp.org>
11383
11384         timegm: Correct mktime replacement statements.
11385         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11386         defining mktime as a C macro. This completes a 2009-07-28 commit.
11387
11388 2011-05-22  Bruno Haible  <bruno@clisp.org>
11389
11390         timegm: Simplify autoconf macro.
11391         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11392
11393 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11394
11395         clock-time: change to LGPLv2+.
11396         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11397         BSD-like but we have no mark for that; this is good enough for now.
11398
11399 2011-05-21  Bruno Haible  <bruno@clisp.org>
11400
11401         strerror_r: Fix comments.
11402         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11403
11404 2011-05-21  Bruno Haible  <bruno@clisp.org>
11405
11406         relocatable-prog-wrapper: Fix possible link error.
11407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11408         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11409         (gl_FUNC_SETENV): ... to here.
11410         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11411         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11412
11413 2011-05-21  Bruno Haible  <bruno@clisp.org>
11414
11415         relocatable-prog-wrapper: Assume strerror() exists.
11416         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11417         m4/strerror.m4.
11418         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11419         * lib/relocwrapper.c: Remove mention of strerror module.
11420         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11421         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11422         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11423         C macro.
11424
11425 2011-05-21  Bruno Haible  <bruno@clisp.org>
11426
11427         select: Simplify replacement idiom.
11428         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11429         Win32 platforms.
11430         * lib/sys_select.in.h (select): Simplify accordingly.
11431         * modules/select (Depends-on): Likewise.
11432
11433 2011-05-21  Bruno Haible  <bruno@clisp.org>
11434
11435         mkdir-p: Simplify autoconf macro.
11436         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11437         gl_FUNC_LCHOWN.
11438
11439 2011-05-21  Eric Blake  <eblake@redhat.com>
11440
11441         strerror_r: avoid clobbering strerror on cygwin
11442         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11443         fall back instead to sys_errlist.
11444         * modules/strerror (configure.ac): Add witness.
11445         * tests/test-strerror_r.c (main): Enhance test.
11446         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11447         * tests/test-perror2.c (main): Free memory before exit.
11448
11449 2011-05-21  Bruno Haible  <bruno@clisp.org>
11450
11451         mkdtemp: Use gnulib naming conventions.
11452         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11453         * modules/mkdtemp (configure.ac): Update.
11454
11455 2011-05-20  Eric Blake  <eblake@redhat.com>
11456
11457         strerror_r: avoid corrupting errno on Solaris
11458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11459         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11460
11461         strerror_r: avoid compiler warning
11462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11463
11464         strerror_r: simplify AIX code
11465         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11466
11467         test-perror: avoid spurious failure on FreeBSD
11468         * modules/perror-tests (Depends-on): Add strerror, now that
11469         strerror_r no longer pulls it in.
11470
11471 2011-05-20  Bruno Haible  <bruno@clisp.org>
11472
11473         strerror_r-posix: Remove unused dependencies.
11474         * modules/strerror_r-posix (Depends-on): Remove strerror.
11475         Reported by Eric Blake.
11476
11477 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11478
11479         intprops: remove assumption about A|B representation
11480         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11481         is a valid integer if both A and B are.  Although this is true for
11482         all known practical hosts, the C standard doesn't guarantee it,
11483         and the code need not assume it.  Also, this change may work around
11484         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11486
11487 2011-05-20  Eric Blake  <eblake@redhat.com>
11488
11489         perror: work around FreeBSD bug
11490         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11491         is broken.  Move AC_LIBOBJ...
11492         * modules/perror (configure.ac): Here.
11493         * doc/posix-functions/perror.texi (perror): Document this.
11494         * tests/test-perror2.c (main): Enhance test.
11495
11496         test-perror: check for strerror interactions
11497         * tests/macros.h (STREQ): Add macro.
11498         * modules/perror-tests (Files): Add second test.
11499         * tests/test-perror2.c (main): New file.
11500         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11501
11502         test-perror: rewrite to use init script
11503         * modules/perror-tests (Files): Add init.sh.
11504         * tests/test-perror.sh: Use temporary directory.
11505
11506 2011-05-20  Jim Meyering  <meyering@redhat.com>
11507
11508         maint: replace misused "a" with "an"
11509         * doc/intprops.texi: "a integer"
11510         * doc/regex.texi: "a explanation"
11511         * lib/alignof.h: "a object"
11512         * lib/argmatch.h: "a explanation"
11513         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11514         * lib/stdint.in.h: "a integer"
11515         * lib/userspec.c: "a owner"
11516         * doc/gnulib.texi: Fix "a idea", and reword.
11517
11518 2011-05-19  Jim Meyering  <meyering@redhat.com>
11519
11520         maint: correct misuse of "a" and "an"
11521         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11522         * lib/argp-help.c: "an docum...": s/an/a/
11523         * lib/argp-parse.c: "An vector": s/An/A/
11524         * lib/execute.c: "an native": s/an/a/
11525         * lib/spawn-pipe.c: Likewise.
11526         * lib/gc.h: "an Gc_rc": s/an/a/
11527         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11528         * lib/fts.c: "an stat.st_dev": s/an/a/
11529
11530 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11531
11532         intprops-tests: work around HP-UX 11.23 cc bug with constants
11533         * tests/test-intprops.c (VERIFY): New macro.
11534         (main): Use it, instead of verify, to work around the compiler bug; see
11535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11536
11537         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11538         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11539         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11540         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11541         (_GL_REMAINDER_OVERFLOW): Use it.
11542
11543         intprops-tests: revert unsigned part of previous change
11544         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11545         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11546         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11548
11549 2011-05-19  Bruno Haible  <bruno@clisp.org>
11550
11551         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11552         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11553         strerror_r() returned without filling the buffer.
11554         Reported by Eric Blake.
11555
11556 2011-05-19  Eric Blake  <eblake@redhat.com>
11557
11558         strerror_r: guarantee unchanged errno
11559         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11560         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11561         failure.
11562         * tests/test-strerror_r.c (main): Enhance test.
11563
11564 2011-05-19  Bruno Haible  <bruno@clisp.org>
11565
11566         strerror_r: Reorder #if blocks.
11567         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11568         for consistency with the previous commit.
11569
11570 2011-05-19  Bruno Haible  <bruno@clisp.org>
11571
11572         perror: Avoid clobbering the strerror buffer when possible.
11573         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11574         * lib/strerror.c: Include it.
11575         * modules/strerror (Files): Add lib/strerror-impl.h.
11576         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11577         (my_strerror): New function, defined through lib/strerror-impl.h.
11578         (perror): Use it instead of strerror.
11579         * modules/perror (Files): Add lib/strerror-impl.h.
11580         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11581
11582 2011-05-19  Eric Blake  <eblake@redhat.com>
11583
11584         strerror_r: fix on newer cygwin
11585         * lib/strerror_r.c (strerror_r): Cygwin now has
11586         __xpg_strerror_r, use it.
11587
11588 2011-05-19  Bruno Haible  <bruno@clisp.org>
11589
11590         strerror_r: Avoid clobbering the strerror buffer when possible.
11591         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11592         (sys_nerr, sys_errlist): New declarations.
11593         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11594         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11595         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11596
11597 2011-05-19  Bruno Haible  <bruno@clisp.org>
11598
11599         strerror_r: Fix test failure on mingw.
11600         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11601         EXTEND_STRERROR_R.
11602         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11603         macros from errno.in.h instead.
11604
11605 2011-05-19  Eric Blake  <eblake@redhat.com>
11606
11607         strerror: relax test for Solaris
11608         * tests/test-strerror.c (main): Permit Solaris behavior.
11609         * tests/test-strerror_r.c (main): Likewise.
11610
11611         strerror: enforce POSIX ruling on strerror(0)
11612         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11614         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11615         * doc/posix-functions/strerror.texi (strerror): Document it.
11616         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11617         * tests/test-strerror.c (main): Strengthen test.
11618         * tests/test-strerror_r.c (main): Likewise.
11619
11620 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11621
11622         intprop-tests: port to older and more-pedantic compilers
11623         * modules/intprops-tests (Files): Add tests/macros.h.
11624         * tests/test-intprops.c: Include macros.h.
11625         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11626         it's no longer documented to expand to an integer constant expression.
11627         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11628         argument is floating point, as it's no longer documented to expand
11629         to an integer constant expression in that case.
11630         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11631         compiler bugs reported by Bruno Haible.  See
11632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11633         (U0, U1): New constants, to work around the same bugs.  Also,
11634         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11635
11636         intprops: work around C compiler bugs
11637         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11638         bug in Sun C 5.11 2010/08/13 and other compilers; see
11639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11640
11641         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11642         * doc/intprops.texi (Integer Type Determination): Fix
11643         documentation for TYPE_IS_INTEGER: it returns an constant
11644         expression, not an integer constant expression.  Fix doc for
11645         TYPE_SIGNED: it returns an integer constant expression only if its
11646         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11647         hardly worth documented that way....)
11648
11649 2011-05-18  Bruno Haible  <bruno@clisp.org>
11650
11651         strerror_r: Avoid clobbering the strerror buffer when possible.
11652         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11653         Handle gnulib defined errno values here. When strerror() returns NULL
11654         or an empty string, return EINVAL.
11655         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11656         gnulib defined errno values here.
11657         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11658
11659 2011-05-18  Eric Blake  <eblake@redhat.com>
11660
11661         fnmatch: avoid compiler warning
11662         * lib/fnmatch_loop.c (FCT): Use correct type.
11663         Reported by Matthias Bolte.
11664
11665 2011-05-13  Jim Meyering  <meyering@redhat.com>
11666
11667         maint.mk: three new prohibit_<HDR>_without_use rules
11668         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11669         (sc_prohibit_stdio-safer_without_use): Likewise.
11670         (sc_prohibit_xfreopen_without_use): Likewise.
11671
11672 2011-05-17  Jim Meyering  <meyering@redhat.com>
11673
11674         announce-gen: fail if the NEWS delta is empty
11675         If there's nothing noteworthy in NEWS, then either you forgot
11676         or you shouldn't be releasing.
11677         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11678
11679 2011-05-17  Pádraig Brady <P@draigBrady.com>
11680
11681         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11682         reserved symbols starting with double underscore from the check.
11683
11684 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11685
11686         intprops: add doc
11687         * doc/intprops.texi: New file, documenting intprops.
11688         * doc/gnulib.texi (Particular Modules): Include it.
11689
11690         verify: add doc to gnulib manual and fix example
11691         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11692         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11693         (Compile-time Assertions): Fix example so it can't overflow.
11694
11695 2011-05-17  Jim Meyering  <meyering@redhat.com>
11696
11697         warnings.m4: don't usurp save_CPPFLAGS variable name
11698         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11699
11700         doc: fix typo
11701         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11702
11703 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11704             Bruno Haible  <bruno@clisp.org>
11705
11706         doc: Tweak recent change.
11707         * README (Portability guidelines): Tweak new text.
11708         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11709         Interix 6.1.
11710
11711 2011-05-16  Eric Blake  <eblake@redhat.com>
11712
11713         inttypes: avoid autoconf warning
11714         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11715         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11716
11717 2011-05-16  Sam Steingold <sds@gnu.org>
11718         and Eric Blake  <eblake@redhat.com>
11719
11720         vc-list-files: accept multiple directory operands
11721         * build-aux/vc-list-files: Iterate over all remaining operands.
11722
11723 2011-05-16  Bruno Haible  <bruno@clisp.org>
11724
11725         Fix confusion regarding deprecated modules.
11726         * modules/calloc (Status, Notice): Mark module as deprecated, not
11727         obsolete.
11728         * modules/fnmatch-posix (Status, Notice): Likewise.
11729         * modules/getdate (Status, Notice): Likewise.
11730         * modules/getopt (Status, Notice): Likewise.
11731         * modules/malloc (Status, Notice): Likewise.
11732         * modules/pipe (Status, Notice): Likewise.
11733         * modules/realloc (Status, Notice): Likewise.
11734         * modules/rename-dest-slash (Status, Notice): Likewise.
11735         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11736         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11737         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11738         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11739         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11740
11741 2011-05-16  Bruno Haible  <bruno@clisp.org>
11742
11743         doc: List the target platforms.
11744         * doc/gnulib-intro.texi (Target Platforms): New section.
11745         * doc/gnulib.texi (Introduction): Update menu.
11746         * README (Portability guidelines): Refer to the new section. Update
11747         statement about oldest supported environment. Remove rationale why
11748         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11749         unportable C89 function.
11750         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11751         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11752
11753 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11754
11755         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11756
11757 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         intprops-tests: new module
11760         * modules/intprops-tests, tests/test-intprops.c: New files.
11761
11762         intprops: add safe, portable integer overflow checking
11763         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11764         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11765         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11766         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11767         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11768         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11769         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11770         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11771         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11772         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11773         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11774
11775 2011-05-12  James Youngman  <jay@gnu.org>
11776
11777         Add a test for glibc's Bugzilla bug #12378.
11778         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11779         doesn't allow the literal matching of a lone "[" (which is
11780         required by POSIX).
11781         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11782
11783 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11784
11785         Sync glibc change fixing Bugzilla bug #12378.
11786         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11787         beginning and fall back to matching as normal character if the
11788         string ends before the matching ']' is found.  This is what POSIX
11789         requires.
11790
11791 2011-05-13  Eric Blake  <eblake@redhat.com>
11792
11793         getcwd-lgpl: relax test for FreeBSD
11794         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11795         issue.
11796         * tests/test-getcwd-lgpl.c (main): Relax test.
11797         Reported by Matthias Bolte.
11798
11799 2011-05-11  Eric Blake  <eblake@redhat.com>
11800
11801         test-fflush: silence compiler warning
11802         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11803
11804 2011-05-11  Bruno Haible  <bruno@clisp.org>
11805
11806         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11807         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11808         * modules/canonicalize (Depends-on): Add 'nocrash'.
11809         * modules/canonicalize-lgpl (Depends-on): Likewise.
11810         * doc/posix-functions/realpath.texi: Update platforms list.
11811         Reported by Ryan Schmidt <ryandesign@macports.org>.
11812
11813 2011-05-11  Bruno Haible  <bruno@clisp.org>
11814
11815         group-member: Declare function in <unistd.h>.
11816         * lib/unistd.in.h (group_member): New declaration.
11817         * lib/group-member.h: Remove file.
11818         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11819         * tests/test-unistd-c++.cc: Check signature of group_member.
11820         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11821         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11822         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11823         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11824         HAVE_GROUP_MEMBER.
11825         * modules/group-member (Files): Remove lib/group-member.h.
11826         (Depends-on): Add unistd. Specify conditions.
11827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11828         (Include): Change to <unistd.h>.
11829         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11830         HAVE_GROUP_MEMBER.
11831         * NEWS: Mention the change.
11832         * lib/euidaccess.c: Don't include group-member.h.
11833
11834 2011-05-11  Bruno Haible  <bruno@clisp.org>
11835
11836         group-member: Document module.
11837         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11838         module.
11839
11840 2011-05-11  Bruno Haible  <bruno@clisp.org>
11841
11842         fclose: Fix mistake earlier today.
11843         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11844
11845 2011-05-11  Eric Blake  <eblake@redhat.com>
11846
11847         fclose: preserve fflush errors
11848         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11849         Reported by Jim Meyering.
11850
11851         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11852         * build-aux/bootstrap (check_versions): When no specific version
11853         is required, merely check that the app produces an exit status
11854         that indicates its existence.
11855
11856         maint.mk: drop redundant check
11857         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11858         the same but better.
11859
11860 2011-05-11  Bruno Haible  <bruno@clisp.org>
11861
11862         fclose: Fix possible link error.
11863         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11864         unregister_shadow_fd. Improve comments.
11865         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11866         Eric Blake.
11867
11868 2011-05-11  Jim Meyering  <meyering@redhat.com>
11869
11870         maint.mk: improve "can not" detection and generalize rule name
11871         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11872         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11873         Use the same technique as in sc_prohibit_doubled_word, so that
11874         we recognize "can not" also when the words are separated by a newline.
11875         Suggested by Eric Blake.
11876         (perl_filename_lineno_text_): Define.  Factored out of...
11877         (prohibit_doubled_word_): ...here.  Use the new definition.
11878         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11879         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11880         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11881
11882 2011-05-10  Eric Blake  <eblake@redhat.com>
11883
11884         fclose: avoid double close race when possible
11885         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11886         all but WINDOWS_SOCKETS.
11887
11888 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11889
11890         openat: correct new comment
11891         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11892
11893 2011-05-10  Jim Meyering  <meyering@redhat.com>
11894
11895         openat: add comments
11896         * lib/openat-proc.c (openat_proc_name): Add comments,
11897         mostly from Eric Blake.
11898
11899 2011-05-09  Eric Blake  <eblake@redhat.com>
11900
11901         openat: reduce syscalls in first probe of /proc
11902         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11903         be a directory.  Simplify the probe for .. bugs.
11904         * modules/openat (Depends-on): Drop same-inode.
11905         Reported by Bastien ROUCARIES.
11906
11907 2011-05-09  Jim Meyering  <meyering@redhat.com>
11908
11909         maint.mk: change semantics/name of tight_scope variables
11910         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11911         Rename variables to align with semantics that make them more useful.
11912
11913         maint.mk: tweak new rule's name not to impinge
11914         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11915         (sc_tight_scope): Use new rule name rather than $@-0.
11916
11917         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11918         * top/maint.mk (sc_tight_scope): New rule.
11919         (sc_tight_scope-0): New rule, ifdef'd out.
11920         (_gl_TS_dir): Default.
11921         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11922         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11923
11924 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11925
11926         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11927         Haible <bruno@clisp.org>.
11928
11929 2011-05-08  Bruno Haible  <bruno@clisp.org>
11930
11931         Comments.
11932         * m4/isnanf.m4: Add comment.
11933         * m4/isnanl.m4: Likewise.
11934
11935 2011-05-08  Bruno Haible  <bruno@clisp.org>
11936
11937         glob: Remove obsolete macro.
11938         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11939
11940 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         intprops: Sun C 5.11 supports __typeof__
11943         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11944         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11945         which is new.
11946         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11947
11948         intprops: switch to usual gnulib indenting and naming
11949         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11950         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11951
11952         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11953
11954 2011-05-08  Jim Meyering  <meyering@redhat.com>
11955
11956         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11957         * top/maint.mk (release-prep): Use make's --no-print-directory
11958         option when generating the announcement.  This eliminates the
11959         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11960         generated announcement template.
11961
11962 2011-05-08  Bruno Haible  <bruno@clisp.org>
11963
11964         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11965         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11966         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11967
11968 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11969
11970         ignore-value, verify: Omit include files from lib_SOURCES.
11971         * modules/ignore-value, modules/verify (Makefile.am):
11972         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11973         that leads Automake to duplicate use of am__objects_... variables
11974         in Makefile.in.  See
11975         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11976
11977 2011-05-07  Bruno Haible  <bruno@clisp.org>
11978
11979         fclose: Simplify autoconf macro.
11980         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11981         defined.
11982
11983 2011-05-07  Bruno Haible  <bruno@clisp.org>
11984
11985         canonicalize-lgpl: Fix autoconf macro ordering bug.
11986         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11987         gl_STDLIB_H_DEFAULTS.
11988
11989 2011-05-06  Eric Blake  <eblake@redhat.com>
11990
11991         maintainer-makefile: make sc_po_check easier to tune
11992         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11993         to probe for strings, such as an alternate location for gnulib.
11994
11995         fclose: guarantee behavior on seekable stdin
11996         * modules/fclose (Depends-on): Add fflush.
11997         * doc/posix-functions/fclose.texi (fclose): Document this.
11998         * tests/test-fclose.c (main): Make test for this unconditional.
11999
12000 2011-05-06  Bruno Haible  <bruno@clisp.org>
12001
12002         fflush, fpurge: Relicense under LGPLv2+.
12003         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12004         * modules/fpurge (License): Likewise.
12005         With permission from Eric Blake and Jim Meyering.
12006         Suggested by Eric Blake.
12007
12008 2011-05-06  Karl Berry  <karl@gnu.org>
12009
12010         * MODULES.html.sh (func_all_modules): remove exit.
12011
12012 2011-05-06  Jim Meyering  <meyering@redhat.com>
12013
12014         maint.mk: use info-gnu@ as the default only for a stable release
12015         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12016         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12017         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12019
12020 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12021
12022         assert-h: new module, which supports C1X-style static_assert
12023         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12024         * lib/verify.h: Revamp so that this can be copied into assert.h,
12025         while retaining the ability to use it standalone as before.
12026         Rename private identifiers so as not to encroach on the
12027         standard C namespace, since this is now used by assert.h.
12028         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12029         the old verify_true.
12030         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12031         the old verify_true.  Use _GL_VERIFY_TYPE.
12032         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12033         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12034         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12035         defined when this file is copied into the replacement assert.h.
12036         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12037         and _Static_assert is not built in.
12038         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12039         defined, and use the new macros mentioned above.
12040         * doc/posix-headers/assert.texi: Document this.
12041
12042 2011-05-05  Bruno Haible  <bruno@clisp.org>
12043
12044         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12045         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12046         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12047         gl_REPLACE_FCLOSE here.
12048         * modules/fflush (Depends-on): Remove fclose.
12049         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12050         combination with module 'fclose'.
12051
12052 2011-05-05  Bruno Haible  <bruno@clisp.org>
12053
12054         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12055         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12056         gl_FUNC_FFLUSH.
12057         (gl_FUNC_FFLUSH): Use it.
12058         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12060         gl_REPLACE_FSEEKO here.
12061
12062 2011-05-05  Bruno Haible  <bruno@clisp.org>
12063
12064         tzset: Relicense under LGPL.
12065         * modules/tzset (License): Change to LGPL.
12066         No agreement needed; it's a no-op.
12067
12068         strtoimax, strtoumax: Relicense under LGPL.
12069         * modules/strtoimax (License): Change to LGPL.
12070         * modules/strtoumax (License): Likewise.
12071         With permission from Jim Meyering, Paul Eggert:
12072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12074
12075         getgroups: Relicense under LGPL.
12076         * modules/getgroups (License): Change to LGPL.
12077         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12081
12082         nanosleep: Relicense under LGPL.
12083         * modules/nanosleep (License): Change to LGPL.
12084         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12085         Haible:
12086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12090
12091         futimens: Relicense under LGPL.
12092         * modules/futimens (License): Change to LGPL.
12093         With permission from Eric Blake:
12094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12095
12096         fflush: Relicense under LGPL.
12097         * modules/fflush (License): Change to LGPL.
12098         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12102
12103         tmpfile: Relicense under LGPL.
12104         * modules/tmpfile (License): Change to LGPL.
12105         With permission from Ben Pfaff:
12106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12107
12108         isfinite: Relicense under LGPL.
12109         * modules/isfinite (License): Change to LGPL.
12110         With permission from Ben Pfaff, Bruno Haible:
12111         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12113
12114         acosl..tanl: Relicense under LGPL.
12115         * modules/acosl (License): Change to LGPL.
12116         * modules/asinl (License): Likewise.
12117         * modules/atanl (License): Likewise.
12118         * modules/cosl (License): Likewise.
12119         * modules/expl (License): Likewise.
12120         * modules/logl (License): Likewise.
12121         * modules/sinl (License): Likewise.
12122         * modules/sqrtl (License): Likewise.
12123         * modules/tanl (License): Likewise.
12124         Source code originally from glibc and Paolo Bonzini. Agreements:
12125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12127
12128 2011-05-05  Bruno Haible  <bruno@clisp.org>
12129
12130         signal: Define sighandler_t.
12131         * lib/signal.in.h (sighandler_t): New type.
12132         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12133         whether sighandler_t is defined.
12134         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12135         * modules/signal (Depends-on): Add extensions.
12136         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12137         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12138         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12139
12140 2011-05-05  Eric Blake  <eblake@redhat.com>
12141
12142         maint: remove useless REPLACE_*_H macros
12143         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12144         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12145         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12146         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12147         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12148         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12149         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12150         * m4/btowc.m4: Update callers.
12151         * m4/dirfd.m4: Likewise.
12152         * m4/duplocale.m4: Likewise.
12153         * m4/fchdir.m4: Likewise.
12154         * m4/fdopendir.m4: Likewise.
12155         * m4/inet_ntop.m4: Likewise.
12156         * m4/inet_pton.m4: Likewise.
12157         * m4/ioctl.m4: Likewise.
12158         * m4/mbrlen.m4: Likewise.
12159         * m4/mbrtowc.m4: Likewise.
12160         * m4/mbsinit.m4: Likewise.
12161         * m4/mbsnrtowcs.m4: Likewise.
12162         * m4/mbsrtowcs.m4: Likewise.
12163         * m4/poll.m4: Likewise.
12164         * m4/setlocale.m4: Likewise.
12165         * m4/wcrtomb.m4: Likewise.
12166         * m4/wcsnrtombs.m4: Likewise.
12167         * m4/wcsrtombs.m4: Likewise.
12168         * m4/wctob.m4: Likewise.
12169         * m4/wcwidth.m4: Likewise.
12170         * modules/posix_spawn: Likewise.
12171         * modules/posix_spawn_file_actions_addclose: Likewise.
12172         * modules/posix_spawn_file_actions_adddup2: Likewise.
12173         * modules/posix_spawn_file_actions_addopen: Likewise.
12174         * modules/posix_spawn_file_actions_destroy: Likewise.
12175         * modules/posix_spawn_file_actions_init: Likewise.
12176         * modules/posix_spawnattr_destroy: Likewise.
12177         * modules/posix_spawnattr_getflags: Likewise.
12178         * modules/posix_spawnattr_getpgroup: Likewise.
12179         * modules/posix_spawnattr_getschedparam: Likewise.
12180         * modules/posix_spawnattr_getschedpolicy: Likewise.
12181         * modules/posix_spawnattr_getsigdefault: Likewise.
12182         * modules/posix_spawnattr_getsigmask: Likewise.
12183         * modules/posix_spawnattr_init: Likewise.
12184         * modules/posix_spawnattr_setflags: Likewise.
12185         * modules/posix_spawnattr_setpgroup: Likewise.
12186         * modules/posix_spawnattr_setschedparam: Likewise.
12187         * modules/posix_spawnattr_setschedpolicy: Likewise.
12188         * modules/posix_spawnattr_setsigdefault: Likewise.
12189         * modules/posix_spawnattr_setsigmask: Likewise.
12190         * modules/posix_spawnp: Likewise.
12191
12192 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12193
12194         Add option to do-release-commit-and-tag to specify branch.
12195         * build-aux/do-release-commit-and-tag: Add --branch.
12196
12197 2011-05-03  Bruno Haible  <bruno@clisp.org>
12198
12199         Avoid unnecessary compilation units, through conditional dependencies.
12200         * modules/accept (Depends-on): Add conditions to the dependencies.
12201         * modules/acosl (Depends-on): Likewise.
12202         * modules/argz (Depends-on): Likewise.
12203         * modules/asinl (Depends-on): Likewise.
12204         * modules/atanl (Depends-on): Likewise.
12205         * modules/atoll (Depends-on): Likewise.
12206         * modules/bind (Depends-on): Likewise.
12207         * modules/btowc (Depends-on): Likewise.
12208         * modules/canonicalize-lgpl (Depends-on): Likewise.
12209         * modules/ceil (Depends-on): Likewise.
12210         * modules/ceilf (Depends-on): Likewise.
12211         * modules/ceill (Depends-on): Likewise.
12212         * modules/chdir-long (Depends-on): Likewise.
12213         * modules/chown (Depends-on): Likewise.
12214         * modules/close (Depends-on): Likewise.
12215         * modules/connect (Depends-on): Likewise.
12216         * modules/cosl (Depends-on): Likewise.
12217         * modules/dirfd (Depends-on): Likewise.
12218         * modules/dprintf (Depends-on): Likewise.
12219         * modules/dprintf-posix (Depends-on): Likewise.
12220         * modules/error (Depends-on): Likewise.
12221         * modules/euidaccess (Depends-on): Likewise.
12222         * modules/expl (Depends-on): Likewise.
12223         * modules/faccessat (Depends-on): Likewise.
12224         * modules/fchdir (Depends-on): Likewise.
12225         * modules/fclose (Depends-on): Likewise.
12226         * modules/fcntl (Depends-on): Likewise.
12227         * modules/fdopendir (Depends-on): Likewise.
12228         * modules/fflush (Depends-on): Likewise.
12229         * modules/floor (Depends-on): Likewise.
12230         * modules/floorf (Depends-on): Likewise.
12231         * modules/floorl (Depends-on): Likewise.
12232         * modules/fnmatch (Depends-on): Likewise.
12233         * modules/fopen (Depends-on): Likewise.
12234         * modules/fprintf-posix (Depends-on): Likewise.
12235         * modules/frexp (Depends-on): Likewise.
12236         * modules/frexp-nolibm (Depends-on): Likewise.
12237         * modules/frexpl (Depends-on): Likewise.
12238         * modules/frexpl-nolibm (Depends-on): Likewise.
12239         * modules/fseek (Depends-on): Likewise.
12240         * modules/fsusage (Depends-on): Likewise.
12241         * modules/ftell (Depends-on): Likewise.
12242         * modules/ftello (Depends-on): Likewise.
12243         * modules/futimens (Depends-on): Likewise.
12244         * modules/getcwd (Depends-on): Likewise.
12245         * modules/getcwd-lgpl (Depends-on): Likewise.
12246         * modules/getdelim (Depends-on): Likewise.
12247         * modules/getdomainname (Depends-on): Likewise.
12248         * modules/getgroups (Depends-on): Likewise.
12249         * modules/gethostname (Depends-on): Likewise.
12250         * modules/getline (Depends-on): Likewise.
12251         * modules/getlogin_r (Depends-on): Likewise.
12252         * modules/getopt-posix (Depends-on): Likewise.
12253         * modules/getpeername (Depends-on): Likewise.
12254         * modules/getsockname (Depends-on): Likewise.
12255         * modules/getsockopt (Depends-on): Likewise.
12256         * modules/getsubopt (Depends-on): Likewise.
12257         * modules/getusershell (Depends-on): Likewise.
12258         * modules/glob (Depends-on): Likewise.
12259         * modules/grantpt (Depends-on): Likewise.
12260         * modules/iconv_open (Depends-on): Likewise.
12261         * modules/iconv_open-utf (Depends-on): Likewise.
12262         * modules/inet_ntop (Depends-on): Likewise.
12263         * modules/inet_pton (Depends-on): Likewise.
12264         * modules/ioctl (Depends-on): Likewise.
12265         * modules/isapipe (Depends-on): Likewise.
12266         * modules/isfinite (Depends-on): Likewise.
12267         * modules/isinf (Depends-on): Likewise.
12268         * modules/lchown (Depends-on): Likewise.
12269         * modules/ldexpl (Depends-on): Likewise.
12270         * modules/link (Depends-on): Likewise.
12271         * modules/linkat (Depends-on): Likewise.
12272         * modules/listen (Depends-on): Likewise.
12273         * modules/logl (Depends-on): Likewise.
12274         * modules/lstat (Depends-on): Likewise.
12275         * modules/mbrlen (Depends-on): Likewise.
12276         * modules/mbrtowc (Depends-on): Likewise.
12277         * modules/mbsinit (Depends-on): Likewise.
12278         * modules/mbsnrtowcs (Depends-on): Likewise.
12279         * modules/mbsrtowcs (Depends-on): Likewise.
12280         * modules/mbtowc (Depends-on): Likewise.
12281         * modules/memcmp (Depends-on): Likewise.
12282         * modules/mkdir (Depends-on): Likewise.
12283         * modules/mkdtemp (Depends-on): Likewise.
12284         * modules/mkfifo (Depends-on): Likewise.
12285         * modules/mkfifoat (Depends-on): Likewise.
12286         * modules/mknod (Depends-on): Likewise.
12287         * modules/mkostemp (Depends-on): Likewise.
12288         * modules/mkostemps (Depends-on): Likewise.
12289         * modules/mkstemp (Depends-on): Likewise.
12290         * modules/mkstemps (Depends-on): Likewise.
12291         * modules/mktime (Depends-on): Likewise.
12292         * modules/nanosleep (Depends-on): Likewise.
12293         * modules/open (Depends-on): Likewise.
12294         * modules/openat (Depends-on): Likewise.
12295         * modules/perror (Depends-on): Likewise.
12296         * modules/poll (Depends-on): Likewise.
12297         * modules/popen (Depends-on): Likewise.
12298         * modules/posix_spawn (Depends-on): Likewise.
12299         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12300         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12301         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12302         * modules/posix_spawnp (Depends-on): Likewise.
12303         * modules/pread (Depends-on): Likewise.
12304         * modules/printf-posix (Depends-on): Likewise.
12305         * modules/ptsname (Depends-on): Likewise.
12306         * modules/putenv (Depends-on): Likewise.
12307         * modules/pwrite (Depends-on): Likewise.
12308         * modules/readline (Depends-on): Likewise.
12309         * modules/readlink (Depends-on): Likewise.
12310         * modules/readlinkat (Depends-on): Likewise.
12311         * modules/recv (Depends-on): Likewise.
12312         * modules/recvfrom (Depends-on): Likewise.
12313         * modules/regex (Depends-on): Likewise.
12314         * modules/remove (Depends-on): Likewise.
12315         * modules/rename (Depends-on): Likewise.
12316         * modules/renameat (Depends-on): Likewise.
12317         * modules/rmdir (Depends-on): Likewise.
12318         * modules/round (Depends-on): Likewise.
12319         * modules/roundf (Depends-on): Likewise.
12320         * modules/roundl (Depends-on): Likewise.
12321         * modules/rpmatch (Depends-on): Likewise.
12322         * modules/select (Depends-on): Likewise.
12323         * modules/send (Depends-on): Likewise.
12324         * modules/sendto (Depends-on): Likewise.
12325         * modules/setenv (Depends-on): Likewise.
12326         * modules/setlocale (Depends-on): Likewise.
12327         * modules/setsockopt (Depends-on): Likewise.
12328         * modules/shutdown (Depends-on): Likewise.
12329         * modules/sigaction (Depends-on): Likewise.
12330         * modules/signbit (Depends-on): Likewise.
12331         * modules/sigprocmask (Depends-on): Likewise.
12332         * modules/sinl (Depends-on): Likewise.
12333         * modules/sleep (Depends-on): Likewise.
12334         * modules/snprintf (Depends-on): Likewise.
12335         * modules/snprintf-posix (Depends-on): Likewise.
12336         * modules/socket (Depends-on): Likewise.
12337         * modules/sprintf-posix (Depends-on): Likewise.
12338         * modules/sqrtl (Depends-on): Likewise.
12339         * modules/stat (Depends-on): Likewise.
12340         * modules/strchrnul (Depends-on): Likewise.
12341         * modules/strdup-posix (Depends-on): Likewise.
12342         * modules/strerror (Depends-on): Likewise.
12343         * modules/strerror_r-posix (Depends-on): Likewise.
12344         * modules/strndup (Depends-on): Likewise.
12345         * modules/strnlen (Depends-on): Likewise.
12346         * modules/strptime (Depends-on): Likewise.
12347         * modules/strsep (Depends-on): Likewise.
12348         * modules/strsignal (Depends-on): Likewise.
12349         * modules/strstr-simple (Depends-on): Likewise.
12350         * modules/strtod (Depends-on): Likewise.
12351         * modules/strtoimax (Depends-on): Likewise.
12352         * modules/strtok_r (Depends-on): Likewise.
12353         * modules/strtoumax (Depends-on): Likewise.
12354         * modules/symlink (Depends-on): Likewise.
12355         * modules/symlinkat (Depends-on): Likewise.
12356         * modules/tanl (Depends-on): Likewise.
12357         * modules/tcgetsid (Depends-on): Likewise.
12358         * modules/tmpfile (Depends-on): Likewise.
12359         * modules/trunc (Depends-on): Likewise.
12360         * modules/truncf (Depends-on): Likewise.
12361         * modules/truncl (Depends-on): Likewise.
12362         * modules/uname (Depends-on): Likewise.
12363         * modules/unlink (Depends-on): Likewise.
12364         * modules/unlockpt (Depends-on): Likewise.
12365         * modules/unsetenv (Depends-on): Likewise.
12366         * modules/usleep (Depends-on): Likewise.
12367         * modules/utimensat (Depends-on): Likewise.
12368         * modules/vasprintf (Depends-on): Likewise.
12369         * modules/vdprintf (Depends-on): Likewise.
12370         * modules/vdprintf-posix (Depends-on): Likewise.
12371         * modules/vfprintf-posix (Depends-on): Likewise.
12372         * modules/vprintf-posix (Depends-on): Likewise.
12373         * modules/vsnprintf (Depends-on): Likewise.
12374         * modules/vsnprintf-posix (Depends-on): Likewise.
12375         * modules/vsprintf-posix (Depends-on): Likewise.
12376         * modules/wcrtomb (Depends-on): Likewise.
12377         * modules/wcscasecmp (Depends-on): Likewise.
12378         * modules/wcscspn (Depends-on): Likewise.
12379         * modules/wcsdup (Depends-on): Likewise.
12380         * modules/wcsncasecmp (Depends-on): Likewise.
12381         * modules/wcsnrtombs (Depends-on): Likewise.
12382         * modules/wcspbrk (Depends-on): Likewise.
12383         * modules/wcsrtombs (Depends-on): Likewise.
12384         * modules/wcsspn (Depends-on): Likewise.
12385         * modules/wcsstr (Depends-on): Likewise.
12386         * modules/wcstok (Depends-on): Likewise.
12387         * modules/wcswidth (Depends-on): Likewise.
12388         * modules/wctob (Depends-on): Likewise.
12389         * modules/wctomb (Depends-on): Likewise.
12390         * modules/wctype (Depends-on): Likewise.
12391         * modules/wcwidth (Depends-on): Likewise.
12392         * modules/write (Depends-on): Likewise.
12393
12394 2011-05-03  Bruno Haible  <bruno@clisp.org>
12395
12396         Support for conditional dependencies.
12397         * doc/gnulib.texi (Module description): Document the syntax of
12398         conditional dependencies.
12399         * gnulib-tool: New option --conditional-dependencies.
12400         (func_usage): Document it.
12401         (cond_dependencies): New variable.
12402         (func_get_automake_snippet_conditional,
12403         func_get_automake_snippet_unconditional): New functions, extracted from
12404         func_get_automake_snippet.
12405         (func_get_automake_snippet): Use them.
12406         (sed_first_32_chars): New variable.
12407         (func_module_shellfunc_name): New function.
12408         (func_module_shellvar_name): New function.
12409         (func_module_conditional_name): New function.
12410         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12411         func_cond_module_condition): New functions.
12412         (func_modules_transitive_closure): Add support for conditional
12413         dependencies.
12414         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12415         conditional automake snippet in an automake conditional.
12416         (func_emit_autoconf_snippets): Emit shell functions that contain the
12417         code for conditional modules.
12418         (func_import, func_create_testdir): Update specification.
12419
12420 2011-05-03  Eric Blake  <eblake@redhat.com>
12421
12422         test-getaddrinfo: report error information
12423         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12424
12425 2011-05-03  Jim Meyering  <meyering@redhat.com>
12426
12427         bootstrap: avoid build failure when $GZIP is set
12428         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12429         program name.  If defined at all, it is supposed to list gzip options.
12430         Reported by Alan Curry in http://debbugs.gnu.org/8609
12431
12432 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12433
12434         readme-release: new module with release instructions
12435         * modules/readme-release: New module.
12436         * top/README-release: New file, from coreutils, grep, diffutils.
12437         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12438
12439 2011-05-02  Eric Blake  <eblake@redhat.com>
12440
12441         fflush: also replace fclose when fixing fflush
12442         * modules/fflush (Depends-on): Add fclose.
12443         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12444         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12445         memstreams with no backing fd.
12446         * doc/posix-functions/fclose.texi (fclose): Document the use of
12447         fflush module to fix the bug.
12448         * tests/test-fclose.c (main): Relax test when fclose is used in
12449         isolation.
12450
12451         fclose: add some tests
12452         * modules/fclose-tests: New test module.
12453         * tests/test-fclose.c: New file.
12454         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12455
12456         fclose: reduced dependencies
12457         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12458         simpler lseek.
12459         * lib/fclose.c (rpl_fclose): Likewise.
12460         Reported by Simon Josefsson.
12461
12462         exit: drop remaining clients
12463         * modules/argmatch (Depends-on): Replace exit with stdlib.
12464         * modules/copy-file (Depends-on): Likewise.
12465         * modules/execute (Depends-on): Likewise.
12466         * modules/exitfail (Depends-on): Likewise.
12467         * modules/obstack (Depends-on): Likewise.
12468         * modules/pagealign_alloc (Depends-on): Likewise.
12469         * modules/pipe-filter-gi (Depends-on): Likewise.
12470         * modules/pipe-filter-ii (Depends-on): Likewise.
12471         * modules/savewd (Depends-on): Likewise.
12472         * modules/spawn-pipe (Depends-on): Likewise.
12473         * modules/wait-process (Depends-on): Likewise.
12474         * modules/xsetenv (Depends-on): Likewise.
12475         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12476         * modules/git-merge-changelog (Depends-on): Likewise.
12477         * modules/long-options (Depends-on): Likewise.
12478         * modules/pt_chown (Depends-on): Likewise.
12479         * modules/sysexits (Depends-on): Likewise.
12480
12481         freading: relax license from LGPLv3+ to LGPLv2+
12482         * modules/freading (License): Relax LGPL version.
12483
12484 2011-05-02  Bruno Haible  <bruno@clisp.org>
12485
12486         fchdir: Remove unused dependencies.
12487         * modules/fchdir (Depends-on): Remove include_next.
12488
12489 2011-05-02  Bruno Haible  <bruno@clisp.org>
12490
12491         gnulib-tool: Refactor.
12492         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12493         from func_emit_autoconf_snippets.
12494         (func_emit_autoconf_snippets): Use it.
12495
12496 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12497
12498         * NEWS: Document removal of 'exit'.
12499         * modules/exit: Remove file.
12500
12501 2011-05-01  Bruno Haible  <bruno@clisp.org>
12502
12503         Update DEPENDENCIES.
12504         * DEPENDENCIES (gettext): Recommend the newest release.
12505         Reported by Simon Josefsson.
12506
12507 2011-05-01  Bruno Haible  <bruno@clisp.org>
12508
12509         gnulib-tool: Reduce code duplication.
12510         * gnulib-tool (func_emit_autoconf_snippets): New function.
12511         (func_import, func_create_testdir): Use it.
12512
12513 2011-04-30  Eric Blake  <eblake@redhat.com>
12514
12515         fclose: don't fail on non-seekable input stream
12516         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12517         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12518         since fflush is allowed to fail in that case.
12519
12520 2011-04-30  Bruno Haible  <bruno@clisp.org>
12521
12522         dup3: cleanup
12523         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12524
12525 2011-04-30  Bruno Haible  <bruno@clisp.org>
12526
12527         netdb: Make it work in C++ mode.
12528         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12529         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12530         module.
12531         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12532         gl_MODULE_INDICATOR_FOR_TESTS.
12533         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12534         * modules/netdb-c++-tests: New file.
12535         * tests/test-netdb-c++.cc: New file.
12536
12537 2011-04-30  Bruno Haible  <bruno@clisp.org>
12538
12539         New modules 'vfscanf', 'vscanf'.
12540         * modules/vfscanf: New file.
12541         * modules/vscanf: New file.
12542         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12543         here.
12544         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12545         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12546
12547 2011-04-30  Bruno Haible  <bruno@clisp.org>
12548
12549         passfd: Add comments.
12550         * lib/passfd.c: Add comments about platforms.
12551
12552 2011-04-30  Bruno Haible  <bruno@clisp.org>
12553
12554         sys_uio: Make <sys/uio.h> self-contained.
12555         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12556         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12557
12558 2011-04-30  Bruno Haible  <bruno@clisp.org>
12559
12560         sys_socket: Ensure 'struct iovec' definition.
12561         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12562         <sys/socket.h>.
12563         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12564
12565 2011-04-30  Bruno Haible  <bruno@clisp.org>
12566
12567         sys_uio: Protect definition of 'struct iovec'.
12568         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12569         it as a C struct.
12570
12571 2011-04-30  Bruno Haible  <bruno@clisp.org>
12572
12573         manywarnings: fix indentation
12574         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12575
12576 2011-04-30  Pádraig Brady <P@draigBrady.com>
12577
12578         manywarnings: add -Wno-missing-field-initializers if needed.
12579         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12580         option if it's needed to allow initialization with { 0, }
12581
12582 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12583
12584         announce-gen: cosmetic improvement
12585         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12586
12587 2011-04-29  Jim Meyering  <meyering@redhat.com>
12588
12589         vc-list-files: indent with spaces, not TABs
12590         * build-aux/vc-list-files: Convert leading TABs to spaces,
12591         to match the style of most other files in gnulib.
12592
12593         announce-gen: indent with spaces, not TABs
12594         * build-aux/announce-gen: Convert all TABs to spaces, to match
12595         the style of most other files in gnulib.
12596
12597 2011-04-29  Eric Blake  <eblake@redhat.com>
12598
12599         quotearg: avoid uninitialized variable use
12600         * lib/quotearg.c (quoting_options_from_style): Initialize
12601         remaining fields, and ensure that custom styles are only used via
12602         quoting_options rather than quoting_style.
12603
12604 2011-04-29  Jim Meyering  <meyering@redhat.com>
12605
12606         maint.mk: remove unused VC-tag variable
12607         * top/maint.mk (VC-tag): Remove unused variable.
12608
12609 2011-04-29  Bruno Haible  <bruno@clisp.org>
12610
12611         netdb: fix gai_strerror replacements
12612         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12613         * modules/netdb: Substitute it.
12614
12615 2011-04-29  Jim Meyering  <meyering@redhat.com>
12616
12617         test-getcwd.c: avoid new set-but-not-used warning
12618         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12619         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12620         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12621         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12622
12623         test-hash.c: avoid a new shadowing warning
12624         * tests/test-hash.c (main): Don't shadow "dup".
12625
12626 2011-04-28  Eric Blake  <eblake@redhat.com>
12627
12628         getaddrinfo: fix gai_strerror signature
12629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12630         and work around mingw with UNICODE defined.
12631         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12632         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12633         * modules/netdb (Makefile.am): Substitute it.
12634         * lib/netdb.in.h (gai_strerror): Declare replacement.
12635         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12636         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12637         the fix.
12638
12639         getsockopt: avoid compiler warning
12640         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12641         Reported by Matthias Bolte.
12642
12643         tests: drop unused link dependency
12644         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12645         * modules/dirent-safer-tests (Makefile.am): Likewise.
12646         * modules/fdopendir-tests (Makefile.am): Likewise.
12647         * modules/mkfifoat-tests (Makefile.am): Likewise.
12648         * modules/openat-safer-tests (Makefile.am): Likewise.
12649         * modules/openat-tests (Makefile.am): Likewise.
12650         * modules/readlinkat-tests (Makefile.am): Likewise.
12651         * modules/symlinkat-tests (Makefile.am): Likewise.
12652         * modules/linkat-tests (Makefile.am): Likewise.
12653         (Depends-on): Switch to filenamecat-lgpl.
12654         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12655         LIBINTL.
12656         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12657         * tests/test-linkat.c (main): Don't require xalloc.
12658
12659         hash, mgetgroups: drop xalloc dependency
12660         * lib/hash.c (includes): Adjust includes.
12661         * lib/mgetgroups.c (includes): Likewise.
12662         (xgetgroups): Move...
12663         * lib/xgetgroups.c: ...to new file.
12664         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12665         * modules/xgetgroups: New file, split from...
12666         * modules/mgetgroups: ...here.
12667         (Depends-on): Add xalloc-oversized.
12668         * modules/hash (Depends-on): Likewise.
12669         * modules/hash-tests (Depends-on): Drop xalloc.
12670         (test_hash_LDADD): Drop unused library.
12671         * tests/test-hash.c (main): Break xalloc dependency.
12672         (includes): Drop unused include.
12673
12674         xalloc-oversized: new module
12675         * modules/xalloc-oversized: New module.
12676         * modules/xalloc (Depends-on): Add it.
12677         * lib/xalloc.h (xalloc_oversized): Move...
12678         * lib/xalloc-oversized.h: ...into new file.
12679
12680         utimecmp: drop dependency on xmalloc
12681         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12682         due to memory pressure.
12683         * modules/utimecmp (Depends-on): Drop xalloc.
12684
12685 2011-04-27  Eric Blake  <eblake@redhat.com>
12686
12687         getcwd: fix mingw bugs
12688         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12689         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12690         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12691
12692 2011-04-27  Bruno Haible  <bruno@clisp.org>
12693
12694         mkstemps: Ensure declaration on MacOS X 10.5.
12695         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12696         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12697         MacOS X.
12698
12699 2011-04-27  Bruno Haible  <bruno@clisp.org>
12700
12701         mkstemp: More documentation.
12702         * doc/posix-functions/mkstemp.texi: Document header file problem on
12703         MacOS X.
12704
12705 2011-04-27  Bruno Haible  <bruno@clisp.org>
12706
12707         mkstemp: Tweak configure message when cross-compiling.
12708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12709         result as a guess.
12710
12711 2011-04-27  Bruno Haible  <bruno@clisp.org>
12712
12713         clean-temp: Clarify what it does.
12714         * lib/clean-temp.h: Add more comments.
12715         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12716         module.
12717         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12718         * doc/glibc-functions/mkstemps.texi: Likewise.
12719         * doc/glibc-functions/mkostemps.texi: Likewise.
12720
12721 2011-04-27  Eric Blake  <eblake@redhat.com>
12722
12723         fchdir: avoid extra chdir and fix test
12724         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12725         getcwd-lgpl.
12726         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12727         have to be canonical.
12728         (canonicalize_file_name): Drop unused macro.
12729         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12730
12731         filenamecat-lgpl: fix licence
12732         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12733         when it was first created.
12734
12735         linkat, renameat: add missing dependency
12736         * modules/linkat (Depends-on): Require getcwd-lgpl.
12737         * modules/renameat (Depends-on): Likewise.
12738
12739         tests: reduce dependencies
12740         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12741         * tests/test-renameat.c (main): Likewise.
12742         * modules/linkat-tests (Depends-on): Relax dependency.
12743         * modules/renameat-tests (Depends-on): Likewise.
12744         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12745         dependency explicit.
12746
12747         save-cwd: reduce default dependency
12748         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12749         * lib/save-cwd.c: Update comments.
12750         * NEWS: Document the semantic change.
12751
12752         getcwd: enhance tests
12753         * tests/test-getcwd-lgpl.c: New file, taken from...
12754         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12755         repeat long path stress tests from m4 probe.
12756         * modules/getcwd-lgpl-tests: New module.
12757         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12758         * m4/getcwd-abort-bug.m4: Update comment.
12759         * m4/getcwd-path-max.m4: Likewise.
12760
12761         getcwd-lgpl: new module
12762         * modules/getcwd-lgpl: New module.
12763         * lib/getcwd-lgpl.c: New file.
12764         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12765         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12766         * modules/getcwd (configure.ac): Set C witness.
12767         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12768
12769         getcwd: tweak comments
12770         * m4/getcwd-abort-bug.m4: Fix comments.
12771         * m4/getcwd-path-max.m4: Likewise.
12772         * m4/getcwd.m4: Likewise.
12773
12774 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12775         and Eric Blake  <eblake@redhat.com>
12776
12777         mkstemp: replace if system version uses wrong permissions
12778         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12779         read/write mode bits set in file created by mkstemp.
12780         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12781
12782 2011-04-27  Eric Blake  <eblake@redhat.com>
12783
12784         passfd: avoid compiler warning
12785         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12786         Reported by Laine Stump.
12787
12788 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12789
12790         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12791         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12792
12793 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12794         and Eric Blake  <eblake@redhat.com>
12795
12796         mkstemp: mention clean-temp module
12797         * lib/mkstemp.c: Add comment.
12798         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12799
12800 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12801
12802         inttypes: also provide default values for 32-bit tests
12803         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12804         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12805
12806 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12807
12808         strtoumax: remove dependency on strtoimax
12809         This is like the strtoull change of yesterday.
12810         * modules/strtoumax (Files): Add lib/strtoimax.c.
12811         (Depends-on): Remove strtoimax and add verify.
12812
12813         inttypes-incomplete: new module
12814         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12815         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12816         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12817         of gl_INTTYPES_H.
12818         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12819         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12820         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12821         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12822         * modules/strtoumax, modules/xstrtol (Depends-on):
12823         Depend on inttypes-incomplete, not inttypes.
12824         * modules/inttypes-incomplete: New module, containing the contents
12825         of the old modules/inttypes module, except that the Files: section
12826         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12827         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12828         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12829         (Depends-on): Depend only on inttypes-incomplete.
12830         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12831
12832         inttypes: omit now-redundant strtoimax and strtoumax work
12833         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12834         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12835
12836         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12837         This supports apps that need pointers to strtoimax and strtoumax,
12838         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12839         nonexistent functions.  See
12840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12841         et seq.
12842         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12843         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12844         a macro.
12845         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12846
12847 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12848
12849         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12850
12851 2011-04-25  Bruno Haible  <bruno@clisp.org>
12852
12853         strtol, strtoul: Mark modules as obsolete.
12854         * modules/strtol (Status, Notice): New sections.
12855         * modules/strtoul (Status, Notice): New sections.
12856
12857 2011-04-25  Bruno Haible  <bruno@clisp.org>
12858
12859         strtod: Remove check for strtod, unless supporting old platforms.
12860         * modules/strtod-obsolete: New file.
12861         * m4/strtod-obsolete.m4: New file.
12862         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12863         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12864         * modules/strtod (Depends-on): Add strtod-obsolete.
12865         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12866
12867 2011-04-25  Bruno Haible  <bruno@clisp.org>
12868
12869         strcase: Make module obsolete.
12870         * modules/strcase (Status, Notice): New sections.
12871
12872 2011-04-25  Bruno Haible  <bruno@clisp.org>
12873
12874         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12875         * modules/dup2-obsolete: New file.
12876         * m4/dup2-obsolete.m4: New file.
12877         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12878         gl_FUNC_DUP2_OBSOLETE is not also defined.
12879         * modules/dup2 (Depends-on): Add dup2-obsolete.
12880         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12881
12882 2011-04-25  Bruno Haible  <bruno@clisp.org>
12883
12884         strnlen: Avoid memchr related link error on old obsolete platforms.
12885         * modules/memchr-obsolete: New file.
12886         * m4/memchr-obsolete.m4: New file.
12887         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12888         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12889         * modules/memchr (Depends-on): Add memchr-obsolete.
12890         * modules/strnlen (Depends-on): Likewise.
12891         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12892
12893 2011-04-25  Jim Meyering  <meyering@redhat.com>
12894
12895         maint.mk: makefile_at_at_check extend and clean up
12896         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12897         in addition to */Makefile.am.
12898         Exempt legitimate uses of @VAR@ notation, e.g.,
12899         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12900         Remove obsolete coreutils-specific comment.
12901         Prompted by discussion here:
12902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12903
12904 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         strtoul: remove dependency on strtol
12907         This is so that 'configure' need not check for strtol merely because
12908         the application needs strtoul.
12909         * modules/strtoul (Files): Add lib/strtol.c.
12910         (Depends-on): Remove strtol.
12911
12912         strtoull: remove dependency on strtoul
12913         This is like the strtoll change.
12914         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12915         (Depends-on): Remove strtoul.
12916
12917         strtoll: remove dependency on strtol
12918         This is so that 'configure' need not check for strtol merely because
12919         the application needs strtoll.
12920         * modules/strtoll (Files): Add lib/strtol.c.
12921         (Depends-on): Remove strtol.
12922
12923 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12924
12925         inttypes: Move some configure check to module 'imaxdiv'.
12926         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12927         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12928         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12929
12930 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12931
12932         inttypes: Move some configure check to module 'imaxabs'.
12933         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12934         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12935         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12936
12937 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12938
12939         inttypes: Remove configure tests that are not needed since 2009-12-31.
12940         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12941         gl_cv_header_working_inttypes_h.
12942
12943 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12944
12945         * modules/strnlen (Depends-on): Remove memchr.
12946         The strnlen implementation doesn't need the memchr module's fixes; see
12947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12948
12949         strtol: remove dependency on wchar
12950         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12951         * modules/strtol (Depends-on): Remove wchar.
12952
12953 2011-04-21  Eric Blake  <eblake@redhat.com>
12954
12955         passfd: fix test regression on Linux
12956         * modules/passfd-tests (configure.ac): Correct socketpair check.
12957
12958         passfd: speed up configure and drop unused code
12959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12960         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12961         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12962         Instead of probing at configure for unix_scm_rights_bsd44_way,
12963         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12964         check to a struct member probe.
12965         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12966         (sendfd, recvfd): Update preprocessor checks.
12967         * modules/passfd (Files): Reflect rename, and drop unused file.
12968         (Depends-on): Drop unused dependency.
12969
12970         passfd: allow compilation on mingw
12971         * modules/sys_socket (Depends-on): Add sys_uio.
12972         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12973         iovec and a minimal struct msghdr.
12974         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12975         * tests/test-sys_socket.c (main): Enhance test.
12976         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12977         guaranteed to provide what we need.
12978         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12979         * modules/passfd-tests (Depends-on): Add sys_wait.
12980         * tests/test-passfd.c (main): Skip test on mingw, for now.
12981         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12982         partial 'struct msghdr' implementation.
12983
12984         sys_uio: new module
12985         * modules/sys_uio: New module.
12986         * modules/sys_uio-tests: Likewise.
12987         * lib/sys_uio.in.h: New file.
12988         * m4/sys_uio_h.m4: Likewise.
12989         * tests/test-sys_uio.c: Likewise.
12990         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12991         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12992
12993 2011-04-20  Jim Meyering  <meyering@redhat.com>
12994
12995         useless-if-before-free: avoid false-positive
12996         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12997         disjunct so that it too requires a terminating ";".  Without that,
12998         this script would identify as useless one statement from gcc that
12999         was not:
13000           if (aligned_ptr)
13001             free (((void **) aligned_ptr) [-1]);
13002
13003 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13004
13005         doc: update users.txt.
13006         * users.txt: Add barcode.
13007
13008 2011-04-19  Bruno Haible  <bruno@clisp.org>
13009
13010         ioctl: Remove link dependency on native Windows.
13011         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13012         (gl_close_fn, gl_ioctl_fn): New types.
13013         (struct fd_hook): Renamed from struct close_hook. Change type of
13014         private_close_fn field. Add private_ioctl_fn field.
13015         (close_hook_fn): Add parameter for primary close method.
13016         (execute_close_hooks, execute_all_close_hooks): Likewise.
13017         (ioctl_hook_fn): New type.
13018         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13019         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13020         argument.
13021         (unregister_fd_hook): Renamed from unregister_close_hook.
13022         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13023         Don't include <unistd.h>.
13024         (close): Remove undef.
13025         (anchor): Update.
13026         (execute_close_hooks): Add argument for primary close method.
13027         (execute_all_close_hooks): Likewise.
13028         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13029         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13030         argument. Allow each argument to be NULL.
13031         (unregister_fd_hook): Renamed from unregister_close_hook.
13032         * lib/close.c (rpl_close): Pass 'close' function pointer to
13033         execute_all_close_hooks.
13034         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13035         (primary_ioctl): New function.
13036         (ioctl): Don't call ioctlsocket here. Instead, call
13037         execute_all_ioctl_hooks.
13038         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13039         close method.
13040         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13041         (fd_sockets_hook): Renamed from close_sockets_hook.
13042         (gl_sockets_startup, gl_sockets_cleanup): Update.
13043         * modules/fd-hook: Renamed from modules/close-hook. Update.
13044         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13045         * modules/sockets (Depends-on): Likewise.
13046         * modules/ioctl (Depends-on): Add fd-hook.
13047         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13048         GNULIB_SOCKET.
13049
13050 2011-04-19  Bruno Haible  <bruno@clisp.org>
13051
13052         Move the support of O_NONBLOCK in open() to the 'open' module.
13053         * modules/nonblocking (Depends-on): Remove 'open'.
13054         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13055         gl_cv_have_open_O_NONBLOCK.
13056         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13057         O_NONBLOCK support.
13058         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13059
13060 2011-04-17  Bruno Haible  <bruno@clisp.org>
13061
13062         pipe2: Simplify code.
13063         * lib/pipe2.c (pipe2): Reduce code duplication.
13064
13065 2011-04-17  Bruno Haible  <bruno@clisp.org>
13066
13067         nonblocking: Add comment.
13068         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13069
13070 2011-04-17  Bruno Haible  <bruno@clisp.org>
13071
13072         nonblocking: Add tests for sockets.
13073         * tests/test-nonblocking-socket.sh: New file.
13074         * tests/test-nonblocking-socket-main.c: New file.
13075         * tests/test-nonblocking-socket-child.c: New file.
13076         * tests/test-nonblocking-socket.h: New file.
13077         * tests/socket-server.h: New file.
13078         * tests/socket-client.h: New file.
13079         * modules/nonblocking-socket-tests: New file.
13080         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13081
13082 2011-04-17  Bruno Haible  <bruno@clisp.org>
13083
13084         nonblocking: Add tests for pipes.
13085         * tests/test-nonblocking-pipe.sh: New file.
13086         * tests/test-nonblocking-pipe-main.c: New file.
13087         * tests/test-nonblocking-pipe-child.c: New file.
13088         * tests/test-nonblocking-pipe.h: New file.
13089         * tests/test-nonblocking-writer.h: New file.
13090         * tests/test-nonblocking-reader.h: New file.
13091         * tests/test-nonblocking-misc.h: New file.
13092         * modules/nonblocking-pipe-tests: New file.
13093         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13094
13095 2011-04-16  Bruno Haible  <bruno@clisp.org>
13096
13097         gettext: Clarify the needed programmer actions.
13098         * modules/gettext (Notice): New field.
13099         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13100
13101 2011-04-16  Bruno Haible  <bruno@clisp.org>
13102
13103         strchrnul: Tweak last commit.
13104         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13105         bug.
13106         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13107         as in _GL_FUNCDECL_SYS.
13108         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13109         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13110
13111 2011-04-15  Eric Blake  <eblake@redhat.com>
13112
13113         strchrnul: work around cygwin bug
13114         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13115         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13117         * modules/string (Makefile.am): Substitute it.
13118         * lib/string.in.h (strchrnul): Use it.
13119
13120 2011-04-15  Bruno Haible  <bruno@clisp.org>
13121
13122         Don't require lib/stdio-write.c when only module 'stdio' is used.
13123         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13124         invocation.
13125         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13126
13127 2011-04-14  Bruno Haible  <bruno@clisp.org>
13128
13129         Support non-blocking pipe I/O in read() on native Windows.
13130         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13131         (read): New declaration.
13132         * lib/read.c: New file.
13133         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13134         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13135         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13136         vscanf): New declarations.
13137         * lib/stdio-read.c: New file.
13138         * m4/read.m4: New file.
13139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13140         REPLACE_READ.
13141         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13142         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13143         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13144         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13145         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13146         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13147         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13148         * modules/read: New file.
13149         * modules/nonblocking (Files): Add lib/stdio-read.c.
13150         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13151         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13152         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13153         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13154         * modules/pread (Depends-on): Add read.
13155         * modules/safe-read (Depends-on): Likewise.
13156         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13157         gets, scanf, vfscanf, vscanf): Verify signatures.
13158         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13159         problem with non-blocking pipes.
13160         * doc/posix-functions/fgetc.texi: Likewise.
13161         * doc/posix-functions/fgets.texi: Likewise.
13162         * doc/posix-functions/fread.texi: Likewise.
13163         * doc/posix-functions/fscanf.texi: Likewise.
13164         * doc/posix-functions/getc.texi: Likewise.
13165         * doc/posix-functions/getchar.texi: Likewise.
13166         * doc/posix-functions/gets.texi: Likewise.
13167         * doc/posix-functions/scanf.texi: Likewise.
13168         * doc/posix-functions/vfscanf.texi: Likewise.
13169         * doc/posix-functions/vscanf.texi: Likewise.
13170
13171 2011-04-14  Bruno Haible  <bruno@clisp.org>
13172
13173         Support non-blocking pipe I/O in write() on native Windows.
13174         * lib/write.c (rpl_write): Split a write request that failed merely
13175         because the byte count was larger than the pipe buffer's size.
13176         * doc/posix-functions/write.texi: Mention the problem with large byte
13177         counts.
13178
13179 2011-04-14  Bruno Haible  <bruno@clisp.org>
13180
13181         wchar: Ensure that wchar_t gets defined on uClibc.
13182         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13183         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13184
13185 2011-04-13  Bruno Haible  <bruno@clisp.org>
13186
13187         safe-write, full-read: Avoid unnecessary compilation units.
13188         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13189         (Depends-on): Remove safe-read. Add ssize_t.
13190         * modules/full-read (Files): Add lib/full-write.c.
13191         (Depends-on): Add full-write.
13192
13193 2011-04-13  Bruno Haible  <bruno@clisp.org>
13194
13195         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13196         * modules/pwrite (Depends-on): Add 'write'.
13197
13198 2011-04-13  Bruno Haible  <bruno@clisp.org>
13199
13200         Support non-blocking pipe I/O in write() on native Windows.
13201         * lib/unistd.in.h (write): Enable replacement also if
13202         GNULIB_UNISTD_H_NONBLOCKING is 1.
13203         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13204         (rpl_write): When failing to write on a non-blocking pipe, change
13205         errno from ENOSPC to EAGAIN.
13206         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13207         putchar, puts, vfprintf, vprintf): Enable replacement also if
13208         GNULIB_STDIO_H_NONBLOCKING is 1.
13209         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13210         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13211         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13212         CALL_WITH_SIGPIPE_EMULATION.
13213         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13214         * m4/nonblocking.m4: New file.
13215         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13216         for non-blocking I/O support.
13217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13218         GNULIB_UNISTD_H_NONBLOCKING.
13219         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13220         required for non-blocking I/O support.
13221         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13222         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13223         lib/stdio-write.c, m4/asm-underscore.m4.
13224         (Depends-on): Add stdio, unistd.
13225         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13226         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13227         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13228         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13229         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13230         problem with non-blocking pipes.
13231         * doc/posix-functions/fputc.texi: Likewise.
13232         * doc/posix-functions/fputs.texi: Likewise.
13233         * doc/posix-functions/fwrite.texi: Likewise.
13234         * doc/posix-functions/printf.texi: Likewise.
13235         * doc/posix-functions/putc.texi: Likewise.
13236         * doc/posix-functions/putchar.texi: Likewise.
13237         * doc/posix-functions/puts.texi: Likewise.
13238         * doc/posix-functions/vfprintf.texi: Likewise.
13239         * doc/posix-functions/vprintf.texi: Likewise.
13240         * doc/posix-functions/write.texi: Likewise.
13241
13242 2011-04-10  Jim Meyering  <meyering@redhat.com>
13243
13244         maint.mk: prohibit doubled words
13245         Detect them also when they're separated by a newline.
13246         There are 3 ways to customize it:
13247           - disable the test on a per file basis, as usual with rules using
13248             $(VC_LIST_EXCEPT)
13249           - replace the default doubled-word-selecting regexp (affects all files)
13250           - ignore a particular file-vs-doubled-word match
13251         I nearly used that last one to ignore the "is is" match in
13252         coreutils' NEWS file, since the text was "ls -is is ..."
13253         To do that, I would have added this line to cfg.mk:
13254           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13255         but it would have ignored any "is is" match in NEWS.
13256         Low probability, but still...
13257         Instead, I changed the text, slightly:
13258           -  ls -is is now consistent with ls -lis in ignoring values returned
13259           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13260         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13261         (prohibit_doubled_word_): Define.
13262         (sc_prohibit_doubled_word): New rule.
13263         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13264
13265 2011-04-10  Jim Meyering  <meyering@redhat.com>
13266
13267         maint: fix doubled-word typo in comment
13268         * m4/gethostname.m4: s/is is/it is/
13269         * m4/getdomainname.m4: Likewise.
13270
13271 2011-04-10  Jim Meyering  <meyering@redhat.com>
13272
13273         maint: remove doubled word: s/it it/it/
13274         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13275
13276 2011-04-10  Jim Meyering  <meyering@redhat.com>
13277
13278         maint.mk: remove useless semicolon and backslash
13279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13280         semicolon and backslash.
13281
13282 2011-04-10  Bruno Haible  <bruno@clisp.org>
13283
13284         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13285         * modules/stdint-tests (Depends-on): Add wchar.
13286
13287 2011-04-10  Jim Meyering  <meyering@redhat.com>
13288
13289         maint: remove doubled words in comments, e.g., s/a a/a/
13290         * lib/strptime.c (day_of_the_week): s/the the/the/
13291         * tests/test-chown.h (test_chown): s/a a/a/
13292
13293         test-chown.h: correct a cast
13294         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13295         when the destination is a stat.st_gid.
13296
13297 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13298
13299         getaddrinfo: Fix test for sa_len member.
13300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13301         include <sys/types.h> before <sys/socket.h>.
13302
13303 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13304
13305         maint: change "can not" to "cannot"
13306         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13307         boundaries.
13308
13309 2011-04-09  Jim Meyering  <meyering@redhat.com>
13310
13311         maint: change "a a" to "a"
13312         * tests/test-lchown.h (test_lchown): s/a a/a/
13313
13314         maint.mk: prohibit \<the the\>
13315         * top/maint.mk (sc_prohibit_the_the): New rule.
13316
13317         maint: fix "the the" in comment
13318         * lib/count-one-bits.h: s/the the/the/
13319
13320         maint: change "can not" to "cannot"
13321         But do not change the occurrences in maintain.texi or in
13322         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13323         * doc/gnulib-tool.texi: s/can not/cannot/
13324         * doc/posix-functions/accept.texi (accept): Likewise.
13325         * doc/posix-functions/socket.texi (socket): Likewise.
13326         * lib/mbrtowc.c: Likewise.
13327
13328         maint.mk: prohibit use of "can not"
13329         * top/maint.mk (sc_prohibit_can_not): New rule.
13330         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13331
13332 2011-04-09  Bruno Haible  <bruno@clisp.org>
13333
13334         careadlinkat: Guard against misuse of careadlinkatcwd.
13335         * lib/careadlinkat.c: Include <stdlib.h>.
13336         (careadlinkatcwd): Check that the fd argument is as expected.
13337
13338 2011-04-09  Bruno Haible  <bruno@clisp.org>
13339
13340         careadlinkat: Use common coding style.
13341         * lib/careadlinkat.c: Move gnulib includes after system includes.
13342
13343 2011-04-09  Bruno Haible  <bruno@clisp.org>
13344
13345         careadlinkat: Clarify specification.
13346         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13347         (careadlinkatcwd): Add comment.
13348         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13349
13350 2011-04-09  Bruno Haible  <bruno@clisp.org>
13351
13352         areadlinkat: Avoid link error on many platforms.
13353         * modules/areadlinkat (Depends-on): Add areadlink.
13354
13355 2011-04-09  Bruno Haible  <bruno@clisp.org>
13356
13357         allocator, careadlinkat: Fix double-inclusion guard.
13358         * lib/allocator.h: Fix double-inclusion guard.
13359         * lib/careadlinkat.h: Likewise.
13360
13361 2011-04-09  Bruno Haible  <bruno@clisp.org>
13362
13363         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13364         * lib/relocwrapper.c: Update dependencies hierarchy.
13365         * build-aux/install-reloc: Update list of files to be compiled.
13366         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13367         lib/allocator.[hc].
13368
13369 2011-04-08  Eric Blake  <eblake@redhat.com>
13370
13371         strftime: silence gnulib-tool warning
13372         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13373
13374 2011-04-08  Bruno Haible  <bruno@clisp.org>
13375
13376         verify: Fix syntax error with GCC 4.6 in C++ mode.
13377         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13378         (HAVE_STATIC_ASSERT): New macro.
13379         (verify_true, verify): Use 'static_assert' if it is supported and
13380         '_Static_assert' is not supported.
13381
13382 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         allocator: New module.
13385         * modules/allocator, lib/allocator.c: New files.
13386         * lib/allocator.h (stdlib_allocator): New decl.
13387         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13388         Remove.  Do not include <stdlib.h>.
13389         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13390         * modules/careadlinkat (Files): Remove lib/allocator.h.
13391         (Depends-on): Add allocator.
13392
13393         stdlib: let modules use system malloc, realloc
13394         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13395         if !_GL_USE_STDLIB_ALLOC.
13396         (malloc, realloc): Limit this change to a smaller scope.
13397
13398         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13399         (malloc, realloc): Don't #undef; no longer needed.
13400         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13401         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13402         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13403         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13404         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13405         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13406         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13407         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13408
13409         careadlinkat: rename members to avoid problem
13410         * lib/allocator.h (struct allocator): Rename members from
13411         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13412         and realloc are #define'd.  Reported by Eric Blake in
13413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13414         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13415
13416 2011-04-08  Eric Blake  <eblake@redhat.com>
13417
13418         nonblocking: reduce dependency
13419         * tests/test-nonblocking.c: Only test sockets when in use.
13420         * modules/nonblocking-tests (Depends-on): Drop socket.
13421         (Makefile.am): Link even if sockets are not present.
13422         * modules/pipe2-tests (Makefile.am): Likewise.
13423         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13424
13425         pipe2: fix O_NONBLOCK support on mingw
13426         * modules/pipe2 (Depends-on): Add nonblocking.
13427         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13428         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13429         * tests/test-nonblocking.c (main): Likewise.
13430         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13431
13432         fcntl-h: fix O_ACCMODE on cygwin
13433         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13434         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13435
13436         pipe-filter: drop O_NONBLOCK workarounds
13437         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13438         * modules/pipe-filter-ii (Depends-on): Likewise.
13439         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13440
13441         nonblocking: provide O_NONBLOCK for mingw
13442         * modules/nonblocking (Depends-on): Add open.
13443         (configure.ac): Set new witness macro.
13444         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13445         * modules/fcntl-h (Makefile.am): Substitute it.
13446         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13447         nonblocking module is in use.
13448         * lib/nonblocking.c: Adjust portability test.
13449         * lib/open.c (open): Don't let native open see gnulib flag.
13450         * tests/test-fcntl-h.c (main): Enhance test.
13451         * tests/test-open.h (test_open): Likewise.
13452         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13453
13454         careadlinkat: fix compilation error on mingw
13455         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13456         within struct allocator.
13457
13458 2011-04-06  Eric Blake  <eblake@redhat.com>
13459
13460         binary-io: relicense under LGPLv2+
13461         * modules/binary-io (License): Relax to LGPLv2+.
13462         Requested for libvirt, and required by pipe2.
13463
13464 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         verify: use _Static_assert if available
13467         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13468         (verify_true, verify): Use it if available.  This generates better
13469         diagnostics with GCC 4.6.0 and later.
13470
13471 2011-04-05  Bruno Haible  <bruno@clisp.org>
13472
13473         Remove leftover generated .h files after config.status changed.
13474
13475         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13476         GL_GENERATE_ALLOCA_H.
13477         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13478         GL_GENERATE_ALLOCA_H evaluates to false.
13479
13480         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13481         GL_GENERATE_ARGZ_H.
13482         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13483         evaluates to false.
13484
13485         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13486         GL_GENERATE_BYTESWAP_H.
13487         * modules/byteswap (Makefile.am): Remove byteswap.h if
13488         GL_GENERATE_BYTESWAP_H evaluates to false.
13489
13490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13491         GL_GENERATE_ERRNO_H.
13492         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13493         evaluates to false.
13494
13495         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13496         GL_GENERATE_FLOAT_H.
13497         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13498         evaluates to false.
13499
13500         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13501         GL_GENERATE_FNMATCH_H.
13502         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13503         GL_GENERATE_FNMATCH_H evaluates to false.
13504
13505         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13506         GL_GENERATE_GLOB_H.
13507         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13508         evaluates to false.
13509
13510         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13511         automake conditional GL_GENERATE_ICONV_H.
13512         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13513         evaluates to false.
13514
13515         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13516         GL_GENERATE_NETINET_IN_H.
13517         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13518         GL_GENERATE_NETINET_IN_H evaluates to false.
13519
13520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13521         conditional GL_GENERATE_PTHREAD_H.
13522         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13523         * modules/pthread (Makefile.am): Remove pthread.h if
13524         GL_GENERATE_PTHREAD_H evaluates to false.
13525
13526         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13527         GL_GENERATE_SCHED_H.
13528         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13529         evaluates to false.
13530
13531         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13532         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13533         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13534         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13535
13536         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13537         GL_GENERATE_STDARG_H.
13538         * modules/stdarg (Makefile.am): Remove stdarg.h if
13539         GL_GENERATE_STDARG_H evaluates to false.
13540
13541         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13542         GL_GENERATE_STDBOOL_H.
13543         * modules/stdbool (Makefile.am): Remove stdbool.h if
13544         GL_GENERATE_STDBOOL_H evaluates to false.
13545
13546         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13547         conditional GL_GENERATE_STDDEF_H.
13548         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13549         * modules/stddef (Makefile.am): Remove stddef.h if
13550         GL_GENERATE_STDDEF_H evaluates to false.
13551
13552         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13553         GL_GENERATE_STDINT_H.
13554         * modules/stdint (Makefile.am): Remove stdint.h if
13555         GL_GENERATE_STDINT_H evaluates to false.
13556
13557         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13558         GL_GENERATE_SYSEXITS_H.
13559         * modules/sysexits (Makefile.am): Remove sysexits.h if
13560         GL_GENERATE_SYSEXITS_H evaluates to false.
13561
13562         Reported by Karl Berry and Ralf Wildenhues.
13563
13564 2011-04-05  Bruno Haible  <bruno@clisp.org>
13565
13566         Ensure to rebuild generated .h files when config.status has changed.
13567         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13568         config.status.
13569         * modules/ctype (Makefile.am): Likewise.
13570         * modules/dirent (Makefile.am): Likewise.
13571         * modules/errno (Makefile.am): Likewise.
13572         * modules/fcntl-h (Makefile.am): Likewise.
13573         * modules/float (Makefile.am): Likewise.
13574         * modules/getopt-posix (Makefile.am): Likewise.
13575         * modules/glob (Makefile.am): Likewise.
13576         * modules/iconv-h (Makefile.am): Likewise.
13577         * modules/inttypes (Makefile.am): Likewise.
13578         * modules/langinfo (Makefile.am): Likewise.
13579         * modules/locale (Makefile.am): Likewise.
13580         * modules/math (Makefile.am): Likewise.
13581         * modules/netdb (Makefile.am): Likewise.
13582         * modules/netinet_in (Makefile.am): Likewise.
13583         * modules/poll-h (Makefile.am): Likewise.
13584         * modules/pthread (Makefile.am): Likewise.
13585         * modules/pty (Makefile.am): Likewise.
13586         * modules/sched (Makefile.am): Likewise.
13587         * modules/search (Makefile.am): Likewise.
13588         * modules/selinux-h (Makefile.am): Likewise.
13589         * modules/signal (Makefile.am): Likewise.
13590         * modules/spawn (Makefile.am): Likewise.
13591         * modules/stdarg (Makefile.am): Likewise.
13592         * modules/stdbool (Makefile.am): Likewise.
13593         * modules/stddef (Makefile.am): Likewise.
13594         * modules/stdint (Makefile.am): Likewise.
13595         * modules/stdio (Makefile.am): Likewise.
13596         * modules/stdlib (Makefile.am): Likewise.
13597         * modules/string (Makefile.am): Likewise.
13598         * modules/strings (Makefile.am): Likewise.
13599         * modules/sys_file (Makefile.am): Likewise.
13600         * modules/sys_ioctl (Makefile.am): Likewise.
13601         * modules/sys_select (Makefile.am): Likewise.
13602         * modules/sys_socket (Makefile.am): Likewise.
13603         * modules/sys_stat (Makefile.am): Likewise.
13604         * modules/sys_time (Makefile.am): Likewise.
13605         * modules/sys_times (Makefile.am): Likewise.
13606         * modules/sys_utsname (Makefile.am): Likewise.
13607         * modules/sys_wait (Makefile.am): Likewise.
13608         * modules/sysexits (Makefile.am): Likewise.
13609         * modules/termios (Makefile.am): Likewise.
13610         * modules/time (Makefile.am): Likewise.
13611         * modules/unistd (Makefile.am): Likewise.
13612         * modules/wchar (Makefile.am): Likewise.
13613         * modules/wctype-h (Makefile.am): Likewise.
13614         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13615
13616 2011-04-05  Bruno Haible  <bruno@clisp.org>
13617
13618         pipe2: Relicense under LGPLv2+.
13619         * modules/pipe2 (License): Change to LGPLv2+.
13620         Requested by Eric Blake, for libvirt.
13621
13622 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13623
13624         bootstrap: compute gnulib_extra_files after updating build_aux
13625         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13626         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13627
13628 2011-04-05  Eric Blake  <eblake@redhat.com>
13629
13630         bootstrap: preserve git whitelist item sorting
13631         * build-aux/bootstrap (sort_patterns): New function.
13632         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13633
13634 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13635
13636         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13637         sc_space_tab check.
13638
13639 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13640
13641         areadlink, areadlinkat: rewrite in terms of careadlinkat
13642         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13643         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13644         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13645         (malloc, realloc): Remove #undefs.
13646         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13647         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13648         readlink, ssize_t, stdint, unistd.
13649         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13650         areadlink, stdint.
13651
13652         careadlinkat: new module
13653         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13654         * modules/careadlinkat: New files, written by me with
13655         a review and feedback from Ben Pfaff in
13656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13657
13658 2011-04-01  Bruno Haible  <bruno@clisp.org>
13659
13660         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13661         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13662         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13663         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13664         Reported by Bruce Korb <bruce.korb@gmail.com>.
13665
13666 2011-04-01  Bruno Haible  <bruno@clisp.org>
13667
13668         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13669         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13670         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13671         * modules/wcpcpy (Depends-on): Add extensions.
13672         * modules/wcpncpy (Depends-on): Likewise.
13673         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13674         systems.
13675         * doc/posix-functions/wcpncpy.texi: Likewise.
13676         * doc/posix-functions/wcwidth.texi: Likewise.
13677
13678 2011-03-31  Eric Blake  <eblake@redhat.com>
13679
13680         nonblocking: fix mingw test failures
13681         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13682         non-blocking flag on regular file.
13683         (get_nonblocking_flag): Set errno on invalid fd.
13684         * tests/test-nonblocking.c (main): Avoid test failure on
13685         directories if fchdir is not active.
13686         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13687
13688 2011-03-31  Bruno Haible  <bruno@clisp.org>
13689
13690         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13691         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13692         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13693         Reported by Simon Josefsson <simon@josefsson.org>.
13694
13695 2011-03-31  Bruno Haible  <bruno@clisp.org>
13696         and Eric Blake  <eblake@redhat.com>
13697
13698         nonblocking: new module
13699         * modules/nonblocking: New module.
13700         * modules/nonblocking-tests: Likewise.
13701         * lib/nonblocking.h: New file.
13702         * lib/nonblocking.c: Likewise.
13703         * tests/test-nonblocking.c: New test.
13704         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13705
13706 2011-03-30  Bruno Haible  <bruno@clisp.org>
13707
13708         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13709         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13710         instead of 'printf' format for GCC >= 4.4.
13711         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13712         (fprintf, printf, vfprintf, vprintf): Declare with
13713         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13714         the system's vfprintf() function.
13715         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13716
13717 2011-03-30  Eric Blake  <eblake@redhat.com>
13718
13719         passfd: fix scoping bug
13720         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13721         before sendmsg/recvmsg.
13722
13723         passfd: standardize coding conventions
13724         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13725         can be learned at compile time.
13726         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13727         ifdefs.
13728         (sendfd, recvfd): Follow gnulib code conventions.
13729
13730         passfd: fix incorrect sendmsg arguments
13731         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13732         incorrect msg_controllen value.
13733         * modules/passfd-tests (Depends-on): Check for alarm.
13734         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13735         Reported by Bastien ROUCARIES.
13736
13737 2011-03-30  Bruno Haible  <bruno@clisp.org>
13738
13739         c-strcasestr: Relicense under LGPLv2+.
13740         * modules/c-strcasestr (License): Change to LGPLv2+.
13741         Requested by Eric Blake, for libvirt.
13742
13743 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13744
13745         * users.txt: Add libidn2.  Fix libtasn1 link.
13746
13747 2011-03-30  Jim Meyering  <meyering@redhat.com>
13748
13749         tests: readlink* ("",... fails with EINVAL on newer kernels
13750         readlink and readlinkat have typically failed with ENOENT for
13751         the invalid, empty file name,  "".  However, with the advent
13752         of linux-2.6.39, they fail with EINVAL.
13753         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13754         when operating on the empty file name.
13755         * tests/test-readlink.h (test_readlink): Likewise.
13756
13757 2011-03-29  Bruno Haible  <bruno@clisp.org>
13758
13759         Relicense some modules under LGPLv2+, for libidn2.
13760         * modules/array-mergesort (License): Change to LGPLv2+.
13761         * modules/c-strcaseeq (License): Likewise.
13762         * modules/striconveh (License): Likewise.
13763         * modules/striconveha (License): Likewise.
13764         * modules/uniconv/base (License): Likewise.
13765         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13766         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13767         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13768         * modules/unictype/base (License): Likewise.
13769         * modules/unictype/bidiclass-of (License): Likewise.
13770         * modules/unictype/category-M (License): Likewise.
13771         * modules/unictype/category-none (License): Likewise.
13772         * modules/unictype/category-of (License): Likewise.
13773         * modules/unictype/category-test (License): Likewise.
13774         * modules/unictype/category-test-withtable (License): Likewise.
13775         * modules/unictype/combining-class (License): Likewise.
13776         * modules/unictype/joiningtype-of (License): Likewise.
13777         * modules/unictype/scripts (License): Likewise.
13778         * modules/uninorm/base (License): Likewise.
13779         * modules/uninorm/canonical-decomposition (License): Likewise.
13780         * modules/uninorm/composition (License): Likewise.
13781         * modules/uninorm/decompose-internal (License): Likewise.
13782         * modules/uninorm/decomposition-table (License): Likewise.
13783         * modules/uninorm/nfc (License): Likewise.
13784         * modules/uninorm/nfd (License): Likewise.
13785         * modules/uninorm/u32-normalize (License): Likewise.
13786         * modules/unistr/base (License): Likewise.
13787         * modules/unistr/u32-cpy (License): Likewise.
13788         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13789         * modules/unistr/u32-to-u8 (License): Likewise.
13790         * modules/unistr/u32-uctomb (License): Likewise.
13791         * modules/unistr/u8-check (License): Likewise.
13792         * modules/unistr/u8-mblen (License): Likewise.
13793         * modules/unistr/u8-mbtouc (License): Likewise.
13794         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13795         * modules/unistr/u8-mbtoucr (License): Likewise.
13796         * modules/unistr/u8-prev (License): Likewise.
13797         * modules/unistr/u8-strlen (License): Likewise.
13798         * modules/unistr/u8-to-u32 (License): Likewise.
13799         * modules/unistr/u8-uctomb (License): Likewise.
13800         * modules/unitypes (License): Likewise.
13801         Requested by Simon Josefsson.
13802
13803 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13804
13805         lib-symbol-visibility: Add a notice.
13806         * modules/lib-symbol-visibility (Notice): New field.
13807
13808 2011-03-29  Bruno Haible  <bruno@clisp.org>
13809
13810         getaddrinfo: Doc fix.
13811         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13812         section "fixed in Gnulib".
13813
13814 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13815
13816         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13817         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13818
13819 2011-03-26  Bruno Haible  <bruno@clisp.org>
13820
13821         unictype/property-byname: Reduce the number of load-time relocations.
13822         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13823         (UC_PROPERTY_INDEX_*): New enumeration values.
13824         (uc_property_byname): Convert an index from the lookup table to an
13825         uc_property_t.
13826         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13827         values.
13828
13829 2011-03-26  Bruno Haible  <bruno@clisp.org>
13830
13831         unictype/property-byname: Allow omitted word separators and aliases.
13832         * lib/unictype/pr_byname.gperf: Add property names without word
13833         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13834         for 'space'.
13835
13836 2011-03-26  Bruno Haible  <bruno@clisp.org>
13837
13838         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13839         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13840         also hyphens to space.
13841         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13842         without spaces.
13843         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13844
13845 2011-03-26  Bruno Haible  <bruno@clisp.org>
13846
13847         unictype/joiningtype-byname: Recognize long names as well.
13848         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13849         a long name.
13850         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13851         unictype/joiningtype_byname.h.
13852         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13853         * lib/unictype/joiningtype_byname.gperf: New file.
13854         * modules/unictype/joiningtype-byname (Files): Add
13855         lib/unictype/joiningtype_byname.gperf.
13856         (Depends-on): Add gperf.
13857         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13858         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13859         long names.
13860
13861         Tests for module 'unictype/joiningtype-longname'.
13862         * modules/unictype/joiningtype-longname-tests: New file.
13863         * tests/unictype/test-joiningtype_longname.c: New file.
13864
13865         New module 'unictype/joiningtype-longname'.
13866         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13867         * lib/unictype/joiningtype_longname.c: New file.
13868         * modules/unictype/joiningtype-longname: New file.
13869         * modules/unictype/joiningtype-all (Depends-on): Add
13870         unictype/joiningtype-longname.
13871
13872 2011-03-26  Bruno Haible  <bruno@clisp.org>
13873
13874         unictype/bidiclass-byname: Recognize long names as well.
13875         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13876         name.
13877         * lib/unictype/bidi_byname.c: Include <string.h>,
13878         unictype/bidi_byname.h.
13879         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13880         * lib/unictype/bidi_byname.gperf: New file.
13881         * modules/unictype/bidiclass-byname (Files): Add
13882         lib/unictype/bidi_byname.gperf.
13883         (Depends-on): Add gperf.
13884         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13885         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13886         long names.
13887
13888         Tests for module 'unictype/bidiclass-longname'.
13889         * modules/unictype/bidiclass-longname-tests: New file.
13890         * tests/unictype/test-bidi_longname.c: New file.
13891
13892         New module 'unictype/bidiclass-longname'.
13893         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13894         * lib/unictype/bidi_longname.c: New file.
13895         * modules/unictype/bidiclass-longname: New file.
13896         * modules/unictype/bidiclass-all (Depends-on): Add
13897         unictype/bidiclass-longname.
13898
13899 2011-03-26  Bruno Haible  <bruno@clisp.org>
13900
13901         unictype/bidi*: Rename modules.
13902         * modules/unictype/bidiclass-all: Renamed from
13903         modules/unictype/bidicategory-all.
13904         * modules/unictype/bidiclass-name: Renamed from
13905         modules/unictype/bidiclass-name.
13906         (Description): Update.
13907         * modules/unictype/bidiclass-name-tests: Renamed from
13908         modules/unictype/bidicategory-name-tests.
13909         * modules/unictype/bidiclass-byname: Renamed from
13910         modules/unictype/bidicategory-byname.
13911         (Description): Update.
13912         * modules/unictype/bidiclass-byname-tests: Renamed from
13913         modules/unictype/bidicategory-byname-tests.
13914         * modules/unictype/bidiclass-of: Renamed from
13915         modules/unictype/bidicategory-of.
13916         (Description): Update.
13917         * modules/unictype/bidiclass-of-tests: Renamed from
13918         modules/unictype/bidicategory-of-tests.
13919         * modules/unictype/bidiclass-test: Renamed from
13920         modules/unictype/bidicategory-test.
13921         (Description): Update.
13922         * modules/unictype/bidiclass-test-tests: Renamed from
13923         modules/unictype/bidicategory-test-tests.
13924         * modules/unictype/bidicategory-all: New file, a simple redirection.
13925         * modules/unictype/bidicategory-name: Likewise.
13926         * modules/unictype/bidicategory-byname: Likewise.
13927         * modules/unictype/bidicategory-of: Likewise.
13928         * modules/unictype/bidicategory-test: Likewise.
13929         * modules/unictype/property-bidi-* (Dependencies): Update.
13930         * lib/unictype/bidi_*.c: Update comment.
13931
13932 2011-03-26  Bruno Haible  <bruno@clisp.org>
13933
13934         unictype/bidi*: Rename functions, part 2.
13935         * modules/unictype/bidicategory-name (configure.ac): Update required
13936         libunistring version.
13937         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13938
13939 2011-03-25  Bruno Haible  <bruno@clisp.org>
13940
13941         New module 'unictype/combining-class-all'.
13942         * modules/unictype/combining-class-all: New file.
13943
13944         Tests for module 'unictype/combining-class-byname'.
13945         * modules/unictype/combining-class-byname-tests: New file.
13946         * tests/unictype/test-combiningclass_byname.c: New file.
13947
13948         New module 'unictype/combining-class-byname'.
13949         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13950         * lib/unictype/combiningclass_byname.c: New file.
13951         * lib/unictype/combiningclass_byname.gperf: New file.
13952         * modules/unictype/combining-class-byname: New file.
13953
13954         Tests for module 'unictype/combining-class-longname'.
13955         * modules/unictype/combining-class-longname-tests: New file.
13956         * tests/unictype/test-combiningclass_longname.c: New file.
13957
13958         New module 'unictype/combining-class-longname'.
13959         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13960         * lib/unictype/combiningclass_longname.c: New file.
13961         * modules/unictype/combining-class-longname: New file.
13962
13963         Tests for module 'unictype/combining-class-name'.
13964         * modules/unictype/combining-class-name-tests: New file.
13965         * tests/unictype/test-combiningclass_name.c: New file.
13966
13967         New module 'unictype/combining-class-name'.
13968         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13969         * lib/unictype/combiningclass_name.c: New file.
13970         * modules/unictype/combining-class-name: New file.
13971
13972 2011-03-25  Bruno Haible  <bruno@clisp.org>
13973
13974         unictype/combining-class: Rename source files.
13975         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13976         of unictype/combining.h.
13977         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13978         Update.
13979         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13980         * modules/unictype/combining-class (Description): Fix.
13981         (Files, Makefile.am): Update.
13982         * tests/unictype/test-combiningclass.c: Renamed from
13983         tests/unictype/test-combining.c.
13984         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13985
13986 2011-03-25  Bruno Haible  <bruno@clisp.org>
13987
13988         unictype: Update list of canonical combining classes.
13989         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13990
13991 2011-03-25  Bruno Haible  <bruno@clisp.org>
13992
13993         unictype/category-byname: Recognize long names as well.
13994         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13995         a long name.
13996         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13997         unictype/categ_byname.h.
13998         (UC_CATEGORY_INDEX_*): New enumeration values.
13999         (uc_general_category_byname): Use uc_general_category_lookup and
14000         convert from index to value.
14001         * lib/unictype/categ_byname.gperf: New file.
14002         * modules/unictype/category-byname (Files): Add
14003         lib/unictype/categ_byname.gperf.
14004         (Depends-on): Add gperf.
14005         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14006         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14007         long names.
14008
14009         Tests for module 'unictype/category-longname'.
14010         * modules/unictype/category-longname-tests: New file.
14011         * tests/unictype/test-categ_longname.c: New file.
14012
14013         New module 'unictype/category-longname'.
14014         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14015         * lib/unictype/categ_longname.c: New file.
14016         * modules/unictype/category-longname: New file.
14017         * modules/unictype/category-all (Depends-on): Add it.
14018
14019 2011-03-25  Bruno Haible  <bruno@clisp.org>
14020
14021         Tests for module 'unictype/category-LC'.
14022         * modules/unictype/category-LC-tests: New file.
14023         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14024
14025         New module 'unictype/category-LC'.
14026         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14027         (UC_CATEGORY_LC): New declaration.
14028         (UC_CASED_LETTER): New macro.
14029         * lib/gen-uni-tables.c (is_category_LC): New function.
14030         (output_categories): Also handle category LC.
14031         (UC_CATEGORY_MASK_LC): New enumeration value.
14032         (general_category_byname): Also handle category LC.
14033         * lib/unictype/categ_LC.c: New file.
14034         * lib/unictype/categ_LC.h: New file, automatically generated.
14035         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14036         category LC.
14037         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14038         * modules/unictype/category-LC: New file.
14039         * modules/unictype/category-byname (Depends-on): Add
14040         unictype/category-LC.
14041         * modules/unictype/category-all (Depends-on): Likewise.
14042
14043 2011-03-25  Eric Blake  <eblake@redhat.com>
14044
14045         xmalloc: revert yesterday's regression
14046         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14047         realloc's underlying behavior (allowing allocation of zero-size
14048         objects, especially if malloc-gnu is also in use).
14049
14050 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14051
14052         maint.mk: add missing version to VC-tag
14053         * top/maint.mk: git tag was missing actual tag name; add it.
14054
14055         valgrind: do leak checking, and exit with code 1 on error (not 0)
14056         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14057         to VALGRIND.
14058
14059 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14060
14061         posix-modules: say what it does.
14062         * posix-modules: Add a line to the --help output saying what it does.
14063
14064 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14065
14066         xmalloc: Do not leak if underlying realloc is C99 compatible.
14067         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14068         This avoids a leak on C99-based systems.  See
14069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14070
14071 2011-03-24  Eric Blake  <eblake@redhat.com>
14072
14073         realloc: document portability problem
14074         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14075         passing 0 size to realloc.
14076
14077 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14078
14079         doc: update users.txt
14080         * users.txt: Add cvsps, tmpwatch
14081
14082 2011-03-23  Matt Rice  <ratmice@gmail.com>
14083
14084         doc: update users.txt
14085         * users.txt: Add gdb.
14086
14087 2011-03-23  Jim Meyering  <meyering@redhat.com>
14088
14089         doc: update users.txt
14090         Looking through matches up to the following URL (there are still
14091         several more pages), I found several projects that use gnulib:
14092         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14093         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14094         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14095
14096 2011-03-22  Bruno Haible  <bruno@clisp.org>
14097
14098         unictype/bidi*: Rename functions.
14099         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14100         uc_bidi_class, uc_is_bidi_class): New declarations.
14101         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14102         uc_bidi_category_byname.
14103         (uc_bidi_category_byname): New function.
14104         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14105         u_bidi_category_name.
14106         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14107         (uc_bidi_category_name): New function.
14108         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14109         uc_bidi_category.
14110         (uc_bidi_category): New function.
14111         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14112         uc_is_bidi_category. Invoke uc_bidi_class.
14113         (uc_is_bidi_category): New function.
14114         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14115         instead of uc_bidi_category_byname.
14116         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14117         instead of uc_bidi_category_name.
14118         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14119         uc_bidi_category.
14120         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14121         instead of uc_is_bidi_category.
14122
14123 2011-03-21  Bruno Haible  <bruno@clisp.org>
14124
14125         New module 'unictype/joininggroup-all'.
14126         * modules/unictype/joininggroup-all: New file.
14127
14128         Tests for module 'unictype/joininggroup-of'.
14129         * modules/unictype/joininggroup-of-tests: New file.
14130         * tests/unictype/test-joininggroup_of.c: New file.
14131         * tests/unictype/test-joininggroup_of.h: New file, automatically
14132         generated by gen-uni-tables.
14133
14134         New module 'unictype/joininggroup-of'.
14135         * modules/unictype/joininggroup-of: New file.
14136         * lib/unictype/joininggroup_of.c: New file.
14137         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14138         gen-uni-tables.
14139
14140         Tests for module 'unictype/joininggroup-byname'.
14141         * modules/unictype/joininggroup-byname-tests: New file.
14142         * tests/unictype/test-joininggroup_byname.c: New file.
14143
14144         New module 'unictype/joininggroup-byname'.
14145         * modules/unictype/joininggroup-byname: New file.
14146         * lib/unictype/joininggroup_byname.c: New file.
14147         * lib/unictype/joininggroup_byname.gperf: New file.
14148
14149         Tests for module 'unictype/joininggroup-name'.
14150         * modules/unictype/joininggroup-name-tests: New file.
14151         * tests/unictype/test-joininggroup_name.c: New file.
14152
14153         New module 'unictype/joininggroup-name'.
14154         * modules/unictype/joininggroup-name: New file.
14155         * lib/unictype/joininggroup_name.c: New file.
14156         * lib/unictype/joininggroup_name.h: New file.
14157
14158         New module 'unictype/joiningtype-all'.
14159         * modules/unictype/joiningtype-all: New file.
14160
14161         Tests for module 'unictype/joiningtype-of'.
14162         * modules/unictype/joiningtype-of-tests: New file.
14163         * tests/unictype/test-joiningtype_of.c: New file.
14164         * tests/unictype/test-joiningtype_of.h: New file, automatically
14165         generated by gen-uni-tables.
14166
14167         New module 'unictype/joiningtype-of'.
14168         * modules/unictype/joiningtype-of: New file.
14169         * lib/unictype/joiningtype_of.c: New file.
14170         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14171         gen-uni-tables.
14172
14173         Tests for module 'unictype/joiningtype-byname'.
14174         * modules/unictype/joiningtype-byname-tests: New file.
14175         * tests/unictype/test-joiningtype_byname.c: New file.
14176
14177         New module 'unictype/joiningtype-byname'.
14178         * modules/unictype/joiningtype-byname: New file.
14179         * lib/unictype/joiningtype_byname.c: New file.
14180
14181         Tests for module 'unictype/joiningtype-name'.
14182         * modules/unictype/joiningtype-name-tests: New file.
14183         * tests/unictype/test-joiningtype_name.c: New file.
14184
14185         New module 'unictype/joiningtype-name'.
14186         * modules/unictype/joiningtype-name: New file.
14187         * lib/unictype/joiningtype_name.c: New file.
14188
14189         unictype: Add support for Arabic shaping properties.
14190         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14191         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14192         declarations.
14193         (UC_JOINING_GROUP_*): New enumeration values.
14194         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14195         declarations.
14196         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14197         (unicode_joining_type): New variable.
14198         (UC_JOINING_GROUP_*): New enumeration values.
14199         (unicode_joining_group): New variable.
14200         (fill_arabicshaping, joining_type_as_c_identifier,
14201         output_joining_type_test, output_joining_type,
14202         joining_group_as_c_identifier, output_joining_group_test,
14203         output_joining_group): New functions.
14204         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14205         fill_arabicshaping and output_joining_type_test, output_joining_type,
14206         output_joining_group_test, output_joining_group.
14207         Reported by Simon Josefsson.
14208
14209 2011-03-21  Jim Meyering  <meyering@redhat.com>
14210
14211         strftime: fix a bug in yesterday's change
14212         * lib/strftime.c (add): Accommodate width's initial value of -1.
14213         Otherwise, nstrftime would copy uninitialized data into
14214         the result buffer.
14215
14216 2011-03-21  Jim Meyering  <meyering@redhat.com>
14217
14218         tests: add strftime-tests module
14219         * tests/test-strftime.c: New file.
14220         * modules/strftime-tests: New module.
14221
14222 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14223
14224         strftime: don't assume a byte count fits in 'int'
14225         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14226         found this problem by static analysis, using gcc -Wstrict-overflow
14227         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14228         on an integer overflow having undefined behavior, but it turns out
14229         that the argument is a size, which might not fit in 'int' anyway,
14230
14231 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14232
14233         stdio: don't require ignore_value around fwrite
14234
14235         This patch works around libc bug 11959
14236         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14237         Without this patch, applications must often write
14238         ignore_value (fwrite (...)) even though the ignore_value is
14239         not helpful here.  It's common to write many objects, using
14240         fwrite/printf/etc., and then use ferror to detect output error.
14241
14242         I considered making this patch optional, but decided against it,
14243         because libc is obviously being inconsistent here: there is no
14244         reason libc should insist that user code must inspect fwrite
14245         return's value without also insisting that it inspect printf's,
14246         putchar's, etc.  If user code wants to have a strict style where
14247         all these functions' values are checked (so that ferror need not
14248         be checked), we could add support for that style in a new gnulib
14249         module, but in the meantime it's better to be consistent and to
14250         support common usage.
14251
14252         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14253         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14254         that we are compiling in checking mode, and if not C++, and
14255         if not already wrapping fwrite for some other reason.
14256         (fwrite): #define to rpl_fwrite if the latter is defined.
14257
14258 2011-03-20  Bruno Haible  <bruno@clisp.org>
14259
14260         verror: Fix compilation error introduced on 2011-02-13.
14261         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14262         instead of __attribute__.
14263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14264
14265 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14266             Bruno Haible  <bruno@clisp.org>
14267
14268         socklen: do not depend on sys_socket
14269         While trying to modify Emacs to use gnulib's socklen module,
14270         I discovered a circular dependency: socklen depends on sys_socket
14271         and vice versa.  Emacs can use socklen, but it does not need
14272         sys_socket because it has its own substitute for sys/socket.h.
14273         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14274         gl_TYPE_SOCKLEN_T.
14275         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14276         gl_PREREQ_SYS_H_SOCKET.
14277         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14278         gl_PREREQ_SYS_H_SOCKET.
14279         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14280         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14281         * modules/socklen (Depends-on): Do not depend on sys_socket.
14282         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14283
14284 2011-03-20  Jim Meyering  <meyering@redhat.com>
14285
14286         maint.mk: sort file names *after* new transformation
14287         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14288         prefix would have led to an unwarranted failure in GNU parted.
14289         Sort after that transformation.
14290
14291 2011-03-19  Jim Meyering  <meyering@redhat.com>
14292
14293         maint.mk: fix po-file syntax-check rule
14294         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14295         Patch by Bruno Haible.
14296
14297 2011-03-19  Bruno Haible  <bruno@clisp.org>
14298
14299         socklen: Update comment.
14300         * m4/socklen.m4: Update comment about platforms.
14301
14302 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14303             Bruno Haible  <bruno@clisp.org>
14304
14305         inet_ntop, inet_pton: Simplify.
14306         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14307         documented to provide socklen_t and we already depend on sys_socket.
14308         * modules/inet_pton (Depends-on): Likewise.
14309         * lib/arpa_inet.in.h: Adjust comment.
14310
14311 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14312             Bruno Haible  <bruno@clisp.org>
14313
14314         netdb: Simplify.
14315         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14316         documented to provide socklen_t and we already depend on sys_socket.
14317         * lib/netdb.in.h: Adjust comment.
14318
14319 2011-03-19  Bruno Haible  <bruno@clisp.org>
14320
14321         sys_socket, netdb: Document problem with socklen_t.
14322         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14323         platforms.
14324         * doc/posix-headers/netdb.texi: Likewise.
14325
14326 2011-03-18  Eric Blake  <eblake@redhat.com>
14327
14328         maint.mk: let po check work in VPATH build
14329         * top/maint.mk (po_file): Allow cfg.mk override.
14330         (sc_po_check): Allow VPATH use.
14331         Reported by Jiri Denemark.
14332
14333 2011-03-16  Jim Meyering  <meyering@redhat.com>
14334
14335         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14336         Before, you would have had to create one .x-sc_ file per rule in order
14337         to exempt offending files.  Now, you may instead use a Make variable --
14338         usually defined in cfg.mk -- whose name identifies the affected rule.
14339         * top/maint.mk (_sc_excl): Define.
14340         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14341         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14342
14343 2011-03-13  Bruno Haible  <bruno@clisp.org>
14344
14345         ignore-value tests: Avoid warnings.
14346         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14347         empty for gcc < 3.4.
14348
14349 2011-03-13  Bruno Haible  <bruno@clisp.org>
14350
14351         passfd: Fix link error on Solaris.
14352         * modules/passfd (Description): Correct.
14353         (Depends-on): Add socketlib.
14354         (Link): New section.
14355         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14356
14357 2011-03-13  Bruno Haible  <bruno@clisp.org>
14358
14359         passfd: Fix link error on AIX 5.2.
14360         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14361
14362 2011-03-13  Bruno Haible  <bruno@clisp.org>
14363
14364         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14365         * lib/sys_socket.in.h: Include <stddef.h>.
14366         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14367         CMSG_FIRSTHDR. Remove unused variable.
14368
14369 2011-03-13  Bruno Haible  <bruno@clisp.org>
14370
14371         passfd: Fix compilation error on OpenBSD.
14372         * lib/passfd.c: Include <sys/uio.h>.
14373
14374 2011-03-13  Bruno Haible  <bruno@clisp.org>
14375
14376         passfd test: Fix warnings.
14377         * tests/test-passfd.c: Include <sys/wait.h>.
14378         (main): Fix typo.
14379
14380 2011-03-13  Bruno Haible  <bruno@clisp.org>
14381
14382         passfd module, part 4, tweaks.
14383         * tests/test-passfd.c: Reorder includes.
14384         (main): Fix perror and printf calls.
14385
14386 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14387
14388         passfd module, part 4.
14389         * modules/passfd-tests: New file.
14390         * tests/test-passfd.c: New file.
14391
14392 2011-03-13  Jim Meyering  <meyering@redhat.com>
14393
14394         Makefile: rely on GNU make; derive syntax-check rule names
14395         Rather than requiring that each sc_ rule be listed as a dependent
14396         of "check", use features of GNU make to derive the list.
14397         * Makefile (syntax-check-rules): Define.
14398         (check): Depend on the new variable, not the hard-coded list.
14399
14400 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14401             Bruno Haible  <bruno@clisp.org>
14402
14403         passfd module, part 3.
14404         * lib/passfd.h (recvfd): Add a flags argument.
14405         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14406         (recvfd): Add a flags argument.
14407         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14408         exists.
14409         * modules/passfd (Depends-on): Add cloexec.
14410         Suggested by Eric Blake.
14411
14412 2011-03-13  Bruno Haible  <bruno@clisp.org>
14413
14414         passfd module, part 2, tweaks.
14415         * modules/passfd (Files): Reorder.
14416         (Depends-on): Remove errno.
14417         (Include): Remove <sys/socket.h>, <sys/un.h>.
14418         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14419         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14420         specification header. Include <sys/socket.h> always. Don't include
14421         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14422         (sendfd): Clarify that it sets errno when it fails.
14423         (recvfd): Fix specification.
14424
14425 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14426
14427         passfd module, part 2.
14428         * modules/passfd: New file.
14429         * lib/passfd.h: New file.
14430         * lib/passfd.c: New file.
14431
14432 2011-03-12  Bruno Haible  <bruno@clisp.org>
14433
14434         wcswidth, mbswidth: Avoid integer overflow.
14435         * lib/wcswidth.c: Include <limits.h>.
14436         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14437         * lib/mbswidth.c: Include <limits.h>.
14438         (mbsnwidth): Avoid 'int' overflow.
14439         Reported by Jim Meyering.
14440
14441 2011-03-12  Bruno Haible  <bruno@clisp.org>
14442
14443         futimens, utimensat: Avoid endless recursion on Solaris 10.
14444         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14445         Solaris.
14446         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14447         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14448
14449 2011-03-11  Jim Meyering  <meyering@redhat.com>
14450
14451         maint.mk: relax a regexp to accommodate other formatting styles
14452         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14453         between "ngettext" and the following "(".
14454
14455 2011-03-11  Pádraig Brady <P@draigBrady.com>
14456
14457         maint.mk: suppress a false positive warning
14458         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14459         diagnostics are marked with ngettext.
14460
14461 2011-03-10  Eric Blake  <eblake@redhat.com>
14462
14463         wchar: add explicit dependencies, for Tru64
14464         * modules/mbmemcasecoll (Depends-on): Add wchar.
14465         * modules/mbtowc (Depends-on): Likewise.
14466         * modules/vasnprintf (Depends-on): Likewise.
14467         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14468         * modules/wctomb (Depends-on): Likewise.
14469         Reported by Peter O'Gorman.
14470
14471 2011-03-08  Bruno Haible  <bruno@clisp.org>
14472
14473         passfd module, part 1, tweaks.
14474         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14475         Improve indentation. Improve AC_MSG_CHECKING messages.
14476         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14477         gl_SOCKET_FAMILIES.
14478
14479 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14480
14481         passfd module, part 1.
14482         * m4/afunix.m4: New file.
14483         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14484         sockets.
14485
14486 2011-03-08  Bruno Haible  <bruno@clisp.org>
14487
14488         regex-quote: New API.
14489         * lib/regex-quote.h: Include <stdbool.h>.
14490         (struct regex_quote_spec): New type.
14491         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14492         New declarations.
14493         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14494         'const struct regex_quote_spec *' argument.
14495         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14496         (pcre_special): New constant.
14497         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14498         New functions.
14499         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14500         'const struct regex_quote_spec *' argument.
14501         * modules/regex-quote (Depends-on): Add stdbool.
14502         * tests/test-regex-quote.c (check): Update for new API. Add test for
14503         anchored results.
14504         * NEWS: Mention the API change.
14505         Reported by Reuben Thomas and Eric Blake.
14506
14507 2011-03-06  Bruno Haible  <bruno@clisp.org>
14508
14509         regex-quote: Fix creation of POSIX extended regular expressions.
14510         * lib/regex-quote.c (ere_special): Add grouping and alternation
14511         operators.
14512
14513 2011-03-05  Bruno Haible  <bruno@clisp.org>
14514
14515         doc: Improve doc regarding autopoint vs. gnulib.
14516         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14517         disable autopoint while running autoreconf.
14518         Suggested by Ralf Wildenhues.
14519
14520 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14521
14522         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14523         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14524
14525 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14526
14527         parse-duration: remove xalloc.h dependency
14528         * lib/parse-duration.c (parse_period): handle NULL return from
14529         strdup instead of calling xstrdup().
14530         * modules/parse-duration: remove "xalloc" dependency
14531
14532 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14533
14534         bootstrap: honor m4_base when running aclocal
14535         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14536
14537 2011-03-02  Jim Meyering  <meyering@redhat.com>
14538
14539         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14540         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14541         on request from Matt Booth.
14542
14543 2011-03-01  Eric Blake  <eblake@redhat.com>
14544
14545         test-link: work on Hurd
14546         * tests/test-link.h (test_link): Hurd rejects linking directories
14547         with EISDIR instead of the POSIX-mandated EPERM.
14548
14549 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14550
14551         stdio: simplify by moving files to printf-posix, sigpipe
14552         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14553         since this symbol is needed only if printf is replaced.
14554         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14555         Require gl_ASM_SYMBOL_PREFIX.
14556         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14557         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14558         (Depends-on): Add 'raise'.
14559         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14560         * modules/stdio (Files): Remove lib/stdio-write.c,
14561         m4/asm-underscore.m4.
14562         (Depends-on): Remove 'raise'.
14563
14564         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14565         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14567         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14568
14569 2011-02-28  Bruno Haible  <bruno@clisp.org>
14570
14571         localcharset: Assume ANSI C behaviour of free().
14572         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14573         calling free().
14574         Suggested by Simon Josefsson <simon@josefsson.org>.
14575
14576 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14577             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14578             Bruno Haible  <bruno@clisp.org>  (tiny change)
14579
14580         On Cygwin, use /proc file system instead of win32 API.
14581         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14582         Win32 file names.
14583         (DllMain): Simplify by removing Cygwin specific code.
14584         (find_shared_library_fullname): Use Linux specific implementation also
14585         for Cygwin.
14586         (get_shared_library_fullname): Update accordingly.
14587         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14588         Win32 file names.
14589         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14590         Cygwin specific code.
14591
14592 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14593             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14594
14595         Fix OpenMP flag detection for various Fortran compilers.
14596         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14597         OpenMP-conditional compilation construct, to force compile
14598         failure with missing OpenMP flag.
14599         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14600
14601 2011-02-25  Eric Blake  <eblake@redhat.com>
14602
14603         strstr: expand test coverage
14604         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14605         compilation.
14606         * tests/test-memmem.c (main): Duplicate tests.
14607         * tests/test-strcasestr.c (main): Likewise.
14608         * tests/test-c-strcasestr.c (main): Likewise.
14609
14610 2011-02-25  Jim Meyering  <meyering@redhat.com>
14611
14612         maint.mk: detect missing-NL-at-EOF, too
14613         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14614         it also detects when a file lacks a newline at EOF.
14615         (require_exactly_one_NL_at_EOF_): Renamed from
14616         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14617         since people may well have .x-sc_... file names tied to the
14618         existing name.  Suggested by Eric Blake.
14619
14620 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14621
14622         dirname: move m4/dos.m4 functionality into lib/dosname.h
14623
14624         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14625         extracts symbols from it, puts them into config.h; but it's much
14626         easier to use the symbols directly.  filename.h already does this,
14627         but it disagrees with dos.m4 in some respects.  This patch
14628         introduces a different include file dosname.h that packages up
14629         dos.m4, and then later we can work on merging filename.h and
14630         dosname.h.  Applications that need only the easy-to-configure
14631         symbols should consider including dosname.h rather than dirname.h.
14632         * NEWS: Mention incompatible changes.
14633         * m4/dos.m4: Remove.
14634         * lib/dosname.h, modules/dosname: New files.
14635         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14636         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14637         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14638         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14639         Include dosname.h, not dirname.h.
14640         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14641         Include dosname.h, for definitions of symbols like ISSLASH
14642         that used to be in config.h.
14643         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14644         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14645         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14646         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14647         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14648         * modules/rmdir (Files): Likewise.
14649         * modules/stat (Files): Likewise.
14650         * modules/unlink (Files): Likewise.
14651         * modules/dirname-lgpl (Depends-on): Add dosname.
14652         * modules/lstat (Depends-on): Likewise.
14653         * modules/openat (Depends-on): Likewise.
14654         * modules/rmdir (Depends-on): Likewise.
14655         * modules/savewd (Depends-on): Likewise.
14656         * modules/stat (Depends-on): Likewise.
14657         * modules/unlink (Depends-on): Likewise.
14658         * modules/openat (Depends-on): Remove dirname-lgpl.
14659         * modules/savewd (Depends-on): Likewise.
14660         * tests/test-dirname.c: Do not use removed symbols like
14661         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14662         the remaining symbols, e.g., ISSLASH ('\\').
14663
14664 2011-02-25  Eric Blake  <eblake@redhat.com>
14665
14666         strstr: revert patches that introduced bug and pessimization
14667         * lib/str-two-way.h: Add another reference.
14668         (two_way_short_needle, two_way_long_needle): Revert changes from
14669         2011-02-24; they pessimize search speed.
14670         (critical_factorization): Partially revert changes from
14671         2010-06-22; they violate the requirement that the left half of the
14672         needle be smaller than the period of the needle.
14673
14674 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         filenamecat: remove unnecessary dependency on dirname-lgpl
14677         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14678         is no direct dependency, just an indirect one via filenamecat-lgpl.
14679
14680         remove: remove unnecessary use of m4/dos.m4
14681         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14682         * modules/remove (FILES): Remove m4/dos.m4.
14683
14684         * lib/openat-proc.c: Don't include dirname.h; not needed.
14685
14686         backupfile: remove unnecessary use of m4/dos.m4
14687         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14688         of its symbols are used by the backupfile code.  backupfile.c does
14689         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14690         for the rare case of programs that want all their backup file
14691         names to live within 8+3 limits, and dos.m4 doesn't address that.
14692         * modules/backupfile (Files): Remove m4/dos.m4.
14693
14694 2011-02-24  Jim Meyering  <meyering@redhat.com>
14695
14696         strstr: fix a bug whereby strstr would mistakenly return NULL
14697         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14698         in period calculation.
14699         (two_way_long_needle): Likewise.
14700         The original problem was reported by Mike Stump in
14701         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14702         Ralf Wildenhues provided the short needle and haystack.
14703         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14704         Add a more involved test to trigger the bug in two_way_long_needle.
14705
14706 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14707
14708         gnulib-tool: remove use of bold display in help screen
14709         * gnulib-tool (func_usage): Do not use bold display anymore in the
14710         help screen.  That was just meant to be a temporary emphasis for a
14711         backward-incompatible change.
14712
14713 2011-02-23  Bruno Haible  <bruno@clisp.org>
14714
14715         Fix misindentation of preprocessor directives.
14716         * lib/argp-namefrob.h: Reindent preprocessor directives.
14717         * lib/getopt_int.h (struct _getopt_data): Likewise.
14718         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14719         * lib/vasnprintf.c (decode_long_double): Likewise.
14720         * tests/test-argmatch.c: Insert blank lines, for clarity.
14721         * tests/test-exclude.c: Likewise.
14722
14723 2011-02-22  Bruno Haible  <bruno@clisp.org>
14724
14725         ioctl: Fix for MacOS X in 64-bit mode.
14726         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14727         value.
14728         Suggested by Eric Blake.
14729         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14730
14731 2011-02-22  Jim Meyering  <meyering@redhat.com>
14732
14733         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14734         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14735         in lib/.
14736
14737 2011-02-22  Eric Blake  <eblake@redhat.com>
14738
14739         maint: avoid any CDPATH issue
14740         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14741
14742         maint: adjust cpp indentation for my modules, as well
14743         * Makefile (sc_cpp_indent_check): Add my name.
14744         * lib/fbufmode.c: Filter through cppi.
14745         * lib/fpurge.c: Likewise.
14746         * lib/freadable.c: Likewise.
14747         * lib/freading.c: Likewise.
14748         * lib/fwritable.c: Likewise.
14749         * lib/fwriting.c: Likewise.
14750         * lib/sigaction.c: Likewise.
14751
14752 2011-02-22  Jim Meyering  <meyering@redhat.com>
14753
14754         maint: adjust cpp indentation to reflect nesting depth
14755         I.e., in a block of code that begins with an unnested "#if",
14756         put one space between the "#" in column 1 and following token.
14757         For example,
14758         -#include <sys/vfs.h>
14759         +# include <sys/vfs.h>
14760         Do this only in .c files that are part of a module I maintain.
14761         * lib/linkat.c: Filter through cppi.
14762         * lib/nanosleep.c: Likewise.
14763         * lib/openat.c: Likewise.
14764         * lib/openat-die.c: Likewise.
14765         * lib/dup3.c: Likewise.
14766         * lib/fchownat.c: Likewise.
14767         * lib/flock.c: Likewise.
14768         * lib/fsync.c: Likewise.
14769         * lib/fts.c: Likewise.
14770         * lib/getpass.c: Likewise.
14771         * lib/gettimeofday.c: Likewise.
14772         * lib/userspec.c: Likewise.
14773         * Makefile (sc_cpp_indent_check): New rule, to check this.
14774
14775 2011-02-22  Bruno Haible  <bruno@clisp.org>
14776
14777         New module 'wctomb'.
14778         * lib/stdlib.in.h (wctomb): New declaration.
14779         * lib/wctomb.c: New file.
14780         * lib/wctomb-impl.h: New file.
14781         * m4/wctomb.m4: New file.
14782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14783         REPLACE_WCTOMB.
14784         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14785         REPLACE_WCTOMB.
14786         * modules/wctomb: New file.
14787         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14788         * doc/posix-functions/wctomb.texi: Mention the new module.
14789         * modules/wctob (Depends-on): Add wctomb.
14790
14791 2011-02-22  Bruno Haible  <bruno@clisp.org>
14792
14793         New module 'mbtowc'.
14794         * lib/stdlib.in.h (mbtowc): New declaration.
14795         * lib/mbtowc.c: New file.
14796         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14797         * m4/mbtowc.m4: New file.
14798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14799         REPLACE_MBTOWC.
14800         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14801         REPLACE_MBTOWC.
14802         * modules/mbtowc: New file.
14803         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14804         * doc/posix-functions/mbtowc.texi: Mention the new module.
14805         * modules/btowc (Depends-on): Add mbtowc.
14806
14807 2011-02-22  Bruno Haible  <bruno@clisp.org>
14808
14809         wcrtomb: Add more tests for native Windows platforms.
14810         * tests/test-wcrtomb-w32-1.sh: New file.
14811         * tests/test-wcrtomb-w32-2.sh: New file.
14812         * tests/test-wcrtomb-w32-3.sh: New file.
14813         * tests/test-wcrtomb-w32-4.sh: New file.
14814         * tests/test-wcrtomb-w32-5.sh: New file.
14815         * tests/test-wcrtomb-w32.c: New file.
14816         * modules/wcrtomb-tests (Files): Add them.
14817         (Makefile.am): Arrange to run these tests.
14818         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14819         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14820
14821 2011-02-20  Bruno Haible  <bruno@clisp.org>
14822
14823         wcrtomb: Enhance test.
14824         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14825
14826 2011-02-20  Bruno Haible  <bruno@clisp.org>
14827
14828         mbrtowc: Tiny optimization.
14829         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14830
14831 2011-02-20  Jim Meyering  <meyering@redhat.com>
14832
14833         test-exclude.c: remove unmatched #endif
14834         * tests/test-exclude.c: Remove stray #endif, left over from
14835         the change of a week ago.
14836
14837 2011-02-19  Jim Meyering  <meyering@redhat.com>
14838
14839         git-version-gen: skip "-dirty" check when appropriate
14840         * build-aux/git-version-gen: Don't run any git commands when the
14841         version string comes from .tarball-version.  Prior to this, we
14842         would run git update-index --refresh even from a just-unpacked
14843         tarball directory, and that could affect a .git/ directory in a
14844         parent of the build directory.  Reported by Mike Frysinger.
14845
14846 2011-02-19  Bruno Haible  <bruno@clisp.org>
14847
14848         unictype/property-byname: Reduce the size of the 'data' segment.
14849         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14850
14851 2011-02-19  Bruno Haible  <bruno@clisp.org>
14852
14853         unictype/scripts: Reduce the size of the 'data' segment.
14854         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14855         '%pic'.
14856         * lib/unictype/scripts_byname.gperf: Regenerated.
14857
14858 2011-02-19  Bruno Haible  <bruno@clisp.org>
14859
14860         stdint: Update documentation.
14861         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14862
14863 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14864
14865         stdint: omit redundant check for wchar.h
14866         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14867         always tests whether wchar.h exists, so remove the now-redundant test.
14868
14869 2011-02-18  Bruno Haible  <bruno@clisp.org>
14870
14871         stdint: Cut dependency to module 'wchar'.
14872         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14873         include the necessary prerequisites.
14874         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14875         * modules/stdint (Depends-on): Remove wchar.
14876         (Makefile.am): Substitute HAVE_WCHAR_H.
14877         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14878
14879 2011-02-18  Eric Blake  <eblake@redhat.com>
14880
14881         longlong: skip, rather than fail, on cross-compilation
14882         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14883         when cross-compiling; regression from 2011-02-16.
14884
14885 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         * NEWS: Mention 2011-02-08 change to stdlib.
14888
14889 2011-02-17  Bruno Haible  <bruno@clisp.org>
14890
14891         getloadavg: Add comments about platforms.
14892         * m4/getloadavg.m4: Add comment.
14893         * lib/getloadavg.c: Likewise.
14894
14895 2011-02-17  Bruno Haible  <bruno@clisp.org>
14896
14897         getloadavg: Fix link error on Solaris 2.6.
14898         * modules/getloadavg (Link): New section.
14899         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14900         linking test-getloadavg.
14901         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14902         getloadavg.
14903
14904 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14905
14906         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14907         It was 'int', but this doesn't match the IRIX 6.5 manual.
14908         Suggested by Bruno Haible in
14909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14910
14911 2011-02-17  Bruno Haible  <bruno@clisp.org>
14912
14913         havelib: Fix comments.
14914         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14915         change.
14916
14917 2011-02-17  Bruno Haible  <bruno@clisp.org>
14918
14919         havelib: Update config.rpath.
14920         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14921
14922 2011-02-17  Bruno Haible  <bruno@clisp.org>
14923
14924         getloadavg test: Add some plausibility checks.
14925         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14926         is improbable.
14927
14928 2011-02-16  Eric Blake  <eblake@redhat.com>
14929
14930         maintainer-makefile: make syntax-check a no-op from tarballs
14931         * top/maint.mk (no-vc-detected): New rule.
14932         (local-checks-available): Use it to avoid hanging if someone tries
14933         'make syntax-check' from a tarball.  Also append to any non-syntax
14934         checks already defined in cfg.mk.
14935
14936 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         longlong: tune, particularly for common case of c99
14939
14940         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14941         or running anything if c99, or if unsigned long long int does not
14942         work.  In either case, we know the answer without further tests.
14943         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14944         it at most once, and use its results for both long long int and
14945         unsigned long long int.  This is more likely to be efficient in
14946         the common case where the program wants to check for both long
14947         long int and unsigned long long int.
14948         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14949         since the answer is already known.
14950
14951 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14952
14953         getloadavg: set errno
14954         * lib/getloadavg.c: Set errno when returning -1.  If no other
14955         error number looks appropriate, set it to ENOSYS if the getloadavg
14956         looks like it can't possibly ever work, ENOTSUP otherwise.
14957         Suggested by Bruno Haible in
14958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14959
14960         getloadavg: trim unused parts and speed up 'configure'
14961         * NEWS: Document this.
14962         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14963         always compiled if getloadavg is absent.
14964         Move test code to ...
14965         * tests/test-getloadavg.c: New file, containing previous
14966         contents of test from lib/getloadavg.c.  It also contains
14967         suggestions by Bruno Haible in
14968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14969         * modules/getloadavg-tests: New file.
14970         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14971         Do tests in the same order as they're needed for getloadavg.c.
14972         Omit setgid-related tests that generate symbols KMEM_GROUP,
14973         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14974         Do only the tests that are needed to see whether the system has
14975         getloadavg, moving the other tests into ...
14976         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14977         NLIST_NAME_UNION; nobody should be using it.  Do not define
14978         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14979         relevant, as the user of this module shouldn't care how getloadavg
14980         is implemented.
14981
14982         getloadavg: omit unused var
14983         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14984
14985 2011-02-15  Jim Meyering  <meyering@redhat.com>
14986
14987         doc: update users.txt
14988         * users.txt: Update iwhd's URL.
14989
14990 2011-02-13  Bruno Haible  <bruno@clisp.org>
14991
14992         Consistent macro naming for macros that use GCC __attribute__.
14993         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14994         _ATTRIBUTE_NONNULL_.
14995         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14996         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14997         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14998         ATTRIBUTE_DEPRECATED.
14999         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15000         ATTRIBUTE_NORETURN.
15001         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15002         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15003         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15004         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15005         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15006         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15007         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15008         ATTRIBUTE_SENTINEL.
15009         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15010         ATTRIBUTE_RETURN_CHECK.
15011         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15012         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15013         ATTRIBUTE_NORETURN.
15014         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15015         Reported by Paul Eggert.
15016
15017 2011-02-13  Bruno Haible  <bruno@clisp.org>
15018
15019         Don't interfere with a program's definition of __attribute__.
15020         * lib/argp.h (__attribute__): Remove definition.
15021         (_GL_ATTRIBUTE_FORMAT): New macro.
15022         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15023         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15024         (_GL_ATTRIBUTE_FORMAT): New macro.
15025         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15026         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15027         GCC 3 or newer.
15028         * lib/error.h (__attribute__): Remove definition.
15029         (_GL_ATTRIBUTE_FORMAT): New macro.
15030         (error, error_at_line): Use it.
15031         * lib/hash.h (__attribute__): Remove definition.
15032         (ATTRIBUTE_WUR): Update definition. Define always.
15033         * lib/openat.h (__attribute__): Remove definition.
15034         (ATTRIBUTE_NORETURN): Update definition. Define always.
15035         * lib/sigpipe-die.h (__attribute__): Remove definition.
15036         (ATTRIBUTE_NORETURN): Update definition. Define always.
15037         * lib/vasnprintf.h (__attribute__): Remove definition.
15038         (_GL_ATTRIBUTE_FORMAT): New macro.
15039         (asnprintf, vasnprintf): Use it.
15040         * lib/xalloc.h (__attribute__): Remove definition.
15041         (ATTRIBUTE_NORETURN): Update definition. Define always.
15042         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15043         * lib/xmemdup0.h (__attribute__): Remove definition.
15044         (ATTRIBUTE_NORETURN): Update definition. Define always.
15045         * lib/xprintf.h (__attribute__): Remove definition.
15046         (_GL_ATTRIBUTE_FORMAT): New macro.
15047         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15048         * lib/xstrtol.h (__attribute__): Remove definition.
15049         (ATTRIBUTE_NORETURN): Update definition. Define always.
15050         * lib/xvasprintf.h (__attribute__): Remove definition.
15051         (_GL_ATTRIBUTE_FORMAT): New macro.
15052         (xasprintf, xvasprintf): Use it.
15053         * tests/test-argmatch.c (__attribute__): Remove definition.
15054         (ATTRIBUTE_NORETURN): Update definition. Define always.
15055         * tests/test-exclude.c (__attribute__): Remove definition.
15056         (ATTRIBUTE_NORETURN): Update definition. Define always.
15057         Reported by Paul Eggert.
15058
15059 2011-02-13  Bruno Haible  <bruno@clisp.org>
15060
15061         mbrtowc: Add more tests for native Windows platforms.
15062         * tests/test-mbrtowc-w32-1.sh: New file.
15063         * tests/test-mbrtowc-w32-2.sh: New file.
15064         * tests/test-mbrtowc-w32-3.sh: New file.
15065         * tests/test-mbrtowc-w32-4.sh: New file.
15066         * tests/test-mbrtowc-w32-5.sh: New file.
15067         * tests/test-mbrtowc-w32.c: New file.
15068         * modules/mbrtowc-tests (Files): Add them.
15069         (Makefile.am): Arrange to run these tests.
15070         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15071         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15072
15073 2011-02-13  Bruno Haible  <bruno@clisp.org>
15074
15075         mbrtowc: Work around native Windows bug.
15076         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15077         guess when no suitable locale for testing was found.
15078         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15079
15080 2011-02-13  Bruno Haible  <bruno@clisp.org>
15081
15082         mbsinit: Work around mingw bug.
15083         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15084         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15085         Windows.
15086         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15087
15088 2011-02-13  Bruno Haible  <bruno@clisp.org>
15089
15090         mbsinit: Don't crash for a NULL argument.
15091         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15092         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15093
15094 2011-02-13  Bruno Haible  <bruno@clisp.org>
15095
15096         Don't interfere with a program's definition of __attribute__.
15097         * lib/stdio.in.h (__attribute__): Remove definition.
15098         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15099         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15100         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15101         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15102         * lib/string.in.h (__attribute__): Remove definition.
15103         Reported by Paul Eggert.
15104
15105 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15106
15107         stdlib: don't get in the way of non-GCC __attribute__
15108         See thread starting at
15109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15110         Revert previous stdlib change, installing the following instead:
15111         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15112         to get in the way of a non-GCC compiler that supports __attribute__.
15113         (_GL_ATTRIBUTE_RETURN): New macro.
15114         (_Exit): Use it instead of __attribute__.
15115
15116 2011-02-12  Bruno Haible  <bruno@clisp.org>
15117
15118         quotearg test: Avoid test failure on mingw.
15119         * tests/test-quotearg.sh: Convert the locale identifier from native
15120         Windows syntax to Unix syntax.
15121
15122 2011-02-12  Bruno Haible  <bruno@clisp.org>
15123
15124         setlocale: Prefer gnulib's override over libintl's override.
15125         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15126         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15127         GNULIB_defined_setlocale is set.
15128
15129 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15130
15131         stdlib: support non-GCC __attribute__
15132
15133         Fix a serious and tricky problem encountered when attempting to
15134         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15135         5.5, but it crashed due to memory corruption on Solaris 10 with
15136         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15137         bits that are otherwise zero.  This tagging is optional inside
15138         Emacs but is preferred and is used when __attribute__ ((__aligned
15139         (8))) works, as it does with both recent-enough GCC and with Sun C
15140         5.11.  However, Sun C 5.11 is not GCC and does not #define
15141         __GNUC__ and __GNUC_MINOR__.
15142
15143         When I added the getloadavg module to Emacs, it brought in
15144         stdlib.in.h, which contained this fragment:
15145
15146            #ifndef __attribute__
15147            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15148            #  define __attribute__(Spec)   /* empty */
15149            # endif
15150            #endif
15151
15152         When files that include <stdlib.h> were compiled with Sun C 5.11,
15153         the above code disabled __attribute__ ((__aligned (8))), which
15154         caused variables to not be properly aligned, which eventually led
15155         to the pointer corruption mentioned above.  (This was a bit hard
15156         to diagnose, unfortunately.)
15157
15158         Several "#define __attribute__(X) /* empty */" code snippets need
15159         to be eradicated from Gnulib to work with non-GCC compilers that
15160         support __attribute__.  The Autoconf way to do this is to test for
15161         each kind of attribute that we want support for, and selectively
15162         enable that in source code.
15163
15164         Fix this problem just for stdlib.h, by adding a test for the
15165         __noreturn__ attribute, and change stdlib.in.h to use that test
15166         when needed.  This technique can be easily generalized to the
15167         other *.in.h files and attributes, and a similar technique can be
15168         used for *.h and *.c files.  This patch is enough to solve the
15169         problem for Emacs + getloadavg, and I thought I'd publish it for
15170         feedback before undertaking further, similar fixes in other
15171         modules.
15172
15173         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15174         because it's not needed for stdlib.h.  It merely substitutes the
15175         value directly into stdlib.h.  We may well need to #define it, or
15176         similar symbols, for other modules, but it's nice to also have an
15177         option to not #define it for applications like Emacs that do not
15178         need it.
15179
15180         * lib/stdlib.in.h (__attribute__): Do not #define.
15181         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15182         be defined only if the _Exit module is also used.
15183         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15185         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15186         platforms.
15187         * modules/_Exit (Files): Add m4/attribute.m4.
15188         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15189         * m4/attribute.m4: New file.
15190
15191 2011-02-12  Bruno Haible  <bruno@clisp.org>
15192
15193         wcsrtombs: Work around bug on native Windows.
15194         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15195         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15196         instead of len.
15197         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15198
15199 2011-02-12  Bruno Haible  <bruno@clisp.org>
15200
15201         mbsrtowcs: Work around bug on native Windows.
15202         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15203         against mingw bug.
15204         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15205
15206 2011-02-12  Bruno Haible  <bruno@clisp.org>
15207
15208         Avoid setlocale bugs in tests.
15209         * modules/btowc (Dependencies): Add setlocale.
15210         * modules/c-strcase (Dependencies): Likewise.
15211         * modules/mbmemcasecmp (Dependencies): Likewise.
15212         * modules/mbmemcasecoll (Dependencies): Likewise.
15213         * modules/mbrtowc (Dependencies): Likewise.
15214         * modules/mbscasecmp (Dependencies): Likewise.
15215         * modules/mbscasestr (Dependencies): Likewise.
15216         * modules/mbschr (Dependencies): Likewise.
15217         * modules/mbscspn (Dependencies): Likewise.
15218         * modules/mbsinit (Dependencies): Likewise.
15219         * modules/mbsncasecmp (Dependencies): Likewise.
15220         * modules/mbsnrtowcs (Dependencies): Likewise.
15221         * modules/mbspbrk (Dependencies): Likewise.
15222         * modules/mbspcasecmp (Dependencies): Likewise.
15223         * modules/mbsrchr (Dependencies): Likewise.
15224         * modules/mbsrtowcs (Dependencies): Likewise.
15225         * modules/mbsspn (Dependencies): Likewise.
15226         * modules/mbsstr (Dependencies): Likewise.
15227         * modules/nl_langinfo (Dependencies): Likewise.
15228         * modules/quotearg (Dependencies): Likewise.
15229         * modules/unicase/locale-language (Dependencies): Likewise.
15230         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15231         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15232         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15233         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15234         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15235         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15236         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15237         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15238         * modules/vasnprintf-posix (Dependencies): Likewise.
15239         * modules/wcrtomb (Dependencies): Likewise.
15240         * modules/wcsnrtombs (Dependencies): Likewise.
15241         * modules/wcsrtombs (Dependencies): Likewise.
15242
15243 2011-02-12  Bruno Haible  <bruno@clisp.org>
15244
15245         setlocale: Workaround native Windows bug.
15246         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15247         succeeds but sets LC_CTYPE to "C", report a failure.
15248         * tests/test-setlocale2.sh: New file.
15249         * tests/test-setlocale2.c: New file.
15250         * modules/setlocale-tests (Files): Add the new files.
15251         (Makefile.am): Enable test-setlocale2.sh test.
15252         * doc/posix-functions/setlocale.texi: Mention workaround.
15253
15254 2011-02-11  Bruno Haible  <bruno@clisp.org>
15255
15256         Tests for module 'setlocale'.
15257         * modules/setlocale-tests: New file.
15258         * tests/test-setlocale1.sh: New file.
15259         * tests/test-setlocale1.c: New file.
15260
15261         New module 'setlocale'.
15262         * lib/locale.in.h (setlocale): New declaration.
15263         * lib/setlocale.c: New file, based on
15264         gettext/gettext-runtime/intl/setlocale.c.
15265         * m4/setlocale.m4: New file.
15266         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15267         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15268         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15269         REPLACE_SETLOCALE.
15270         * modules/setlocale: New file.
15271         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15272         * doc/posix-functions/setlocale.texi: Mention the new module.
15273
15274 2011-02-11  Bruno Haible  <bruno@clisp.org>
15275
15276         Prepare for locale dependent tests on mingw.
15277         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15278         because it has the wrong locale encoding.
15279         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15280         French_France.1252 instead of "fr".
15281         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15282         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15283         because it has the wrong locale encoding.
15284         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15285         native Windows, try Turkish_Turkey.65001.
15286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15287         Chinese_China.54936.
15288
15289         Prepare for locale dependent tests on mingw.
15290         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15291         differently.
15292         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15293         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15294         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15296
15297 2011-02-11  Eric Blake  <eblake@redhat.com>
15298
15299         strptime: avoid compiler warnings
15300         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15301         compiler warnings about dead code.
15302         Reported by Daniel P. Berrange.
15303
15304 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15305
15306         doc: update users.txt
15307         * users.txt: Add rcs.
15308
15309 2011-02-10  John W. Eaton  <jwe@gnu.org>
15310
15311         doc: update users.txt
15312         * users.txt: Add octave.
15313
15314 2011-02-10  Jim Meyering  <meyering@redhat.com>
15315
15316         doc: update users.txt
15317         * users.txt: Add iwhd.
15318
15319 2011-02-09  Bruno Haible  <bruno@clisp.org>
15320
15321         gnulib-tool: Make copyright notice adjustment more robust.
15322         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15323         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15324         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15325         License".
15326         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15327
15328 2011-02-06  Bruno Haible  <bruno@clisp.org>
15329
15330         New module 'towctrans'.
15331         * modules/towctrans: New file.
15332         * lib/wctype.in.h (towctrans): New declaration.
15333         * lib/towctrans.c: New file.
15334         * lib/towctrans-impl.h: New file.
15335         * m4/towctrans.m4: New file.
15336         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15337         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15338         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15339         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15340         * doc/posix-functions/towctrans.texi: Mention the new module.
15341
15342 2011-02-06  Bruno Haible  <bruno@clisp.org>
15343
15344         New module 'wctrans'.
15345         * modules/wctrans: New file.
15346         * lib/wctype.in.h (wctrans): New declaration.
15347         * lib/wctrans.c: New file.
15348         * lib/wctrans-impl.h: New file.
15349         * m4/wctrans.m4: New file.
15350         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15351         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15352         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15353         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15354         * doc/posix-functions/wctrans.texi: Mention the new module.
15355
15356 2011-02-06  Bruno Haible  <bruno@clisp.org>
15357
15358         New module 'iswctype'.
15359         * modules/iswctype: New file.
15360         * lib/wctype.in.h (iswctype): New declaration.
15361         * lib/iswctype.c: New file.
15362         * lib/iswctype-impl.h: New file.
15363         * m4/iswctype.m4: New file.
15364         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15365         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15366         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15367         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15368         * doc/posix-functions/iswctype.texi: Mention the new module and the
15369         HP-UX 11.00 problem.
15370
15371 2011-02-06  Bruno Haible  <bruno@clisp.org>
15372
15373         New module 'wctype'.
15374         * modules/wctype: Change to represent the wctype() substitute.
15375         * lib/wctype.in.h (wctype): New declaration.
15376         * lib/wctype.c: New file.
15377         * lib/wctype-impl.h: New file.
15378         * m4/wctype.m4: New file.
15379         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15380         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15381         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15382         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15383         * doc/posix-functions/wctype.texi: Mention the new module and the
15384         HP-UX 11.00 problem.
15385
15386 2011-02-06  Bruno Haible  <bruno@clisp.org>
15387
15388         wctype-h: Ensure wctype_t and wctrans_t are defined.
15389         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15390         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15391         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15392         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15393         HAVE_WCTRANS_T.
15394         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15395
15396 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15397
15398         flock: fix license typo
15399
15400         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15401         omitted.
15402
15403 2011-02-08  Bruno Haible  <bruno@clisp.org>
15404
15405         Split large sed scripts, for HP-UX sed.
15406         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15407         to avoid HP-UX limit of 99 commands, in the near future.
15408         * modules/stdlib (Makefile.am): Likewise.
15409         * modules/unistd (Makefile.am): Likewise.
15410         * modules/wchar (Makefile.am): Likewise.
15411         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15412         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15413         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15414
15415 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15416             Bruno Haible  <bruno@clisp.org>
15417
15418         stdlib: improve random_r modularization
15419         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15420         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15421         you also need the random_r module to get this material right.
15422         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15423         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15424         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15425
15426 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15427
15428         stdlib: don't depend on stdint
15429         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15430         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15431         be independent of whether stdint.h is needed.
15432         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15433         here, instead of ...
15434         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15435         struct random_data should be using the random_r module, not just
15436         the stdlib module (which wouldn't make sense: what package needs
15437         just struct random_data without also needing random_r?).
15438         * modules/stdlib (Depends-on): Remove stdint.
15439
15440         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15441         See the thread rooted at
15442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15443         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15444         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15445         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15446         __VMS)); previously it was always included (via fcntl--.h).
15447         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15448         hand; this is good enough for load averages.  Also, do not use
15449         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15450         flags directly if available and don't bother otherwise.  (Packages
15451         that need the extra reliability should use the modules that define
15452         these flags on older platforms that lack them.)
15453         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15454         fcntl-safer.
15455
15456 2011-02-08  Jim Meyering  <meyering@redhat.com>
15457
15458         di-set.h, ino-map.h: add multiple-inclusion guard
15459         Technically, the guard is required only for ino-map.h, due to its
15460         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15461         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15462         * lib/ino-map.h: Likewise.
15463
15464 2011-02-06  Bruno Haible  <bruno@clisp.org>
15465
15466         iswblank: Ensure declaration on glibc systems.
15467         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15468         * modules/iswblank (Dependencies): Add 'extensions'.
15469         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15470
15471 2011-02-06  Bruno Haible  <bruno@clisp.org>
15472
15473         New module 'iswblank'.
15474         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15475         * modules/iswblank: New file.
15476         * modules/wctype-h (Files): Remove lib/iswblank.c.
15477         (Makefile.am): Substitute GNULIB_ISWBLANK.
15478         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15479         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15480         (gl_WCTYPE_H_DEFAULTS): New macro.
15481         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15482         * modules/iswblank-tests: New file.
15483         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15484         * tests/test-wctype-h.c (main): Remove iswblank tests.
15485         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15486         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15487         of 'wctype-h'.
15488         * NEWS: Mention the change.
15489         * modules/mbchar (Depends-on): Add iswblank.
15490
15491 2011-02-08  Bruno Haible  <bruno@clisp.org>
15492
15493         di-set tests: Refactor.
15494         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15495         unnecessary includes.
15496         (ASSERT): Remove macro.
15497         (main): Make C90 compliant by avoiding variable declaration after
15498         statement.
15499         * modules/di-set-tests (Files): Add tests/macros.h.
15500
15501 2011-02-08  Bruno Haible  <bruno@clisp.org>
15502
15503         ino-map tests: Refactor.
15504         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15505         unnecessary includes.
15506         (ASSERT): Remove macro.
15507         (main): Make C90 compliant by avoiding variable declaration after
15508         statement.
15509         * modules/ino-map-tests (Files): Add tests/macros.h.
15510
15511 2011-02-08  Jim Meyering  <meyering@redhat.com>
15512
15513         di-set: add "const" to a cast
15514         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15515         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15516
15517 2011-02-06  Bruno Haible  <bruno@clisp.org>
15518
15519         Rename module 'wctype' to 'wctype-h'.
15520         * modules/wctype-h: Renamed from modules/wctype.
15521         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15522         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15523         (Files, Depends-on, Makefile.am): Update.
15524         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15525         (Files, Makefile.am): Update.
15526         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15527         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15528         * doc/posix-headers/wctype.texi: Update.
15529         * doc/posix-functions/iswalnum.texi: Update.
15530         * doc/posix-functions/iswalpha.texi: Update.
15531         * doc/posix-functions/iswblank.texi: Update.
15532         * doc/posix-functions/iswcntrl.texi: Update.
15533         * doc/posix-functions/iswdigit.texi: Update.
15534         * doc/posix-functions/iswgraph.texi: Update.
15535         * doc/posix-functions/iswlower.texi: Update.
15536         * doc/posix-functions/iswprint.texi: Update.
15537         * doc/posix-functions/iswpunct.texi: Update.
15538         * doc/posix-functions/iswspace.texi: Update.
15539         * doc/posix-functions/iswupper.texi: Update.
15540         * doc/posix-functions/iswxdigit.texi: Update.
15541         * doc/posix-functions/towlower.texi: Update.
15542         * doc/posix-functions/towupper.texi: Update.
15543         * NEWS: Mention the change.
15544         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15545         * modules/mbchar (Dependencies): Likewise.
15546         * modules/mbswidth (Dependencies): Likewise.
15547         * modules/quotearg (Dependencies): Likewise.
15548         * modules/regex (Dependencies): Likewise.
15549         * modules/wcscasecmp (Dependencies): Likewise.
15550         * modules/wcsncasecmp (Dependencies): Likewise.
15551         * modules/wcwidth (Dependencies): Likewise.
15552
15553 2011-02-06  Bruno Haible  <bruno@clisp.org>
15554
15555         New module 'wcswidth'.
15556         * modules/wcswidth: New file.
15557         * lib/wchar.in.h (wcswidth): New declaration.
15558         * lib/wcswidth.c: New file.
15559         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15560         * m4/wcswidth.m4: New file.
15561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15563         REPLACE_WCSWIDTH.
15564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15565         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15566         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15567         * doc/posix-functions/wcswidth.texi: Mention the new module.
15568
15569 2011-02-06  Bruno Haible  <bruno@clisp.org>
15570
15571         New module 'wcstok'.
15572         * modules/wcstok: New file.
15573         * lib/wchar.in.h (wcstok): New declaration.
15574         * lib/wcstok.c: New file.
15575         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15576         * m4/wcstok.m4: New file.
15577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15580         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15581         * doc/posix-functions/wcstok.texi: Mention the new module.
15582
15583 2011-02-06  Bruno Haible  <bruno@clisp.org>
15584
15585         New module 'wcsstr'.
15586         * modules/wcsstr: New file.
15587         * lib/wchar.in.h (wcsstr): New declaration.
15588         * lib/wcsstr.c: New file.
15589         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15590         * m4/wcsstr.m4: New file.
15591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15594         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15595         * doc/posix-functions/wcsstr.texi: Mention the new module.
15596
15597 2011-02-06  Bruno Haible  <bruno@clisp.org>
15598
15599         New module 'wcspbrk'.
15600         * modules/wcspbrk: New file.
15601         * lib/wchar.in.h (wcspbrk): New declaration.
15602         * lib/wcspbrk.c: New file.
15603         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15604         * m4/wcspbrk.m4: New file.
15605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15608         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15609         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15610
15611 2011-02-06  Bruno Haible  <bruno@clisp.org>
15612
15613         New module 'wcsspn'.
15614         * modules/wcsspn: New file.
15615         * lib/wchar.in.h (wcsspn): New declaration.
15616         * lib/wcsspn.c: New file.
15617         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15618         * m4/wcsspn.m4: New file.
15619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15622         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15623         * doc/posix-functions/wcsspn.texi: Mention the new module.
15624
15625 2011-02-06  Bruno Haible  <bruno@clisp.org>
15626
15627         New module 'wcscspn'.
15628         * modules/wcscspn: New file.
15629         * lib/wchar.in.h (wcscspn): New declaration.
15630         * lib/wcscspn.c: New file.
15631         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15632         * m4/wcscspn.m4: New file.
15633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15636         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15637         * doc/posix-functions/wcscspn.texi: Mention the new module.
15638
15639 2011-02-06  Bruno Haible  <bruno@clisp.org>
15640
15641         New module 'wcsrchr'.
15642         * modules/wcsrchr: New file.
15643         * lib/wchar.in.h (wcsrchr): New declaration.
15644         * lib/wcsrchr.c: New file.
15645         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15646         * m4/wcsrchr.m4: New file.
15647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15649         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15650         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15651         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15652
15653 2011-02-06  Bruno Haible  <bruno@clisp.org>
15654
15655         New module 'wcschr'.
15656         * modules/wcschr: New file.
15657         * lib/wchar.in.h (wcschr): New declaration.
15658         * lib/wcschr.c: New file.
15659         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15660         * m4/wcschr.m4: New file.
15661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15664         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15665         * doc/posix-functions/wcschr.texi: Mention the new module.
15666
15667 2011-02-06  Bruno Haible  <bruno@clisp.org>
15668
15669         New module 'wcsdup'.
15670         * modules/wcsdup: New file.
15671         * lib/wchar.in.h (wcsdup): New declaration.
15672         * lib/wcsdup.c: New file.
15673         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15674         * m4/wcsdup.m4: New file.
15675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15678         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15679         * doc/posix-functions/wcsdup.texi: Mention the new module.
15680
15681 2011-02-06  Bruno Haible  <bruno@clisp.org>
15682
15683         New module 'wcsxfrm'.
15684         * modules/wcsxfrm: New file.
15685         * lib/wchar.in.h (wcsxfrm): New declaration.
15686         * lib/wcsxfrm.c: New file.
15687         * lib/wcsxfrm-impl.h: New file.
15688         * m4/wcsxfrm.m4: New file.
15689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15692         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15693         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15694
15695 2011-02-06  Bruno Haible  <bruno@clisp.org>
15696
15697         New module 'wcscoll'.
15698         * modules/wcscoll: New file.
15699         * lib/wchar.in.h (wcscoll): New declaration.
15700         * lib/wcscoll.c: New file.
15701         * lib/wcscoll-impl.h: New file.
15702         * m4/wcscoll.m4: New file.
15703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15706         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15707         * doc/posix-functions/wcscoll.texi: Mention the new module.
15708
15709 2011-02-06  Bruno Haible  <bruno@clisp.org>
15710
15711         New module 'wcsncasecmp'.
15712         * modules/wcsncasecmp: New file.
15713         * lib/wchar.in.h (wcsncasecmp): New declaration.
15714         * lib/wcsncasecmp.c: New file.
15715         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15716         * m4/wcsncasecmp.m4: New file.
15717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15720         HAVE_WCSNCASECMP.
15721         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15722         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15723
15724 2011-02-06  Bruno Haible  <bruno@clisp.org>
15725
15726         New module 'wcscasecmp'.
15727         * modules/wcscasecmp: New file.
15728         * lib/wchar.in.h (wcscasecmp): New declaration.
15729         * lib/wcscasecmp.c: New file.
15730         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15731         * m4/wcscasecmp.m4: New file.
15732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15735         HAVE_WCSCASECMP.
15736         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15737         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15738
15739 2011-02-05  Bruno Haible  <bruno@clisp.org>
15740
15741         New module 'wcsncmp'.
15742         * modules/wcsncmp: New file.
15743         * lib/wchar.in.h (wcsncmp): New declaration.
15744         * lib/wcsncmp.c: New file.
15745         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15746         * m4/wcsncmp.m4: New file.
15747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15750         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15751         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15752
15753 2011-02-05  Bruno Haible  <bruno@clisp.org>
15754
15755         New module 'wcscmp'.
15756         * modules/wcscmp: New file.
15757         * lib/wchar.in.h (wcscmp): New declaration.
15758         * lib/wcscmp.c: New file.
15759         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15760         * m4/wcscmp.m4: New file.
15761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15764         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15765         * doc/posix-functions/wcscmp.texi: Mention the new module.
15766
15767 2011-02-05  Bruno Haible  <bruno@clisp.org>
15768
15769         New module 'wcsncat'.
15770         * modules/wcsncat: New file.
15771         * lib/wchar.in.h (wcsncat): New declaration.
15772         * lib/wcsncat.c: New file.
15773         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15774         * m4/wcsncat.m4: New file.
15775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15778         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15779         * doc/posix-functions/wcsncat.texi: Mention the new module.
15780
15781 2011-02-05  Bruno Haible  <bruno@clisp.org>
15782
15783         New module 'wcscat'.
15784         * modules/wcscat: New file.
15785         * lib/wchar.in.h (wcscat): New declaration.
15786         * lib/wcscat.c: New file.
15787         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15788         * m4/wcscat.m4: New file.
15789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15792         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15793         * doc/posix-functions/wcscat.texi: Mention the new module.
15794
15795 2011-02-05  Bruno Haible  <bruno@clisp.org>
15796
15797         New module 'wcpncpy'.
15798         * modules/wcpncpy: New file.
15799         * lib/wchar.in.h (wcpncpy): New declaration.
15800         * lib/wcpncpy.c: New file.
15801         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15802         * m4/wcpncpy.m4: New file.
15803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15805         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15806         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15807         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15808
15809 2011-02-05  Bruno Haible  <bruno@clisp.org>
15810
15811         New module 'wcsncpy'.
15812         * modules/wcsncpy: New file.
15813         * lib/wchar.in.h (wcsncpy): New declaration.
15814         * lib/wcsncpy.c: New file.
15815         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15816         * m4/wcsncpy.m4: New file.
15817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15820         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15821         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15822
15823 2011-02-05  Bruno Haible  <bruno@clisp.org>
15824
15825         New module 'wcpcpy'.
15826         * modules/wcpcpy: New file.
15827         * lib/wchar.in.h (wcpcpy): New declaration.
15828         * lib/wcpcpy.c: New file.
15829         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15830         * m4/wcpcpy.m4: New file.
15831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15833         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15834         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15835         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15836
15837 2011-02-05  Bruno Haible  <bruno@clisp.org>
15838
15839         New module 'wcscpy'.
15840         * modules/wcscpy: New file.
15841         * lib/wchar.in.h (wcscpy): New declaration.
15842         * lib/wcscpy.c: New file.
15843         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15844         * m4/wcscpy.m4: New file.
15845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15848         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15849         * doc/posix-functions/wcscpy.texi: Mention the new module.
15850
15851 2011-02-05  Bruno Haible  <bruno@clisp.org>
15852
15853         New module 'wcsnlen'.
15854         * modules/wcsnlen: New file.
15855         * lib/wchar.in.h (wcsnlen): New declaration.
15856         * lib/wcsnlen.c: New file.
15857         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15858         * m4/wcsnlen.m4: New file.
15859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15862         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15863         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15864
15865 2011-02-05  Bruno Haible  <bruno@clisp.org>
15866
15867         New module 'wcslen'.
15868         * modules/wcslen: New file.
15869         * lib/wchar.in.h (wcslen): New declaration.
15870         * lib/wcslen.c: New file.
15871         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15872         * m4/wcslen.m4: New file.
15873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15876         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15877         * doc/posix-functions/wcslen.texi: Mention the new module.
15878
15879 2011-02-05  Bruno Haible  <bruno@clisp.org>
15880
15881         New module 'wmemset'.
15882         * modules/wmemset: New file.
15883         * lib/wchar.in.h (wmemset): New declaration.
15884         * lib/wmemset.c: New file.
15885         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15886         * m4/wmemset.m4: New file.
15887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15889         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15890         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15891         * doc/posix-functions/wmemset.texi: Mention the new module.
15892
15893 2011-02-05  Bruno Haible  <bruno@clisp.org>
15894
15895         New module 'wmemmove'.
15896         * modules/wmemmove: New file.
15897         * lib/wchar.in.h (wmemmove): New declaration.
15898         * lib/wmemmove.c: New file.
15899         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15900         * m4/wmemmove.m4: New file.
15901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15903         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15904         HAVE_WMEMMOVE.
15905         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15906         * doc/posix-functions/wmemmove.texi: Mention the new module.
15907
15908 2011-02-05  Bruno Haible  <bruno@clisp.org>
15909
15910         New module 'wmemcpy'.
15911         * modules/wmemcpy: New file.
15912         * lib/wchar.in.h (wmemcpy): New declaration.
15913         * lib/wmemcpy.c: New file.
15914         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15915         * m4/wmemcpy.m4: New file.
15916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15918         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15919         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15920         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15921
15922 2011-02-05  Bruno Haible  <bruno@clisp.org>
15923
15924         New module 'wmemcmp'.
15925         * modules/wmemcmp: New file.
15926         * lib/wchar.in.h (wmemcmp): New declaration.
15927         * lib/wmemcmp.c: New file.
15928         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15929         * m4/wmemcmp.m4: New file.
15930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15932         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15933         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15934         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15935
15936 2011-02-07  Jim Meyering  <meyering@redhat.com>
15937
15938         di-set, ino-map: new modules, from coreutils
15939         * lib/di-set.c: New file.
15940         * lib/di-set.h: Likewise.
15941         * lib/ino-map.c: Likewise.
15942         * lib/ino-map.h: Likewise.
15943         * modules/di-set: Likewise.
15944         * modules/di-set-tests: Likewise.
15945         * modules/ino-map: Likewise.
15946         * modules/ino-map-tests: Likewise.
15947         * tests/test-di-set.c: Likewise.
15948         * tests/test-ino-map.c: Likewise.
15949
15950 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15951
15952         getloadavg: merge minor changes from Emacs
15953
15954         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15955         (getloadavg): Use memset, not bzero.
15956
15957         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15958         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15959         clash (bug#86).
15960
15961 2010-11-14  Bruno Haible  <bruno@clisp.org>
15962
15963         Allow multiple gnulib generated replacements to coexist.
15964         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15965         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15966         * lib/langinfo.in.h (nl_item): Likewise.
15967         * lib/math.in.h (_NaN, NAN): Likewise.
15968         * lib/netdb.in.h (struct addrinfo): Likewise.
15969         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15970         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15971         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15972         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15973         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15974         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15975         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15976         pthread_mutexattr_init, pthread_mutexattr_settype,
15977         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15978         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15979         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15980         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15981         * lib/sched.in.h (struct sched_param): Likewise.
15982         * lib/se-selinux.in.h (security_class_t, security_context_t,
15983         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15984         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15985         lsetfilecon, fsetfilecon, security_check_context,
15986         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15987         Likewise.
15988         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15989         Likewise.
15990         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15991         _gl_function_taking_int_returning_void_t, union sigval,
15992         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15993         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15994         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15995         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15996         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15997         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15998         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15999         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16000         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16001         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16002         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16003         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16004         socklen_t, rpl_fd_isset): Likewise.
16005         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16006         * lib/sys_time.in.h (struct timeval): Likewise.
16007         * lib/sys_times.in.h (struct tms): Likewise.
16008         * lib/sys_utsname.in.h (struct utsname):
16009         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16010         * lib/unistd.in.h (getpagesize): Likewise.
16011         * lib/wchar.in.h (mbstate_t): Likewise.
16012         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16013         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16014         towlower, towupper): Likewise.
16015         Reported by Sam Steingold <sds@gnu.org>.
16016
16017 2011-02-05  Eric Blake  <eblake@redhat.com>
16018
16019         unsetenv: work around Haiku issues
16020         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16021         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16022
16023 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16024
16025         libposix: avoid calling error() within libposix
16026         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16027         is defined.
16028
16029 2011-02-05  Eric Blake  <eblake@redhat.com>
16030
16031         strerror_r-posix: port to cygwin
16032         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16033         implementation.
16034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16035         * tests/test-strerror_r.c (main): Fix test.
16036         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16037         issue.
16038
16039 2011-02-05  Bruno Haible  <bruno@clisp.org>
16040
16041         New module 'wmemchr'.
16042         * modules/wmemchr: New file.
16043         * lib/wchar.in.h (wmemchr): New declaration.
16044         * lib/wmemchr.c: New file.
16045         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16046         * m4/wmemchr.m4: New file.
16047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16049         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16050         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16051         * doc/posix-functions/wmemchr.texi: Mention the new module.
16052
16053 2011-02-04  Eric Blake  <eblake@redhat.com>
16054
16055         fdopendir: detect FreeBSD bug
16056         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16057         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16058
16059 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         stdbool: do not define HAVE_STDBOOL_H
16062         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16063         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16064         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16065         imported from the latest Autoconf git.  It was motivated by Emacs,
16066         which uses gnulib but does not need HAVE_STDBOOL_H.
16067
16068 2011-02-04  Bruno Haible  <bruno@clisp.org>
16069
16070         wcsnrtombs: Prepare for new module wwcsnrtombs.
16071         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16072         * lib/wcsnrtombs.c: Include it.
16073         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16074
16075         wcsrtombs: Prepare for new module wwcsrtombs.
16076         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16077         * lib/wcsrtombs.c: Include it.
16078         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16079
16080         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16081         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16082         * lib/mbsnrtowcs.c: Include it.
16083         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16084
16085         mbsrtowcs: Prepare for new module mbsrtowwcs.
16086         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16087         * lib/mbsrtowcs.c: Include it.
16088         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16089
16090 2011-02-04  Bruno Haible  <bruno@clisp.org>
16091
16092         vasnprintf: Reduce use of malloc for small format strings.
16093         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16094         (arguments): Add room for the first 7 arguments.
16095         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16096         (char_directives, u8_directives, u16_directives, u32_directives): Add
16097         room for the first 7 directives.
16098         * lib/printf-parse.c: Include <string.h>.
16099         (PRINTF_PARSE): Change memory handling code so that it uses the first
16100         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16101         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16102         Reported by Pádraig Brady <P@draigbrady.com>.
16103
16104 2011-01-31  Eric Blake  <eblake@redhat.com>
16105
16106         dup2: work around Haiku bug
16107         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16108         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16109         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16110         * tests/test-dup2.c (main): Enhance test.
16111
16112 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16113
16114         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16115         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16116         declared by eglibc 2.11.2.
16117         * lib/stdio.in.h: Likewise.
16118
16119 2011-01-31  Eric Blake  <eblake@redhat.com>
16120
16121         ignore-value: add missing test dependency
16122         * tests/test-ignore-value.c: Revert previous change; stdio.h
16123         provides off_t.
16124         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16125
16126 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         mktime: clarify long_int width checking
16129         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16130         the top level, to make it clearer that the assumption about
16131         long_int width is being checked.  See
16132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16133
16134 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16135
16136         ignore-value: Fix self-test.
16137         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16138
16139 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16140
16141         TYPE_MAXIMUM: avoid theoretically undefined behavior
16142         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16143         negative number, which the C Standard says has undefined behavior.
16144         In practice this is not a problem, but might as well do it by the book.
16145         Reported by Rich Felker and Eric Blake; see
16146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16147         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16148         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16150         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16151         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16152         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16153
16154         mktime: #undef mktime before #defining it
16155         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16156
16157         mktime: systematically normalize tm_isdst comparisons
16158         * lib/mktime.c (isdst_differ): New function.
16159         (__mktime_internal): Use it systematically for all isdst comparisons.
16160         This completes the fix for libc BZ #6723, and removes the need for
16161         normalizing tm_isdst.  See
16162         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16163         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16164
16165         mktime: fix some integer overflow issues and sidestep the rest
16166
16167         This was prompted by a bug report by Benjamin Lindner for MinGW
16168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16169         His bug is due to signed integer overflow (0 - INT_MIN), and I
16170         I scanned through mktime.c looking for other integer overflow
16171         problems, fixing all the bugs I found.
16172
16173         Although the C Standard says the resulting code is still not safe
16174         in the presence of integer overflow, in practice it should be good
16175         enough for all real-world two's-complement implementations, except
16176         for debugging environments that deliberately trap on integer
16177         overflow (e.g., gcc -ftrapv).
16178
16179         * lib/mktime.c (WRAPV): New macro.
16180         (SHR): Also check that long_int and time_t shift right in the
16181         usual way, before using the fast-but-unportable method.
16182         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16183         used.  The code already assumed two's complement, so there's
16184         no need to test for alternatives.  All uses removed.
16185         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16186         the C standard.  Problem reported by Rich Felker in
16187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16188         (twos_complement_arithmetic): Also check long_int and time_t.
16189         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16190         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16191         (__mktime_internal): Avoid integer overflow with unary subtraction
16192         in two instances where -1 - X is an adequate replacement for -X,
16193         since the calculations are approximate.
16194
16195 2011-01-29  Eric Blake  <eblake@redhat.com>
16196
16197         mktime: avoid infinite loop
16198         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16199         type; behavior is still undefined but portable to all known targets.
16200         Reported by Rich Felker.
16201
16202 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16203
16204         rename, unlink, same-inode: Relicense.
16205         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16206         * modules/unlink (License): Likewise.
16207         * modules/same-inode (License): Likewise.
16208
16209 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16210
16211         mktime: avoid problems on NetBSD 5 / i386
16212         * lib/mktime.c (long_int): New type.  This works around a problem
16213         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16214         but time_t is 64 bits, and where I expect the existing code is
16215         wrong in some cases.
16216         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16217         (ydhms_diff): Bring back the compile-time check for wide-enough
16218         year and yday.
16219
16220         mktime: fix misspelling in comment
16221         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16222         This merges all recent glibc changes of importance.
16223
16224 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16225
16226         move-if-change: cope with concurrent mv of identical file.
16227         * build-aux/move-if-change (CMPPROG): Accept environment
16228         variable as an override for `cmp'.
16229         (usage): Document CMPPROG.
16230         Adjust comparison to drop stdout.  Cope with failure of mv if
16231         the target file exists and is identical to the source, for
16232         parallel builds.
16233         Report from H.J. Lu against binutils in PR binutils/12283.
16234
16235 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16236
16237         * users.txt: Mention sharutils.
16238
16239 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16240
16241         * users.txt: Mention OATH Toolkit.
16242
16243 2011-01-27  Bruno Haible  <bruno@clisp.org>
16244
16245         Prepare for supporting FreeBSD 10.
16246         * build-aux/config.libpath: Remove handling of freebsd1*.
16247
16248 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16249
16250         Prepare for supporting FreeBSD 10.
16251         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16252         match FreeBSD 10.0.
16253
16254 2011-01-27  Bruno Haible  <bruno@clisp.org>
16255
16256         vma-iter, get-rusage-as: Add OpenBSD support.
16257         * modules/vma-iter (configure.ac): Test for mquery.
16258         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16259         * lib/vma-iter.c: Include <sys/mman.h>.
16260         (vma_iterate): Add an implementation based on mquery().
16261         * lib/resource-ext.h (get_rusage_as): Update comments.
16262         * lib/get-rusage-as.c: Likewise.
16263         * lib/get-rusage-data.c: Likewise.
16264
16265 2011-01-26  Karl Berry  <karl@gnu.org>
16266
16267         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16268         variables to make it easier to override the makeinfo program used.
16269
16270 2011-01-26  Eric Blake  <eblake@redhat.com>
16271
16272         fcntl: work around Haiku F_DUPFD bugs
16273         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16274         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16275         cloexec bit on duplication.
16276         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16277
16278 2011-01-26  Bruno Haible  <bruno@clisp.org>
16279
16280         Enable memory leak tests on AIX.
16281         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16282         * tests/test-fprintf-posix3.c (main): Likewise.
16283
16284 2011-01-26  Bruno Haible  <bruno@clisp.org>
16285
16286         Tests for module 'get-rusage-data'.
16287         * modules/get-rusage-data-tests: New file.
16288         * tests/test-get-rusage-data.c: New file.
16289
16290         New module 'get-rusage-data'.
16291         * lib/resource-ext.h (get_rusage_data): New declaration.
16292         * lib/get-rusage-data.c: New file.
16293         * modules/get-rusage-data: New file.
16294
16295 2011-01-25  Bruno Haible  <bruno@clisp.org>
16296
16297         get-rusage-as: Allow for easier testing.
16298         * lib/resource-ext.h (get_rusage_as): Add comment.
16299         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16300         (main): New function for interactive testing.
16301
16302 2011-01-25  Bruno Haible  <bruno@clisp.org>
16303
16304         vma-iter: Treat Haiku like BeOS.
16305         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16306         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16307
16308 2011-01-25  Eric Blake  <eblake@redhat.com>
16309
16310         c-stack: fix regression on cygwin when libsigsegv is present
16311         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16312
16313 2011-01-24  Bruno Haible  <bruno@clisp.org>
16314
16315         vma-iter: Avoid empty intervals.
16316         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16317         on an empty interval.
16318
16319 2011-01-24  Jim Meyering  <meyering@redhat.com>
16320
16321         u64: remove unnecessary #include
16322         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16323
16324 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16325
16326         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16327         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16328
16329 2011-01-23  Bruno Haible  <bruno@clisp.org>
16330
16331         New module 'vma-iter'.
16332         * lib/vma-iter.h: New file.
16333         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16334         * modules/vma-iter: New file.
16335         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16336         for get_rusage_as_via_iterator.
16337         (vma_iterate_callback): New function.
16338         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16339         * modules/get-rusage-as (Depends-on): Add vma-iter.
16340
16341 2011-01-23  Bruno Haible  <bruno@clisp.org>
16342
16343         uninorm: Tweak includes.
16344         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16345         Reported by Jim Meyering.
16346
16347 2011-01-23  Bruno Haible  <bruno@clisp.org>
16348
16349         get-rusage-as: Improve on NetBSD.
16350         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16351         /proc, like on FreeBSD.
16352
16353 2011-01-23  Jim Meyering  <meyering@redhat.com>
16354
16355         xreadlink.h: remove unnecessary #include
16356         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16357
16358         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16359         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16360
16361 2011-01-23  Bruno Haible  <bruno@clisp.org>
16362
16363         get-rusage-as: Fix bug.
16364         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16365         original limit when aborting the first loop.
16366
16367 2011-01-23  Bruno Haible  <bruno@clisp.org>
16368
16369         wctype: Ensure valid C syntax.
16370         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16371         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16372
16373 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16374
16375         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16377         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16378         as they are needed only for configure's test case.
16379         This removes two unnecessary symbols from config.h.
16380
16381         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16382         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16384         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16385         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16386         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16388         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16389         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16390         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16391         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16393         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16395         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16396         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16397         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16398         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16399
16400 2011-01-21  Eric Blake  <eblake@redhat.com>
16401
16402         maintainer-makefile: work with older git for submodule check
16403         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16404         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16405         Reported by Matthias Bolte.
16406
16407         bootstrap: minor portability fixes
16408         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16409         (usage): Omit leading capital and trailing . on help phrases, per
16410         GNU Coding Standards.
16411         (check_versions, top level): Prefix messages with script name.
16412
16413 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16414
16415         bootstrap: support --no-git option
16416         * build-aux/bootstrap: Add --no-git option, to be used when
16417         --gnulib-srcdir points to the exact desired checkout.
16418
16419 2011-01-21  Eric Blake  <eblake@redhat.com>
16420
16421         strerror_r-posix: work with glibc 2.13
16422         * lib/strerror_r.c (strerror_r): Fix return type.
16423
16424 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16425             Bruno Haible  <bruno@clisp.org>
16426
16427         uN_strstr: New unit tests.
16428         * modules/unistr/u8-strstr-tests: New file.
16429         * modules/unistr/u16-strstr-tests: New file.
16430         * modules/unistr/u32-strstr-tests: New file.
16431         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16432         * tests/unistr/test-u8-strstr.c: New file.
16433         * tests/unistr/test-u16-strstr.c: New file.
16434         * tests/unistr/test-u32-strstr.c: New file.
16435
16436 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16437             Bruno Haible  <bruno@clisp.org>
16438
16439         Make uN_strstr functions O(n) worst-case.
16440         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16441         16-bit and 32-bit unit cases, use the unibyte algorithm from
16442         lib/mbsstr.c.
16443         * lib/unistr/u8-strstr.c: Include <string.h>.
16444         (UNIT_IS_UINT8_T): New macro.
16445         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16446         (U_STRLEN, U_STRNLEN): New macros.
16447         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16448         (U_STRLEN, U_STRNLEN): New macros.
16449         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16450         (configure.ac): Update required libunistring version.
16451         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16452         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16453         malloca.
16454         (configure.ac): Update required libunistring version.
16455         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16456         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16457         malloca.
16458         (configure.ac): Update required libunistring version.
16459
16460 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16461             Bruno Haible  <bruno@clisp.org>
16462
16463         Prepare for faster uN_strstr functions.
16464         * lib/str-kmp.h: Support definable UNITs.
16465         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16466         needle_len argument.
16467         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16468         * lib/mbscasestr.c (mbscasestr): Likewise.
16469
16470 2011-01-21  Pádraig Brady <P@draigBrady.com>
16471
16472         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16473         * tests/test-malloca.c (main): Unset the environment variable
16474         to greatly speed up the test.
16475         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16476         * modules/malloca-tests: Depend on unsetenv.
16477
16478 2011-01-21  Pádraig Brady <P@draigBrady.com>
16479
16480         ignore-value: remove stdint dependency
16481         * lib/ignore-value.h: Remove <stdint.h>
16482         * modules/ignore-value: Remove stdint dependency.
16483
16484 2011-01-21  Jim Meyering  <meyering@redhat.com>
16485
16486         maint.mk: adjust variable name to be consistent with other gl_ vars
16487         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16488         to be lower case.
16489
16490 2011-01-20  Jim Meyering  <meyering@redhat.com>
16491
16492         maint.mk: make "check" depend on public-submodule-commit by default
16493         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16494
16495 2011-01-20  Bruno Haible  <bruno@clisp.org>
16496
16497         mbfile, mbiter: Complete change from 2008-12-21.
16498         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16499         * m4/mbiter.m4 (gl_MBITER): Likewise.
16500
16501 2011-01-20  Jim Meyering  <meyering@redhat.com>
16502
16503         init.sh: insert space between each function name and "()"
16504         * tests/init.sh: Make it a little easier to see that a function's
16505         name is "warn_", and not "warn" when looking at the first part of
16506         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16507
16508 2011-01-20  Jim Meyering  <meyering@redhat.com>
16509
16510         mountlist: clean up code formatting
16511         * lib/mountlist.c (read_file_system_list): Split a long line,
16512         correct bracing style, use NULL in place of "(struct statfs *)0",
16513         don't parenthesize return value, add spaces around "=" and after
16514         ";-in-for-stmt".
16515
16516 2011-01-14  Markus Duft <mduft@gentoo.org>
16517
16518         mountlist: add support for Interix
16519         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16520         Apply statvfs to all entries of /dev/fs.
16521         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16522         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16523
16524 2011-01-20  Jim Meyering  <meyering@redhat.com>
16525
16526         maint.mk: improve the public-submodule-commit rule
16527         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16528         to suppress printing of its commands... unless V=1.
16529         Add git submodule's --quiet option to suppress printing of e.g.,
16530         "Entering gnulib" output.
16531         "cd" into $(srcdir) before running git submodule.
16532
16533 2011-01-20  Bruno Haible  <bruno@clisp.org>
16534
16535         include_next: Fix bug introduced on 2011-01-18.
16536         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16537         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16538         ac_cv_header_... variable if the second argument is not 'check'.
16539         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16540         gl_NEXT_HEADERS_INTERNAL.
16541
16542 2011-01-20  Bruno Haible  <bruno@clisp.org>
16543
16544         Allow the user to avoid the GNULIB_TEST_* macros.
16545         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16546         Suggested by Paul Eggert.
16547
16548 2011-01-14  Jim Meyering  <meyering@redhat.com>
16549
16550         bootstrap: avoid failure when there is no .gitmodules file
16551         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16552         has been assigned to, even when its value is the empty string.
16553         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16554         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16555         Reported by John W. Eaton <jwe@gnu.org>.
16556
16557 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         assume <ctype.h>, ..., <time.h> exist
16560         For years gnulib has been assuming the existence of the headers
16561         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16562         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16563         them, since they don't appear to be needed.
16564         * README (Portability guidelines): Document this.
16565         * lib/flock.c: Assume <fcntl.h> exists.
16566         * lib/regex_internal.h: Assume <locale.h> exists.
16567         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16569         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16570         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16571         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16572         * m4/regex.m4 (gl_REGEX): Likewise.
16573         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16574         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16575         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16576         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16577         * tests/test-argp.c: Likewise.
16578         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16579
16580         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16581         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16582         AA_APPLE_UNIVERSAL_BUILD.  See
16583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16584         * NEWS: Document this.
16585
16586 2011-01-19  Eric Blake  <eblake@redhat.com>
16587
16588         c-stack: assume stack overflow if SA_SIGINFO unsupported
16589         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16590         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16591         sigaction will work.
16592         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16593         behavior match Linux.
16594         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16595
16596         stdbool-tests: accomodate Haiku
16597         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16598
16599         binary-io: fix O_TEXT on Haiku
16600         * modules/binary-io (Depends-on): Add fcntl-h.
16601         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16602         than blindly undefining O_TEXT.
16603         Reported by Scott McCreary.
16604
16605 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         include_next: do not check for standard headers like stddef.h
16608
16609         I found this problem when modifying Emacs to use gnulib.
16610         I noticed that it added HAVE_STDDEF_H to config.h, even though
16611         gnulib always assumes <stddef.h> exists as per README and this
16612         symbol is unnecessary.
16613         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16614         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16615         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16616         faster for headers like stddef.h that are known to exist.
16617         (gl_CHECK_NEXT_HEADERS): Use it.
16618         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16619         rather than gl_CHECK_NEXT_HEADERS.
16620         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16621         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16622
16623 2011-01-18  Eric Blake  <eblake@redhat.com>
16624
16625         ansi-c++-opt: skip C++ dependency style if C++ is unused
16626         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16627         tests when we know C++ compilation is not desired.
16628         Reported by Scott McCreary.
16629
16630 2011-01-18  Bruno Haible  <bruno@clisp.org>
16631
16632         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16633         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16634         (main): Perform test also when getrlimit and setrlimit don't exist or
16635         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16636         limiting the address space size using setrlimit, compare the address
16637         space size before and after the the test.
16638         * tests/test-dprintf-posix2.c: Likewise.
16639         * tests/test-fprintf-posix3.sh: Update skip messages.
16640         * tests/test-dprintf-posix2.sh: Likewise.
16641         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16642         * modules/dprintf-posix-tests (Depends-on): Likewise.
16643         Reported by Bruce Korb <bkorb@gnu.org> and
16644         Gary V. Vaughan <gary@gnu.org>.
16645
16646 2011-01-18  Bruno Haible  <bruno@clisp.org>
16647
16648         get-rusage-as: Improvement for Cygwin.
16649         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16650         areas that are merely reserved.
16651
16652 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16653
16654         strftime: remove dependencies on multibyte modules
16655
16656         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16657         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16658         only if __osf__ is defined, and I suspect OSF doesn't need these
16659         other modules.  If my guess is wrong, we'll need to come up with a
16660         variant of strftime that doesn't need the multibyte modules.
16661
16662         I discovered this problem when attempting modify Emacs to use the
16663         strftime module.  With the previous gnulib, this caused Emacs to
16664         need 31 new files, ranging from lib/config.charset to
16665         m4/wint_t.m4.  This was overkill and I expect would be offputting
16666         to the Emacs maintainers.  After this change, only 6 new files are
16667         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16668         stdbool.m4, and tm_gmtoff.m4.
16669
16670         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16671         Suggested by Bruno Haible in
16672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16674         and do not check for wchar.h.
16675         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16676         (Depends-on): Remove mbrlen, mbsinit, wchar.
16677
16678 2011-01-18  Bruno Haible  <bruno@clisp.org>
16679
16680         Tests for module 'get-rusage-as'.
16681         * modules/get-rusage-as-tests: New file.
16682         * tests/test-get-rusage-as.c: New file.
16683
16684         New module 'get-rusage-as'.
16685         * modules/get-rusage-as: New file.
16686         * lib/resource-ext.h: New file.
16687         * lib/get-rusage-as.c: New file.
16688
16689 2011-01-17  Eric Blake  <eblake@redhat.com>
16690
16691         sigaction: relax license from LGPLv3+ to LGPLv2+
16692         * modules/sigaction (License): Relax to LGPLv2+.
16693
16694 2011-01-14  Bruno Haible  <bruno@clisp.org>
16695
16696         filemode: Make function declarations usable in C++ mode.
16697         * lib/filemode.h: Enclose function declarations in extern "C" block.
16698         Reported by John W. Eaton <jwe@gnu.org>.
16699
16700 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16701
16702         save-cwd: no longer include "xgetcwd.h"
16703         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16704         This avoids a compilation failure in projects that use save-cwd
16705         without also using the xgetcwd module.
16706
16707 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16708
16709         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16710         This is so that a program like Emacs, which needs only dtoastr,
16711         does not have to bother with distributing and compiling ftoastr
16712         and ldtoastr.
16713         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16714         * modules/dtoastr, modules/ldtoastr: New files.
16715         * modules/ftoastr: Now works just for 'float'.
16716         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16717         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16718         dtoastr.c, ldtoastr.c.
16719
16720 2011-01-11  Jim Meyering  <meyering@redhat.com>
16721
16722         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16723         There is no need to work around the lack of the fchdir function,
16724         since gnulib can now provide a replacement when required.
16725         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16726         * modules/save-cwd (Depends-on): Add fchdir.
16727
16728 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         openat, save-cwd: avoid xmalloc
16731
16732         This removes a direct (but undocumented) dependency of openat on
16733         xalloc, along with an indirect dependency via save-cwd.  It also
16734         removes a dependency of save-cwd on xgetcwd, and thereby
16735         indirectly on xalloc.  This change causes the openat substitute
16736         to fall back on save_cwd when memory is tight, and for save_cwd to
16737         fail instead of dying when memory is tight, but that's good enough.
16738         Problem and initial idea for fix reported by Bastien Roucaries in
16739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16740
16741         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16742         xalloc.h (for xmalloc).
16743         (openat_proc_name): Use malloc, not xmalloc.
16744         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16745         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16746
16747         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16748         This avoids heap allocation for file names whose lengths are in
16749         the range 512..1023, with the upper bound increasing to at most
16750         4031 depending on the platform's PATH_MAX.  (We do not want
16751         pathmax.h here as it might supply a non-constant PATH_MAX.)
16752         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16753         Perhaps they should be moved to malloca.h?
16754         (OPENAT_BUFFER_SIZE): Use them.
16755
16756 2011-01-10  Bruno Haible  <bruno@clisp.org>
16757
16758         doc: Update users.txt.
16759         * users.txt: Add recutils.
16760
16761 2011-01-09  Karl Berry  <karl@gnu.org>
16762
16763         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16764
16765         * doc/configmake.texi: New file.
16766         * doc/gnulib.texi: Include it.
16767         * modules/configmake: Move documentation from here.
16768
16769 2011-01-09  Bruno Haible  <bruno@clisp.org>
16770
16771         Update to Unicode 6.0.0.
16772         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16773         (get_lbp): Update for Unicode 6.0.0.
16774         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16775         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16776         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16777         U+11001, U+11038..U+11046. Remove U+06DE.
16778         (uc_width): Fix bounds of planes.
16779         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16780         lib/uniwidth/width.c.
16781         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16782         trailing whitespace removed.
16783         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16784         without comments, but with the original copyright notice.
16785         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16786         * lib/unicase/ignorable.h: Likewise.
16787         * lib/unicase/tocasefold.h: Likewise.
16788         * lib/unicase/tolower.h: Likewise.
16789         * lib/unicase/totitle.h: Likewise.
16790         * lib/unicase/toupper.h: Likewise.
16791         * lib/unictype/bidi_of.h: Likewise.
16792         * lib/unictype/blocks.h: Likewise.
16793         * lib/unictype/categ_C.h: Likewise.
16794         * lib/unictype/categ_Cn.h: Likewise.
16795         * lib/unictype/categ_L.h: Likewise.
16796         * lib/unictype/categ_Ll.h: Likewise.
16797         * lib/unictype/categ_Lm.h: Likewise.
16798         * lib/unictype/categ_Lo.h: Likewise.
16799         * lib/unictype/categ_Lu.h: Likewise.
16800         * lib/unictype/categ_M.h: Likewise.
16801         * lib/unictype/categ_Mc.h: Likewise.
16802         * lib/unictype/categ_Me.h: Likewise.
16803         * lib/unictype/categ_Mn.h: Likewise.
16804         * lib/unictype/categ_N.h: Likewise.
16805         * lib/unictype/categ_Nd.h: Likewise.
16806         * lib/unictype/categ_No.h: Likewise.
16807         * lib/unictype/categ_P.h: Likewise.
16808         * lib/unictype/categ_Po.h: Likewise.
16809         * lib/unictype/categ_S.h: Likewise.
16810         * lib/unictype/categ_Sc.h: Likewise.
16811         * lib/unictype/categ_Sk.h: Likewise.
16812         * lib/unictype/categ_Sm.h: Likewise.
16813         * lib/unictype/categ_So.h: Likewise.
16814         * lib/unictype/categ_of.h: Likewise.
16815         * lib/unictype/combining.h: Likewise.
16816         * lib/unictype/ctype_alnum.h: Likewise.
16817         * lib/unictype/ctype_alpha.h: Likewise.
16818         * lib/unictype/ctype_graph.h: Likewise.
16819         * lib/unictype/ctype_lower.h: Likewise.
16820         * lib/unictype/ctype_print.h: Likewise.
16821         * lib/unictype/ctype_punct.h: Likewise.
16822         * lib/unictype/ctype_upper.h: Likewise.
16823         * lib/unictype/decdigit.h: Likewise.
16824         * lib/unictype/digit.h: Likewise.
16825         * lib/unictype/numeric.h: Likewise.
16826         * lib/unictype/pr_alphabetic.h: Likewise.
16827         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16828         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16829         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16830         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16831         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16832         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16833         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16834         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16835         * lib/unictype/pr_case_ignorable.h: Likewise.
16836         * lib/unictype/pr_cased.h: Likewise.
16837         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16838         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16839         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16840         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16841         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16842         * lib/unictype/pr_combining.h: Likewise.
16843         * lib/unictype/pr_composite.h: Likewise.
16844         * lib/unictype/pr_currency_symbol.h: Likewise.
16845         * lib/unictype/pr_decimal_digit.h: Likewise.
16846         * lib/unictype/pr_deprecated.h: Likewise.
16847         * lib/unictype/pr_format_control.h: Likewise.
16848         * lib/unictype/pr_grapheme_base.h: Likewise.
16849         * lib/unictype/pr_grapheme_extend.h: Likewise.
16850         * lib/unictype/pr_grapheme_link.h: Likewise.
16851         * lib/unictype/pr_id_continue.h: Likewise.
16852         * lib/unictype/pr_id_start.h: Likewise.
16853         * lib/unictype/pr_ideographic.h: Likewise.
16854         * lib/unictype/pr_lowercase.h: Likewise.
16855         * lib/unictype/pr_math.h: Likewise.
16856         * lib/unictype/pr_numeric.h: Likewise.
16857         * lib/unictype/pr_other_alphabetic.h: Likewise.
16858         * lib/unictype/pr_other_id_continue.h: Likewise.
16859         * lib/unictype/pr_other_math.h: Likewise.
16860         * lib/unictype/pr_punctuation.h: Likewise.
16861         * lib/unictype/pr_sentence_terminal.h: Likewise.
16862         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16863         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16864         * lib/unictype/pr_unified_ideograph.h: Likewise.
16865         * lib/unictype/pr_uppercase.h: Likewise.
16866         * lib/unictype/pr_xid_continue.h: Likewise.
16867         * lib/unictype/pr_xid_start.h: Likewise.
16868         * lib/unictype/scripts.h: Likewise.
16869         * lib/unictype/scripts_byname.gperf: Likewise.
16870         * lib/unictype/sy_java_ident.h: Likewise.
16871         * lib/unigbrk/gbrkprop.h: Likewise.
16872         * lib/unilbrk/lbrkprop1.h: Likewise.
16873         * lib/unilbrk/lbrkprop2.h: Likewise.
16874         * lib/uninorm/decomposition-table2.h: Likewise.
16875         * lib/uniwbrk/wbrkprop.h: Likewise.
16876         * tests/unicase/test-cased.c: Likewise.
16877         * tests/unicase/test-ignorable.c: Likewise.
16878         * tests/unicase/test-uc_tolower.c: Likewise.
16879         * tests/unicase/test-uc_totitle.c: Likewise.
16880         * tests/unicase/test-uc_toupper.c: Likewise.
16881         * tests/unictype/test-categ_C.c: Likewise.
16882         * tests/unictype/test-categ_Cn.c: Likewise.
16883         * tests/unictype/test-categ_L.c: Likewise.
16884         * tests/unictype/test-categ_Ll.c: Likewise.
16885         * tests/unictype/test-categ_Lm.c: Likewise.
16886         * tests/unictype/test-categ_Lo.c: Likewise.
16887         * tests/unictype/test-categ_Lu.c: Likewise.
16888         * tests/unictype/test-categ_M.c: Likewise.
16889         * tests/unictype/test-categ_Mc.c: Likewise.
16890         * tests/unictype/test-categ_Me.c: Likewise.
16891         * tests/unictype/test-categ_Mn.c: Likewise.
16892         * tests/unictype/test-categ_N.c: Likewise.
16893         * tests/unictype/test-categ_Nd.c: Likewise.
16894         * tests/unictype/test-categ_No.c: Likewise.
16895         * tests/unictype/test-categ_P.c: Likewise.
16896         * tests/unictype/test-categ_Po.c: Likewise.
16897         * tests/unictype/test-categ_S.c: Likewise.
16898         * tests/unictype/test-categ_Sc.c: Likewise.
16899         * tests/unictype/test-categ_Sk.c: Likewise.
16900         * tests/unictype/test-categ_Sm.c: Likewise.
16901         * tests/unictype/test-categ_So.c: Likewise.
16902         * tests/unictype/test-ctype_alnum.c: Likewise.
16903         * tests/unictype/test-ctype_alpha.c: Likewise.
16904         * tests/unictype/test-ctype_graph.c: Likewise.
16905         * tests/unictype/test-ctype_lower.c: Likewise.
16906         * tests/unictype/test-ctype_print.c: Likewise.
16907         * tests/unictype/test-ctype_punct.c: Likewise.
16908         * tests/unictype/test-ctype_upper.c: Likewise.
16909         * tests/unictype/test-decdigit.h: Likewise.
16910         * tests/unictype/test-digit.h: Likewise.
16911         * tests/unictype/test-numeric.h: Likewise.
16912         * tests/unictype/test-pr_alphabetic.c: Likewise.
16913         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16914         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16915         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16916         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16917         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16918         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16919         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16920         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16921         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16922         * tests/unictype/test-pr_cased.c: Likewise.
16923         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16924         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16925         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16926         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16927         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16928         * tests/unictype/test-pr_combining.c: Likewise.
16929         * tests/unictype/test-pr_composite.c: Likewise.
16930         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16931         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16932         * tests/unictype/test-pr_deprecated.c: Likewise.
16933         * tests/unictype/test-pr_format_control.c: Likewise.
16934         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16935         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16936         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16937         * tests/unictype/test-pr_id_continue.c: Likewise.
16938         * tests/unictype/test-pr_id_start.c: Likewise.
16939         * tests/unictype/test-pr_ideographic.c: Likewise.
16940         * tests/unictype/test-pr_lowercase.c: Likewise.
16941         * tests/unictype/test-pr_math.c: Likewise.
16942         * tests/unictype/test-pr_numeric.c: Likewise.
16943         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16944         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16945         * tests/unictype/test-pr_other_math.c: Likewise.
16946         * tests/unictype/test-pr_punctuation.c: Likewise.
16947         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16948         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16949         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16950         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16951         * tests/unictype/test-pr_uppercase.c: Likewise.
16952         * tests/unictype/test-pr_xid_continue.c: Likewise.
16953         * tests/unictype/test-pr_xid_start.c: Likewise.
16954         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16955         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16956         changes.
16957         * lib/unictype/categ_Cc.h: Likewise.
16958         * lib/unictype/categ_Cf.h: Likewise.
16959         * lib/unictype/categ_Co.h: Likewise.
16960         * lib/unictype/categ_Cs.h: Likewise.
16961         * lib/unictype/categ_Lt.h: Likewise.
16962         * lib/unictype/categ_Nl.h: Likewise.
16963         * lib/unictype/categ_Pc.h: Likewise.
16964         * lib/unictype/categ_Pd.h: Likewise.
16965         * lib/unictype/categ_Pe.h: Likewise.
16966         * lib/unictype/categ_Pf.h: Likewise.
16967         * lib/unictype/categ_Pi.h: Likewise.
16968         * lib/unictype/categ_Ps.h: Likewise.
16969         * lib/unictype/categ_Z.h: Likewise.
16970         * lib/unictype/categ_Zl.h: Likewise.
16971         * lib/unictype/categ_Zp.h: Likewise.
16972         * lib/unictype/categ_Zs.h: Likewise.
16973         * lib/unictype/ctype_blank.h: Likewise.
16974         * lib/unictype/ctype_cntrl.h: Likewise.
16975         * lib/unictype/ctype_digit.h: Likewise.
16976         * lib/unictype/ctype_space.h: Likewise.
16977         * lib/unictype/ctype_xdigit.h: Likewise.
16978         * lib/unictype/mirror.h: Likewise.
16979         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16980         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16981         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16982         * lib/unictype/pr_bidi_control.h: Likewise.
16983         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16984         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16985         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16986         * lib/unictype/pr_bidi_pdf.h: Likewise.
16987         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16988         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16989         * lib/unictype/pr_dash.h: Likewise.
16990         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16991         * lib/unictype/pr_diacritic.h: Likewise.
16992         * lib/unictype/pr_extender.h: Likewise.
16993         * lib/unictype/pr_hex_digit.h: Likewise.
16994         * lib/unictype/pr_hyphen.h: Likewise.
16995         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16996         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16997         * lib/unictype/pr_ignorable_control.h: Likewise.
16998         * lib/unictype/pr_iso_control.h: Likewise.
16999         * lib/unictype/pr_join_control.h: Likewise.
17000         * lib/unictype/pr_left_of_pair.h: Likewise.
17001         * lib/unictype/pr_line_separator.h: Likewise.
17002         * lib/unictype/pr_logical_order_exception.h: Likewise.
17003         * lib/unictype/pr_non_break.h: Likewise.
17004         * lib/unictype/pr_not_a_character.h: Likewise.
17005         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17006         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17007         * lib/unictype/pr_other_id_start.h: Likewise.
17008         * lib/unictype/pr_other_lowercase.h: Likewise.
17009         * lib/unictype/pr_other_uppercase.h: Likewise.
17010         * lib/unictype/pr_paired_punctuation.h: Likewise.
17011         * lib/unictype/pr_paragraph_separator.h: Likewise.
17012         * lib/unictype/pr_pattern_syntax.h: Likewise.
17013         * lib/unictype/pr_pattern_white_space.h: Likewise.
17014         * lib/unictype/pr_private_use.h: Likewise.
17015         * lib/unictype/pr_quotation_mark.h: Likewise.
17016         * lib/unictype/pr_radical.h: Likewise.
17017         * lib/unictype/pr_soft_dotted.h: Likewise.
17018         * lib/unictype/pr_space.h: Likewise.
17019         * lib/unictype/pr_titlecase.h: Likewise.
17020         * lib/unictype/pr_variation_selector.h: Likewise.
17021         * lib/unictype/pr_white_space.h: Likewise.
17022         * lib/unictype/pr_zero_width.h: Likewise.
17023         * lib/unictype/sy_c_ident.h: Likewise.
17024         * lib/unictype/sy_c_whitespace.h: Likewise.
17025         * lib/unictype/sy_java_whitespace.h: Likewise.
17026         * lib/uninorm/composition-table.gperf: Likewise.
17027         * lib/uninorm/decomposition-table1.h: Likewise.
17028         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17029         LB8.
17030         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17031         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17032         * modules/unictype/*: Bump version number of expected libunistring
17033         version.
17034
17035 2011-01-09  Bruno Haible  <bruno@clisp.org>
17036
17037         Update to Unicode 5.2.0.
17038         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17039         trailing whitespace removed.
17040
17041 2011-01-09  Bruno Haible  <bruno@clisp.org>
17042
17043         New Unicode character properties, from Unicode 5.2.0.
17044         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17045         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17046         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17047         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17048         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17049         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17050         uc_is_property_cased, uc_is_property_case_ignorable,
17051         uc_is_property_changes_when_lowercased,
17052         uc_is_property_changes_when_uppercased,
17053         uc_is_property_changes_when_titlecased,
17054         uc_is_property_changes_when_casefolded,
17055         uc_is_property_changes_when_casemapped): New declarations.
17056         * lib/unictype/pr_byname.gperf: Add the new properties.
17057         * modules/unictype/property-byname (Depends-on): Depend on the new
17058         properties modules.
17059         * modules/unictype/property-all (Depends-on): Likewise.
17060         * MODULES.html.sh (Unicode string functions): Add
17061         unictype/property-case-ignorable, unictype/property-cased,
17062         unictype/property-changes-when-casefolded,
17063         unictype/property-changes-when-casemapped,
17064         unictype/property-changes-when-lowercased,
17065         unictype/property-changes-when-titlecased,
17066         unictype/property-changes-when-uppercased.
17067
17068         New module 'unictype/property-changes-when-casemapped'.
17069         * modules/unictype/property-changes-when-casemapped: New file.
17070         * lib/unictype/pr_changes_when_casemapped.c: New file.
17071         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17072         generated by gen-uni-tables.
17073         * modules/unictype/property-changes-when-casemapped-tests: New file.
17074         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17075         automatically generated by gen-uni-tables.
17076
17077         New module 'unictype/property-changes-when-casefolded'.
17078         * modules/unictype/property-changes-when-casefolded: New file.
17079         * lib/unictype/pr_changes_when_casefolded.c: New file.
17080         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17081         generated by gen-uni-tables.
17082         * modules/unictype/property-changes-when-casefolded-tests: New file.
17083         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17084         automatically generated by gen-uni-tables.
17085
17086         New module 'unictype/property-changes-when-titlecased'.
17087         * modules/unictype/property-changes-when-titlecased: New file.
17088         * lib/unictype/pr_changes_when_titlecased.c: New file.
17089         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17090         generated by gen-uni-tables.
17091         * modules/unictype/property-changes-when-titlecased-tests: New file.
17092         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17093         automatically generated by gen-uni-tables.
17094
17095         New module 'unictype/property-changes-when-uppercased'.
17096         * modules/unictype/property-changes-when-uppercased: New file.
17097         * lib/unictype/pr_changes_when_uppercased.c: New file.
17098         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17099         generated by gen-uni-tables.
17100         * modules/unictype/property-changes-when-uppercased-tests: New file.
17101         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17102         automatically generated by gen-uni-tables.
17103
17104         New module 'unictype/property-changes-when-lowercased'.
17105         * modules/unictype/property-changes-when-lowercased: New file.
17106         * lib/unictype/pr_changes_when_lowercased.c: New file.
17107         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17108         generated by gen-uni-tables.
17109         * modules/unictype/property-changes-when-lowercased-tests: New file.
17110         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17111         automatically generated by gen-uni-tables.
17112
17113         New module 'unictype/property-case-ignorable'.
17114         * modules/unictype/property-case-ignorable: New file.
17115         * lib/unictype/pr_case_ignorable.c: New file.
17116         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17117         by gen-uni-tables.
17118         * modules/unictype/property-case-ignorable-tests: New file.
17119         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17120         generated by gen-uni-tables.
17121
17122         New module 'unictype/property-cased'.
17123         * modules/unictype/property-cased: New file.
17124         * lib/unictype/pr_cased.c: New file.
17125         * lib/unictype/pr_cased.h: New file, automatically generated by
17126         gen-uni-tables.
17127         * modules/unictype/property-cased-tests: New file.
17128         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17129         gen-uni-tables.
17130
17131 2011-01-09  Bruno Haible  <bruno@clisp.org>
17132
17133         Update to Unicode 5.2.0.
17134         * lib/gen-uni-tables.c (output_predicate, output_category,
17135         output_combclass, output_bidi_category, output_decimal_digit_test,
17136         output_decimal_digit, output_digit_test, output_digit,
17137         output_numeric_test, output_numeric, output_mirror, output_scripts,
17138         output_scripts_byname, output_blocks, output_ident_category): Fix
17139         comment header.
17140         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17141         get_wbp.
17142         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17143         items.
17144         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17145         Changes_When_Lowercased, Changes_When_Uppercased,
17146         Changes_When_Titlecased, Changes_When_Casefolded,
17147         Changes_When_Casemapped.
17148         (is_property_alphabetic, is_property_default_ignorable_code_point):
17149         Update for Unicode 5.2.0.
17150         (is_property_cased, is_property_case_ignorable,
17151         is_property_changes_when_lowercased,
17152         is_property_changes_when_uppercased,
17153         is_property_changes_when_titlecased,
17154         is_property_changes_when_casefolded,
17155         is_property_changes_when_casemapped): New functions.
17156         (output_properties): Output also the properties cased, case_ignorable,
17157         changes_when_lowercased, changes_when_uppercased,
17158         changes_when_titlecased, changes_when_casefolded,
17159         changes_when_casemapped.
17160         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17161         Unicode TR#11 revision 17 -> 19.
17162         (LBP_CP): New enumeration value.
17163         (LBP_*): Adjust values accordingly.
17164         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17165         TR#14 revision 22 -> 24.
17166         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17167         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17168         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17169         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17170         is_WBP_MIDLETTER.
17171         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17172         the code1 and code2 of each composition rule.
17173         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17174         * lib/unicase/ignorable.h: Likewise.
17175         * lib/unicase/tocasefold.h: Likewise.
17176         * lib/unicase/tolower.h: Likewise.
17177         * lib/unicase/totitle.h: Likewise.
17178         * lib/unicase/toupper.h: Likewise.
17179         * lib/unictype/bidi_of.h: Likewise.
17180         * lib/unictype/blocks.h: Likewise.
17181         * lib/unictype/categ_C.h: Likewise.
17182         * lib/unictype/categ_Cf.h: Likewise.
17183         * lib/unictype/categ_Cn.h: Likewise.
17184         * lib/unictype/categ_L.h: Likewise.
17185         * lib/unictype/categ_Ll.h: Likewise.
17186         * lib/unictype/categ_Lm.h: Likewise.
17187         * lib/unictype/categ_Lo.h: Likewise.
17188         * lib/unictype/categ_Lu.h: Likewise.
17189         * lib/unictype/categ_M.h: Likewise.
17190         * lib/unictype/categ_Mc.h: Likewise.
17191         * lib/unictype/categ_Mn.h: Likewise.
17192         * lib/unictype/categ_N.h: Likewise.
17193         * lib/unictype/categ_Nd.h: Likewise.
17194         * lib/unictype/categ_Nl.h: Likewise.
17195         * lib/unictype/categ_No.h: Likewise.
17196         * lib/unictype/categ_P.h: Likewise.
17197         * lib/unictype/categ_Pd.h: Likewise.
17198         * lib/unictype/categ_Po.h: Likewise.
17199         * lib/unictype/categ_S.h: Likewise.
17200         * lib/unictype/categ_Sc.h: Likewise.
17201         * lib/unictype/categ_So.h: Likewise.
17202         * lib/unictype/categ_of.h: Likewise.
17203         * lib/unictype/combining.h: Likewise.
17204         * lib/unictype/ctype_alnum.h: Likewise.
17205         * lib/unictype/ctype_alpha.h: Likewise.
17206         * lib/unictype/ctype_graph.h: Likewise.
17207         * lib/unictype/ctype_lower.h: Likewise.
17208         * lib/unictype/ctype_print.h: Likewise.
17209         * lib/unictype/ctype_punct.h: Likewise.
17210         * lib/unictype/ctype_upper.h: Likewise.
17211         * lib/unictype/decdigit.h: Likewise.
17212         * lib/unictype/digit.h: Likewise.
17213         * lib/unictype/numeric.h: Likewise.
17214         * lib/unictype/pr_alphabetic.h: Likewise.
17215         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17216         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17218         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17219         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17220         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17221         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17222         * lib/unictype/pr_combining.h: Likewise.
17223         * lib/unictype/pr_composite.h: Likewise.
17224         * lib/unictype/pr_currency_symbol.h: Likewise.
17225         * lib/unictype/pr_dash.h: Likewise.
17226         * lib/unictype/pr_decimal_digit.h: Likewise.
17227         * lib/unictype/pr_deprecated.h: Likewise.
17228         * lib/unictype/pr_diacritic.h: Likewise.
17229         * lib/unictype/pr_extender.h: Likewise.
17230         * lib/unictype/pr_grapheme_base.h: Likewise.
17231         * lib/unictype/pr_grapheme_extend.h: Likewise.
17232         * lib/unictype/pr_grapheme_link.h: Likewise.
17233         * lib/unictype/pr_id_continue.h: Likewise.
17234         * lib/unictype/pr_id_start.h: Likewise.
17235         * lib/unictype/pr_ideographic.h: Likewise.
17236         * lib/unictype/pr_ignorable_control.h: Likewise.
17237         * lib/unictype/pr_logical_order_exception.h: Likewise.
17238         * lib/unictype/pr_lowercase.h: Likewise.
17239         * lib/unictype/pr_numeric.h: Likewise.
17240         * lib/unictype/pr_other_alphabetic.h: Likewise.
17241         * lib/unictype/pr_punctuation.h: Likewise.
17242         * lib/unictype/pr_sentence_terminal.h: Likewise.
17243         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17244         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17245         * lib/unictype/pr_unified_ideograph.h: Likewise.
17246         * lib/unictype/pr_uppercase.h: Likewise.
17247         * lib/unictype/pr_xid_continue.h: Likewise.
17248         * lib/unictype/pr_xid_start.h: Likewise.
17249         * lib/unictype/pr_zero_width.h: Likewise.
17250         * lib/unictype/scripts.h: Likewise.
17251         * lib/unictype/scripts_byname.gperf: Likewise.
17252         * lib/unictype/sy_java_ident.h: Likewise.
17253         * lib/unigbrk/gbrkprop.h: Likewise.
17254         * lib/unilbrk/lbrkprop1.h: Likewise.
17255         * lib/unilbrk/lbrkprop2.h: Likewise.
17256         * lib/unilbrk/lbrktables.h: Likewise.
17257         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17258         LBP_CP. Implement rule LB30.
17259         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17260         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17261         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17262         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17263         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17264         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17265         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17266         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17267         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17268         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17269         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17270         bits instead of 16 bits in the code1 and code2 of each composition
17271         rule.
17272         (uc_composition): Update for Unicode 5.2.0.
17273         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17274         * lib/uninorm/decomposition-table2.h: Likewise.
17275         * lib/uniwbrk/wbrkprop.h: Likewise.
17276         * tests/unicase/test-cased.c: Likewise.
17277         * tests/unicase/test-ignorable.c: Likewise.
17278         * tests/unicase/test-uc_tolower.c: Likewise.
17279         * tests/unicase/test-uc_totitle.c: Likewise.
17280         * tests/unicase/test-uc_toupper.c: Likewise.
17281         * tests/unictype/test-categ_C.c: Likewise.
17282         * tests/unictype/test-categ_Cf.c: Likewise.
17283         * tests/unictype/test-categ_Cn.c: Likewise.
17284         * tests/unictype/test-categ_L.c: Likewise.
17285         * tests/unictype/test-categ_Ll.c: Likewise.
17286         * tests/unictype/test-categ_Lm.c: Likewise.
17287         * tests/unictype/test-categ_Lo.c: Likewise.
17288         * tests/unictype/test-categ_Lu.c: Likewise.
17289         * tests/unictype/test-categ_M.c: Likewise.
17290         * tests/unictype/test-categ_Mc.c: Likewise.
17291         * tests/unictype/test-categ_Mn.c: Likewise.
17292         * tests/unictype/test-categ_N.c: Likewise.
17293         * tests/unictype/test-categ_Nd.c: Likewise.
17294         * tests/unictype/test-categ_Nl.c: Likewise.
17295         * tests/unictype/test-categ_No.c: Likewise.
17296         * tests/unictype/test-categ_P.c: Likewise.
17297         * tests/unictype/test-categ_Pd.c: Likewise.
17298         * tests/unictype/test-categ_Po.c: Likewise.
17299         * tests/unictype/test-categ_S.c: Likewise.
17300         * tests/unictype/test-categ_Sc.c: Likewise.
17301         * tests/unictype/test-categ_So.c: Likewise.
17302         * tests/unictype/test-ctype_alnum.c: Likewise.
17303         * tests/unictype/test-ctype_alpha.c: Likewise.
17304         * tests/unictype/test-ctype_graph.c: Likewise.
17305         * tests/unictype/test-ctype_lower.c: Likewise.
17306         * tests/unictype/test-ctype_print.c: Likewise.
17307         * tests/unictype/test-ctype_punct.c: Likewise.
17308         * tests/unictype/test-ctype_upper.c: Likewise.
17309         * tests/unictype/test-decdigit.h: Likewise.
17310         * tests/unictype/test-digit.h: Likewise.
17311         * tests/unictype/test-numeric.h: Likewise.
17312         * tests/unictype/test-pr_alphabetic.c: Likewise.
17313         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17314         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17315         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17316         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17317         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17318         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17319         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17320         * tests/unictype/test-pr_combining.c: Likewise.
17321         * tests/unictype/test-pr_composite.c: Likewise.
17322         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17323         * tests/unictype/test-pr_dash.c: Likewise.
17324         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17325         * tests/unictype/test-pr_deprecated.c: Likewise.
17326         * tests/unictype/test-pr_diacritic.c: Likewise.
17327         * tests/unictype/test-pr_extender.c: Likewise.
17328         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17329         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17330         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17331         * tests/unictype/test-pr_id_continue.c: Likewise.
17332         * tests/unictype/test-pr_id_start.c: Likewise.
17333         * tests/unictype/test-pr_ideographic.c: Likewise.
17334         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17335         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17336         * tests/unictype/test-pr_lowercase.c: Likewise.
17337         * tests/unictype/test-pr_numeric.c: Likewise.
17338         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17339         * tests/unictype/test-pr_punctuation.c: Likewise.
17340         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17341         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17342         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17343         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17344         * tests/unictype/test-pr_uppercase.c: Likewise.
17345         * tests/unictype/test-pr_xid_continue.c: Likewise.
17346         * tests/unictype/test-pr_xid_start.c: Likewise.
17347         * tests/unictype/test-pr_zero_width.c: Likewise.
17348         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17349         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17350         changed behaviour: line breaking is now disallowed between a letter
17351         or '=' and '('.
17352         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17353         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17354         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17355         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17356         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17357         lib/uniwidth/width.c.
17358         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17359         without comments, but with the original copyright notice.
17360         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17361         changes.
17362         * lib/unictype/categ_Cc.h: Likewise.
17363         * lib/unictype/categ_Co.h: Likewise.
17364         * lib/unictype/categ_Cs.h: Likewise.
17365         * lib/unictype/categ_Lt.h: Likewise.
17366         * lib/unictype/categ_Me.h: Likewise.
17367         * lib/unictype/categ_Pc.h: Likewise.
17368         * lib/unictype/categ_Pe.h: Likewise.
17369         * lib/unictype/categ_Pf.h: Likewise.
17370         * lib/unictype/categ_Pi.h: Likewise.
17371         * lib/unictype/categ_Ps.h: Likewise.
17372         * lib/unictype/categ_Sk.h: Likewise.
17373         * lib/unictype/categ_Sm.h: Likewise.
17374         * lib/unictype/categ_Z.h: Likewise.
17375         * lib/unictype/categ_Zl.h: Likewise.
17376         * lib/unictype/categ_Zp.h: Likewise.
17377         * lib/unictype/categ_Zs.h: Likewise.
17378         * lib/unictype/ctype_blank.h: Likewise.
17379         * lib/unictype/ctype_cntrl.h: Likewise.
17380         * lib/unictype/ctype_digit.h: Likewise.
17381         * lib/unictype/ctype_space.h: Likewise.
17382         * lib/unictype/ctype_xdigit.h: Likewise.
17383         * lib/unictype/mirror.h: Likewise.
17384         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17385         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17386         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17387         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17388         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17389         * lib/unictype/pr_bidi_control.h: Likewise.
17390         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17391         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17392         * lib/unictype/pr_bidi_pdf.h: Likewise.
17393         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17394         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17395         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17396         * lib/unictype/pr_format_control.h: Likewise.
17397         * lib/unictype/pr_hex_digit.h: Likewise.
17398         * lib/unictype/pr_hyphen.h: Likewise.
17399         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17400         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17401         * lib/unictype/pr_iso_control.h: Likewise.
17402         * lib/unictype/pr_join_control.h: Likewise.
17403         * lib/unictype/pr_left_of_pair.h: Likewise.
17404         * lib/unictype/pr_line_separator.h: Likewise.
17405         * lib/unictype/pr_math.h: Likewise.
17406         * lib/unictype/pr_non_break.h: Likewise.
17407         * lib/unictype/pr_not_a_character.h: Likewise.
17408         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17409         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17410         * lib/unictype/pr_other_id_continue.h: Likewise.
17411         * lib/unictype/pr_other_id_start.h: Likewise.
17412         * lib/unictype/pr_other_lowercase.h: Likewise.
17413         * lib/unictype/pr_other_math.h: Likewise.
17414         * lib/unictype/pr_other_uppercase.h: Likewise.
17415         * lib/unictype/pr_paired_punctuation.h: Likewise.
17416         * lib/unictype/pr_paragraph_separator.h: Likewise.
17417         * lib/unictype/pr_pattern_syntax.h: Likewise.
17418         * lib/unictype/pr_pattern_white_space.h: Likewise.
17419         * lib/unictype/pr_private_use.h: Likewise.
17420         * lib/unictype/pr_quotation_mark.h: Likewise.
17421         * lib/unictype/pr_radical.h: Likewise.
17422         * lib/unictype/pr_soft_dotted.h: Likewise.
17423         * lib/unictype/pr_space.h: Likewise.
17424         * lib/unictype/pr_titlecase.h: Likewise.
17425         * lib/unictype/pr_variation_selector.h: Likewise.
17426         * lib/unictype/pr_white_space.h: Likewise.
17427         * lib/unictype/sy_c_ident.h: Likewise.
17428         * lib/unictype/sy_c_whitespace.h: Likewise.
17429         * lib/unictype/sy_java_whitespace.h: Likewise.
17430         * modules/uni*/*: Bump version number of expected libunistring version.
17431         Reported by Simon Josefsson.
17432
17433 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17434
17435         useless-if-before-free: fix typo in --help and make the internal,
17436         automatic version date update process work once again.
17437         --help output contained a NUL character instead of the
17438         backslash-zero that was intended.  Also, the "must lie within
17439         the first 8 lines" line is on line 9, and hence not getting
17440         automatically updated.
17441         * build-aux/useless-if-before-free: Fix the former by adding a
17442         backslash, and the latter by condensing the three lines of what-it-does
17443         to a single line, leaving one line of slack for the future.
17444
17445 2011-01-09  Bruno Haible  <bruno@clisp.org>
17446
17447         uniwidth/width: Fix width of U+1D173..U+1D17A.
17448         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17449         symbolic_width, output_width_property_test): New functions.
17450         (main): Invoke output_nonspacing_property, output_width_property_test.
17451         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17452         U+1D173..U+1D17A.
17453         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17454         1.
17455         * modules/uniwidth/*: Bump version number of expected libunistring
17456         version.
17457         * modules/unilbrk/*: Likewise.
17458
17459 2011-01-08  Bruno Haible  <bruno@clisp.org>
17460
17461         uninorm tests: Preserve copyright of Unicode data file.
17462         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17463         Mention modifications.
17464
17465 2011-01-08  Bruno Haible  <bruno@clisp.org>
17466
17467         gen-uni-tables: Prepare for Unicode 5.2.0.
17468         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17469         (debug_output_lbp, output_lbp): Update.
17470
17471 2011-01-08  Bruno Haible  <bruno@clisp.org>
17472
17473         unilbrk: Clarify gen-uni-tables.c code.
17474         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17475         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17476         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17477
17478 2011-01-07  Bruno Haible  <bruno@clisp.org>
17479
17480         strtod: Restore errno when successfully parsing Infinity or NaN.
17481         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17482         restore the original errno.
17483
17484 2011-01-07  Bruno Haible  <bruno@clisp.org>
17485
17486         remove test: Avoid failure on HP-UX 11.
17487         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17488
17489 2011-01-07  Bruno Haible  <bruno@clisp.org>
17490
17491         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17492         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17493         error code.
17494
17495 2011-01-07  Pádraig Brady <P@draigBrady.com>
17496
17497         ignore-value: fixup comments, and add Eric Blake
17498         as an author since he rewrote the macros.
17499         * lib/ignore-value.h (ignore_value):  State that
17500         we now support aggregates.  Also specify exactly
17501         when the GCC warn_unused_result feature was added.
17502
17503 2011-01-06  Eric Blake  <eblake@redhat.com>
17504
17505         ignore-value: support aggregate types
17506         * lib/ignore-value.h (ignore_value): Provide separate gcc
17507         definition.
17508         * modules/ignore-value-tests: New test module.
17509         * tests/test-ignore-value.c: New test.
17510
17511         maint.mk: improve sc_prohibit_strcmp regex
17512         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17513         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17514         definition of STRNEQ.
17515
17516         signal: work around Haiku issue with SIGBUS
17517         * lib/siglist.h: Add comment.
17518         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17519         strsignal's favoring of SIGSEGV.
17520         * tests/test-signal.c (main): Avoid test failure.
17521         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17522         Reported by Scott McCreary.
17523
17524         maint.mk: add pre-release check to ensure submodule commits are public
17525         * top/maint.mk (public-submodule-commit): New rule.
17526         (submodule-checks): New variable.
17527         (alpha beta stable): Depend on the variable.
17528
17529 2011-01-05  Pádraig Brady <P@draigBrady.com>
17530         and Jim Meyering  <meyering@redhat.com>
17531
17532         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17533         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17534         (ATTRIBUTE_DEPRECATED): Define.
17535         (_ignore_case): New function.
17536         (ignore_value): New macro, to replace the old function.
17537         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17538         * modules/ignore-value (Depends-on): Add stdint.
17539
17540 2011-01-04  Eric Blake  <eblake@redhat.com>
17541
17542         doc: regenerate INSTALL
17543         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17544         @firstparagraphindent support, now that autoconf dropped it.
17545         (INSTALL_PRELUDE): Reinstate old macro.
17546         * doc/install.texi: Resync from autoconf.
17547         * doc/INSTALL: Reflect recent autoconf update.
17548         * doc/INSTALL.ISO: Likewise.
17549         * doc/INSTALL.UTF-8: Likewise.
17550         Reported by Karl Berry.
17551
17552 2011-01-04  Bruce Korb  <address@hidden>
17553
17554         git-version-gen: avoid a sub-shell
17555         * build-aux/git-version-gen: Redirect stderr in `...` via
17556         "exec 2>...", rather than via an added sub-shell.
17557
17558 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17559
17560         git-version-gen: use (...) rather than sh -c '...'
17561         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17562         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17563
17564 2011-01-03  Jim Meyering  <meyering@redhat.com>
17565
17566         git-version-gen: convert leading TABs to spaces
17567         * build-aux/git-version-gen: Expand leading TABs.
17568
17569         git-version-gen: handle failed "git rev-list"
17570         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17571         from git and proceeding as if it had succeeded but printed no SHA1
17572         checksums, suppress the diagnostic and handle the failure.
17573         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17574
17575         git-version-gen: include command name in one more diagnostic
17576         * build-aux/git-version-gen: When the required .tarball-version file
17577         was missing or unreadable, you might see the diagnostic from "cat",
17578         but no trace of the name of the invoking script.  Now, you still see
17579         the diagnostic from cat, but also get one from "git-version-gen: ".
17580         Inspired by a patch from Bruce Korb.
17581
17582         update-copyright: adjust test to match changed code
17583         * tests/test-update-copyright.sh: Change test's expected output
17584         to match new actual output.
17585
17586 2011-01-02  Bruno Haible  <bruno@clisp.org>
17587
17588         getlogin_r: Avoid test failure on HP-UX 11.
17589         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17590         ERANGE when the second argument is zero.
17591         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17592         portability problem.
17593
17594 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17595
17596         * build-aux/update-copyright: doc Simon's changes
17597
17598 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17599
17600         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17601         environment variable.
17602
17603 2011-01-02  Bruno Haible  <bruno@clisp.org>
17604
17605         unigbrk: Avoid gcc warnings.
17606         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17607         unused variable.
17608         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17609         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17610         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17611         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17612         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17613         Change type of first argument to 'const char *'.
17614         (main): Remove unused variable.
17615         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17616         type of first argument to 'const char *'.
17617         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17618         Likewise.
17619         (main): Change type of variable 's'.
17620         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17621         to 'int'.
17622
17623 2011-01-02  Bruno Haible  <bruno@clisp.org>
17624
17625         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17626         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17627         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17628         bug.
17629         * lib/pwrite.c: Undo 2010-12-31 patch.
17630         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17631
17632 2011-01-02  Bruno Haible  <bruno@clisp.org>
17633
17634         pread: Fix test whether it works.
17635         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17636
17637 2011-01-02  Bruno Haible  <bruno@clisp.org>
17638
17639         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17640         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17641         ends in "6". Don't require a specific month name. Try also the locale
17642         names found on HP-UX 11 and Solaris 7.
17643
17644 2011-01-02  Bruno Haible  <bruno@clisp.org>
17645
17646         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17647         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17648         C linkage.
17649         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17650
17651 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17652
17653         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17654         for consistency, since the "cluster" term is not used elsewhere.
17655         * lib/unigbrk.in.h: Update name.
17656         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17657         * lib/unigbrk/u16-grapheme-next.c: Update name.
17658         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17659         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17660         * lib/unigbrk/u32-grapheme-next.c: Update name.
17661         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17662         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17663         * lib/unigbrk/u8-grapheme-next.c: Update name.
17664         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17665         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17666         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17667         Suggested by Bruno Haible.
17668
17669 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17670
17671         Remove module 'u8-grapheme-len' as too redundant with
17672         'u8-grapheme-next'.
17673         * modules/unigbrk/u8-grapheme-len: Delete file.
17674         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17675         * lib/unigbrk.in.h: Remove prototype for deleted function.
17676         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17677         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17678
17679         Remove module 'u16-grapheme-len' as too redundant with
17680         'u16-grapheme-next'.
17681         * modules/unigbrk/u16-grapheme-len: Delete file.
17682         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17683         * lib/unigbrk.in.h: Remove prototype for deleted function.
17684         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17685         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17686
17687         Remove module 'u32-grapheme-len' as too redundant with
17688         'u32-grapheme-next'.
17689         * modules/unigbrk/u32-grapheme-len: Delete file.
17690         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17691         * lib/unigbrk.in.h: Remove prototype for deleted function.
17692         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17693         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17694
17695         Suggested by Bruno Haible.
17696
17697 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17698
17699         * unigbrk.in.h: Fix typo: "ben" => "been".
17700         Reported by Bruno Haible.
17701
17702 2011-01-01  Jim Meyering  <meyering@redhat.com>
17703
17704         maint: update almost all copyright ranges to include 2011
17705         Run the new "make update-copyright" rule.
17706
17707 2011-01-01  Jim Meyering  <meyering@redhat.com>
17708
17709         maint: update-copyright: exempt doc/INSTALL*
17710         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17711         since they are generated.  Suggested by Bruno Haible.
17712
17713 2011-01-01  Jim Meyering  <meyering@redhat.com>
17714
17715         maint: refine the update-copyright rule
17716         * Makefile (update-copyright): Also exclude any file that includes
17717         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17718         code that merely generates the comment.
17719
17720 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17721
17722         New module 'u8-grapheme-len'.
17723         * modules/unigbrk/u8-grapheme-len: New file.
17724         * modules/unigbrk/u8-grapheme-len-tests: New file.
17725         * lib/unigbrk.in.h: Add prototype for new function.
17726         * lib/unigbrk/u8-grapheme-len.c: New file.
17727         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17728
17729         New module 'u16-grapheme-len'.
17730         * modules/unigbrk/u16-grapheme-len: New file.
17731         * modules/unigbrk/u16-grapheme-len-tests: New file.
17732         * lib/unigbrk.in.h: Add prototype for new function.
17733         * lib/unigbrk/u16-grapheme-len.c: New file.
17734         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17735
17736         New module 'u32-grapheme-len'.
17737         * modules/unigbrk/u32-grapheme-len: New file.
17738         * modules/unigbrk/u32-grapheme-len-tests: New file.
17739         * lib/unigbrk.in.h: Add prototype for new function.
17740         * lib/unigbrk/u32-grapheme-len.c: New file.
17741         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17742
17743         New module 'u8-grapheme-next'.
17744         * modules/unigbrk/u8-grapheme-next: New file.
17745         * modules/unigbrk/u8-grapheme-next-tests: New file.
17746         * lib/unigbrk.in.h: Add prototype for new function.
17747         * lib/unigbrk/u8-grapheme-next.c: New file.
17748         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17749
17750         New module 'u16-grapheme-next'.
17751         * modules/unigbrk/u16-grapheme-next: New file.
17752         * modules/unigbrk/u16-grapheme-next-tests: New file.
17753         * lib/unigbrk.in.h: Add prototype for new function.
17754         * lib/unigbrk/u16-grapheme-next.c: New file.
17755         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17756
17757         New module 'u32-grapheme-next'.
17758         * modules/unigbrk/u32-grapheme-next: New file.
17759         * modules/unigbrk/u32-grapheme-next-tests: New file.
17760         * lib/unigbrk.in.h: Add prototype for new function.
17761         * lib/unigbrk/u32-grapheme-next.c: New file.
17762         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17763
17764         New module 'u8-grapheme-prev'.
17765         * modules/unigbrk/u8-grapheme-prev: New file.
17766         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17767         * lib/unigbrk.in.h: Add prototype for new function.
17768         * lib/unigbrk/u8-grapheme-prev.c: New file.
17769         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17770
17771         New module 'u16-grapheme-prev'.
17772         * modules/unigbrk/u16-grapheme-prev: New file.
17773         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17774         * lib/unigbrk.in.h: Add prototype for new function.
17775         * lib/unigbrk/u16-grapheme-prev.c: New file.
17776         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17777
17778         New module 'u32-grapheme-prev'.
17779         * modules/unigbrk/u32-grapheme-prev: New file.
17780         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17781         * lib/unigbrk.in.h: Add prototype for new function.
17782         * lib/unigbrk/u32-grapheme-prev.c: New file.
17783         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17784
17785         New module 'u8-grapheme-breaks'.
17786         * modules/unigbrk/u8-grapheme-breaks: New file.
17787         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17788         * lib/unigbrk.in.h: Add prototype for new function.
17789         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17790         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17791
17792         New module 'u16-grapheme-breaks'.
17793         * modules/unigbrk/u16-grapheme-breaks: New file.
17794         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17795         * lib/unigbrk.in.h: Add prototype for new function.
17796         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17797         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17798
17799         New module 'u32-grapheme-breaks'.
17800         * modules/unigbrk/u32-grapheme-breaks: New file.
17801         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17802         * lib/unigbrk.in.h: Add prototype for new function.
17803         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17804         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17805
17806         New module 'ulc-grapheme-breaks'.
17807         * modules/unigbrk/ulc-grapheme-breaks: New file.
17808         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17809         * m4/locale-ar.m4: New file.
17810         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17811         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17812         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17813
17814 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17815
17816         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17817         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17818         modified how this file was generated before I initially submitted
17819         the module, but failed to regenerate it.  This meant that several
17820         of the level2 entries were wrong.
17821         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17822         Remove the division-by-2 that is folded into the table now that
17823         gbrkprop.h has been regenerated properly.  Now -1 entries are
17824         handled correctly.
17825
17826         New module 'unigbrk/uc-gbrk-prop-tests'.
17827         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17828         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17829         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17830         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17831
17832 2011-01-01  Bruno Haible  <bruno@clisp.org>
17833
17834         Avoid use of hexadecimal escapes.
17835         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17836         instead of hexadecimal escapes.
17837
17838 2011-01-01  Jim Meyering  <meyering@redhat.com>
17839
17840         maint: new rule to update copyright year ranges
17841         * Makefile (update-copyright): New rule.
17842
17843         maint: indent with TABs in Makefile
17844         * Makefile: Expand leading sequences of spaces to TABs
17845
17846         version-etc: update the copyright year it reports
17847         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17848
17849 2010-12-31  Bruno Haible  <bruno@clisp.org>
17850
17851         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17852         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17853         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17854         zero.
17855
17856 2010-12-31  Bruno Haible  <bruno@clisp.org>
17857
17858         pwrite: Work around HP-UX 11.11 bug.
17859         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17860         works and set REPLACE_PWRITE if not.
17861         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17862         function.
17863         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17864
17865 2010-12-31  Bruno Haible  <bruno@clisp.org>
17866
17867         pread: Work around HP-UX 11 bugs.
17868         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17869         and set REPLACE_PREAD if not.
17870         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17871
17872 2010-12-31  Eric Blake  <eblake@redhat.com>
17873
17874         nl_langinfo: fix YESEXPR on Irix 6.5
17875         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17876         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17877         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17878         it.
17879
17880 2010-12-31  Bruno Haible  <bruno@clisp.org>
17881
17882         iconv: Document HP-UX 11 bug.
17883         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17884
17885 2010-12-31  Bruno Haible  <bruno@clisp.org>
17886
17887         ldexpl: Fix link error on HP-UX 11.
17888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17889         LDEXPL_LIBM, using $ISNANL_LIBM.
17890
17891 2010-12-31  Eric Blake  <eblake@redhat.com>
17892
17893         ftello: avoid compilation failure with SunStudio c89
17894         * lib/ftello.c (ftello): Use lseek, not llseek.
17895
17896         tests: avoid failing coreutils tests on cygwin
17897         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17898         (create_exe_shims_): Return 0 when skipping.
17899
17900 2010-12-31  Bruno Haible  <bruno@clisp.org>
17901
17902         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17903         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17904
17905 2010-12-31  Bruno Haible  <bruno@clisp.org>
17906
17907         waitpid: Fix link error in C++ mode.
17908         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17909
17910 2010-12-31  Bruno Haible  <bruno@clisp.org>
17911
17912         isnan: Use GCC built-ins when possible.
17913         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17914         __builtin_isnan.
17915         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17916         (isnan): Define using GCC built-ins for GCC >= 4.0.
17917
17918 2010-12-31  Bruno Haible  <bruno@clisp.org>
17919
17920         isnand: Fix mistake.
17921         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17922         __builtin_isnand.
17923
17924 2010-12-31  Bruno Haible  <bruno@clisp.org>
17925
17926         open: Avoid C++ error on HP-UX 11.
17927         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17928
17929 2010-12-31  Bruno Haible  <bruno@clisp.org>
17930
17931         time_r: Add missing declarations on HP-UX 11.
17932         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17933         instead of HAVE_LOCALTIME_R.
17934         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17935         HAVE_LOCALTIME_R always.
17936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17937         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17938         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17939         HAVE_LOCALTIME_R.
17940         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17941         * doc/posix-functions/localtime_r.texi: Likewise.
17942
17943 2010-12-29  Eric Blake  <eblake@redhat.com>
17944
17945         mountlist: tweak previous commit
17946         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17947         Reported by Paul Eggert.
17948
17949         mountlist: fix local drive detection on cygwin
17950         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17951         that works for cygwin.
17952
17953 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         ftoastr, snprintf: ftoastr + snprintf module
17956         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17957         since the snprintf module now should be good enough here.
17958         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17959         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17960         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17961         GNULIB_SNPRINTF only for the test directory, and the latter
17962         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17963         seems to suffice by itself.
17964
17965 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17966
17967         alloca: one step towards thread-safety
17968         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17969         need for a static variable.  All callers changed.  This does not
17970         make the alloca replacement thread-safe, but it's one step.
17971
17972         tests: minor indenting change
17973         * tests/init.sh: Sync from coreutils housekeeping patch
17974         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17975         to keep lines within 80 columns.
17976
17977 2010-12-28  Jim Meyering  <meyering@redhat.com>
17978
17979         regex: don't infloop on persistent failing calloc
17980         * lib/regexec.c (build_trtable): Return failure indication upon
17981         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17982         In glibc, this was fixed for version 2.13:
17983         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17984
17985 2010-12-28  Bruno Haible  <bruno@clisp.org>
17986             Paul Eggert <eggert@cs.ucla.edu>
17987
17988         linkat: Make implementation robust against system behaviour variations.
17989         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17990         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17991         way, and to -2 if it needs a generic runtime test.
17992         * lib/linkat.c (solaris_optimized_link_immediate,
17993         solaris_optimized_link_follow): New functions.
17994         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17995         (check_same_link): Use it.
17996
17997 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17998
17999         New module 'unigbrk/base'.
18000         * modules/unigbrk/base: New file.
18001         * lib/unigbrk.in.h: New file.
18002
18003         New module 'unigbrk/uc-gbrk-prop'.
18004         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18005         * modules/unigbrk/uc-gbrk-prop: New file.
18006         * lib/unigbrk/gbrkprop.h: New file.
18007         * lib/unigbrk/uc-gbrk-prop.c: New file.
18008
18009         New module 'unigbrk/uc-is-grapheme-break'.
18010         * modules/unigbrk/uc-is-grapheme-break: New file.
18011         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18012         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18013         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18014         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18015         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18016
18017         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18018
18019 2010-12-27  Bruno Haible  <bruno@clisp.org>
18020
18021         linkat test: Avoid failure on Solaris 11 2010-11.
18022         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18023
18024 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18025
18026         utimens: work around glibc rounding bug on more platforms
18027         * lib/utimens.c (fdutimens): Work around rounding bug even if
18028         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18030
18031 2010-12-27  Bruno Haible  <bruno@clisp.org>
18032
18033         select tests: Improve comments.
18034         * tests/test-select.c (do_select): Add comments.
18035
18036 2010-12-27  Bruno Haible  <bruno@clisp.org>
18037
18038         select tests: Safer way of handling timeout.
18039         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18040         at every invocation.
18041
18042 2010-12-27  Bruno Haible  <bruno@clisp.org>
18043
18044         select tests: Use 'bool' where appropriate.
18045         * tests/test-select.c (connect_to_socket): Change argument type to
18046         'bool'.
18047
18048 2010-12-27  Bruno Haible  <bruno@clisp.org>
18049
18050         select tests: Use existing modules.
18051         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18052         (configure.ac): Don't test for unistd.h.
18053         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18054         declared in <unistd.h>.
18055
18056 2010-12-27  Bruno Haible  <bruno@clisp.org>
18057
18058         mbrtowc: Work around a Solaris 7 bug.
18059         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18060         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18061         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18062         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18063         MBRTOWC_NULL_ARG1_BUG.
18064         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18065         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18066         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18067         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18068
18069 2010-12-27  Jim Meyering  <meyering@redhat.com>
18070
18071         read-file.c: tweak syntax
18072         * lib/read-file.c (fread_file): Remove space after "*" in function
18073         definitions.
18074
18075 2010-12-27  Bruno Haible  <bruno@clisp.org>
18076
18077         times test: Avoid gcc warnings on OSF/1.
18078         * tests/test-times.c (main): Cast printf arguments from clock_t to
18079         'long int'.
18080
18081 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18082
18083         utimens: work around glibc rounding bug on older Linux kernels
18084         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18085         on Linux with a glibc whose utimes might not work, then work
18086         around a longstanding glibc bug involving rounding rather than
18087         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18089
18090 2010-12-26  Bruno Haible  <bruno@clisp.org>
18091
18092         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18093         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18094         _GL_CXXALIAS_SYS.
18095         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18096
18097 2010-12-26  Bruno Haible  <bruno@clisp.org>
18098
18099         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18100         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18101         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18102         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18103         looking for the declaration.
18104         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18105         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18106         problem.
18107         * doc/posix-functions/inet_pton.texi: Likewise.
18108
18109 2010-12-26  Bruno Haible  <bruno@clisp.org>
18110
18111         arpa_inet: Use the common idioms with C++ support.
18112         * lib/arpa_inet.in.h: Include c++defs.h.
18113         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18114         support.
18115         * modules/arpa_inet (Depends-on): Add c++defs.
18116         (Makefile.am): Substitute the contents of c++defs.h.
18117         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18118         * modules/arpa_inet-c++-tests: New file.
18119         * tests/test-arpa_inet-c++.cc: New file.
18120
18121 2010-12-25  Bruno Haible  <bruno@clisp.org>
18122
18123         Fix more C++ link errors on Solaris 8.
18124         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18125         $(LIB_EACCESS).
18126         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18127         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18128         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18129         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18130         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18131
18132 2010-12-25  Bruno Haible  <bruno@clisp.org>
18133
18134         printf-posix: Fix link error when a non-GCC compiler is used.
18135         * lib/stdio.in.h (printf): When not using GCC, override printf
18136         correctly.
18137         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18138
18139 2010-12-25  Bruno Haible  <bruno@clisp.org>
18140
18141         strerror_r-posix: Update doc.
18142         * doc/posix-functions/strerror_r.texi: Update doc about the return
18143         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18144
18145 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         utimens: simplify the logic of the previous change
18148         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18149         This should not affect whether the test succeeds or fails.
18150
18151         utimens: configure better on hosts with NFS clock skew
18152         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18153         uses the clock of the local host.  It might use the clock of the
18154         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18156
18157 2010-12-25  Bruno Haible  <bruno@clisp.org>
18158
18159         ptsname test: Avoid failure on Solaris.
18160         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18161         open a pseudo-terminal; don't use BSD-style ptys.
18162         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18163
18164 2010-12-25  Bruno Haible  <bruno@clisp.org>
18165
18166         ptsname: Avoid ERANGE failure on some systems.
18167         * lib/ptsname.c (buffer): Increase size.
18168
18169 2010-12-25  Bruno Haible  <bruno@clisp.org>
18170
18171         rename, renameat: Avoid test failures at NFS mounted locations.
18172         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18173         so that subsequent mkdir calls succeed.
18174
18175 2010-12-25  Bruno Haible  <bruno@clisp.org>
18176
18177         iswblank: Fix C++ link error on Solaris 8.
18178         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18179         _GL_FUNCDECL_SYS.
18180
18181 2010-12-25  Bruno Haible  <bruno@clisp.org>
18182
18183         unistd: Fix C++ link error on Solaris 8.
18184         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18185
18186 2010-12-25  Bruno Haible  <bruno@clisp.org>
18187
18188         readlink doc: Mention an old glibc bug.
18189         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18190
18191 2010-12-25  Bruno Haible  <bruno@clisp.org>
18192
18193         fcntl-h: Fix for use of C++ on glibc systems.
18194         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18195         also on glibc systems in C++ mode.
18196         Reported by Gary V. Vaughan <gary@gnu.org>.
18197
18198 2010-12-25  Bruno Haible  <bruno@clisp.org>
18199
18200         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18201         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18202
18203 2010-12-25  Bruno Haible  <bruno@clisp.org>
18204
18205         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18206         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18207         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18208         test whether truncl works according to ISO C 99 with IEC 60559.
18209         * m4/truncl-ieee.m4: New file.
18210         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18211         m4/signbit.m4.
18212         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18213
18214 2010-12-25  Bruno Haible  <bruno@clisp.org>
18215
18216         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18217         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18218         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18219         test whether ceill works according to ISO C 99 with IEC 60559.
18220         * m4/ceill-ieee.m4: New file.
18221         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18222         m4/signbit.m4.
18223         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18224
18225 2010-12-25  Bruno Haible  <bruno@clisp.org>
18226
18227         Ensure all prerequisites of <wchar.h> are included.
18228         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18229         before <wchar.h>.
18230         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18231         gl_MBRLEN_NUL_RETVAL): Likewise.
18232         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18233         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18234         AC_FUNC_MBRTOWC): Likewise.
18235         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18236         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18237         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18238         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18239         Likewise.
18240         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18241         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18242         (gl_WCHAR_H): Improve comments.
18243         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18244
18245 2010-12-25  Bruno Haible  <bruno@clisp.org>
18246
18247         strtok_r: Fix C syntax error in autoconf macro.
18248         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18249         characters in test program.
18250
18251 2010-12-24  Bruno Haible  <bruno@clisp.org>
18252
18253         ceil, trunc, round: Fix gcc warnings.
18254         * lib/ceil.c (MIN): Undefine before redefining.
18255         * lib/trunc.c (MIN): Likewise.
18256         * lib/round.c (MIN): Likewise.
18257         Include <math.h> first.
18258
18259 2010-12-24  Bruno Haible  <bruno@clisp.org>
18260
18261         select tests: Avoid failures on OSF/1 5.1.
18262         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18263         failure of closing the last socket; it may fail with ECONNRESET.
18264
18265 2010-12-24  Eric Blake  <eblake@redhat.com>
18266
18267         stdint: avoid HP-UX 10.20 preprocessor bug
18268         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18269         than #if.
18270         * tests/test-floor2.c (main): Likewise.
18271         Reported by Peter O'Gorman.
18272
18273         pipe: make obsoletion transition easier
18274         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18275         * modules/pipe (Files): Include revived file.
18276         (Include): Drop reference, to mirror getdate's behavior.
18277
18278 2010-12-24  Bruno Haible  <bruno@clisp.org>
18279
18280         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18281         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18282         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18284
18285 2010-12-24  Bruno Haible  <bruno@clisp.org>
18286
18287         gethostname: Ensure declaration on NonStop Kernel.
18288         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18289         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18290
18291 2010-12-24  Bruno Haible  <bruno@clisp.org>
18292
18293         sys_select: Ensure all necessary types on NonStop Kernel.
18294         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18295         include <sys/time.h>.
18296         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18297         NonStop Kernel.
18298         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18299
18300 2010-12-24  Bruno Haible  <bruno@clisp.org>
18301
18302         sys_select: Remove unneeded include.
18303         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18304         have <sys/select.h>.
18305
18306 2010-12-24  Bruno Haible  <bruno@clisp.org>
18307
18308         gethostname: Provide a fallback for HOST_NAME_MAX.
18309         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18310         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18311         instead.
18312         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18313
18314 2010-12-24  Bruno Haible  <bruno@clisp.org>
18315
18316         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18317         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18318         (SA_RESTART): Likewise.
18319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18320
18321 2010-12-24  Bruno Haible  <bruno@clisp.org>
18322
18323         signal: Define NSIG.
18324         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18325         * tests/test-signal.c (nsig): New variable.
18326         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18327
18328 2010-12-24  Bruno Haible  <bruno@clisp.org>
18329
18330         rename, renameat: Avoid test failures on OSF/1 5.1.
18331         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18332         alternative error codes.
18333         * tests/test-renameat.c (main): Likewise.
18334
18335 2010-12-24  Bruno Haible  <bruno@clisp.org>
18336
18337         *printf: Detect large precisions bug on Solaris 10/SPARC.
18338         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18339         by Paul Eggert.
18340         * tests/test-snprintf-posix.h (test_function): Add this test code here
18341         too.
18342         * tests/test-sprintf-posix.h (test_function): Likewise.
18343         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18344         * tests/test-vasprintf-posix.c (test_function): Likewise.
18345         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18346         around by gnulib.
18347         * doc/posix-functions/printf.texi: Likewise.
18348         * doc/posix-functions/snprintf.texi: Likewise.
18349         * doc/posix-functions/sprintf.texi: Likewise.
18350         * doc/posix-functions/vfprintf.texi: Likewise.
18351         * doc/posix-functions/vprintf.texi: Likewise.
18352         * doc/posix-functions/vsnprintf.texi: Likewise.
18353         * doc/posix-functions/vsprintf.texi: Likewise.
18354         * doc/posix-functions/dprintf.texi: Undo last commit.
18355         * doc/posix-functions/vdprintf.texi: Likewise.
18356
18357 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18358
18359         tests: port test-fdutimensat.c to Solaris 8
18360         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18361         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18362         On Solaris 8, it fails with errno == ENOSYS, because there is no
18363         futimens (so it can't use the fd), and there is no lutimens (so it
18364         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18365
18366         vsnprintf: make more consistent with snprintf; doc fixes
18367
18368         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18369         the byte count return problem was promoted from the snprintf-posix
18370         to the snprintf module.
18371         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18372         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18373         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18374         * tests/test-snprintf.c (main): Check the byte count returned.
18375         * tests/test-vsnprintf.c (main): Likewise.
18376
18377 2010-12-23  Eric Blake  <eblake@redhat.com>
18378
18379         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18380         * modules/sigpipe (License): Relax license.
18381
18382 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         doc: document Solaris printf bug with large float precisions
18385         * doc/posix-functions/dprintf.texi (dprintf):
18386         * doc/posix-functions/fprintf.texi (fprintf):
18387         * doc/posix-functions/printf.texi (printf):
18388         * doc/posix-functions/snprintf.texi (snprintf):
18389         * doc/posix-functions/sprintf.texi (sprintf):
18390         * doc/posix-functions/vdprintf.texi (vdprintf):
18391         * doc/posix-functions/vfprintf.texi (vfprintf):
18392         * doc/posix-functions/vprintf.texi (vprintf):
18393         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18394         * doc/posix-functions/vsprintf.texi (vsprintf):
18395         Mention that these functions mishandle large floating point
18396         precisions on Solaris 10.  The same bug is also present in Solaris
18397         8, and I assume earlier.  This causes "cd gnulib-tests; make
18398         check" to fail on Solaris 8 (and I assume, later) when building
18399         the latest coreutils, in test-vasprintf-posix's call to
18400         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18401         the wide flavors (e.g., wprintf) so this patch just updates the
18402         documentation for the narrow ones.
18403
18404         test-posixtm.c: add two tests
18405         * tests/test-posixtm.c: Add two tests, to highlight the
18406         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18407         around this bug; this is merely to document it.
18408
18409 2010-12-22  Bruno Haible  <bruno@clisp.org>
18410
18411         getlogin_r: Work around portability problem on OSF/1.
18412         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18413         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18414         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18415         test for a truncated result.
18416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18417         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18418         * modules/getlogin_r (Depends-on): Add memchr.
18419         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18420
18421 2010-12-22  Bruno Haible  <bruno@clisp.org>
18422
18423         ptsname: Avoid test failure on OSF/1 5.1.
18424         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18425         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18426         (same_slave): New function.
18427         (main): Use it to compare ptsname's result with the expected file name.
18428
18429 2010-12-22  Bruno Haible  <bruno@clisp.org>
18430
18431         Port extended stdio modules to HP NonStop Kernel.
18432         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18433         macros.
18434         * lib/fbufmode.c: Update comments.
18435         * lib/fflush.c: Likewise.
18436         * lib/fpurge.c: Likewise.
18437         * lib/freadable.c: Likewise.
18438         * lib/freadahead.c: Likewise.
18439         * lib/freading.c: Likewise.
18440         * lib/freadptr.c: Likewise.
18441         * lib/freadseek.c: Likewise.
18442         * lib/fseeko.c: Likewise.
18443         * lib/fseterr.c: Likewise.
18444         * lib/fwritable.c: Likewise.
18445         * lib/fwriting.c: Likewise.
18446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18447
18448 2010-12-22  Bruno Haible  <bruno@clisp.org>
18449
18450         ttyname_r: Work around bug on OSF/1 5.1.
18451         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18452         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18453         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18454         present.
18455         * lib/ttyname_r.c (ttyname_r): Update comments.
18456
18457 2010-12-22  Bruno Haible  <bruno@clisp.org>
18458
18459         round: Implement result sign according to IEEE 754.
18460         * lib/round.c (MIN, MINUS_ZERO): New macros.
18461         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18462         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18463         * tests/test-round-ieee.c (main): Likewise.
18464         * tests/test-roundl-ieee.c (main): Likewise.
18465
18466         trunc: Implement result sign according to IEEE 754.
18467         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18468         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18469         * tests/test-trunc2.c: Include minus-zero.h.
18470         (MINUS_ZERO): New macro.
18471         (trunc_reference): Keep in sync with lib/trunc.c.
18472         * tests/test-truncf2.c: Include minus-zero.h.
18473         (MINUS_ZERO): New macro.
18474         (truncf_reference): Keep in sync with lib/trunc.c.
18475         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18476         * tests/test-trunc-ieee.c (main): Likewise.
18477         * tests/test-truncl-ieee.c (main): Likewise.
18478
18479         ceil: Implement result sign according to IEEE 754.
18480         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18481         (FUNC): Return -0.0 for -1 < x < 0.
18482         * tests/test-ceil2.c: Include minus-zero.h.
18483         (MINUS_ZERO): New macro.
18484         (ceil_reference): Keep in sync with lib/ceil.c.
18485         * tests/test-ceilf2.c: Include minus-zero.h.
18486         (MINUS_ZERO): New macro.
18487         (ceilf_reference): Keep in sync with lib/ceil.c.
18488         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18489         * tests/test-ceil-ieee.c (main): Likewise.
18490         * tests/test-ceill-ieee.c (main): Likewise.
18491
18492         floor: Implement result sign according to IEEE 754.
18493         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18494         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18495         * tests/test-floorf2.c (floorf_reference): Likewise.
18496         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18497         * tests/test-floor-ieee.c (main): Likewise.
18498         * tests/test-floorl-ieee.c (main): Likewise.
18499
18500 2010-12-22  Bruno Haible  <bruno@clisp.org>
18501
18502         getaddrinfo: Update doc.
18503         * doc/posix-functions/gai_strerror.texi: Return type is also different
18504         on AIX and HP-UX.
18505
18506 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18507
18508         getaddrinfo, inet_ntop: Update doc for Solaris.
18509         * doc/posix-functions/gai_strerror.texi: Return type is also an
18510         issue on Solaris 9 and earlier.
18511         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18512         on Solaris 10 and earlier.
18513
18514 2010-12-21  Bruno Haible  <bruno@clisp.org>
18515
18516         New module 'roundl-ieee'.
18517         * modules/roundl-ieee: New file.
18518         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18519         test whether roundl works according to ISO C 99 with IEC 60559.
18520         * m4/roundl-ieee.m4: New file.
18521         * modules/roundl-ieee-tests: New file.
18522         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18523         * tests/test-roundl.c (main): Remove signbit tests.
18524         * modules/roundl-tests (Depends-on): Remove signbit.
18525         * doc/posix-functions/roundl.texi: Mention the new module.
18526
18527 2010-12-21  Bruno Haible  <bruno@clisp.org>
18528
18529         New module 'truncl-ieee'.
18530         * modules/truncl-ieee: New file.
18531         * modules/truncl-ieee-tests: New file.
18532         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18533         * tests/test-truncl.c (main): Remove signbit tests.
18534         * modules/truncl-tests (Depends-on): Remove signbit.
18535         * doc/posix-functions/truncl.texi: Mention the new module.
18536
18537 2010-12-21  Bruno Haible  <bruno@clisp.org>
18538
18539         New module 'ceill-ieee'.
18540         * modules/ceill-ieee: New file.
18541         * modules/ceill-ieee-tests: New file.
18542         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18543         * tests/test-ceill.c (main): Remove signbit tests.
18544         * modules/ceill-tests (Depends-on): Remove signbit.
18545         * doc/posix-functions/ceill.texi: Mention the new module.
18546
18547 2010-12-21  Bruno Haible  <bruno@clisp.org>
18548
18549         New module 'floorl-ieee'.
18550         * modules/floorl-ieee: New file.
18551         * modules/floorl-ieee-tests: New file.
18552         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18553         * tests/test-floorl.c (main): Remove signbit tests.
18554         * modules/floorl-tests (Depends-on): Remove signbit.
18555         * doc/posix-functions/floorl.texi: Mention the new module.
18556
18557 2010-12-21  Bruno Haible  <bruno@clisp.org>
18558
18559         New module 'round-ieee'.
18560         * modules/round-ieee: New file.
18561         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18562         whether round works according to ISO C 99 with IEC 60559.
18563         * m4/round-ieee.m4: New file.
18564         * modules/round-ieee-tests: New file.
18565         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18566         * tests/test-round1.c (main): Remove signbit tests.
18567         * modules/round-tests (Depends-on): Remove 'signbit'.
18568         * doc/posix-functions/round.texi: Mention the new module.
18569
18570 2010-12-21  Bruno Haible  <bruno@clisp.org>
18571
18572         New module 'trunc-ieee'.
18573         * modules/trunc-ieee: New file.
18574         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18575         whether trunc works according to ISO C 99 with IEC 60559.
18576         * m4/trunc-ieee.m4: New file.
18577         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18579         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18580         * modules/trunc-ieee-tests: New file.
18581         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18582         * tests/test-trunc1.c (main): Remove signbit tests.
18583         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18584         * doc/posix-functions/trunc.texi: Mention the new module.
18585
18586 2010-12-21  Bruno Haible  <bruno@clisp.org>
18587
18588         New module 'ceil-ieee'.
18589         * modules/ceil-ieee: New file.
18590         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18591         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18592         ISO C 99 with IEC 60559.
18593         * m4/ceil-ieee.m4: New file.
18594         * modules/ceil (Files): Add lib/ceil.c.
18595         (Depends-on): Add 'float'.
18596         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18597         * lib/math.in.h (ceil): New declaration.
18598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18599         REPLACE_CEIL.
18600         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18601         * modules/ceil-ieee-tests: New file.
18602         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18603         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18604         * doc/posix-functions/ceil.texi: Mention the new module.
18605
18606 2010-12-21  Bruno Haible  <bruno@clisp.org>
18607
18608         New module 'floor-ieee'.
18609         * modules/floor-ieee: New file.
18610         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18611         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18612         ISO C 99 with IEC 60559.
18613         * m4/floor-ieee.m4: New file.
18614         * modules/floor (Files): Add lib/floor.c.
18615         (Depends-on): Add 'float'.
18616         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18617         * lib/math.in.h (floor): New declaration.
18618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18619         REPLACE_FLOOR.
18620         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18621         * modules/floor-ieee-tests: New file.
18622         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18623         * tests/test-math-c++.cc: Check the signature of 'floor'.
18624         * doc/posix-functions/floor.texi: Mention the new module.
18625
18626 2010-12-21  Bruno Haible  <bruno@clisp.org>
18627
18628         New module 'roundf-ieee'.
18629         * modules/roundf-ieee: New file.
18630         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18631         test whether roundf works according to ISO C 99 with IEC 60559.
18632         * m4/roundf-ieee.m4: New file.
18633         * modules/roundf-ieee-tests: New file.
18634         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18635         * tests/test-roundf1.c (main): Remove signbit tests.
18636         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18637         * doc/posix-functions/roundf.texi: Mention the new module.
18638
18639 2010-12-21  Bruno Haible  <bruno@clisp.org>
18640
18641         New module 'truncf-ieee'.
18642         * modules/truncf-ieee: New file.
18643         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18644         test whether truncf works according to ISO C 99 with IEC 60559.
18645         * m4/truncf-ieee.m4: New file.
18646         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18648         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18649         * modules/truncf-ieee-tests: New file.
18650         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18651         * tests/test-truncf1.c (main): Remove signbit tests.
18652         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18653         * doc/posix-functions/truncf.texi: Mention the new module.
18654
18655 2010-12-21  Bruno Haible  <bruno@clisp.org>
18656
18657         New module 'ceilf-ieee'.
18658         * modules/ceilf-ieee: New file.
18659         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18660         test whether ceilf works according to ISO C 99 with IEC 60559.
18661         * m4/ceilf-ieee.m4: New file.
18662         * modules/ceilf-ieee-tests: New file.
18663         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18664         * tests/test-ceilf1.c (main): Remove signbit tests.
18665         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18666         * doc/posix-functions/ceilf.texi: Mention the new module.
18667
18668 2010-12-21  Bruno Haible  <bruno@clisp.org>
18669
18670         New module 'floorf-ieee'.
18671         * modules/floorf-ieee: New file.
18672         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18673         test whether floorf works according to ISO C 99 with IEC 60559.
18674         * m4/floorf-ieee.m4: New file.
18675         * modules/floorf-ieee-tests: New file.
18676         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18677         * tests/test-floorf1.c (main): Remove signbit tests.
18678         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18679         * doc/posix-functions/floorf.texi: Mention the new module.
18680
18681 2010-12-21  Bruno Haible  <bruno@clisp.org>
18682
18683         Support for minus zero in autoconf macros.
18684         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18685         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18686         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18687         * tests/minus-zero.h: Update comments.
18688
18689 2010-12-21  Bruno Haible  <bruno@clisp.org>
18690
18691         Tests for module 'ceil'.
18692         * modules/ceil-tests: New file.
18693         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18694         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18695
18696 2010-12-21  Bruno Haible  <bruno@clisp.org>
18697
18698         Tests for module 'floor'.
18699         * modules/floor-tests: New file.
18700         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18701         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18702
18703 2010-12-21  Bruno Haible  <bruno@clisp.org>
18704
18705         math: Fix indentation.
18706         * lib/math.in.h (floorf): Fix indentation.
18707
18708 2010-12-21  Bruno Haible  <bruno@clisp.org>
18709
18710         Fix cross-compilation guesses on Solaris.
18711         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18712         not match "solaris2.10".
18713         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18714         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18715         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18716
18717 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18720         This fixes a problem observed with the latest coreutils snapshot
18721         that caused a test to fail on Solaris 8.  src/csplit.c's call
18722         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18723         earlier, instead of returning the number of bytes that would have
18724         been generated; this causes csplit to incorrectly report memory
18725         exhaustion.
18726         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18727         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18728         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18729         comments to match.
18730         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18731         Fix typo in matching older versions of Solaris: "solaris2.10"
18732         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18733         only for guessing while cross-compiling.
18734         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18735
18736 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18737
18738         ftoastr: fix comment again
18739         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18741         Also, simplify example a bit by using flags = 0.
18742
18743 2010-12-20  Bruno Haible  <bruno@clisp.org>
18744
18745         round*, trunc*: Update documentation regarding glibc.
18746         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18747         * doc/posix-functions/round.texi: Likewise.
18748         * doc/posix-functions/roundl.texi: Likewise.
18749         * doc/posix-functions/truncf.texi: Likewise.
18750         * doc/posix-functions/trunc.texi: Likewise.
18751         * doc/posix-functions/truncl.texi: Likewise.
18752
18753 2010-12-20  Bruno Haible  <bruno@clisp.org>
18754
18755         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18756         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18757         * doc/posix-functions/round.texi: Likewise.
18758         * doc/posix-functions/roundl.texi: Likewise.
18759
18760 2010-12-20  Bruno Haible  <bruno@clisp.org>
18761
18762         ttyname_r: Add missing declaration on HP-UX 11.
18763         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18764         HAVE_TTYNAME_R.
18765         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18766         declared. Set HAVE_TTYNAME_R always.
18767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18768         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18769         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18770         HAVE_TTYNAME_R.
18771         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18772
18773 2010-12-20  Bruno Haible  <bruno@clisp.org>
18774
18775         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18776         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18777         * doc/posix-functions/getlogin_r.texi: Likewise.
18778         * tests/test-getlogin.c: Include <errno.h>.
18779         (main): Avoid test failure on HP-UX 11.11.
18780         * tests/test-getlogin_r.c (main): Likewise.
18781
18782 2010-12-20  Bruno Haible  <bruno@clisp.org>
18783
18784         getlogin_r: Add missing declaration on HP-UX 11.
18785         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18786         declared also when it exists as a function.
18787         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18788
18789 2010-12-20  Bruno Haible  <bruno@clisp.org>
18790
18791         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18792         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18793         through wcrtomb.
18794
18795 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18796
18797         ftoastr: fix comment
18798         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18799         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18800
18801 2010-12-19  Bruno Haible  <bruno@clisp.org>
18802
18803         isnan: Ensure it is a macro.
18804         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18805         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18806         Solaris.
18807
18808 2010-12-19  Bruno Haible  <bruno@clisp.org>
18809
18810         ldexpl test: Fix link error on OSF/1 5.1.
18811         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18812
18813 2010-12-19  Bruno Haible  <bruno@clisp.org>
18814
18815         wctype: Make it work in C++ mode on OSF/1 5.1.
18816         * lib/wctype.in.h (iswblank): Declare but not define here.
18817         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18818         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18819         * modules/wctype (Files): Add lib/iswblank.c.
18820
18821 2010-12-19  Bruno Haible  <bruno@clisp.org>
18822
18823         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18824         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18825         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18826
18827 2010-12-19  Bruno Haible  <bruno@clisp.org>
18828
18829         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18831         _POSIX_PII_SOCKET.
18832         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18833         * doc/posix-functions/recvfrom.texi: Likewise.
18834         * doc/posix-functions/send.texi: Likewise.
18835         * doc/posix-functions/sendto.texi: Likewise.
18836
18837 2010-12-19  Bruno Haible  <bruno@clisp.org>
18838
18839         tcgetsid: Add missing declaration on OSF/1 5.1.
18840         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18841         HAVE_TCGETSID.
18842         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18843         Don't set HAVE_TCGETSID.
18844         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18845         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18846         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18847         HAVE_TCGETSID.
18848         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18849
18850 2010-12-19  Bruno Haible  <bruno@clisp.org>
18851
18852         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18853         * lib/stdio.in.h: During the include_next statement, let recursive
18854         includes of this file include only the system header file.
18855
18856 2010-12-19  Bruno Haible  <bruno@clisp.org>
18857
18858         iconv_open: Fix regression from 2010-12-04.
18859         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18860         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18861
18862 2010-12-19  Bruno Haible  <bruno@clisp.org>
18863
18864         stdbool test: Avoid a gcc warning.
18865         * tests/test-stdbool.c (main): Fail if e1 is false.
18866         Reported by Jim Meyering.
18867
18868 2010-12-19  Jim Meyering  <meyering@redhat.com>
18869
18870         setenv: restore to working order
18871         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18872         mistakenly removed.
18873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18874         HAVE_SETENV.
18875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18876         HAVE_SETENV.
18877
18878 2010-12-19  Bruno Haible  <bruno@clisp.org>
18879
18880         Document some different function declarations on OSF/1 5.1.
18881         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18882         * doc/posix-functions/inet_ntop.texi: Likewise.
18883         * doc/posix-functions/gethostname.texi: Likewise.
18884         * lib/unistd.in.h (gethostname): Update comment.
18885
18886 2010-12-19  Bruno Haible  <bruno@clisp.org>
18887
18888         doc: Mention vasprintf-posix module.
18889         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18890         the 'vasprintf-posix' module.
18891         * doc/glibc-functions/vasprintf.texi: Likewise.
18892
18893 2010-12-19  Bruno Haible  <bruno@clisp.org>
18894
18895         unsetenv: Add missing declaration on OSF/1 5.1.
18896         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18897         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18898         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18900         not HAVE_UNSETENV.
18901         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18902         HAVE_UNSETENV.
18903         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18904
18905 2010-12-19  Bruno Haible  <bruno@clisp.org>
18906
18907         setenv: Add missing declaration on OSF/1 5.1.
18908         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18909         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18910         declared. Don't set HAVE_SETENV.
18911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18912         not HAVE_SETENV.
18913         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18914         HAVE_SETENV.
18915         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18916
18917 2010-12-19  Bruno Haible  <bruno@clisp.org>
18918
18919         nl_langinfo tests: Avoid gcc warning.
18920         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18921
18922 2010-12-19  Bruno Haible  <bruno@clisp.org>
18923
18924         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18925         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18926         _GL_CXXALIAS_SYS.
18927
18928 2010-12-19  Bruno Haible  <bruno@clisp.org>
18929
18930         stdbool: Relax test.
18931         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18932         address to 'bool' work in static initializer, for compilers other than
18933         GCC.
18934
18935 2010-12-19  Bruno Haible  <bruno@clisp.org>
18936
18937         ftello: Add missing declaration on OSF/1 5.1.
18938         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18939         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18941         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18942         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18943
18944 2010-12-19  Bruno Haible  <bruno@clisp.org>
18945
18946         fseeko: Add missing declaration on OSF/1 5.1.
18947         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18950         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18951         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18952
18953 2010-12-19  Bruno Haible  <bruno@clisp.org>
18954
18955         fchdir: Add missing declaration on OSF/1 5.1.
18956         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18960         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18961
18962 2010-12-19  Bruno Haible  <bruno@clisp.org>
18963
18964         relocatable-prog-wrapper: Separate from relocatable-prog.
18965         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18966         uninstall-relocwrapper rule here.
18967         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18968         Reported by Ian Beckwith <ianb@erislabs.net>.
18969
18970 2010-12-19  Bruno Haible  <bruno@clisp.org>
18971
18972         unistr/u8-mbsnlen: Add missing dependency.
18973         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18974         Reported by Ian Beckwith <ianb@erislabs.net>.
18975
18976 2010-12-19  Bruno Haible  <bruno@clisp.org>
18977
18978         iconv: Make it possible again to use this module without 'iconv-h'.
18979         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18980         if it is not defined.
18981         Reported by Ian Beckwith <ianb@erislabs.net>.
18982
18983 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18984
18985         acl: port to Solaris 8 when copying from tmpfs to ufs
18986         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18987         error number.  Problem observed on Solaris 8 with latest
18988         coreutils, with "mv A B", where A is on a tmpfs file system and B
18989         is on a ufs file system.  This caused coreutils' mv/part-symlink
18990         test to fail.
18991
18992         tests: set fail=0 at start
18993         * tests/init.sh (setup_): Move fail=0 initialization here ...
18994         (mktempd_): ... from here, so that tests can rely on fail being
18995         set to 0 initially.  This fixes a problem in coreutils; see:
18996         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18997
18998 2010-12-18  Bruno Haible  <bruno@clisp.org>
18999
19000         memmem-simple: Stylistic changes.
19001         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19002         Fix preprocessor directive indentation.
19003
19004 2010-12-15  Pádraig Brady <P@draigBrady.com>
19005
19006         memmem, memmem-simple: reorganize and expand empty needle check
19007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19008         functional checks to memmem-simple so that one has a fully functional
19009         memmem by using just this module.
19010         Restrict the performance only check to the memmem module.
19011         Also expand the empty needle check to ensure the correct
19012         pointer is returned, not just a non NULL pointer.
19013         * doc/glibc-functions/memmem.texi: Rearrange the portability
19014         documentation to correlate with the rearranged checks.
19015         Clarify exactly how the memmem and memmem-simple modules
19016         relate to each other.
19017
19018 2010-12-15  Pádraig Brady <P@draigBrady.com>
19019             Bruno Haible  <bruno@clisp.org>
19020
19021         Improve cross-compilation guesses for uClibc.
19022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19023         that uClibc does not have the glibc bug.
19024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19025         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19026
19027 2010-12-14  Eric Blake  <eblake@redhat.com>
19028
19029         configmake: provide fallbacks for oldest supported autotools
19030         * m4/configmake.m4: New file.
19031         * modules/configmake (Files): Ship it.
19032         (configure.ac): Use it to guarantee fallbacks.
19033
19034 2010-12-13  Pádraig Brady <P@draigBrady.com>
19035
19036         read-file: Improve handling of large files
19037         * lib/read-file.c (fread_file): Minimize realloc()s
19038         for regular files, and better manage sizes around SIZE_MAX.
19039
19040 2010-12-13  Eric Blake  <eblake@redhat.com>
19041
19042         cloexec, fcntl: relax license
19043         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19044         consent from all contributors.
19045         * modules/fcntl (License): Likewise.
19046
19047 2010-12-10  Bruno Haible  <bruno@clisp.org>
19048
19049         Tests for module 'pipe-posix'.
19050         * modules/pipe-posix-tests: New file.
19051         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19052
19053 2010-12-10  Bruno Haible  <bruno@clisp.org>
19054
19055         pipe-posix: Make it work in C++ mode.
19056         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19057         (pipe): Use common idiom, not a macro definition.
19058         * lib/pipe.c: New file.
19059         * m4/pipe.m4: New file.
19060         * modules/pipe-posix (Description): Enhance.
19061         (Files): Add lib/pipe.c, m4/pipe.m4.
19062         (configure.ac): Invoke gl_FUNC_PIPE.
19063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19064         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19065         * tests/test-unistd-c++.cc: Check the signature of pipe.
19066
19067 2010-12-10  Bruno Haible  <bruno@clisp.org>
19068
19069         Rename module 'pipe' to 'spawn-pipe'.
19070         * modules/spawn-pipe: New file, renamed from modules/pipe.
19071         (Files, configure.ac, Makefile.am): Update.
19072         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19073         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19074         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19075         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19076         "spawn-pipe.h" instead of "pipe.h".
19077         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19078         to gl_SPAWN_PIPE.
19079         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19080         (Files, Makefile.am): Update.
19081         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19082         Update.
19083         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19084         Include "spawn-pipe.h" instead of "pipe.h".
19085         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19086         * lib/javacomp.c: Likewise.
19087         * lib/javaversion.c: Likewise.
19088         * lib/pipe-filter-gi.c: Likewise.
19089         * lib/pipe-filter-ii.c: Likewise.
19090         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19091         * modules/javacomp (Depends-on): Likewise.
19092         * modules/javaversion (Depends-on): Likewise.
19093         * modules/pipe-filter-gi (Depends-on): Likewise.
19094         * modules/pipe-filter-ii (Depends-on): Likewise.
19095         * MODULES.html.sh (Executing programs): Update.
19096         * NEWS: Mention the change.
19097
19098 2010-12-10  Eric Blake  <eblake@redhat.com>
19099
19100         pipe-posix: new module
19101         * modules/pipe-posix: New file.
19102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19103         (gl_UNISTD_H): Check for declaration.
19104         * modules/unistd (Makefile.am): Substitute it.
19105         * lib/unistd.in.h (pipe): Provide it for mingw.
19106         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19107         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19108
19109 2010-12-07  Bruno Haible  <bruno@clisp.org>
19110
19111         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19112         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19113         u8_strcmp_gnu.
19114         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19115
19116 2010-12-06  Bruno Haible  <bruno@clisp.org>
19117
19118         Update internal documentation.
19119         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19120
19121 2010-12-04  Bruno Haible  <bruno@clisp.org>
19122
19123         Put more information about failed tests into the test return codes.
19124         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19125         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19126         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19127         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19130         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19131         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19132         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19135         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19136         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19137         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19138         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19139         returns a bit mask.
19140         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19141         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19142         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19143         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19144         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19148         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19150         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19151         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19152         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19154         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19155         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19156         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19157         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19158         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19159         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19161         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19162         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19163         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19164         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19165         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19166         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19167         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19168         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19169         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19170         gl_PRINTF_PRECISION): Likewise.
19171         * m4/regex.m4 (gl_REGEX): Likewise.
19172         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19175         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19179         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19180         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19181         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19182         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19183         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19184         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19185         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19186         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19188         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19191         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19192         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19193         enumerated value.
19194         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19195
19196 2010-12-04  Bruno Haible  <bruno@clisp.org>
19197
19198         Update for Solaris 11 2010-11.
19199         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19200         Express, released in November 2010.
19201
19202 2010-12-04  Bruno Haible  <bruno@clisp.org>
19203
19204         nproc: Relax license.
19205         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19206         and Paul Eggert.
19207         Requested by Ludovic Courtès <ludo@gnu.org>.
19208
19209 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19210
19211         utimecmp: fine-grained src to nearby coarse-grained dest
19212
19213         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19214         and the source is on a file system with higher-resolution time
19215         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19216         not work, and the time stamps are close together, the algorithm to
19217         determine the exact resolution from the read-back mtime was buggy:
19218         it had a "!=" where it should have had an "==".  This bug has been
19219         in the code ever since it was introduced to gnulib.
19220         Problem reported by Dan Jacobson in
19221         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19222
19223 2010-11-30  Bruno Haible  <bruno@clisp.org>
19224
19225         strerror_r-posix: Fix autoconf test.
19226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19227
19228 2010-11-28  Bruno Haible  <bruno@clisp.org>
19229             Paul Eggert  <eggert@cs.ucla.edu>
19230
19231         Tests for module 'getdomainname'.
19232         * modules/getdomainname-tests: New file.
19233         * tests/test-getdomainname.c: New file, based on
19234         tests/test-gethostname.c.
19235
19236 2010-11-28  Bruno Haible  <bruno@clisp.org>
19237             Paul Eggert  <eggert@cs.ucla.edu>
19238
19239         getdomainname: Use the system function when possible.
19240         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19241         (getdomainname): Replace if needed. Provide the declaration if it is
19242         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19243         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19244         (getdomainname): When the system has getdomainname, call the system
19245         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19246         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19247         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19248         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19249         the function if its second argument is of type 'int' or if it is found
19250         in libnsl.
19251         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19252         <sys/systeminfo.h> and sysinfo().
19253         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19255         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19256         HAVE_GETDOMAINNAME.
19257         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19258         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19259         * doc/glibc-functions/getdomainname.texi: Document the problems with
19260         the getdomainname declaration.
19261
19262 2010-11-28  Bruno Haible  <bruno@clisp.org>
19263
19264         sys_socket: Ensure ss_family field on AIX.
19265         * lib/sys_socket.in.h (ss_family): New macro definition.
19266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19267         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19268         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19269         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19270         * modules/sys_socket (Makefile.am): Substitute
19271         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19272         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19273
19274 2010-11-27  Bruno Haible  <bruno@clisp.org>
19275
19276         readline: Improve configure output.
19277         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19278         "checking for readline..." result understandable.
19279
19280 2010-11-27  Bruno Haible  <bruno@clisp.org>
19281
19282         *printf-posix: Detect a bug on Solaris 10/x86.
19283         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19284         for floating-point output.
19285         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19286         directive.
19287         * tests/test-snprintf-posix.h (test_function): Likewise.
19288         * tests/test-sprintf-posix.h (test_function): Likewise.
19289         * tests/test-vasprintf-posix.c (test_function): Likewise.
19290         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19291         * doc/posix-functions/printf.texi: Likewise.
19292         * doc/posix-functions/snprintf.texi: Likewise.
19293         * doc/posix-functions/sprintf.texi: Likewise.
19294         * doc/posix-functions/vfprintf.texi: Likewise.
19295         * doc/posix-functions/vprintf.texi: Likewise.
19296         * doc/posix-functions/vsnprintf.texi: Likewise.
19297         * doc/posix-functions/vsprintf.texi: Likewise.
19298         * doc/glibc-functions/obstack_printf.texi: Likewise.
19299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19300
19301 2010-11-27  Bruno Haible  <bruno@clisp.org>
19302
19303         Fix link error when module libunistring-optional is in use.
19304         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19305         * modules/striconveha-tests (Makefile.am): Likewise.
19306
19307 2010-11-27  Bruno Haible  <bruno@clisp.org>
19308
19309         regex: Mention link dependencies.
19310         * modules/regex (Link): New section.
19311         * modules/rpmatch (Link): Likewise.
19312         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19313
19314 2010-11-27  Bruno Haible  <bruno@clisp.org>
19315
19316         ftoastr: Fix compilation error on Solaris.
19317         * lib/ftoastr.c: Include <config.h>.
19318
19319 2010-11-27  Bruno Haible  <bruno@clisp.org>
19320
19321         getloadavg: Update documentation.
19322         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19323
19324 2010-11-27  Bruno Haible  <bruno@clisp.org>
19325
19326         sys_socket: Fix test whether the functions are declared.
19327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19328         not <sys/select.h>.
19329
19330 2010-11-27  Bruno Haible  <bruno@clisp.org>
19331
19332         getpass: Make sure to get system declaration on some platforms.
19333         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19334         gl_USE_SYSTEM_EXTENSIONS.
19335         * modules/getpass (Depends-on): Add extensions.
19336
19337 2010-11-26  Bruno Haible  <bruno@clisp.org>
19338
19339         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19340         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19341         'iconv' module is present.
19342         (ICONV_CONST): New macro.
19343         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19344         ICONV_CONST.
19345         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19346         set ICONV_CONST.
19347         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19348         here.
19349         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19350         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19351         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19352         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19353         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19354         present.
19355
19356 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         ftoastr: comment fix
19359         * lib/ftoastr.c: "little" -> "little or no" in comment
19360
19361 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19362
19363         stdint: port to GCC 4.3 + OSX + Octave
19364         On this platform, stdint.h is buggy and defines int64_t to long
19365         long int.  The replacement defined it to long int, causing
19366         problems with C++ style name mangling.  Instead, trust the system
19367         definition if INT64_MAX is defined, and likewise for the unsigned
19368         variant.   Problem reported by Jarno Rajahalme in
19369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19370         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19371         and don't mess with int64_t and INT64_MAX in this case.
19372         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19373
19374 2010-11-24  Bruno Haible  <bruno@clisp.org>
19375
19376         doc: Corrections regarding MacOS X 10.4 and 10.5.
19377         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19378         MacOS X.
19379         Reported by Simon Josefsson.
19380
19381 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19382
19383         Uninstall ".bin" files installed by relocwrapper.
19384         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19385         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19386         unless it is already there.
19387
19388 2010-11-21  Bruno Haible  <bruno@clisp.org>
19389
19390         Update for NetBSD 5.0.
19391         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19392         NetBSD; the test fails on NetBSD 5.0.
19393         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19394         about NetBSD.
19395
19396 2010-11-21  Bruno Haible  <bruno@clisp.org>
19397
19398         Update for HP-UX 11.23 and HP-UX 11.31.
19399         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19400         HP-UX.
19401
19402 2010-11-21  Bruno Haible  <bruno@clisp.org>
19403
19404         Update for MacOS X 10.5.
19405         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19406         MacOS X; the test fails on MacOS X 10.5.8.
19407         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19408         about MacOS X.
19409
19410 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19411
19412         bootstrap: add bootstrap_sync option.
19413         See discussion at
19414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19416         * build-aux/bootstrap: Accept --bootstrap-sync to update
19417         bootstrap if it is not identical to the local gnulib's
19418         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19419         enable this by default.  Accept --no-bootstrap-sync to disable
19420         it.
19421
19422 2010-11-20  Bruno Haible  <bruno@clisp.org>
19423
19424         Ensure that <features.h> is included before __GLIBC__ is tested.
19425         * lib/printf-parse.h: Include <features.h>.
19426         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19427         Reported by Mike Frysinger <vapier@gentoo.org>.
19428
19429         Ensure that <features.h> is included before __GLIBC__ is tested.
19430         * lib/wchar.in.h: Include <features.h>.
19431         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19432         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19433         Reported by Mike Frysinger <vapier@gentoo.org>.
19434
19435         Ensure that <features.h> is included before __GLIBC__ is tested.
19436         * lib/arpa_inet.in.h: Include <features.h>.
19437         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19438         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19439         Reported by Mike Frysinger <vapier@gentoo.org>.
19440
19441         Ensure that <features.h> is included before __GLIBC__ is tested.
19442         * build-aux/link-warning.h: Include <features.h>.
19443         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19444         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19445         Reported by Mike Frysinger <vapier@gentoo.org>.
19446
19447         Ensure that <features.h> is included before __GLIBC__ is tested.
19448         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19449         Reported by Mike Frysinger <vapier@gentoo.org>.
19450
19451 2010-11-20  Bruno Haible  <bruno@clisp.org>
19452
19453         memmem: Fix autoconf test.
19454         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19455
19456 2010-11-20  Bruno Haible  <bruno@clisp.org>
19457
19458         Port to uClibc.
19459         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19460         * lib/fcntl.in.h: Likewise.
19461         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19462         * lib/mbrtowc.c (mbrtowc): Likewise.
19463         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19464         * lib/strerror_r.c: Likewise.
19465         * lib/unistr/u8-strnlen.c: Likewise.
19466         * lib/vasnprintf.c (decimal_point_char): Likewise.
19467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19468         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19470         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19471         * tests/test-sigaction.c (handler, main): Likewise.
19472         * lib/freading.h: Treat uClibc like a non-glibc platform.
19473         * lib/freading.c: Likewise.
19474         * lib/gettext.h: Likewise.
19475         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19476         Likewise.
19477         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19478         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19479         * lib/propername.c (proper_name_utf8): Likewise.
19480         * lib/spawn.in.h: Likewise.
19481         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19482         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19483         mem_cd_iconveh_internal): Likewise.
19484         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19485         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19486         strstr, strcasestr): Likewise.
19487         * lib/unicodeio.c (unicode_to_mb): Likewise.
19488         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19489         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19490         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19491         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19492         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19493         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19494         * lib/unistr/u8-stpncpy.c: Likewise.
19495         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19496         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19497         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19498         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19499         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19500         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19501         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19504         Likewise.
19505         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19506         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19507         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19510         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19511         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19512         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19513         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19514         * tests/test-striconveha.c (main): Likewise.
19515         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19516         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19517         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19518         * doc/posix-functions/getline.texi: Likewise.
19519         Reported by Mike Frysinger <vapier@gentoo.org>.
19520
19521 2010-11-20  Bruno Haible  <bruno@clisp.org>
19522
19523         nproc: Fix condition.
19524         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19525         HAVE_PTHREAD_AFFINITY_NP.
19526
19527 2010-11-20  Bruno Haible  <bruno@clisp.org>
19528
19529         Fix a comment.
19530         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19531
19532 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19533
19534         ftoastr: don't assume snprintf
19535         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19536         Implement a subset of snprintf here, by using sprintf safely.
19537         * modules/ftoastr (Depends-on): Remove snprintf.
19538
19539 2010-11-19  Jim Meyering  <meyering@redhat.com>
19540
19541         test-rename.h: fix compilation failure
19542         * tests/test-rename.h (test_rename): Add omitted "}".
19543
19544 2010-11-17  Jim Meyering  <meyering@redhat.com>
19545
19546         maint.mk: add a URL discussing the no-@acronym policy
19547         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19548
19549 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19550
19551         ftoastr: depend on snprintf, improve comments
19552         * lib/ftoastr.c: Also mention Loitsch's draft.
19553         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19554         needed in the current implementation, but it might simplify
19555         speeding up the code later.
19556         * modules/ftoastr: Depend on snprintf; this improves portability.
19557         Suggested by Bruno Haible in the same email.
19558
19559         ftoastr: port to hosts lacking strtof and strtold
19560         Problem reported by Bruno Haible in
19561         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19562         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19563         environment and strtold (and presumably strtof) are not available.
19564         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19565         (configure.ac): Require gl_C99_STRTOLD.
19566
19567 2010-11-18  Bruno Haible  <bruno@clisp.org>
19568
19569         c-strtold: Avoid link error on AIX 7.
19570         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19571         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19572         (gl_C_STRTOLD): Test whether strtold_l exists.
19573         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19574
19575 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19576
19577         intprops: new macro INT_BITS_STRLEN_BOUND
19578         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19579         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19580         not exposed.  Also, it uses a slightly tighter bound than before;
19581         though this makes no practical difference, we might as well be as
19582         tight as we easily can.
19583
19584         ftoastr: new module, for lossless conversion of floats to short strings
19585         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19586         * modules/ftoastr: New files.
19587
19588 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19589
19590         bootstrap: port to Solaris sed
19591         * build-aux/bootstrap (get_version): Port to Solaris sed.
19592         See Ralf Wildenhues's note in
19593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19594
19595 2010-11-14  Jim Meyering  <meyering@redhat.com>
19596
19597         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19598         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19599         and move definition closer to sole use.
19600
19601 2010-11-13  Jim Meyering  <meyering@redhat.com>
19602
19603         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19604         Now we require at least autoconf-2.59, which means the work-around
19605         is no longer needed.
19606         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19607         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19608         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19609         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19610         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19611
19612 2010-11-13  Bruno Haible  <bruno@clisp.org>
19613
19614         rename, renameat: Avoid test failures at NFS mounted locations.
19615         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19616         functions.
19617         (test_rename): Use assert_nonexistent.
19618         * tests/test-rename.c: Include <dirent.h>.
19619         * tests/test-renameat.c: Likewise.
19620         Reported by Gary V. Vaughan <gary@gnu.org>.
19621
19622         rename, renameat: Document Linux bug with NFS
19623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19624         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19625         * doc/posix-functions/renameat.texi: Likewise.
19626         Suggested by Eric Blake.
19627
19628 2010-11-13  Bruno Haible  <bruno@clisp.org>
19629
19630         rename test: Add comments.
19631         * tests/test-rename.h (test_rename): Add structure and comments.
19632
19633 2010-11-13  Eric Blake  <eblake@redhat.com>
19634
19635         maintainer-makefile: cover a few more files
19636         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19637         scripts generated within C files, for libvirt.
19638
19639 2010-11-13  Bruno Haible  <bruno@clisp.org>
19640
19641         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19642         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19643         character, return the number of bytes that belong together, not always
19644         1.
19645         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19646         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19647         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19648         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19649         number of bytes of an invalid character.
19650         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19651         (main): Invoke it.
19652         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19653         results.
19654         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19655         malformed byte sequences.
19656         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19657         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19658         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19659         Reported by Ben Pfaff and Paolo Bonzini.
19660
19661 2010-11-13  Bruno Haible  <bruno@clisp.org>
19662
19663         openat: Work around glibc bug with fchownat() and empty file names.
19664         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19665         (gl_FUNC_FCHOWNAT): Invoke it.
19666         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19667         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19668         Reported by Gary V. Vaughan <gary@gnu.org>.
19669
19670 2010-11-13  Bruno Haible  <bruno@clisp.org>
19671
19672         openat: Ensure autoconf macro ordering.
19673         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19674         gl_USE_SYSTEM_EXTENSIONS.
19675         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19676
19677 2010-11-13  Bruno Haible  <bruno@clisp.org>
19678
19679         Update comments.
19680         * lib/unistr/u8-check.c: Update file name in comments.
19681         * lib/unistr/u8-mblen.c: Likewise.
19682         * lib/unistr/u8-prev.c: Likewise.
19683         * lib/unistr/u8-strmblen.c: Likewise.
19684         * lib/unistr/u8-strmbtouc.c: Likewise.
19685
19686 2010-11-13  Jim Meyering  <meyering@redhat.com>
19687
19688         tests: avoid test failure on Solaris 10 due to lack of PATH export
19689         * tests/test-update-copyright.sh: Don't forget to export PATH.
19690
19691         init.sh: ensure that IFS is defined, just in case...
19692         * tests/init.sh (setup_): Ensure that IFS is defined,
19693         so that saving and restoring it works as expected.  This
19694         appears to be useful at least for an old version of dash
19695         from a long time ago (RH 6).  See here for details:
19696         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19697
19698         maint.mk: tighten "test a == b" check
19699         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19700         test to files that contain something like #!/bin/sh.
19701         Without this, coreutils would get two false positives in
19702         the comments of C source files.
19703
19704 2010-11-12  Eric Blake  <eblake@redhat.com>
19705
19706         bootstrap: fix typo in previous attempt
19707         * build-aux/bootstrap (buildreq): Correct the grouping.
19708         Reported by Paul Eggert.
19709
19710         maintainer-makefile: prohibit test x == x
19711         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19712         Based on a report by Matthias Bolte.
19713
19714         bootstrap: allow FreeBSD gzip
19715         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19716         which has no '.' and goes to stderr.
19717         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19718         Reported by Matthias Bolte.
19719
19720         maintainer-makefile: check for i18n setup
19721         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19722         will likely work.
19723
19724 2010-11-12  Bruno Haible  <bruno@clisp.org>
19725
19726         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19727         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19728         * lib/nanosleep.c (nanosleep): Likewise.
19729
19730 2010-11-11  Bruno Haible  <bruno@clisp.org>
19731
19732         fcntl-h: Fix for use of C++ on glibc systems.
19733         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19734         also on glibc systems in C++ mode.
19735         Reported by Gary V. Vaughan <gary@gnu.org>.
19736
19737 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19738
19739         mknod: avoid false failure with dash
19740         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19741
19742 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19743
19744         unlink: Fix "is it should" typo in diagnostic.
19745         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19746         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19747
19748 2010-11-11  Bruno Haible  <bruno@clisp.org>
19749
19750         Tests for module 'strerror_r-posix'.
19751         * modules/strerror_r-posix-tests: New file.
19752         * tests/test-strerror_r.c: New file.
19753         * tests/test-string-c++.cc: Check the signature of strerror_r.
19754
19755         New module 'strerror_r-posix'.
19756         * lib/string.in.h (strerror_r): New declaration.
19757         * lib/strerror_r.c: New file.
19758         * m4/strerror_r.m4: New file.
19759         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19760         of strerror_r.
19761         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19762         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19763         * modules/strerror_r-posix: New file.
19764         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19765         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19766         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19767         portability problems.
19768
19769 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19770
19771         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19772         line is also considered for output. Quoted function name in shell
19773         command, so temporary files for functions like MyClass::operator()
19774         are removed correctly without errors.
19775
19776 2010-11-09  Bruno Haible  <bruno@clisp.org>
19777
19778         * doc/posix-functions/strerror.texi: List more failing platforms.
19779
19780         * doc/posix-functions/strerror.texi: Add a comment.
19781
19782 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19783
19784         fdopendir: fix bug on MacOS X when low on file descriptors
19785
19786         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19787         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19788         All callers changed.
19789         (fdopendir): Invoke save_cwd at the top level, not after using
19790         multiple dup() calls to use up file descriptors.  Then retry
19791         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19792         less than the maximum number of open file descriptors, because
19793         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19794         on Mac OS X 10.6.4 for tar 1.24
19795         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19796         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19797         and for tar 1.25
19798         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19799
19800 2010-11-07  Bruno Haible  <bruno@clisp.org>
19801
19802         vasnprintf: Support I flag on glibc systems.
19803         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19804         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19805         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19806         snprintf function.
19807         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19808         glibc systems.
19809         * tests/test-vasnprintf-posix3.c: New file.
19810         * modules/vasnprintf-posix-tests (Files): Add it.
19811         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19812
19813 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19814
19815         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19816         * MODULES.html.sh: For compiler warnings, use name
19817         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19818
19819 2010-11-05  Eric Blake  <eblake@redhat.com>
19820
19821         ceil, floor: avoid spurious failure with icc
19822         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19823         [denormals-as-zero] when optimizing without -mieee-fp option.
19824         * tests/test-floorf2.c (floorf_reference): Likewise.
19825         * tests/test-ceilf1.c (dummy): New function.
19826         (main): Use it to outsmart icc's optimization.
19827         * tests/test-floorf1.c (dummy, main): Likewise.
19828
19829         tests: require working signbit
19830         * modules/ceilf-tests (Depends-on): Add signbit.
19831         * modules/ceill-tests (Depends-on): Likewise.
19832         * modules/floorf-tests (Depends-on): Likewise.
19833         * modules/floorl-tests (Depends-on): Likewise.
19834         * modules/round-tests (Depends-on): Likewise.
19835         * modules/roundf-tests (Depends-on): Likewise.
19836         * modules/roundl-tests (Depends-on): Likewise.
19837         * modules/trunc-tests (Depends-on): Likewise.
19838         * modules/truncf-tests (Depends-on): Likewise.
19839         * modules/truncl-tests (Depends-on): Likewise.
19840
19841         strtod: work around icc bug
19842         * lib/strtod.c (minus_zero): Define to working value.
19843         (strtod): Use it to avoid icc bug.
19844
19845         copysign: enhance tests
19846         * modules/copysign-tests (Files): Add minus-zero.h.
19847         * tests/test-copysign.c (main): Also test zeros.
19848
19849 2010-11-04  Eric Blake  <eblake@redhat.com>
19850
19851         ceil, floor, round, trunc: enhance tests of -0
19852         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19853         * tests/test-ceill.c (main): Likewise.
19854         * tests/test-floorf1.c (main): Likewise.
19855         * tests/test-floorl.c (main): Likewise.
19856         * tests/test-round1.c (main): Likewise.
19857         * tests/test-roundf1.c (main): Likewise.
19858         * tests/test-roundl.c (main): Likewise.
19859         * tests/test-trunc1.c (main): Likewise.
19860         * tests/test-truncf1.c (main): Likewise.
19861         * tests/test-truncl.c (main): Likewise.
19862
19863 2010-11-04  Eric Blake  <eblake@redhat.com>
19864
19865         frexp, tests: work around ICC bug with -zero
19866         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19867         works with more compilers.
19868         * tests/minus-zero.h: New file.
19869         * modules/ceilf-tests (Files): Include it.
19870         * modules/ceill-tests (Files): Likewise.
19871         * modules/floorf-tests (Files): Likewise.
19872         * modules/floorl-tests (Files): Likewise.
19873         * modules/frexp-nolibm-tests (Files): Likewise.
19874         * modules/frexp-tests (Files): Likewise.
19875         * modules/frexpl-nolibm-tests (Files): Likewise.
19876         * modules/frexpl-tests (Files): Likewise.
19877         * modules/isnan-tests (Files): Likewise.
19878         * modules/isnand-nolibm-tests (Files): Likewise.
19879         * modules/isnand-tests (Files): Likewise.
19880         * modules/isnanf-nolibm-tests (Files): Likewise.
19881         * modules/isnanf-tests (Files): Likewise.
19882         * modules/isnanl-nolibm-tests (Files): Likewise.
19883         * modules/isnanl-tests (Files): Likewise.
19884         * modules/round-tests (Files): Likewise.
19885         * modules/roundf-tests (Files): Likewise.
19886         * modules/roundl-tests (Files): Likewise.
19887         * modules/ldexpl-tests (Files): Likewise.
19888         * modules/signbit-tests (Files): Likewise.
19889         * modules/snprintf-posix-tests (Files): Likewise.
19890         * modules/sprintf-posix-tests (Files): Likewise.
19891         * modules/strtod-tests (Files): Likewise.
19892         * modules/trunc-tests (Files): Likewise.
19893         * modules/truncf-tests (Files): Likewise.
19894         * modules/truncl-tests (Files): Likewise.
19895         * modules/vsnprintf-posix-tests (Files): Likewise.
19896         * modules/vsprintf-posix-tests (Files): Likewise.
19897         * modules/vasnprintf-posix-tests (Files): Likewise.
19898         * modules/vasprintf-posix-tests (Files): Likewise.
19899         * tests/test-ceilf1.c (main): Use it.
19900         * tests/test-ceill.c (main): Likewise.
19901         * tests/test-floorf1.c (main): Likewise.
19902         * tests/test-floorl.c (main): Likewise.
19903         * tests/test-frexp.c (main): Likewise.
19904         * tests/test-frexpl.c (main): Likewise.
19905         * tests/test-isnan.c (main): Likewise.
19906         * tests/test-isnand.h (main): Likewise.
19907         * tests/test-isnanf.h (main): Likewise.
19908         * tests/test-isnanl.h (main): Likewise.
19909         * tests/test-ldexpl.c (main): Likewise.
19910         * tests/test-round.c (main): Likewise.
19911         * tests/test-roundf.c (main): Likewise.
19912         * tests/test-roundl.c (main): Likewise.
19913         * tests/test-signbit.c (test_signbitf, test_signbitd)
19914         (test_signbitl): Likewise.
19915         * tests/test-snprintf-posix.h (test_function): Likewise.
19916         * tests/test-sprintf-posix.h (test_function): Likewise.
19917         * tests/test-strtod.c (main): Likewise.
19918         * tests/test-trunc1.c (main): Likewise.
19919         * tests/test-truncf1.c (main): Likewise.
19920         * tests/test-truncl.c (main): Likewise.
19921
19922         isnanl: work around icc bug
19923         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19924
19925 2010-11-03  Eric Blake  <eblake@redhat.com>
19926
19927         tests: fix compiler warnings
19928         * tests/test-getopt.h (test_getopt): Fix condition.
19929         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19930         * tests/test-pipe2.c (main): Likewise.
19931         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19932
19933         utimens: fix broken m4 test
19934         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19935
19936 2010-10-28  Bruno Haible  <bruno@clisp.org>
19937
19938         posix_spawn*, getdtablesize: Relax license.
19939         * modules/posix_spawn (License): Change to LGPLv2+.
19940         * modules/posix_spawnp (License): Likewise.
19941         * modules/posix_spawn-internal (License): Likewise.
19942         * modules/posix_spawnattr_init (License): Likewise.
19943         * modules/posix_spawnattr_getflags (License): Likewise.
19944         * modules/posix_spawnattr_setflags (License): Likewise.
19945         * modules/posix_spawnattr_getpgroup (License): Likewise.
19946         * modules/posix_spawnattr_setpgroup (License): Likewise.
19947         * modules/posix_spawnattr_getschedparam (License): Likewise.
19948         * modules/posix_spawnattr_setschedparam (License): Likewise.
19949         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19950         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19951         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19952         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19953         * modules/posix_spawnattr_getsigmask (License): Likewise.
19954         * modules/posix_spawnattr_setsigmask (License): Likewise.
19955         * modules/posix_spawnattr_destroy (License): Likewise.
19956         * modules/posix_spawn_file_actions_init (License): Likewise.
19957         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19958         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19959         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19960         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19961         * modules/getdtablesize (License): Likewise.
19962         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19963
19964 2010-10-26  Bruno Haible  <bruno@clisp.org>
19965
19966         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19967         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19968         Cygwin and mingw.
19969         Suggested by Eric Blake.
19970
19971 2010-10-26  Bruno Haible  <bruno@clisp.org>
19972
19973         stdio: Work around compilation error due to renameat() on Solaris 10.
19974         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19975         * lib/renameat.c: Don't include <unistd.h> here.
19976         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19977         Reported by Paul Eggert and Eric Blake.
19978
19979 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19980
19981         renameat: port to Solaris 10, which declares renameat in unistd.h
19982
19983         * lib/renameat.c: Include unistd.h before stdio.h, because
19984         Solaris 10 declares renameat in unistd.h.  Problem encountered
19985         when building GNU tar 1.24 on Solaris 10.
19986
19987 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19988
19989         fdopendir: fix C89 compilation
19990         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19991         compilers.
19992
19993 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19994
19995         inttostr: simplify by removing unnecessary redundancy
19996         * lib/anytostr.c: Don't include verify.h.
19997         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19998         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19999         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20000         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20001         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20002         Likewise.
20003         * modules/inttostr (Depends-on): Remove 'verify'.
20004
20005 2010-10-23  Bruno Haible  <bruno@clisp.org>
20006
20007         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20008         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20009         Reported by Eric Blake.
20010
20011 2010-10-23  Bruno Haible  <bruno@clisp.org>
20012
20013         Tests: Fix LOCALE_JA on MirBSD 10.
20014         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20015         to an UTF-8 locale.
20016         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20017         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20018         Reported by Eric Blake.
20019
20020 2010-10-21  Bruno Haible  <bruno@clisp.org>
20021
20022         nl_langinfo test: Avoid test failure on NetBSD 5.
20023         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20024         Reported by Eric Blake.
20025
20026 2010-10-21  Eric Blake  <eblake@redhat.com>
20027
20028         c-stack: work around libsigsegv 2.8 bug
20029         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20030         overflow on at least PowerPC64.
20031
20032 2010-10-17  Bruno Haible  <bruno@clisp.org>
20033
20034         userspec: Drop redundant file.
20035         * modules/userspec (Files): Remove lib/inttostr.h.
20036
20037 2010-10-17  Bruno Haible  <bruno@clisp.org>
20038
20039         nl_langinfo tests: Silence some warnings.
20040         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20041         Reported by Jim Meyering.
20042
20043 2010-10-17  Bruno Haible  <bruno@clisp.org>
20044
20045         Make use of GCC's attribute __alloc_size__.
20046         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20047         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20048         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20049         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20050         __alloc_size__.
20051         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20052         Suggested by Jim Meyering.
20053
20054 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20055
20056         bootstrap: anchor .gitignore entries.
20057         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20058         with...
20059         (insert_vc_ignore): ... this new function, which prepends `/' to
20060         all .gitignore entries before passing them to
20061         insert_sorted_if_absent.
20062
20063 2010-10-16  Bruno Haible  <bruno@clisp.org>
20064
20065         nextafter: Fix configure check.
20066         * modules/nextafter (configure.ac): Correct expected prototype.
20067
20068 2010-10-16  Bruno Haible  <bruno@clisp.org>
20069
20070         termios: Update documentation.
20071         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20072
20073 2010-10-16  Bruno Haible  <bruno@clisp.org>
20074
20075         tests: Make them compile with TinyCC.
20076         * tests/test-strstr.c (main): Remove parentheses around array
20077         initializer.
20078
20079 2010-10-15  Eric Blake  <eblake@redhat.com>
20080
20081         ignore-value: make header idempotent
20082         * lib/ignore-value.h: Add double-inclusion guards.
20083         Reported by Stefan Berger.
20084
20085 2010-10-15  Jim Meyering  <meyering@redhat.com>
20086
20087         GNUmakefile: handle "stable" target, not "major"
20088         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20089         lists in maint.mk and announce-gen.  Without this, "make stable"
20090         would fail to ensure that $(VERSION) is up to date.
20091
20092 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20093
20094         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20095         & co.
20096
20097 2010-10-14  Bruno Haible  <bruno@clisp.org>
20098
20099         vasnprintf: Don't set errno to 0.
20100         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20101         block that sets it to 0.
20102         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20103
20104 2010-10-14  Bruno Haible  <bruno@clisp.org>
20105
20106         socketlib: Fix.
20107         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20108         gl_PREREQ_SYS_H_WINSOCK2.
20109         Reported by Ian Beckwith <ianb@erislabs.net>.
20110
20111 2010-10-13  Jim Meyering  <meyering@redhat.com>
20112
20113         test-select-stdin.c: avoid warn_unused_result warnings
20114         * tests/test-select-stdin.c: Include "macros.h".
20115         ASSERT that read and fflush succeed.
20116
20117 2010-10-13  Jim Meyering  <meyering@redhat.com>
20118
20119         git-version-gen: do require git-VC'd files in cwd
20120         * build-aux/git-version-gen: Reject a git version string
20121         if there are no commits associated with the current directory.
20122         This avoids an unlikely false-positive (unrelated dir whose parent
20123         repository also contains a tag matching v*), as pointed out
20124         by Giuseppe Scrivano in
20125         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20126
20127 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         argv-iter: omit nonconforming declaration
20130         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20131         enum arg_iter_err declaration, which doesn't conform to C99.
20132         Solaris 10 cc warns about this.
20133
20134 2010-10-13  Eric Blake  <eblake@redhat.com>
20135
20136         termios: fix compilation on mingw
20137         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20138         (gl_TERMIOS_H): Adjust it on mingw.
20139         * modules/termios (Makefile.am): Substitute new key.
20140         * lib/termios.in.h (includes): Make include_next conditional.
20141         * doc/posix-headers/termios.texi (termios.h): Update
20142         documentation.
20143         Reported by Daniel P. Berrange.
20144
20145 2010-10-13  Jim Meyering  <meyering@redhat.com>
20146
20147         git-version-gen: don't require that .git/ be in the current dir
20148         * build-aux/git-version-gen: Adjust this script so that it works
20149         when run from any working directory beneath the top-level .git/-
20150         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20152
20153         test-select: avoid warn_unused_result warnings
20154         * tests/test-select.c: Include "macros.h".
20155         ASSERT that each call to read, write, and pipe succeeds.
20156         While not technically required, also check each "close".
20157         * modules/select-tests (Files): Add tests/macros.h.
20158
20159         test-symlinkat: remove declaration of unused local
20160         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20161
20162         test-inttostr: avoid shadowing warnings
20163         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20164         and use malloc rather than the stack for the same reason as
20165         mentioned in the comment justifying the other allocation.
20166
20167 2010-10-11  Bruno Haible  <bruno@clisp.org>
20168
20169         stdlib: Allow multiple gnulib generated replacements to coexist.
20170         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20171         Reported by Sam Steingold <sds@gnu.org>.
20172
20173 2010-10-11  Jim Meyering  <meyering@redhat.com>
20174
20175         fix a documentation typo
20176         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20177
20178 2010-10-11  Eric Blake  <eblake@redhat.com>
20179
20180         futimens: work around Solaris 11 bug
20181         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20182         * tests/test-futimens.h (test_futimens): Enhance, rather than
20183         weaken test.
20184         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20185
20186 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20187
20188         Indentation.
20189         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20190         higher-level operators more to the left.
20191
20192 2010-10-11  Jim Meyering  <meyering@redhat.com>
20193
20194         test-futimens: avoid unwarranted test failure on Solaris 5.11
20195         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20196         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20197         because it tries to dereference the NULL name argument.
20198
20199 2010-10-11  Bruno Haible  <bruno@clisp.org>
20200
20201         Indentation.
20202         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20203         indentation.
20204
20205 2010-10-11  Jim Meyering  <meyering@redhat.com>
20206
20207         spawn.in.h: make indentation consistent with parentheses
20208         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20209         Make indentation consistent with parentheses.
20210
20211 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20212
20213         Fix mismatched parens in previous commit
20214         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20215         parens.
20216
20217 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20218
20219         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20220
20221         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20222         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20223         * lib/malloca.c: Include "verify.h".
20224         (verify1): Remove, replacing with a verify call.
20225         * lib/relocwrapper.c (verify1): Likewise.
20226         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20227         Likewise.
20228         * modules/malloca (Depends-on): Add 'verify'.
20229         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20230         * modules/vasnprintf (Depends-on): Add 'verify'.
20231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20238
20239         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20240
20241         Formerly the style was sometimes 2*X - 1, because the C standard
20242         was wrongly thought to disallow ?: in integral constant expressions.
20243         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20244         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20245         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20246         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20247         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20248         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20249         verify that time_t cannot be floating.
20250
20251 2010-10-08  Eric Blake  <eblake@redhat.com>
20252
20253         time: enforce recent POSIX ruling that time_t is integral
20254         * lib/time.in.h (__time_t_must_be_integral): Detect any
20255         problematic systems, allowing the rest of gnulib to assume POSIX.
20256
20257 2010-10-08  Jim Meyering  <meyering@redhat.com>
20258
20259         fdopendir: fix a bug on systems lacking openat and /proc support
20260         OpenBSD 4.7 is one such system.  The most noticeable effect was
20261         failure of any application making nontrivial use of fts: rm, du,
20262         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20263           ./rm: traversal failed: `a': Bad file descriptor
20264         Debugging that, you see that even though FD 6 was closed just
20265         prior to the opendir call in fd_clone_opendir, its resulting
20266         dir->dd_fd was 8, rather than the expected value of 6:
20267
20268         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20269         93                close (fd);
20270         (gdb) n
20271         94                dir = fd_clone_opendir (dupfd);
20272         (gdb) n
20273         95                saved_errno = errno;
20274         (gdb) p dir->dd_fd
20275         $11 = 8
20276
20277         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20278         The problem is that on OpenBSD, fd_clone_opendir has to resort
20279         to using the old-style save/restore CWD mechanism, due to its
20280         lack of openat/proc support, and *that* would steal the FD (6)
20281         that opendir was supposed to use.
20282
20283         The fix is to squirrel away the desired FD so that save_cwd uses a
20284         different one, and then free the dest FD right before calling opendir.
20285         That guarantees opendir will use the required file descriptor.
20286
20287         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20288
20289 2010-10-08  Bruno Haible  <bruno@clisp.org>
20290
20291         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20292         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20293
20294 2010-10-08  Bruno Haible  <bruno@clisp.org>
20295
20296         nanosleep: Make replacement POSIX compliant.
20297         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20298         is out of range.
20299         Reported by Jim Meyering.
20300
20301 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20302
20303         bootstrap: add hook for altering gnulib.mk, for Bison
20304         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20305         the Bison bootstrapping process can rewrite file names and variables
20306         in this file before later parts of 'bootstrap' use the file.
20307         Bison wants to include lib/gnulib.mk from the top-level makefile,
20308         so it needs the file names in this file to be relative to the top
20309         level, not relative to lib; plus it needs variable names to be
20310         rewritten.
20311         (slurp): Use the new function.
20312
20313         bootstrap: reformat for readability
20314         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20315
20316 2010-10-08  Eric Blake  <eblake@redhat.com>
20317
20318         docs: update cygwin progress
20319         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20320         1.7.7.
20321         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20322         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20323         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20324         * doc/posix-functions/carg.texi (carg): Likewise.
20325         * doc/posix-functions/cargf.texi (cargf): Likewise.
20326         * doc/posix-functions/casin.texi (casin): Likewise.
20327         * doc/posix-functions/casinf.texi (casinf): Likewise.
20328         * doc/posix-functions/casinh.texi (casinh): Likewise.
20329         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20330         * doc/posix-functions/catan.texi (catan): Likewise.
20331         * doc/posix-functions/catanf.texi (catanf): Likewise.
20332         * doc/posix-functions/catanh.texi (catanh): Likewise.
20333         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20334         * doc/posix-functions/ccos.texi (ccos): Likewise.
20335         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20336         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20337         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20338         * doc/posix-functions/cexp.texi (cexp): Likewise.
20339         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20340         * doc/posix-functions/cimag.texi (cimag): Likewise.
20341         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20342         * doc/posix-functions/clog.texi (clog): Likewise.
20343         * doc/posix-functions/clogf.texi (clogf): Likewise.
20344         * doc/posix-functions/conj.texi (conj): Likewise.
20345         * doc/posix-functions/conjf.texi (conjf): Likewise.
20346         * doc/posix-functions/cpow.texi (cpow): Likewise.
20347         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20348         * doc/posix-functions/cproj.texi (cproj): Likewise.
20349         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20350         * doc/posix-functions/creal.texi (creal): Likewise.
20351         * doc/posix-functions/crealf.texi (crealf): Likewise.
20352         * doc/posix-functions/csin.texi (csin): Likewise.
20353         * doc/posix-functions/csinf.texi (csinf): Likewise.
20354         * doc/posix-functions/csinh.texi (csinh): Likewise.
20355         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20356         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20357         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20358         * doc/posix-functions/ctan.texi (ctan): Likewise.
20359         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20360         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20361         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20362         * doc/posix-headers/complex.texi (complex.h): Likewise.
20363
20364 2010-10-07  Jim Meyering  <meyering@redhat.com>
20365
20366         parse-datetime: avoid compilation failure on OpenBSD 4.7
20367         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20368         This works around a compilation failure on OpenBSD 4.7:
20369         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20370
20371 2010-10-07  Eric Blake  <eblake@redhat.com>
20372
20373         docs: update cygwin progress
20374         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20375         1.7.6.
20376         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20377         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20378         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20379         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20380         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20381         Likewise.
20382         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20383         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20384         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20385         Likewise.
20386         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20387         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20388         Likewise.
20389         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20390         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20391         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20392         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20393         Likewise.
20394         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20395         Likewise.
20396         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20397
20398         docs: update parse-datetime history
20399         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20400         documentation of this function's history and alternatives.
20401
20402         cygwin: use more robust version check
20403         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20404         exclude an eventual cygwin 1.9.1.
20405         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20407         (gl_FUNC_STRCASESTR): Likewise.
20408         Reported by Bruno Haible.
20409
20410 2010-10-06  Bruno Haible  <bruno@clisp.org>
20411
20412         string, sys_select: Avoid #including large headers unless necessary.
20413         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20414         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20415         OSF/1, BeOS, Haiku.
20416         Reported by Jim Meyering.
20417
20418 2010-10-05  Eric Blake  <eblake@redhat.com>
20419
20420         memmem, strstr, strcasestr: fix bug with long periodic needle
20421         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20422         periodic needle having false positive.
20423         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20424         and cygwin 1.7.7.
20425         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20427         (gl_FUNC_STRCASESTR): Likewise.
20428         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20429         * tests/test-memmem.c (main): Expose the bug.
20430         * tests/test-strcasestr.c (main): Likewise.
20431         * tests/test-strstr.c (main): Likewise.
20432         * tests/test-c-strcasestr.c (main): Likewise.
20433         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20434         * doc/posix-functions/strstr.texi (strstr): Likewise.
20435         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20436         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20437
20438 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20439
20440         parse-datetime: do some more renaming
20441         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20442         parse_datetime, not get_date.  Mention the renaming.
20443         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20444         in comments.
20445         * m4/bison.m4: Likewise.
20446
20447 2010-10-05  Eric Blake  <eblake@redhat.com>
20448
20449         parse-datetime: better name than get_date
20450         * NEWS: Reword the deprecation notice.
20451         * modules/get_date: Rename to modules/parse-datetime.
20452         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20453         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20454         * lib/get_date.y: Rename to lib/parse-datetime.y.
20455         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20456         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20457         * doc/getdate.texi: Provide fallback wrapper.
20458         * lib/getdate.h: Move guts, and wrap...
20459         * lib/parse-datetime.h: ...new file.
20460         * lib/parse-datetime.y (get_date): Rename...
20461         (parse_datetime): ...to this.
20462         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20463         (gl_PARSE_DATETIME): ...to this.
20464         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20465         documentation.
20466         * modules/getdate (Files): Provide fallback docs and header.
20467         (Notice, Depends-on): Update references.
20468         * tests/test-parse-datetime.c: Likewise.
20469         * DEPENDENCIES: Likewise.
20470         * MODULES.html.sh (Date and time <time.h>): Likewise.
20471         * doc/parse-datetime.texi (Date input formats)
20472         (Authors of parse_datetime): Likewise.
20473         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20474         (Include): Likewise.
20475         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20476         * gnulib-tool: Likewise.
20477         * m4/bison.m4 (gl_BISON): Likewise.
20478         Suggested by Bruno Haible.
20479
20480 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20481
20482         more ports to Solaris tr, which needs [] around ranges
20483         * gnulib-tool: Solaris tr needs [] around ranges.
20484         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20485         * tests/test-pipe-filter-gi1.c (main): Likewise.
20486         * tests/test-pipe-filter-ii1.c (main): Likewise.
20487
20488 2010-10-05  Eric Blake  <eblake@redhat.com>
20489
20490         bootstrap: fix Solaris regression
20491         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20492         around ranges.
20493         Reported by Pádraig Brady.
20494
20495         bootstrap: work with pkg-config
20496         * build-aux/bootstrap (check_versions): Also transliterate - in
20497         prerequisite name.
20498         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20499         prerequisites that were already found, to avoid confusion.
20500         Reported by Justin Clift.
20501
20502         faccessat: remove unused wrappers
20503         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20504         presence of these wrappers dragged in -lgen on Solaris.
20505         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20506
20507 2010-10-05  Jim Meyering  <meyering@redhat.com>
20508
20509         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20510         * Makefile (sc_pragma_columns): New syntax-check rule.
20511
20512 2010-10-04  Bruno Haible  <bruno@clisp.org>
20513
20514         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20515         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20516         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20517         Reported by Bruce Korb and Eric Blake.
20518
20519 2010-10-04  Bruno Haible  <bruno@clisp.org>
20520
20521         threadlib: Make option --with-libpth-prefix work.
20522         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20523         use $LIBPTH, not just -lpth.
20524
20525 2010-10-04  Bruno Haible  <bruno@clisp.org>
20526
20527         Avoid line length limitation from HP NonStop system header files.
20528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20529         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20530         * lib/ctype.in.h: Likewise.
20531         * lib/dirent.in.h: Likewise.
20532         * lib/errno.in.h: Likewise.
20533         * lib/fcntl.in.h: Likewise.
20534         * lib/float.in.h: Likewise.
20535         * lib/getopt.in.h: Likewise.
20536         * lib/iconv.in.h: Likewise.
20537         * lib/inttypes.in.h: Likewise.
20538         * lib/langinfo.in.h: Likewise.
20539         * lib/locale.in.h: Likewise.
20540         * lib/math.in.h: Likewise.
20541         * lib/netdb.in.h: Likewise.
20542         * lib/netinet_in.in.h: Likewise.
20543         * lib/poll.in.h: Likewise.
20544         * lib/pthread.in.h: Likewise.
20545         * lib/pty.in.h: Likewise.
20546         * lib/sched.in.h: Likewise.
20547         * lib/se-selinux.in.h: Likewise.
20548         * lib/search.in.h: Likewise.
20549         * lib/signal.in.h: Likewise.
20550         * lib/spawn.in.h: Likewise.
20551         * lib/stdarg.in.h: Likewise.
20552         * lib/stddef.in.h: Likewise.
20553         * lib/stdint.in.h: Likewise.
20554         * lib/stdio.in.h: Likewise.
20555         * lib/stdlib.in.h: Likewise.
20556         * lib/string.in.h: Likewise.
20557         * lib/strings.in.h: Likewise.
20558         * lib/sys_file.in.h: Likewise.
20559         * lib/sys_ioctl.in.h: Likewise.
20560         * lib/sys_select.in.h: Likewise.
20561         * lib/sys_socket.in.h: Likewise.
20562         * lib/sys_stat.in.h: Likewise.
20563         * lib/sys_time.in.h: Likewise.
20564         * lib/sys_times.in.h: Likewise.
20565         * lib/sys_utsname.in.h: Likewise.
20566         * lib/sys_wait.in.h: Likewise.
20567         * lib/sysexits.in.h: Likewise.
20568         * lib/termios.in.h: Likewise.
20569         * lib/time.in.h: Likewise.
20570         * lib/unistd.in.h: Likewise.
20571         * lib/wchar.in.h: Likewise.
20572         * lib/wctype.in.h: Likewise.
20573         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20574         * modules/ctype (Makefile.am): Likewise.
20575         * modules/dirent (Makefile.am): Likewise.
20576         * modules/errno (Makefile.am): Likewise.
20577         * modules/fcntl-h (Makefile.am): Likewise.
20578         * modules/float (Makefile.am): Likewise.
20579         * modules/getopt-posix (Makefile.am): Likewise.
20580         * modules/iconv-h (Makefile.am): Likewise.
20581         * modules/inttypes (Makefile.am): Likewise.
20582         * modules/langinfo (Makefile.am): Likewise.
20583         * modules/locale (Makefile.am): Likewise.
20584         * modules/math (Makefile.am): Likewise.
20585         * modules/netdb (Makefile.am): Likewise.
20586         * modules/netinet_in (Makefile.am): Likewise.
20587         * modules/poll-h (Makefile.am): Likewise.
20588         * modules/pthread (Makefile.am): Likewise.
20589         * modules/pty (Makefile.am): Likewise.
20590         * modules/sched (Makefile.am): Likewise.
20591         * modules/search (Makefile.am): Likewise.
20592         * modules/selinux-h (Makefile.am): Likewise.
20593         * modules/signal (Makefile.am): Likewise.
20594         * modules/spawn (Makefile.am): Likewise.
20595         * modules/stdarg (Makefile.am): Likewise.
20596         * modules/stddef (Makefile.am): Likewise.
20597         * modules/stdint (Makefile.am): Likewise.
20598         * modules/stdio (Makefile.am): Likewise.
20599         * modules/stdlib (Makefile.am): Likewise.
20600         * modules/string (Makefile.am): Likewise.
20601         * modules/strings (Makefile.am): Likewise.
20602         * modules/sys_file (Makefile.am): Likewise.
20603         * modules/sys_ioctl (Makefile.am): Likewise.
20604         * modules/sys_select (Makefile.am): Likewise.
20605         * modules/sys_socket (Makefile.am): Likewise.
20606         * modules/sys_stat (Makefile.am): Likewise.
20607         * modules/sys_time (Makefile.am): Likewise.
20608         * modules/sys_times (Makefile.am): Likewise.
20609         * modules/sys_utsname (Makefile.am): Likewise.
20610         * modules/sys_wait (Makefile.am): Likewise.
20611         * modules/sysexits (Makefile.am): Likewise.
20612         * modules/termios (Makefile.am): Likewise.
20613         * modules/time (Makefile.am): Likewise.
20614         * modules/unistd (Makefile.am): Likewise.
20615         * modules/wchar (Makefile.am): Likewise.
20616         * modules/wctype (Makefile.am): Likewise.
20617
20618 2010-10-04  Bruno Haible  <bruno@clisp.org>
20619
20620         read-file tests: Avoid a test failure on NonStop Kernel.
20621         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20622         a regular file.
20623         Reported by Joachim Schmitz <schmitz@hp.com>.
20624
20625 2010-10-03  Bruno Haible  <bruno@clisp.org>
20626
20627         gnulib-tool: Fixes for --create-testdir with --libtool.
20628         * gnulib-tool (func_get_automake_snippet): Don't augment
20629         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20630         an executable.
20631         (func_create_testdir): Handle module 'alloca' like func_import.
20632         Reported by Bruce Korb <bruce.korb@gmail.com>.
20633
20634 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20635
20636         Avoid some lines longer than 80 characters.
20637         * lib/stdint.in.h: Break long comment lines.
20638         * lib/math.in.h: Likewise.
20639         (_GL_NUM_UINT_WORDS): New macro, for readability.
20640         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20641         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20642         * lib/stdlib.in.h: Likewise.
20643         * lib/spawn.in.h: Likewise.
20644         * lib/sys_socket.in.h: Update an URL.
20645         * lib/sys_stat.in.h: Break long line.
20646
20647 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20648
20649         Improve pmccabe2html.
20650         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20651         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20652         when the sources change. Remove the line in the HTML about "Used
20653         ranges" (which implied that there might be other unused ranges),
20654         rename "Resume" to "Summary" (easier to understand for more users).
20655         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20656         styles, and some unnecessary blank lines.
20657
20658 2010-10-03  Bruno Haible  <bruno@clisp.org>
20659             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20660
20661         acl: Add support for ACLs on NonStop Kernel.
20662         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20663         Check whether the function aclsort() exists.
20664         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20665         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20666         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20667         (acl_nontrivial [HAVE_ACLSORT]: New function.
20668         (file_has_acl): Implement for NonStop Kernel.
20669         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20670         (qset_acl): Implement for NonStop Kernel.
20671         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20672         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20673         (main): Implement for NonStop Kernel.
20674         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20675         Kernel. Handle this flavor.
20676         * tests/test-set-mode-acl.sh: Likewise.
20677         * tests/test-copy-acl.sh: Likewise.
20678         * tests/test-copy-file.sh: Likewise.
20679
20680 2010-10-03  Bruno Haible  <bruno@clisp.org>
20681
20682         Info about ACLs on NonStop Kernel.
20683         * doc/acl-resources.txt: Add info about NonStop Kernel.
20684         References by Joachim Schmitz <schmitz@hp.com>.
20685
20686 2010-10-02  Bruno Haible  <bruno@clisp.org>
20687
20688         Define missing EDQUOT on NonStop Kernel.
20689         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20690         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20692         missing.
20693         * doc/posix-headers/errno.texi: Mention the NSK bug.
20694         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20695         Reported by Joachim Schmitz <schmitz@hp.com>.
20696
20697 2010-10-02  Bruno Haible  <bruno@clisp.org>
20698
20699         Update doc for POSIX:2008.
20700         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20701         Update URL of POSIX specification.
20702
20703 2010-10-02  Bruno Haible  <bruno@clisp.org>
20704
20705         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20706         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20707         from gnulib, not from Automake.
20708
20709 2010-10-02  Bruno Haible  <bruno@clisp.org>
20710
20711         New module 'system-posix'.
20712         * modules/system-posix: New file.
20713         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20714         module is present.
20715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20716         GNULIB_SYSTEM_POSIX.
20717         * modules/stdlib (Depends-on): Remove sys_wait.
20718         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20719         * doc/posix-functions/system.texi: Mention the new module.
20720         * doc/posix-headers/stdlib.texi: Likewise.
20721         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20722         define test_sys_wait_macros to a no-op.
20723         Reported by Sam Steingold <sds@gnu.org>.
20724
20725 2010-09-30  Bruno Haible  <bruno@clisp.org>
20726
20727         More renaming from 'getdate' to 'get_date'.
20728         * doc/get_date.texi: Renamed from doc/getdate.texi.
20729         * modules/get_date (Files): Update.
20730         * MODULES.html.sh (Date and time <time.h>): Update.
20731         * DEPENDENCIES: Update.
20732         * gnulib-tool: Update comment.
20733         * m4/bison.m4 (gl_BISON): Likewise.
20734         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20735
20736 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20737
20738         bootstrap: support ACLOCAL_FLAGS during aclocal
20739         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20740         can add additional -I dir for third-party .m4 files.
20741
20742 2010-09-30  Eric Blake  <eblake@redhat.com>
20743
20744         bootstrap: use glibtoolize on MacOS
20745         * build-aux/bootstrap (check_versions): Convert libtool into
20746         libtoolize.
20747         (tool search): Move libtool check earlier, and look for
20748         glibtoolize for MacOS.
20749         (gnulib_tool_options): Auto-add --libtool when appropriate.
20750         Reported by Justin Clift.
20751
20752         poll: fix typo that broke test on MacOS
20753         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20754         Reported by Justin Clift.
20755
20756         getdate: rename to get_date
20757         Note: getdate.h is not renamed, to minimize client impact.
20758         * modules/getdate: Mark obsolete.  Move old contents...
20759         * modules/get_date: ...to new module name.
20760         * modules/getdate-tests: Move...
20761         * modules/get_date-tests: ...here.
20762         * m4/getdate.m4: Move...
20763         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20764         * lib/getdate.y: Move...
20765         * lib/get_date.y: ...here.
20766         * tests/test-getdate.c: Move...
20767         * tests/test-get_date.c: ...here.
20768         * doc/posix-functions/getdate.texi (getdate): Update name.
20769         * NEWS: Mention the change.
20770
20771 2010-09-29  Bruno Haible  <bruno@clisp.org>
20772
20773         Separate the module 'waitpid' from the module 'sys_wait'.
20774         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20775         present.
20776         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20777         gl_MODULE_INDICATOR_FOR_TESTS.
20778         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20779         * modules/sys_wait (Depends-on): Remove waitpid.
20780         (Makefile.am): Substitute GNULIB_WAITPID.
20781         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20782         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20783         signature only if the 'waitpid' module is present.
20784         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20785         * NEWS: Mention the change.
20786         * modules/grantpt (Depends-on): Add waitpid.
20787         * modules/wait-process (Depends-on): Likewise.
20788
20789 2010-09-29  Bruno Haible  <bruno@clisp.org>
20790
20791         More tests for module 'sys_wait'.
20792         * modules/sys_wait-c++-tests: New file.
20793         * tests/test-sys_wait-c++.cc: New file.
20794         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20795         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20796
20797 2010-09-29  Bruno Haible  <bruno@clisp.org>
20798
20799         New module 'waitpid'.
20800         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20801         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20802         Don't include <process.h>.
20803         (waitpid): Declare only, using modern idiom.
20804         * m4/waitpid.m4: New file.
20805         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20806         * modules/waitpid: New file.
20807         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20808         (Makefile.am): Update.
20809         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20810
20811 2010-09-28  Bruno Haible  <bruno@clisp.org>
20812
20813         poll: Assume ANSI C.
20814         * lib/poll.c (poll): Use an ANSI C declaration.
20815
20816 2010-09-28  Bruno Haible  <bruno@clisp.org>
20817
20818         poll-h: Create poll.h on all platforms.
20819         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20820         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20821         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20822         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20823         (gl_REPLACE_POLL_H): Don't set POLL_H.
20824         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20825         * modules/poll-h (Depends-on): Add include_next.
20826         (Makefile.am): Create poll.h unconditionally. Substitute also
20827         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20828
20829 2010-09-28  Bruno Haible  <bruno@clisp.org>
20830
20831         Tests for module 'poll-h'.
20832         * modules/poll-h-c++-tests: New file.
20833         * tests/test-poll-h-c++.cc: New file.
20834
20835         Tests for module 'poll-h'.
20836         * modules/poll-h-tests: New file.
20837         * tests/test-poll-h.c: New file.
20838
20839 2010-09-28  Bruno Haible  <bruno@clisp.org>
20840
20841         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20842         * modules/poll-h (Depends-on): Add 'extensions'.
20843
20844 2010-09-28  Bruno Haible  <bruno@clisp.org>
20845
20846         New module 'poll-h'.
20847         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20848         (poll): Use modern idiom.
20849         * modules/poll-h: New file.
20850         * modules/poll (Files): Remove lib/poll.in.h.
20851         (Depends-on): Add poll-h.
20852         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20853         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20854         * m4/poll_h.m4: New file.
20855         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20856         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20857         and invoke gl_REPLACE_POLL_H.
20858         * lib/poll.c: Use common idiom.
20859         * tests/test-poll.c: Likewise.
20860         * doc/posix-headers/poll.texi: Mention the poll-h module.
20861         Suggested by Eric Blake.
20862
20863 2010-09-26  Bruno Haible  <bruno@clisp.org>
20864
20865         sys_wait: Implement WSTOPSIG.
20866         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20867         Reported by Simon Josefsson.
20868
20869 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20870
20871         stdlib, sys_wait: Avoid compilation error on mingw.
20872         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20873
20874 2010-09-26  Bruno Haible  <bruno@clisp.org>
20875
20876         stdlib tests: Avoid code duplication.
20877         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20878         * modules/sys_wait-tests (Files): Likewise.
20879         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20880         * tests/test-stdlib.c: Include test-sys_wait.h.
20881         (main): Invoke test_sys_wait_macros.
20882         * tests/test-sys_wait.c: Include test-sys_wait.h.
20883         (main): Invoke test_sys_wait_macros.
20884
20885 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20886
20887         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20888         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20889         sure Windows sockets are working before calling getaddrinfo.
20890         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20891         * doc/gnulib.texi (Windows sockets): Fix typo.
20892
20893 2010-09-25  Bruno Haible  <bruno@clisp.org>
20894
20895         Tests for module 'regex-quote'.
20896         * modules/regex-quote-tests: New file.
20897         * tests/test-regex-quote.c: New file.
20898
20899         New module 'regex-quote'.
20900         * lib/regex-quote.h: New file.
20901         * lib/regex-quote.c: New file.
20902         * modules/regex-quote: New file.
20903         Suggested by Reuben Thomas <rrt@sc3d.org>.
20904
20905 2010-09-24  Bruno Haible  <bruno@clisp.org>
20906
20907         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20908         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20909
20910 2010-09-23  Bruno Haible  <bruno@clisp.org>
20911
20912         setenv: Relax license.
20913         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20914         Blake.
20915         Requested by Eric Blake.
20916
20917 2010-09-22  Bruno Haible  <bruno@clisp.org>
20918
20919         termios: Relax license.
20920         * modules/termios (License): Change to LGPLv2+.
20921         Requested by Eric Blake.
20922
20923 2010-09-22  Bruno Haible  <bruno@clisp.org>
20924
20925         threadlib: Allow the package to change the default to 'no'.
20926         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20927         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20928         Reported by Paul Eggert.
20929
20930 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20931             Bruno Haible  <bruno@clisp.org>
20932
20933         Fix endless loop in mbmemcasecoll.
20934         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20935         byte.
20936         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20937
20938 2010-09-22  Bruno Haible  <bruno@clisp.org>
20939
20940         Tests for module 'memcoll'.
20941         * modules/memcoll-tests: New file.
20942         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20943
20944         memcoll, xmemcoll: Clarify size vs. length.
20945         * modules/memcoll.c (memcoll0): Clarify specification.
20946         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20947         passed to collate_error.
20948
20949 2010-09-22  Bruno Haible  <bruno@clisp.org>
20950
20951         Tests for module 'memcasecmp'.
20952         * modules/memcasecmp-tests: New file.
20953         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20954
20955 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20956
20957         * lib/pthread.in.h: Add split double-inclusion guard, and include
20958         system <pthread.h> if there is one.  Use @@-style as in other
20959         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20960         pthread.h doesn't.
20961         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20962         (pthread_mutexattr_settype, pthread_mutex_trylock):
20963         New static inline functions, if there's no system <pthread.h>.
20964         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20965         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20966         Approximate with mutexes if the system lacks spinlocks, as in
20967         MacOS.
20968         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20969         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20970         @@-style.  Check for spinlocks separately.
20971         (gl_PTHREAD_DEFAULTS): New macro.
20972         * modules/pthread: Redo to use a more typical style for in.h files.
20973
20974 2010-09-21  Eric Blake  <eblake@redhat.com>
20975
20976         net_if: enhance tests
20977         * tests/test-net_if.c (main): Move signature checks earlier.
20978         Print failures to stderr.
20979         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20980         Document the bug that we do not yet fix.
20981
20982 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20983
20984         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20985         about gnulib, not GSS.
20986
20987 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20988
20989         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20990         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20991         for Emacs.
20992         * build-aux/pmccabe2html: Make Makefile.am example code more
20993         cut-and-paste friendly.
20994
20995 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20996
20997         * tests/test-net_if.c: New file.
20998         * modules/net_if-tests: New file.
20999
21000 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21001
21002         pthread: add pthread_spin_destroy
21003         * lib/pthread.in.h (pthread_spin_destroy): New function.
21004
21005 2010-09-19  Bruno Haible  <bruno@clisp.org>
21006
21007         gnulib-tool: Fix --help output.
21008         * gnulib-tool (func_usage): Fix help message.
21009         Reported by Reuben Thomas <rrt@sc3d.org>.
21010
21011 2010-09-18  Jim Meyering  <meyering@redhat.com>
21012
21013         maint.mk: avoid unexpanded \n in two diagnostics
21014         * top/maint.mk (sc_prohibit_always_true_header_tests):
21015         Don't use a literal \n in a halt=... assignment.  It would not be
21016         expanded, and the two \n bytes would appear in the diagnostic output
21017         rather than the desired newline.  Use halt=$$(printf ... instead.
21018         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21019
21020 2010-09-18  Bruno Haible  <bruno@clisp.org>
21021
21022         netinet_in: Doc tweak.
21023         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21025
21026 2010-09-18  Jim Meyering  <meyering@redhat.com>
21027
21028         init.sh: correct an outdated comment
21029         * tests/init.sh (create_exe_shims_):  s/function/alias/
21030
21031         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21032         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21033         a file named "*.exe" is removed between the glob expansion and the
21034         processing of that oddly named file.
21035
21036 2010-09-17  Eric Blake  <eblake@redhat.com>
21037
21038         mirbsd: add some more support
21039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21040         in BSD family.
21041         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21042         devices as OpenBSD.
21043         * m4/host-os.m4 (mirbsd): Add MirBSD.
21044
21045         tests: fix unportable assumption on sys/wait.h
21046         * tests/test-sys_wait.c (main): Relax test.
21047         * tests/test-stdlib.c (main): Likewise.
21048
21049         init.sh: accomodate directory with no .exes
21050         * tests/init.sh: Accomodate directory containing only scripts.
21051
21052         tests: avoid compiler warning
21053         * tests/test-stdlib.c (main): Use the variable.
21054
21055         fdutimens, fdutimensat: update signature, again
21056         * lib/utimens.h (gl_futimens): Delete, and move signature...
21057         (fdutimens): ...here.
21058         (fdutimensat): Rearrange signature.
21059         (lutimensat): Rename variable for clarity.
21060         * lib/fdutimensat.c (fdutimensat): Update signature.
21061         * lib/utimens.c (fdutimens): Likewise.
21062         (gl_futimens): Delete.
21063         (utimens, lutimens): Update callers.
21064         * lib/futimens.c (futimens): Likewise.
21065         * tests/test-fdutimensat.c: Likewise.
21066         * tests/test-utimens.c: Likewise.
21067         * tests/test-futimens.h: Update comment.
21068         * NEWS: Mention this.
21069         Suggested by Paul Eggert.
21070
21071 2010-09-17  Bruno Haible  <bruno@clisp.org>
21072
21073         Take over the maintenance of some older macros from Autoconf.
21074         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21075         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21076         GNU Autoconf.
21077         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21078         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21079
21080 2010-09-17  Eric Blake  <eblake@redhat.com>
21081
21082         fdutimensat: drop atflag validation
21083         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21084         with valid fd, to close a race scenario where futimens is
21085         unsupported and FILE was replaced by a symlink.
21086         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21087         accordingly.
21088         Suggested by Paul Eggert.
21089
21090 2010-09-16  Bruno Haible  <bruno@clisp.org>
21091
21092         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21093         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21094
21095 2010-09-16  Bruno Haible  <bruno@clisp.org>
21096
21097         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21098         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21099         login_tty exists.
21100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21101
21102 2010-09-16  Bruno Haible  <bruno@clisp.org>
21103
21104         login_tty: Make the replacement code work on BSD systems.
21105         * lib/login_tty.c: Include <sys/ioctl.h>.
21106         (login_tty): Use ioctl TIOCSCTTY when available.
21107         * modules/login_tty (Depends-on): Add sys_ioctl.
21108         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21109
21110 2010-09-16  Bruno Haible  <bruno@clisp.org>
21111
21112         login_tty: Stricter unit test.
21113         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21114         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21115         and tcgetsid() after login_tty.
21116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21117
21118 2010-09-16  Bruno Haible  <bruno@clisp.org>
21119
21120         New module 'tcgetsid'.
21121         * lib/tcgetsid.c: New file.
21122         * m4/tcgetsid.m4: New file.
21123         * modules/tcgetsid: New file.
21124         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21125         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21126         GNULIB_TCGETSID, HAVE_TCGETSID.
21127         * lib/termios.in.h: Include <sys/types.h>.
21128         (tcgetsid): New declaration.
21129         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21130         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21131         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21132         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21133
21134 2010-09-16  Bruno Haible  <bruno@clisp.org>
21135
21136         Tests for module 'termios'.
21137         * modules/termios-c++-tests: New file.
21138         * modules/termios-tests: New file.
21139         * tests/test-termios-c++.cc: New file.
21140         * tests/test-termios.c: New file.
21141
21142         New module 'termios'.
21143         * modules/termios: New file.
21144         * lib/termios.in.h: New file.
21145         * m4/termios_h.m4: New file.
21146         * doc/posix-headers/termios.texi: Mention the new module.
21147
21148 2010-09-16  Eric Blake  <eblake@redhat.com>
21149
21150         fdutimensat: add an atflag parameter
21151         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21152         * lib/utimens.h (fdutimensat): Update prototype.
21153         * tests/test-fdutimensat.c: Adjust test to match.
21154         * NEWS: Document the change.
21155         Suggested by Paul Eggert.
21156
21157 2010-09-16  Bruno Haible  <bruno@clisp.org>
21158
21159         Fix typos in comments.
21160         * lib/striconveh.h: Fix typo in comment.
21161         * lib/login_tty.c (login_tty): Likewise.
21162
21163 2010-09-15  Bruno Haible  <bruno@clisp.org>
21164
21165         stdlib: clarify MirBSD WEXITSTATUS bug
21166         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21167         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21168
21169 2010-09-15  Eric Blake  <eblake@redhat.com>
21170
21171         stdlib: work around MirBSD WEXITSTATUS bug
21172         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21173         * modules/stdlib (Depends-on): Add sys_wait.
21174         * tests/test-sys_wait.c (main): Enhance test.
21175         * tests/test-stdlib.c (main): Likewise.
21176         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21177
21178         docs: mention MacOS issue with WEXITSTATUS(constant)
21179         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21180         issue.
21181         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21182
21183         strnlen: add tests
21184         * modules/strnlen-tests: New file.
21185         * tests/test-strnlen.c: Likewise.
21186
21187 2010-09-14  Bruno Haible  <bruno@clisp.org>
21188
21189         unistr/base: Avoid link errors when module 'libunistring' is also used.
21190         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21191         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21192         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21193         Declare also when HAVE_LIBUNISTRING is set.
21194         Reported by Pádraig Brady <P@draigbrady.com>.
21195
21196 2010-09-14  Eric Blake  <eblake@redhat.com>
21197
21198         test-rawmemchr: make more robust
21199         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21200         (Depends-on, configure.ac): Add needed prerequisites to use it.
21201         * modules/memchr-tests (Files, Depends-on, configure.ac):
21202         Likewise, to avoid implicit reliance on memchr module prereqs.
21203         * tests/test-memchr.c (main): Ensure proper masking.
21204         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21205         reads.
21206
21207         memchr: detect glibc Alpha bug
21208         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21209         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21210         Alpha.
21211         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21212         * tests/test-memchr.c (main): Enhance test.
21213         Reported by Nelson H. F. Beebe.
21214
21215 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21216
21217         fts, getcwd, glob: audit for dirfd returning -1
21218         * lib/fts.c (opendir): Remove #define; no longer used.
21219         (opendirat): New arg PDIR_FD.  All callers changed.
21220         (fts_build, _opendir2): Use new opendirat to avoid the need for
21221         dirfd, or for checking whether dirfd returns a negative value.
21222         Don't use opendir; always use openat followed by fdopendir.
21223         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21224         it.
21225         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21226         returns -1 here.
21227         * modules/fts (Depends-on): Remove dirfd.
21228         * modules/getcwd (Depends-on): Likewise.
21229
21230 2010-09-13  Eric Blake  <eblake@redhat.com>
21231
21232         float: fix broken MirBSD header
21233         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21234         * doc/posix-headers/float.texi (float.h): Document it.
21235
21236 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21237
21238         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21239         * lib/fts.c (opendirat): New arg extra_flags.
21240         (__opendir2): Use it to avoid following symlinks when opening
21241         a directory, if symlinks are not supposed to be followed.  See
21242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21243
21244         fdopendir: preserve argument fd before returning
21245         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21246         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21247         (fdopendir): Use them, arranging for FD to be open to the same
21248         directory that it was when it started.  (It might be temporarily
21249         closed while fdopendir is running, so this not thread- or
21250         signal-safe.)  Be careful to do the right thing even when file
21251         descriptors are scarce and dup fails with errno == EMFILE.  See
21252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21253
21254 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21255
21256         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21257         * NEWS: Document change.
21258         * m4/regex.m4: Disable test for regoff_t size.
21259
21260 2010-09-13  Jim Meyering  <meyering@redhat.com>
21261
21262         fts: don't operate on an invalid file descriptor after failed dup
21263         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21264         negative file descriptor.
21265
21266 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21267
21268         savedir: add streamsavedir, deprecate fdsavedir
21269         * NEWS: Mention deprecation of fdsavedir.
21270         * lib/savedir.c (streamsavedir): New extern function, whose name
21271         ends in "savedir" to be consistent with the others.  This differs
21272         from savedirstream in that it doesn't close its argument.  The
21273         next version of GNU tar will use this instead of fdsavedir, to
21274         avoid some race conditions and conserve file descriptors.
21275         (savedirstream): Reimplement as a wrapper around streamsavedir.
21276         (fdsavedir): Add a comment deprecating this function.  As far as
21277         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21278         * lib/savedir.h (streamsavedir): New decl.
21279         (fdsavedir): Add a comment deprecating this.
21280
21281 2010-09-10  Bruno Haible  <bruno@clisp.org>
21282
21283         langinfo: Fix last commit.
21284         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21285         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21287
21288 2010-09-10  Bruno Haible  <bruno@clisp.org>
21289
21290         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21291         * lib/progreloc.c (O_EXEC): Define fallback.
21292
21293 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21294
21295         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21296         * NEWS: Document recent changes to fcntl-h.
21297         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21298         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21299         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21300         Similarly for O_SEARCH; this last was already true, but not documented.
21301         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21302         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21303         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21304         Likewise.
21305         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21306         is zero, not whether it is defined.
21307         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21308         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21309         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21310
21311 2010-09-10  Bruno Haible  <bruno@clisp.org>
21312
21313         langinfo, nl_langinfo: Fix for IRIX 5.3.
21314         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21315         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21316         HAVE_LANGINFO_YESEXPR.
21317         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21318         HAVE_LANGINFO_YESEXPR.
21319         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21320         HAVE_LANGINFO_T_FMT_AMPM is 0.
21321         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21322         HAVE_LANGINFO_YESEXPR is 0.
21323         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21324         NOEXPR.
21325         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21326         * doc/posix-functions/nl_langinfo.texi: Likewise.
21327         Reported by Eric Blake.
21328
21329 2010-09-10  Bruno Haible  <bruno@clisp.org>
21330
21331         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21332         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21333         on FreeBSD 8.0 and OpenBSD 4.6.
21334         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21335         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21336         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21337         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21338         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21339         ac_includes_default.
21340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21341
21342 2010-09-09  Eric Blake  <eblake@redhat.com>
21343
21344         strsignal: work around NetBSD bug
21345         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21346         * lib/string.in.h (includes): Likewise.
21347         * doc/posix-functions/strsignal.texi (strsignal): Document the
21348         bug.
21349         Reported by Nelson H. F. Beebe.
21350
21351         gnulib-tool: work with NetBSD /bin/sh
21352         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21353         (func_get_description, func_get_comment, func_get_status)
21354         (func_get_notice, func_get_applicability, func_get_filelist)
21355         (func_get_dependencies, func_get_autoconf_early_snippet)
21356         (func_get_autoconf_snippet, func_get_automake_snippet)
21357         (func_get_include_directive, func_get_link_directive)
21358         (func_get_license, func_get_maintainer, func_import): Avoid
21359         shell syntax errors from parsing syntax extensions.
21360
21361 2010-09-09  Bruno Haible  <bruno@clisp.org>
21362
21363         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21364         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21365         a reliable way to determine whether the 'alias' command works.
21366
21367 2010-09-08  Jim Meyering  <meyering@redhat.com>
21368
21369         init.sh: penalize a set-x-impaired shell; don't disqualify it
21370         * tests/init.sh: Too many shells corrupt application stderr when
21371         you set -x, so we can't afford to disqualify them, since at least
21372         on Irix-6.5, that would disqualify all bourne shells.
21373         Instead, use a two-pass approach.
21374         On the first pass, try to find a shell that meets the stricter
21375         condition that set -x does not corrupt stderr.
21376         If no shell meets the stricter condition, retest each candidate
21377         shell, but without that extra condition.  Finally, when
21378         VERBOSE=yes is requested and set -x might cause trouble, simply
21379         issue a warning and refrain from enabling debug output.
21380
21381 2010-09-08  Eric Blake  <eblake@redhat.com>
21382
21383         unsetenv: fix OpenBSD bug
21384         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21385         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21386         documentation.
21387         Reported by Jim Meyering.
21388
21389         strtod: work around IRIX 6.5 bug
21390         * lib/strtod.c (strtod): Reparse number on shorter string if
21391         exponent parse was invalid.
21392         * tests/test-strtod.c (main): Add check for "0x1p 2".
21393         Reported by Tom G. Christensen.
21394
21395         getopt: optimize previous patch
21396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21397         empty variable.  Speed up awk script.
21398         Reported by Paolo Bonzini.
21399
21400 2010-09-08  Jim Meyering  <meyering@redhat.com>
21401
21402         test.sh: disqualify shells for which set -x corrupts stderr
21403         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21404         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21405         appear in stderr output.  For example, this command:
21406             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21407         prints "P=1" on those two systems:
21408
21409 2010-09-08  Bruno Haible  <bruno@clisp.org>
21410
21411         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21412         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21413         commands, because some shells ignore redirections when there is an
21414         error in the command lookup.
21415         Reported by Eric Blake.
21416
21417 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21418
21419         * lib/regex.h: Fix a mention of `regex_compile' (should be
21420         `re_compile_pattern').
21421         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21422         (re_set_registers): Correct name of parameter in comment.
21423
21424         * doc/regex.texi: Add documentation for missing syntax flags.
21425         Remove commented-out documentation of defunct syntax option
21426         RE_NO_EMPTY_ALTS.
21427         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21428         Add documentation of re_set_registers.
21429         Document trick to re-use a pattern buffer by setting fastmap manually.
21430         Update documentation of struct re_pattern_buffer per public members.
21431         Uncomment documentation of equivalence class operators and
21432         collating symbol operators, since they are now implemented,
21433         Explain leftmost-longest matching in relation to alternatives.
21434         Tidy documentation of substring matching.
21435         Remove POSIX documentation, which is done better in
21436         glibc, and refer the reader there. Keep BSD API documentation, as
21437         that is not readily available elsewhere.
21438
21439 2010-09-07  Eric Blake  <eblake@redhat.com>
21440
21441         getopt: handle POSIXLY_CORRECT set but not exported
21442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21443         export state of POSIXLY_CORRECT, due to bash set -o posix.
21444         Reported by Dustin J. Mitchell.
21445
21446 2010-09-05  Bruno Haible  <bruno@clisp.org>
21447
21448         gnulib-tool: Highlight the changed options.
21449         * gnulib-tool (func_usage): Display the --import, --add-import,
21450         --remove-import explanations in bold font.
21451
21452 2010-09-06  Karl Berry  <karl@gnu.org>
21453
21454         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21455
21456 2010-09-05  Bruno Haible  <bruno@clisp.org>
21457
21458         uniwidth/width: Update comment.
21459         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21460         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21461
21462 2010-09-05  Bruno Haible  <bruno@clisp.org>
21463
21464         isinf, isnan: Relax license.
21465         * modules/isinf (License): Change from GPL to LGPL, with consent from
21466         Ben Pfaff.
21467         * modules/isnan (License): Likewise.
21468         Requested by Ludovic Courtès.
21469
21470 2010-09-04  Bruno Haible  <bruno@clisp.org>
21471
21472         gnulib-tool: Help migration from --import to --add-import or --update.
21473         * gnulib-tool: Emit a verbose error message when --import is used
21474         without any module name.
21475
21476 2010-09-04  Bruno Haible  <bruno@clisp.org>
21477
21478         Update doc about gnulib-tool.
21479         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21480         'gnulib-tool --update' in more detail.
21481         Reported by Eric Blake.
21482
21483 2010-09-04  Bruno Haible  <bruno@clisp.org>
21484
21485         gnulib-tool: Change --import. New options --add/remove-import.
21486         * gnulib-tool: New options --add-import, --remove-import.
21487         (func_usage): Document them.
21488         (have_associative): Define always.
21489         (func_import): In import mode, don't merge the specified settings with
21490         the cached settings. Implement remove-import mode.
21491         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21492         Explain when to use them versus --import.
21493         (Simple update): Use --add-import instead of --import.
21494         * NEWS: Mention the change.
21495
21496 2010-09-04  Bruno Haible  <bruno@clisp.org>
21497
21498         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21499         separate gnulib.mk.
21500
21501 2010-09-04  Bruno Haible  <bruno@clisp.org>
21502
21503         gnulib-tool: Don't talk about CVS any more.
21504         * gnulib-tool (func_usage, func_import): Write "version control"
21505         instead of CVS.
21506
21507 2010-09-04  Jim Meyering  <meyering@redhat.com>
21508
21509         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21510         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21511         false positives (whose names may be ill-chosen) when searching
21512         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21513         would cause a false-positive.
21514
21515         avoid coreutils "make distcheck" failure
21516         Coreutils tests with an absolute build directory name that contains
21517         a space.  Not quoting this directory name caused a failure.
21518         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21519         * tests/test-vc-list-files-cvs.sh: Likewise.
21520
21521 2010-09-04  Bruno Haible  <bruno@clisp.org>
21522
21523         gnulib-tool: Avoid error when run in a package without Makefile.am.
21524         * gnulib-tool: When collecting the m4dirs in a package that does not
21525         have a Makefile.am, eliminate those directories that contain no
21526         gnulib-cache.m4. Fix expression that counts these directories.
21527
21528 2010-09-04  Bruno Haible  <bruno@clisp.org>
21529
21530         update-copyright test: Improve output when perl is missing or too old.
21531         * tests/test-update-copyright.sh: Move test of Perl version down after
21532         the test whether Perl exists. Provide an explanation relating Perl's
21533         error message to Automake's SKIP: message.
21534
21535 2010-09-04  Bruno Haible  <bruno@clisp.org>
21536
21537         Don't augment PATH in TESTS_ENVIRONMENT.
21538         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21539         set abs_aux_dir instead of augmenting PATH.
21540         * modules/vc-list-files-tests (Makefile.am): Likewise.
21541         * tests/test-update-copyright.sh: Augment PATH here.
21542         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21543         path_prepend_.
21544         * tests/test-vc-list-files-git.sh: Likewise.
21545
21546 2010-09-04  Jim Meyering  <meyering@redhat.com>
21547
21548         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21549         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21550
21551 2010-09-04  Bruno Haible  <bruno@clisp.org>
21552
21553         strdup: Fix compilation error in C++ mode.
21554         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21555         the macro.
21556
21557 2010-09-04  Bruno Haible  <bruno@clisp.org>
21558
21559         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21560         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21561         macro into a function.
21562         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21563
21564 2010-09-04  Bruno Haible  <bruno@clisp.org>
21565
21566         Set PATH_SEPARATOR the same way autoconf does.
21567         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21568         the value of PATH_SEPARATOR the same way autoconf-generated configure
21569         scripts do.
21570         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21571         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21572
21573 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21574
21575         Set PATH_SEPARATOR the same way autoconf does.
21576         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21577         the same way autoconf-generated configure scripts do.
21578         * posix-modules: Likewise.
21579
21580 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21581
21582         hash: fix safe_hasher const typo
21583         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21584         const; otherwise, there is a type error later.
21585
21586 2010-09-02  Jim Meyering  <meyering@redhat.com>
21587
21588         test-update-copyright.sh: require perl 5.8.0
21589         * tests/test-update-copyright.sh: Require 5.8.0,
21590         which Tom G. Christensen has confirmed is adequate,
21591         while 5.6.1 is not.
21592
21593 2010-09-02  Eric Blake  <eblake@redhat.com>
21594
21595         tests: init.sh improvements for re-exec'ing with zsh
21596         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21597         -vx through shell re-exec.
21598         Reported by Tom G. Christensen.
21599
21600         wctype: fix typo in previous commit
21601         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21602         Reported by Ludovic Courtès.
21603
21604 2010-09-02  Jim Meyering  <meyering@redhat.com>
21605
21606         test-update-copyright.sh: skip test if Perl is too old
21607         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21608         Reported by Tom G. Christensen.
21609
21610 2010-09-02  Bruno Haible  <bruno@clisp.org>
21611
21612         wctype: Avoid compilation error on IRIX 6.5.30.
21613         * lib/wctype.in.h (iswblank): Declare with a replacement if
21614         REPLACE_ISWBLANK is set.
21615         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21616         declared. Set REPLACE_ISWBLANK.
21617         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21618         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21619         * doc/posix-headers/wctype.texi: Likewise.
21620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21621
21622 2010-09-01  Bruno Haible  <bruno@clisp.org>
21623
21624         New module 'socketlib'.
21625         * modules/socketlib: New file.
21626         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21627         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21628         * modules/sockets (Depends-on): Add socketlib.
21629         Suggested by Sam Steingold <sds@gnu.org>.
21630
21631 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21632
21633         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21634
21635         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21636         when one needs search access to a directory but not read access.
21637         On systems where it is available, it works in some cases where
21638         O_RDONLY does not, namely on directories that are searchable but
21639         not readable, and which need only to be searchable.  If O_SEARCH
21640         is not available, fall back to the traditional method of using
21641         O_RDONLY.
21642
21643         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21644         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21645         when opening a directory that needs only to be searchable.
21646         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21647         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21648         * lib/openat-proc.c (openat_proc_name): Likewise.
21649         * lib/openat.c (openat_needs_fchdir): Likewise.
21650         * lib/save-cwd.c (save_cwd): Likewise.
21651         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21652
21653 2010-08-28  Bruno Haible  <bruno@clisp.org>
21654
21655         New module 'host-cpu-c-abi'.
21656         * modules/host-cpu-c-abi: New file.
21657         * m4/host-cpu-c-abi.m4: New file, based on part of
21658         clisp/src/m4/general.m4.
21659         Requested by Sam Steingold <sds@gnu.org>.
21660
21661 2010-08-31  Eric Blake  <eblake@redhat.com>
21662         and Jim Meyering  <meyering@redhat.com>
21663
21664         hash: factor, and guard against misbehaving hasher function
21665         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21666         of table->hasher's return value.  Also protect against a hash value
21667         so large that adding it to table->bucket results in a NULL pointer.
21668         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21669         Use it in place of open-coded check-and-abort.
21670
21671 2010-08-30  Bruno Haible  <bruno@clisp.org>
21672
21673         hash: silence spurious clang warning
21674         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21675         Reported by Eric Blake.
21676
21677 2010-08-30  Eric Blake  <eblake@redhat.com>
21678
21679         strstr, memmem, strcasestr: avoid leaked shell message
21680         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21681         FreeBSD.
21682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21683         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21684
21685         tests: silence clang warning
21686         * tests/test-malloca.c (do_allocation): Avoid dead store.
21687
21688 2010-08-29  Bruno Haible  <bruno@clisp.org>
21689
21690         gettext: Fix recent mistake.
21691         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21692
21693 2010-08-29  Bruno Haible  <bruno@clisp.org>
21694
21695         selinux-h: Offer a --without-selinux option.
21696         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21697         --without-selinux was specified, skip all tests and define
21698         HAVE_SELINUX_SELINUX_H to 0.
21699         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21700         set LIB_SELINUX to empty.
21701         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21702         gl_LIBSELINUX. If --without-selinux was specified, replace
21703         selinux/context.h.
21704         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21705
21706 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21707             Bruno Haible  <bruno@clisp.org>
21708
21709         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21710         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21711         of HAVE_REALLOC.
21712         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21713         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21714         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21715         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21716
21717 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21718             Bruno Haible  <bruno@clisp.org>
21719
21720         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21721         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21722         HAVE_CALLOC.
21723         * lib/xmalloc.c: Update accordingly.
21724         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21725         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21726         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21727
21728 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21729             Bruno Haible  <bruno@clisp.org>
21730
21731         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21732         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21733         HAVE_MALLOC.
21734         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21735         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21736         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21737
21738 2010-08-29  Bruno Haible  <bruno@clisp.org>
21739
21740         Update modules list.
21741         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21742         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21743         (String handling <string.h>): Add astrxfrm.
21744         (File system functions): Add readlinkat.
21745
21746 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21747
21748         Tests for module 'realloc-gnu'.
21749         * modules/realloc-gnu-tests: New file.
21750         * tests/test-realloc-gnu.c: New file.
21751
21752         Tests for module 'calloc-gnu'.
21753         * modules/calloc-gnu-tests: New file.
21754         * tests/test-calloc-gnu.c: New file.
21755
21756         Tests for module 'malloc-gnu'.
21757         * modules/malloc-gnu-tests: New file.
21758         * tests/test-malloc-gnu.c: New file.
21759
21760 2010-08-28  Bruno Haible  <bruno@clisp.org>
21761
21762         Rename module 'realloc' -> 'realloc-gnu'.
21763         * modules/realloc-gnu: New file, copied from modules/realloc.
21764         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21765         obsolete.
21766         * modules/mgetgroups (Depends-on): Update.
21767         * doc/posix-functions/realloc.texi: Update.
21768         * NEWS: Mention the change.
21769
21770         Rename module 'calloc' -> 'calloc-gnu'.
21771         * modules/calloc-gnu: New file, copied from modules/calloc.
21772         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21773         obsolete.
21774         * doc/posix-functions/calloc.texi: Update.
21775         * NEWS: Mention the change.
21776
21777         Rename module 'malloc' -> 'malloc-gnu'.
21778         * modules/malloc-gnu: New file, copied from modules/malloc.
21779         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21780         obsolete.
21781         * modules/argp (Depends-on): Update.
21782         * modules/regex (Depends-on): Update.
21783         * doc/posix-functions/malloc.texi: Update.
21784         * NEWS: Mention the change.
21785
21786 2010-08-28  Eric Blake  <eblake@redhat.com>
21787
21788         pread, pwrite: add missing dependency
21789         * modules/pread (Depends-on): Add extensions.
21790         * modules/pwrite (Depends-on): Likewise.
21791
21792 2010-08-28  Bruno Haible  <bruno@clisp.org>
21793
21794         unistr/u*-strchr: Fix tests dependencies.
21795         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21796         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21797         Reported by Ian Beckwith <ianb@erislabs.net>.
21798
21799 2010-08-28  Bruno Haible  <bruno@clisp.org>
21800
21801         read-file: Don't occupy too much unused memory.
21802         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21803
21804 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21805             Eric Blake  <eblake@redhat.com>
21806             Bruno Haible  <bruno@clisp.org>
21807
21808         read-file: Avoid memory reallocations with regular files.
21809         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21810         (fread_file): With regular files, use the remaining length as the
21811         initial buffer size.  Check against overflow.
21812         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21813         sys_stat.
21814
21815 2010-08-28  Bruno Haible  <bruno@clisp.org>
21816
21817         ftello: Relax license.
21818         * modules/ftello (License): Relax to LGPLv2+.
21819         Reported by Eric Blake.
21820
21821 2010-08-28  Bruno Haible  <bruno@clisp.org>
21822
21823         Avoid relocwrapper link errors due to gnulib replacement functions.
21824         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21825         function.
21826         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21827
21828 2010-08-28  Bruno Haible  <bruno@clisp.org>
21829
21830         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21831         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21832         defined.
21833         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21834         Suggested by Eric Blake.
21835
21836 2010-08-28  Bruno Haible  <bruno@clisp.org>
21837
21838         sys_socket, netdb: Ensure socklen_t gets defined.
21839         * modules/sys_socket (Depends-on): Add socklen.
21840         * modules/netdb (Depends-on): Likewise.
21841         * modules/getaddrinfo (Depends-on): Remove socklen.
21842         * modules/getsockopt (Depends-on): Likewise.
21843         * modules/setsockopt (Depends-on): Likewise.
21844         * tests/test-sys_socket.c: Check that socklen_t is defined.
21845         * tests/test-netdb.c: Likewise.
21846         * m4/socklen.m4: Update comments.
21847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21848
21849 2010-08-27  Eric Blake  <eblake@redhat.com>
21850
21851         login_tty: add missing dependency
21852         * modules/login_tty (Depends-on): Add pty.
21853
21854 2010-08-26  Eric Blake  <eblake@redhat.com>
21855
21856         lib-symbol-versions: fix m4 quoting
21857         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21858         format for AC_LINK_IFELSE.
21859
21860         glob: fix compile test
21861         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21862
21863         btowc: fix missing file
21864         * modules/btowc (Files): Also ship locale-fr.m4.
21865
21866         lseek: fix link test
21867         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21868         AC_LINK_IFELSE.
21869
21870         include_next: silence autoconf 2.68 warning
21871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21872         AC_COMPILE_IFELSE as special.
21873         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21874         autoconf < 2.68.
21875
21876         acl: fix compilation test
21877         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21878         AC_COMPILE_IFELSE.
21879
21880 2010-08-26  Bruno Haible  <bruno@clisp.org>
21881
21882         Modernize AC_TRY_RUN invocations.
21883         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21884         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21885         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21886         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21887         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21888         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21889         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21891         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21892         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21893         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21894         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21895         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21896         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21898         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21899         gl_MBRLEN_NUL_RETVAL): Likewise.
21900         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21901         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21902         Likewise.
21903         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21904         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21905         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21906         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21907         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21908         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21909         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21910         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21911         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21912         Likewise.
21913         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21914         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21916         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21917         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21920         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21921         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21923
21924 2010-08-26  Bruno Haible  <bruno@clisp.org>
21925
21926         Modernize AC_TRY_LINK invocations.
21927         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21928         AC_TRY_LINK.
21929         * m4/argp.m4 (gl_ARGP): Likewise.
21930         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21931         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21932         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21933         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21934         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21935         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21936         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21937         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21938         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21939         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21940         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21941         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21942         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21943         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21944         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21945         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21946         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21947         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21948         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21949         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21950         Likewise.
21951         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21952         Likewise.
21953         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21954         Likewise.
21955         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21957         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21958         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21959         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21960         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21961         * m4/servent.m4 (gl_SERVENT): Likewise.
21962         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21963         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21964         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21965         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21967         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21968         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21969         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21970         * modules/tsearch-tests (configure.ac): Likewise.
21971
21972 2010-08-26  Bruno Haible  <bruno@clisp.org>
21973
21974         Modernize AC_TRY_COMPILE invocations.
21975         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21976         AC_TRY_COMPILE.
21977         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21978         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21979         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21980         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21981         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21982         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21983         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21984         * m4/lock.m4 (gl_LOCK): Likewise.
21985         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21986         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21987         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21989         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21990         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21991         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21993         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21994         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21995         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21996         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21997         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21998         extraneous semicolon.
21999
22000 2010-08-26  Jim Meyering  <meyering@redhat.com>
22001
22002         stat-time: relax license LGPL
22003         * modules/stat-time (License): Change from GPL to LGPL,
22004         with consent from all contributors, for use in libguile.
22005         Requested by Ludovic Courtès.
22006
22007 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22008
22009         poll: return immediately on POLLHUP.
22010         * lib/poll.c (poll): Always set timeout before wait_timeout is
22011         computed.
22012
22013 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22014
22015         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22016         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22017         rmdir ("dir/.//"), unlinkat.
22018
22019 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22020
22021         stdbool: avoid spurious failure with modern xlc
22022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22023
22024 2010-08-24  Bruno Haible  <bruno@clisp.org>
22025
22026         getloadavg: simplify code
22027         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22028         gl_have_func. Update comments.
22029
22030 2010-08-24  Eric Blake  <eblake@redhat.com>
22031
22032         getloadavg: don't define SVR4 on cygwin
22033         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22034         only define SVR4 when -lkvm is required.
22035         Reported by Yaakov Selkowitz.
22036
22037 2010-08-24  Bruno Haible  <bruno@clisp.org>
22038
22039         priv-set: fix comment
22040         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22041
22042 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         priv-set: fix comments
22045         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22046         to match code, as suggested by David Bartley in:
22047         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22048
22049 2010-08-23  Eric Blake  <eblake@redhat.com>
22050
22051         stdbool: avoid rejecting clang
22052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22053         * tests/test-stdbool.c: Enable more tests if using the system
22054         <stdbool.h> instead of the gnulib replacement.
22055         (main): Move xlc bug test to a runtime test for all compilers.
22056         Reported by Anders Kaseorg.
22057
22058         argz: fix shell quoting issue
22059         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22060         Reported by Charles Wilson.
22061
22062 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22063             Erik Faye-Lund <kusmabite@gmail.com>
22064
22065         poll, select: handle ERROR_BROKEN_PIPE.
22066         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22067         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22068         * lib/select.c (win32_compute_revents): Do not mark a pipe
22069         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22070
22071 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22072
22073         fts: allow compilation with C++
22074         * lib/fts_.h: Specify extern "C" linkage with C++.
22075
22076 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22077
22078         Fix gnulib-tool sed script de-commentation for AIX sed.
22079         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22080         sed.
22081
22082 2010-08-17  Eric Blake  <eblake@redhat.com>
22083
22084         test-stddef: test for (some) offsetof bugs
22085         * tests/test-stddef.c: Enhance test to ensure correct type of
22086         offsetof.
22087         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22088         that we are not fixing at this time.
22089
22090 2010-08-15  Bruno Haible  <bruno@clisp.org>
22091
22092         stpncpy: Allow stpncpy to be defined as a macro.
22093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22094         if it's already correctly declared.
22095         * lib/string.in.h (stpncpy): Undefine before redefining.
22096         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22097
22098 2010-08-14  Bruno Haible  <bruno@clisp.org>
22099
22100         Rename module 'memxfrm' to 'amemxfrm'.
22101         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22102         (amemxfrm): Renamed from memxfrm.
22103         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22104         (amemxfrm): Renamed from memxfrm.
22105         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22106         * NEWS: Mention the change.
22107         * MODULES.html.sh (String handling <string.h>): Update.
22108         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22109         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22110         * lib/unicase/u16-casexfrm.c: Likewise.
22111         * lib/unicase/u32-casexfrm.c: Likewise.
22112         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22113         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22114         * lib/uninorm/u16-normxfrm.c: Likewise.
22115         * lib/uninorm/u32-normxfrm.c: Likewise.
22116         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22117         memxfrm.
22118         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22119         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22120         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22121         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22122         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22123         Suggested by Paul Eggert.
22124
22125 2010-08-14  Bruno Haible  <bruno@clisp.org>
22126
22127         Tests for module 'astrxfrm'.
22128         * modules/astrxfrm-tests: New file.
22129         * tests/test-astrxfrm.c: New file.
22130
22131         New module 'astrxfrm'.
22132         * lib/astrxfrm.h: New file.
22133         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22134         * modules/astrxfrm: New file.
22135
22136 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22137
22138         regex: Tweak doc.
22139         * doc/regex.texi (Overview): Don't mention regex.c.
22140         (GNU Regular Expression Compiling): Likewise.
22141         (Match-end-of-line Operator): Mention 'not_eol'.
22142
22143 2010-08-14  Brian Gough  <bjg@gnu.org>
22144             Bruno Haible  <bruno@clisp.org>
22145
22146         git-merge-changelog: add doc relating to use with bzr and hg.
22147         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22148
22149 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22150
22151         pthread: fix pthread.h creation for srcdir != builddir
22152         * modules/pthread (Makefile.am): Fix the rule to work also in a
22153         non-srcdir build.
22154
22155 2010-08-13  Karl Berry  <karl@gnu.org>
22156
22157         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22158         * doc/posix-*/*: force line break before @url of POSIX
22159         specifications.
22160         Suggested by Werner Lemberg.
22161
22162 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         strtod: fix const diagnostic
22165         * lib/strtod.c (strtod): Don't assign const char * to char *,
22166         as this elicits a warning from GCC when warnings are enabled.
22167
22168 2010-08-10  Pádraig Brady <P@draigbrady.com>
22169         and Eric Blake  <eblake@redhat.com>
22170
22171         copy-acl: ignore ENOTSUP on HP-UX
22172         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22173         so that it is available for HP-UX.
22174         * lib/copy-acl.c (qcopy_acl): Use it.
22175         Reported by Patrick M. Callahan.
22176
22177 2010-08-10  Eric Blake  <eblake@redhat.com>
22178
22179         open, chown: relax license
22180         * modules/open (License): Change to LGPLv2+, with consent by all
22181         authors, for use in augeas.
22182         * modules/chown (License): Likewise.
22183         * modules/lchown (Likewise): Likewise.
22184         Requested by Adam Stokes.
22185
22186 2010-08-09  Karl Berry  <karl@gnu.org>
22187
22188         * build-aux/ar-lib: new file, import from Automake.
22189         * config/srclist.txt: autocheck for updates.
22190
22191 2010-08-09  Eric Blake  <eblake@redhat.com>
22192
22193         readlinkat: adjust client modules
22194         * modules/areadlinkat (Depends-on): Use readlinkat, not
22195         symlinkat.
22196         * modules/areadlinkat-with-size (Depends-on): Likewise.
22197
22198         mknod: be more vocal about danger of running tests as root
22199         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22200         root, since that is just asking for problems.
22201         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22202
22203         readlinkat: split into its own module
22204         * modules/symlinkat: Split readlinkat...
22205         * modules/readlinkat: ...into separate module.
22206         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22207         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22208         * lib/symlinkat.c (readlinkat): Move...
22209         * lib/readlinkat.c: ...into new file.
22210         * modules/symlinkat-tests: Split readlinkat test...
22211         * modules/readlinkat-tests: ...into separate module.
22212         * tests/test-symlinkat.c: Split...
22213         * tests/test-readlinkat.c: ...into new file.
22214         * NEWS: Document the split.
22215         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22216         * lib/unistd.in.h (readlinkat): Likewise.
22217         Suggested by Bruno Haible.
22218
22219 2010-08-08  Bruno Haible  <bruno@clisp.org>
22220
22221         memxfrm: Speed up.
22222         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22223         that usually only one call to strxfrm is necessary for each string
22224         part.
22225         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22226
22227 2010-08-07  Karl Berry  <karl@gnu.org>
22228
22229         * doc/posix-headers/limits.texi,
22230         * doc/posix-functions/malloc.texi,
22231         * doc/posix-functions/strsignal.texi: missing @item.
22232         * doc/ld-version-script.texi: spurious leading i.
22233         * doc/regex.texi (Interval Operators): no commas inside @var.
22234
22235 2010-08-01  Bruno Haible  <bruno@clisp.org>
22236
22237         Integrate the regex documentation.
22238         * doc/gnulib.texi: Define 'cn' index.
22239         (Regular expressions): New a chapter that includes regex.texi and
22240         regexprops-generic.texi.
22241         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22242         syntax.
22243
22244         Whitespace cleanup.
22245         * doc/regex.texi: Remove trailing spaces.
22246
22247         Add regex documentation.
22248         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22249         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22250         Written by Kathy A. Hargreaves and Karl Berry.
22251
22252 2010-08-01  Bruno Haible  <bruno@clisp.org>
22253
22254         link: Update documentation.
22255         * doc/posix-functions/link.texi: Update regarding Solaris.
22256
22257 2010-07-31  Bruno Haible  <bruno@clisp.org>
22258
22259         Update modules list.
22260         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22261         (String handling <string.h>): Add memcmp2, memxfrm.
22262         (Container data structures): Add xlist, xsublist, xoset.
22263         (Core language properties): Add alignof, unused-parameter.
22264         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22265         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22266         (Unibyte characters <ctype.h>): New section.
22267         (String handling <string.h>): New section.
22268         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22269         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22270         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22271         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22272         tan, tanh, tanl, y0, y1, yn.
22273         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22274         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22275         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22276         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22277         unlockpt, vdprintf, vdprintf-posix.
22278         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22279         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22280         xconcat-filename.
22281         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22282         getdtablesize, pipe2, pipe2-safer.
22283         (Security): New section.
22284         (Networking functions): Add accept4.
22285         (Signal handling): Add sigpipe.
22286         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22287         mbmemcasecoll.
22288         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22289         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22290         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22291         pipe-filter-ii.
22292         (Misc): Add argp-version-etc, login_tty, parse-duration.
22293
22294 2010-07-31  Bruno Haible  <bruno@clisp.org>
22295
22296         Improve doc in MODULES.html.
22297         * modules/linkat (Description): Add the word "function".
22298         * modules/mkfifo (Description): Likewise.
22299         * modules/mknod (Description): Likewise.
22300         * modules/remove (Description): Likewise.
22301         * modules/renameat (Description): Likewise.
22302         * modules/stat (Description): Likewise.
22303         * modules/symlink (Description): Likewise.
22304         * modules/unlink (Description): Likewise.
22305
22306 2010-07-31  Bruno Haible  <bruno@clisp.org>
22307
22308         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22309         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22310         option --enable/disable-c++ instead of --enable/disable-cxx.
22311         * NEWS: Mention the change.
22312
22313 2010-07-31  Bruno Haible  <bruno@clisp.org>
22314
22315         readlink, areadlink: Relax test a bit.
22316         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22317         alternative to ENOTDIR.
22318         * tests/test-areadlink.h (test_areadlink): Likewise.
22319         Reported by Rainer Tammer.
22320
22321 2010-07-31  Bruno Haible  <bruno@clisp.org>
22322
22323         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22324         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22325         character, perform the search using U_STRCHR.
22326         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22327         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22328         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22329         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22330         Suggested by Paolo Bonzini.
22331
22332 2010-07-31  Bruno Haible  <bruno@clisp.org>
22333
22334         unistr/u*-strstr: Fix dependencies.
22335         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22336         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22337         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22338
22339 2010-07-31  Bruno Haible  <bruno@clisp.org>
22340
22341         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22342         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22343         the beginning of the loop.
22344         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22345         cases in 'switch' statement.
22346
22347         unistr/u8-strchr: Fix several bugs.
22348         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22349         the string. When not found, return NULL, not a pointer near the end.
22350
22351         More tests for unistr/u8-strchr.
22352         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22353         that the function does not read past the first occurrence of the byte
22354         being searched.
22355         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22356         * tests/unistr/test-u16-strchr.c (main): New function.
22357         * tests/unistr/test-u32-strchr.c (main): New function.
22358
22359 2010-07-31  Bruno Haible  <bruno@clisp.org>
22360
22361         posix-modules: Ignore backup files of documentation files.
22362         * posix-modules: grep only through files named *.texi.
22363
22364 2010-07-31  Bruno Haible  <bruno@clisp.org>
22365
22366         symlinkat: Fix documentation.
22367         * doc/posix-functions/readlinkat.texi: Fix module name.
22368
22369 2010-07-31  Bruno Haible  <bruno@clisp.org>
22370
22371         fchownat: Replace also when chown has the trailing slash bug.
22372         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22373         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22374         introduced on 2010-04-10.
22375         Reported by Rainer Tammer.
22376
22377 2010-07-31  Bruno Haible  <bruno@clisp.org>
22378
22379         linkat: Work around AIX 7.1 bug.
22380         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22381         whether linkat handles trailing slash correctly. If not, replace linkat
22382         and define LINKAT_TRAILING_SLASH_BUG.
22383         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22384         check whether (fd1,file1) points to a directory if file1 or file2 ends
22385         in a slash. Code taken from lib/link.c.
22386         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22387         Reported by Rainer Tammer.
22388
22389 2010-07-31  Bruno Haible  <bruno@clisp.org>
22390
22391         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22392         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22393         This disables an xlc optimization that was causing wrong test results.
22394         Reported by Rainer Tammer.
22395
22396 2010-07-31  Bruno Haible  <bruno@clisp.org>
22397
22398         iconv: Work around AIX 6.1..7.1 bug.
22399         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22400         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22401         cross-compiling, guess no on all versions of AIX.
22402         Reported by Rainer Tammer.
22403
22404 2010-07-31  Bruno Haible  <bruno@clisp.org>
22405
22406         readlink: Relax test a bit.
22407         * tests/test-readlink.h (test_readlink): Allow different errno value
22408         when readlink is called with a file name that ends in / and refers to
22409         a file.
22410         Suggested by Eric Blake.
22411         Reported by Rainer Tammer.
22412
22413 2010-07-31  Bruno Haible  <bruno@clisp.org>
22414
22415         copysign: Does not require -lm on glibc systems.
22416         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22417         gl_COMMON_DOUBLE_MATHFUNC.
22418         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22419
22420 2010-07-31  Bruno Haible  <bruno@clisp.org>
22421
22422         duplocale: Work around AIX 7.1 bug.
22423         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22424         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22425         * lib/duplocale.c (rpl_duplocale): Update comment.
22426         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22427         Reported by Rainer Tammer.
22428
22429 2010-07-30  Bruno Haible  <bruno@clisp.org>
22430
22431         dirfd: Avoid link error on AIX 7.1.
22432         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22433         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22434         exist, set REPLACE_DIRFD.
22435         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22436         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22437         * doc/posix-functions/dirfd.texi: Update.
22438         Reported by Rainer Tammer.
22439
22440 2010-07-30  Eric Blake  <eblake@redhat.com>
22441
22442         strtod: next round of AIX fixes
22443         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22444         exponent.
22445         * tests/test-strtod.c (main): Enhance tests.
22446         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22447         Reported by Rainer Tammer.
22448
22449         futimens: fix configure check
22450         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22451         Reported by Bruno Haible.
22452
22453 2010-07-30  Bruno Haible  <bruno@clisp.org>
22454
22455         getline: Update regarding AIX.
22456         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22457         Reported by Rainer Tammer.
22458
22459 2010-07-30  Bruno Haible  <bruno@clisp.org>
22460
22461         wcwidth: Drop replacement on AIX 7.
22462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22463         AIX 7.
22464         Reported by Rainer Tammer.
22465
22466 2010-07-30  Bruno Haible  <bruno@clisp.org>
22467
22468         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22469         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22470         a 'char *'.
22471         Reported by Rainer Tammer.
22472
22473 2010-07-30  Bruno Haible  <bruno@clisp.org>
22474
22475         unlink: Update regarding AIX.
22476         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22477         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22478         Reported by Rainer Tammer.
22479
22480 2010-07-30  Bruno Haible  <bruno@clisp.org>
22481
22482         symlink: Update regarding AIX.
22483         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22484         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22485         Reported by Rainer Tammer.
22486
22487 2010-07-30  Bruno Haible  <bruno@clisp.org>
22488
22489         strndup: Update regarding AIX.
22490         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22491         AIX 7.
22492         Reported by Rainer Tammer.
22493
22494 2010-07-30  Bruno Haible  <bruno@clisp.org>
22495
22496         stat: Update regarding AIX.
22497         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22498         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22499         Reported by Rainer Tammer.
22500
22501 2010-07-30  Bruno Haible  <bruno@clisp.org>
22502
22503         truncl: Fix autoconf test.
22504         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22505         whether truncl works.
22506         Reported by Rainer Tammer.
22507
22508 2010-07-30  Bruno Haible  <bruno@clisp.org>
22509
22510         round: Update regarding AIX.
22511         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22512         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22513         Reported by Rainer Tammer.
22514
22515 2010-07-30  Bruno Haible  <bruno@clisp.org>
22516
22517         rename: Update regarding AIX.
22518         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22519         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22520         Reported by Rainer Tammer.
22521
22522 2010-07-30  Bruno Haible  <bruno@clisp.org>
22523
22524         printf.m4: Update regarding AIX.
22525         * m4/printf.m4: Update comments regarding AIX.
22526         Reported by Rainer Tammer.
22527
22528 2010-07-30  Bruno Haible  <bruno@clisp.org>
22529
22530         iconv: Update regarding AIX.
22531         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22532         AIX 7.
22533         Reported by Rainer Tammer.
22534
22535 2010-07-30  Bruno Haible  <bruno@clisp.org>
22536
22537         getopt: Update regarding AIX.
22538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22539         no on AIX.
22540         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22541         Reported by Rainer Tammer.
22542
22543 2010-07-30  Bruno Haible  <bruno@clisp.org>
22544
22545         ldexpl; Update regarding AIX.
22546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22547         on AIX 7.
22548         Reported by Rainer Tammer.
22549
22550 2010-07-30  Bruno Haible  <bruno@clisp.org>
22551
22552         frexpl: Update regarding AIX.
22553         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22554         on AIX 7.
22555         Reported by Rainer Tammer.
22556
22557 2010-07-30  Bruno Haible  <bruno@clisp.org>
22558
22559         open, fopen: Update regarding AIX.
22560         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22561         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22562         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22563         * doc/posix-functions/fopen.texi: Likewise.
22564         Reported by Rainer Tammer.
22565
22566 2010-07-30  Bruno Haible  <bruno@clisp.org>
22567
22568         chown: Update doc regarding AIX.
22569         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22570         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22571         Reported by Rainer Tammer.
22572
22573 2010-07-30  Eric Blake  <eblake@redhat.com>
22574
22575         strtod: fix bug in replacement function on AIX
22576         * lib/strtod.c (strtod): Special case broken "0x" parse in
22577         underlying strtod.
22578         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22579         * doc/posix-functions/strtod.texi (strtod): Likewise.
22580         Reported by Rainer Tammer.
22581
22582 2010-07-30  Bruno Haible  <bruno@clisp.org>
22583
22584         mbrlen: Fix cross-compilation guess for AIX.
22585         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22586         guess. Leftover from 2008-12-22.
22587
22588 2010-07-30  Bruno Haible  <bruno@clisp.org>
22589
22590         mbrtowc: Fix cross-compilation guess for AIX.
22591         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22592         guess. Leftover from 2008-12-21.
22593
22594 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22595
22596         init.sh: work around trap limitation of some shells
22597         * tests/init.sh (setup_): Move exit trap outside of shell function.
22598
22599 2010-07-29  Eric Blake  <eblake@redhat.com>
22600
22601         strtod: aid debugging
22602         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22603         understanding why strtod is rejected.
22604
22605 2010-07-28  Bruno Haible  <bruno@clisp.org>
22606
22607         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22608         * lib/unistr/u8-chr.c: Include <string.h>.
22609         * tests/unistr/test-u8-chr.c: Likewise.
22610         * tests/unistr/test-u16-chr.c: Likewise.
22611         * tests/unistr/test-u32-chr.c: Likewise.
22612         * tests/unistr/test-u8-strchr.c: Likewise.
22613         * tests/unistr/test-u16-strchr.c: Likewise.
22614         * tests/unistr/test-u32-strchr.c: Likewise.
22615         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22616         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22617         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22618         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22619
22620 2010-07-28  Bruno Haible  <bruno@clisp.org>
22621
22622         Use spaces for indentation, not tabs.
22623         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22624
22625 2010-07-27  Bruno Haible  <bruno@clisp.org>
22626
22627         mbspcasecmp: Fix function specification.
22628         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22629         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22630         Reported by Eric Blake <eblake@redhat.com>.
22631
22632 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22633
22634         timespec: use cast and not conditional, as truncation isn't possible
22635         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22636         instead of a conditional.  Comment about the situation in more detail.
22637         This undoes most of the 2009-10-29 patch.
22638
22639 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22640
22641         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22642         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22643         * lib/unistr/u8-strchr.c: Likewise.
22644         * modules/unistr/u8-chr: Depend on memchr.
22645
22646         unistr/u*-strchr: add tests
22647         * modules/unistr/u8-strchr-tests: New file.
22648         * modules/unistr/u16-strchr-tests: New file.
22649         * modules/unistr/u32-strchr-tests: New file.
22650         * tests/unistr/test-strchr.h: New file.
22651         * tests/unistr/test-u8-strchr.c: New file.
22652         * tests/unistr/test-u16-strchr.c: New file.
22653         * tests/unistr/test-u32-strchr.c: New file.
22654
22655         unistr/u*-chr: test multibyte sequences more
22656         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22657         test vector.
22658         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22659         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22660         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22661
22662         unistr/u*-chr: test multibyte sequences
22663         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22664
22665         unistr/u*-chr: prepare for multibyte tests
22666         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22667         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22668         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22669         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22670         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22671         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22672
22673 2010-07-18  Bruno Haible  <bruno@clisp.org>
22674
22675         unistr/u8-strchr: Optimize non-ASCII argument case.
22676         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22677         because the first byte often matches anyway.
22678         Reported by Pádraig Brady <P@draigbrady.com>.
22679
22680 2010-07-15  Karl Berry  <karl@gnu.org>
22681
22682         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22683
22684 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22685
22686         getcwd: on Solaris, work better if ancestors are inaccessible
22687         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22688         buffer and size, try again with a large buffer.  This works better
22689         on Solaris, since its getcwd succeeds even if the path to the root
22690         is inaccessible, and this is helpful in common cases such as .zfs
22691         hidden directories.  Problem reported by J Chapman Flack in
22692         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22693         Use system getcwd if it's declared, not merely if it's partly
22694         working; use the partly-working test only to avoid needless effort
22695         if the system getcwd fails.
22696         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22697         comment that was already obsolete and is now even more obsolete.
22698         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22699         now might call strdup.
22700
22701 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22702
22703         pthread: Add enough so that coreutils/src/sort.c compiles.
22704         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22705         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22706         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22707         Include <sys/types.h>, in case it defines pthread_t.
22708         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22709         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22710         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22711         (pthread_rwlockattr_t, pthread_spinlock_t):
22712         New typedefs, if HAVE_PTHREAD_T is not defined.
22713         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22714         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22715         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22716         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22717         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22718         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22719         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22720         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22721         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22722         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22723         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22724         New macros.
22725         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22726         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22727         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22728         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22729         (pthread_spin_unlock): New dummy functions.
22730         (pthread_create): Return EAGAIN; don't set errno.
22731         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22732         require AC_C_INLINE.
22733         * modules/pthread (Depends-on): Add sched, time.
22734         (pthread.h): Use AM_V_GEN.
22735
22736 2010-07-13  Bruno Haible  <bruno@clisp.org>
22737
22738         striconveh: Don't malloc memory if the result buffer is sufficient.
22739         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22740         buffer if its size is sufficient.
22741         Reported by Ludovic Courtès <ludo@gnu.org>.
22742
22743 2010-07-13  Bruno Haible  <bruno@clisp.org>
22744
22745         strtod: Add safety check.
22746         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22747
22748 2010-07-12  Bruno Haible  <bruno@clisp.org>
22749
22750         Unify tests that set gl_cv_func_ldexpl_no_libm.
22751         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22752         gl_FUNC_LDEXPL.
22753         (gl_FUNC_LDEXPL): Invoke it.
22754         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22755
22756 2010-07-12  Bruno Haible  <bruno@clisp.org>
22757
22758         Unify tests that set gl_cv_func_ldexp_no_libm.
22759         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22760         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22761         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22762         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22763         * modules/strtod (Files): Add m4/ldexp.m4.
22764
22765 2010-07-12  Bruno Haible  <bruno@clisp.org>
22766
22767         Unify tests that set gl_cv_func_frexpl_no_libm.
22768         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22769         gl_FUNC_FREXPL_NO_LIBM.
22770         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22771         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22772
22773 2010-07-12  Bruno Haible  <bruno@clisp.org>
22774
22775         Unify tests that set gl_cv_func_frexp_no_libm.
22776         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22777         gl_FUNC_FREXP_NO_LIBM.
22778         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22779         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22780
22781 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22782
22783         memcoll: clarify sizes versus lengths, document better, and tweak perf
22784         * lib/memcoll.c (strcoll_loop, memcoll0):
22785         Improve quality of descriptive comments.  Name variables
22786         consistently as to whether they are lengths (which do not include
22787         terminating null) versus sizes (which do).
22788         * lib/xmemcoll.c (xmemcoll0): Likewise.
22789         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22790         returned when s1size == 0; this is easier to compile and saves
22791         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22792
22793 2010-07-12  Bruno Haible  <bruno@clisp.org>
22794
22795         Tests for module '_Exit'.
22796         * modules/_Exit-tests: New file.
22797         * tests/test-_Exit.sh: New file.
22798         * tests/test-_Exit.c: New file.
22799
22800         New module '_Exit'.
22801         * lib/stdlib.in.h (__attribute__): New macro.
22802         (_Exit): New declaration.
22803         * lib/_Exit.c: New file.
22804         * m4/_Exit.m4: New file.
22805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22807         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22808         * modules/_Exit: New file.
22809         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22810         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22811
22812 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22813
22814         strtod: make it more-accurate typically, and don't require libm
22815         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22816         Include limits.h.  Don't include string.h.
22817         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22818         (locale_isspace): New function, so that no casts are needed to
22819         check whether *s is a space.
22820         (ldexp): Provide an unused dummy if not available.
22821         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22822         (strtod): Use them.  This implementation prefers to use the
22823         underlying strtod if available, falling back on our own code
22824         only to fix known bugs.  This is more likely to produce an
22825         accurate result.  Also, it avoids the use of libm functions.
22826         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22827         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22828         was absent, but it caused a test failure with coreutils.
22829         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22830         with libm.
22831         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22832         * modules/strtod-tests (Makefile.am): Likewise.
22833
22834 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22835             Bruno Haible  <bruno@clisp.org>
22836
22837         unistr/u8-strchr: Optimize ASCII argument case.
22838         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22839
22840 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         (x)memcoll: minor tweaks
22843         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22844         is after the type that it qualifies.
22845         (memcoll0): Likewise.
22846         * lib/memcoll.h (memcoll0): Likewise.
22847         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22848         * lib/xmemcoll.h (xmemcoll0): Likewise.
22849         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22850         differs from memcoll in that the NUL byte is part of the argument.
22851         Omit the abort-checks, as performance is a real issue here.  Plus,
22852         the checks were wrong anyway (an off-by-one error).  Omit local
22853         variable 'diff', as it's a bit clearer that way.
22854         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22855         no longer needed.
22856
22857 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22858
22859         (x)memcoll: speedup when input is known to be NUL delimited
22860         * lib/memcoll.c: Include stdlib.
22861         (memcoll0): New function.
22862         (strcoll_loop): New function, refactored for use in both memcoll
22863         and memcoll0.
22864         * lib/memcoll.h (memcoll0): Add prototype.
22865         * lib/xmemcoll.c (xmemcoll0): New function.
22866         (collate_error): New function, refactored for use in both xmemcoll
22867         and xmemcoll0.
22868         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22869         * m4/memcoll.m4: add inline invocation.
22870
22871 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22872
22873         * build-aux/bootstrap: Remove any local translations
22874         from the translation project synchronization directory,
22875         so that local only translations are not distributed.
22876
22877 2010-07-04  Bruno Haible  <bruno@clisp.org>
22878
22879         fsusage: Clarify which code applies to which platforms.
22880         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22881         platform.
22882         * lib/fsusage.c (get_fs_usage): Likewise.
22883
22884 2010-07-04  Bruno Haible  <bruno@clisp.org>
22885
22886         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22887         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22888         Reported by Martin Lambers <marlam@marlam.de>.
22889
22890 2010-07-04  Jim Meyering  <meyering@redhat.com>
22891
22892         hash: once again explicitly disallow insertion of NULL
22893         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22894         inserting a NULL pointer cannot work with these functions.
22895         Add a comment with details.
22896         This reverts part of the 2010-07-01 commit, 5bef1a35
22897         "hash: extend module to deal with non-pointer keys".
22898
22899 2010-07-01  Bruno Haible  <bruno@clisp.org>
22900
22901         stdbool: Update doc.
22902         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22903         Info from Christian Weisgerber <naddy@mips.inka.de>.
22904
22905 2010-07-01  Jim Meyering  <meyering@redhat.com>
22906
22907         hash: extend module to deal with non-pointer keys
22908         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22909         but that allows insertion of non-pointer entries.
22910         Do not disallow an ENTRY value of NULL.
22911         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22912         * lib/hash.h (hash_insert0): Declare.
22913
22914 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22915
22916         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22917         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22918         not present (i.e. with autoconf 2.59 and when using gettextize, not
22919         gnulib), require AC_GNU_SOURCE instead.
22920
22921 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22922
22923         idpriv-drop: Fix tests.
22924         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22925         not to the test-idpriv-droptemp program.
22926
22927 2010-06-29  Bruno Haible  <bruno@clisp.org>
22928
22929         string: Fix syntax error with g++ 2.96.
22930         * lib/string.in.h (__pure__): Remove definition.
22931         (_GL_ATTRIBUTE_PURE): New macro.
22932         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22933         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22934         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22935
22936 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22937
22938         unitypes: Fix bug introduced on 2010-05-18.
22939         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22940
22941 2010-06-22  Eric Blake  <eblake@redhat.com>
22942
22943         memmem: slight optimization
22944         * lib/str-two-way.h (critical_factorization): Update comments.
22945         Reduce work during factorization phase.
22946         Reported by Carlos Bueno <carlos@bueno.org>.
22947
22948 2010-06-21  Bruno Haible  <bruno@clisp.org>
22949
22950         Fix HAVE_CALLOC_POSIX misnomer.
22951         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22952         !HAVE_CALLOC_POSIX.
22953         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22954         HAVE_CALLOC_POSIX.
22955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22956         instead of HAVE_CALLOC_POSIX.
22957         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22958         HAVE_CALLOC_POSIX.
22959
22960         Use modern idiom for calloc() replacement.
22961         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22962         AC_FUNC_CALLOC.
22963         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22964         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22965         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22966         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22967         (gl_REPLACE_CALLOC): New macro.
22968
22969 2010-06-21  Bruno Haible  <bruno@clisp.org>
22970
22971         Fix HAVE_REALLOC_POSIX misnomer.
22972         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22973         !HAVE_REALLOC_POSIX.
22974         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22975         HAVE_REALLOC_POSIX.
22976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22977         instead of HAVE_REALLOC_POSIX.
22978         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22979         HAVE_REALLOC_POSIX.
22980
22981         Use modern idiom for realloc() replacement.
22982         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22983         AC_FUNC_REALLOC.
22984         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22985         Autoconf's AC_FUNC_REALLOC.
22986         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22987         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22988         (gl_REPLACE_REALLOC): New macro.
22989         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22990
22991 2010-06-21  Bruno Haible  <bruno@clisp.org>
22992
22993         Fix HAVE_MALLOC_POSIX misnomer.
22994         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22995         !HAVE_MALLOC_POSIX.
22996         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22997         HAVE_MALLOC_POSIX.
22998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22999         instead of HAVE_MALLOC_POSIX.
23000         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23001         HAVE_MALLOC_POSIX.
23002
23003         Use modern idiom for malloc() replacement.
23004         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23005         AC_FUNC_MALLOC.
23006         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23007         Autoconf's AC_FUNC_MALLOC.
23008         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23009         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23010         (gl_REPLACE_MALLOC): New macro.
23011         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23012
23013 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23014
23015         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23016         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23017         This macro takes 3 arguments, not 4.
23018
23019 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23020
23021         ipv6: fix detection under mingw
23022         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23023         in6_addr.
23024
23025 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23026
23027         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23028         that strtod() works when cross-compiling to a glibc version known
23029         to work.
23030
23031 2010-06-15  Bruno Haible  <bruno@clisp.org>
23032
23033         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23034
23035 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23036
23037         select: Correct timeout.
23038         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23039
23040 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23041
23042         git-version-gen: init shell var to avoid env var influence
23043         * build-aux/git-version-gen (v): Init shell var to empty.
23044
23045 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23046
23047         priv-set: Don't assume that priv.h exists merely because getppriv does.
23048         See Jan Andersen's bug report about AIX 5L in
23049         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23050         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23051         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23052         * lib/priv-set.h: Likewise.
23053         * tests/test-priv-set.c: Likewise.
23054
23055 2010-06-13  Bruno Haible  <bruno@clisp.org>
23056
23057         relocatable: Make it easier to test whether to install wrappers.
23058         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23059         RELOCATABLE_VIA_WRAPPER.
23060
23061 2010-06-13  Bruno Haible  <bruno@clisp.org>
23062
23063         gnulib-tool: Display specified modules and dependencies differently.
23064         * gnulib-tool (func_show_module_list): New function.
23065         (func_import, func_create_testdir): Invoke it.
23066         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23067
23068 2010-06-13  Bruno Haible  <bruno@clisp.org>
23069
23070         gnulib-tool: Align code of func_import and func_create_testdir.
23071         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23072         specified_modules.
23073
23074 2010-06-12  Jim Meyering  <meyering@redhat.com>
23075
23076         test-inttostr: avoid spurious failure on Solaris 9
23077         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23078         to accept "%ju".  Reported by Bruno Haible.
23079
23080 2010-06-11  Jim Meyering  <meyering@redhat.com>
23081
23082         test-sys_socket: mark variables as used more readably
23083         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23084         as "used" explicitly via (void) statement casts.  This is more
23085         readable than using them in an artificial return expression.
23086         Suggestion from Bruno Haible.
23087
23088 2010-06-11  Bruno Haible  <bruno@clisp.org>
23089
23090         Avoid some more warnings from "gcc -Wwrite-strings".
23091         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23092         to 'const char *'.
23093         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23094         * tests/test-c-strcasestr.c (main): Likewise.
23095         * tests/test-mbscasestr1.c (main): Likewise.
23096         * tests/test-mbscasestr2.c (main): Likewise.
23097         * tests/test-memmem.c (main): Likewise.
23098         * tests/test-strstr.c (main): Likewise.
23099         * tests/test-strcasestr.c (main): Likewise.
23100
23101 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23102
23103         init.sh: change framework_failure_ to fail with status 99, not 1
23104         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23105         automake's parallel-tests rule that this is an unexpected failure,
23106         even if the test is listed in XFAIL_TESTS.
23107
23108 2010-06-11  Jim Meyering  <meyering@redhat.com>
23109
23110         test-inttostr: avoid warnings about 4-6KB literal strings
23111         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23112         Include "macros.h", for its definition of ASSERT.
23113         (CK): s/assert/ASSERT/
23114         * modules/inttostr-tests (Files): Add macros.h.
23115
23116         init.sh: don't use $ME_ or skip_ before they are defined
23117         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23118         their first uses.  Also hoist their companions: warn_, fail_,
23119         framework_failure_, $stderr_fileno.  Prompted by a patch from
23120         Stefano Lattarini.
23121
23122         test-sys_socket: avoid set-but-not-used warnings from gcc
23123         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23124         avoid warning about set-but-not-used variables.
23125
23126         test-xvasprintf: avoid 'const' discard warnings
23127         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23128         "const" when assigning from literal strings.
23129         (test_xasprintf): Add "void" in function argument list to placate
23130         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23131
23132         tests: avoid compilation warnings in argmatch and exclude tests...
23133         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23134         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23135         Since it always exits, declare with the "noreturn" attribute.
23136         * tests/test-argmatch.c: Likewise.
23137
23138         tests: avoid 'const' discard warnings in mbsstr tests
23139         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23140         * tests/test-mbsstr2.c (main): Likewise.
23141
23142         test-verify: avoid warning from gcc's -Wmissing-declarations
23143         * tests/test-verify.c (function): Declare to be static.
23144
23145         test-inttostr.c: include <string.h> for use of strcmp
23146         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23147
23148         test-linkat: avoid failed assertion on "other" architectures
23149         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23150         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23151         sparc: https://bugs.launchpad.net/bugs/591968
23152
23153 2010-06-11  Jim Meyering  <meyering@redhat.com>
23154
23155         printf.m4: avoid autoconf's "Expanded Before Required" warning
23156         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23157         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23158         autoconf warning.
23159
23160 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23161
23162         Replacement header templates are now named with ".in", not "_".
23163         * doc/gnulib-intro.texi: Correct.
23164
23165 2010-06-10  Jim Meyering  <meyering@redhat.com>
23166
23167         inttostr-tests: depend on snprintf, not snprintf-posix
23168         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23169         snprintf-posix, to avoid this aclocal failure:
23170           missing file gnulib-tests/vasnprintf.c
23171           configure.ac:45: error: expected source file, required through \
23172           AC_LIBSOURCES, not found
23173
23174 2010-06-10  Jim Meyering  <meyering@redhat.com>
23175
23176         inttostr: add a new function, inttostr, and tests
23177         The namesake function was not available.  The existence of the
23178         template file, inttostr.c makes its addition nontrivial.
23179         * lib/anytostr.c: Rename from inttostr.c.
23180         (anytostr): Rename from inttostr.
23181         * lib/inttostr.c: New file.
23182         * modules/inttostr (Files): Add anytostr.c.
23183         (Makefile.am): Set lib_SOURCES instead of ...
23184         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23185         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23186         * lib/offtostr.c: Likewise.
23187         * lib/uinttostr.c: Likewise.
23188         * lib/umaxtostr.c: Likewise.
23189         * modules/inttostr-tests: New file.
23190         * tests/test-inttostr.c: New file.  Test these functions.
23191
23192 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23193             Bruno Haible  <bruno@clisp.org>
23194
23195         Add "Extending Gnulib" chapter to manual.
23196         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23197         chapter.
23198         (Extending Gnulib): New chapter.
23199         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23200         chapter.
23201
23202 2010-06-09  Bruno Haible  <bruno@clisp.org>
23203
23204         Avoid relocwrapper link errors due to gnulib replacement functions.
23205         * lib/areadlink.c: Use the system's malloc, realloc functions.
23206         (areadlink): Set errno to ENOMEM explicitly.
23207         * modules/areadlink (Depends-on): Remove malloc-posix.
23208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23209
23210 2010-06-09  Bruno Haible  <bruno@clisp.org>
23211
23212         Avoid relocwrapper link errors due to gnulib replacement functions.
23213         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23214         * lib/malloca.c: Likewise.
23215         * lib/relocatable.c: Likewise.
23216         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23217         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23218         * lib/setenv.c: Use the system's malloc, realloc functions.
23219         * lib/strerror.c: Use the system's sprintf function.
23220         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23221
23222 2010-06-04  Bruno Haible  <bruno@clisp.org>
23223
23224         Prefer documented low-level autoconf macro names.
23225         * m4/lib-link.m4: Use m4_translit instead of translit.
23226         * m4/environ.m4: Likewise.
23227         * m4/mathfunc.m4: Likewise.
23228         * m4/onceonly.m4: Likewise.
23229         * m4/stdint.m4: Likewise.
23230         Suggested by Eric Blake.
23231
23232 2010-06-04  Martin Lambers  <marlam@marlam.de>
23233             Bruno Haible  <bruno@clisp.org>
23234
23235         havelib: Allow library names with '+' characters.
23236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23237         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23238
23239 2010-06-09  Bruno Haible  <bruno@clisp.org>
23240
23241         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23242         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23243         realloc failed.
23244
23245 2010-06-08  Peter Simons  <simons@cryp.to>
23246
23247         maint.mk: make the news-check rule more configurable
23248         * top/maint.mk (news-check-lines-spec): New variable.
23249         (news-check): Use "sed -n 1,10p" in place of "head".
23250
23251 2010-06-07  Jim Meyering  <meyering@redhat.com>
23252
23253         do-release-commit-and-tag: fix typo in --help
23254         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23255
23256         regex: avoid new dead-code warning with gcc-4.6.0
23257         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23258         if-block containing a while-loop.  It's been unused for at least
23259         5 years.
23260
23261 2010-06-05  Bruno Haible  <bruno@clisp.org>
23262
23263         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23264         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23265
23266 2010-06-04  Bruno Haible  <bruno@clisp.org>
23267
23268         Update to GNU gettext 0.18.1.
23269         * modules/gettext (configure.ac): Require gettext infrastructure from
23270         version 0.18.1.
23271
23272 2010-06-03  Bruno Haible  <bruno@clisp.org>
23273
23274         Don't use AC_LIBOBJ with file names in subdirectories.
23275         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23276         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23277         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23278         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23279         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23280         gl_LIBUNISTRING_LIBSOURCE.
23281         (Makefile.am): Augment lib_SOURCES here, conditionally.
23282         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23283
23284 2010-06-03  Bruno Haible  <bruno@clisp.org>
23285
23286         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23287         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23288         expansion does not end with a newline.
23289         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23290         unnecessary newline.
23291
23292 2010-06-03  Bruno Haible  <bruno@clisp.org>
23293
23294         Reduce dependencies.
23295         * tests/test-quotearg.h: New file, extracted from
23296         tests/test-quotearg.c.
23297         * tests/test-quotearg-simple.c: New file, extracted from
23298         tests/test-quotearg.c.
23299         * tests/test-quotearg.c: Don't include <ctype.h>.
23300         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23301         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23302         use_quote_double_quotes, use_quotearg_colon): Moved to
23303         tests/test-quotearg.h.
23304         (results_g, flag_results, custom_quotes, custom_results): Moved
23305         to tests/test-quotearg-simple.c.
23306         (main): Moved the part that does not depend on gettext to
23307         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23308         performed.
23309         * modules/quotearg-simple: New file.
23310         * modules/quotearg-simple-tests: New file.
23311         * modules/quotearg (Depends-on): Add quotearg-simple.
23312         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23313         (Files): Add tests/test-quotearg.h.
23314         Reported by Paolo Bonzini.
23315
23316 2010-06-03  Bruno Haible  <bruno@clisp.org>
23317
23318         Reduce dependencies.
23319         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23320
23321 2010-06-03  Bruno Haible  <bruno@clisp.org>
23322
23323         time: Undefine more broken macros.
23324         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23325         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23326         Reported by Eric Blake.
23327
23328 2010-06-03  Bruno Haible  <bruno@clisp.org>
23329
23330         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23331         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23332         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23333         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23334         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23335         Reported by Ludovic Courtès <ludo@gnu.org>.
23336
23337 2010-06-02  Eric Blake  <eblake@redhat.com>
23338
23339         time: work with mingw + pthreads-win32 library
23340         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23341         if timespec is defined only in pthread.h.
23342         * modules/time (Makefile.am): Substitute it.
23343         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23344         <pthread.h>, when needed.
23345         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23346         from the library.
23347
23348 2010-05-31  Bruno Haible  <bruno@clisp.org>
23349
23350         Avoid expanding two macros in the wrong order.
23351         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23352         gl_LIBUNISTRING if it is defined.
23353         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23354         autoconf >= 2.64.
23355         Reported by Ludovic Courtès <ludo@gnu.org>.
23356
23357 2010-05-27  Jim Meyering  <meyering@redhat.com>
23358
23359         maint.mk: also prohibit "#undef" of always-defined symbols
23360         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23361         Allow more than one space before the symbol name.
23362         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23363         the regexp uses alternation.
23364
23365 2010-05-26  Eric Blake  <eblake@redhat.com>
23366
23367         maint.mk: avoid echo -e
23368         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23369         Convert all uses of echo -* to printf.
23370         Reported by Matthias Bolte.
23371
23372 2010-05-25  Bruno Haible  <bruno@clisp.org>
23373
23374         Update to GNU gettext 0.18, part 2.
23375         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23376         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23377
23378 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23379
23380         Add missing include in test-pwrite.c.
23381         * tests/test-pwrite.c: Include string.h, for strcmp.
23382
23383 2010-05-24  Bruno Haible  <bruno@clisp.org>
23384
23385         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23386
23387 2010-05-24  Bruno Haible  <bruno@clisp.org>
23388
23389         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23390         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23391         iconveh_error argument.
23392         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23393         U_STRCONV_TO_LOCALE.
23394         * lib/unistr/u16-strcoll.c: Likewise.
23395         * lib/unistr/u32-strcoll.c: Likewise.
23396         * modules/unistr/u8-strcoll (Depends-on): Add
23397         uniconv/u8-strconv-to-enc, localcharset. Remove
23398         uniconv/u8-strconv-to-locale.
23399         (configure.ac): Bump version number.
23400         * modules/unistr/u16-strcoll (Depends-on): Add
23401         uniconv/u16-strconv-to-enc, localcharset. Remove
23402         uniconv/u16-strconv-to-locale.
23403         (configure.ac): Bump version number.
23404         * modules/unistr/u32-strcoll (Depends-on): Add
23405         uniconv/u32-strconv-to-enc, localcharset. Remove
23406         uniconv/u32-strconv-to-locale.
23407         (configure.ac): Bump version number.
23408
23409 2010-05-24  Bruno Haible  <bruno@clisp.org>
23410
23411         Avoid a test failure on NetBSD 5.0.
23412         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23413         an iconv() bug.
23414
23415 2010-05-24  Bruno Haible  <bruno@clisp.org>
23416
23417         Adjust #include directive style.
23418         * modules/regex (Includes): Recommend to write <regex.h>.
23419
23420 2010-05-24  Bruno Haible  <bruno@clisp.org>
23421
23422         regex: Don't require alloca.
23423         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23424         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23425         only inside if (0).
23426
23427 2010-05-23  Jim Meyering  <meyering@redhat.com>
23428
23429         test-renameat.c: include <sys/stat.h>
23430         * tests/test-renameat.c: Include <sys/stat.h>; required for
23431         definition of S_IS* macros.
23432
23433 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23434
23435         Update maintainer documentation for 'relocatable-prog' module.
23436         * doc/relocatable-maint.texi: Update.
23437         Comments by Bruno Haible.
23438
23439 2010-05-23  Bruno Haible  <bruno@clisp.org>
23440
23441         git-merge-changelog: Enable --split-merged-entry by default.
23442         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23443         (usage): Don't mention this option any more.
23444         Reported by Ralf Wildenhues.
23445
23446 2010-05-23  Jim Meyering  <meyering@redhat.com>
23447
23448         test-pwrite: do not leave behind a test file named "out"
23449         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23450         The trivial-looking use of init.sh is really necessary.
23451         It ensures that the temporary file, "out", is created in
23452         a temporary directory, and removed upon termination.
23453         * tests/test-pwrite.sh: Re-add file.
23454         * modules/pwrite-tests: Reference it.
23455
23456 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23457
23458         Fix output redirection buglet in init.sh.
23459         * tests/init.sh: Fix redirection of stderr.
23460
23461 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23462
23463         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23464
23465 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23466
23467         * modules/valgrind-tests: New file.
23468         * m4/valgrind-tests.m4: New file.
23469         * doc/valgrind-tests.texi: New file.
23470         * doc/gnulib.texi (Running self-tests under valgrind): New
23471         section.
23472
23473 2010-05-19  Bruno Haible  <bruno@clisp.org>
23474
23475         Clean up dead code in recent commit.
23476         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23477         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23478         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23479         Suggested by Paolo Bonzini.
23480
23481 2010-05-19  Bruno Haible  <bruno@clisp.org>
23482
23483         Avoid valgrind error reports from libunistring.
23484         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23485         * modules/libunistring (Files): Add it.
23486         * modules/libunistring-optional (Files): Likewise.
23487
23488 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23489             Bruno Haible  <bruno@clisp.org>
23490
23491         New module 'libunistring-optional'.
23492         * modules/libunistring-optional: New file.
23493         * m4/libunistring-base.m4: New file.
23494         * m4/libunistring-optional.m4: New file.
23495         * lib/unicase.in.h: Renamed from lib/unicase.h.
23496         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23497         * lib/unictype.in.h: Renamed from lib/unictype.h.
23498         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23499         * lib/uniname.in.h: Renamed from lib/uniname.h.
23500         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23501         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23502         * lib/unistr.in.h: Renamed from lib/unistr.h.
23503         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23504         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23505         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23506         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23507         gl_LIBUNISTRING. If the library was found, determine the installed
23508         version and set LIBUNISTRING_VERSION.
23509         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23510         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23511         handle a configuration option --with-included-libunistring.
23512         * modules/libunistring (Files): Add m4/absolute-header.m4.
23513         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23514         Add m4/libunistring-base.m4.
23515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23516         (Makefile.am): Build unicase.h from unicase.in.h.
23517         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23518         Add m4/libunistring-base.m4.
23519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23520         (Makefile.am): Build uniconv.h from uniconv.in.h.
23521         * modules/unictype/base (Files): Use unictype.in.h instead of
23522         unictype.h. Add m4/libunistring-base.m4.
23523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23524         (Makefile.am): Build unictype.h from unictype.in.h.
23525         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23526         Add m4/libunistring-base.m4.
23527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23528         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23529         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23530         Add m4/libunistring-base.m4.
23531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23532         (Makefile.am): Build uniname.h from uniname.in.h.
23533         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23534         Add m4/libunistring-base.m4.
23535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23536         (Makefile.am): Build uninorm.h from uninorm.in.h.
23537         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23538         unistdio.h. Add m4/libunistring-base.m4.
23539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23540         (Makefile.am): Build unistdio.h from unistdio.in.h.
23541         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23542         Add m4/libunistring-base.m4.
23543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23544         (Makefile.am): Build unistr.h from unistr.in.h.
23545         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23546         Add m4/libunistring-base.m4.
23547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23548         (Makefile.am): Build unitypes.h from unitypes.in.h.
23549         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23550         Add m4/libunistring-base.m4.
23551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23552         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23553         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23554         uniwidth.h. Add m4/libunistring-base.m4.
23555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23556         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23557         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23558         instead of augmenting lib_SOURCES.
23559         * modules/unicase/empty-suffix-context: Likewise.
23560         * modules/unicase/locale-language: Likewise.
23561         * modules/unicase/tolower: Likewise.
23562         * modules/unicase/totitle: Likewise.
23563         * modules/unicase/toupper: Likewise.
23564         * modules/unicase/u8-casecmp: Likewise.
23565         * modules/unicase/u8-casecoll: Likewise.
23566         * modules/unicase/u8-casefold: Likewise.
23567         * modules/unicase/u8-casexfrm: Likewise.
23568         * modules/unicase/u8-ct-casefold: Likewise.
23569         * modules/unicase/u8-ct-tolower: Likewise.
23570         * modules/unicase/u8-ct-totitle: Likewise.
23571         * modules/unicase/u8-ct-toupper: Likewise.
23572         * modules/unicase/u8-is-cased: Likewise.
23573         * modules/unicase/u8-is-casefolded: Likewise.
23574         * modules/unicase/u8-is-lowercase: Likewise.
23575         * modules/unicase/u8-is-titlecase: Likewise.
23576         * modules/unicase/u8-is-uppercase: Likewise.
23577         * modules/unicase/u8-prefix-context: Likewise.
23578         * modules/unicase/u8-suffix-context: Likewise.
23579         * modules/unicase/u8-tolower: Likewise.
23580         * modules/unicase/u8-totitle: Likewise.
23581         * modules/unicase/u8-toupper: Likewise.
23582         * modules/unicase/u16-casecmp: Likewise.
23583         * modules/unicase/u16-casecoll: Likewise.
23584         * modules/unicase/u16-casefold: Likewise.
23585         * modules/unicase/u16-casexfrm: Likewise.
23586         * modules/unicase/u16-ct-casefold: Likewise.
23587         * modules/unicase/u16-ct-tolower: Likewise.
23588         * modules/unicase/u16-ct-totitle: Likewise.
23589         * modules/unicase/u16-ct-toupper: Likewise.
23590         * modules/unicase/u16-is-cased: Likewise.
23591         * modules/unicase/u16-is-casefolded: Likewise.
23592         * modules/unicase/u16-is-lowercase: Likewise.
23593         * modules/unicase/u16-is-titlecase: Likewise.
23594         * modules/unicase/u16-is-uppercase: Likewise.
23595         * modules/unicase/u16-prefix-context: Likewise.
23596         * modules/unicase/u16-suffix-context: Likewise.
23597         * modules/unicase/u16-tolower: Likewise.
23598         * modules/unicase/u16-totitle: Likewise.
23599         * modules/unicase/u16-toupper: Likewise.
23600         * modules/unicase/u32-casecmp: Likewise.
23601         * modules/unicase/u32-casecoll: Likewise.
23602         * modules/unicase/u32-casefold: Likewise.
23603         * modules/unicase/u32-casexfrm: Likewise.
23604         * modules/unicase/u32-ct-casefold: Likewise.
23605         * modules/unicase/u32-ct-tolower: Likewise.
23606         * modules/unicase/u32-ct-totitle: Likewise.
23607         * modules/unicase/u32-ct-toupper: Likewise.
23608         * modules/unicase/u32-is-cased: Likewise.
23609         * modules/unicase/u32-is-casefolded: Likewise.
23610         * modules/unicase/u32-is-lowercase: Likewise.
23611         * modules/unicase/u32-is-titlecase: Likewise.
23612         * modules/unicase/u32-is-uppercase: Likewise.
23613         * modules/unicase/u32-prefix-context: Likewise.
23614         * modules/unicase/u32-suffix-context: Likewise.
23615         * modules/unicase/u32-tolower: Likewise.
23616         * modules/unicase/u32-totitle: Likewise.
23617         * modules/unicase/u32-toupper: Likewise.
23618         * modules/unicase/ulc-casecmp: Likewise.
23619         * modules/unicase/ulc-casecoll: Likewise.
23620         * modules/unicase/ulc-casexfrm: Likewise.
23621         * modules/uniconv/u8-conv-from-enc: Likewise.
23622         * modules/uniconv/u8-conv-to-enc: Likewise.
23623         * modules/uniconv/u8-strconv-from-enc: Likewise.
23624         * modules/uniconv/u8-strconv-from-locale: Likewise.
23625         * modules/uniconv/u8-strconv-to-enc: Likewise.
23626         * modules/uniconv/u8-strconv-to-locale: Likewise.
23627         * modules/uniconv/u16-conv-from-enc: Likewise.
23628         * modules/uniconv/u16-conv-to-enc: Likewise.
23629         * modules/uniconv/u16-strconv-from-enc: Likewise.
23630         * modules/uniconv/u16-strconv-from-locale: Likewise.
23631         * modules/uniconv/u16-strconv-to-enc: Likewise.
23632         * modules/uniconv/u16-strconv-to-locale: Likewise.
23633         * modules/uniconv/u32-conv-from-enc: Likewise.
23634         * modules/uniconv/u32-conv-to-enc: Likewise.
23635         * modules/uniconv/u32-strconv-from-enc: Likewise.
23636         * modules/uniconv/u32-strconv-from-locale: Likewise.
23637         * modules/uniconv/u32-strconv-to-enc: Likewise.
23638         * modules/uniconv/u32-strconv-to-locale: Likewise.
23639         * modules/unictype/bidicategory-byname: Likewise.
23640         * modules/unictype/bidicategory-name: Likewise.
23641         * modules/unictype/bidicategory-of: Likewise.
23642         * modules/unictype/bidicategory-test: Likewise.
23643         * modules/unictype/block-list: Likewise.
23644         * modules/unictype/block-test: Likewise.
23645         * modules/unictype/category-C: Likewise.
23646         * modules/unictype/category-Cc: Likewise.
23647         * modules/unictype/category-Cf: Likewise.
23648         * modules/unictype/category-Cn: Likewise.
23649         * modules/unictype/category-Co: Likewise.
23650         * modules/unictype/category-Cs: Likewise.
23651         * modules/unictype/category-L: Likewise.
23652         * modules/unictype/category-Ll: Likewise.
23653         * modules/unictype/category-Lm: Likewise.
23654         * modules/unictype/category-Lo: Likewise.
23655         * modules/unictype/category-Lt: Likewise.
23656         * modules/unictype/category-Lu: Likewise.
23657         * modules/unictype/category-M: Likewise.
23658         * modules/unictype/category-Mc: Likewise.
23659         * modules/unictype/category-Me: Likewise.
23660         * modules/unictype/category-Mn: Likewise.
23661         * modules/unictype/category-N: Likewise.
23662         * modules/unictype/category-Nd: Likewise.
23663         * modules/unictype/category-Nl: Likewise.
23664         * modules/unictype/category-No: Likewise.
23665         * modules/unictype/category-P: Likewise.
23666         * modules/unictype/category-Pc: Likewise.
23667         * modules/unictype/category-Pd: Likewise.
23668         * modules/unictype/category-Pe: Likewise.
23669         * modules/unictype/category-Pf: Likewise.
23670         * modules/unictype/category-Pi: Likewise.
23671         * modules/unictype/category-Po: Likewise.
23672         * modules/unictype/category-Ps: Likewise.
23673         * modules/unictype/category-S: Likewise.
23674         * modules/unictype/category-Sc: Likewise.
23675         * modules/unictype/category-Sk: Likewise.
23676         * modules/unictype/category-Sm: Likewise.
23677         * modules/unictype/category-So: Likewise.
23678         * modules/unictype/category-Z: Likewise.
23679         * modules/unictype/category-Zl: Likewise.
23680         * modules/unictype/category-Zp: Likewise.
23681         * modules/unictype/category-Zs: Likewise.
23682         * modules/unictype/category-and: Likewise.
23683         * modules/unictype/category-and-not: Likewise.
23684         * modules/unictype/category-byname: Likewise.
23685         * modules/unictype/category-name: Likewise.
23686         * modules/unictype/category-none: Likewise.
23687         * modules/unictype/category-of: Likewise.
23688         * modules/unictype/category-or: Likewise.
23689         * modules/unictype/category-test: Likewise.
23690         * modules/unictype/combining-class: Likewise.
23691         * modules/unictype/ctype-alnum: Likewise.
23692         * modules/unictype/ctype-alpha: Likewise.
23693         * modules/unictype/ctype-blank: Likewise.
23694         * modules/unictype/ctype-cntrl: Likewise.
23695         * modules/unictype/ctype-digit: Likewise.
23696         * modules/unictype/ctype-graph: Likewise.
23697         * modules/unictype/ctype-lower: Likewise.
23698         * modules/unictype/ctype-print: Likewise.
23699         * modules/unictype/ctype-punct: Likewise.
23700         * modules/unictype/ctype-space: Likewise.
23701         * modules/unictype/ctype-upper: Likewise.
23702         * modules/unictype/ctype-xdigit: Likewise.
23703         * modules/unictype/decimal-digit: Likewise.
23704         * modules/unictype/digit: Likewise.
23705         * modules/unictype/mirror: Likewise.
23706         * modules/unictype/numeric: Likewise.
23707         * modules/unictype/property-alphabetic: Likewise.
23708         * modules/unictype/property-ascii-hex-digit: Likewise.
23709         * modules/unictype/property-bidi-arabic-digit: Likewise.
23710         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23711         * modules/unictype/property-bidi-block-separator: Likewise.
23712         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23713         * modules/unictype/property-bidi-common-separator: Likewise.
23714         * modules/unictype/property-bidi-control: Likewise.
23715         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23716         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23717         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23718         * modules/unictype/property-bidi-european-digit: Likewise.
23719         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23720         * modules/unictype/property-bidi-left-to-right: Likewise.
23721         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23722         * modules/unictype/property-bidi-other-neutral: Likewise.
23723         * modules/unictype/property-bidi-pdf: Likewise.
23724         * modules/unictype/property-bidi-segment-separator: Likewise.
23725         * modules/unictype/property-bidi-whitespace: Likewise.
23726         * modules/unictype/property-byname: Likewise.
23727         * modules/unictype/property-combining: Likewise.
23728         * modules/unictype/property-composite: Likewise.
23729         * modules/unictype/property-currency-symbol: Likewise.
23730         * modules/unictype/property-dash: Likewise.
23731         * modules/unictype/property-decimal-digit: Likewise.
23732         * modules/unictype/property-default-ignorable-code-point: Likewise.
23733         * modules/unictype/property-deprecated: Likewise.
23734         * modules/unictype/property-diacritic: Likewise.
23735         * modules/unictype/property-extender: Likewise.
23736         * modules/unictype/property-format-control: Likewise.
23737         * modules/unictype/property-grapheme-base: Likewise.
23738         * modules/unictype/property-grapheme-extend: Likewise.
23739         * modules/unictype/property-grapheme-link: Likewise.
23740         * modules/unictype/property-hex-digit: Likewise.
23741         * modules/unictype/property-hyphen: Likewise.
23742         * modules/unictype/property-id-continue: Likewise.
23743         * modules/unictype/property-id-start: Likewise.
23744         * modules/unictype/property-ideographic: Likewise.
23745         * modules/unictype/property-ids-binary-operator: Likewise.
23746         * modules/unictype/property-ids-trinary-operator: Likewise.
23747         * modules/unictype/property-ignorable-control: Likewise.
23748         * modules/unictype/property-iso-control: Likewise.
23749         * modules/unictype/property-join-control: Likewise.
23750         * modules/unictype/property-left-of-pair: Likewise.
23751         * modules/unictype/property-line-separator: Likewise.
23752         * modules/unictype/property-logical-order-exception: Likewise.
23753         * modules/unictype/property-lowercase: Likewise.
23754         * modules/unictype/property-math: Likewise.
23755         * modules/unictype/property-non-break: Likewise.
23756         * modules/unictype/property-not-a-character: Likewise.
23757         * modules/unictype/property-numeric: Likewise.
23758         * modules/unictype/property-other-alphabetic: Likewise.
23759         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23760         * modules/unictype/property-other-grapheme-extend: Likewise.
23761         * modules/unictype/property-other-id-continue: Likewise.
23762         * modules/unictype/property-other-id-start: Likewise.
23763         * modules/unictype/property-other-lowercase: Likewise.
23764         * modules/unictype/property-other-math: Likewise.
23765         * modules/unictype/property-other-uppercase: Likewise.
23766         * modules/unictype/property-paired-punctuation: Likewise.
23767         * modules/unictype/property-paragraph-separator: Likewise.
23768         * modules/unictype/property-pattern-syntax: Likewise.
23769         * modules/unictype/property-pattern-white-space: Likewise.
23770         * modules/unictype/property-private-use: Likewise.
23771         * modules/unictype/property-punctuation: Likewise.
23772         * modules/unictype/property-quotation-mark: Likewise.
23773         * modules/unictype/property-radical: Likewise.
23774         * modules/unictype/property-sentence-terminal: Likewise.
23775         * modules/unictype/property-soft-dotted: Likewise.
23776         * modules/unictype/property-space: Likewise.
23777         * modules/unictype/property-terminal-punctuation: Likewise.
23778         * modules/unictype/property-test: Likewise.
23779         * modules/unictype/property-titlecase: Likewise.
23780         * modules/unictype/property-unassigned-code-value: Likewise.
23781         * modules/unictype/property-unified-ideograph: Likewise.
23782         * modules/unictype/property-uppercase: Likewise.
23783         * modules/unictype/property-variation-selector: Likewise.
23784         * modules/unictype/property-white-space: Likewise.
23785         * modules/unictype/property-xid-continue: Likewise.
23786         * modules/unictype/property-xid-start: Likewise.
23787         * modules/unictype/property-zero-width: Likewise.
23788         * modules/unictype/scripts: Likewise.
23789         * modules/unictype/syntax-c-ident: Likewise.
23790         * modules/unictype/syntax-c-whitespace: Likewise.
23791         * modules/unictype/syntax-java-ident: Likewise.
23792         * modules/unictype/syntax-java-whitespace: Likewise.
23793         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23794         * modules/unilbrk/u8-width-linebreaks: Likewise.
23795         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23796         * modules/unilbrk/u16-width-linebreaks: Likewise.
23797         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23798         * modules/unilbrk/u32-width-linebreaks: Likewise.
23799         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23800         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23801         * modules/uniname/uniname: Likewise.
23802         * modules/uninorm/canonical-decomposition: Likewise.
23803         * modules/uninorm/composition: Likewise.
23804         * modules/uninorm/decomposing-form: Likewise.
23805         * modules/uninorm/decomposition: Likewise.
23806         * modules/uninorm/filter: Likewise.
23807         * modules/uninorm/nfc: Likewise.
23808         * modules/uninorm/nfd: Likewise.
23809         * modules/uninorm/nfkc: Likewise.
23810         * modules/uninorm/nfkd: Likewise.
23811         * modules/uninorm/u8-normalize: Likewise.
23812         * modules/uninorm/u8-normcmp: Likewise.
23813         * modules/uninorm/u8-normcoll: Likewise.
23814         * modules/uninorm/u8-normxfrm: Likewise.
23815         * modules/uninorm/u16-normalize: Likewise.
23816         * modules/uninorm/u16-normcmp: Likewise.
23817         * modules/uninorm/u16-normcoll: Likewise.
23818         * modules/uninorm/u16-normxfrm: Likewise.
23819         * modules/uninorm/u32-normalize: Likewise.
23820         * modules/uninorm/u32-normcmp: Likewise.
23821         * modules/uninorm/u32-normcoll: Likewise.
23822         * modules/uninorm/u32-normxfrm: Likewise.
23823         * modules/unistdio/u8-asnprintf: Likewise.
23824         * modules/unistdio/u8-asprintf: Likewise.
23825         * modules/unistdio/u8-snprintf: Likewise.
23826         * modules/unistdio/u8-sprintf: Likewise.
23827         * modules/unistdio/u8-u8-asnprintf: Likewise.
23828         * modules/unistdio/u8-u8-asprintf: Likewise.
23829         * modules/unistdio/u8-u8-snprintf: Likewise.
23830         * modules/unistdio/u8-u8-sprintf: Likewise.
23831         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23832         * modules/unistdio/u8-u8-vasprintf: Likewise.
23833         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23834         * modules/unistdio/u8-u8-vsprintf: Likewise.
23835         * modules/unistdio/u8-vasnprintf: Likewise.
23836         * modules/unistdio/u8-vasprintf: Likewise.
23837         * modules/unistdio/u8-vsnprintf: Likewise.
23838         * modules/unistdio/u8-vsprintf: Likewise.
23839         * modules/unistdio/u16-asnprintf: Likewise.
23840         * modules/unistdio/u16-asprintf: Likewise.
23841         * modules/unistdio/u16-snprintf: Likewise.
23842         * modules/unistdio/u16-sprintf: Likewise.
23843         * modules/unistdio/u16-u16-asnprintf: Likewise.
23844         * modules/unistdio/u16-u16-asprintf: Likewise.
23845         * modules/unistdio/u16-u16-snprintf: Likewise.
23846         * modules/unistdio/u16-u16-sprintf: Likewise.
23847         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23848         * modules/unistdio/u16-u16-vasprintf: Likewise.
23849         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23850         * modules/unistdio/u16-u16-vsprintf: Likewise.
23851         * modules/unistdio/u16-vasnprintf: Likewise.
23852         * modules/unistdio/u16-vasprintf: Likewise.
23853         * modules/unistdio/u16-vsnprintf: Likewise.
23854         * modules/unistdio/u16-vsprintf: Likewise.
23855         * modules/unistdio/u32-asnprintf: Likewise.
23856         * modules/unistdio/u32-asprintf: Likewise.
23857         * modules/unistdio/u32-snprintf: Likewise.
23858         * modules/unistdio/u32-sprintf: Likewise.
23859         * modules/unistdio/u32-u32-asnprintf: Likewise.
23860         * modules/unistdio/u32-u32-asprintf: Likewise.
23861         * modules/unistdio/u32-u32-snprintf: Likewise.
23862         * modules/unistdio/u32-u32-sprintf: Likewise.
23863         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23864         * modules/unistdio/u32-u32-vasprintf: Likewise.
23865         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23866         * modules/unistdio/u32-u32-vsprintf: Likewise.
23867         * modules/unistdio/u32-vasnprintf: Likewise.
23868         * modules/unistdio/u32-vasprintf: Likewise.
23869         * modules/unistdio/u32-vsnprintf: Likewise.
23870         * modules/unistdio/u32-vsprintf: Likewise.
23871         * modules/unistdio/ulc-asnprintf: Likewise.
23872         * modules/unistdio/ulc-asprintf: Likewise.
23873         * modules/unistdio/ulc-fprintf: Likewise.
23874         * modules/unistdio/ulc-snprintf: Likewise.
23875         * modules/unistdio/ulc-sprintf: Likewise.
23876         * modules/unistdio/ulc-vasnprintf: Likewise.
23877         * modules/unistdio/ulc-vasprintf: Likewise.
23878         * modules/unistdio/ulc-vfprintf: Likewise.
23879         * modules/unistdio/ulc-vsnprintf: Likewise.
23880         * modules/unistdio/ulc-vsprintf: Likewise.
23881         * modules/unistr/u8-check: Likewise.
23882         * modules/unistr/u8-chr: Likewise.
23883         * modules/unistr/u8-cmp: Likewise.
23884         * modules/unistr/u8-cmp2: Likewise.
23885         * modules/unistr/u8-cpy: Likewise.
23886         * modules/unistr/u8-cpy-alloc: Likewise.
23887         * modules/unistr/u8-endswith: Likewise.
23888         * modules/unistr/u8-mblen: Likewise.
23889         * modules/unistr/u8-mbsnlen: Likewise.
23890         * modules/unistr/u8-mbtouc: Likewise.
23891         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23892         * modules/unistr/u8-mbtoucr: Likewise.
23893         * modules/unistr/u8-move: Likewise.
23894         * modules/unistr/u8-next: Likewise.
23895         * modules/unistr/u8-prev: Likewise.
23896         * modules/unistr/u8-set: Likewise.
23897         * modules/unistr/u8-startswith: Likewise.
23898         * modules/unistr/u8-stpcpy: Likewise.
23899         * modules/unistr/u8-stpncpy: Likewise.
23900         * modules/unistr/u8-strcat: Likewise.
23901         * modules/unistr/u8-strchr: Likewise.
23902         * modules/unistr/u8-strcmp: Likewise.
23903         * modules/unistr/u8-strcoll: Likewise.
23904         * modules/unistr/u8-strcpy: Likewise.
23905         * modules/unistr/u8-strcspn: Likewise.
23906         * modules/unistr/u8-strdup: Likewise.
23907         * modules/unistr/u8-strlen: Likewise.
23908         * modules/unistr/u8-strmblen: Likewise.
23909         * modules/unistr/u8-strmbtouc: Likewise.
23910         * modules/unistr/u8-strncat: Likewise.
23911         * modules/unistr/u8-strncmp: Likewise.
23912         * modules/unistr/u8-strncpy: Likewise.
23913         * modules/unistr/u8-strnlen: Likewise.
23914         * modules/unistr/u8-strpbrk: Likewise.
23915         * modules/unistr/u8-strrchr: Likewise.
23916         * modules/unistr/u8-strspn: Likewise.
23917         * modules/unistr/u8-strstr: Likewise.
23918         * modules/unistr/u8-strtok: Likewise.
23919         * modules/unistr/u8-to-u16: Likewise.
23920         * modules/unistr/u8-to-u32: Likewise.
23921         * modules/unistr/u8-uctomb: Likewise.
23922         * modules/unistr/u16-check: Likewise.
23923         * modules/unistr/u16-chr: Likewise.
23924         * modules/unistr/u16-cmp: Likewise.
23925         * modules/unistr/u16-cmp2: Likewise.
23926         * modules/unistr/u16-cpy: Likewise.
23927         * modules/unistr/u16-cpy-alloc: Likewise.
23928         * modules/unistr/u16-endswith: Likewise.
23929         * modules/unistr/u16-mblen: Likewise.
23930         * modules/unistr/u16-mbsnlen: Likewise.
23931         * modules/unistr/u16-mbtouc: Likewise.
23932         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23933         * modules/unistr/u16-mbtoucr: Likewise.
23934         * modules/unistr/u16-move: Likewise.
23935         * modules/unistr/u16-next: Likewise.
23936         * modules/unistr/u16-prev: Likewise.
23937         * modules/unistr/u16-set: Likewise.
23938         * modules/unistr/u16-startswith: Likewise.
23939         * modules/unistr/u16-stpcpy: Likewise.
23940         * modules/unistr/u16-stpncpy: Likewise.
23941         * modules/unistr/u16-strcat: Likewise.
23942         * modules/unistr/u16-strchr: Likewise.
23943         * modules/unistr/u16-strcmp: Likewise.
23944         * modules/unistr/u16-strcoll: Likewise.
23945         * modules/unistr/u16-strcpy: Likewise.
23946         * modules/unistr/u16-strcspn: Likewise.
23947         * modules/unistr/u16-strdup: Likewise.
23948         * modules/unistr/u16-strlen: Likewise.
23949         * modules/unistr/u16-strmblen: Likewise.
23950         * modules/unistr/u16-strmbtouc: Likewise.
23951         * modules/unistr/u16-strncat: Likewise.
23952         * modules/unistr/u16-strncmp: Likewise.
23953         * modules/unistr/u16-strncpy: Likewise.
23954         * modules/unistr/u16-strnlen: Likewise.
23955         * modules/unistr/u16-strpbrk: Likewise.
23956         * modules/unistr/u16-strrchr: Likewise.
23957         * modules/unistr/u16-strspn: Likewise.
23958         * modules/unistr/u16-strstr: Likewise.
23959         * modules/unistr/u16-strtok: Likewise.
23960         * modules/unistr/u16-to-u32: Likewise.
23961         * modules/unistr/u16-to-u8: Likewise.
23962         * modules/unistr/u16-uctomb: Likewise.
23963         * modules/unistr/u32-check: Likewise.
23964         * modules/unistr/u32-chr: Likewise.
23965         * modules/unistr/u32-cmp: Likewise.
23966         * modules/unistr/u32-cmp2: Likewise.
23967         * modules/unistr/u32-cpy: Likewise.
23968         * modules/unistr/u32-cpy-alloc: Likewise.
23969         * modules/unistr/u32-endswith: Likewise.
23970         * modules/unistr/u32-mblen: Likewise.
23971         * modules/unistr/u32-mbsnlen: Likewise.
23972         * modules/unistr/u32-mbtouc: Likewise.
23973         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23974         * modules/unistr/u32-mbtoucr: Likewise.
23975         * modules/unistr/u32-move: Likewise.
23976         * modules/unistr/u32-next: Likewise.
23977         * modules/unistr/u32-prev: Likewise.
23978         * modules/unistr/u32-set: Likewise.
23979         * modules/unistr/u32-startswith: Likewise.
23980         * modules/unistr/u32-stpcpy: Likewise.
23981         * modules/unistr/u32-stpncpy: Likewise.
23982         * modules/unistr/u32-strcat: Likewise.
23983         * modules/unistr/u32-strchr: Likewise.
23984         * modules/unistr/u32-strcmp: Likewise.
23985         * modules/unistr/u32-strcoll: Likewise.
23986         * modules/unistr/u32-strcpy: Likewise.
23987         * modules/unistr/u32-strcspn: Likewise.
23988         * modules/unistr/u32-strdup: Likewise.
23989         * modules/unistr/u32-strlen: Likewise.
23990         * modules/unistr/u32-strmblen: Likewise.
23991         * modules/unistr/u32-strmbtouc: Likewise.
23992         * modules/unistr/u32-strncat: Likewise.
23993         * modules/unistr/u32-strncmp: Likewise.
23994         * modules/unistr/u32-strncpy: Likewise.
23995         * modules/unistr/u32-strnlen: Likewise.
23996         * modules/unistr/u32-strpbrk: Likewise.
23997         * modules/unistr/u32-strrchr: Likewise.
23998         * modules/unistr/u32-strspn: Likewise.
23999         * modules/unistr/u32-strstr: Likewise.
24000         * modules/unistr/u32-strtok: Likewise.
24001         * modules/unistr/u32-to-u16: Likewise.
24002         * modules/unistr/u32-to-u8: Likewise.
24003         * modules/unistr/u32-uctomb: Likewise.
24004         * modules/uniwbrk/u8-wordbreaks: Likewise.
24005         * modules/uniwbrk/u16-wordbreaks: Likewise.
24006         * modules/uniwbrk/u32-wordbreaks: Likewise.
24007         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24008         * modules/uniwbrk/wordbreak-property: Likewise.
24009         * modules/uniwidth/u8-strwidth: Likewise.
24010         * modules/uniwidth/u8-width: Likewise.
24011         * modules/uniwidth/u16-strwidth: Likewise.
24012         * modules/uniwidth/u16-width: Likewise.
24013         * modules/uniwidth/u32-strwidth: Likewise.
24014         * modules/uniwidth/u32-width: Likewise.
24015         * modules/uniwidth/width: Likewise.
24016         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24017         with $(LIBUNISTRING).
24018         * modules/unicase/ignorable-tests: Likewise.
24019         * modules/unicase/locale-language-tests: Likewise.
24020         * modules/unicase/tolower-tests: Likewise.
24021         * modules/unicase/totitle-tests: Likewise.
24022         * modules/unicase/toupper-tests: Likewise.
24023         * modules/unicase/u8-casecmp-tests: Likewise.
24024         * modules/unicase/u8-casecoll-tests: Likewise.
24025         * modules/unicase/u8-casefold-tests: Likewise.
24026         * modules/unicase/u8-is-cased-tests: Likewise.
24027         * modules/unicase/u8-is-casefolded-tests: Likewise.
24028         * modules/unicase/u8-is-lowercase-tests: Likewise.
24029         * modules/unicase/u8-is-titlecase-tests: Likewise.
24030         * modules/unicase/u8-is-uppercase-tests: Likewise.
24031         * modules/unicase/u8-tolower-tests: Likewise.
24032         * modules/unicase/u8-totitle-tests: Likewise.
24033         * modules/unicase/u8-toupper-tests: Likewise.
24034         * modules/unicase/u16-casecmp-tests: Likewise.
24035         * modules/unicase/u16-casecoll-tests: Likewise.
24036         * modules/unicase/u16-casefold-tests: Likewise.
24037         * modules/unicase/u16-is-cased-tests: Likewise.
24038         * modules/unicase/u16-is-casefolded-tests: Likewise.
24039         * modules/unicase/u16-is-lowercase-tests: Likewise.
24040         * modules/unicase/u16-is-titlecase-tests: Likewise.
24041         * modules/unicase/u16-is-uppercase-tests: Likewise.
24042         * modules/unicase/u16-tolower-tests: Likewise.
24043         * modules/unicase/u16-totitle-tests: Likewise.
24044         * modules/unicase/u16-toupper-tests: Likewise.
24045         * modules/unicase/u32-casecmp-tests: Likewise.
24046         * modules/unicase/u32-casecoll-tests: Likewise.
24047         * modules/unicase/u32-casefold-tests: Likewise.
24048         * modules/unicase/u32-is-cased-tests: Likewise.
24049         * modules/unicase/u32-is-casefolded-tests: Likewise.
24050         * modules/unicase/u32-is-lowercase-tests: Likewise.
24051         * modules/unicase/u32-is-titlecase-tests: Likewise.
24052         * modules/unicase/u32-is-uppercase-tests: Likewise.
24053         * modules/unicase/u32-tolower-tests: Likewise.
24054         * modules/unicase/u32-totitle-tests: Likewise.
24055         * modules/unicase/u32-toupper-tests: Likewise.
24056         * modules/unicase/ulc-casecmp-tests: Likewise.
24057         * modules/unicase/ulc-casecoll-tests: Likewise.
24058         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24059         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24060         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24061         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24062         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24063         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24064         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24065         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24066         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24067         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24068         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24069         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24070         * modules/unictype/bidicategory-byname-tests: Likewise.
24071         * modules/unictype/bidicategory-name-tests: Likewise.
24072         * modules/unictype/bidicategory-of-tests: Likewise.
24073         * modules/unictype/bidicategory-test-tests: Likewise.
24074         * modules/unictype/block-list-tests: Likewise.
24075         * modules/unictype/block-of-tests: Likewise.
24076         * modules/unictype/block-test-tests: Likewise.
24077         * modules/unictype/category-C-tests: Likewise.
24078         * modules/unictype/category-Cc-tests: Likewise.
24079         * modules/unictype/category-Cf-tests: Likewise.
24080         * modules/unictype/category-Cn-tests: Likewise.
24081         * modules/unictype/category-Co-tests: Likewise.
24082         * modules/unictype/category-Cs-tests: Likewise.
24083         * modules/unictype/category-L-tests: Likewise.
24084         * modules/unictype/category-Ll-tests: Likewise.
24085         * modules/unictype/category-Lm-tests: Likewise.
24086         * modules/unictype/category-Lo-tests: Likewise.
24087         * modules/unictype/category-Lt-tests: Likewise.
24088         * modules/unictype/category-Lu-tests: Likewise.
24089         * modules/unictype/category-M-tests: Likewise.
24090         * modules/unictype/category-Mc-tests: Likewise.
24091         * modules/unictype/category-Me-tests: Likewise.
24092         * modules/unictype/category-Mn-tests: Likewise.
24093         * modules/unictype/category-N-tests: Likewise.
24094         * modules/unictype/category-Nd-tests: Likewise.
24095         * modules/unictype/category-Nl-tests: Likewise.
24096         * modules/unictype/category-No-tests: Likewise.
24097         * modules/unictype/category-P-tests: Likewise.
24098         * modules/unictype/category-Pc-tests: Likewise.
24099         * modules/unictype/category-Pd-tests: Likewise.
24100         * modules/unictype/category-Pe-tests: Likewise.
24101         * modules/unictype/category-Pf-tests: Likewise.
24102         * modules/unictype/category-Pi-tests: Likewise.
24103         * modules/unictype/category-Po-tests: Likewise.
24104         * modules/unictype/category-Ps-tests: Likewise.
24105         * modules/unictype/category-S-tests: Likewise.
24106         * modules/unictype/category-Sc-tests: Likewise.
24107         * modules/unictype/category-Sk-tests: Likewise.
24108         * modules/unictype/category-Sm-tests: Likewise.
24109         * modules/unictype/category-So-tests: Likewise.
24110         * modules/unictype/category-Z-tests: Likewise.
24111         * modules/unictype/category-Zl-tests: Likewise.
24112         * modules/unictype/category-Zp-tests: Likewise.
24113         * modules/unictype/category-Zs-tests: Likewise.
24114         * modules/unictype/category-and-not-tests: Likewise.
24115         * modules/unictype/category-and-tests: Likewise.
24116         * modules/unictype/category-byname-tests: Likewise.
24117         * modules/unictype/category-name-tests: Likewise.
24118         * modules/unictype/category-none-tests: Likewise.
24119         * modules/unictype/category-of-tests: Likewise.
24120         * modules/unictype/category-or-tests: Likewise.
24121         * modules/unictype/category-test-withtable-tests: Likewise.
24122         * modules/unictype/combining-class-tests: Likewise.
24123         * modules/unictype/ctype-alnum-tests: Likewise.
24124         * modules/unictype/ctype-alpha-tests: Likewise.
24125         * modules/unictype/ctype-blank-tests: Likewise.
24126         * modules/unictype/ctype-cntrl-tests: Likewise.
24127         * modules/unictype/ctype-digit-tests: Likewise.
24128         * modules/unictype/ctype-graph-tests: Likewise.
24129         * modules/unictype/ctype-lower-tests: Likewise.
24130         * modules/unictype/ctype-print-tests: Likewise.
24131         * modules/unictype/ctype-punct-tests: Likewise.
24132         * modules/unictype/ctype-space-tests: Likewise.
24133         * modules/unictype/ctype-upper-tests: Likewise.
24134         * modules/unictype/ctype-xdigit-tests: Likewise.
24135         * modules/unictype/decimal-digit-tests: Likewise.
24136         * modules/unictype/digit-tests: Likewise.
24137         * modules/unictype/mirror-tests: Likewise.
24138         * modules/unictype/numeric-tests: Likewise.
24139         * modules/unictype/property-alphabetic-tests: Likewise.
24140         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24141         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24142         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24143         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24144         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24145         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24146         * modules/unictype/property-bidi-control-tests: Likewise.
24147         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24148         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24149         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24150         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24151         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24152         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24153         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24154         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24155         * modules/unictype/property-bidi-pdf-tests: Likewise.
24156         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24157         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24158         * modules/unictype/property-byname-tests: Likewise.
24159         * modules/unictype/property-combining-tests: Likewise.
24160         * modules/unictype/property-composite-tests: Likewise.
24161         * modules/unictype/property-currency-symbol-tests: Likewise.
24162         * modules/unictype/property-dash-tests: Likewise.
24163         * modules/unictype/property-decimal-digit-tests: Likewise.
24164         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24165         * modules/unictype/property-deprecated-tests: Likewise.
24166         * modules/unictype/property-diacritic-tests: Likewise.
24167         * modules/unictype/property-extender-tests: Likewise.
24168         * modules/unictype/property-format-control-tests: Likewise.
24169         * modules/unictype/property-grapheme-base-tests: Likewise.
24170         * modules/unictype/property-grapheme-extend-tests: Likewise.
24171         * modules/unictype/property-grapheme-link-tests: Likewise.
24172         * modules/unictype/property-hex-digit-tests: Likewise.
24173         * modules/unictype/property-hyphen-tests: Likewise.
24174         * modules/unictype/property-id-continue-tests: Likewise.
24175         * modules/unictype/property-id-start-tests: Likewise.
24176         * modules/unictype/property-ideographic-tests: Likewise.
24177         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24178         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24179         * modules/unictype/property-ignorable-control-tests: Likewise.
24180         * modules/unictype/property-iso-control-tests: Likewise.
24181         * modules/unictype/property-join-control-tests: Likewise.
24182         * modules/unictype/property-left-of-pair-tests: Likewise.
24183         * modules/unictype/property-line-separator-tests: Likewise.
24184         * modules/unictype/property-logical-order-exception-tests: Likewise.
24185         * modules/unictype/property-lowercase-tests: Likewise.
24186         * modules/unictype/property-math-tests: Likewise.
24187         * modules/unictype/property-non-break-tests: Likewise.
24188         * modules/unictype/property-not-a-character-tests: Likewise.
24189         * modules/unictype/property-numeric-tests: Likewise.
24190         * modules/unictype/property-other-alphabetic-tests: Likewise.
24191         * modules/unictype/property-other-default-ignorable-code-point-tests:
24192         Likewise.
24193         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24194         * modules/unictype/property-other-id-continue-tests: Likewise.
24195         * modules/unictype/property-other-id-start-tests: Likewise.
24196         * modules/unictype/property-other-lowercase-tests: Likewise.
24197         * modules/unictype/property-other-math-tests: Likewise.
24198         * modules/unictype/property-other-uppercase-tests: Likewise.
24199         * modules/unictype/property-paired-punctuation-tests: Likewise.
24200         * modules/unictype/property-paragraph-separator-tests: Likewise.
24201         * modules/unictype/property-pattern-syntax-tests: Likewise.
24202         * modules/unictype/property-pattern-white-space-tests: Likewise.
24203         * modules/unictype/property-private-use-tests: Likewise.
24204         * modules/unictype/property-punctuation-tests: Likewise.
24205         * modules/unictype/property-quotation-mark-tests: Likewise.
24206         * modules/unictype/property-radical-tests: Likewise.
24207         * modules/unictype/property-sentence-terminal-tests: Likewise.
24208         * modules/unictype/property-soft-dotted-tests: Likewise.
24209         * modules/unictype/property-space-tests: Likewise.
24210         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24211         * modules/unictype/property-test-tests: Likewise.
24212         * modules/unictype/property-titlecase-tests: Likewise.
24213         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24214         * modules/unictype/property-unified-ideograph-tests: Likewise.
24215         * modules/unictype/property-uppercase-tests: Likewise.
24216         * modules/unictype/property-variation-selector-tests: Likewise.
24217         * modules/unictype/property-white-space-tests: Likewise.
24218         * modules/unictype/property-xid-continue-tests: Likewise.
24219         * modules/unictype/property-xid-start-tests: Likewise.
24220         * modules/unictype/property-zero-width-tests: Likewise.
24221         * modules/unictype/scripts-tests: Likewise.
24222         * modules/unictype/syntax-c-ident-tests: Likewise.
24223         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24224         * modules/unictype/syntax-java-ident-tests: Likewise.
24225         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24226         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24227         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24228         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24229         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24230         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24231         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24232         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24233         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24234         * modules/uniname/uniname-tests: Likewise.
24235         * modules/uninorm/canonical-decomposition-tests: Likewise.
24236         * modules/uninorm/compat-decomposition-tests: Likewise.
24237         * modules/uninorm/composition-tests: Likewise.
24238         * modules/uninorm/decomposing-form-tests: Likewise.
24239         * modules/uninorm/decomposition-tests: Likewise.
24240         * modules/uninorm/filter-tests: Likewise.
24241         * modules/uninorm/nfc-tests: Likewise.
24242         * modules/uninorm/nfd-tests: Likewise.
24243         * modules/uninorm/nfkc-tests: Likewise.
24244         * modules/uninorm/nfkd-tests: Likewise.
24245         * modules/uninorm/u8-normcmp-tests: Likewise.
24246         * modules/uninorm/u8-normcoll-tests: Likewise.
24247         * modules/uninorm/u16-normcmp-tests: Likewise.
24248         * modules/uninorm/u16-normcoll-tests: Likewise.
24249         * modules/uninorm/u32-normcmp-tests: Likewise.
24250         * modules/uninorm/u32-normcoll-tests: Likewise.
24251         * modules/unistdio/u8-asnprintf-tests: Likewise.
24252         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24253         * modules/unistdio/u8-vasprintf-tests: Likewise.
24254         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24255         * modules/unistdio/u8-vsprintf-tests: Likewise.
24256         * modules/unistdio/u16-asnprintf-tests: Likewise.
24257         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24258         * modules/unistdio/u16-vasprintf-tests: Likewise.
24259         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24260         * modules/unistdio/u16-vsprintf-tests: Likewise.
24261         * modules/unistdio/u32-asnprintf-tests: Likewise.
24262         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24263         * modules/unistdio/u32-vasprintf-tests: Likewise.
24264         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24265         * modules/unistdio/u32-vsprintf-tests: Likewise.
24266         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24267         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24268         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24269         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24270         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24271         * modules/unistr/u8-check-tests: Likewise.
24272         * modules/unistr/u8-chr-tests: Likewise.
24273         * modules/unistr/u8-cmp-tests: Likewise.
24274         * modules/unistr/u8-cmp2-tests: Likewise.
24275         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24276         * modules/unistr/u8-cpy-tests: Likewise.
24277         * modules/unistr/u8-mblen-tests: Likewise.
24278         * modules/unistr/u8-mbsnlen-tests: Likewise.
24279         * modules/unistr/u8-mbtouc-tests: Likewise.
24280         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24281         * modules/unistr/u8-mbtoucr-tests: Likewise.
24282         * modules/unistr/u8-move-tests: Likewise.
24283         * modules/unistr/u8-next-tests: Likewise.
24284         * modules/unistr/u8-prev-tests: Likewise.
24285         * modules/unistr/u8-set-tests: Likewise.
24286         * modules/unistr/u8-stpcpy-tests: Likewise.
24287         * modules/unistr/u8-stpncpy-tests: Likewise.
24288         * modules/unistr/u8-strcat-tests: Likewise.
24289         * modules/unistr/u8-strcmp-tests: Likewise.
24290         * modules/unistr/u8-strcoll-tests: Likewise.
24291         * modules/unistr/u8-strcpy-tests: Likewise.
24292         * modules/unistr/u8-strdup-tests: Likewise.
24293         * modules/unistr/u8-strlen-tests: Likewise.
24294         * modules/unistr/u8-strmblen-tests: Likewise.
24295         * modules/unistr/u8-strmbtouc-tests: Likewise.
24296         * modules/unistr/u8-strncat-tests: Likewise.
24297         * modules/unistr/u8-strncmp-tests: Likewise.
24298         * modules/unistr/u8-strncpy-tests: Likewise.
24299         * modules/unistr/u8-strnlen-tests: Likewise.
24300         * modules/unistr/u8-to-u16-tests: Likewise.
24301         * modules/unistr/u8-to-u32-tests: Likewise.
24302         * modules/unistr/u8-uctomb-tests: Likewise.
24303         * modules/unistr/u16-check-tests: Likewise.
24304         * modules/unistr/u16-chr-tests: Likewise.
24305         * modules/unistr/u16-cmp-tests: Likewise.
24306         * modules/unistr/u16-cmp2-tests: Likewise.
24307         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24308         * modules/unistr/u16-cpy-tests: Likewise.
24309         * modules/unistr/u16-mblen-tests: Likewise.
24310         * modules/unistr/u16-mbsnlen-tests: Likewise.
24311         * modules/unistr/u16-mbtouc-tests: Likewise.
24312         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24313         * modules/unistr/u16-mbtoucr-tests: Likewise.
24314         * modules/unistr/u16-move-tests: Likewise.
24315         * modules/unistr/u16-next-tests: Likewise.
24316         * modules/unistr/u16-prev-tests: Likewise.
24317         * modules/unistr/u16-set-tests: Likewise.
24318         * modules/unistr/u16-stpcpy-tests: Likewise.
24319         * modules/unistr/u16-stpncpy-tests: Likewise.
24320         * modules/unistr/u16-strcat-tests: Likewise.
24321         * modules/unistr/u16-strcmp-tests: Likewise.
24322         * modules/unistr/u16-strcoll-tests: Likewise.
24323         * modules/unistr/u16-strcpy-tests: Likewise.
24324         * modules/unistr/u16-strdup-tests: Likewise.
24325         * modules/unistr/u16-strlen-tests: Likewise.
24326         * modules/unistr/u16-strmblen-tests: Likewise.
24327         * modules/unistr/u16-strmbtouc-tests: Likewise.
24328         * modules/unistr/u16-strncat-tests: Likewise.
24329         * modules/unistr/u16-strncmp-tests: Likewise.
24330         * modules/unistr/u16-strncpy-tests: Likewise.
24331         * modules/unistr/u16-strnlen-tests: Likewise.
24332         * modules/unistr/u16-to-u32-tests: Likewise.
24333         * modules/unistr/u16-to-u8-tests: Likewise.
24334         * modules/unistr/u16-uctomb-tests: Likewise.
24335         * modules/unistr/u32-check-tests: Likewise.
24336         * modules/unistr/u32-chr-tests: Likewise.
24337         * modules/unistr/u32-cmp-tests: Likewise.
24338         * modules/unistr/u32-cmp2-tests: Likewise.
24339         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24340         * modules/unistr/u32-cpy-tests: Likewise.
24341         * modules/unistr/u32-mblen-tests: Likewise.
24342         * modules/unistr/u32-mbsnlen-tests: Likewise.
24343         * modules/unistr/u32-mbtouc-tests: Likewise.
24344         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24345         * modules/unistr/u32-mbtoucr-tests: Likewise.
24346         * modules/unistr/u32-move-tests: Likewise.
24347         * modules/unistr/u32-next-tests: Likewise.
24348         * modules/unistr/u32-prev-tests: Likewise.
24349         * modules/unistr/u32-set-tests: Likewise.
24350         * modules/unistr/u32-stpcpy-tests: Likewise.
24351         * modules/unistr/u32-stpncpy-tests: Likewise.
24352         * modules/unistr/u32-strcat-tests: Likewise.
24353         * modules/unistr/u32-strcmp-tests: Likewise.
24354         * modules/unistr/u32-strcoll-tests: Likewise.
24355         * modules/unistr/u32-strcpy-tests: Likewise.
24356         * modules/unistr/u32-strdup-tests: Likewise.
24357         * modules/unistr/u32-strlen-tests: Likewise.
24358         * modules/unistr/u32-strmblen-tests: Likewise.
24359         * modules/unistr/u32-strmbtouc-tests: Likewise.
24360         * modules/unistr/u32-strncat-tests: Likewise.
24361         * modules/unistr/u32-strncmp-tests: Likewise.
24362         * modules/unistr/u32-strncpy-tests: Likewise.
24363         * modules/unistr/u32-strnlen-tests: Likewise.
24364         * modules/unistr/u32-to-u16-tests: Likewise.
24365         * modules/unistr/u32-to-u8-tests: Likewise.
24366         * modules/unistr/u32-uctomb-tests: Likewise.
24367         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24368         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24369         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24370         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24371         * modules/uniwidth/u8-strwidth-tests: Likewise.
24372         * modules/uniwidth/u8-width-tests: Likewise.
24373         * modules/uniwidth/u16-strwidth-tests: Likewise.
24374         * modules/uniwidth/u16-width-tests: Likewise.
24375         * modules/uniwidth/u32-strwidth-tests: Likewise.
24376         * modules/uniwidth/u32-width-tests: Likewise.
24377         * modules/uniwidth/width-tests: Likewise.
24378
24379 2010-05-18  Richard Jones  <rjones@redhat.com>
24380
24381         doc: users.txt: list hivex
24382         * users.txt: Add hivex.
24383
24384 2010-05-18  Richard Jones  <rjones@redhat.com>
24385
24386         doc: users.txt: list febootstrap
24387         * users.txt: Add febootstrap.
24388
24389 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24390
24391         bootstrap: fix an error when gnulib is not used as a git submodule
24392         * build-aux/bootstrap (gnulib_path): If its length is zero then
24393         assign "gnulib" to it.
24394         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24395
24396 2010-05-16  Bruno Haible  <bruno@clisp.org>
24397
24398         Avoid autoconf warnings about AM_ICONV.
24399         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24400         2.64.
24401
24402 2010-05-16  Bruno Haible  <bruno@clisp.org>
24403
24404         absolute-header: Make the macro usable in more situations.
24405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24406         from gl_ABSOLUTE_HEADER.
24407         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24408
24409 2010-05-16  James Youngman  <jay@gnu.org>
24410
24411         doc: update users.txt
24412         * users.txt: Add CSSC.
24413
24414 2010-05-16  Jim Meyering  <meyering@redhat.com>
24415
24416         init.sh: fix an error in the previous change; add more comments
24417         * tests/init.sh: Compare exit code in loop against 9, not 2.
24418         Patch by Bruno Haible.
24419         Make the two tests more similar by adding an empty "then" clause.
24420         Add comments.
24421
24422         init.sh: avoid unnecessary shell re-exec
24423         * tests/init.sh: Improve the re-exec-required check to first test the
24424         current shell.  If it passes the test, do not search for a shell that
24425         does pass, and do not re-exec.  This test is particularly contorted to
24426         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24427         of $(...) evokes a syntax error and causes immediate shell exit with
24428         status 2.  Bruno Haible reported that the re-exec made it impossible
24429         to single-step through any init.sh-using script.
24430
24431 2010-05-16  Bruno Haible  <bruno@clisp.org>
24432
24433         Fix collision between gnulib's and libintl's printf replacements.
24434         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24435         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24436         (printf): When using GNU C, map the __printf__ function to rpl_printf
24437         via __asm__. When not using GNU C, define rpl_printf instead of
24438         __printf__.
24439         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24440         commit.
24441         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24442         commit.
24443         * m4/asm-underscore.m4: New file.
24444         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24445         * modules/stdio (Files): Add m4/asm-underscore.m4.
24446         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24447         Reported by Ben Pfaff.
24448
24449 2010-05-16  Bruno Haible  <bruno@clisp.org>
24450
24451         verify: Avoid skipping the test on openSUSE 11.0.
24452         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24453
24454 2010-05-13  Bruno Haible  <bruno@clisp.org>
24455
24456         Avoid useless warnings from G++.
24457         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24458         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24459         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24460
24461 2010-05-11  Jim Meyering  <meyering@redhat.com>
24462
24463         maint.mk: tweak preceding change
24464         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24465         regexps tighter by anchoring at EOL, and make the new group "shy"
24466         for slightly decreased overhead.
24467
24468 2010-05-11  Eric Blake  <eblake@redhat.com>
24469
24470         maint.mk: gnulib doesn't guarantee NSIG
24471         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24472
24473 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24474
24475         test-pwrite.c: Remove unused variable declaration.
24476         * tests/test-pwrite.c (main): Remove read_buf declaration.
24477
24478         Remove useless test-pwrite.sh file.
24479         * tests/test-pwrite.sh: Delete file.
24480         * modules/pwrite-tests: Remove references.
24481         Reported by Bruno Haible.
24482
24483 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24484
24485         init.sh: fix a typo
24486         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24487
24488 2010-05-10  Jim Meyering  <meyering@redhat.com>
24489
24490         maint.mk: avoid using a temporary file in the always-defined-macros check
24491         * top/maint.mk (.re-defmac): Remove rule.
24492         (gl_trap_): Remove definition.
24493         (sc_prohibit_always-defined_macros): Rewrite not to create and
24494         depend on a temporary file.  Instead, depend on GNU grep's ability
24495         to read a list of regular expressions from stdin when given "-f -".
24496
24497 2010-05-09  Bruno Haible  <bruno@clisp.org>
24498
24499         Update to GNU gettext 0.18, part 1.
24500         * m4/gettext.m4: Update to GNU gettext 0.18.
24501         * m4/intl.m4: Likewise.
24502         * m4/po.m4: Likewise.
24503         * modules/gettext (Files): Add m4/fcntl-o.m4.
24504         (configure.ac): Require gettext infrastructure from version 0.18.
24505
24506 2010-05-09  Jim Meyering  <meyering@redhat.com>
24507
24508         init.sh: enable MALLOC_PERTURB_
24509         * tests/init.sh: Enable glibc's malloc-perturbing option.
24510
24511         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24512         With my recent change in init.sh from the two-line form:
24513             -#   : ${srcdir=.}
24514             -#   . "$srcdir/init.sh"; path_prepend_ .
24515             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24516         I noticed that using the one-line form would cause this test
24517         to fail with a false-positive, or to stop working altogether,
24518         depending on whether help-version changed or all the tests did.
24519         * top/maint.mk (_hv_regex): Remove this definition.
24520         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24521         (_hv_regex_strong): Use a stronger regex to check for conformance.
24522         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24523         Give a separate diagnostic for lack of conforming use.
24524
24525         maint.mk: prohibit definition of symbols defined by gnulib
24526         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24527         definition of symbols defined by gnulib.
24528
24529 2010-05-09  Bruno Haible  <bruno@clisp.org>
24530
24531         acl: Avoid test failure on Cygwin-hosted mingw.
24532         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24533
24534 2010-05-09  Bruno Haible  <bruno@clisp.org>
24535
24536         error: Use system's fcntl function.
24537         * lib/error.c (fcntl): Undefine.
24538
24539 2010-05-09  Jim Meyering  <meyering@redhat.com>
24540
24541         verify: adjust formatting to be more consistent
24542         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24543         argument-list '('s, and after one comma.
24544
24545 2010-05-09  Bruno Haible  <bruno@clisp.org>
24546
24547         error: More reliable output on mingw.
24548         * lib/error.c: Include <windows.h>.
24549         (is_open): New function.
24550         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24551         defined.
24552
24553 2010-05-09  Bruno Haible  <bruno@clisp.org>
24554
24555         vasnprintf: Fix syntax errors in libintl build on mingw.
24556         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24557         pad_ourselves and prec_ourselves after use.
24558
24559 2010-05-08  Bruno Haible  <bruno@clisp.org>
24560
24561         * lib/config.charset: Update comments for Cygwin 1.7.
24562         * lib/localcharset.c: Likewise.
24563
24564 2010-05-07  Jim Meyering  <meyering@redhat.com>
24565
24566         init.sh: improve comments
24567         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24568         . "${srcdir=.}/init.sh"; path_prepend_ .
24569         Add a note about path_prepend_ and the alternative of using
24570         TESTS_ENVIRONMENT.
24571
24572 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24573
24574         exclude: Unescape hashed patterns in wildcard mode.
24575         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24576         to the hash list.
24577         * tests/test-exclude8.sh: New test case.
24578         * modules/exclude-tests: Add new test.
24579
24580 2010-05-05  Eric Blake  <eblake@redhat.com>
24581
24582         verify: automate tests
24583         * modules/verify-tests: New module.
24584         * tests/test-verify.sh: New file.
24585         * tests/test-verify.c: Guard each negative test with a unique id.
24586         Also avoid warning about unused left hand of comma expressions.
24587
24588 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24589
24590         Further improvements to verify.h, suggested by Eric Blake.
24591         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24592         the GL_* versions, to avoid collision with OpenGL.
24593         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24594         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24595         than testing merely whether it's defined.
24596
24597         Modify verify.h to pacify gcc -Wredundant_decls.
24598         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24599         These use the prefix "GL_" since they're likely to be useful elsewhere.
24600         We may need to break them out into a different .h file.
24601         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24602         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24603         of verify_function__.
24604
24605 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24606
24607         Tests for module pwrite.
24608         * modules/pwrite-tests: New file.
24609         * tests/test-pwrite.sh: New file.
24610         * tests/test-pwrite.c: New file.
24611
24612         New module pwrite.
24613         * lib/unistd.in.h (pwrite): New declaration.
24614         * lib/pwrite.c: New file, from glibc with modifications.
24615         * m4/pwrite.m4: New file.
24616         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24618         REPLACE_PWRITE.
24619         * modules/pwrite: New file.
24620         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24621         REPLACE_PWRITE.
24622         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24623         * doc/posix-functions/pwrite.texi: Mention the new module.
24624
24625 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24626
24627         pread: Update documentation.
24628         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24629
24630 2010-05-04  Eric Blake  <eblake@redhat.com>
24631
24632         docs: update cygwin progress
24633         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24634         this bug.
24635         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24636         Added in cygwin 1.7.2.
24637         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24638         Likewise.
24639         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24640         Likewise.
24641         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24642         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24643         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24644         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24645         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24646         Mention nproc module.
24647         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24648         bug in cygwin 1.7.5 addition.
24649         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24650         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24651         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24652         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24653         1.7.5.
24654         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24655         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24656         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24657         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24658         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24659         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24660         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24661         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24662         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24663         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24664         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24665         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24666         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24667         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24668         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24669         Likewise.
24670         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24671         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24672         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24673         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24674         Likewise.
24675         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24676         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24677         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24678         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24679         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24680         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24681         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24682         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24683         Likewise.
24684         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24685         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24686         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24687         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24688         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24689         Likewise.
24690         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24691         Likewise.
24692         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24693         Likewise.
24694         * doc/glibc-functions/xdrrec_endofrecord.texi
24695         (xdrrec_endofrecord): Likewise.
24696         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24697         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24698         Likewise.
24699         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24700         Likewise.
24701
24702 2010-05-04  Jim Meyering  <meyering@redhat.com>
24703
24704         gendocs.sh: make its "-s FILE" option more useful
24705         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24706         $PACKAGE to reflect the probably-different basename of "FILE".
24707
24708 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24709
24710         bootstrap: don't ignore download_po_files failure
24711         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24712         failure.
24713
24714 2010-05-03  Jim Meyering  <meyering@redhat.com>
24715
24716         maint.mk: allow to pass options to gendocs.sh
24717         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24718         (gendocs_options_): New overridable variable.
24719
24720         gnu-web-doc-update: don't ignore configure or build failure
24721         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24722
24723         announce-gen: backslash-escape '@'s in --help output
24724         * build-aux/announce-gen: Fix syntax errors.
24725
24726         maint.mk, announce-gen: allow project-specific announcement mail headers
24727         * top/maint.mk (translation_project_): Define default.
24728         (announcement_Cc_, announcement_mail_headers_): Likewise.
24729         (announcement): Invoke announce-gen with new --mail-headers option.
24730         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24731
24732         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24733         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24734         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24735         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24736         line in the "err2" output file when running "make check" in verbose
24737         mode (i.e., with set -x enabled).
24738
24739 2010-05-03  Bruno Haible  <bruno@clisp.org>
24740
24741         wctob: Fix for weird platforms.
24742         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24743         argument value.
24744
24745 2010-05-03  Jim Meyering  <meyering@redhat.com>
24746
24747         maint.mk: prohibit unwarranted use of <strings.h>
24748         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24749         strings.h in a file that does not also use strcasecmp, strncasecmp,
24750         ffs or ffsll.
24751
24752         maint.mk: remove obsolete comments
24753         * top/maint.mk: Remove stale, commented-out rules.
24754
24755 2010-05-02  Bruno Haible  <bruno@clisp.org>
24756
24757         wcwidth: Declare also when it's aliased.
24758         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24759         macro.
24760
24761 2010-05-02  Bruno Haible  <bruno@clisp.org>
24762
24763         Fix regression from 2010-04-25.
24764         * gnulib-tool (func_modules_transitive_closure): Check the status of
24765         all modules, not only of the tests that are of the form foo-tests where
24766         foo is a module.
24767
24768 2010-05-02  Bruno Haible  <bruno@clisp.org>
24769
24770         wctob: Work around nasty Cygwin 1.7.2 bug.
24771         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24772         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24773
24774 2010-05-01  Bruno Haible  <bruno@clisp.org>
24775
24776         fpurge: Sharper test.
24777         * tests/test-fpurge.c (main): Add one more ftell check.
24778         * modules/fpurge-tests (Depends-on): Add ftell.
24779         Suggested by Eric Blake.
24780
24781 2010-05-01  Bruno Haible  <bruno@clisp.org>
24782
24783         ftello: Another test.
24784         * tests/test-ftello3.c: New file.
24785         * modules/ftello-tests (Files): Add it.
24786         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24787         MOSTLYCLEANFILES.
24788
24789         ftell: Another test.
24790         * tests/test-ftell3.c: New file.
24791         * modules/ftell-tests (Files): Add it.
24792         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24793         MOSTLYCLEANFILES.
24794
24795 2010-05-01  Bruno Haible  <bruno@clisp.org>
24796
24797         ftell, ftello: Work around Solaris bug.
24798         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24799         * lib/ftello.c: Include stdio-impl.h.
24800         (ftello): On Solaris, when _IOWRT is set, compute the result without
24801         looking at _IOREAD.
24802         * modules/ftello (Files): Add lib/stdio-impl.h.
24803         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24804         * doc/posix-functions/ftello.texi: Likewise.
24805         Reported by Eric Blake.
24806
24807 2010-05-01  Bruno Haible  <bruno@clisp.org>
24808
24809         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24810         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24811         the _IOWRT flag is also set.
24812
24813 2010-05-01  Bruno Haible  <bruno@clisp.org>
24814
24815         Fix doc about a HP-UX stdio bug.
24816         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24817         * doc/posix-functions/ftello.texi: Likewise.
24818
24819 2010-05-01  Bruno Haible  <bruno@clisp.org>
24820
24821         lseek test: Fix failure on Solaris.
24822         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24823         output.
24824
24825 2010-04-30  Jim Meyering  <meyering@redhat.com>
24826
24827         bootstrap: don't ignore failure to generate po*/Makevars
24828         * build-aux/bootstrap (with_gettext): Don't ignore failure
24829         to create po/Makevars or runtime-po/Makevars.
24830
24831 2010-04-29  Eric Blake  <eblake@redhat.com>
24832
24833         headers: relax license to LGPLv2+
24834         * modules/fcntl-h (License): Relax license.
24835         * modules/getopt-posix (License): Likewise.
24836         * modules/locale (License): Likewise.
24837         * modules/math (License): Likewise.
24838         * modules/pty (License): Likewise.
24839         * modules/sched (License): Likewise.
24840         * modules/search (License): Likewise.
24841         * modules/spawn (License): Likewise.
24842         * modules/stdarg (License): Likewise.
24843         * modules/sysexits (License): Likewise.
24844
24845 2010-04-29  Jim Meyering  <meyering@redhat.com>
24846
24847         inttypes: relax license to LGPLv2+
24848         * modules/inttypes (License): Relax license.
24849
24850 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24851
24852         * top/maint.mk (indent): Run twice to produce idempotent results.
24853
24854 2010-04-28  Bruno Haible  <bruno@clisp.org>
24855
24856         getdate: Generate getdate.c in the source directory.
24857         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24858         MOSTLYCLEANFILES.
24859         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24860
24861 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24862
24863         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24864         is not declared as a const *; avoid warnings in that case.
24865
24866 2010-04-28  Eric Blake  <eblake@redhat.com>
24867
24868         canonicalize-lgpl: avoid compiler warning
24869         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24870         declaration' / 'extraneous semicolon' warning with some compilers.
24871         Reported by Andreas Gruenbacher.
24872
24873 2010-04-28  Jim Meyering  <meyering@redhat.com>
24874
24875         init.sh: ensure a more reliable exit status when exiting via trap
24876         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24877         Inspired by patches from Dmitry V. Levin.
24878         Also trap on signal 3 (SIGQUIT).
24879
24880 2010-04-27  Bruno Haible  <bruno@clisp.org>
24881
24882         Update doc about utimes().
24883         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24884         'utimens' module.
24885         Reported by Andreas Gruenbacher <agruen@suse.de>.
24886
24887 2010-04-27  Eric Blake  <eblake@redhat.com>
24888
24889         full-read, full-write: relax license
24890         * modules/full-read (License): Drop to LGPLv2+.
24891         * modules/full-write (License): Likewise.
24892         * modules/safe-read (License): Likewise.
24893         * modules/safe-write (License): Likewise.
24894
24895         pthread: mention library for linking
24896         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24897
24898 2010-04-27  Jim Meyering  <meyering@redhat.com>
24899
24900         maint.mk: fix a bug introduced in last change
24901         * top/maint.mk (gl_assured_headers_): Now that all names are on
24902         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24903         is not anchored to end of word, it should be adequate.
24904
24905         maint.mk: avoid side-effect in latest syntax-check
24906         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24907         to run commands via $(shell...), and hence to incur cost only when
24908         the new rule is actually run.
24909
24910         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24911         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24912         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24913         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24914         (gl_assured_headers_, az_, AZ_): Define.
24915         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24916
24917 2010-04-26  Jim Meyering  <jim@meyering.net>
24918             Bruno Haible  <bruno@clisp.org>
24919
24920         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24921         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24922         Prompted by an exchange with Gilles Espinasse.
24923
24924 2010-04-26  Jim Meyering  <meyering@redhat.com>
24925
24926         git-version-gen: aesthetic tweak
24927         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24928         so that the command remains on a single line.
24929
24930 2010-04-26  Eric Blake  <eblake@redhat.com>
24931
24932         git-version-gen: allow use on EBCDIC hosts
24933         * build-aux/git-version-gen (dirty): Use literal rather than tying
24934         ourselves to ascii.
24935         Reported by Steve Goetze.
24936
24937 2010-04-25  Bruno Haible  <bruno@clisp.org>
24938
24939         netdb: Add support for GNULIB_POSIXCHECK.
24940         * lib/netdb.in.h: Include warn-on-use.h.
24941         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24942         functions are used when GNULIB_POSIXCHECK is defined and the
24943         getaddrinfo module is not in use.
24944         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24945         freeaddrinfo, gai_strerror, getnameinfo are declared.
24946         * modules/netdb (Depends-on): Add warn-on-use.
24947         (Makefile.am): Include warn-on-use.h in netdb.h.
24948
24949 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24950
24951         build: avoid "make check" failure without .git/ directory
24952         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24953         there is no .git/ directory.
24954
24955 2010-04-25  Bruno Haible  <bruno@clisp.org>
24956
24957         ptsname: Fix misuse of ttyname_r.
24958         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24959         of errno.
24960
24961 2010-04-25  Bruno Haible  <bruno@clisp.org>
24962
24963         ttyname_r: Make it work on Solaris 10.
24964         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24965         if the system function has the POSIX declaration. Test whether the
24966         function fails if the buffer is less than 128 bytes large.
24967         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24968         system's ttyname_r function. Provide a reasonably large buffer.
24969         * modules/ttyname_r (Depends-on): Add extensions.
24970         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24971
24972 2010-04-25  Bruno Haible  <bruno@clisp.org>
24973
24974         Use the 'extensions' module for some more functions on Solaris.
24975         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24976         module.
24977         * doc/posix-functions/ctime_r.texi: Likewise.
24978         * doc/posix-functions/getgrgid_r.texi: Likewise.
24979         * doc/posix-functions/getgrnam_r.texi: Likewise.
24980         * doc/posix-functions/getpwnam_r.texi: Likewise.
24981         * doc/posix-functions/getpwuid_r.texi: Likewise.
24982         * doc/posix-functions/readdir_r.texi: Likewise.
24983         * doc/posix-functions/sigwait.texi: Likewise.
24984         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24985         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24986
24987 2010-04-25  Bruno Haible  <bruno@clisp.org>
24988
24989         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24990         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24991         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24992         * lib/ttyname_r.c: Include <limits.h>.
24993         (ttyname_r): Define using the system's ttyname_r function, if it exists
24994         and not on Solaris.
24995         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24996         set.
24997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24998         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24999         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25000         Reported by Simon Josefsson.
25001
25002 2010-04-25  Bruno Haible  <bruno@clisp.org>
25003
25004         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25005         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25006         * doc/posix-functions/ctime_r.texi: Likewise.
25007         * doc/posix-functions/getgrgid_r.texi: Likewise.
25008         * doc/posix-functions/getgrnam_r.texi: Likewise.
25009         * doc/posix-functions/getlogin_r.texi: Likewise.
25010         * doc/posix-functions/getpwnam_r.texi: Likewise.
25011         * doc/posix-functions/getpwuid_r.texi: Likewise.
25012         * doc/posix-functions/readdir_r.texi: Likewise.
25013         * doc/posix-functions/sigwait.texi: Likewise.
25014         * doc/posix-functions/ttyname_r.texi: Likewise.
25015         Reported by Simon Josefsson.
25016
25017 2010-04-25  Bruno Haible  <bruno@clisp.org>
25018
25019         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25020         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25021         also to --create-testdir.
25022         (func_acceptable): Don't consider the status of *-tests modules here.
25023         (func_modules_transitive_closure): Consider it here, before including a
25024         test module.
25025         (func_import, func_create_testdir): Set inc_all_direct_tests,
25026         inc_all_indirect_tests.
25027         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25028         --create-testdir and --create-megatestdir.
25029
25030 2010-04-25  Bruno Haible  <bruno@clisp.org>
25031
25032         gnulib-tool: Add --without-*-tests options.
25033         * gnulib-tool (func_usage): Document the --without-*-tests options.
25034         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25035         excl_unportable_tests): New variables.
25036         Fail if they are specified with --import or --update.
25037         (func_acceptable): Respect the excl_*_tests variables.
25038         (func_import): Set the excl_*_tests variables to empty.
25039
25040 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25041             Bruno Haible  <bruno@clisp.org>
25042
25043         Work around a MacOS X 10.4 bug with openpty.
25044         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25045         * tests/test-openpty.c (main): Close the master side explicitly.
25046
25047 2010-04-25  Bruno Haible  <bruno@clisp.org>
25048
25049         strnlen: Fix a C++ test error on MacOS X and Solaris.
25050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25051         the function is not declared.
25052         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25053         Simon Josefsson.
25054
25055 2010-04-24  Bruno Haible  <bruno@clisp.org>
25056
25057         Avoid a gcc warning.
25058         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25059         of correct type for %08lx directive.
25060         Reported by Eric Blake.
25061
25062 2010-04-24  Bruno Haible  <bruno@clisp.org>
25063
25064         vasnprintf: Correct errno value in case of out-of-memory.
25065         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25066         or sprintf. Use the errno value from SNPRINTF or sprintf.
25067         Reported by Ian Beckwith <ianb@erislabs.net>.
25068
25069 2010-04-24  Bruno Haible  <bruno@clisp.org>
25070
25071         ansi-c++-opt: Find correct compiler when cross-compiling.
25072         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25073         AC_CHECK_PROGS.
25074         Reported by Simon Josefsson.
25075
25076 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25077
25078         vc-list-files: Add support for subversion
25079         * build-aux/vc-list-files: Use "svn list" to generate the list of
25080         files controlled by subversion.
25081
25082 2010-04-23  Jim Meyering  <meyering@redhat.com>
25083
25084         vc-list-files tests: convert to use init.sh
25085         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25086         path_prepend_.
25087         Use Exit, not exit.
25088         Use skip_ rather than open coding it.
25089         Remove trap set-up and compare definitions.
25090         * tests/test-vc-list-files-git.sh: Likewise.
25091         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25092
25093 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25094
25095         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25096         backup files.
25097
25098 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25099
25100         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25101
25102 2010-04-20  Eric Blake  <eblake@redhat.com>
25103
25104         tests: be robust to ignored SIGPIPE
25105         * tests/test-select-in.sh: Consume all output.
25106         * tests/test-lseek.sh: Check correct exit status, while avoiding
25107         EPIPE.
25108
25109 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25110             Bruno Haible  <bruno@clisp.org>
25111
25112         visibility: Don't use -fvisibility if it leads to a warning.
25113         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25114         yes, don't pretend that visibility works if it leads to a warning.
25115         Reported by Mike Gran <spk121@yahoo.com>.
25116
25117 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25118
25119         * build-aux/bootstrap: Use "git -h" for testing for supported options
25120         instead of "git --help".  The short-form option only shows a summary,
25121         and doesn't layout the full man page.  Grep for the full option name
25122         in the summary, too.
25123
25124 2010-04-19  Bruno Haible  <bruno@clisp.org>
25125
25126         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25127         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25128         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25129         mention of RELOCATABLE_STRIP.
25130         Reported by Sylvain Beucler <beuc@beuc.net>.
25131
25132 2010-04-19  Bruno Haible  <bruno@clisp.org>
25133
25134         * lib/diffseq.h: Fix typo in comment.
25135         Reported by Eric Blake.
25136
25137 2010-04-19  Bruno Haible  <bruno@clisp.org>
25138
25139         ioctl: Move autoconf macro to a .m4 file.
25140         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25141         * modules/ioctl (Files): Add it.
25142         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25143         Reported by Ian Beckwith <ianb@erislabs.net>.
25144
25145 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25146             Bruno Haible  <bruno@clisp.org>
25147
25148         diffseq: Accommodate use-case with abstract arrays.
25149         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25150         is not defined.
25151         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25152         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25153
25154 2010-04-18  Bruno Haible  <bruno@clisp.org>
25155
25156         * doc/posix-headers/stdbool.texi: More precise wording.
25157
25158 2010-04-17  Jim Meyering  <meyering@redhat.com>
25159
25160         maint.mk: use gnu-style indentation in an embedded perl script
25161         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25162         Rename variable: s/two/last_two_bytes/
25163
25164 2010-04-16  Eric Blake  <eblake@redhat.com>
25165
25166         test-stdbool: skip test that fails with Solaris CC
25167         * tests/test-stdbool.c (f): Skip test that causes compilation
25168         error under buggy C++ compiler.
25169         * lib/stdbool.in.h: Document the limitation.
25170         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25171
25172         setenv: allow compilation with C++
25173         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25174         register keyword.
25175
25176         stdint: allow test to pass with C++
25177         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25178
25179         getopt: allow compilation with C++
25180         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25181         struct.
25182         * lib/getopt.c (_getopt_internal_r): Use correct type.
25183         Reported by Dagobert Michelson, via Joel E. Denny.
25184
25185 2010-04-16  Bruno Haible  <bruno@clisp.org>
25186
25187         Override netdb.h always.
25188         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25189         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25190         Reported by Ludovic Courtès <ludo@gnu.org>.
25191
25192 2010-04-15  Bruno Haible  <bruno@clisp.org>
25193
25194         openpty: Fix mistake from 2010-03-21.
25195         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25196         Reported by Simon Josefsson.
25197
25198 2010-04-15  Eric Blake  <eblake@redhat.com>
25199
25200         test-forkpty: fix expected signature
25201         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25202         Reported by Simon Josefsson.
25203
25204 2010-04-15  Jim Meyering  <meyering@redhat.com>
25205
25206         maint.mk: texinfo_suffix_re_: correct the default regexp
25207         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25208
25209         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25210         make it configurable via texinfo_suffix_re_.
25211
25212 2010-04-14  Eric Blake  <eblake@redhat.com>
25213
25214         strtok_r: relax license to LGPLv2+
25215         * modules/strtok_r (License): Relax license.
25216         Reported by Matthias Bolte.
25217
25218 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25219
25220         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25221         version 1.4.4 by default instead of requiring the libgcrypt
25222         version used during build.  This makes it possible to use the
25223         application with older but still binary compatible libgcrypt
25224         versions.
25225
25226 2010-04-13  Eric Blake  <eblake@redhat.com>
25227
25228         getopt-gnu: match recent glibc fixes and posix ruling
25229         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25230         '+' handling, when requesting extensions.
25231         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25232         'W;' handling.
25233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25234         * doc/posix-functions/getopt.texi (getopt): Document this.
25235         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25236         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25237         Likewise.
25238
25239         getopt: merge bug fixes from glibc
25240         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25241         diagnostics.  Honor '+:' correctly.  Reject ';'.
25242
25243         getopt-posix: detect MacOS bug
25244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25245         optind when missing a required argument.
25246         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25247         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25248         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25249         Likewise.
25250
25251         getopt-posix: avoid spurious failure on Solaris
25252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25253         an indicator that setting optind=1 is sufficient for reset.
25254
25255         getopt-posix: avoid spurious failure on FreeBSD
25256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25257         in POSIX mode, since the m4 test uses it.
25258
25259         gnulib-tool: silence warning on BSD sh
25260         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25261
25262 2010-04-13  Jim Meyering  <meyering@redhat.com>
25263
25264         doc: users.txt: GNU patch now uses gnulib
25265         * users.txt: Add patch.
25266
25267 2010-04-12  Jim Meyering  <meyering@redhat.com>
25268
25269         maint.mk: generate more concise timing data for syntax-check rules
25270         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25271         " done" from each line that reports a syntax-check test duration.
25272
25273 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25274
25275         git-version-gen: use "git update-index..." rather than "git status"
25276         * build-aux/git-version-gen: Use git update-index --refresh, not
25277         "git status".  With some versions of git, "git status" would fail
25278         to update the index and result in an unwarranted "-dirty" suffix.
25279
25280 2010-04-11  Jim Meyering  <meyering@redhat.com>
25281
25282         openat: correct formatting (no semantic change)
25283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25284         Suggested by Bruno Haible.
25285
25286 2010-04-11  Bruno Haible  <bruno@clisp.org>
25287
25288         Stricter declaration checking in testdirs.
25289         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25290         If for_tests is true, augment AM_CPPFLAGS to define
25291         GNULIB_STRICT_CHECKING.
25292         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25293         GNULIB_STRICT_CHECKING is defined, verify that the function is
25294         declared.
25295
25296 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25297             Bruno Haible  <bruno@clisp.org>
25298
25299         libunistring: Improve configure output.
25300         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25301         Don't say "consider installing GNU libunistring" when checking again
25302         with libiconv.
25303
25304 2010-04-11  Bruno Haible  <bruno@clisp.org>
25305
25306         libunistring: Correct value of $LTLIBUNISTRING.
25307         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25308         correct the value of $LTLIBUNISTRING.
25309
25310 2010-04-11  Bruno Haible  <bruno@clisp.org>
25311
25312         havelib: Add static libraries to LIBS in the right order.
25313         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25314         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25315
25316 2010-04-11  Bruno Haible  <bruno@clisp.org>
25317
25318         libunistring: Detect libunistring also when it depends on libiconv.
25319         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25320         the second AC_LIB_HAVE_LINKFLAGS invocation.
25321
25322 2010-04-11  James Youngman  <jay@gnu.org>
25323
25324         close-stream: declare local scalars to be "const"
25325         * lib/close-stream.c (close_stream): Make boolean variables const
25326         to document the fact that we set but do not change them.
25327
25328 2010-04-11  Bruno Haible  <bruno@clisp.org>
25329
25330         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25331
25332 2010-04-11  Jim Meyering  <meyering@redhat.com>
25333
25334         maint.mk: don't include dist-check.mk
25335         * top/maint.mk: Remove bogus include directive.
25336
25337         maint.mk: improve empty-line-at-EOF check
25338         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25339         solution, rather than tail+Perl-based one.  The latter would read
25340         a few kilobytes from the end of each file, and did not handle empty
25341         files properly.
25342
25343         maint.mk: print the elapsed time for each syntax-check rule
25344         * top/maint.mk (sc_m_rules_): Save start time in a file.
25345         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25346         (local-check): Interpose the .z rules
25347
25348 2010-04-11  Jim Meyering  <meyering@redhat.com>
25349
25350         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25351         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25352         empty file with one that ends in an empty line.
25353
25354 2010-04-10  Bruno Haible  <bruno@clisp.org>
25355
25356         mkdir: Make it work on mingw64.
25357         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25358         * lib/mkdir.c: Update comment.
25359         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25360
25361 2010-04-10  Bruno Haible  <bruno@clisp.org>
25362
25363         Don't override improved macro from newer autoconf.
25364         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25365         autoconf >= 2.62.
25366         Reported by Joel E. Denny <jdenny@clemson.edu>.
25367
25368 2010-04-10  Jim Meyering  <meyering@redhat.com>
25369
25370         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25371         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25372
25373         maint.mk: correct a diagnostic
25374         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25375         in diagnostic; now use $prohibit.
25376
25377 2010-04-10  Bruno Haible  <address@hidden>
25378
25379         fchownat: Fix a C++ test error on Solaris 8.
25380         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25381         the function does not exist.
25382
25383 2010-04-10  Bruno Haible  <bruno@clisp.org>
25384
25385         vasnprintf: Add more tests.
25386         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25387         (test_function): Test converting an invalid wide string.
25388
25389         vasnprintf: Correct handling of unconvertible wide string arguments.
25390         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25391         VASNPRINTF.
25392         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25393         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25394         smaller than the expected maximum need for the directive. Set errno to
25395         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25396         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25398         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25399         * modules/vasnprintf (Files): Add m4/printf.m4.
25400         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25401
25402 2010-04-10  Bruno Haible  <bruno@clisp.org>
25403
25404         vasnprintf: Fix crash in %ls directive.
25405         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25406         string is passed as argument to %ls, with no precision and no width.
25407         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25408
25409 2010-04-10  Bruno Haible  <bruno@clisp.org>
25410
25411         vasnprintf: Fix multiple test failures on mingw.
25412         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25413         _snprintf, or snwprintf, not _snwprintf.
25414
25415 2010-04-10  Bruno Haible  <bruno@clisp.org>
25416
25417         write: Fix a C++ test error on mingw.
25418         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25419
25420 2010-04-10  Bruno Haible  <bruno@clisp.org>
25421
25422         vasnprintf test: Reduce code duplication.
25423         * tests/test-vasnprintf.c (test_function): New function, extracted from
25424         test_vasnprintf.
25425         (test_vasnprintf, test_asnprintf): Invoke it.
25426
25427 2010-04-10  Bruno Haible  <bruno@clisp.org>
25428
25429         strnlen: Fix warning in C++ mode on MacOS X.
25430         * lib/string.in.h (strnlen): Use the modern idiom.
25431         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25432         defining strnlen as a macro already in <config.h>.
25433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25434         REPLACE_STRNLEN.
25435         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25436         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25437
25438 2010-04-08  James Youngman  <jay@gnu.org>
25439
25440         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25441         the example.
25442
25443 2010-04-09  Jim Meyering  <meyering@redhat.com>
25444
25445         maint.mk: print better diagnostic when there is no $(_hv_file)
25446         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25447         announce that when $(_hv_file) (aka help-version) does not exist.
25448
25449         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25450         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25451         not try to interpret its random input bytes.  Jarno Rajahalme reported
25452         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25453         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25454         (mktempd_): Likewise, just in case.
25455
25456         ftruncate: add two years to projected module removal date: 2012
25457         * m4/ftruncate.m4: Adjust comments.
25458
25459         ftruncate: mark module as obsolete; even MinGW provides it, now
25460         * modules/ftruncate (Status): Obsolete.
25461         (Notice): Say that.
25462         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25464
25465 2010-04-08  Bruno Haible  <bruno@clisp.org>
25466
25467         Fix side effects from tests-related modules.
25468         * modules/dprintf-posix (Comment): New section.
25469         * modules/fprintf-posix (Comment): Likewise.
25470         * modules/obstack-printf-posix (Comment): Likewise.
25471         * modules/printf-posix (Comment): Likewise.
25472         * modules/snprintf-posix (Comment): Likewise.
25473         * modules/sprintf-posix (Comment): Likewise.
25474         * modules/vasnprintf-posix (Comment): Likewise.
25475         * modules/vasprintf-posix (Comment): Likewise.
25476         * modules/vdprintf-posix (Comment): Likewise.
25477         * modules/vfprintf-posix (Comment): Likewise.
25478         * modules/vprintf-posix (Comment): Likewise.
25479         * modules/vsnprintf-posix (Comment): Likewise.
25480         * modules/vsprintf-posix (Comment): Likewise.
25481         * modules/xprintf-posix (Comment): Likewise.
25482         * modules/xvasprintf-posix (Comment): Likewise.
25483         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25484         * modules/floorf-tests (Depends-on): Likewise.
25485         * modules/round-tests (Depends-on): Likewise.
25486         * modules/roundf-tests (Depends-on): Likewise.
25487         * modules/trunc-tests (Depends-on): Likewise.
25488         * modules/truncf-tests (Depends-on): Likewise.
25489         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25490         'fprintf-posix' module is not present.
25491         * tests/test-floorf2.c (check): Likewise.
25492         * tests/test-trunc2.c (check): Likewise.
25493         * tests/test-truncf2.c (check): Likewise.
25494         * tests/test-round2.c (equal): Likewise.
25495         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25496
25497 2010-04-07  Karl Berry  <karl@gnu.org>
25498
25499         * config/srclist.txt,
25500         * config/srclistvars.sh,
25501         * config/srclist-update: doc fixes.
25502
25503 2010-04-07  Jim Meyering  <meyering@redhat.com>
25504
25505         maint.mk: add a PATH crosschecking syntax-check rule
25506         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25507         Useful if you use a test like the one in help-version (coreutils,
25508         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25509         printed by prog --version.
25510
25511 2010-04-06  Bruno Haible  <bruno@clisp.org>
25512
25513         Fix link error on mingw.
25514         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25515         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25516
25517 2010-04-06  Bruno Haible  <bruno@clisp.org>
25518
25519         Assume rmdir exists.
25520         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25521
25522 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25523
25524         doc: update users.txt
25525         * users.txt: Add gcal.
25526
25527 2010-04-06  Jim Meyering  <meyering@redhat.com>
25528
25529         init.sh: simply unset TMPDIR rather than risking env -i
25530         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25531         although it probably works fine on all Unix-based systems, some
25532         systems (Cygwin?) cannot tolerate a totally cleared environment.
25533         Suggestion from Eric Blake.
25534
25535 2010-04-06  Jim Meyering  <meyering@redhat.com>
25536
25537         init.sh: portability fix: use env's POSIX-specified -i option not -u
25538         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25539         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25540
25541 2010-04-05  Bruno Haible  <bruno@clisp.org>
25542
25543         btowc: Work around Cygwin 1.7.2 bug.
25544         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25545         does not map NUL to 0.
25546         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25547
25548 2010-04-05  Bruno Haible  <bruno@clisp.org>
25549
25550         Make the multithread modules work on Cygwin 1.7.2.
25551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25552         imported symbols can be declared weak, so that it returns "no" on
25553         Cygwin 1.7.2.
25554
25555 2010-04-05  Bruno Haible  <bruno@clisp.org>
25556
25557         Use the module 'strncat'.
25558         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25559
25560         Tests for module 'strncat'.
25561         * modules/strncat-tests: New file.
25562         * tests/test-strncat.c: New file.
25563
25564         New module 'strncat'.
25565         * lib/string.in.h (strncat): New declaration.
25566         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25567         * m4/strncat.m4: New file, based on m4/memchr.m4.
25568         * modules/strncat: New file.
25569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25570         is declared.
25571         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25572         REPLACE_STRNCAT.
25573         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25574         REPLACE_STRNCAT.
25575         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25576         module.
25577         * tests/test-string-c++.cc: Check signature of strncat.
25578
25579 2010-04-05  Jim Meyering  <meyering@redhat.com>
25580
25581         xstrtoumax-tests: convert to use init.sh
25582         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25583         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25584         Use Exit, not exit.
25585         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25586
25587         xstrtoimax-tests: convert to use init.sh
25588         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25589         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25590         Use Exit, not exit.
25591         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25592
25593 2010-04-05  Bruno Haible  <bruno@clisp.org>
25594
25595         sys_socket: Avoid #define replacements in C++ mode.
25596         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25597         warning to the function if possible, rather than #defining the symbol
25598         to a dysfunctional alias.
25599
25600 2010-04-05  Bruno Haible  <bruno@clisp.org>
25601
25602         fseeko: Fix C++ test error on mingw.
25603         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25604         gl_FUNC_FSEEKO.
25605         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25606         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25607         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25608         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25609
25610 2010-04-05  Bruno Haible  <bruno@clisp.org>
25611
25612         duplocale: Improve test output.
25613         * tests/test-duplocale.c (main): Print reason for skipped test.
25614
25615 2010-04-05  Bruno Haible  <bruno@clisp.org>
25616
25617         Assume rmdir exists.
25618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25619         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25620
25621 2010-04-05  Bruno Haible  <bruno@clisp.org>
25622
25623         Fix link error on Solaris 8 with cc.
25624         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25625
25626 2010-04-05  Bruno Haible  <bruno@clisp.org>
25627
25628         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25629         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25630
25631 2010-04-05  Bruno Haible  <bruno@clisp.org>
25632
25633         vasprintf: Update documentation.
25634         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25635
25636 2010-04-05  Bruno Haible  <bruno@clisp.org>
25637
25638         ptsname: Improve test.
25639         * tests/test-ptsname.c (main): Also try the various master names of BSD
25640         systems.
25641
25642 2010-04-05  Bruno Haible  <bruno@clisp.org>
25643
25644         memchr: Avoid a possible C++ test error.
25645         * lib/string.in.h (memchr): Provide declaration if function is missing.
25646         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25647         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25649         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25650
25651 2010-04-05  Bruno Haible  <bruno@clisp.org>
25652
25653         strtok_r: Improve idiom.
25654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25655         AC_LIBOBJ is used.
25656
25657 2010-04-05  Bruno Haible  <bruno@clisp.org>
25658
25659         strdup: Improve idiom.
25660         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25661         AC_LIBOBJ is used.
25662         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25663         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25664         when AC_LIBOBJ is used.
25665
25666 2010-04-05  Bruno Haible  <bruno@clisp.org>
25667
25668         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25669         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25670         don't set REPLACE_MBSINIT to 1.
25671         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25672         don't set REPLACE_MBRTOWC to 1.
25673         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25674         exist, don't set REPLACE_MBSRTOWCS to 1.
25675         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25676         exist, don't set REPLACE_MBSNRTOWCS to 1.
25677         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25678         don't set REPLACE_WCRTOMB to 1.
25679         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25680         exist, don't set REPLACE_WCSRTOMBS to 1.
25681         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25682         exist, don't set REPLACE_WCSNRTOMBS to 1.
25683
25684 2010-04-05  Bruno Haible  <bruno@clisp.org>
25685
25686         ldexpl: Improve idiom.
25687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25688         make sure to set HAVE_DECL_LDEXPL to 0.
25689
25690 2010-04-05  Jim Meyering  <meyering@redhat.com>
25691
25692         xstrtol-tests: convert to use init.sh
25693         * modules/xstrtol-tests (Files): Add tests/init.sh.
25694         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25695         Use Exit, not exit.
25696         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25697
25698         atexit-tests: convert to use init.sh
25699         * modules/atexit-tests (Files): Add tests/init.sh.
25700         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25701         Use Exit, not exit.
25702         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25703
25704         init.sh: fix typo
25705         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25706
25707         init.sh: make it easier for a test script to write to the tty, ...
25708         when using automake's parallel-tests mode.
25709         * tests/init.sh (stderr_fileno_): Define overridable variable.
25710         (warn_): New function, to use it.
25711         (fail_, skip_, framework_failure_): Use warn_.
25712
25713 2010-04-04  Bruno Haible  <bruno@clisp.org>
25714
25715         btowc: Avoid warning.
25716         * lib/btowc.c: Include <stdlib.h>.
25717         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25718
25719 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25720             Bruno Haible  <bruno@clisp.org>
25721
25722         wchar: Port to NetBSD 1.5.
25723         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25724         * lib/wctype.in.h (WEOF): Likewise.
25725
25726 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25727             Bruno Haible  <bruno@clisp.org>
25728
25729         Port extended stdio to NetBSD 1.5.
25730         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25731         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25732         older.
25733
25734 2010-04-04  Bruno Haible  <bruno@clisp.org>
25735
25736         string: Remove unused substitution.
25737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25738         HAVE_DECL_STRERROR.
25739         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25740
25741 2010-04-04  Bruno Haible  <bruno@clisp.org>
25742
25743         strtod: Avoid a possible C++ test error.
25744         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25745         set REPLACE_STRTOD.
25746
25747 2010-04-04  Bruno Haible  <bruno@clisp.org>
25748
25749         strerror: Update documentation.
25750         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25751
25752 2010-04-04  Bruno Haible  <bruno@clisp.org>
25753
25754         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25755         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25756         _GL_CXXALIAS_SYS_CAST.
25757
25758 2010-04-04  Bruno Haible  <bruno@clisp.org>
25759
25760         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25761         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25762         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25763         REPLACE_FREXPL to 1.
25764         * doc/posix-functions/frexpl.texi: Update documentation.
25765
25766 2010-04-04  Bruno Haible  <bruno@clisp.org>
25767
25768         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25769         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25770
25771 2010-04-04  Bruno Haible  <bruno@clisp.org>
25772
25773         Implement nanosleep for native Windows.
25774         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25775
25776 2010-04-04  Bruno Haible  <bruno@clisp.org>
25777
25778         math: Fix some C++ test errors on Solaris 8.
25779         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25780
25781 2010-04-04  Bruno Haible  <bruno@clisp.org>
25782
25783         math: Fix some C++ test errors on Cygwin.
25784         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25785         truncl): Provide declaration if the system does not have it.
25786         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25787         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25788         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25789         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25790         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25791         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25792         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25793         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25794         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25795         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25796         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25797         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25798         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25799         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25800         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25801         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25803         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25804         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25805         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25806         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25807         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25808
25809 2010-04-04  Bruno Haible  <bruno@clisp.org>
25810
25811         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25812         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25813         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25814         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25815         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25816         * m4/isinf.m4 (gl_ISINF): Likewise.
25817         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25818
25819 2010-04-04  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25822         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25823
25824 2010-04-04  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25827         * modules/tmpfile (configure.ac): Update.
25828
25829         tmpfile: Fix C++ test error on mingw.
25830         * lib/stdio.in.h (tmpfile): New declaration.
25831         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25832         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25833         * modules/tmpfile (Depends-on): Add stdio.
25834         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25835         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25837         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25838         REPLACE_TMPFILE.
25839         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25840
25841 2010-04-04  Bruno Haible  <bruno@clisp.org>
25842
25843         ioctl: Fix C++ test error on mingw.
25844         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25845         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25846         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25847
25848 2010-04-03  Bruno Haible  <bruno@clisp.org>
25849
25850         wcwidth: Fix C++ test error on mingw.
25851         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25853         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25854
25855 2010-04-03  Bruno Haible  <bruno@clisp.org>
25856
25857         nanosleep: Fix C++ test error on mingw.
25858         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25859         * lib/time.in.h (nanosleep): Use modern idiom.
25860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25861         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25862         REPLACE_NANOSLEEP to 1.
25863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25864         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25865
25866 2010-04-03  Bruno Haible  <bruno@clisp.org>
25867
25868         strptime: Fix C++ test error on mingw.
25869         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25870         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25871         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25872         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25873         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25874         not REPLACE_STRPTIME.
25875         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25876         REPLACE_STRPTIME.
25877
25878 2010-04-03  Bruno Haible  <bruno@clisp.org>
25879
25880         timegm: Fix C++ test error on mingw.
25881         * lib/time.in.h (timegm): Use modern idiom.
25882         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25883         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25885         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25886
25887 2010-04-03  Bruno Haible  <bruno@clisp.org>
25888
25889         timegm: Assume declaration if function exists.
25890         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25891         if it exists. Don't clobber ac_cv_func_timegm.
25892
25893 2010-04-03  Bruno Haible  <bruno@clisp.org>
25894
25895         time_r: Fix C++ test error on mingw.
25896         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25897         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25898         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25900         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25901
25902 2010-04-03  Bruno Haible  <bruno@clisp.org>
25903
25904         time_r: Minor updates.
25905         * modules/time_r (Description): Mention the provided functions.
25906         * lib/time_r.c: Don't include <string.h>.
25907         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25908         * doc/posix-functions/localtime_r.texi: Likewise.
25909
25910 2010-04-03  Bruno Haible  <bruno@clisp.org>
25911
25912         time: Fix regression introduced on 2010-03-08.
25913         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25914         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25915
25916 2010-04-03  Jim Meyering  <meyering@redhat.com>
25917
25918         maint.mk: don't silently disable project-specific syntax-check rules
25919         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25920         that they need to convert their project-specific syntax-check rules
25921         to use the new _sc_search_regexp.
25922
25923 2010-04-03  Bruno Haible  <bruno@clisp.org>
25924
25925         fchdir: Fix regression introduced on 2010-03-08.
25926         * lib/unistd.in.h (fchdir): Fix declaration.
25927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25929         REPLACE_FCHDIR.
25930         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25931         REPLACE_FCHDIR.
25932
25933 2010-04-03  Bruno Haible  <bruno@clisp.org>
25934
25935         getpagesize: Fix C++ test error on mingw.
25936         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25937         system does not declare the function.
25938         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25939         declared.
25940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25941         HAVE_DECL_GETPAGESIZE.
25942         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25943
25944 2010-04-03  Bruno Haible  <bruno@clisp.org>
25945
25946         stdio: Make C++ tests work on mingw.
25947         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25948         does not declare the function.
25949
25950 2010-04-03  Bruno Haible  <bruno@clisp.org>
25951
25952         ftello: Fix C++ test error on mingw.
25953         * lib/stdio.in.h (ftello): Use modern idiom.
25954         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25955         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25956         is missing and that it needs to be replaced.
25957         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25959         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25960
25961 2010-04-03  Bruno Haible  <bruno@clisp.org>
25962
25963         fseeko: Fix C++ test error on mingw.
25964         * lib/stdio.in.h (fseeko): Use modern idiom.
25965         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25966         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25967         is missing and that it needs to be replaced.
25968         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25970         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25971
25972 2010-04-03  Bruno Haible  <bruno@clisp.org>
25973
25974         mkstemp: Fix C++ test error on mingw.
25975         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25977         function is missing and that it needs to be replaced.
25978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25979         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25980
25981 2010-04-03  Bruno Haible  <bruno@clisp.org>
25982
25983         stpncpy: Fix C++ test error on mingw.
25984         * lib/string.in.h (stpncpy): Use modern idiom.
25985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25986         function is missing and that it needs to be replaced.
25987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25988         REPLACE_STPNCPY.
25989         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25990
25991 2010-04-03  Bruno Haible  <bruno@clisp.org>
25992
25993         sys_stat: Fix C++ test error on mingw.
25994         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25995         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25996
25997 2010-04-03  Bruno Haible  <bruno@clisp.org>
25998
25999         pty: Update doc.
26000         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26001
26002 2010-04-03  Bruno Haible  <bruno@clisp.org>
26003
26004         unistd: Fix C++ test error on mingw.
26005         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26006
26007 2010-04-03  Bruno Haible  <bruno@clisp.org>
26008
26009         Update doc regarding mingw.
26010         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26011         * doc/glibc-functions/login_tty.texi: Likewise.
26012         * doc/glibc-functions/forkpty.texi: Likewise.
26013
26014 2010-04-03  Bruno Haible  <bruno@clisp.org>
26015
26016         stdlib: Avoid compilation failure of c-strtold on mingw.
26017         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26018
26019 2010-04-03  Bruno Haible  <bruno@clisp.org>
26020
26021         locale: Make C++ tests work on Cygwin and mingw.
26022         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26023         cannot provide the function.
26024         Reported by Simon Josefsson.
26025
26026 2010-04-03  Bruno Haible  <bruno@clisp.org>
26027
26028         localename: Port to MacOS X 10.6.
26029         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26030         memory layout of the locales in MacOS X 10.6 as well.
26031         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26032
26033 2010-04-02  Bruno Haible  <bruno@clisp.org>
26034
26035         gnulib-tool: Ensure that long-running tests are executed last.
26036         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26037         running tests after the one for the other tests.
26038
26039 2010-04-02  Bruno Haible  <bruno@clisp.org>
26040
26041         gnulib-tool: Ensure the tests in the main directory are executed first.
26042         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26043         start with the current directory.
26044
26045 2010-04-02  Bruno Haible  <bruno@clisp.org>
26046
26047         Tests for module 'havelib', moved here from GNU gettext.
26048         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26049         modifications.
26050         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26051         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26052         with modifications.
26053         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26054         modifications.
26055         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26056         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26057         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26058         with modifications.
26059         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26060         with modifications.
26061         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26062         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26063         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26064         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26065         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26066         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26067         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26068         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26069         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26070         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26071         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26072         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26073         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26074         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26075         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26076         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26077         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26078         with modifications.
26079         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26080         with modifications.
26081         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26082         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26083         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26084         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26085         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26086         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26087         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26088         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26089         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26090         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26091         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26092         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26093         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26094         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26095         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26096         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26097         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26098         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26099         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26100         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26101         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26102         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26103         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26104         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26105         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26106         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26107         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26108         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26109         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26110         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26111         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26112         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26113         * tests/havelib/rpathx/rpathx.c: New file, from
26114         gettext/autoconf-lib-link.
26115         * tests/havelib/rpathx/Makefile.am: New file, from
26116         gettext/autoconf-lib-link.
26117         * tests/havelib/rpathx/configure.ac: New file, from
26118         gettext/autoconf-lib-link with modifications.
26119         * tests/havelib/rpathy/rpathy.c: New file, from
26120         gettext/autoconf-lib-link.
26121         * tests/havelib/rpathy/Makefile.am: New file, from
26122         gettext/autoconf-lib-link.
26123         * tests/havelib/rpathy/configure.ac: New file, from
26124         gettext/autoconf-lib-link with modifications.
26125         * tests/havelib/rpathz/rpathz.c: New file, from
26126         gettext/autoconf-lib-link.
26127         * tests/havelib/rpathz/Makefile.am: New file, from
26128         gettext/autoconf-lib-link.
26129         * tests/havelib/rpathz/configure.ac: New file, from
26130         gettext/autoconf-lib-link with modifications.
26131         * tests/havelib/rpathlx/usex.c: New file, from
26132         gettext/autoconf-lib-link.
26133         * tests/havelib/rpathlx/Makefile.am: New file, from
26134         gettext/autoconf-lib-link.
26135         * tests/havelib/rpathlx/configure.ac: New file, from
26136         gettext/autoconf-lib-link with modifications.
26137         * tests/havelib/rpathly/usey.c: New file, from
26138         gettext/autoconf-lib-link.
26139         * tests/havelib/rpathly/Makefile.am: New file, from
26140         gettext/autoconf-lib-link.
26141         * tests/havelib/rpathly/configure.ac: New file, from
26142         gettext/autoconf-lib-link with modifications.
26143         * tests/havelib/rpathlz/usez.c: New file, from
26144         gettext/autoconf-lib-link.
26145         * tests/havelib/rpathlz/Makefile.am: New file, from
26146         gettext/autoconf-lib-link.
26147         * tests/havelib/rpathlz/configure.ac: New file, from
26148         gettext/autoconf-lib-link with modifications.
26149         * tests/havelib/rpathlyx/usey.c: New file, from
26150         gettext/autoconf-lib-link.
26151         * tests/havelib/rpathlyx/Makefile.am: New file, from
26152         gettext/autoconf-lib-link.
26153         * tests/havelib/rpathlyx/configure.ac: New file, from
26154         gettext/autoconf-lib-link with modifications.
26155         * tests/havelib/rpathlzyx/usez.c: New file, from
26156         gettext/autoconf-lib-link.
26157         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26158         gettext/autoconf-lib-link.
26159         * tests/havelib/rpathlzyx/configure.ac: New file, from
26160         gettext/autoconf-lib-link with modifications.
26161         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26162         with modifications.
26163
26164 2010-04-02  Bruno Haible  <bruno@clisp.org>
26165
26166         gnulib-tool: Create distributed built sources also for the tests.
26167         * gnulib-tool (func_create_testdir): Also generate distributed built
26168         sources in the tests directory.
26169
26170 2010-04-02  Bruno Haible  <bruno@clisp.org>
26171
26172         gnulib-tool: Obey user's environment variables.
26173         * gnulib-tool (func_create_testdir): When creating built sources,
26174         respect the environment variables for autoconf, automake, etc. given by
26175         the user.
26176
26177 2010-04-02  Bruno Haible  <bruno@clisp.org>
26178
26179         gnulib-tool: Provide the value of --m4-base to modules.
26180         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26181         of gl_m4_base.
26182
26183 2010-04-02  Eric Blake  <eblake@redhat.com>
26184
26185         maint.mk: fix some fallout
26186         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26187         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26188
26189 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26190
26191         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26192         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26193         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26194         (sc_cast_of_x_alloc_return_value): Likewise.
26195         (sc_cast_of_alloca_return_value): Likewise.
26196         (sc_space_tab): Likewise.
26197         (sc_prohibit_atoi_atof): Likewise.
26198         (sc_prohibit_magic_number_exit): Likewise.
26199         (sc_error_exit_success): Likewise.
26200         (sc_file_system): Likewise.
26201         (sc_prohibit_have_config_h): Likewise.
26202         (sc_require_config_h): Likewise.
26203         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26204         (sc_obsolete_symbols): Likewise.
26205         (sc_changelog): Likewise.
26206         (sc_program_name): Likewise.
26207         (sc_the_the): Likewise.
26208         (sc_trailing_blank): Likewise.
26209         (sc_two_space_separator_in_usage): Likewise.
26210         (sc_useless_cpp_parens): Likewise.
26211         (sc_GPL_version): Likewise.
26212         (sc_GFDL_version): Likewise.
26213         (sc_texinfo_acronym): Likewise.
26214         (sc_prohibit_cvs_keyword): Likewise.
26215         (sc_prohibit_stat_st_blocks): Likewise.
26216         (sc_prohibit_S_IS_definition): Likewise.
26217         (sc_redundant_const): Likewise.
26218         (sc_makefile_TAB_only_indentation): Likewise.
26219         (sc_m4_quote_check): Likewise.
26220         (sc_makefile_path_separator_check): Likewise.
26221         (sc_copyright_check): Likewise.
26222         (sc_Wundef_boolean): Likewise.
26223         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26224
26225         maint.mk: match 0 or more whitespace-before-function-call '('
26226         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26227         that have zero or two-and-more spaces between the function name
26228         and the open parenthesis.
26229         (sc_error_message_warn_fatal): Likewise.
26230         (sc_error_message_uppercase): Likewise.
26231         (sc_error_message_period): Likewise.
26232
26233 2010-03-31  Eric Blake  <eblake@redhat.com>
26234
26235         maint.mk: check for [ as well as test
26236         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26237         Based on a libvirt report by Matthias Bolte.
26238
26239         gnumakefile: don't squelch _version output
26240         * top/GNUmakefile (_version): Create one-shot dependency rather
26241         than using $(shell) when version must be regenerated.
26242         (_autoreconf): Run verbosely, by default.
26243
26244         sys_time: avoid compiler warnings
26245         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26246         unconditional, fixing regression from 2010-03-29.
26247         Reported by Simon Josefsson.
26248
26249 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26250
26251         maint.mk: s/_header_without_use/_sc_header_without_use/
26252         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26253         (sc_prohibit_assert_without_use): Use the new name.
26254         (sc_prohibit_close_stream_without_use): Likewise.
26255         (sc_prohibit_getopt_without_use): Likewise.
26256         (sc_prohibit_quotearg_without_use): Likewise.
26257         (sc_prohibit_quote_without_use): Likewise.
26258         (sc_prohibit_long_options_without_use): Likewise.
26259         (sc_prohibit_inttostr_without_use): Likewise.
26260         (sc_prohibit_ignore_value_without_use): Likewise.
26261         (sc_prohibit_error_without_use): Likewise.
26262         (sc_prohibit_xalloc_without_use): Likewise.
26263         (sc_prohibit_hash_without_use): Likewise.
26264         (sc_prohibit_hash_pjw_without_use): Likewise.
26265         (sc_prohibit_safe_read_without_use): Likewise.
26266         (sc_prohibit_argmatch_without_use): Likewise.
26267         (sc_prohibit_canonicalize_without_use): Likewise.
26268         (sc_prohibit_root_dev_ino_without_use): Likewise.
26269         (sc_prohibit_openat_without_use): Likewise.
26270         (sc_prohibit_c_ctype_without_use): Likewise.
26271         (sc_prohibit_signal_without_use): Likewise.
26272         (sc_prohibit_intprops_without_use): Likewise.
26273
26274 2010-03-30  Eric Blake  <eblake@redhat.com>
26275
26276         maint: improve module indicators
26277         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26278         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26279         columns, and avoid extra macro expansion.
26280
26281         fdopendir: work around FreeBSD bug
26282         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26283         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26284         * modules/dirent (Makefile.am): Substitute it.
26285         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26286         declaration.
26287         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26288         fix.
26289         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26290
26291 2010-03-29  Bruno Haible  <bruno@clisp.org>
26292
26293         Emit #pragma system_header after the inclusion guard, not before.
26294         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26295         guard that spans the entire file, not before. This enables an
26296         optimization in GCC's preprocessor.
26297         * lib/ctype.in.h: Likewise.
26298         * lib/dirent.in.h: Likewise.
26299         * lib/errno.in.h: Likewise.
26300         * lib/float.in.h: Likewise.
26301         * lib/getopt.in.h: Likewise.
26302         * lib/iconv.in.h: Likewise.
26303         * lib/langinfo.in.h: Likewise.
26304         * lib/locale.in.h: Likewise.
26305         * lib/math.in.h: Likewise.
26306         * lib/netdb.in.h: Likewise.
26307         * lib/netinet_in.in.h: Likewise.
26308         * lib/pty.in.h: Likewise.
26309         * lib/sched.in.h: Likewise.
26310         * lib/se-selinux.in.h: Likewise.
26311         * lib/search.in.h: Likewise.
26312         * lib/spawn.in.h: Likewise.
26313         * lib/stdarg.in.h: Likewise.
26314         * lib/stdint.in.h: Likewise.
26315         * lib/string.in.h: Likewise.
26316         * lib/strings.in.h: Likewise.
26317         * lib/sys_file.in.h: Likewise.
26318         * lib/sys_ioctl.in.h: Likewise.
26319         * lib/sys_time.in.h: Likewise.
26320         * lib/sys_times.in.h: Likewise.
26321         * lib/sys_utsname.in.h: Likewise.
26322         * lib/sys_wait.in.h: Likewise.
26323         * lib/sysexits.in.h: Likewise.
26324         * lib/wctype.in.h: Likewise.
26325
26326 2010-03-28  James Youngman  <jay@gnu.org>
26327
26328         save-cwd: don't leak a file descriptor when the caller execs.
26329         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26330         saved file descriptor.
26331         * modules/save-cwd (Depends-on): Depend on cloexec.
26332
26333 2010-03-29  Bruno Haible  <bruno@clisp.org>
26334
26335         Remove vestiges of fts-lgpl module.
26336         * lib/fts_.h: Assume GNULIB_FTS is 1.
26337         * lib/fts.c: Likewise.
26338         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26339
26340 2010-03-28  Bruno Haible  <bruno@clisp.org>
26341
26342         Fix definition of tests witness macro.
26343         * gnulib-tool (func_import): Fix definition of witness macro.
26344
26345 2010-03-28  Bruno Haible  <bruno@clisp.org>
26346
26347         Fix ioctl's protoype on glibc systems.
26348         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26349         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26350         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26351         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26352         signature. If not, arrange to replace the ioctl function.
26353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26354         REPLACE_IOCTL.
26355         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26356         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26357         Reported by Ludovic Courtès <ludo@gnu.org>.
26358
26359 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26360
26361         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26362         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26363         made it so grep -r --include=GLOB* ... did not work.
26364
26365 2010-03-26  Jim Meyering  <meyering@redhat.com>
26366             Eric Blake  <eblake@redhat.com>
26367
26368         maint.mk: prohibit use of test's -o and -a operators
26369         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26370
26371 2010-03-28  Bruno Haible  <bruno@clisp.org>
26372
26373         Remove unused GNULIB_XYZ macro definitions.
26374         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26375         invocation.
26376
26377 2010-03-28  Bruno Haible  <bruno@clisp.org>
26378
26379         Mark privileged tests modules.
26380         * modules/idpriv-drop-tests (Status): New section.
26381         * modules/idpriv-droptemp-tests (Status): New section.
26382
26383 2010-03-28  Bruno Haible  <bruno@clisp.org>
26384
26385         Split C++ tests into separate tests modules.
26386         * modules/dirent-c++-tests: New file, extracted from
26387         modules/dirent-tests.
26388         * modules/dirent-tests: Depend on it.
26389         * modules/fcntl-h-c++-tests: New file, extracted from
26390         modules/fcntl-h-tests.
26391         * modules/fcntl-h-tests: Depend on it.
26392         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26393         * modules/glob-tests: Depend on it.
26394         * modules/iconv-h-c++-tests: New file, extracted from
26395         modules/iconv-h-tests.
26396         * modules/iconv-h-tests: Depend on it.
26397         * modules/langinfo-c++-tests: New file, extracted from
26398         modules/langinfo-tests.
26399         * modules/langinfo-tests: Depend on it.
26400         * modules/locale-c++-tests: New file, extracted from
26401         modules/locale-tests.
26402         * modules/locale-tests: Depend on it.
26403         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26404         * modules/math-tests: Depend on it.
26405         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26406         * modules/pty-tests: Depend on it.
26407         * modules/search-c++-tests: New file, extracted from
26408         modules/search-tests.
26409         * modules/search-tests: Depend on it.
26410         * modules/signal-c++-tests: New file, extracted from
26411         modules/signal-tests.
26412         * modules/signal-tests: Depend on it.
26413         * modules/spawn-c++-tests: New file, extracted from
26414         modules/spawn-tests.
26415         * modules/spawn-tests: Depend on it.
26416         * modules/stdio-c++-tests: New file, extracted from
26417         modules/stdio-tests.
26418         * modules/stdio-tests: Depend on it.
26419         * modules/stdlib-c++-tests: New file, extracted from
26420         modules/stdlib-tests.
26421         * modules/stdlib-tests: Depend on it.
26422         * modules/string-c++-tests: New file, extracted from
26423         modules/string-tests.
26424         * modules/string-tests: Depend on it.
26425         * modules/sys_ioctl-c++-tests: New file, extracted from
26426         modules/sys_ioctl-tests.
26427         * modules/sys_ioctl-tests: Depend on it.
26428         * modules/sys_select-c++-tests: New file, extracted from
26429         modules/sys_select-tests.
26430         * modules/sys_select-tests: Depend on it.
26431         * modules/sys_socket-c++-tests: New file, extracted from
26432         modules/sys_socket-tests.
26433         * modules/sys_socket-tests: Depend on it.
26434         * modules/sys_stat-c++-tests: New file, extracted from
26435         modules/sys_stat-tests.
26436         * modules/sys_stat-tests: Depend on it.
26437         * modules/sys_time-c++-tests: New file, extracted from
26438         modules/sys_time-tests.
26439         * modules/sys_time-tests: Depend on it.
26440         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26441         * modules/time-tests: Depend on it.
26442         * modules/unistd-c++-tests: New file, extracted from
26443         modules/unistd-tests.
26444         * modules/unistd-tests: Depend on it.
26445         * modules/wchar-c++-tests: New file, extracted from
26446         modules/wchar-tests.
26447         * modules/wchar-tests: Depend on it.
26448         * modules/wctype-c++-tests: New file, extracted from
26449         modules/wctype-tests.
26450         * modules/wctype-tests: Depend on it.
26451         Reported by Simon Josefsson.
26452
26453 2010-03-28  Bruno Haible  <bruno@clisp.org>
26454
26455         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26456         * gnulib-tool (func_exists_module): New function, extracted from
26457         func_verify_module.
26458         (func_verify_module): Use it.
26459         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26460         'foo' only if 'foo' exists.
26461         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26462         module.
26463
26464 2010-03-28  Bruno Haible  <bruno@clisp.org>
26465
26466         gnulib-tool: Add support for special categories of tests.
26467         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26468         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26469         (func_usage): Document them.
26470         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26471         inc_unportable_tests, inc_all_tests): New variables.
26472         (func_acceptable): Consider these variables.
26473         (func_modules_transitive_closure): Make it work when the 'Status' field
26474         consists of multiple words.
26475         (func_import): Store and restore the values of inc_cxx_tests,
26476         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26477         inc_all_tests in gnulib-comp.m4.
26478         (func_create_testdir): Set inc_all_tests to true.
26479         * doc/gnulib.texi (Extra tests modules): New section.
26480         Suggested by Jim Meyering.
26481
26482 2010-03-28  Bruno Haible  <bruno@clisp.org>
26483
26484         ansi-c++-opt: Allow turning off the C++ build by default.
26485         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26486         gl_CXX_CHOICE_DEFAULT_NO is defined.
26487         Requested by Eric Blake.
26488
26489 2010-03-28  Bruno Haible  <bruno@clisp.org>
26490
26491         unistd: Avoid #define replacements in C++ mode.
26492         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26493         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26494         setsockopt, shutdown, select): In C++, attach a warning to the function
26495         if possible, rather than #defining the symbol to a dysfunctional alias.
26496         Reported by John W. Eaton <jwe@gnu.org>.
26497
26498 2010-03-28  Bruno Haible  <bruno@clisp.org>
26499
26500         Fix link errors on mingw.
26501         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26502         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26503         $(LIBSOCKET).
26504         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26505         $(LIBSOCKET).
26506
26507 2010-03-28  Bruno Haible  <bruno@clisp.org>
26508             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26509
26510         lib-ignore: Determine different options for different compilers.
26511         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26512         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26513         Add comments.
26514         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26515         * NEWS: Mention the change.
26516
26517 2010-03-27  Bruno Haible  <bruno@clisp.org>
26518
26519         Remove unused GNULIB_XYZ macro definitions.
26520         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26521         * modules/fseek (configure.ac): Likewise.
26522         * modules/ioctl (configure.ac): Likewise.
26523         * modules/open (configure.ac): Likewise.
26524         * modules/stdlib-safer (configure.ac): Likewise.
26525
26526 2010-03-27  Bruno Haible  <bruno@clisp.org>
26527
26528         Add a remark about certain modules.
26529         * modules/malloc (Comment): New section.
26530         * modules/realloc (Comment): Likewise.
26531         * modules/sigpipe (Comment): Likewise.
26532
26533 2010-03-27  Bruno Haible  <bruno@clisp.org>
26534
26535         Resolve conflict between the two kinds of module indicators.
26536         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26537         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26538         * modules/canonicalize (configure.ac): Invoke
26539         gl_MODULE_INDICATOR_FOR_TESTS.
26540         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26541         GNULIB_XYZ.
26542         * tests/test-dirent-c++.cc: Likewise.
26543         * tests/test-dirent-safer.c: Likewise.
26544         * tests/test-dup2.c: Likewise.
26545         * tests/test-fchdir.c: Likewise.
26546         * tests/test-fcntl-h-c++.cc: Likewise.
26547         * tests/test-getopt.c: Likewise.
26548         * tests/test-getopt.h: Likewise.
26549         * tests/test-langinfo-c++.cc: Likewise.
26550         * tests/test-locale-c++.cc: Likewise.
26551         * tests/test-math-c++.cc: Likewise.
26552         * tests/test-pty-c++.cc: Likewise.
26553         * tests/test-search-c++.cc: Likewise.
26554         * tests/test-signal-c++.cc: Likewise.
26555         * tests/test-spawn-c++.cc: Likewise.
26556         * tests/test-stdio-c++.cc: Likewise.
26557         * tests/test-stdlib-c++.cc: Likewise.
26558         * tests/test-string-c++.cc: Likewise.
26559         * tests/test-sys_ioctl-c++.cc: Likewise.
26560         * tests/test-sys_select-c++.cc: Likewise.
26561         * tests/test-sys_socket-c++.cc: Likewise.
26562         * tests/test-sys_stat-c++.cc: Likewise.
26563         * tests/test-sys_time-c++.cc: Likewise.
26564         * tests/test-time-c++.cc: Likewise.
26565         * tests/test-unistd-c++.cc: Likewise.
26566         * tests/test-wchar-c++.cc: Likewise.
26567         * tests/uninorm/test-u8-nfc.c: Likewise.
26568         * tests/uninorm/test-u8-nfd.c: Likewise.
26569         * tests/uninorm/test-u8-nfkc.c: Likewise.
26570         * tests/uninorm/test-u8-nfkd.c: Likewise.
26571         * tests/uninorm/test-u16-nfc.c: Likewise.
26572         * tests/uninorm/test-u16-nfd.c: Likewise.
26573         * tests/uninorm/test-u16-nfkc.c: Likewise.
26574         * tests/uninorm/test-u16-nfkd.c: Likewise.
26575         * tests/uninorm/test-u32-nfc.c: Likewise.
26576         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26577         * tests/uninorm/test-u32-nfd.c: Likewise.
26578         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26579         * tests/uninorm/test-u32-nfkc.c: Likewise.
26580         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26581         * tests/uninorm/test-u32-nfkd.c: Likewise.
26582         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26583         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26584
26585 2010-03-27  Bruno Haible  <bruno@clisp.org>
26586
26587         Distinguish two kinds of module indicators.
26588         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26589         gl_MODULE_INDICATOR.
26590         (gl_MODULE_INDICATOR): New macro.
26591         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26592         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26593         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26594         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26595         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26596         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26597         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26598         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26599         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26600         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26601         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26602         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26604         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26605         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26606         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26607         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26608         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26609         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26610         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26611         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26612         * modules/cloexec (configure.ac): Likewise.
26613         * modules/getopt-gnu (configure.ac): Likewise.
26614         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26615         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26616         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26617         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26618
26619 2010-03-27  Bruno Haible  <bruno@clisp.org>
26620
26621         New module description field 'Comment'.
26622         * gnulib-tool: New option --extract-comment.
26623         (func_usage): Document it.
26624         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26625         (func_get_comment): New function.
26626         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26627
26628 2010-03-27  Bruno Haible  <bruno@clisp.org>
26629
26630         Addendum to 2010-02-07 commit.
26631         * gnulib-tool (func_usage): Document --extract-applicability option.
26632
26633 2010-03-27  Bruno Haible  <bruno@clisp.org>
26634
26635         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26636         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26637         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26638         rather than link errors.
26639
26640 2010-03-27  Bruno Haible  <bruno@clisp.org>
26641
26642         Avoid side effects from tests-related modules on the compilation of lib.
26643         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26644         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26645         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26646         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26647         macro.
26648         (func_import): Define a witness macro. Assign it a value that depends
26649         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26650         tests-related modules.
26651         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26652         Reported by Jim Meyering.
26653
26654 2010-03-27  Bruno Haible  <bruno@clisp.org>
26655
26656         Factorize common .m4 code.
26657         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26658         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26659         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26660         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26661         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26662         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26663         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26664         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26665         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26666         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26667         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26668         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26669         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26672         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26673         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26674         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26676         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26677         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26678         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26680         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26681         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26682         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26683         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26684         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26685         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26686         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26687         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26688         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26689
26690 2010-03-27  Bruno Haible  <bruno@clisp.org>
26691
26692         Fix a compilation error on Cygwin with g++ >= 4.3.
26693         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26694         if it is undefined or if we alias it to chmod.
26695         (lstat): Don't warn about the use of this function if it is undefined
26696         or if we alias it to stat.
26697         Reported by Simon Josefsson.
26698
26699 2010-03-27  Bruno Haible  <bruno@clisp.org>
26700
26701         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26702         * modules/getlogin (configure.ac): Update.
26703
26704         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26705         * modules/getlogin_r (configure.ac): Update.
26706
26707         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26709         * modules/inet_ntop (configure.ac): Update.
26710
26711         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26712         * modules/inet_pton (configure.ac): Update.
26713
26714         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26715         * modules/mbslen (configure.ac): Update.
26716
26717         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26718         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26719         * modules/forkpty (configure.ac): Update.
26720         * modules/openpty (configure.ac): Update.
26721
26722 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26723
26724         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26725         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26726
26727 2010-03-25  Eric Blake  <eblake@redhat.com>
26728
26729         maint: use pragma consistently across replacement headers
26730         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26731         * lib/dirent.in.h (system_header): Likewise.
26732         * lib/errno.in.h (system_header): Likewise.
26733         * lib/float.in.h (system_header): Likewise.
26734         * lib/getopt.in.h (system_header): Likewise.
26735         * lib/iconv.in.h (system_header): Likewise.
26736         * lib/inttypes.in.h (system_header): Likewise.
26737         * lib/langinfo.in.h (system_header): Likewise.
26738         * lib/locale.in.h (system_header): Likewise.
26739         * lib/math.in.h (system_header): Likewise.
26740         * lib/netdb.in.h (system_header): Likewise.
26741         * lib/netinet_in.in.h (system_header): Likewise.
26742         * lib/pty.in.h (system_header): Likewise.
26743         * lib/sched.in.h (system_header): Likewise.
26744         * lib/se-selinux.in.h (system_header): Likewise.
26745         * lib/search.in.h (system_header): Likewise.
26746         * lib/spawn.in.h (system_header): Likewise.
26747         * lib/stdarg.in.h (system_header): Likewise.
26748         * lib/stdint.in.h (system_header): Likewise.
26749         * lib/string.in.h (system_header): Likewise.
26750         * lib/strings.in.h (system_header): Likewise.
26751         * lib/sys_file.in.h (system_header): Likewise.
26752         * lib/sys_ioctl.in.h (system_header): Likewise.
26753         * lib/sys_socket.in.h (system_header): Likewise.
26754         * lib/sys_times.in.h (system_header): Likewise.
26755         * lib/sys_utsname.in.h (system_header): Likewise.
26756         * lib/sys_wait.in.h (system_header): Likewise.
26757         * lib/sysexits.in.h (system_header): Likewise.
26758         * lib/unistd.in.h (system_header): Likewise.
26759         * lib/wctype.in.h (system_header): Likewise.
26760
26761         arpa/inet: fix mingw compilation warning
26762         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26763         Reported by Matthew Bolte.
26764
26765 2010-03-25  Bruno Haible  <bruno@clisp.org>
26766
26767         Avoid collision between gnulib wrapper and libintl wrapper.
26768         * lib/printf.c (printf): Don't define if a printf wrapper is already
26769         defined in intl/printf.c.
26770         Reported by Michel Boaventura <michel@michelboaventura.com>.
26771
26772 2010-03-25  Bruno Haible  <bruno@clisp.org>
26773
26774         Use ANSI C.
26775         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26776
26777 2010-03-25  Bruno Haible  <bruno@clisp.org>
26778
26779         Minor formatting changes.
26780         * lib/acosl.c: Insert space before function argument list.
26781         * lib/argz.c: Likewise.
26782         * lib/asinl.c: Likewise.
26783         * lib/expl.c: Likewise.
26784         * lib/gen-uni-tables.c: Likewise.
26785         * lib/gettext.h: Likewise.
26786         * lib/glthread/lock.h: Likewise.
26787         * lib/tanl.c: Likewise.
26788         * lib/uniname/uniname.c: Likewise.
26789         * tests/test-idpriv-drop.c: Likewise.
26790         * tests/test-idpriv-droptemp.c: Likewise.
26791         * tests/test-lock.c: Likewise.
26792         * tests/test-tls.c: Likewise.
26793         * lib/argp-help.c: Insert space before function-like macro argument
26794         list.
26795         * lib/memcmp.c: Likewise.
26796         * tests/test-base64.c: Likewise.
26797         * lib/localename.c: Insert space before sizeof's argument list.
26798         * lib/safe-alloc.h: Likewise.
26799         * lib/file-set.h: Insert space before macro argument list.
26800         * tests/test-argp.c: Likewise.
26801         * lib/argp-namefrob.h: Insert space before function parameter list.
26802         * lib/getaddrinfo.c: Likewise.
26803         * lib/netdb.in.h: Likewise.
26804         * lib/parse-duration.h: Likewise.
26805         * lib/parse-duration.c: Likewise.
26806         * lib/poll.c: Likewise.
26807         * lib/select.c: Likewise.
26808         * lib/trim.h: Likewise.
26809         * tests/test-usleep.c: Likewise.
26810         * lib/ldexpl.c: Insert space before function parameter list and before
26811         function argument list.
26812         * lib/logl.c: Likewise.
26813         * lib/sqrtl.c: Likewise.
26814         * lib/trim.c: Likewise.
26815         * lib/cosl.c: Use GNU style indentation. Insert space before function
26816         argument list.
26817         * lib/sinl.c: Likewise.
26818         * lib/tsearch.c: Insert space after 'for'.
26819         Reported by Jim Meyering.
26820
26821 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26822
26823         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26824         config header before grepping, as it's not present before
26825         autoreconf/configure are run.  Reported by Simon Josefsson.
26826
26827 2010-03-23  Bruno Haible  <bruno@clisp.org>
26828
26829         pt_chown: Make it work with automake < 1.11.
26830         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26831         Reported by Simon Josefsson.
26832
26833 2010-03-23  Bruno Haible  <bruno@clisp.org>
26834
26835         pt_chown: Don't depend on GPLed modules.
26836         * lib/pt_chown.c: Don't include idpriv.h.
26837         (main): Don't drop privileges.
26838         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26839         Reported by Simon Josefsson.
26840
26841 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26842
26843         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26844         suggestions from karl@freefriends.org (Karl Berry).
26845
26846 2010-03-22  Eric Blake  <eblake@redhat.com>
26847
26848         gethostname: further tweaks
26849         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26850         are overriding gethostname.
26851         Suggested by Bruno Haible.
26852
26853 2010-03-21  Bruno Haible  <bruno@clisp.org>
26854
26855         Fix comments.
26856         * lib/forkpty.c (rpl_forkpty): Fix comment.
26857         * lib/openpty.c (rpl_openpty): Likewise.
26858         Reported by Eric Blake.
26859
26860 2010-03-22  Eric Blake  <eblake@redhat.com>
26861
26862         gethostname: fix build on mingw
26863         * lib/unistd.in.h (includes): Work around fact that mingw
26864         <winsock2.h> re-includes <unistd.h>, by avoiding any
26865         redeclarations if we are being included by <winsock2.h>.
26866         Reported by Matthias Bolte.
26867
26868 2010-03-21  Bruno Haible  <bruno@clisp.org>
26869
26870         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26871         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26872         modifications.
26873         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26874         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26875         provide the replacement.
26876         * modules/forkpty (Depends-on): Add openpty, login_tty.
26877         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26878         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26879         * doc/glibc-functions/forkpty.texi: More supported platforms.
26880         * config/srclist.txt: Add forkpty.c (commented).
26881
26882 2010-03-21  Bruno Haible  <bruno@clisp.org>
26883
26884         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26885         (Makefile.am): Verify that PTY_LIB is defined.
26886
26887         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26888
26889 2010-03-21  Bruno Haible  <bruno@clisp.org>
26890
26891         Tests for module 'login_tty'.
26892         * modules/login_tty-tests: New file.
26893         * tests/test-login_tty.c: New file.
26894
26895         New module 'login_tty'.
26896         * lib/login_tty.c: New file.
26897         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26898         * modules/login_tty: New file.
26899         * doc/glibc-functions/login_tty.texi: Mention the new module.
26900
26901 2010-03-21  Bruno Haible  <bruno@clisp.org>
26902
26903         login_tty: Documentation.
26904         * doc/glibc-functions/login_tty.texi: New file.
26905         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26906
26907 2010-03-21  Bruno Haible  <bruno@clisp.org>
26908
26909         pty: Consistent macro naming.
26910         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26911         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26912         * modules/pty (configure.ac): Update.
26913
26914 2010-03-21  Bruno Haible  <bruno@clisp.org>
26915
26916         Tests for openpty: Make stricter.
26917         * tests/test-openpty.c (main): Add test of canonical processing and
26918         erase.
26919         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26920
26921         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26922         * lib/openpty.c (openpty): New replacement function.
26923         * lib/pty.in.h: Include <termios.h>.
26924         (openpty): Update declaration. Add comments.
26925         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26926         is not declared, arrange to provide the replacement. Check for _getpty
26927         and posix_openpt.
26928         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26929         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26930         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26931         * modules/pty-tests (test_pty_c___LDADD): New variable.
26932         * doc/glibc-functions/openpty.texi: More supported platforms.
26933
26934 2010-03-21  Bruno Haible  <bruno@clisp.org>
26935
26936         setenv: Tweaks.
26937         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26938         the test program.
26939         * doc/posix-functions/setenv.texi: Update platforms list.
26940
26941 2010-03-21  Bruno Haible  <bruno@clisp.org>
26942
26943         New module 'unlockpt'.
26944         * lib/unlockpt.c: New file, from glibc with modifications.
26945         * m4/unlockpt.m4: New file.
26946         * modules/unlockpt: New file.
26947         * lib/stdlib.in.h (unlockpt): New declaration.
26948         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26949         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26950         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26951         HAVE_UNLOCKPT.
26952         * doc/posix-functions/unlockpt.texi: Mention the new module.
26953         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26954         * config/srclist.txt: Add unlockpt.c (commented).
26955
26956 2010-03-21  Jim Meyering  <meyering@redhat.com>
26957
26958         maint.mk: prohibit inclusion of "intprops.h" without use
26959         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26960
26961 2010-03-21  Bruno Haible  <bruno@clisp.org>
26962
26963         New module 'grantpt'.
26964         * lib/grantpt.c: New file, from glibc with modifications.
26965         * m4/grantpt.m4: New file.
26966         * modules/grantpt: New file.
26967         * lib/stdlib.in.h (grantpt): New declaration.
26968         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26969         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26970         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26971         HAVE_GRANTPT.
26972         * doc/posix-functions/grantpt.texi: Mention the new module.
26973         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26974         * config/srclist.txt: Add grantpt.c (commented).
26975
26976 2010-03-21  Bruno Haible  <bruno@clisp.org>
26977
26978         New module 'pt_chown'.
26979         * lib/pt_chown.c: New file, from glibc with modifications.
26980         * lib/pty-private.h: New file, from glibc with modifications.
26981         * modules/pt_chown: New file.
26982         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26983
26984 2010-03-21  Bruno Haible  <bruno@clisp.org>
26985
26986         Tests for module 'ptsname'.
26987         * modules/ptsname-tests: New file.
26988         * tests/test-ptsname.c: New file.
26989
26990         New module 'ptsname'.
26991         * lib/ptsname.c: New file, from glibc with modifications.
26992         * m4/ptsname.m4: New file.
26993         * modules/ptsname: New file.
26994         * lib/stdlib.in.h (ptsname): New declaration.
26995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26996         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26997         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26998         HAVE_PTSNAME.
26999         * doc/posix-functions/ptsname.texi: Mention the new module.
27000         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27001         * config/srclist.txt: Add ptsname.c (commented).
27002
27003 2010-03-21  Bruno Haible  <bruno@clisp.org>
27004
27005         Tests for module 'ttyname_r'.
27006         * modules/ttyname_r-tests: New file.
27007         * tests/test-ttyname_r.c: New file.
27008
27009         New module 'ttyname_r'.
27010         * lib/ttyname_r.c: New file.
27011         * m4/ttyname_r.m4: New file.
27012         * modules/ttyname_r: New file.
27013         * lib/unistd.in.h (ttyname_r): New declaration.
27014         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27015         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27016         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27017         HAVE_TTYNAME_R.
27018         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27019         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27020
27021 2010-03-20  Bruno Haible  <bruno@clisp.org>
27022
27023         signal: Undefine macro definitions in C++ mode.
27024         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27025         sigfillset): Undefine macro definitions from the system header in C++
27026         mode.
27027         Reported by John W. Eaton <jwe@gnu.org>.
27028
27029 2010-03-20  Bruno Haible  <bruno@clisp.org>
27030
27031         Ensure no #include statements inside extern "C" { ... }.
27032         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27033         contain #include statements.
27034         * lib/time.in.h: Likewise.
27035
27036 2010-03-20  Bruno Haible  <bruno@clisp.org>
27037
27038         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27039         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27040         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27041         Reported by John W. Eaton <jwe@gnu.org>.
27042
27043 2010-03-20  Bruno Haible  <bruno@clisp.org>
27044
27045         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27046         Reported by Jim Meyering.
27047
27048 2010-03-20  Bruno Haible  <bruno@clisp.org>
27049
27050         pipe: Set errno upon failure.
27051         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27052         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27053         errno value in error message.
27054
27055 2010-03-20  Bruno Haible  <bruno@clisp.org>
27056             Jim Meyering  <meyering@redhat.com>
27057
27058         lchown: Avoid "unused variable" warning.
27059         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27060
27061 2010-03-20  Bruno Haible  <bruno@clisp.org>
27062
27063         Work around unlink() bug on MacOS X 10.5.6.
27064         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27065         attempting to unlink a parent directory.
27066         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27067         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27068         activate for the replacement function.
27069         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27070
27071 2010-03-20  Bruno Haible  <bruno@clisp.org>
27072
27073         Fix link errors on Solaris 8.
27074         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27075         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27076
27077 2010-03-19  Jim Meyering  <meyering@redhat.com>
27078
27079         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27080         The _LIBC implementation of build_range_exp correctly honors the
27081         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27082         However, the non-_LIBC implementation would ignore that syntax-bit
27083         flag and return REG_ERANGE unconditionally.
27084         This change makes it honor that flag.
27085         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27086         Make two pointer parameters "const".
27087         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27088         (parse_bracket_exp): Update caller.
27089
27090         regex.m4: correct the reversed range endpoint ([b-a]) test
27091         * m4/regex.m4: When requiring that [b-a] evoke failure,
27092         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27093         test pass once again for x86-based systems.
27094
27095 2010-03-19  Bruno Haible  <bruno@clisp.org>
27096
27097         scandir: Fix link error on Solaris 8.
27098         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27099         macros.
27100
27101 2010-03-19  Bruno Haible  <bruno@clisp.org>
27102
27103         getusershell: Fix documentation.
27104         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27105         module.
27106         * doc/glibc-functions/setusershell.texi: Likewise.
27107
27108         getusershell: Provide declaration, missing on Solaris 9.
27109         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27110         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27111         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27112         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27114         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27115         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27116         HAVE_GETUSERSHELL.
27117         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27118
27119 2010-03-19  Bruno Haible  <bruno@clisp.org>
27120
27121         wctype: Provide iswblank function.
27122         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27123         exists and is fine.
27124         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27125         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27126         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27127         * doc/posix-functions/iswblank.texi: Update.
27128
27129 2010-03-19  Bruno Haible  <bruno@clisp.org>
27130
27131         Tests of module 'pty' in C++ mode.
27132         * modules/pty-tests: New file.
27133         * tests/test-pty-c++.cc: New file.
27134         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27135
27136 2010-03-19  Eric Blake  <eblake@redhat.com>
27137
27138         logb: fix documentation
27139         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27140         1.5 declaration bug.
27141
27142         forkpty, openpty: prefer glibc's const-safe prototype
27143         * lib/forkpty.c (rpl_forkpty): New file.
27144         * lib/openpty.c (rpl_openpty): Likewise.
27145         * modules/forkpty (Files): Distribute it.
27146         * modules/openpty (Files): Likewise.
27147         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27148         check...
27149         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27150         replacement for for non-const BSD signature.
27151         * modules/pty (Makefile.am): Substitute witnesses.
27152         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27153         * tests/test-forkpty.c: Update signature check.
27154         * tests/test-openpty.c: Likewise.
27155         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27156         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27157
27158         forkpty, openpty: split functions into new modules
27159         * modules/pty (Makefile.am): Substitute new witnesses.
27160         (Libraries): Move library detection...
27161         * modules/forkpty: ...into new module.
27162         * modules/openpty: Another new module.
27163         * modules/pty-tests: Rename and split...
27164         * modules/forkpty-tests: ...to this...
27165         * modules/openpty-tests: ...and this.
27166         * tests/test-pty.c: Rename and split...
27167         * tests/test-forkpty.c: ...to this...
27168         * tests/test-openpty.c: ...and this.
27169         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27170         (gl_PTY): Split library searching...
27171         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27172         (gl_FORKPTY, gl_OPENPTY): New macros.
27173         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27174         * NEWS: Mention the split.
27175         * MODULES.html.sh (Misc): Document the modules.
27176         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27177         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27178
27179         pty: improve replacement header
27180         * lib/pty.in.h: New file.
27181         * modules/pty (Files): Ship it.
27182         (Makefile.am): Always build replacement.
27183         * m4/pty.m4: Rename...
27184         * m4/pty_h.m4: ...to this.
27185         (gl_PTY): Modernize setting of witness macros; update check of
27186         forkpty to take proper advantage of cache.
27187         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27188
27189         getopt: avoid compiler warning
27190         * lib/getopt.c (attribute_hidden): Remove unused macro.
27191
27192 2010-03-18  Bruno Haible  <bruno@clisp.org>
27193
27194         Fix link errors on Solaris 8.
27195         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27196         * modules/search-tests (test_search_c___LDADD): Likewise.
27197         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27198         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27199         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27200         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27201         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27202         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27203         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27204
27205 2010-03-18  Bruno Haible  <bruno@clisp.org>
27206
27207         Fix bug introduced on 2010-03-14.
27208         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27209         (gl_SPAWN_H): Require it.
27210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27211         Reported by Simon Josefsson.
27212
27213 2010-03-18  Bruno Haible  <bruno@clisp.org>
27214
27215         Fix typo introduced on 2009-12-31.
27216         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27217         posix_spawn_file_actions_adddup2.
27218
27219 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27220         and Eric Blake  <eblake@redhat.com>
27221
27222         test-vc-list-files-git: make more robust
27223         * tests/test-vc-list-files-git.sh: Unset problematic environment
27224         variables.  Chain commands together.
27225
27226 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27227
27228         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27229         `AC_CHECK_DECL' invocation.
27230
27231 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27232
27233         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27234         appears before executable statements. Suggested by Petr Sumbera
27235         <Petr.Sumbera@Sun.COM>.
27236
27237 2010-03-14  Bruno Haible  <bruno@clisp.org>
27238
27239         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27240         portability problems. Instead use a simpler test.
27241         (main): Check that invalid arguments are rejected only on Linux.
27242
27243 2010-03-14  Bruno Haible  <bruno@clisp.org>
27244
27245         Fix bug introduced on 2009-12-31.
27246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27247         gl_PREREQ_SYS_H_WINSOCK2 always.
27248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27249         SYS_SOCKET_H variable.
27250         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27251         Update comments.
27252         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27253         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27254         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27255         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27256         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27257
27258 2010-03-14  Bruno Haible  <bruno@clisp.org>
27259
27260         Fix values returned by sinl, cosl.
27261         * lib/trigl.h: Add specification comments.
27262         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27263         that combines the values from the precomputed table with the values of
27264         the Chebyshev polynomials.
27265
27266 2010-03-14  Bruno Haible  <bruno@clisp.org>
27267
27268         Fix compilation error when modules 'posix_spawn[p]' are not used.
27269         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27271
27272 2010-03-14  Bruno Haible  <bruno@clisp.org>
27273
27274         Fix compilation error on mingw when module 'time_r' is not used.
27275         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27276         is 1.
27277         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27278         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27279         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27280         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27281
27282 2010-03-14  Bruno Haible  <bruno@clisp.org>
27283
27284         Fix compilation error with Sun C.
27285         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27286         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27287         instead of GCC specific ULONG_LONG_MAX.
27288         * lib/xstrtoll.c: Likewise.
27289         * lib/xstrtoull.c: Likewise.
27290
27291 2010-03-13  Bruno Haible  <bruno@clisp.org>
27292
27293         Allow the user to disable C++ code and tests.
27294         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27295         (gl_PROG_ANSI_CXX): Require it.
27296
27297 2010-03-13  Bruno Haible  <bruno@clisp.org>
27298
27299         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27300         cases.
27301
27302 2010-03-13  Bruno Haible  <bruno@clisp.org>
27303
27304         Test that gnulib does not break the standard C++ headers.
27305         * tests/test-locale-c++2.cc: New file.
27306         * modules/locale-tests (Files): Add it.
27307         (Makefile.am): Compile it for test-locale-c++.
27308         * tests/test-math-c++2.cc: New file.
27309         * modules/math-tests (Files): Add it.
27310         (Makefile.am): Compile it for test-math-c++.
27311         * tests/test-signal-c++2.cc: New file.
27312         * modules/signal-tests (Files): Add it.
27313         (Makefile.am): Compile it for test-signal-c++.
27314         * tests/test-stdio-c++2.cc: New file.
27315         * modules/stdio-tests (Files): Add it.
27316         (Makefile.am): Compile it for test-stdio-c++.
27317         * tests/test-stdlib-c++2.cc: New file.
27318         * modules/stdlib-tests (Files): Add it.
27319         (Makefile.am): Compile it for test-stdlib-c++.
27320         * tests/test-string-c++2.cc: New file.
27321         * modules/string-tests (Files): Add it.
27322         (Makefile.am): Compile it for test-string-c++.
27323         * tests/test-time-c++2.cc: New file.
27324         * modules/time-tests (Files): Add it.
27325         (Makefile.am): Compile it for test-time-c++.
27326         Reported by John W. Eaton <jwe@gnu.org>.
27327
27328 2010-03-13  Bruno Haible  <bruno@clisp.org>
27329
27330         * gnulib-tool (func_usage): Clarify which options are available for
27331         --create-testdir and --create-megatestdir.
27332
27333 2010-03-13  Bruno Haible  <bruno@clisp.org>
27334
27335         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27336         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27337         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27338         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27339         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27340         when appropriate.
27341         Reported by Jim Meyering.
27342
27343 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27344
27345         * gnulib-tool (func_import): Explain origin of code.
27346
27347 2010-03-12  Bruno Haible  <bruno@clisp.org>
27348
27349         Fix problem with automake's definition of CXXLINK.
27350         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27351         Reported by Simon Josefsson and Ludovic Courtès.
27352
27353 2010-03-12  Bruno Haible  <bruno@clisp.org>
27354
27355         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27356         stable releases.
27357
27358 2010-03-11  Bruno Haible  <bruno@clisp.org>
27359
27360         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27361         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27362         whether the system provides one variant or multiple variants of the
27363         function.
27364         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27365         C++ compilers.
27366         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27367         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27368         Reported by Jim Meyering.
27369
27370 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27371
27372         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27373
27374 2010-03-08  Bruno Haible  <bruno@clisp.org>
27375
27376         gnulib-tool: Add support for --libtool in --create-testdir.
27377         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27378         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27379
27380 2010-03-08  Eric Blake  <eblake@redhat.com>
27381
27382         gnulib-tool.texi: mention possibility of git submodule
27383         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27384         submodules.
27385         * doc/.gitignore: Ignore another generated file.
27386
27387 2010-03-08  Karl Berry  <karl@gnu.org>
27388
27389         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27390         of committing gnulib files while skipping others.
27391
27392 2010-03-07  Bruno Haible  <bruno@clisp.org>
27393
27394         Tests of module 'wctype' in C++ mode.
27395         * tests/test-wctype-c++.cc: New file.
27396         * modules/wctype-tests (Files): Add it and tests/signature.h.
27397         (Depends-on): Add ansi-c++-opt.
27398         (Makefile.am): Arrange to compile and run test-wctype-c++.
27399
27400         Tests of module 'wchar' in C++ mode.
27401         * tests/test-wchar-c++.cc: New file.
27402         * modules/wchar-tests (Files): Add it and tests/signature.h.
27403         (Depends-on): Add ansi-c++-opt.
27404         (Makefile.am): Arrange to compile and run test-wchar-c++.
27405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27406         gl_MODULE_INDICATOR.
27407
27408         Tests of module 'unistd' in C++ mode.
27409         * tests/test-unistd-c++.cc: New file.
27410         * modules/unistd-tests (Files): Add it and tests/signature.h.
27411         (Depends-on): Add ansi-c++-opt.
27412         (Makefile.am): Arrange to compile and run test-unistd-c++.
27413         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27414         gl_MODULE_INDICATOR.
27415
27416         Tests of module 'time' in C++ mode.
27417         * tests/test-time-c++.cc: New file.
27418         * modules/time-tests (Files): Add it and tests/signature.h.
27419         (Depends-on): Add ansi-c++-opt.
27420         (Makefile.am): Arrange to compile and run test-time-c++.
27421         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27422
27423         Tests of module 'sys_time' in C++ mode.
27424         * tests/test-sys_time-c++.cc: New file.
27425         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27426         (Depends-on): Add ansi-c++-opt.
27427         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27428         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27429         gl_MODULE_INDICATOR.
27430
27431         Tests of module 'sys_stat' in C++ mode.
27432         * tests/test-sys_stat-c++.cc: New file.
27433         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27434         (Depends-on): Add ansi-c++-opt.
27435         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27436         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27437         gl_MODULE_INDICATOR.
27438
27439         Tests of module 'sys_socket' in C++ mode.
27440         * tests/test-sys_socket-c++.cc: New file.
27441         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27442         (Depends-on): Add ansi-c++-opt.
27443         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27445         gl_MODULE_INDICATOR.
27446
27447         Tests of module 'sys_select' in C++ mode.
27448         * tests/test-sys_select-c++.cc: New file.
27449         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27450         (Depends-on): Add ansi-c++-opt.
27451         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27452         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27453         gl_MODULE_INDICATOR.
27454
27455         Tests of module 'sys_ioctl' in C++ mode.
27456         * tests/test-sys_ioctl-c++.cc: New file.
27457         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27458         (Depends-on): Add ansi-c++-opt.
27459         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27460         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27461         gl_MODULE_INDICATOR.
27462
27463         Tests of module 'string' in C++ mode.
27464         * tests/test-string-c++.cc: New file.
27465         * modules/string-tests (Files): Add it and tests/signature.h.
27466         (Depends-on): Add ansi-c++-opt.
27467         (Makefile.am): Arrange to compile and run test-string-c++.
27468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27469         gl_MODULE_INDICATOR.
27470
27471         Tests of module 'stdlib' in C++ mode.
27472         * tests/test-stdlib-c++.cc: New file.
27473         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27474         (Depends-on): Add ansi-c++-opt.
27475         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27476         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27477         gl_MODULE_INDICATOR.
27478
27479         Tests of module 'stdio' in C++ mode.
27480         * tests/test-stdio-c++.cc: New file.
27481         * modules/stdio-tests (Files): Add it and tests/signature.h.
27482         (Depends-on): Add ansi-c++-opt.
27483         (Makefile.am): Arrange to compile and run test-stdio-c++.
27484         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27485         gl_MODULE_INDICATOR.
27486
27487         Tests of module 'spawn' in C++ mode.
27488         * tests/test-spawn-c++.cc: New file.
27489         * modules/spawn-tests (Files): Add it and tests/signature.h.
27490         (Depends-on): Add ansi-c++-opt.
27491         (Makefile.am): Arrange to compile and run test-spawn-c++.
27492         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27493         gl_MODULE_INDICATOR.
27494
27495         Tests of module 'signal' in C++ mode.
27496         * tests/test-signal-c++.cc: New file.
27497         * modules/signal-tests (Files): Add it and tests/signature.h.
27498         (Depends-on): Add ansi-c++-opt.
27499         (Makefile.am): Arrange to compile and run test-signal-c++.
27500         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27501         gl_MODULE_INDICATOR.
27502
27503         Tests of module 'search' in C++ mode.
27504         * tests/test-search-c++.cc: New file.
27505         * modules/search-tests (Files): Add it and tests/signature.h.
27506         (Depends-on): Add ansi-c++-opt.
27507         (Makefile.am): Arrange to compile and run test-search-c++.
27508         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27509         gl_MODULE_INDICATOR.
27510
27511         Tests of module 'math' in C++ mode.
27512         * tests/test-math-c++.cc: New file.
27513         * modules/math-tests (Files): Add it and tests/signature.h.
27514         (Depends-on): Add ansi-c++-opt.
27515         (Makefile.am): Arrange to compile and run test-math-c++.
27516         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27517
27518         Tests of module 'locale' in C++ mode.
27519         * tests/test-locale-c++.cc: New file.
27520         * modules/locale-tests (Files): Add it and tests/signature.h.
27521         (Depends-on): Add ansi-c++-opt.
27522         (Makefile.am): Arrange to compile and run test-locale-c++.
27523         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27524         gl_MODULE_INDICATOR.
27525
27526         Tests of module 'langinfo' in C++ mode.
27527         * tests/test-langinfo-c++.cc: New file.
27528         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27529         (Depends-on): Add ansi-c++-opt.
27530         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27531         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27532         gl_MODULE_INDICATOR.
27533
27534         Tests of module 'iconv-h' in C++ mode.
27535         * tests/test-iconv-h-c++.cc: New file.
27536         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27537         (Depends-on): Add ansi-c++-opt.
27538         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27539
27540         Tests of module 'glob' in C++ mode.
27541         * tests/test-glob-c++.cc: New file.
27542         * modules/glob-tests (Files): Add it.
27543         (Depends-on): Add ansi-c++-opt.
27544         (Makefile.am): Arrange to compile and run test-glob-c++.
27545
27546         Tests of module 'fcntl-h' in C++ mode.
27547         * tests/test-fcntl-h-c++.cc: New file.
27548         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27549         (Depends-on): Add ansi-c++-opt.
27550         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27551         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27552         gl_MODULE_INDICATOR.
27553
27554         Tests of module 'dirent' in C++ mode.
27555         * tests/test-dirent-c++.cc: New file.
27556         * modules/dirent-tests (Files): Add it and tests/signature.h.
27557         (Depends-on): Add ansi-c++-opt.
27558         (Makefile.am): Arrange to compile and run test-dirent-c++.
27559         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27560         gl_MODULE_INDICATOR.
27561
27562         New module 'ansi-c++-opt'.
27563         * modules/ansi-c++-opt: New file.
27564         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27565
27566         Document C++ namespace mode.
27567         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27568
27569         wctype: Avoid #define replacements in C++ mode.
27570         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27571         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27572         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27573         In C++, define a namespaced alias symbol.
27574         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27575         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27576         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27577         rule.
27578
27579         wchar: Avoid #define replacements in C++ mode.
27580         * lib/wchar.in.h: Include c++defs.h.
27581         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27582         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27583         symbol.
27584         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27585         * modules/wchar (Depends-on): Add c++defs.
27586         (Makefile.am): Update wchar.h rule.
27587
27588         unistd: Avoid #define replacements in C++ mode.
27589         * lib/unistd.in.h: Include c++defs.h.
27590         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27591         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27592         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27593         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27594         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27595         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27596         symbol.
27597         (environ): Update.
27598         * modules/unistd (Depends-on): Add c++defs.
27599         (Makefile.am): Update unistd.h rule.
27600
27601         time: Avoid #define replacements in C++ mode.
27602         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27603         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27604         define a namespaced alias symbol.
27605         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27606         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27607         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27608         * modules/time (Depends-on): Add c++defs, warn-on-use.
27609         (Makefile.am): Update time.h rule.
27610         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27611         * modules/nanosleep (configure.ac): Likewise.
27612         * modules/strptime (configure.ac): Likewise.
27613         * modules/timegm (configure.ac): Likewise.
27614
27615         sys_time: Avoid #define replacements in C++ mode.
27616         * lib/sys_time.in.h: Include c++defs.h.
27617         (gettimeofday): In C++, define a namespaced alias symbol.
27618         * modules/sys_time (Depends-on): Add c++defs.
27619         (Makefile.am): Update sys/time.h rule.
27620
27621         sys_stat: Avoid #define replacements in C++ mode.
27622         * lib/sys_stat.in.h: Include c++defs.h.
27623         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27624         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27625         namespaced alias symbol.
27626         In C++, define a namespaced alias symbol.
27627         * modules/sys_stat (Depends-on): Add c++defs.
27628         (Makefile.am): Update sys/stat.h rule.
27629
27630         sys_socket: Avoid #define replacements in C++ mode.
27631         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27632         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27633         definitions also when the system has a <sys/socket.h>.
27634         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27635         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27636         In C++, define a namespaced alias symbol.
27637         * modules/sys_socket (Depends-on): Add c++defs.
27638         (Makefile.am): Update sys/socket.h rule.
27639
27640         sys_select: Avoid #define replacements in C++ mode.
27641         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27642         definitions also when the system has a <sys/select.h>.
27643         (select): In C++, define a namespaced alias symbol.
27644         * modules/sys_select (Depends-on): Add c++defs.
27645         (Makefile.am): Update sys/select.h rule.
27646
27647         sys_ioctl: Avoid #define replacements in C++ mode.
27648         * lib/sys_ioctl.in.h: Include c++defs.h.
27649         (ioctl): In C++, define a namespaced alias symbol.
27650         * modules/sys_ioctl (Depends-on): Add c++defs.
27651         (Makefile.am): Update sys/ioctl.h rule.
27652
27653         string: Avoid #define replacements in C++ mode.
27654         * lib/string.in.h: Include c++defs.h.
27655         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27656         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27657         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27658         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27659         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27660         * modules/string (Depends-on): Add c++defs.
27661         (Makefile.am): Update string.h rule.
27662
27663         stdlib: Avoid #define replacements in C++ mode.
27664         * lib/stdlib.in.h: Include c++defs.h.
27665         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27666         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27667         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27668         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27669         symbol.
27670         * modules/stdlib (Depends-on): Add c++defs.
27671         (Makefile.am): Update stdlib.h rule.
27672
27673         stdio: Avoid #define replacements in C++ mode.
27674         * lib/stdio.in.h: Include c++defs.h.
27675         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27676         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27677         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27678         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27679         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27680         namespaced alias symbol.
27681         * modules/stdio (Depends-on): Add c++defs.
27682         (Makefile.am): Update stdio.h rule.
27683
27684         spawn: Avoid #define replacements in C++ mode.
27685         * lib/spawn.in.h: Include c++defs.h.
27686         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27687         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27688         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27689         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27690         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27691         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27692         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27693         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27694         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27695         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27696         In C++, define a namespaced alias symbol.
27697         * modules/spawn (Depends-on): Add c++defs.
27698         (Makefile.am): Update spawn.h rule.
27699
27700         signal: Avoid #define replacements in C++ mode.
27701         * lib/signal.in.h: Include c++defs.h.
27702         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27703         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27704         namespaced alias symbol.
27705         * modules/signal (Depends-on): Add c++defs.
27706         (Makefile.am): Update signal.h rule.
27707
27708         search: Avoid #define replacements in C++ mode.
27709         * lib/search.in.h: Include c++defs.h.
27710         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27711         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27712         symbol.
27713         * modules/search (Depends-on): Add c++defs.
27714         (Makefile.am): Update search.h rule.
27715
27716         math: Avoid #define replacements in C++ mode.
27717         * lib/math.in.h: Include c++defs.h.
27718         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27719         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27720         trunc, truncl): In C++, define a namespaced alias symbol.
27721         * modules/math (Depends-on): Add c++defs.
27722         (Makefile.am): Update math.h rule.
27723
27724         locale: Avoid #define replacements in C++ mode.
27725         * lib/locale.in.h: Include c++defs.h.
27726         (duplocale): In C++, define a namespaced alias symbol.
27727         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27728         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27729         * modules/locale (Depends-on): Add c++defs.
27730         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27731
27732         langinfo: Avoid #define replacements in C++ mode.
27733         * lib/langinfo.in.h: Include c++defs.h.
27734         (nl_langinfo): In C++, define a namespaced alias symbol.
27735         * modules/langinfo (Depends-on): Add c++defs.
27736         (Makefile.am): Update langinfo.h rule.
27737
27738         iconv-h: Avoid #define replacements in C++ mode.
27739         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27740         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27741         symbol.
27742         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27743         whenever iconv is present.
27744         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27745         (Makefile.am): Update iconv.h rule.
27746
27747         glob: Avoid #define replacements in C++ mode.
27748         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27749         (_gl_glob_errfunc_fn): New type.
27750         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27751         symbol.
27752         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27753         (Makefile.am): Update glob.h rule.
27754
27755         fcntl-h: Avoid #define replacements in C++ mode.
27756         * lib/fcntl.in.h: Include c++defs.h.
27757         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27758         * modules/fcntl-h (Depends-on): Add c++defs.
27759         (Makefile.am): Update fcntl.h rule.
27760
27761         dirent: Avoid #define replacements in C++ mode.
27762         * lib/dirent.in.h: Include c++defs.h.
27763         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27764         namespaced alias symbol.
27765         (dirfd): Update declaration.
27766         * modules/dirent (Depends-on): Add c++defs.
27767         (Makefile.am): Update dirent.h rule.
27768
27769         ctype: Make it usable in C++ code.
27770         * lib/ctype.in.h: Include c++defs.h.
27771         (isblank): Declare as extern "C".
27772         * modules/ctype (Depends-on): Add c++defs.
27773         (Makefile.am): Update ctype.h rule.
27774
27775         New module 'c++defs'.
27776         * modules/c++defs: New file.
27777         * build-aux/c++defs.h: New file.
27778         Reported by John W. Eaton <jwe@gnu.org>.
27779
27780 2010-03-07  Bruno Haible  <bruno@clisp.org>
27781
27782         logb: Provide missing declaration for Cygwin.
27783         * lib/math.in.h (logb): New declaration.
27784         * m4/logb.m4: New file.
27785         * modules/logb (Files): Add m4/logb.m4.
27786         (Depends-on): Add math.
27787         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27788         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27790         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27791         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27792
27793 2010-03-07  Bruno Haible  <bruno@clisp.org>
27794
27795         Fix test-cond link error.
27796         * tests/test-cond.c: Include <stdio.h>.
27797
27798 2010-03-07  Bruno Haible  <bruno@clisp.org>
27799
27800         Fix test-dirent-safer link error.
27801         * modules/dirent-safer-tests (Makefile.am): Define
27802         test_dirent_safer_LDADD.
27803
27804 2010-03-07  Bruno Haible  <bruno@clisp.org>
27805
27806         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27807         among default module list.
27808
27809 2010-03-07  Bruno Haible  <bruno@clisp.org>
27810
27811         Fix link error on platforms with GNU libiconv.
27812         * modules/unistr/u8-strcoll-tests (Makefile): Define
27813         test_u8_strcoll_LDADD.
27814         * modules/unistr/u16-strcoll-tests (Makefile): Define
27815         test_u16_strcoll_LDADD.
27816         * modules/unistr/u32-strcoll-tests (Makefile): Define
27817         test_u32_strcoll_LDADD.
27818
27819 2010-03-07  Bruno Haible  <bruno@clisp.org>
27820
27821         Use POSIX declarations for socket functions.
27822         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27823         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27824         rpl_sendto): Change declaration to match POSIX.
27825         * lib/connect.c (rpl_connect): Likewise.
27826         * lib/accept.c (rpl_accept): Likewise.
27827         * lib/bind.c (rpl_bind): Likewise.
27828         * lib/getpeername.c (rpl_getpeername): Likewise.
27829         * lib/getsockname.c (rpl_getsockname): Likewise.
27830         * lib/recv.c (rpl_recv): Likewise.
27831         * lib/send.c (rpl_send): Likewise.
27832         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27833         * lib/sendto.c (rpl_sendto): Likewise.
27834
27835 2010-03-06  Bruno Haible  <bruno@clisp.org>
27836
27837         Clarify access, euidaccess, faccessat.
27838         * doc/posix-functions/faccessat.texi: Mention security problem under
27839         "Other problems", not "Portability problems".
27840         * doc/posix-functions/access.texi: Likewise. Mention a related security
27841         problem.
27842         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27843         * lib/euidaccess.c: Add comments about platforms.
27844         * lib/unistd.in.h (access, euidaccess): Add warnings.
27845
27846 2010-03-07  Bruno Haible  <bruno@clisp.org>
27847
27848         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27849         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27850         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27851         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27852         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27853         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27854         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27855         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27856         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27858         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27859         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27860         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27861         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27862         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27863         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27864         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27865         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27866         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27867         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27868         Likewise.
27869         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27870         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27871         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27872         Likewise.
27873         * tests/test-spawn.c (main): Make it work when
27874         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27875
27876 2010-03-07  Bruno Haible  <bruno@clisp.org>
27877
27878         Fix incorrect Makefile.am generation in German locale.
27879         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27880         Execute sed command with character range in C locale.
27881
27882 2010-03-06  Bruno Haible  <bruno@clisp.org>
27883
27884         Tests for module 'iconv-h'.
27885         * modules/iconv-h-tests: New file.
27886         * tests/test-iconv-h.c: New file.
27887
27888         New module 'iconv-h'.
27889         * modules/iconv-h: New file.
27890         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27891         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27892         (configure.ac): Remove gl_ICONV_H.
27893         (Makefile.am): Remove rule for iconv.h.
27894
27895 2010-03-06  Bruno Haible  <bruno@clisp.org>
27896
27897         More consistent naming of *.m4 files.
27898         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27899         * modules/wctype (Files): Update.
27900
27901         More consistent naming of *.m4 files.
27902         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27903         * modules/wchar (Files): Update.
27904
27905 2010-03-06  Jim Meyering  <meyering@redhat.com>
27906
27907         euidaccess: relax license to LGPLv2+
27908         * modules/euidaccess (License): Relax to LGPLv2+.
27909
27910 2010-03-06  Bruno Haible  <bruno@clisp.org>
27911
27912         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27913         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27914         (Makefile.am): Augment lib_SOURCES instead.
27915
27916 2010-03-04  Jim Meyering  <meyering@redhat.com>
27917
27918         utime: remove obsolete module
27919         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27920         unnecessary for years, and has been marked as obsolete for 10 months.
27921         * modules/utime: Remove file.
27922         * lib/utime.c: Remove file.
27923         * m4/utime.m4: Remove file.
27924         * m4/utimes-null.m4: Remove file.
27925         * doc/posix-functions/utime.texi (utime): Remove reference to
27926         the module.  Move the sole "fixed by gnulib" item into the
27927         "problems not fixed by Gnulib" list.
27928         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27929
27930 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27931
27932         * modules/exit (License): Relax license to LGPLv2+.
27933         (Status): Mark as obsolete.
27934         * NEWS: Mention deprecated 'exit' module.
27935         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27936         of now obsolete 'exit'.
27937
27938 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27939
27940         fts-lgpl: remove unused module
27941         * modules/fts-lgpl: Remove.
27942         * MODULES.html.sh (func_all_modules): Adjust.
27943         * check-module (find_included_lib_files): Adjust.
27944         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27945
27946 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27947
27948         copy-acl: enhance Solaris ACL error handling
27949         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27950         * lib/set-mode-acl.c (qset_acl): Likewise.
27951
27952 2010-03-02  Bruno Haible  <bruno@clisp.org>
27953
27954         spawn: Don't override the system defined values on FreeBSD 8.
27955         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27956         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27957         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27958         if HAVE_POSIX_SPAWN is 1.
27959         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27960
27961 2010-03-01  Bruno Haible  <bruno@clisp.org>
27962
27963         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27964         regarding Automake.
27965
27966 2010-02-25  Bruno Haible  <bruno@clisp.org>
27967
27968         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27969         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27970         setting, not afterwards.
27971         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27972
27973 2010-02-24  Eric Blake  <eblake@redhat.com>
27974
27975         bootstrap, git-version-gen: use timestamp
27976         * build-aux/git-version-gen (scriptversion): Force UTC.
27977         * build-aux/bootstrap (scriptversion): New variable.
27978
27979         bootstrap: allow older git
27980         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27981         older than 1.6.4.  Requested by the libvirt project.
27982
27983 2010-02-23  Eric Blake  <eblake@redhat.com>
27984
27985         warn-on-use: work with old autoconf
27986         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27987         AS_VAR semantics of autoconf 2.60.
27988         Reported by Bruno Haible.
27989
27990         bootstrap: improve some comments
27991         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27992         clarification comments.
27993
27994         gettimeofday: provide correct function
27995         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27996         when replacement is declared, otherwise provide gettimeofday.
27997         Reported by Michael Goffioul.
27998
27999 2010-02-23  Jim Meyering  <meyering@redhat.com>
28000
28001         lib-ignore: relax license to "unlimited", not LGPLv2+
28002         * modules/lib-ignore (License): Relax to "unlimited".
28003
28004 2010-02-23  Jim Meyering  <meyering@redhat.com>
28005
28006         lib-ignore: relax license to LGPLv2+
28007         * modules/lib-ignore (License): Relax to LGPLv2+.
28008
28009 2010-02-22  Eric Blake  <eblake@redhat.com>
28010
28011         lseek: avoid bash 3.2 broken pipe bug
28012         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28013         warning from bash 3.2.
28014         Reported by Ben Pfaff, with analysis from Bruno Haible.
28015
28016         bootstrap: support non-FSF copyright holder
28017         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28018         bootstrap.conf override of COPYRIGHT_HOLDER.
28019         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28020
28021         bootstrap: interoperate with gettext 0.14.1
28022         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28023
28024         bootstrap: allow for alternate submodule location
28025         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28026         hardcoding submodule location.
28027         (gnulib_mk): Allow direct use of Makefile.am.
28028
28029         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28030         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28031         rather than reconfiguring where the submodule points.
28032
28033         gettimeofday: restore support for platforms that lack function
28034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28035         replacement if function is missing.
28036         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28037         * modules/sys_time (Makefile.am): Substitute it.
28038         * lib/sys_time.in.h (gettimeofday): Check it.
28039         Reported by Michael Goffioul.
28040
28041 2010-02-21  Bruno Haible  <bruno@clisp.org>
28042
28043         * lib/stdio.in.h (obstack_printf): Fix typo.
28044
28045 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28046
28047         vc-list-files: use bzr ls's -R option
28048         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28049         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28050
28051 2010-02-21  Jim Meyering  <meyering@redhat.com>
28052
28053         init.sh: fix EXEEXT shims to work also for names like test-prog
28054         * tests/init.sh: Re-exec a better shell, when needed.
28055         If the current shell lacks support for posix $(...), an init.sh-using
28056         test will now try to find a shell that supports that.  If EXEEXT is
28057         nonempty, we also require support for hyphen-in-alias-name and shell
28058         substitutions like ${var#glob}.  Failure to find such a shell results
28059         in a skipped test.
28060
28061 2010-02-21  Bruno Haible  <bruno@clisp.org>
28062
28063         Really work around around "broken pipe" error message from bash 3.2.
28064         * gnulib-tool (func_reset_sigpipe): Remove function.
28065         (echo): In bash 3.2, define to a function that uses printf.
28066         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28067
28068 2010-02-20  Bruno Haible  <bruno@clisp.org>
28069
28070         Restore support for automake 1.9.6 with autoconf 2.61.
28071         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28072         Reported by James Youngman <jay@gnu.org>.
28073
28074 2010-02-20  Bruno Haible  <bruno@clisp.org>
28075
28076         Improve *printf warning condition.
28077         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28078         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28079         and the function is overridden due to SIGPIPE emulation.
28080
28081 2010-02-20  Bruno Haible  <bruno@clisp.org>
28082
28083         * lib/stdio.in.h: Tweak comments.
28084
28085 2010-02-19  Bruno Haible  <bruno@clisp.org>
28086
28087         Make it easier to find modules. New gnulib-tool option '--find'.
28088         * gnulib-tool: New option --find.
28089         (func_usage): Document it.
28090         (func_sanitize_modulelist): New function, extracted from
28091         func_all_modules.
28092         (func_all_modules): Invoke it.
28093         * doc/gnulib-tool.texi (Which modules?): New node.
28094
28095 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28096
28097         * lib/sys_select.in.h: Provide select replacement even if
28098         sys/select.h exists on a system, for Interix.
28099
28100 2010-02-18  Jim Meyering  <meyering@redhat.com>
28101
28102         init.sh: don't use $(...) just yet
28103         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28104         to accommodate e.g., Solaris' /bin/sh.
28105
28106 2010-02-17  Bruno Haible  <bruno@clisp.org>
28107
28108         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28109         Reported by Ludovic Courtès <ludo@gnu.org>.
28110
28111 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28112
28113         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28114         linking with -lintl.
28115
28116 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28117
28118         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28119         if not provided by the system's netdb.h.  Reported by
28120         ludo@gnu.org (Ludovic Courtès).
28121
28122 2010-02-15  Jim Meyering  <meyering@redhat.com>
28123
28124         init.sh: improve portability and efficiency
28125         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28126         "dummy" in a for loop.
28127         Use '!', not '^' to select the complement of a character set used
28128         in a "case" statement.
28129         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28130         Suggestions from Eric Blake.
28131
28132         init.sh: automatically accommodate programs with the .exe suffix
28133         Automatically arrange for an invocation of "prog" to execute the
28134         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28135         may use the simpler "prog", yet still work when built on a system
28136         that requires specifying the added suffix.
28137         Do this by constructing a function named "prog" that invokes
28138         "prog.exe" for each .exe file in selected directories.
28139         * tests/init.sh (find_exe_basenames_): New function.
28140         (create_exe_shim_functions_): New function.
28141         (path_prepend_): Use it.
28142
28143         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28144         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28145         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28146
28147 2010-02-14  Jim Meyering  <meyering@redhat.com>
28148
28149         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28150         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28151         (sc_prohibit_hash_pjw_without_use): New rule.
28152
28153         maint.mk: allow the default upload destination dir to be overridden
28154         * top/maint.mk (upload_dest_dir_): Define with a default that
28155         preserves the status quo.
28156         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28157         Reported by Peter Simons.
28158
28159         maint.mk: prohibit inclusion of "hash.h" without_use
28160         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28161
28162 2010-02-10  Jim Meyering  <meyering@redhat.com>
28163
28164         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28165         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28166
28167 2010-02-09  Eric Blake  <ebb9@byu.net>
28168         and Bruno Haible  <bruno@clisp.org>
28169
28170         obstack-printf-posix: ensure declaration
28171         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28172         extracted from gl_FUNC_OBSTACK_PRINTF.
28173         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28174         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28175         Likewise.
28176         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28177         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28178         0.
28179
28180 2010-02-08  Bruno Haible  <bruno@clisp.org>
28181
28182         gnulib-tool: Fix typo in 2010-02-07 commit.
28183         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28184         Reported by Eric Blake.
28185
28186 2010-02-07  Bruno Haible  <bruno@clisp.org>
28187
28188         gnulib-tool: Fix up caching patches.
28189         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28190         option --no-cache. Use associative arrays when supported by the shell.
28191         (sed_comments): New variable.
28192         (modcache): Renamed from do_cache.
28193         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28194         abbreviate unnecessarily.
28195         (have_associative): New variable.
28196         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28197         way also for ksh and zsh.
28198         (func_init_sed_convert_to_cache_statements): New function, extracted
28199         from func_cache_lookup_module. Add support for associative arrays.
28200         Don't set the c_MODULE_cached variable here. Ignore all lines before
28201         the first field header. Remove only the final newline, not all trailing
28202         newlines. Support empty fields correctly. Limit the use of 'eval' to
28203         assignments.
28204         (func_get_description, func_get_status, func_get_notice,
28205         func_get_applicability, func_get_filelist, func_get_dependencies,
28206         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28207         func_get_automake_snippet, func_get_include_directive,
28208         func_get_link_directive, func_get_license, func_get_maintainer):
28209         Update documentation. List the unoptimized code first. Add support for
28210         associative arrays. Limit the use of 'eval' to assignments.
28211         (func_get_applicability): Undo stylistic pessimisations.
28212         (func_get_automake_snippet, func_get_include_directive): Reduce code
28213         duplication.
28214         (func_modules_transitive_closure, func_modules_add_dummy,
28215         func_modules_notice, func_modules_to_filelist, func_add_file,
28216         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28217         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28218         func_create_testdir, func_create_megatestdir): Update documentation.
28219
28220 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28221
28222         * gnulib-tool (func_cache_lookup_module): Store the module name
28223         belonging to the cache variable; error out if two different
28224         module names map to the same cache variable name.
28225
28226 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28227
28228         gnulib-tool: Make caching optional.
28229         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28230         Update matching short versions of --no-changelog.
28231         (func_usage): Update.
28232         (sed_extract_cache_prog): Renamed from ...
28233         (sed_extract_prog): ... this; revert to old extraction script.
28234         (func_get_description, func_get_status)
28235         (func_get_notice, func_get_applicability, func_get_filelist)
28236         (func_get_dependencies, func_get_autoconf_early_snippet)
28237         (func_get_autoconf_snippet, func_get_automake_snippet)
28238         (func_get_include_directive, func_get_link_directive)
28239         (func_get_license, func_get_maintainer): If $do_cache is false,
28240         use old, non-caching extraction scripts.
28241         Suggestion by Bruno Haible.
28242
28243 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28244
28245         gnulib-tool: cache module metainformation.
28246         * gnulib-tool (sed_extract_prog): Match newline before each
28247         header, and rewrite header to a shell variable suffix.
28248         (func_cache_var, func_cache_lookup_module): New functions,
28249         to turn a module name into a cache variable prefix, and to
28250         look up and cache module metainformation.
28251         (func_get_description, func_get_status)
28252         (func_get_notice, func_get_applicability, func_get_filelist)
28253         (func_get_dependencies, func_get_autoconf_early_snippet)
28254         (func_get_autoconf_snippet, func_get_automake_snippet)
28255         (func_get_include_directive, func_get_link_directive)
28256         (func_get_license, func_get_maintainer): Use
28257         func_cache_lookup_module.
28258
28259 2010-02-07  Bruno Haible  <bruno@clisp.org>
28260
28261         fnctl: Fix missing dependency.
28262         * modules/fcntl (Depends-on): Add getdtablesize.
28263         Reported by John W. Eaton <jwe@gnu.org>.
28264
28265 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28266
28267         Argp: fix recognition of short alias options.
28268
28269         * lib/argp-parse.c (convert_options): Fix improper use of
28270         `|' between character values.
28271         * tests/test-argp.c (group1_option): New alias option
28272         --read (-r).
28273         (group1_parser): Special handling for 'r'.
28274         (test15): New test case.
28275         (test_fun): Add test15.
28276         * tests/test-argp-2.sh: Update expected --help and --usage
28277         outputs.
28278
28279 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28280
28281         * tests/test-argp.c: Fix indentation.
28282
28283 2010-02-04  Eric Blake  <ebb9@byu.net>
28284
28285         gettimeofday: expose type of second argument
28286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28287         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28288         * tests/test-gettimeofday.c: Use it to silence warning.
28289         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28290         the issue.
28291
28292 2010-02-03  Jim Meyering  <meyering@redhat.com>
28293
28294         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28295         * lib/regcomp.c (TYPE_SIGNED): Define.
28296         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28297
28298         regcomp.c: avoid a new -Wshadow warning
28299         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28300
28301 2010-02-01  Jim Meyering  <meyering@redhat.com>
28302
28303         removing useless parentheses in cpp #define directives
28304         For motivation, see commit c0221df4, "define STREQ(a,b)
28305         consistently, removing useless parentheses"
28306         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28307         * lib/mountlist.c (MNT_IGNORE): Likewise.
28308         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28309
28310 2010-02-01  Eric Blake  <ebb9@byu.net>
28311
28312         sys_time: use link-warning
28313         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28314         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28315         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28316         * modules/sys_time (Depends-on): Add warn-on-use.
28317         (Makefile.am): Always build replacement.
28318         (configure.ac): Update substitutions.
28319         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28320         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28321         bother with SYS_TIME_H.
28322         * modules/gettimeofday (configure.ac): Declare indicator.
28323         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28324         in use.
28325
28326         closein-tests: silence compiler warning
28327         * tests/test-closein.c (main): Ignore fread result.
28328         * modules/closein-tests (Depends-on): Add ignore-value.
28329
28330         tests: silence warning about system return
28331         * tests/test-areadlink-with-size.c (main): Ignore system result.
28332         * tests/test-areadlink.c (main): Likewise.
28333         * tests/test-areadlinkat-with-size.c (main): Likewise.
28334         * tests/test-areadlinkat.c (main): Likewise.
28335         * tests/test-canonicalize-lgpl.c (main): Likewise.
28336         * tests/test-canonicalize.c (main): Likewise.
28337         * tests/test-chown.c (main): Likewise.
28338         * tests/test-fchownat.c (main): Likewise.
28339         * tests/test-fdutimensat.c (main): Likewise.
28340         * tests/test-fstatat.c (main): Likewise.
28341         * tests/test-futimens.c (main): Likewise.
28342         * tests/test-lchown.c (main): Likewise.
28343         * tests/test-link.c (main): Likewise.
28344         * tests/test-linkat.c (main): Likewise.
28345         * tests/test-lstat.c (main): Likewise.
28346         * tests/test-mkdir.c (main): Likewise.
28347         * tests/test-mkdirat.c (main): Likewise.
28348         * tests/test-mkfifo.c (main): Likewise.
28349         * tests/test-mkfifoat.c (main): Likewise.
28350         * tests/test-mknod.c (main): Likewise.
28351         * tests/test-readlink.c (main): Likewise.
28352         * tests/test-remove.c (main): Likewise.
28353         * tests/test-rename.c (main): Likewise.
28354         * tests/test-renameat.c (main): Likewise.
28355         * tests/test-rmdir.c (main): Likewise.
28356         * tests/test-symlink.c (main): Likewise.
28357         * tests/test-symlinkat.c (main): Likewise.
28358         * tests/test-unlink.c (main): Likewise.
28359         * tests/test-unlinkat.c (main): Likewise.
28360         * tests/test-utimens.c (main): Likewise.
28361         * tests/test-utimensat.c (main): Likewise.
28362         * modules/areadlink-tests (Depends-on): Add ignore-value.
28363         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28364         * modules/areadlinkat-tests (Depends-on): Likewise.
28365         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28366         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28367         * modules/canonicalize-tests (Depends-on): Likewise.
28368         * modules/chown-tests (Depends-on): Likewise.
28369         * modules/fdutimensat-tests (Depends-on): Likewise.
28370         * modules/futimens-tests (Depends-on): Likewise.
28371         * modules/lchown-tests (Depends-on): Likewise.
28372         * modules/link-tests (Depends-on): Likewise.
28373         * modules/linkat-tests (Depends-on): Likewise.
28374         * modules/lstat-tests (Depends-on): Likewise.
28375         * modules/mkdir-tests (Depends-on): Likewise.
28376         * modules/mkfifo-tests (Depends-on): Likewise.
28377         * modules/mkfifoat-tests (Depends-on): Likewise.
28378         * modules/mknod-tests (Depends-on): Likewise.
28379         * modules/openat-tests (Depends-on): Likewise.
28380         * modules/readlink-tests (Depends-on): Likewise.
28381         * modules/remove-tests (Depends-on): Likewise.
28382         * modules/rename-tests (Depends-on): Likewise.
28383         * modules/renameat-tests (Depends-on): Likewise.
28384         * modules/rmdir-tests (Depends-on): Likewise.
28385         * modules/symlink-tests (Depends-on): Likewise.
28386         * modules/symlinkat-tests (Depends-on): Likewise.
28387         * modules/unlink-tests (Depends-on): Likewise.
28388         * modules/utimens-tests (Depends-on): Likewise.
28389         * modules/utimensat-tests (Depends-on): Likewise.
28390
28391 2010-01-31  Bruno Haible  <bruno@clisp.org>
28392
28393         Perform the same test for many <math.h> functions.
28394         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28395         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28396         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28397         of gl_MATHFUNC.
28398         * modules/acos (configure.ac): Likewise.
28399         * modules/asin (configure.ac): Likewise.
28400         * modules/atan (configure.ac): Likewise.
28401         * modules/atan2 (configure.ac): Likewise.
28402         * modules/cbrt (configure.ac): Likewise.
28403         * modules/copysign (configure.ac): Likewise.
28404         * modules/cos (configure.ac): Likewise.
28405         * modules/cosh (configure.ac): Likewise.
28406         * modules/erf (configure.ac): Likewise.
28407         * modules/erfc (configure.ac): Likewise.
28408         * modules/exp (configure.ac): Likewise.
28409         * modules/fmod (configure.ac): Likewise.
28410         * modules/hypot (configure.ac): Likewise.
28411         * modules/j0 (configure.ac): Likewise.
28412         * modules/j1 (configure.ac): Likewise.
28413         * modules/jn (configure.ac): Likewise.
28414         * modules/lgamma (configure.ac): Likewise.
28415         * modules/log (configure.ac): Likewise.
28416         * modules/log10 (configure.ac): Likewise.
28417         * modules/log1p (configure.ac): Likewise.
28418         * modules/pow (configure.ac): Likewise.
28419         * modules/remainder (configure.ac): Likewise.
28420         * modules/sin (configure.ac): Likewise.
28421         * modules/sinh (configure.ac): Likewise.
28422         * modules/tan (configure.ac): Likewise.
28423         * modules/tanh (configure.ac): Likewise.
28424         * modules/y0 (configure.ac): Likewise.
28425         * modules/y1 (configure.ac): Likewise.
28426         * modules/yn (configure.ac): Likewise.
28427         Suggested by Paolo Bonzini.
28428
28429 2010-01-31  Bruno Haible  <bruno@clisp.org>
28430
28431         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28432
28433 2010-01-31  Bruno Haible  <bruno@clisp.org>
28434
28435         Work around getdelim() bug on FreeBSD 8.0.
28436         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28437         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28438         not work.
28439         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28440         is 1.
28441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28442         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28443         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28444         a non-zero size.
28445         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28446
28447 2010-01-31  Bruno Haible  <bruno@clisp.org>
28448
28449         Work around getline() bug on FreeBSD 8.0.
28450         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28451         and a non-zero size.
28452         * tests/test-getline.c (main): Likewise.
28453         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28454         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28455
28456 2010-01-28  Eric Blake  <ebb9@byu.net>
28457
28458         regex: fix build failure
28459         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28460         platforms.
28461
28462 2010-01-28  Jim Meyering  <meyering@redhat.com>
28463
28464         regex: do not ignore memory allocation failure
28465         * lib/regex_internal.c (create_cd_newstate): Detect
28466         re_node_set_init_copy failure.   Extracted from glibc commit
28467         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28468
28469         regex: sync more white-space changes from libc
28470         * lib/regex_internal.c: White-space only changes.
28471         * lib/regexec.c: Likewise.
28472
28473         regex: add many uses of __attribute_warn_unused_result__
28474         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28475         * lib/regexec.c: Likewise.
28476         Extracted from a messy glibc commit.
28477
28478         regcomp.c: spelling and merge-artifact from glibc
28479         * lib/regcomp.c: Merge remainder of glibc's
28480         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28481
28482         regcomp.c: sync white-space changes from glibc
28483         * lib/regcomp.c: Merge to accommodate white space
28484         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28485
28486         regcomp.c: do not ignore internal return values
28487         * lib/regcomp.c: Do not ignore internal return values.
28488         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28489         but without its white-space changes and spelling fixes.
28490
28491         regex_internal.h: define __attribute_warn_unused_result__
28492         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28493
28494         maint: add a syntax-check rule to check for vulnerable Makefile.in
28495         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28496
28497 2010-01-27  Jim Meyering  <meyering@redhat.com>
28498
28499         ncftpput-ftp: clean up spaces
28500         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28501         Remove trailing blanks.
28502
28503 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28504
28505         * build-aux/git-version-gen: Fix copyright statement.
28506         * build-aux/gnupload: Likewise.
28507         * tests/test-arcfour.c: Likewise.
28508         * tests/test-arctwo.c: Likewise.
28509         * tests/test-count-one-bits.c: Likewise.
28510         * tests/test-crc.c: Likewise.
28511         * tests/test-des.c: Likewise.
28512         * tests/test-gc-arcfour.c: Likewise.
28513         * tests/test-gc-arctwo.c: Likewise.
28514         * tests/test-gc-des.c: Likewise.
28515         * tests/test-gc-hmac-md5.c: Likewise.
28516         * tests/test-gc-hmac-sha1.c: Likewise.
28517         * tests/test-gc-md2.c: Likewise.
28518         * tests/test-gc-md4.c: Likewise.
28519         * tests/test-gc-md5.c: Likewise.
28520         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28521         * tests/test-gc-rijndael.c: Likewise.
28522         * tests/test-gc-sha1.c: Likewise.
28523         * tests/test-gc.c: Likewise.
28524         * tests/test-gethostname.c: Likewise.
28525         * tests/test-gettimeofday.c: Likewise.
28526         * tests/test-hash.c: Likewise.
28527         * tests/test-hmac-md5.c: Likewise.
28528         * tests/test-hmac-sha1.c: Likewise.
28529         * tests/test-md2.c: Likewise.
28530         * tests/test-md4.c: Likewise.
28531         * tests/test-md5.c: Likewise.
28532         * tests/test-memchr.c: Likewise.
28533         * tests/test-memchr2.c: Likewise.
28534         * tests/test-memcmp.c: Likewise.
28535         * tests/test-memmem.c: Likewise.
28536         * tests/test-memrchr.c: Likewise.
28537         * tests/test-rawmemchr.c: Likewise.
28538         * tests/test-read-file.c: Likewise.
28539         * tests/test-rijndael.c: Likewise.
28540         * tests/test-sockets.c: Likewise.
28541         * tests/test-strchrnul.c: Likewise.
28542         * tests/test-strstr.c: Likewise.
28543         * tests/test-strtod.c: Likewise.
28544         * build-aux/ncftpput-ftp: Likewise.
28545
28546 2010-01-26  Eric Blake  <ebb9@byu.net>
28547
28548         ignore-value: update recommended header name
28549         * modules/ignore-value (Include): Only use <> for headers that
28550         exist in glibc.
28551
28552 2010-01-26  Jim Meyering  <meyering@redhat.com>
28553
28554         test-userspec.c: avoid compiler warnings
28555         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28556         and "initialization discards qualifiers..." warnings.
28557         Put the first "uid" in its own scope, and make char* members "const".
28558
28559 2010-01-25  Bruno Haible  <bruno@clisp.org>
28560
28561         gnulib-tool: Make warning diagnostics consistent.
28562         * gnulib-tool (func_warning): New function.
28563         Use it everywhere where gnulib-tool produces output to stderr and it is
28564         not a fatal error.
28565
28566 2010-01-25  Bruno Haible  <bruno@clisp.org>
28567
28568         Fix test dependencies.
28569         * modules/xstrtol-tests (Depends-on): Add inttypes.
28570         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28571
28572 2010-01-25 Pádraig Brady <P@draigBrady.com>
28573
28574         syntax-check: detect incorrect boolean macro values in config.h
28575         * modules/maintainer-makefile (configure.ac): Parameterize the location
28576         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28577         The logic is from Eric Blake and the location indicated by Jim Meyering.
28578         Note the more natural CONFIG_HEADER name is prohibited by automake
28579         for backwards compatibility reasons.
28580         * top/maint.mk (sc_Wundef_boolean): New rule.
28581
28582 2010-01-25  Jim Meyering  <meyering@redhat.com>
28583
28584         bootstrap: detect MacOS 10.6's shasum, too
28585         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28586         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28587
28588 2010-01-23  Jim Meyering  <meyering@redhat.com>
28589
28590         xstrtoll: new module
28591         * modules/xstrtoll: New file.
28592         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28593         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28594         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28595         ./configure fails if you use this module and lack "long long".
28596         * modules/xstrtoll-tests: New module.
28597         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28598         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28599         new init.sh-based test framework.
28600
28601 2010-01-24  Bruno Haible  <bruno@clisp.org>
28602
28603         Tests for module 'yn'.
28604         * modules/yn-tests: New file.
28605         * tests/test-yn.c: New file.
28606
28607         Tests for module 'y1'.
28608         * modules/y1-tests: New file.
28609         * tests/test-y1.c: New file.
28610
28611         Tests for module 'y0'.
28612         * modules/y0-tests: New file.
28613         * tests/test-y0.c: New file.
28614
28615         Tests for module 'tanh'.
28616         * modules/tanh-tests: New file.
28617         * tests/test-tanh.c: New file.
28618
28619         Tests for module 'tan'.
28620         * modules/tan-tests: New file.
28621         * tests/test-tan.c: New file.
28622
28623         Tests for module 'sqrt'.
28624         * modules/sqrt-tests: New file.
28625         * tests/test-sqrt.c: New file.
28626
28627         Tests for module 'sinh'.
28628         * modules/sinh-tests: New file.
28629         * tests/test-sinh.c: New file.
28630
28631         Tests for module 'sin'.
28632         * modules/sin-tests: New file.
28633         * tests/test-sin.c: New file.
28634
28635         Tests for module 'rint'.
28636         * modules/rint-tests: New file.
28637         * tests/test-rint.c: New file.
28638
28639         Tests for module 'remainder'.
28640         * modules/remainder-tests: New file.
28641         * tests/test-remainder.c: New file.
28642
28643         Tests for module 'pow'.
28644         * modules/pow-tests: New file.
28645         * tests/test-pow.c: New file.
28646
28647         Tests for module 'nextafter'.
28648         * modules/nextafter-tests: New file.
28649         * tests/test-nextafter.c: New file.
28650
28651         Tests for module 'modf'.
28652         * modules/modf-tests: New file.
28653         * tests/test-modf.c: New file.
28654
28655         Tests for module 'logb'.
28656         * modules/logb-tests: New file.
28657         * tests/test-logb.c: New file.
28658
28659         Tests for module 'log1p'.
28660         * modules/log1p-tests: New file.
28661         * tests/test-log1p.c: New file.
28662
28663         Tests for module 'log10'.
28664         * modules/log10-tests: New file.
28665         * tests/test-log10.c: New file.
28666
28667         Tests for module 'log'.
28668         * modules/log-tests: New file.
28669         * tests/test-log.c: New file.
28670
28671         Tests for module 'lgamma'.
28672         * modules/lgamma-tests: New file.
28673         * tests/test-lgamma.c: New file.
28674
28675         Tests for module 'ldexp'.
28676         * modules/ldexp-tests: New file.
28677         * tests/test-ldexp.c: New file.
28678
28679         Tests for module 'jn'.
28680         * modules/jn-tests: New file.
28681         * tests/test-jn.c: New file.
28682
28683         Tests for module 'j1'.
28684         * modules/j1-tests: New file.
28685         * tests/test-j1.c: New file.
28686
28687         Tests for module 'j0'.
28688         * modules/j0-tests: New file.
28689         * tests/test-j0.c: New file.
28690
28691         Tests for module 'hypot'.
28692         * modules/hypot-tests: New file.
28693         * tests/test-hypot.c: New file.
28694
28695         Tests for module 'fmod'.
28696         * modules/fmod-tests: New file.
28697         * tests/test-fmod.c: New file.
28698
28699         Tests for module 'fabs'.
28700         * modules/fabs-tests: New file.
28701         * tests/test-fabs.c: New file.
28702
28703         Tests for module 'exp'.
28704         * modules/exp-tests: New file.
28705         * tests/test-exp.c: New file.
28706
28707         Tests for module 'erfc'.
28708         * modules/erfc-tests: New file.
28709         * tests/test-erfc.c: New file.
28710
28711         Tests for module 'erf'.
28712         * modules/erf-tests: New file.
28713         * tests/test-erf.c: New file.
28714
28715         Tests for module 'cosh'.
28716         * modules/cosh-tests: New file.
28717         * tests/test-cosh.c: New file.
28718
28719         Tests for module 'cos'.
28720         * modules/cos-tests: New file.
28721         * tests/test-cos.c: New file.
28722
28723         Tests for module 'copysign'.
28724         * modules/copysign-tests: New file.
28725         * tests/test-copysign.c: New file.
28726
28727         Tests for module 'cbrt'.
28728         * modules/cbrt-tests: New file.
28729         * tests/test-cbrt.c: New file.
28730
28731         Tests for module 'atan2'.
28732         * modules/atan2-tests: New file.
28733         * tests/test-atan2.c: New file.
28734
28735         Tests for module 'atan'.
28736         * modules/atan-tests: New file.
28737         * tests/test-atan.c: New file.
28738
28739         Tests for module 'asin'.
28740         * modules/asin-tests: New file.
28741         * tests/test-asin.c: New file.
28742
28743         Tests for module 'acos'.
28744         * modules/acos-tests: New file.
28745         * tests/test-acos.c: New file.
28746
28747 2010-01-24  Bruno Haible  <bruno@clisp.org>
28748
28749         Fix tests for common <math.h> functions.
28750         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28751         code snippet that references the function pointer, rather than merely
28752         calling the function. Substitute the FUNC_LIBM variable.
28753         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28754         * modules/acos (configure.ac): Likewise.
28755         * modules/asin (configure.ac): Likewise.
28756         * modules/atan (configure.ac): Likewise.
28757         * modules/atan2 (configure.ac): Likewise.
28758         * modules/cbrt (configure.ac): Likewise.
28759         * modules/copysign (configure.ac): Likewise.
28760         * modules/cos (configure.ac): Likewise.
28761         * modules/cosh (configure.ac): Likewise.
28762         * modules/erf (configure.ac): Likewise.
28763         * modules/erfc (configure.ac): Likewise.
28764         * modules/exp (configure.ac): Likewise.
28765         * modules/fabs (configure.ac): Likewise.
28766         * modules/fmod (configure.ac): Likewise.
28767         * modules/hypot (configure.ac): Likewise.
28768         * modules/j0 (configure.ac): Likewise.
28769         * modules/j1 (configure.ac): Likewise.
28770         * modules/jn (configure.ac): Likewise.
28771         * modules/ldexp (configure.ac): Likewise.
28772         * modules/lgamma (configure.ac): Likewise.
28773         * modules/log (configure.ac): Likewise.
28774         * modules/log10 (configure.ac): Likewise.
28775         * modules/log1p (configure.ac): Likewise.
28776         * modules/logb (configure.ac): Likewise.
28777         * modules/modf (configure.ac): Likewise.
28778         * modules/nextafter (configure.ac): Likewise.
28779         * modules/pow (configure.ac): Likewise.
28780         * modules/remainder (configure.ac): Likewise.
28781         * modules/rint (configure.ac): Likewise.
28782         * modules/sin (configure.ac): Likewise.
28783         * modules/sinh (configure.ac): Likewise.
28784         * modules/tan (configure.ac): Likewise.
28785         * modules/tanh (configure.ac): Likewise.
28786         * modules/y0 (configure.ac): Likewise.
28787         * modules/y1 (configure.ac): Likewise.
28788         * modules/yn (configure.ac): Likewise.
28789
28790 2010-01-24  Bruno Haible  <bruno@clisp.org>
28791
28792         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28793         * tests/test-acosl.c (x): New variable.
28794         (main): Store argument in x and fetch it from x.
28795         * tests/test-asinl.c (x): New variable.
28796         (main): Store argument in x and fetch it from x.
28797         * tests/test-atanl.c (x): New variable.
28798         (main): Store argument in x and fetch it from x.
28799         * tests/test-cosl.c (x): New variable.
28800         (main): Store argument in x and fetch it from x.
28801         * tests/test-expl.c (x): New variable.
28802         (main): Store argument in x and fetch it from x.
28803         * tests/test-logl.c (x): New variable.
28804         (main): Store argument in x and fetch it from x.
28805         * tests/test-sinl.c (x): New variable.
28806         (main): Store argument in x and fetch it from x.
28807         * tests/test-sqrtl.c (x): New variable.
28808         (main): Store argument in x and fetch it from x.
28809         * tests/test-tanl.c (x): New variable.
28810         (main): Store argument in x and fetch it from x.
28811
28812 2010-01-24  Bruno Haible  <bruno@clisp.org>
28813
28814         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28815         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28816         assignments to the initial TESTS_ENVIRONMENT.
28817         * doc/gnulib.texi (Unit test modules): Document it.
28818         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28819         TESTS_ENVIRONMENT.
28820         * modules/btowc-tests (Makefile.am): Likewise.
28821         * modules/c-stack-tests (Makefile.am): Likewise.
28822         * modules/c-strcase-tests (Makefile.am): Likewise.
28823         * modules/copy-file-tests (Makefile.am): Likewise.
28824         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28825         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28826         * modules/mbrtowc-tests (Makefile.am): Likewise.
28827         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28828         * modules/mbscasestr-tests (Makefile.am): Likewise.
28829         * modules/mbschr-tests (Makefile.am): Likewise.
28830         * modules/mbscspn-tests (Makefile.am): Likewise.
28831         * modules/mbsinit-tests (Makefile.am): Likewise.
28832         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28833         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28834         * modules/mbspbrk-tests (Makefile.am): Likewise.
28835         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28836         * modules/mbsrchr-tests (Makefile.am): Likewise.
28837         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28838         * modules/mbsspn-tests (Makefile.am): Likewise.
28839         * modules/mbsstr-tests (Makefile.am): Likewise.
28840         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28841         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28842         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28843         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28844         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28845         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28846         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28847         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28848         * modules/wcrtomb-tests (Makefile.am): Likewise.
28849         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28850         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28851         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28852         assignments from TESTS_ENVIRONMENT.
28853         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28854         augmentation.
28855         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28856         * modules/atexit-tests (Makefile.am): Likewise.
28857         * modules/binary-io-tests (Makefile.am): Likewise.
28858         * modules/closein-tests (Makefile.am): Likewise.
28859         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28860         * modules/exclude-tests (Makefile.am): Likewise.
28861         * modules/fflush-tests (Makefile.am): Likewise.
28862         * modules/fpending-tests (Makefile.am): Likewise.
28863         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28864         * modules/freadahead-tests (Makefile.am): Likewise.
28865         * modules/freadptr-tests (Makefile.am): Likewise.
28866         * modules/freadseek-tests (Makefile.am): Likewise.
28867         * modules/fseek-tests (Makefile.am): Likewise.
28868         * modules/fseeko-tests (Makefile.am): Likewise.
28869         * modules/ftell-tests (Makefile.am): Likewise.
28870         * modules/ftello-tests (Makefile.am): Likewise.
28871         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28872         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28873         * modules/lseek-tests (Makefile.am): Likewise.
28874         * modules/parse-duration-tests (Makefile.am): Likewise.
28875         * modules/perror-tests (Makefile.am): Likewise.
28876         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28877         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28878         * modules/pipe-tests (Makefile.am): Likewise.
28879         * modules/pread-tests (Makefile.am): Likewise.
28880         * modules/printf-posix-tests (Makefile.am): Likewise.
28881         * modules/select-tests (Makefile.am): Likewise.
28882         * modules/sigpipe-tests (Makefile.am): Likewise.
28883         * modules/tsearch-tests (Makefile.am): Likewise.
28884         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28885         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28886         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28887         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28888         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28889         * modules/version-etc-tests (Makefile.am): Likewise.
28890         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28891         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28892         * modules/xalloc-die-tests (Makefile.am): Likewise.
28893         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28894         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28895         * modules/xstrtol-tests (Makefile.am): Likewise.
28896         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28897         * modules/yesno-tests (Makefile.am): Likewise.
28898         Suggested by Jim Meyering.
28899
28900 2010-01-24  Bruno Haible  <bruno@clisp.org>
28901
28902         More documentation.
28903         * doc/gnulib.texi (Writing modules): New chapter.
28904         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28905         the new chapter.
28906
28907 2010-01-24  Jim Meyering  <meyering@redhat.com>
28908
28909         maint.mk: do not prepend "./" after filtering
28910         * top/maint.mk (_prepend_srcdir_prefix): New variable
28911         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28912         "./" when $(srcdir) is ".".
28913
28914         define STREQ(a,b) consistently, removing useless parentheses
28915         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28916         since the only risk is that "a" or "b" contains an unparenthesized
28917         comma, but if either did that, STREQ would have 3 or more arguments.
28918         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28919         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28920         * lib/hash-triple.c (STREQ): Likewise.
28921         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28922         * lib/getugroups.c (STREQ): Likewise.
28923
28924 2010-01-23  Jim Meyering  <meyering@redhat.com>
28925
28926         maint.mk: fix syntax-check in a non-srcdir build directory
28927         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28928         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28929
28930 2010-01-22  Jim Meyering  <meyering@redhat.com>
28931
28932         userspec: add unit tests
28933         * tests/test-userspec.c: New file.
28934         * modules/userspec-tests: Likewise.
28935
28936 2010-01-21  Jim Meyering  <meyering@redhat.com>
28937
28938         maint.mk: handle source file names containing "." robustly
28939         * top/maint.mk (_dot_escaped_srcdir): Define.
28940         (VC_LIST): Use it in LHS of sed substitution.
28941
28942 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28943
28944         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28945         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28946         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28947         from a non-srcdir build.
28948
28949 2010-01-20  Eric Blake  <ebb9@byu.net>
28950
28951         warn-on-use: use instead of link-warning
28952         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28953         * modules/unistd (Depends-on, Makefile.am): Likewise.
28954         * modules/arpa_inet (Depends-on): Replace link-warning with
28955         warn-on-use.
28956         (Makefile.am): Update rules accordingly.
28957         * modules/ctype (Depends-on, Makefile.am): Likewise.
28958         * modules/dirent (Depends-on, Makefile.am): Likewise.
28959         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28960         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28961         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28962         * modules/locale (Depends-on, Makefile.am): Likewise.
28963         * modules/math (Depends-on, Makefile.am): Likewise.
28964         * modules/search (Depends-on, Makefile.am): Likewise.
28965         * modules/signal (Depends-on, Makefile.am): Likewise.
28966         * modules/spawn (Depends-on, Makefile.am): Likewise.
28967         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28968         * modules/string (Depends-on, Makefile.am): Likewise.
28969         * modules/strings (Depends-on, Makefile.am): Likewise.
28970         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28971         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28972         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28973         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28974         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28975         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28976         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28977         * modules/wchar (Depends-on, Makefile.am): Likewise.
28978         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28979         should be poisoned.
28980         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28981         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28982         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28983         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28984         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28985         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28986         * m4/math_h.m4 (gl_MATH_H): Likewise.
28987         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28988         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28989         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28990         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28991         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28992         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28993         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28994         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28995         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28999         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29000         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29001         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29002         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29003         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29004         GL_LINK_WARNING.
29005         * lib/ctype.in.h: Likewise.
29006         * lib/dirent.in.h: Likewise.
29007         * lib/fcntl.in.h: Likewise.
29008         * lib/inttypes.in.h: Likewise.
29009         * lib/langinfo.in.h: Likewise.
29010         * lib/locale.in.h: Likewise.
29011         * lib/math.in.h: Likewise.
29012         * lib/search.in.h: Likewise.
29013         * lib/signal.in.h: Likewise.
29014         * lib/spawn.in.h: Likewise.
29015         * lib/stdio.in.h: Likewise.
29016         * lib/stdlib.in.h: Likewise.
29017         * lib/string.in.h: Likewise.
29018         * lib/strings.in.h: Likewise.
29019         * lib/sys_file.in.h: Likewise.
29020         * lib/sys_ioctl.in.h: Likewise.
29021         * lib/sys_select.in.h: Likewise.
29022         * lib/sys_socket.in.h: Likewise.
29023         * lib/sys_stat.in.h: Likewise.
29024         * lib/sys_times.in.h: Likewise.
29025         * lib/sys_utsname.in.h: Likewise.
29026         * lib/unistd.in.h: Likewise.
29027         * lib/wchar.in.h: Likewise.
29028
29029 2010-01-20  Bruno Haible  <bruno@clisp.org>
29030
29031         Avoid duplicate -lm.
29032         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29033         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29035         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29036         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29037         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29038         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29039         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29040         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29041         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29042         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29043         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29044         Reported by Paolo Bonzini.
29045
29046 2010-01-19  Bruno Haible  <bruno@clisp.org>
29047
29048         langinfo, nl_langinfo: Relicense under LGPLv2+.
29049         * modules/langinfo (License): Change to LGPLv2+.
29050         * modules/nl_langinfo (License): Likewise.
29051         Patch by David Lutterkort <lutter@redhat.com>.
29052
29053 2010-01-19  Bruno Haible  <bruno@clisp.org>
29054
29055         Avoid compilation error with cc on OSF/1 5.1.
29056         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29057         statement, not before.
29058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29059
29060 2010-01-18  Bruno Haible  <bruno@clisp.org>
29061
29062         Avoid a link error due to the __printf__ symbol.
29063         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29064         and 2.6.x.
29065         (__format__, __printf__): Remove definitions.
29066         * lib/argp-fmtstream.h: Likewise.
29067         * lib/argp.h: Likewise.
29068         * lib/error.h: Likewise.
29069         * lib/vasnprintf.h: Likewise.
29070         * lib/xprintf.h: Likewise.
29071         * lib/xvasprintf.h: Likewise.
29072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29073
29074 2010-01-18  Bruno Haible  <bruno@clisp.org>
29075
29076         Tests for module 'tanl'.
29077         * modules/tanl-tests: New file.
29078         * tests/test-tanl.c: New file.
29079
29080         Tests for module 'sqrtl'.
29081         * modules/sqrtl-tests: New file.
29082         * tests/test-sqrtl.c: New file.
29083
29084         Tests for module 'sinl'.
29085         * modules/sinl-tests: New file.
29086         * tests/test-sinl.c: New file.
29087
29088         Tests for module 'logl'.
29089         * modules/logl-tests: New file.
29090         * tests/test-logl.c: New file.
29091
29092         Tests for module 'expl'.
29093         * modules/expl-tests: New file.
29094         * tests/test-expl.c: New file.
29095
29096         Tests for module 'cosl'.
29097         * modules/cosl-tests: New file.
29098         * tests/test-cosl.c: New file.
29099
29100         Tests for module 'atanl'.
29101         * modules/atanl-tests: New file.
29102         * tests/test-atanl.c: New file.
29103
29104         Tests for module 'asinl'.
29105         * modules/asinl-tests: New file.
29106         * tests/test-asinl.c: New file.
29107
29108         Tests for module 'acosl'.
29109         * modules/acosl-tests: New file.
29110         * tests/test-acosl.c: New file.
29111
29112         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29113         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29114         tanl): Use the standard gnulib idiom.
29115         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29116         * lib/sinl.c: Likewise.
29117         * lib/tanl.c: Don't include trigl.c.
29118         (kernel_tanl): Make static.
29119         * lib/sincosl.c: Include trigl.h first.
29120         * lib/trigl.c: Likewise.
29121         * m4/acosl.m4: New file.
29122         * m4/asinl.m4: New file.
29123         * m4/atanl.m4: New file.
29124         * m4/cosl.m4: New file.
29125         * m4/expl.m4: New file.
29126         * m4/logl.m4: New file.
29127         * m4/sinl.m4: New file.
29128         * m4/sqrtl.m4: New file.
29129         * m4/tanl.m4: New file.
29130         * m4/mathl.m4: Remove file.
29131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29132         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29133         Don't initialize GNULIB_MATHL.
29134         * modules/acosl: New file.
29135         * modules/asinl: New file.
29136         * modules/atanl: New file.
29137         * modules/cosl: New file.
29138         * modules/expl: New file.
29139         * modules/logl: New file.
29140         * modules/sinl: New file.
29141         * modules/sqrtl: New file.
29142         * modules/tanl: New file.
29143         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29144         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29145         substitute GNULIB_MATHL.
29146         * modules/mathl: Rewritten.
29147         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29148         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29149         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29150         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29151         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29152         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29153         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29154         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29155         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29156
29157 2010-01-18  Bruno Haible  <bruno@clisp.org>
29158
29159         sqrt: Make gl_FUNC_SQRT requirable.
29160         * m4/sqrt.m4: New file.
29161         * modules/sqrt (Files): Add it.
29162         (configure.ac): Invoke gl_FUNC_SQRT.
29163
29164 2010-01-18  Bruno Haible  <bruno@clisp.org>
29165
29166         New modules for common <math.h> functions.
29167         * m4/mathfunc.m4: New file.
29168         * modules/acos: New file.
29169         * modules/asin: New file.
29170         * modules/atan: New file.
29171         * modules/atan2: New file.
29172         * modules/cbrt: New file.
29173         * modules/copysign: New file.
29174         * modules/cos: New file.
29175         * modules/cosh: New file.
29176         * modules/erf: New file.
29177         * modules/erfc: New file.
29178         * modules/exp: New file.
29179         * modules/fabs: New file.
29180         * modules/fmod: New file.
29181         * modules/hypot: New file.
29182         * modules/j0: New file.
29183         * modules/j1: New file.
29184         * modules/jn: New file.
29185         * modules/ldexp: New file.
29186         * modules/lgamma: New file.
29187         * modules/log: New file.
29188         * modules/log10: New file.
29189         * modules/log1p: New file.
29190         * modules/logb: New file.
29191         * modules/modf: New file.
29192         * modules/nextafter: New file.
29193         * modules/pow: New file.
29194         * modules/remainder: New file.
29195         * modules/rint: New file.
29196         * modules/sin: New file.
29197         * modules/sinh: New file.
29198         * modules/sqrt: New file.
29199         * modules/tan: New file.
29200         * modules/tanh: New file.
29201         * modules/y0: New file.
29202         * modules/y1: New file.
29203         * modules/yn: New file.
29204         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29205         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29206         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29207         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29208         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29209         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29210         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29211         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29212         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29213         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29214         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29215         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29216         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29217         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29218         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29219         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29220         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29221         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29222         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29223         * doc/posix-functions/log.texi: Mention the 'log' module.
29224         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29225         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29226         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29227         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29228         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29229         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29230         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29231         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29232         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29233         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29234         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29235         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29236         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29237         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29238         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29239         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29240
29241 2010-01-18  Jim Meyering  <meyering@redhat.com>
29242
29243         ignore-value: relax license to LGPLv2+
29244         * modules/ignore-value (License): Relax to LGPLv2+.
29245
29246         getdate: don't leak when TZ contains two or more '"'s
29247         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29248         double quote in TZ after the first one.
29249
29250         readtokens: do not leak internal token_lengths buffer
29251         * lib/readtokens.c (readtokens): Free the local, lengths,
29252         when the supplied "token_lengths" parameter is NULL.
29253
29254 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29255
29256         Fix a couple of missing LIBTHREAD link failures on AIX.
29257         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29258         $(LIBTHREAD).
29259         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29260
29261         Link test-poll against INET_PTON_LIB.
29262         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29263         for inet_pton on Solaris 10.
29264
29265 2010-01-17  Bruno Haible  <bruno@clisp.org>
29266
29267         unistdio/*-sprintf: Fix typo in module description.
29268         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29269         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29270         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29271         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29272         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29273         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29274         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29275         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29276
29277 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29278
29279         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29280         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29281         variables in shell case patterns, for AIX and HP-UX ksh.
29282
29283         Split large sed scripts, for HP-UX sed.
29284         * modules/stdio: Split sed scripts around 50 sed commands,
29285         to avoid HP-UX limit of 99 commands, in the near future.
29286         * modules/string: Likewise.
29287         * modules/unistd: Likewise.
29288
29289         gnulib-tool: avoid writing in the current directory.
29290         * gnulib-tool (func_emit_lib_Makefile_am)
29291         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29292         not in the current directory, so concurrent gnulib-tool
29293         instances do not interfere.
29294
29295 2010-01-16  Jim Meyering  <meyering@redhat.com>
29296
29297         doc: update users.txt
29298         * users.txt: Add grep.
29299         (diffutils, gzip): Update URLs.
29300
29301 2010-01-12  Bruno Haible  <bruno@clisp.org>
29302
29303         posix_spawn: Avoid test failure on Cygwin.
29304         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29305         characters.
29306         Reported by Simon Josefsson.
29307
29308 2010-01-12  Bruno Haible  <bruno@clisp.org>
29309
29310         * tests/test-cond.c (main): When skipping the test, show the reason.
29311
29312 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29313
29314         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29315
29316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29317
29318         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29319         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29320
29321 2010-01-12  Eric Blake  <ebb9@byu.net>
29322
29323         build: guarantee AS_VAR_IF
29324         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29325         (gl_AS_VAR_IF): Move...
29326         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29327         Reported by Simon Josefsson.
29328
29329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29330
29331         * lib/stdio.in.h: Fix typo.
29332
29333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29334
29335         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29336         libgpg-error.
29337
29338 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29339
29340         * tests/test-xalloc-die.sh: Use $EXEEXT.
29341
29342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29343             Bruno Haible  <bruno@clisp.org>
29344
29345         getlogin, getlogin_r: Avoid test failure.
29346         * tests/test-getlogin.c: Include <stdio.h>.
29347         (main): Skip the test when the function fails because stdin is not a
29348         tty.
29349         * tests/test-getlogin_r.c: Include <stdio.h>.
29350         (main): Skip the test when the function fails because stdin is not a
29351         tty.
29352
29353 2010-01-11  Eric Blake  <ebb9@byu.net>
29354
29355         tests: avoid more large file warnings
29356         * tests/test-fflush.c: Avoid warning about ftell use.
29357         * tests/test-fseek.c: Avoid warning about fseek use.
29358
29359 2010-01-10  Bruno Haible  <bruno@clisp.org>
29360
29361         nproc: Work better on Linux when /proc and /sys are not mounted.
29362         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29363         as lower bound when, on glibc/Linux systems,
29364         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29365         Suggested by Pádraig Brady <P@draigbrady.com>.
29366         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29367
29368         nproc: Refactor.
29369         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29370         extracted from num_processors.
29371         (num_processors): Call it.
29372
29373 2010-01-11  Jim Meyering  <meyering@redhat.com>
29374
29375         utimecmp: avoid new warning from upcoming gcc-4.5.0
29376         * lib/utimecmp.c (BILLION): Define using #define rather than an
29377         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29378
29379 2010-01-11  Eric Blake  <ebb9@byu.net>
29380
29381         math: add portability warnings for classification macros
29382         * modules/math (Depends-on): Add warn-on-use.
29383         (Makefile.am): Provide new substitutions.
29384         * m4/math_h.m4 (gl_MATH_H): Require inline.
29385         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29386         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29387         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29388         implement warnings.
29389
29390         unistd: warn on use of environ without module
29391         * modules/unistd (Depends-on): Add warn-on-use.
29392         (Makefile.am): Provide new substitutions.
29393         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29394         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29395
29396         stdio: warn on suspicious uses
29397         * modules/stdio (Depends-on): Add warn-on-use.
29398         (Makefile.am): Provide new substitutions.
29399         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29400         fseeko.
29401         * lib/stdio.in.h (gets): Always warn on use.
29402         (fseek, ftell): Adjust when warnings are issued, and honor
29403         _GL_NO_LARGE_FILES as a way to silence the warning.
29404         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29405         any warning about large file offsets.
29406         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29407         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29408         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29409         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29410         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29411         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29412         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29413         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29414
29415         warn-on-use: new module
29416         * modules/warn-on-use: New file.
29417         * build-aux/warn-on-use.h: Likewise.
29418         * m4/warn-on-use.m4: Likewise.
29419         * MODULES.html.sh (Support for building): Mention it.
29420
29421 2010-01-10  Bruno Haible  <bruno@clisp.org>
29422
29423         Tests for module 'unistr/u32-strdup'.
29424         * modules/unistr/u32-strdup-tests: New file.
29425         * tests/unistr/test-u32-strdup.c: New file.
29426
29427         Tests for module 'unistr/u16-strdup'.
29428         * modules/unistr/u16-strdup-tests: New file.
29429         * tests/unistr/test-u16-strdup.c: New file.
29430
29431         Tests for module 'unistr/u8-strdup'.
29432         * modules/unistr/u8-strdup-tests: New file.
29433         * tests/unistr/test-u8-strdup.c: New file.
29434         * tests/unistr/test-strdup.h: New file.
29435
29436         Tests for module 'unistr/u32-strncmp'.
29437         * modules/unistr/u32-strncmp-tests: New file.
29438         * tests/unistr/test-u32-strncmp.c: New file.
29439
29440         Tests for module 'unistr/u16-strncmp'.
29441         * modules/unistr/u16-strncmp-tests: New file.
29442         * tests/unistr/test-u16-strncmp.c: New file.
29443
29444         Tests for module 'unistr/u8-strncmp'.
29445         * modules/unistr/u8-strncmp-tests: New file.
29446         * tests/unistr/test-u8-strncmp.c: New file.
29447         * tests/unistr/test-strncmp.h: New file.
29448
29449         Tests for module 'unistr/u32-strcoll'.
29450         * modules/unistr/u32-strcoll-tests: New file.
29451         * tests/unistr/test-u32-strcoll.c: New file.
29452
29453         Tests for module 'unistr/u16-strcoll'.
29454         * modules/unistr/u16-strcoll-tests: New file.
29455         * tests/unistr/test-u16-strcoll.c: New file.
29456
29457         Tests for module 'unistr/u8-strcoll'.
29458         * modules/unistr/u8-strcoll-tests: New file.
29459         * tests/unistr/test-u8-strcoll.c: New file.
29460
29461         Tests for module 'unistr/u32-strcmp'.
29462         * modules/unistr/u32-strcmp-tests: New file.
29463         * tests/unistr/test-u32-strcmp.c: New file.
29464         * tests/unistr/test-u32-strcmp.h: New file.
29465
29466         Tests for module 'unistr/u16-strcmp'.
29467         * modules/unistr/u16-strcmp-tests: New file.
29468         * tests/unistr/test-u16-strcmp.c: New file.
29469         * tests/unistr/test-u16-strcmp.h: New file.
29470
29471         Tests for module 'unistr/u8-strcmp'.
29472         * modules/unistr/u8-strcmp-tests: New file.
29473         * tests/unistr/test-u8-strcmp.c: New file.
29474         * tests/unistr/test-u8-strcmp.h: New file.
29475         * tests/unistr/test-strcmp.h: New file.
29476
29477         Tests for module 'unistr/u32-strncat'.
29478         * modules/unistr/u32-strncat-tests: New file.
29479         * tests/unistr/test-u32-strncat.c: New file.
29480
29481         Tests for module 'unistr/u16-strncat'.
29482         * modules/unistr/u16-strncat-tests: New file.
29483         * tests/unistr/test-u16-strncat.c: New file.
29484
29485         Tests for module 'unistr/u8-strncat'.
29486         * modules/unistr/u8-strncat-tests: New file.
29487         * tests/unistr/test-u8-strncat.c: New file.
29488         * tests/unistr/test-strncat.h: New file.
29489
29490         Tests for module 'unistr/u32-strcat'.
29491         * modules/unistr/u32-strcat-tests: New file.
29492         * tests/unistr/test-u32-strcat.c: New file.
29493
29494         Tests for module 'unistr/u16-strcat'.
29495         * modules/unistr/u16-strcat-tests: New file.
29496         * tests/unistr/test-u16-strcat.c: New file.
29497
29498         Tests for module 'unistr/u8-strcat'.
29499         * modules/unistr/u8-strcat-tests: New file.
29500         * tests/unistr/test-u8-strcat.c: New file.
29501         * tests/unistr/test-strcat.h: New file.
29502
29503         Tests for module 'unistr/u32-stpncpy'.
29504         * modules/unistr/u32-stpncpy-tests: New file.
29505         * tests/unistr/test-u32-stpncpy.c: New file.
29506
29507         Tests for module 'unistr/u16-stpncpy'.
29508         * modules/unistr/u16-stpncpy-tests: New file.
29509         * tests/unistr/test-u16-stpncpy.c: New file.
29510
29511         Tests for module 'unistr/u8-stpncpy'.
29512         * modules/unistr/u8-stpncpy-tests: New file.
29513         * tests/unistr/test-u8-stpncpy.c: New file.
29514         * tests/unistr/test-stpncpy.h: New file.
29515
29516         Tests for module 'unistr/u32-strncpy'.
29517         * modules/unistr/u32-strncpy-tests: New file.
29518         * tests/unistr/test-u32-strncpy.c: New file.
29519
29520         Tests for module 'unistr/u16-strncpy'.
29521         * modules/unistr/u16-strncpy-tests: New file.
29522         * tests/unistr/test-u16-strncpy.c: New file.
29523
29524         Tests for module 'unistr/u8-strncpy'.
29525         * modules/unistr/u8-strncpy-tests: New file.
29526         * tests/unistr/test-u8-strncpy.c: New file.
29527         * tests/unistr/test-strncpy.h: New file.
29528
29529         Tests for module 'unistr/u32-stpcpy'.
29530         * modules/unistr/u32-stpcpy-tests: New file.
29531         * tests/unistr/test-u32-stpcpy.c: New file.
29532
29533         Tests for module 'unistr/u16-stpcpy'.
29534         * modules/unistr/u16-stpcpy-tests: New file.
29535         * tests/unistr/test-u16-stpcpy.c: New file.
29536
29537         Tests for module 'unistr/u8-stpcpy'.
29538         * modules/unistr/u8-stpcpy-tests: New file.
29539         * tests/unistr/test-u8-stpcpy.c: New file.
29540         * tests/unistr/test-stpcpy.h: New file.
29541
29542         Tests for module 'unistr/u32-strcpy'.
29543         * modules/unistr/u32-strcpy-tests: New file.
29544         * tests/unistr/test-u32-strcpy.c: New file.
29545
29546         Tests for module 'unistr/u16-strcpy'.
29547         * modules/unistr/u16-strcpy-tests: New file.
29548         * tests/unistr/test-u16-strcpy.c: New file.
29549
29550         Tests for module 'unistr/u8-strcpy'.
29551         * modules/unistr/u8-strcpy-tests: New file.
29552         * tests/unistr/test-u8-strcpy.c: New file.
29553         * tests/unistr/test-strcpy.h: New file.
29554
29555         Tests for module 'unistr/u32-strnlen'.
29556         * modules/unistr/u32-strnlen-tests: New file.
29557         * tests/unistr/test-u32-strnlen.c: New file.
29558
29559         Tests for module 'unistr/u16-strnlen'.
29560         * modules/unistr/u16-strnlen-tests: New file.
29561         * tests/unistr/test-u16-strnlen.c: New file.
29562
29563         Tests for module 'unistr/u8-strnlen'.
29564         * modules/unistr/u8-strnlen-tests: New file.
29565         * tests/unistr/test-u8-strnlen.c: New file.
29566         * tests/unistr/test-strnlen.h: New file.
29567
29568         Tests for module 'unistr/u32-strlen'.
29569         * modules/unistr/u32-strlen-tests: New file.
29570         * tests/unistr/test-u32-strlen.c: New file.
29571
29572         Tests for module 'unistr/u16-strlen'.
29573         * modules/unistr/u16-strlen-tests: New file.
29574         * tests/unistr/test-u16-strlen.c: New file.
29575
29576         Tests for module 'unistr/u8-strlen'.
29577         * modules/unistr/u8-strlen-tests: New file.
29578         * tests/unistr/test-u8-strlen.c: New file.
29579
29580         Tests for module 'unistr/u32-prev'.
29581         * modules/unistr/u32-prev-tests: New file.
29582         * tests/unistr/test-u32-prev.c: New file.
29583
29584         Tests for module 'unistr/u16-prev'.
29585         * modules/unistr/u16-prev-tests: New file.
29586         * tests/unistr/test-u16-prev.c: New file.
29587
29588         Tests for module 'unistr/u8-prev'.
29589         * modules/unistr/u8-prev-tests: New file.
29590         * tests/unistr/test-u8-prev.c: New file.
29591
29592         Tests for module 'unistr/u32-next'.
29593         * modules/unistr/u32-next-tests: New file.
29594         * tests/unistr/test-u32-next.c: New file.
29595
29596         Tests for module 'unistr/u16-next'.
29597         * modules/unistr/u16-next-tests: New file.
29598         * tests/unistr/test-u16-next.c: New file.
29599
29600         Tests for module 'unistr/u8-next'.
29601         * modules/unistr/u8-next-tests: New file.
29602         * tests/unistr/test-u8-next.c: New file.
29603
29604         Tests for module 'unistr/u32-strmbtouc'.
29605         * modules/unistr/u32-strmbtouc-tests: New file.
29606         * tests/unistr/test-u32-strmbtouc.c: New file.
29607
29608         Tests for module 'unistr/u16-strmbtouc'.
29609         * modules/unistr/u16-strmbtouc-tests: New file.
29610         * tests/unistr/test-u16-strmbtouc.c: New file.
29611
29612         Tests for module 'unistr/u8-strmbtouc'.
29613         * modules/unistr/u8-strmbtouc-tests: New file.
29614         * tests/unistr/test-u8-strmbtouc.c: New file.
29615
29616         Tests for module 'unistr/u32-strmblen'.
29617         * modules/unistr/u32-strmblen-tests: New file.
29618         * tests/unistr/test-u32-strmblen.c: New file.
29619
29620         Tests for module 'unistr/u16-strmblen'.
29621         * modules/unistr/u16-strmblen-tests: New file.
29622         * tests/unistr/test-u16-strmblen.c: New file.
29623
29624         Tests for module 'unistr/u8-strmblen'.
29625         * modules/unistr/u8-strmblen-tests: New file.
29626         * tests/unistr/test-u8-strmblen.c: New file.
29627
29628         Tests for module 'unistr/u32-cpy-alloc'.
29629         * modules/unistr/u32-cpy-alloc-tests: New file.
29630         * tests/unistr/test-u32-cpy-alloc.c: New file.
29631
29632         Tests for module 'unistr/u16-cpy-alloc'.
29633         * modules/unistr/u16-cpy-alloc-tests: New file.
29634         * tests/unistr/test-u16-cpy-alloc.c: New file.
29635
29636         Tests for module 'unistr/u8-cpy-alloc'.
29637         * modules/unistr/u8-cpy-alloc-tests: New file.
29638         * tests/unistr/test-u8-cpy-alloc.c: New file.
29639         * tests/unistr/test-cpy-alloc.h: New file.
29640
29641         Tests for module 'unistr/u32-mbsnlen'.
29642         * modules/unistr/u32-mbsnlen-tests: New file.
29643         * tests/unistr/test-u32-mbsnlen.c: New file.
29644
29645         Tests for module 'unistr/u16-mbsnlen'.
29646         * modules/unistr/u16-mbsnlen-tests: New file.
29647         * tests/unistr/test-u16-mbsnlen.c: New file.
29648
29649         Tests for module 'unistr/u8-mbsnlen'.
29650         * modules/unistr/u8-mbsnlen-tests: New file.
29651         * tests/unistr/test-u8-mbsnlen.c: New file.
29652
29653         Tests for module 'unistr/u32-chr'.
29654         * modules/unistr/u32-chr-tests: New file.
29655         * tests/unistr/test-u32-chr.c: New file.
29656
29657         Tests for module 'unistr/u16-chr'.
29658         * modules/unistr/u16-chr-tests: New file.
29659         * tests/unistr/test-u16-chr.c: New file.
29660
29661         Tests for module 'unistr/u8-chr'.
29662         * modules/unistr/u8-chr-tests: New file.
29663         * tests/unistr/test-u8-chr.c: New file.
29664         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29665
29666         Tests for module 'unistr/u32-cmp2'.
29667         * modules/unistr/u32-cmp2-tests: New file.
29668         * tests/unistr/test-u32-cmp2.c: New file.
29669
29670         Tests for module 'unistr/u16-cmp2'.
29671         * modules/unistr/u16-cmp2-tests: New file.
29672         * tests/unistr/test-u16-cmp2.c: New file.
29673
29674         Tests for module 'unistr/u8-cmp2'.
29675         * modules/unistr/u8-cmp2-tests: New file.
29676         * tests/unistr/test-u8-cmp2.c: New file.
29677         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29678
29679         Tests for module 'unistr/u32-cmp'.
29680         * modules/unistr/u32-cmp-tests: New file.
29681         * tests/unistr/test-u32-cmp.c: New file.
29682
29683         Tests for module 'unistr/u16-cmp'.
29684         * modules/unistr/u16-cmp-tests: New file.
29685         * tests/unistr/test-u16-cmp.c: New file.
29686
29687         Tests for module 'unistr/u8-cmp'.
29688         * modules/unistr/u8-cmp-tests: New file.
29689         * tests/unistr/test-u8-cmp.c: New file.
29690         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29691
29692         Tests for module 'unistr/u32-set'.
29693         * modules/unistr/u32-set-tests: New file.
29694         * tests/unistr/test-u32-set.c: New file.
29695
29696         Tests for module 'unistr/u16-set'.
29697         * modules/unistr/u16-set-tests: New file.
29698         * tests/unistr/test-u16-set.c: New file.
29699
29700         Tests for module 'unistr/u8-set'.
29701         * modules/unistr/u8-set-tests: New file.
29702         * tests/unistr/test-u8-set.c: New file.
29703         * tests/unistr/test-set.h: New file.
29704
29705         Tests for module 'unistr/u32-move'.
29706         * modules/unistr/u32-move-tests: New file.
29707         * tests/unistr/test-u32-move.c: New file.
29708
29709         Tests for module 'unistr/u16-move'.
29710         * modules/unistr/u16-move-tests: New file.
29711         * tests/unistr/test-u16-move.c: New file.
29712
29713         Tests for module 'unistr/u8-move'.
29714         * modules/unistr/u8-move-tests: New file.
29715         * tests/unistr/test-u8-move.c: New file.
29716         * tests/unistr/test-move.h: New file.
29717
29718         Tests for module 'unistr/u32-cpy'.
29719         * modules/unistr/u32-cpy-tests: New file.
29720         * tests/unistr/test-u32-cpy.c: New file.
29721
29722         Tests for module 'unistr/u16-cpy'.
29723         * modules/unistr/u16-cpy-tests: New file.
29724         * tests/unistr/test-u16-cpy.c: New file.
29725
29726         Tests for module 'unistr/u8-cpy'.
29727         * modules/unistr/u8-cpy-tests: New file.
29728         * tests/unistr/test-u8-cpy.c: New file.
29729         * tests/unistr/test-cpy.h: New file.
29730
29731 2010-01-09  Bruno Haible  <bruno@clisp.org>
29732
29733         Tests for module 'unistr/u32-uctomb'.
29734         * modules/unistr/u32-uctomb-tests: New file.
29735         * tests/unistr/test-u32-uctomb.c: New file.
29736
29737         Tests for module 'unistr/u16-uctomb'.
29738         * modules/unistr/u16-uctomb-tests: New file.
29739         * tests/unistr/test-u16-uctomb.c: New file.
29740
29741         Tests for module 'unistr/u8-uctomb'.
29742         * modules/unistr/u8-uctomb-tests: New file.
29743         * tests/unistr/test-u8-uctomb.c: New file.
29744
29745         Tests for module 'unistr/u32-mbtoucr'.
29746         * modules/unistr/u32-mbtoucr-tests: New file.
29747         * tests/unistr/test-u32-mbtoucr.c: New file.
29748
29749         Tests for module 'unistr/u16-mbtoucr'.
29750         * modules/unistr/u16-mbtoucr-tests: New file.
29751         * tests/unistr/test-u16-mbtoucr.c: New file.
29752
29753         Tests for module 'unistr/u8-mbtoucr'.
29754         * modules/unistr/u8-mbtoucr-tests: New file.
29755         * tests/unistr/test-u8-mbtoucr.c: New file.
29756
29757         Tests for module 'unistr/u32-mbtouc'.
29758         * modules/unistr/u32-mbtouc-tests: New file.
29759         * tests/unistr/test-u32-mbtouc.c: New file.
29760
29761         Tests for module 'unistr/u16-mbtouc'.
29762         * modules/unistr/u16-mbtouc-tests: New file.
29763         * tests/unistr/test-u16-mbtouc.c: New file.
29764
29765         Tests for module 'unistr/u8-mbtouc'.
29766         * modules/unistr/u8-mbtouc-tests: New file.
29767         * tests/unistr/test-u8-mbtouc.c: New file.
29768
29769         Tests for module 'unistr/u32-mbtouc-unsafe'.
29770         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29771         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29772         * tests/unistr/test-u32-mbtouc.h: New file.
29773
29774         Tests for module 'unistr/u16-mbtouc-unsafe'.
29775         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29776         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29777         * tests/unistr/test-u16-mbtouc.h: New file.
29778
29779         Tests for module 'unistr/u8-mbtouc-unsafe'.
29780         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29781         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29782         * tests/unistr/test-u8-mbtouc.h: New file.
29783
29784         Tests for module 'unistr/u32-mblen'.
29785         * modules/unistr/u32-mblen-tests: New file.
29786         * tests/unistr/test-u32-mblen.c: New file.
29787
29788         Tests for module 'unistr/u16-mblen'.
29789         * modules/unistr/u16-mblen-tests: New file.
29790         * tests/unistr/test-u16-mblen.c: New file.
29791
29792         Tests for module 'unistr/u8-mblen'.
29793         * modules/unistr/u8-mblen-tests: New file.
29794         * tests/unistr/test-u8-mblen.c: New file.
29795
29796         Tests for module 'unistr/u32-to-u16'.
29797         * modules/unistr/u32-to-u16-tests: New file.
29798         * tests/unistr/test-u32-to-u16.c: New file.
29799
29800         Tests for module 'unistr/u32-to-u8'.
29801         * modules/unistr/u32-to-u8-tests: New file.
29802         * tests/unistr/test-u32-to-u8.c: New file.
29803
29804         Tests for module 'unistr/u16-to-u32'.
29805         * modules/unistr/u16-to-u32-tests: New file.
29806         * tests/unistr/test-u16-to-u32.c: New file.
29807
29808         Tests for module 'unistr/u16-to-u8'.
29809         * modules/unistr/u16-to-u8-tests: New file.
29810         * tests/unistr/test-u16-to-u8.c: New file.
29811
29812         Tests for module 'unistr/u8-to-u32'.
29813         * modules/unistr/u8-to-u32-tests: New file.
29814         * tests/unistr/test-u8-to-u32.c: New file.
29815
29816         Tests for module 'unistr/u8-to-u16'.
29817         * modules/unistr/u8-to-u16-tests: New file.
29818         * tests/unistr/test-u8-to-u16.c: New file.
29819
29820         Tests for module 'unistr/u32-check'.
29821         * modules/unistr/u32-check-tests: New file.
29822         * tests/unistr/test-u32-check.c: New file.
29823
29824         Tests for module 'unistr/u16-check'.
29825         * modules/unistr/u16-check-tests: New file.
29826         * tests/unistr/test-u16-check.c: New file.
29827
29828         Tests for module 'unistr/u8-check'.
29829         * modules/unistr/u8-check-tests: New file.
29830         * tests/unistr/test-u8-check.c: New file.
29831
29832         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29833         (category_equals): New function.
29834         (main): Add more tests.
29835         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29836
29837         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29838
29839 2010-01-10  Bruno Haible  <bruno@clisp.org>
29840
29841         unistr/u*-strcoll: Try harder to distinguish different strings.
29842         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29843         compare s1 and s2 to see if they are different.
29844
29845 2010-01-10  Bruno Haible  <bruno@clisp.org>
29846
29847         unistr/u*-stpncpy: Fix the return value.
29848         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29849         description of the return value consistent with stpncpy in glibc.
29850         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29851         written non-NUL unit.
29852
29853 2010-01-10  Bruno Haible  <bruno@clisp.org>
29854
29855         unistr/u*-next: Add missing dependencies.
29856         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29857         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29858         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29859
29860 2010-01-10  Bruno Haible  <bruno@clisp.org>
29861
29862         unistr/u8-mbsnlen: Fix return value for incomplete character.
29863         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29864         u8_mblen.
29865         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29866         Remove unistr/u8-mblen.
29867         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29868         u16_mblen.
29869         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29870         Remove unistr/u16-mblen.
29871
29872 2010-01-10  Bruno Haible  <bruno@clisp.org>
29873
29874         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29875         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29876         Reported by Brian Gough <bjg@gnu.org> and
29877         Chris Clayton <chris2553@googlemail.com> via
29878         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29879
29880 2010-01-09  Bruno Haible  <bruno@clisp.org>
29881
29882         unistr/u16-to-u32: Reject invalid input.
29883         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29884         u16_mbtouc.
29885         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29886         Remove unistr/u16-mbtouc.
29887
29888         unistr/u16-to-u8: Reject invalid input.
29889         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29890         u16_mbtouc.
29891         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29892         Remove unistr/u16-mbtouc.
29893
29894         unistr/u8-to-u32: Reject invalid input.
29895         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29896         u8_mbtouc.
29897         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29898         Remove unistr/u8-mbtouc.
29899
29900         unistr/u8-to-u16: Reject invalid input.
29901         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29902         u8_mbtouc.
29903         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29904         Remove unistr/u8-mbtouc.
29905
29906 2010-01-09  Bruno Haible  <bruno@clisp.org>
29907
29908         Tests for module 'getlogin'.
29909         * modules/getlogin-tests: New file.
29910         * tests/test-getlogin.c: New file.
29911
29912         New module 'getlogin'.
29913         * lib/unistd.in.h (getlogin): New declaration.
29914         * lib/getlogin.c: New file.
29915         * m4/getlogin.m4: New file.
29916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29917         HAVE_GETLOGIN.
29918         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29919         HAVE_GETLOGIN.
29920         * modules/getlogin: New file.
29921         * doc/posix-functions/getlogin.texi: Mention the new module.
29922         Reported by John W. Eaton <jwe@gnu.org>.
29923
29924 2010-01-09  Bruno Haible  <bruno@clisp.org>
29925
29926         getlogin_r: Support for native Windows.
29927         * lib/getlogin_r.c: Include <windows.h>
29928         (getlogin_r): Implement for native Windows.
29929         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29930         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29931         via John W. Eaton <jwe@gnu.org>.
29932
29933 2010-01-09  Bruno Haible  <bruno@clisp.org>
29934
29935         getlogin_r: Small fixes.
29936         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29937         succeeds.
29938         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29939         before testing whether getlogin_r is declared. No need to set
29940         HAVE_DECL_GETLOGIN_R to 1.
29941         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29942
29943 2010-01-09  Bruno Haible  <bruno@clisp.org>
29944
29945         * lib/unistd.in.h (getlogin_r): Add comment.
29946
29947 2010-01-09  Bruno Haible  <bruno@clisp.org>
29948
29949         Tests for module 'getlogin_r'.
29950         * modules/getlogin_r-tests: New file.
29951         * tests/test-getlogin_r.c: New file.
29952
29953 2010-01-09  Jim Meyering  <meyering@redhat.com>
29954
29955         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29956         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29957         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29958
29959 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29960
29961         * lib/dup2.c (rpl_dup2): Improve comment.
29962
29963 2010-01-08  Eric Blake  <ebb9@byu.net>
29964
29965         maint.mk: allow packages to add makefile @@ exceptions
29966         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29967         (sc_makefile_check): Rename...
29968         (sc_makefile_at_at_check): ...to this, and use hook.
29969
29970         dup2: work around mingw bug
29971         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29972         Reported by Simon Josefsson.
29973
29974 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29975
29976         glob: Fix C++ compilation.
29977         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29978         C++.
29979
29980 2010-01-07  Bruno Haible  <bruno@clisp.org>
29981
29982         Fix indentation of wctype.in.h, broken since 2007-01-06.
29983         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29984
29985 2010-01-07  Bruno Haible  <bruno@clisp.org>
29986
29987         mbslen: Avoid collision with system function.
29988         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29989         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29990         * m4/mbslen.m4: New file.
29991         * modules/mbslen (Files): Add it.
29992         (configure.ac): Invoke gl_MBSLEN.
29993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29994         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29995         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29996         via Ian Beckwith <ianb@erislabs.net>.
29997
29998 2010-01-07  Bruno Haible  <bruno@clisp.org>
29999
30000         dirent: Document the last fix.
30001         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30002
30003 2010-01-07  Bruno Haible  <bruno@clisp.org>
30004
30005         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30006         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30007         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30008         va_list are defined.
30009         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30010         Reported by Eric Blake.
30011
30012 2010-01-07  Bruno Haible  <bruno@clisp.org>
30013
30014         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30015         * modules/xlist (Depends-on): Add 'list',
30016         * modules/xoset (Depends-on): Add 'oset'.
30017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30018
30019 2010-01-07  Bruno Haible  <bruno@clisp.org>
30020
30021         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30022         * doc/posix-functions/strncasecmp.texi: Likewise.
30023
30024 2010-01-07  Bruno Haible  <bruno@clisp.org>
30025
30026         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30027
30028 2010-01-07  John W. Eaton  <jwe@octave.org>
30029
30030         wctype: allow C++ use
30031         * lib/wctype.in.h: Add extern "C" block for C++.
30032
30033 2010-01-06  Eric Blake  <ebb9@byu.net>
30034
30035         maint.mk: detect incorrect GFDL usage
30036         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30037
30038 2010-01-06  Jim Meyering  <meyering@redhat.com>
30039         and Eric Blake  <ebb9@byu.net>
30040
30041         maint.mk: ignore multi-line copyright in NEWS
30042         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30043
30044 2010-01-06  Eric Blake  <ebb9@byu.net>
30045
30046         select: add missing dependency
30047         * modules/select-tests (Depends-on): Move sockets dependency...
30048         * modules/select (Depends-on): ...here.
30049         Reported by Ian Beckwith.
30050
30051         doc: regenerate INSTALL
30052         * doc/INSTALL: Reflect recent autoconf update.
30053         * doc/INSTALL.ISO: Likewise.
30054         * doc/INSTALL.UTF-8: Likewise.
30055
30056         pread: fix compilation on glibc
30057         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30058         Reported by Ralf Wildenhues.
30059
30060         dirent: fix test failure
30061         * lib/dirent.in.h (includes): Guarantee ino_t.
30062         Reported by Ralf Wildenhues.
30063
30064 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30065
30066         linkat, renameat: avoid bad free
30067         * lib/at-func2.c (at_func2): Fix typo.
30068         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30069
30070 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30071
30072         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30073         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30074         to avoid failure of symlink test later.
30075
30076 2010-01-06  Eric Blake  <ebb9@byu.net>
30077
30078         stdio, unistd: guarantee ssize_t
30079         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30080         2008 are exposed when needed.
30081         * lib/stdio.in.h (includes): Likewise.
30082         Reported by Ralf Wildenhues.
30083
30084 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30085
30086         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30087         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30088         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30089
30090 2010-01-06  Jim Meyering  <meyering@redhat.com>
30091
30092         readtokens: this module *does* require xalloc.h
30093         It uses only functions that were omitted by the old syntax-check rule.
30094         * lib/readtokens.c: Include "xalloc.h" once again.
30095         * modules/readtokens (Depends-on): Add xalloc.
30096         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30097
30098 2010-01-05  Eric Blake  <ebb9@byu.net>
30099
30100         maint: support 'make announcement' from a VPATH build
30101         * top/maint.mk (announcement): Look for correct NEWS file.
30102
30103 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30104
30105         utimens (fdutimens): ignore a negative FD, per contract
30106         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30107         when we have a valid file descriptor.  Otherwise, using a brand
30108         new glibc (with just-patched futimens that now fails with EBADF)
30109         would cause this function to fail with ENOSYS.
30110         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30111         See also http://bugzilla.redhat.com/552320.
30112
30113 2010-01-05  Eric Blake  <ebb9@byu.net>
30114
30115         strcase: document what it provides
30116         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30117         gnulib module.
30118         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30119         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30120
30121 2010-01-05  Jim Meyering  <meyering@redhat.com>
30122
30123         maint: remove useless inclusions of "xalloc.h"
30124         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30125         * lib/readtokens.c: Likewise.
30126         * lib/same.c: Likewise.
30127         * modules/getloadavg (Depends-on): Remove xalloc.
30128         * modules/readtokens: Likewise.
30129         * modules/same: Likewise.
30130
30131         maint.mk: include 4 more function names in alloca.h-checking regexp
30132         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30133         regexp.  Before, we would give a false-positive (saying alloca.h
30134         is included unnecessarily) when the only uses involved omitted symbols.
30135
30136         xalloc.h: use consistent formatting
30137         * lib/xalloc.h: Move declarations to start in the first column.
30138
30139 2010-01-05  Eric Blake  <ebb9@byu.net>
30140
30141         mkdir: avoid xalloc
30142         * lib/mkdir.c (includes): Drop unused header.
30143         Reported by John W. Eaton.
30144
30145 2010-01-04  Jim Meyering  <meyering@redhat.com>
30146
30147         nl_langinfo: avoid configure-time syntax error
30148         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30149         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30150         the empty string.  Don't let that provoke a shell syntax error.
30151
30152         regcomp, regexec, fnmatch: avoid array bounds read error
30153         * lib/regcomp.c (build_equiv_class): From glibc:
30154         Use only the low 24 bits of a findidx return value as an index
30155         into the weights array.  Patch by Ulrich Drepper:
30156         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30157         * lib/regexec.c (check_node_accept_bytes): Likewise.
30158         * lib/fnmatch_loop.c (FCT): Likewise.
30159
30160         regcomp: skip collseq lookup when there are no rules
30161         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30162         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30163
30164         regcomp: recognize ill-formed { } expressions
30165         * lib/regcomp.c (parse_dup_op): From glibc:
30166         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30167
30168         regcomp: fix typo in comment
30169         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30170         s/satisfy/satisfies/.
30171
30172         regcomp: sync from glibc: remove dead store
30173         * lib/regcomp.c (duplicate_node_closure): Remove useless
30174         search_duplicated_node call and dead store.
30175
30176         regcomp: sync from glibc; always use nl_langinfo
30177         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30178         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30179         * modules/regex (Depends-on): Add nl_langinfo.
30180
30181 2010-01-04  Eric Blake  <ebb9@byu.net>
30182
30183         fdopendir: fix configure test
30184         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30185
30186 2010-01-01  Bruno Haible  <bruno@clisp.org>
30187
30188         wchar: Remove unused configure check.
30189         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30190
30191 2010-01-01  Eric Blake  <ebb9@byu.net>
30192
30193         headers: make check of system header explicit
30194         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30195         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30196         ourselves.
30197         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30200         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30201         internals.
30202         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30203         missing.
30204         Suggested by Bruno Haible.
30205
30206 2010-01-01  Jim Meyering  <meyering@redhat.com>
30207
30208         ChangeLog: tweak to eliminate unnecessary copyright line
30209         * ChangeLog: Remove a copyright line that was mistakenly updated
30210         by today's update-copyright run.  Reported by Eric Blake.
30211
30212         test-update-copyright: don't let envvar setting cause test failure
30213         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30214
30215 2010-01-01  Bruno Haible  <bruno@clisp.org>
30216
30217         localename: Avoid gcc warning.
30218         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30219         function if it is not used.
30220
30221 2010-01-01  Jim Meyering  <meyering@redhat.com>
30222
30223         update nearly all FSF copyright year lists to include 2010
30224         Use the same procedure as for 2009, outlined in
30225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30226
30227         version-etc: set COPYRIGHT_YEAR to 2010
30228         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30229
30230 2009-12-31  Eric Blake  <ebb9@byu.net>
30231
30232         doc: correct availability of cygwin 1.5.x getopt
30233         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30234         variables.
30235         * doc/posix-functions/opterr.texi (opterr): Likewise.
30236         * doc/posix-functions/optind.texi (optind): Likewise.
30237         * doc/posix-functions/optopt.texi (optopt): Likewise.
30238         * doc/posix-functions/tzname.texi (tzname): Likewise.
30239
30240         openat: update maintainer
30241         * modules/openat (Maintainer): Add myself.
30242
30243         utimens: avoid shadowing warning
30244         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30245         buffers into one, to avoid shadowing, as well as avoiding a
30246         redundant stat.
30247         Reported by Jim Meyering.
30248
30249         test-dup2: avoid compiler warning
30250         * tests/test-dup2.c (is_inheritable): Only define if used.
30251
30252 2010-01-01  Bruno Haible  <bruno@clisp.org>
30253
30254         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30255         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30256         defined, use wctomb instead of wcrtomb.
30257
30258 2010-01-01  Bruno Haible  <bruno@clisp.org>
30259
30260         iconv: Reject native Solaris iconv.
30261         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30262         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30263
30264 2009-12-31  Bruno Haible  <bruno@clisp.org>
30265
30266         * tests/test-signal.c (main): Remove test of 'SIG'.
30267
30268 2009-12-31  Bruno Haible  <bruno@clisp.org>
30269
30270         spawn: Fix incomplete fix.
30271         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30272         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30273         warnings for GNULIB_POSIXCHECK again.
30274         Reported by Eric Blake.
30275
30276 2009-12-31  Bruno Haible  <bruno@clisp.org>
30277
30278         Avoid namespace pollution on glibc systems.
30279         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30280         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30281         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30282         glibc systems.
30283
30284 2009-12-31  Bruno Haible  <bruno@clisp.org>
30285
30286         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30287         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30288         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30289         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30290         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30291         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30292         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30293
30294 2009-12-31  Bruno Haible  <bruno@clisp.org>
30295
30296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30297         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30298         afterwards.
30299
30300 2009-12-31  Bruno Haible  <bruno@clisp.org>
30301
30302         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30303         SYS_UTSNAME_H.
30304
30305 2009-12-31  Bruno Haible  <bruno@clisp.org>
30306
30307         spawn: Fix misapplied patch.
30308         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30309         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30310         warnings for GNULIB_POSIXCHECK.
30311
30312 2009-12-31  Bruno Haible  <bruno@clisp.org>
30313
30314         times: Update after sys_times changed.
30315         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30316         * modules/times (Files): Add it.
30317         (configure.ac): Invoke gl_FUNC_TIMES.
30318
30319 2009-12-31  Bruno Haible  <bruno@clisp.org>
30320
30321         Use AC_C_INLINE where necessary.
30322         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30323         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30324         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30325         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30326         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30327         * m4/mbiter.m4 (gl_MBITER): Likewise.
30328         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30329         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30330         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30331         * modules/u64 (configure.ac): Likewise.
30332
30333 2009-12-31  Bruno Haible  <bruno@clisp.org>
30334
30335         Use AC_C_INLINE instead of module 'inline' where possible.
30336         * modules/inline (Description): Clarify purpose.
30337         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30338         * modules/count-one-bits (Depends-on): Remove inline.
30339         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30340         * modules/openat (Depends-on): Remove inline.
30341         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30342         instead of depending on module 'inline'.
30343         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30344         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30345         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30346         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30347         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30348         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30349         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30350         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30351         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30352         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30353         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30354         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30355         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30356         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30357         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30358         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30359         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30360         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30361         Likewise.
30362         * modules/unictype/property-ascii-hex-digit (Depends-on,
30363         configure.ac): Likewise.
30364         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30365         configure.ac): Likewise.
30366         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30367         configure.ac): Likewise.
30368         * modules/unictype/property-bidi-block-separator (Depends-on,
30369         configure.ac): Likewise.
30370         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30371         configure.ac): Likewise.
30372         * modules/unictype/property-bidi-common-separator (Depends-on,
30373         configure.ac): Likewise.
30374         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30375         Likewise.
30376         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30377         configure.ac): Likewise.
30378         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30379         configure.ac): Likewise.
30380         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30381         configure.ac): Likewise.
30382         * modules/unictype/property-bidi-european-digit (Depends-on,
30383         configure.ac): Likewise.
30384         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30385         configure.ac): Likewise.
30386         * modules/unictype/property-bidi-left-to-right (Depends-on,
30387         configure.ac): Likewise.
30388         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30389         configure.ac): Likewise.
30390         * modules/unictype/property-bidi-other-neutral (Depends-on,
30391         configure.ac): Likewise.
30392         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30393         Likewise.
30394         * modules/unictype/property-bidi-segment-separator (Depends-on,
30395         configure.ac): Likewise.
30396         * modules/unictype/property-bidi-whitespace (Depends-on,
30397         configure.ac): Likewise.
30398         * modules/unictype/property-combining (Depends-on, configure.ac):
30399         Likewise.
30400         * modules/unictype/property-composite (Depends-on, configure.ac):
30401         Likewise.
30402         * modules/unictype/property-currency-symbol (Depends-on,
30403         configure.ac): Likewise.
30404         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30405         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30406         Likewise.
30407         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30408         configure.ac): Likewise.
30409         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30410         Likewise.
30411         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30412         Likewise.
30413         * modules/unictype/property-extender (Depends-on, configure.ac):
30414         Likewise.
30415         * modules/unictype/property-format-control (Depends-on, configure.ac):
30416         Likewise.
30417         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30418         Likewise.
30419         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30420         Likewise.
30421         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30422         Likewise.
30423         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30424         Likewise.
30425         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30426         Likewise.
30427         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30428         Likewise.
30429         * modules/unictype/property-id-start (Depends-on, configure.ac):
30430         Likewise.
30431         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30432         Likewise.
30433         * modules/unictype/property-ids-binary-operator (Depends-on,
30434         configure.ac): Likewise.
30435         * modules/unictype/property-ids-trinary-operator (Depends-on,
30436         configure.ac): Likewise.
30437         * modules/unictype/property-ignorable-control (Depends-on,
30438         configure.ac): Likewise.
30439         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30440         Likewise.
30441         * modules/unictype/property-join-control (Depends-on, configure.ac):
30442         Likewise.
30443         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30444         Likewise.
30445         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30446         Likewise.
30447         * modules/unictype/property-logical-order-exception (Depends-on,
30448         configure.ac): Likewise.
30449         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30450         Likewise.
30451         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30452         * modules/unictype/property-non-break (Depends-on, configure.ac):
30453         Likewise.
30454         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30455         Likewise.
30456         * modules/unictype/property-numeric (Depends-on, configure.ac):
30457         Likewise.
30458         * modules/unictype/property-other-alphabetic (Depends-on,
30459         configure.ac): Likewise.
30460         * modules/unictype/property-other-default-ignorable-code-point
30461         (Depends-on, configure.ac): Likewise.
30462         * modules/unictype/property-other-grapheme-extend (Depends-on,
30463         configure.ac): Likewise.
30464         * modules/unictype/property-other-id-continue (Depends-on,
30465         configure.ac): Likewise.
30466         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30467         Likewise.
30468         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30469         Likewise.
30470         * modules/unictype/property-other-math (Depends-on, configure.ac):
30471         Likewise.
30472         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30473         Likewise.
30474         * modules/unictype/property-paired-punctuation (Depends-on,
30475         configure.ac): Likewise.
30476         * modules/unictype/property-paragraph-separator (Depends-on,
30477         configure.ac): Likewise.
30478         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30479         Likewise.
30480         * modules/unictype/property-pattern-white-space (Depends-on,
30481         configure.ac): Likewise.
30482         * modules/unictype/property-private-use (Depends-on, configure.ac):
30483         Likewise.
30484         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30485         Likewise.
30486         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30487         Likewise.
30488         * modules/unictype/property-radical (Depends-on, configure.ac):
30489         Likewise.
30490         * modules/unictype/property-sentence-terminal (Depends-on,
30491         configure.ac): Likewise.
30492         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30493         Likewise.
30494         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30495         * modules/unictype/property-terminal-punctuation (Depends-on,
30496         configure.ac): Likewise.
30497         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30498         Likewise.
30499         * modules/unictype/property-unassigned-code-value (Depends-on,
30500         configure.ac): Likewise.
30501         * modules/unictype/property-unified-ideograph (Depends-on,
30502         configure.ac): Likewise.
30503         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30504         Likewise.
30505         * modules/unictype/property-variation-selector (Depends-on,
30506         configure.ac): Likewise.
30507         * modules/unictype/property-white-space (Depends-on, configure.ac):
30508         Likewise.
30509         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30510         Likewise.
30511         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30512         Likewise.
30513         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30514         Likewise.
30515         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30516         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30517         Likewise.
30518
30519 2009-12-31  Bruno Haible  <bruno@clisp.org>
30520
30521         Remove unnecessary AC_C_INLINE invocation.
30522         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30523         since 2009-08-21.
30524
30525 2009-12-31  Jim Meyering  <meyering@redhat.com>
30526
30527         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30528         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30529         With this change, we can all remove the gpg_key_ID = ... definition
30530         from our respective cfg.mk files.
30531
30532         maint.mk: create announcement template in ~/, not in /tmp
30533         * top/maint.mk (emit_upload_commands): Adjust.
30534         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30535         Remove temporary file, .ci-msg.
30536
30537 2009-12-31  Eric Blake  <ebb9@byu.net>
30538
30539         link-warning: always build headers with link warnings
30540         * modules/arpa_inet (Makefile.am): Always build replacement
30541         header.
30542         * modules/ctype (Makefile.am): Likewise.
30543         * modules/dirent (Makefile.am): Likewise.
30544         * modules/inttypes (Makefile.am): Likewise.
30545         * modules/langinfo (Makefile.am): Likewise.
30546         * modules/locale (Makefile.am): Likewise.
30547         * modules/spawn (Makefile.am): Likewise.
30548         * modules/sys_file (Makefile.am): Likewise.
30549         * modules/sys_ioctl (Makefile.am): Likewise.
30550         * modules/sys_select (Makefile.am): Likewise.
30551         * modules/sys_socket (Makefile.am): Likewise.
30552         * modules/sys_times (Makefile.am): Likewise.
30553         * modules/sys_utsname (Makefile.am): Likewise.
30554         * modules/sys_wait (Makefile.am): Likewise.
30555         * modules/wchar (Makefile.am): Likewise.
30556         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30557         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30558         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30559         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30560         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30561         Likewise.
30562         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30563         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30565         Likewise.
30566         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30567         Likewise.
30568         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30569         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30570         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30572         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30573         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30574         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30575         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30576         (gl_WCHAR_H_DEFAULTS): Likewise.
30577
30578 2009-12-31  Eric Blake  <ebb9@byu.net>
30579
30580         signal, spawn: use link warnings
30581         * lib/signal.in.h (sigset_t): Make unconditional.
30582         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30583         (sigpending, sigprocmask, sigaction): Add link warnings.
30584         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30585         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30586         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30587         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30588         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30589         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30590         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30591         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30592         (posix_spawn_file_actions_destroy)
30593         (posix_spawn_file_actions_addopen)
30594         (posix_spawn_file_actions_addclose)
30595         (posix_spawn_file_actions_adddup2): Likewise.
30596         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30597         * tests/test-signal.c (main): Enhance test.
30598
30599         spawn: improve wrapper support
30600         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30601         (gl_SPAWN_H_DEFAULTS): New defaults.
30602         * modules/spawn (Makefile.am): Substitute them.
30603         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30604         Only declare if missing or broken.
30605
30606         sys_times, sys_utsname: use include_next
30607         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30608         header.
30609         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30610         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30611         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30612         * modules/sys_times (Depends-on): Add include_next.
30613         (Makefile.am): Substitute additional values.
30614         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30615         * lib/sys_times.in.h (includes): Include native header, if
30616         available.
30617         * lib/sys_utsname.in.h (includes): Likewise.
30618         * tests/test-sys_times.c (main): Enhance test.
30619
30620         fdutimensat: revert prior patch
30621         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30622         utimens.h.
30623         Reported by Bruno Haible.
30624
30625 2009-12-30  Eric Blake  <ebb9@byu.net>
30626
30627         sys_wait: drop link-warning dependency
30628         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30629         link-warning efforts.
30630         * lib/sys_wait.in.h: Likewise.
30631
30632         fdutimensat: remove bogus dependency
30633         * modules/fdutimensat (Depends-on): Drop inline.
30634
30635         unistd: fix typo
30636         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30637
30638 2009-12-30  Bruno Haible  <bruno@clisp.org>
30639
30640         Fix compilation error with Solaris cc.
30641         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30642         * lib/unicase/u16-is-invariant.c: Likewise.
30643         * lib/unicase/u32-is-invariant.c: Likewise.
30644         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30645
30646 2009-12-30  Bruno Haible  <bruno@clisp.org>
30647
30648         Fix test crash.
30649         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30650         locales.
30651         Reported by Simon Josefsson <simon@josefsson.org>.
30652
30653 2009-12-30  Bruno Haible  <bruno@clisp.org>
30654
30655         Fix compilation error on most platforms.
30656         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30657         Reported by Simon Josefsson <simon@josefsson.org>
30658         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30659
30660 2009-12-30  Eric Blake  <ebb9@byu.net>
30661
30662         futimens, utimensat: work around ntfs-3g bug
30663         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30664         a ctime bug is present, and expand workaround to cover ntfs-3g.
30665         * lib/utimens.c (fdutimens, lutimens): Likewise.
30666         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30667         (validate_timespec): Adjust return value.
30668         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30669         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30670         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30671
30672 2009-12-29  Eric Blake  <ebb9@byu.net>
30673
30674         link-warning: make usage consistent
30675         * modules/ctype (Depends-on): Add link-warning.
30676         (Makefile.am): Update rules accordingly.
30677         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30678         * modules/locale (Depends-on, Makefile.am): Likewise.
30679         * modules/sys_file (Makefile.am): Likewise.
30680         * modules/getopt-posix (Makefile.am): Delete unused link warning
30681         efforts.
30682         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30683         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30684         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30685         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30686
30687         stdio: remove unused variables
30688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30689         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30690         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30691
30692         tests: test more substitute headers
30693         * modules/ctype-tests: New file.
30694         * modules/dirent-tests: Likewise.
30695         * modules/spawn-tests: Likewise.
30696         * modules/sys_file-tests: Likewise.
30697         * modules/sys_ioctl-tests: Likewise.
30698         * modules/sys_wait-tests: Likewise.
30699         * tests/test-ctype.c: Likewise.
30700         * tests/test-dirent.c: Likewise.
30701         * tests/test-spawn.c: Likewise.
30702         * tests/test-sys_file.c: Likewise.
30703         * tests/test-sys_ioctl.c: Likewise.
30704         * tests/test-sys_wait.c: Likewise.
30705         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30706         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30707         whether or not flock is in use.
30708
30709         tests: remove License section from module
30710         * modules/arpa_inet-tests: Remove unneeded section.
30711         * modules/byteswap-tests: Likewise.
30712         * modules/ceilf-tests: Likewise.
30713         * modules/ceill-tests: Likewise.
30714         * modules/crypto/des-tests: Likewise.
30715         * modules/crypto/gc-arcfour-tests: Likewise.
30716         * modules/crypto/gc-arctwo-tests: Likewise.
30717         * modules/crypto/gc-des-tests: Likewise.
30718         * modules/crypto/gc-hmac-md5-tests: Likewise.
30719         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30720         * modules/crypto/gc-md2-tests: Likewise.
30721         * modules/crypto/gc-md4-tests: Likewise.
30722         * modules/crypto/gc-md5-tests: Likewise.
30723         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30724         * modules/crypto/gc-rijndael-tests: Likewise.
30725         * modules/crypto/gc-sha1-tests: Likewise.
30726         * modules/crypto/gc-tests: Likewise.
30727         * modules/crypto/md2-tests: Likewise.
30728         * modules/crypto/md4-tests: Likewise.
30729         * modules/fcntl-h-tests: Likewise.
30730         * modules/floorf-tests: Likewise.
30731         * modules/floorl-tests: Likewise.
30732         * modules/frexp-nolibm-tests: Likewise.
30733         * modules/frexp-tests: Likewise.
30734         * modules/frexpl-nolibm-tests: Likewise.
30735         * modules/frexpl-tests: Likewise.
30736         * modules/getaddrinfo-tests: Likewise.
30737         * modules/inttypes-tests: Likewise.
30738         * modules/isfinite-tests: Likewise.
30739         * modules/isinf-tests: Likewise.
30740         * modules/ldexpl-tests: Likewise.
30741         * modules/locale-tests: Likewise.
30742         * modules/math-tests: Likewise.
30743         * modules/netdb-tests: Likewise.
30744         * modules/netinet_in-tests: Likewise.
30745         * modules/printf-frexp-tests: Likewise.
30746         * modules/printf-frexpl-tests: Likewise.
30747         * modules/priv-set-tests: Likewise.
30748         * modules/random_r-tests: Likewise.
30749         * modules/round-tests: Likewise.
30750         * modules/roundf-tests: Likewise.
30751         * modules/roundl-tests: Likewise.
30752         * modules/search-tests: Likewise.
30753         * modules/select-tests: Likewise.
30754         * modules/signal-tests: Likewise.
30755         * modules/stdbool-tests: Likewise.
30756         * modules/stddef-tests: Likewise.
30757         * modules/stdint-tests: Likewise.
30758         * modules/stdio-tests: Likewise.
30759         * modules/stdlib-tests: Likewise.
30760         * modules/string-tests: Likewise.
30761         * modules/strings-tests: Likewise.
30762         * modules/sys_select-tests: Likewise.
30763         * modules/sys_socket-tests: Likewise.
30764         * modules/sys_stat-tests: Likewise.
30765         * modules/sys_time-tests: Likewise.
30766         * modules/sys_utsname-tests: Likewise.
30767         * modules/sysexits-tests: Likewise.
30768         * modules/time-tests: Likewise.
30769         * modules/trunc-tests: Likewise.
30770         * modules/truncf-tests: Likewise.
30771         * modules/truncl-tests: Likewise.
30772         * modules/tsearch-tests: Likewise.
30773         * modules/unistd-tests: Likewise.
30774         * modules/wchar-tests: Likewise.
30775         * modules/wctype-tests: Likewise.
30776
30777         tests: fix license on several tests
30778         * tests/test-des.c: Update to GPLv3+.
30779         * tests/test-flock.c: Likewise.
30780         * tests/test-fsync.c: Likewise.
30781         * tests/test-futimens.h: Likewise.
30782         * tests/test-gc-arcfour.c: Likewise.
30783         * tests/test-gc-arctwo.c: Likewise.
30784         * tests/test-gc-des.c: Likewise.
30785         * tests/test-gc-hmac-md5.c: Likewise.
30786         * tests/test-gc-hmac-sha1.c: Likewise.
30787         * tests/test-gc-md2.c: Likewise.
30788         * tests/test-gc-md4.c: Likewise.
30789         * tests/test-gc-md5.c: Likewise.
30790         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30791         * tests/test-gc-rijndael.c: Likewise.
30792         * tests/test-gc-sha1.c: Likewise.
30793         * tests/test-gc.c: Likewise.
30794         * tests/test-getcwd.c: Likewise.
30795         * tests/test-link.c: Likewise.
30796         * tests/test-link.h: Likewise.
30797         * tests/test-lutimens.h: Likewise.
30798         * tests/test-md2.c: Likewise.
30799         * tests/test-md4.c: Likewise.
30800         * tests/test-mkdir.h: Likewise.
30801         * tests/test-rename.c: Likewise.
30802         * tests/test-rename.h: Likewise.
30803         * tests/test-safe-alloc.c: Likewise.
30804         * tests/test-utimens-common.h: Likewise.
30805         * tests/test-utimens.h: Likewise.
30806
30807         maint: sync license texts
30808         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30809         * doc/gpl-3.0.texi: Revert copyright year update.
30810         * doc/lgpl-3.0.texi: Likewise.
30811
30812 2009-12-29  Jim Meyering  <meyering@redhat.com>
30813
30814         update nearly all FSF copyright year lists to include 2009
30815         The files named by the following are exempted:
30816             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30817               test -f "$dst" && { echo "$dst"; continue; }
30818               test -d "$dst" || continue
30819               echo "$dst"/$(basename "$src")
30820             done > exempt
30821             git ls-files tests/unictype >> exempt
30822         In the remaining files, convert to all-interval notation if
30823         - there is already at least one year interval like 2000-2003
30824         - the file is maintained by me
30825         - the file is in lib/uni*/, where that style already prevails
30826         Otherwise, use update-copyright's default.
30827
30828 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30829         and Eric Blake  <ebb9@byu.net>
30830
30831         tests: don't require debug system() to pass
30832         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30833         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30834         * tests/test-unlink.h (test_unlink_func): Likewise.
30835         * tests/test-fstatat.c (main): ...into callers.
30836         * tests/test-lstat.c (main): Likewise.
30837         * tests/test-rmdir.c (main): Likewise.
30838         * tests/test-unlink.c (main): Likewise.
30839         * tests/test-unlinkat.c (main): Likewise.
30840         * tests/test-areadlink-with-size.c (main): Don't require a
30841         debug-only system call to pass, aiding cross-testing to mingw.
30842         * tests/test-areadlink.c (main): Likewise.
30843         * tests/test-areadlinkat-with-size.c (main): Likewise.
30844         * tests/test-areadlinkat.c (main): Likewise.
30845         * tests/test-canonicalize-lgpl.c (main): Likewise.
30846         * tests/test-canonicalize.c (main): Likewise.
30847         * tests/test-chown.c (main): Likewise.
30848         * tests/test-fchownat.c (main): Likewise.
30849         * tests/test-lchown.c (main): Likewise.
30850         * tests/test-fdutimensat.c (main): Likewise.
30851         * tests/test-futimens.c (main): Likewise.
30852         * tests/test-link.c (main): Likewise.
30853         * tests/test-linkat.c (main): Likewise.
30854         * tests/test-mkdir.c (main): Likewise.
30855         * tests/test-mkdirat.c (main): Likewise.
30856         * tests/test-mkfifo.c (main): Likewise.
30857         * tests/test-mkfifoat.c (main): Likewise.
30858         * tests/test-mknod.c (main): Likewise.
30859         * tests/test-readlink.c (main): Likewise.
30860         * tests/test-remove.c (main): Likewise.
30861         * tests/test-rename.c (main): Likewise.
30862         * tests/test-renameat.c (main): Likewise.
30863         * tests/test-symlink.c (main): Likewise.
30864         * tests/test-symlinkat.c (main): Likewise.
30865         * tests/test-utimens.c (main): Likewise.
30866         * tests/test-utimensat.c (main): Likewise.
30867
30868 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30869
30870         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30871         on $(UNUSED_PARAMETER_H) to avoid build failure.
30872
30873 2009-12-28  Jim Meyering  <meyering@redhat.com>
30874
30875         update-copyright: you may specify a max. line length other than 72
30876         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30877
30878         maint: use consistent FSF copyright line syntax
30879         * lib/posixtm.c: Add missing comma in FSF copyright line.
30880         * lib/posixtm.h: Likewise.
30881         * lib/getugroups.c: Add missing ", Inc.".
30882
30883         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30884         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30885         FSF copyright line.  Remove trailing blanks.
30886
30887 2009-12-28  Eric Blake  <ebb9@byu.net>
30888
30889         test-dup2: reduce dependencies
30890         * modules/cloexec (Configure.ac): Set witness.
30891         * modules/dup2-tests (Depends-on): Drop cloexec.
30892         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30893         not present.
30894         Suggested by Bruno Haible.
30895
30896 2009-12-26  Bruno Haible  <bruno@clisp.org>
30897
30898         Remove an unneeded dependency.
30899         * modules/fseterr (Depends-on): Remove dup2.
30900
30901 2009-12-26  Eric Blake  <ebb9@byu.net>
30902
30903         tests: use macros.h in more places
30904         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30905         (ASSERT_STREAM): Provide default of stderr.
30906         * tests/test-dirent-safer.c: Include macros.h, using alternate
30907         stream for assertions.
30908         * tests/test-dup-safer.c: Likewise.
30909         * tests/test-freopen-safer.c: Likewise.
30910         * tests/test-getopt.c: Likewise.
30911         * tests/test-openat-safer.c: Likewise.
30912         * tests/test-pipe.c: Likewise.
30913         * tests/test-popen-safer.c: Likewise.
30914         * modules/dirent-safer-tests (Files): Include macros.h.
30915         * modules/unistd-safer-tests (Files): Likewise.
30916         * modules/freopen-safer-tests (Files): Likewise.
30917         * modules/getopt-posix-tests (Files): Likewise.
30918         * modules/openat-safer-tests (Files): Likewise.
30919         * modules/pipe-tests (Files): Likewise.
30920
30921 2009-12-26  Bruno Haible  <bruno@clisp.org>
30922
30923         javacomp: Portability fix.
30924         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30925         that it also works on Solaris.
30926
30927 2009-12-26  Bruno Haible  <bruno@clisp.org>
30928
30929         localename: Fix storage allocation of gl_locale_name_thread's result.
30930         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30931         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30932         all platforms that have 'uselocale'.
30933         (gl_locale_name_thread_unsafe): New function, extracted from
30934         gl_locale_name_thread.
30935         (gl_locale_name_thread): Call struniq on all platforms that have
30936         'uselocale'.
30937         * tests/test-localename.c (test_locale_name_thread): Check that the
30938         resulting strings are permanently allocated.
30939         * modules/localename-tests (Depends-on): Add strdup.
30940
30941 2009-12-26  Bruno Haible  <bruno@clisp.org>
30942
30943         * tests/test-localename.c (categories): Fill in the strings.
30944
30945 2009-12-26  Jim Meyering  <meyering@redhat.com>
30946
30947         isdir: complete the removal of m4/isdir.m4
30948         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30949
30950         isdir: clean up, since at least grep still uses it
30951         * lib/isdir.c: Include "isdir.h".
30952         (S_ISDIR): Remove now-unneeded definition.
30953         * modules/isdir (Files): Add lib/isdir.h.
30954         * lib/isdir.h: New file, with declaration.
30955         * m4/isdir.m4: Remove file -- unneeded.
30956
30957 2009-12-25  Bruno Haible  <bruno@clisp.org>
30958
30959         selinux-h: Make generated .h files standalone.
30960         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30961         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30962         * lib/se-selinux.in.h: Likewise.
30963         * modules/selinux-h (Depends-on): Add unused-parameter.
30964         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30965         selinux/selinux.h and selinux/context.h.
30966         Suggested by Eric Blake.
30967
30968 2009-12-25  Bruno Haible  <bruno@clisp.org>
30969
30970         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30971         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30972         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30973         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30974         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30975
30976 2009-12-24  Bruno Haible  <bruno@clisp.org>
30977
30978         openat: Fix warning.
30979         * lib/openat-proc.c: Include <unistd.h>.
30980
30981 2009-12-24  Bruno Haible  <bruno@clisp.org>
30982
30983         New module 'unused-parameter'.
30984         * build-aux/unused-parameter.h: New file, extracted from earlier
30985         gnulib-common.m4.
30986         * modules/unused-parameter: New file.
30987         * lib/unistr.h: Include unused-parameter.h.
30988         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30989         _GL_UNUSED.
30990         * modules/unistr/base (Depends-on): Add unused-parameter.
30991
30992 2009-12-24  Bruno Haible  <bruno@clisp.org>
30993
30994         Add missing dependencies to 'extensions' module.
30995         * m4/extensions.m4: Add comment.
30996         * modules/accept4 (Depends-on): Add extensions.
30997         * modules/dup3 (Depends-on): Likewise.
30998         * modules/fcntl (Depends-on): Likewise.
30999         * modules/futimens (Depends-on): Likewise.
31000         * modules/mknod (Depends-on): Likewise.
31001         * modules/pipe2 (Depends-on): Likewise.
31002         * modules/stat-time (Depends-on): Likewise.
31003         * modules/strcasestr-simple (Depends-on): Likewise.
31004         * modules/strsignal (Depends-on): Likewise.
31005         * modules/utimensat (Depends-on): Likewise.
31006         * modules/localcharset (Depends-on): Likewise. Needed because of
31007         gl_FCNTL_O_FLAGS.
31008         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31009         AC_TYPE_MBSTATE_T.
31010         * modules/wcsnrtombs (Depends-on): Likewise.
31011         * modules/wcsrtombs (Depends-on): Likewise.
31012
31013 2009-12-24  Bruno Haible  <bruno@clisp.org>
31014
31015         binary-io: Avoid gcc warning due to SET_BINARY.
31016         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31017         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31018
31019 2009-12-24  Bruno Haible  <bruno@clisp.org>
31020
31021         Avoid future namespace pollution on glibc systems.
31022         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31023         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31024         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31025         glibc systems.
31026
31027 2009-12-24  Bruno Haible  <bruno@clisp.org>
31028
31029         Refactor common macros used in tests.
31030         * tests/macros.h: New file.
31031         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31032         and/or <stdlib.h>, if appropriate.
31033         (ASSERT, SIZEOF): Remove macros.
31034         * tests/test-areadlink-with-size.c: Likewise.
31035         * tests/test-areadlinkat.c: Likewise.
31036         * tests/test-areadlinkat-with-size.c: Likewise.
31037         * tests/test-argmatch.c: Likewise.
31038         * tests/test-argv-iter.c: Likewise.
31039         * tests/test-array-mergesort.c: Likewise.
31040         * tests/test-array_list.c: Likewise.
31041         * tests/test-array_oset.c: Likewise.
31042         * tests/test-avltree_list.c: Likewise.
31043         * tests/test-avltree_oset.c: Likewise.
31044         * tests/test-avltreehash_list.c: Likewise.
31045         * tests/test-base64.c: Likewise.
31046         * tests/test-binary-io.c: Likewise.
31047         * tests/test-bitrotate.c: Likewise.
31048         * tests/test-btowc.c: Likewise.
31049         * tests/test-byteswap.c: Likewise.
31050         * tests/test-c-ctype.c: Likewise.
31051         * tests/test-c-stack.c: Likewise.
31052         * tests/test-c-strcasecmp.c: Likewise.
31053         * tests/test-c-strcasestr.c: Likewise.
31054         * tests/test-c-strncasecmp.c: Likewise.
31055         * tests/test-c-strstr.c: Likewise.
31056         * tests/test-canonicalize-lgpl.c: Likewise.
31057         * tests/test-canonicalize.c: Likewise.
31058         * tests/test-carray_list.c: Likewise.
31059         * tests/test-ceilf1.c: Likewise.
31060         * tests/test-ceilf2.c: Likewise.
31061         * tests/test-ceill.c: Likewise.
31062         * tests/test-chown.c: Likewise.
31063         * tests/test-cloexec.c: Likewise.
31064         * tests/test-copy-acl.c: Likewise.
31065         * tests/test-copy-file.c: Likewise.
31066         * tests/test-count-one-bits.c: Likewise.
31067         * tests/test-dprintf-posix.c: Likewise.
31068         * tests/test-dup2.c: Likewise.
31069         * tests/test-dup3.c: Likewise.
31070         * tests/test-duplocale.c: Likewise.
31071         * tests/test-fbufmode.c: Likewise.
31072         * tests/test-fchdir.c: Likewise.
31073         * tests/test-fchownat.c: Likewise.
31074         * tests/test-fcntl-safer.c: Likewise.
31075         * tests/test-fcntl.c: Likewise.
31076         * tests/test-fdopendir.c: Likewise.
31077         * tests/test-fdutimensat.c: Likewise.
31078         * tests/test-fflush2.c: Likewise.
31079         * tests/test-file-has-acl.c: Likewise.
31080         * tests/test-filevercmp.c: Likewise.
31081         * tests/test-flock.c: Likewise.
31082         * tests/test-floorf1.c: Likewise.
31083         * tests/test-floorf2.c: Likewise.
31084         * tests/test-floorl.c: Likewise.
31085         * tests/test-fnmatch.c: Likewise.
31086         * tests/test-fopen.h: Likewise.
31087         * tests/test-fpending.c: Likewise.
31088         * tests/test-fprintf-posix.c: Likewise.
31089         * tests/test-fpurge.c: Likewise.
31090         * tests/test-freadable.c: Likewise.
31091         * tests/test-freadahead.c: Likewise.
31092         * tests/test-freading.c: Likewise.
31093         * tests/test-freadptr.c: Likewise.
31094         * tests/test-freadptr2.c: Likewise.
31095         * tests/test-freadseek.c: Likewise.
31096         * tests/test-freopen.c: Likewise.
31097         * tests/test-frexp.c: Likewise.
31098         * tests/test-frexpl.c: Likewise.
31099         * tests/test-fseek.c: Likewise.
31100         * tests/test-fseeko.c: Likewise.
31101         * tests/test-fstatat.c: Likewise.
31102         * tests/test-fstrcmp.c: Likewise.
31103         * tests/test-fsync.c: Likewise.
31104         * tests/test-ftell.c: Likewise.
31105         * tests/test-ftello.c: Likewise.
31106         * tests/test-func.c: Likewise.
31107         * tests/test-futimens.c: Likewise.
31108         * tests/test-fwritable.c: Likewise.
31109         * tests/test-fwriting.c: Likewise.
31110         * tests/test-getcwd.c: Likewise.
31111         * tests/test-getdate.c: Likewise.
31112         * tests/test-getdelim.c: Likewise.
31113         * tests/test-getdtablesize.c: Likewise.
31114         * tests/test-getgroups.c: Likewise.
31115         * tests/test-getline.c: Likewise.
31116         * tests/test-getndelim2.c: Likewise.
31117         * tests/test-glob.c: Likewise.
31118         * tests/test-hash.c: Likewise.
31119         * tests/test-i-ring.c: Likewise.
31120         * tests/test-iconv-utf.c: Likewise.
31121         * tests/test-iconv.c: Likewise.
31122         * tests/test-idpriv-drop.c: Likewise.
31123         * tests/test-idpriv-droptemp.c: Likewise.
31124         * tests/test-inet_ntop.c: Likewise.
31125         * tests/test-inet_pton.c: Likewise.
31126         * tests/test-isblank.c: Likewise.
31127         * tests/test-isfinite.c: Likewise.
31128         * tests/test-isinf.c: Likewise.
31129         * tests/test-isnan.c: Likewise.
31130         * tests/test-isnand.h: Likewise.
31131         * tests/test-isnanf.h: Likewise.
31132         * tests/test-isnanl.h: Likewise.
31133         * tests/test-lchown.c: Likewise.
31134         * tests/test-ldexpl.c: Likewise.
31135         * tests/test-link.c: Likewise.
31136         * tests/test-linkat.c: Likewise.
31137         * tests/test-linked_list.c: Likewise.
31138         * tests/test-linkedhash_list.c: Likewise.
31139         * tests/test-localename.c: Likewise.
31140         * tests/test-lseek.c: Likewise.
31141         * tests/test-lstat.c: Likewise.
31142         * tests/test-mbmemcasecmp.c: Likewise.
31143         * tests/test-mbmemcasecoll.c: Likewise.
31144         * tests/test-mbrtowc.c: Likewise.
31145         * tests/test-mbscasecmp.c: Likewise.
31146         * tests/test-mbscasestr1.c: Likewise.
31147         * tests/test-mbscasestr2.c: Likewise.
31148         * tests/test-mbscasestr3.c: Likewise.
31149         * tests/test-mbscasestr4.c: Likewise.
31150         * tests/test-mbschr.c: Likewise.
31151         * tests/test-mbscspn.c: Likewise.
31152         * tests/test-mbsinit.c: Likewise.
31153         * tests/test-mbsncasecmp.c: Likewise.
31154         * tests/test-mbsnrtowcs.c: Likewise.
31155         * tests/test-mbspbrk.c: Likewise.
31156         * tests/test-mbspcasecmp.c: Likewise.
31157         * tests/test-mbsrchr.c: Likewise.
31158         * tests/test-mbsrtowcs.c: Likewise.
31159         * tests/test-mbsspn.c: Likewise.
31160         * tests/test-mbsstr1.c: Likewise.
31161         * tests/test-mbsstr2.c: Likewise.
31162         * tests/test-mbsstr3.c: Likewise.
31163         * tests/test-memchr.c: Likewise.
31164         * tests/test-memchr2.c: Likewise.
31165         * tests/test-memcmp.c: Likewise.
31166         * tests/test-memmem.c: Likewise.
31167         * tests/test-memrchr.c: Likewise.
31168         * tests/test-mkdir.c: Likewise.
31169         * tests/test-mkdirat.c: Likewise.
31170         * tests/test-mkfifo.c: Likewise.
31171         * tests/test-mkfifoat.c: Likewise.
31172         * tests/test-mknod.c: Likewise.
31173         * tests/test-nanosleep.c: Likewise.
31174         * tests/test-nl_langinfo.c: Likewise.
31175         * tests/test-obstack-printf.c: Likewise.
31176         * tests/test-open.c: Likewise.
31177         * tests/test-openat.c: Likewise.
31178         * tests/test-pipe-filter-gi1.c: Likewise.
31179         * tests/test-pipe-filter-gi2-main.c: Likewise.
31180         * tests/test-pipe-filter-ii1.c: Likewise.
31181         * tests/test-pipe-filter-ii2-main.c: Likewise.
31182         * tests/test-pipe2.c: Likewise.
31183         * tests/test-popen.h: Likewise.
31184         * tests/test-posixtm.c: Likewise.
31185         * tests/test-pread.c: Likewise.
31186         * tests/test-printf-frexp.c: Likewise.
31187         * tests/test-printf-frexpl.c: Likewise.
31188         * tests/test-printf-posix.c: Likewise.
31189         * tests/test-priv-set.c: Likewise.
31190         * tests/test-quotearg.c: Likewise.
31191         * tests/test-random_r.c: Likewise.
31192         * tests/test-rawmemchr.c: Likewise.
31193         * tests/test-rbtree_list.c: Likewise.
31194         * tests/test-rbtree_oset.c: Likewise.
31195         * tests/test-rbtreehash_list.c: Likewise.
31196         * tests/test-readlink.c: Likewise.
31197         * tests/test-remove.c: Likewise.
31198         * tests/test-rename.c: Likewise.
31199         * tests/test-renameat.c: Likewise.
31200         * tests/test-rmdir.c: Likewise.
31201         * tests/test-round1.c: Likewise.
31202         * tests/test-roundf1.c: Likewise.
31203         * tests/test-roundl.c: Likewise.
31204         * tests/test-safe-alloc.c: Likewise.
31205         * tests/test-sameacls.c: Likewise.
31206         * tests/test-set-mode-acl.c: Likewise.
31207         * tests/test-setenv.c: Likewise.
31208         * tests/test-sigaction.c: Likewise.
31209         * tests/test-signbit.c: Likewise.
31210         * tests/test-sleep.c: Likewise.
31211         * tests/test-snprintf-posix.c: Likewise.
31212         * tests/test-snprintf.c: Likewise.
31213         * tests/test-sprintf-posix.c: Likewise.
31214         * tests/test-stat-time.c: Likewise.
31215         * tests/test-stat.c: Likewise.
31216         * tests/test-strcasestr.c: Likewise.
31217         * tests/test-strchrnul.c: Likewise.
31218         * tests/test-strerror.c: Likewise.
31219         * tests/test-striconv.c: Likewise.
31220         * tests/test-striconveh.c: Likewise.
31221         * tests/test-striconveha.c: Likewise.
31222         * tests/test-strsignal.c: Likewise.
31223         * tests/test-strstr.c: Likewise.
31224         * tests/test-strtod.c: Likewise.
31225         * tests/test-strverscmp.c: Likewise.
31226         * tests/test-symlink.c: Likewise.
31227         * tests/test-symlinkat.c: Likewise.
31228         * tests/test-trunc1.c: Likewise.
31229         * tests/test-trunc2.c: Likewise.
31230         * tests/test-truncf1.c: Likewise.
31231         * tests/test-truncf2.c: Likewise.
31232         * tests/test-truncl.c: Likewise.
31233         * tests/test-uname.c: Likewise.
31234         * tests/test-unlink.c: Likewise.
31235         * tests/test-unlinkat.c: Likewise.
31236         * tests/test-unsetenv.c: Likewise.
31237         * tests/test-usleep.c: Likewise.
31238         * tests/test-utimens.c: Likewise.
31239         * tests/test-utimensat.c: Likewise.
31240         * tests/test-vasnprintf-posix.c: Likewise.
31241         * tests/test-vasnprintf-posix2.c: Likewise.
31242         * tests/test-vasnprintf.c: Likewise.
31243         * tests/test-vasprintf-posix.c: Likewise.
31244         * tests/test-vasprintf.c: Likewise.
31245         * tests/test-vdprintf-posix.c: Likewise.
31246         * tests/test-vfprintf-posix.c: Likewise.
31247         * tests/test-vprintf-posix.c: Likewise.
31248         * tests/test-vsnprintf-posix.c: Likewise.
31249         * tests/test-vsnprintf.c: Likewise.
31250         * tests/test-vsprintf-posix.c: Likewise.
31251         * tests/test-wcrtomb.c: Likewise.
31252         * tests/test-wcsnrtombs.c: Likewise.
31253         * tests/test-wcsrtombs.c: Likewise.
31254         * tests/test-wctype.c: Likewise.
31255         * tests/test-wcwidth.c: Likewise.
31256         * tests/test-xfprintf-posix.c: Likewise.
31257         * tests/test-xmemdup0.c: Likewise.
31258         * tests/test-xprintf-posix.c: Likewise.
31259         * tests/test-xvasprintf.c: Likewise.
31260         * tests/unicase/test-locale-language.c: Likewise.
31261         * tests/unicase/test-mapping-part1.h: Likewise.
31262         * tests/unicase/test-predicate-part1.h: Likewise.
31263         * tests/unicase/test-u8-casecmp.c: Likewise.
31264         * tests/unicase/test-u8-casecoll.c: Likewise.
31265         * tests/unicase/test-u8-casefold.c: Likewise.
31266         * tests/unicase/test-u8-is-cased.c: Likewise.
31267         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31268         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31269         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31270         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31271         * tests/unicase/test-u8-tolower.c: Likewise.
31272         * tests/unicase/test-u8-totitle.c: Likewise.
31273         * tests/unicase/test-u8-toupper.c: Likewise.
31274         * tests/unicase/test-u16-casecmp.c: Likewise.
31275         * tests/unicase/test-u16-casecoll.c: Likewise.
31276         * tests/unicase/test-u16-casefold.c: Likewise.
31277         * tests/unicase/test-u16-is-cased.c: Likewise.
31278         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31279         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31280         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31281         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31282         * tests/unicase/test-u16-tolower.c: Likewise.
31283         * tests/unicase/test-u16-totitle.c: Likewise.
31284         * tests/unicase/test-u16-toupper.c: Likewise.
31285         * tests/unicase/test-u32-casecmp.c: Likewise.
31286         * tests/unicase/test-u32-casecoll.c: Likewise.
31287         * tests/unicase/test-u32-casefold.c: Likewise.
31288         * tests/unicase/test-u32-is-cased.c: Likewise.
31289         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31290         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31291         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31292         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31293         * tests/unicase/test-u32-tolower.c: Likewise.
31294         * tests/unicase/test-u32-totitle.c: Likewise.
31295         * tests/unicase/test-u32-toupper.c: Likewise.
31296         * tests/unicase/test-ulc-casecmp.c: Likewise.
31297         * tests/unicase/test-ulc-casecoll.c: Likewise.
31298         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31299         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31300         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31301         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31302         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31303         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31304         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31305         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31306         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31307         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31308         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31309         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31310         * tests/unictype/test-bidi_byname.c: Likewise.
31311         * tests/unictype/test-bidi_name.c: Likewise.
31312         * tests/unictype/test-bidi_of.c: Likewise.
31313         * tests/unictype/test-bidi_test.c: Likewise.
31314         * tests/unictype/test-block_list.c: Likewise.
31315         * tests/unictype/test-block_of.c: Likewise.
31316         * tests/unictype/test-block_test.c: Likewise.
31317         * tests/unictype/test-categ_and.c: Likewise.
31318         * tests/unictype/test-categ_and_not.c: Likewise.
31319         * tests/unictype/test-categ_byname.c: Likewise.
31320         * tests/unictype/test-categ_name.c: Likewise.
31321         * tests/unictype/test-categ_none.c: Likewise.
31322         * tests/unictype/test-categ_of.c: Likewise.
31323         * tests/unictype/test-categ_or.c: Likewise.
31324         * tests/unictype/test-categ_test_withtable.c: Likewise.
31325         * tests/unictype/test-combining.c: Likewise.
31326         * tests/unictype/test-decdigit.c: Likewise.
31327         * tests/unictype/test-digit.c: Likewise.
31328         * tests/unictype/test-mirror.c: Likewise.
31329         * tests/unictype/test-numeric.c: Likewise.
31330         * tests/unictype/test-pr_byname.c: Likewise.
31331         * tests/unictype/test-pr_test.c: Likewise.
31332         * tests/unictype/test-predicate-part1.h: Likewise.
31333         * tests/unictype/test-scripts.c: Likewise.
31334         * tests/unictype/test-sy_c_ident.c: Likewise.
31335         * tests/unictype/test-sy_java_ident.c: Likewise.
31336         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31337         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31338         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31339         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31340         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31341         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31342         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31343         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31344         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31345         * tests/uninorm/test-compat-decomposition.c: Likewise.
31346         * tests/uninorm/test-composition.c: Likewise.
31347         * tests/uninorm/test-decomposing-form.c: Likewise.
31348         * tests/uninorm/test-decomposition.c: Likewise.
31349         * tests/uninorm/test-u8-nfc.c: Likewise.
31350         * tests/uninorm/test-u8-nfd.c: Likewise.
31351         * tests/uninorm/test-u8-nfkc.c: Likewise.
31352         * tests/uninorm/test-u8-nfkd.c: Likewise.
31353         * tests/uninorm/test-u8-normcmp.c: Likewise.
31354         * tests/uninorm/test-u8-normcoll.c: Likewise.
31355         * tests/uninorm/test-u16-nfc.c: Likewise.
31356         * tests/uninorm/test-u16-nfd.c: Likewise.
31357         * tests/uninorm/test-u16-nfkc.c: Likewise.
31358         * tests/uninorm/test-u16-nfkd.c: Likewise.
31359         * tests/uninorm/test-u16-normcmp.c: Likewise.
31360         * tests/uninorm/test-u16-normcoll.c: Likewise.
31361         * tests/uninorm/test-u32-nfc.c: Likewise.
31362         * tests/uninorm/test-u32-nfd.c: Likewise.
31363         * tests/uninorm/test-u32-nfkc.c: Likewise.
31364         * tests/uninorm/test-u32-nfkd.c: Likewise.
31365         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31366         * tests/uninorm/test-u32-normcmp.c: Likewise.
31367         * tests/uninorm/test-u32-normcoll.c: Likewise.
31368         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31369         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31370         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31371         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31372         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31373         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31374         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31375         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31376         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31377         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31378         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31379         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31380         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31381         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31382         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31383         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31384         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31385         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31386         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31387         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31388         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31389         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31390         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31391         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31392         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31393         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31394         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31395         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31396         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31397         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31398         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31399         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31400         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31401         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31402         * tests/uniwidth/test-u8-width.c: Likewise.
31403         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31404         * tests/uniwidth/test-u16-width.c: Likewise.
31405         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31406         * tests/uniwidth/test-u32-width.c: Likewise.
31407         * tests/uniwidth/test-uc_width.c: Likewise.
31408         * tests/uniwidth/test-uc_width2.c: Likewise.
31409         * modules/acl-tests (Files): Add tests/macros.h.
31410         * modules/areadlink-tests (Files): Likewise.
31411         * modules/areadlink-with-size-tests (Files): Likewise.
31412         * modules/areadlinkat-tests (Files): Likewise.
31413         * modules/areadlinkat-with-size-tests (Files): Likewise.
31414         * modules/argmatch-tests (Files): Likewise.
31415         * modules/argv-iter-tests (Files): Likewise.
31416         * modules/array-list-tests (Files): Likewise.
31417         * modules/array-mergesort-tests (Files): Likewise.
31418         * modules/array-oset-tests (Files): Likewise.
31419         * modules/avltree-list-tests (Files): Likewise.
31420         * modules/avltree-oset-tests (Files): Likewise.
31421         * modules/avltreehash-list-tests (Files): Likewise.
31422         * modules/base64-tests (Files): Likewise.
31423         * modules/binary-io-tests (Files): Likewise.
31424         * modules/bitrotate-tests (Files): Likewise.
31425         * modules/btowc-tests (Files): Likewise.
31426         * modules/byteswap-tests (Files): Likewise.
31427         * modules/c-ctype-tests (Files): Likewise.
31428         * modules/c-stack-tests (Files): Likewise.
31429         * modules/c-strcase-tests (Files): Likewise.
31430         * modules/c-strcasestr-tests (Files): Likewise.
31431         * modules/c-strstr-tests (Files): Likewise.
31432         * modules/canonicalize-lgpl-tests (Files): Likewise.
31433         * modules/canonicalize-tests (Files): Likewise.
31434         * modules/carray-list-tests (Files): Likewise.
31435         * modules/ceilf-tests (Files): Likewise.
31436         * modules/ceill-tests (Files): Likewise.
31437         * modules/chown-tests (Files): Likewise.
31438         * modules/cloexec-tests (Files): Likewise.
31439         * modules/copy-file-tests (Files): Likewise.
31440         * modules/count-one-bits-tests (Files): Likewise.
31441         * modules/dprintf-posix-tests (Files): Likewise.
31442         * modules/dup2-tests (Files): Likewise.
31443         * modules/dup3-tests (Files): Likewise.
31444         * modules/duplocale-tests (Files): Likewise.
31445         * modules/fbufmode-tests (Files): Likewise.
31446         * modules/fchdir-tests (Files): Likewise.
31447         * modules/fcntl-safer-tests (Files): Likewise.
31448         * modules/fcntl-tests (Files): Likewise.
31449         * modules/fdopendir-tests (Files): Likewise.
31450         * modules/fdutimensat-tests (Files): Likewise.
31451         * modules/fflush-tests (Files): Likewise.
31452         * modules/filevercmp-tests (Files): Likewise.
31453         * modules/flock-tests (Files): Likewise.
31454         * modules/floorf-tests (Files): Likewise.
31455         * modules/floorl-tests (Files): Likewise.
31456         * modules/fnmatch-tests (Files): Likewise.
31457         * modules/fopen-safer-tests (Files): Likewise.
31458         * modules/fopen-tests (Files): Likewise.
31459         * modules/fpending-tests (Files): Likewise.
31460         * modules/fprintf-posix-tests (Files): Likewise.
31461         * modules/fpurge-tests (Files): Likewise.
31462         * modules/freadable-tests (Files): Likewise.
31463         * modules/freadahead-tests (Files): Likewise.
31464         * modules/freading-tests (Files): Likewise.
31465         * modules/freadptr-tests (Files): Likewise.
31466         * modules/freadseek-tests (Files): Likewise.
31467         * modules/freopen-tests (Files): Likewise.
31468         * modules/frexp-nolibm-tests (Files): Likewise.
31469         * modules/frexp-tests (Files): Likewise.
31470         * modules/frexpl-nolibm-tests (Files): Likewise.
31471         * modules/frexpl-tests (Files): Likewise.
31472         * modules/fseek-tests (Files): Likewise.
31473         * modules/fseeko-tests (Files): Likewise.
31474         * modules/fstrcmp-tests (Files): Likewise.
31475         * modules/fsync-tests (Files): Likewise.
31476         * modules/ftell-tests (Files): Likewise.
31477         * modules/ftello-tests (Files): Likewise.
31478         * modules/func-tests (Files): Likewise.
31479         * modules/futimens-tests (Files): Likewise.
31480         * modules/fwritable-tests (Files): Likewise.
31481         * modules/fwriting-tests (Files): Likewise.
31482         * modules/getcwd-tests (Files): Likewise.
31483         * modules/getdate-tests (Files): Likewise.
31484         * modules/getdelim-tests (Files): Likewise.
31485         * modules/getdtablesize-tests (Files): Likewise.
31486         * modules/getgroups-tests (Files): Likewise.
31487         * modules/getline-tests (Files): Likewise.
31488         * modules/getndelim2-tests (Files): Likewise.
31489         * modules/glob-tests (Files): Likewise.
31490         * modules/hash-tests (Files): Likewise.
31491         * modules/i-ring-tests (Files): Likewise.
31492         * modules/iconv-tests (Files): Likewise.
31493         * modules/iconv_open-utf-tests (Files): Likewise.
31494         * modules/idpriv-drop-tests (Files): Likewise.
31495         * modules/idpriv-droptemp-tests (Files): Likewise.
31496         * modules/inet_ntop-tests (Files): Likewise.
31497         * modules/inet_pton-tests (Files): Likewise.
31498         * modules/isblank-tests (Files): Likewise.
31499         * modules/isfinite-tests (Files): Likewise.
31500         * modules/isinf-tests (Files): Likewise.
31501         * modules/isnan-tests (Files): Likewise.
31502         * modules/isnand-nolibm-tests (Files): Likewise.
31503         * modules/isnand-tests (Files): Likewise.
31504         * modules/isnanf-nolibm-tests (Files): Likewise.
31505         * modules/isnanf-tests (Files): Likewise.
31506         * modules/isnanl-nolibm-tests (Files): Likewise.
31507         * modules/isnanl-tests (Files): Likewise.
31508         * modules/lchown-tests (Files): Likewise.
31509         * modules/ldexpl-tests (Files): Likewise.
31510         * modules/link-tests (Files): Likewise.
31511         * modules/linkat-tests (Files): Likewise.
31512         * modules/linked-list-tests (Files): Likewise.
31513         * modules/linkedhash-list-tests (Files): Likewise.
31514         * modules/localename-tests (Files): Likewise.
31515         * modules/lseek-tests (Files): Likewise.
31516         * modules/lstat-tests (Files): Likewise.
31517         * modules/mbmemcasecmp-tests (Files): Likewise.
31518         * modules/mbmemcasecoll-tests (Files): Likewise.
31519         * modules/mbrtowc-tests (Files): Likewise.
31520         * modules/mbscasecmp-tests (Files): Likewise.
31521         * modules/mbscasestr-tests (Files): Likewise.
31522         * modules/mbschr-tests (Files): Likewise.
31523         * modules/mbscspn-tests (Files): Likewise.
31524         * modules/mbsinit-tests (Files): Likewise.
31525         * modules/mbsncasecmp-tests (Files): Likewise.
31526         * modules/mbsnrtowcs-tests (Files): Likewise.
31527         * modules/mbspbrk-tests (Files): Likewise.
31528         * modules/mbspcasecmp-tests (Files): Likewise.
31529         * modules/mbsrchr-tests (Files): Likewise.
31530         * modules/mbsrtowcs-tests (Files): Likewise.
31531         * modules/mbsspn-tests (Files): Likewise.
31532         * modules/mbsstr-tests (Files): Likewise.
31533         * modules/memchr-tests (Files): Likewise.
31534         * modules/memchr2-tests (Files): Likewise.
31535         * modules/memcmp-tests (Files): Likewise.
31536         * modules/memmem-tests (Files): Likewise.
31537         * modules/memrchr-tests (Files): Likewise.
31538         * modules/mkdir-tests (Files): Likewise.
31539         * modules/mkfifo-tests (Files): Likewise.
31540         * modules/mkfifoat-tests (Files): Likewise.
31541         * modules/mknod-tests (Files): Likewise.
31542         * modules/nanosleep-tests (Files): Likewise.
31543         * modules/nl_langinfo-tests (Files): Likewise.
31544         * modules/obstack-printf-tests (Files): Likewise.
31545         * modules/open-tests (Files): Likewise.
31546         * modules/openat-tests (Files): Likewise.
31547         * modules/pipe-filter-gi-tests (Files): Likewise.
31548         * modules/pipe-filter-ii-tests (Files): Likewise.
31549         * modules/pipe2-tests (Files): Likewise.
31550         * modules/popen-safer-tests (Files): Likewise.
31551         * modules/popen-tests (Files): Likewise.
31552         * modules/posixtm-tests (Files): Likewise.
31553         * modules/pread-tests (Files): Likewise.
31554         * modules/printf-frexp-tests (Files): Likewise.
31555         * modules/printf-frexpl-tests (Files): Likewise.
31556         * modules/printf-posix-tests (Files): Likewise.
31557         * modules/priv-set-tests (Files): Likewise.
31558         * modules/quotearg-tests (Files): Likewise.
31559         * modules/random_r-tests (Files): Likewise.
31560         * modules/rawmemchr-tests (Files): Likewise.
31561         * modules/rbtree-list-tests (Files): Likewise.
31562         * modules/rbtree-oset-tests (Files): Likewise.
31563         * modules/rbtreehash-list-tests (Files): Likewise.
31564         * modules/readlink-tests (Files): Likewise.
31565         * modules/remove-tests (Files): Likewise.
31566         * modules/rename-tests (Files): Likewise.
31567         * modules/renameat-tests (Files): Likewise.
31568         * modules/rmdir-tests (Files): Likewise.
31569         * modules/round-tests (Files): Likewise.
31570         * modules/roundf-tests (Files): Likewise.
31571         * modules/roundl-tests (Files): Likewise.
31572         * modules/safe-alloc-tests (Files): Likewise.
31573         * modules/setenv-tests (Files): Likewise.
31574         * modules/sigaction-tests (Files): Likewise.
31575         * modules/signbit-tests (Files): Likewise.
31576         * modules/sleep-tests (Files): Likewise.
31577         * modules/snprintf-posix-tests (Files): Likewise.
31578         * modules/snprintf-tests (Files): Likewise.
31579         * modules/sprintf-posix-tests (Files): Likewise.
31580         * modules/stat-tests (Files): Likewise.
31581         * modules/stat-time-tests (Files): Likewise.
31582         * modules/strcasestr-tests (Files): Likewise.
31583         * modules/strchrnul-tests (Files): Likewise.
31584         * modules/strerror-tests (Files): Likewise.
31585         * modules/striconv-tests (Files): Likewise.
31586         * modules/striconveh-tests (Files): Likewise.
31587         * modules/striconveha-tests (Files): Likewise.
31588         * modules/strsignal-tests (Files): Likewise.
31589         * modules/strstr-tests (Files): Likewise.
31590         * modules/strtod-tests (Files): Likewise.
31591         * modules/strverscmp-tests (Files): Likewise.
31592         * modules/symlink-tests (Files): Likewise.
31593         * modules/symlinkat-tests (Files): Likewise.
31594         * modules/trunc-tests (Files): Likewise.
31595         * modules/truncf-tests (Files): Likewise.
31596         * modules/truncl-tests (Files): Likewise.
31597         * modules/uname-tests (Files): Likewise.
31598         * modules/unicase/cased-tests (Files): Likewise.
31599         * modules/unicase/ignorable-tests (Files): Likewise.
31600         * modules/unicase/locale-language-tests (Files): Likewise.
31601         * modules/unicase/tolower-tests (Files): Likewise.
31602         * modules/unicase/totitle-tests (Files): Likewise.
31603         * modules/unicase/toupper-tests (Files): Likewise.
31604         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31605         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31606         * modules/unicase/u8-casefold-tests (Files): Likewise.
31607         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31608         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31609         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31610         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31611         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31612         * modules/unicase/u8-tolower-tests (Files): Likewise.
31613         * modules/unicase/u8-totitle-tests (Files): Likewise.
31614         * modules/unicase/u8-toupper-tests (Files): Likewise.
31615         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31616         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31617         * modules/unicase/u16-casefold-tests (Files): Likewise.
31618         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31619         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31620         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31621         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31622         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31623         * modules/unicase/u16-tolower-tests (Files): Likewise.
31624         * modules/unicase/u16-totitle-tests (Files): Likewise.
31625         * modules/unicase/u16-toupper-tests (Files): Likewise.
31626         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31627         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31628         * modules/unicase/u32-casefold-tests (Files): Likewise.
31629         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31630         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31631         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31632         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31633         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31634         * modules/unicase/u32-tolower-tests (Files): Likewise.
31635         * modules/unicase/u32-totitle-tests (Files): Likewise.
31636         * modules/unicase/u32-toupper-tests (Files): Likewise.
31637         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31638         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31639         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31640         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31641         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31642         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31643         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31644         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31645         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31646         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31647         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31648         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31649         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31650         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31651         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31652         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31653         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31654         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31655         * modules/unictype/block-list-tests (Files): Likewise.
31656         * modules/unictype/block-of-tests (Files): Likewise.
31657         * modules/unictype/block-test-tests (Files): Likewise.
31658         * modules/unictype/category-C-tests (Files): Likewise.
31659         * modules/unictype/category-Cc-tests (Files): Likewise.
31660         * modules/unictype/category-Cf-tests (Files): Likewise.
31661         * modules/unictype/category-Cn-tests (Files): Likewise.
31662         * modules/unictype/category-Co-tests (Files): Likewise.
31663         * modules/unictype/category-Cs-tests (Files): Likewise.
31664         * modules/unictype/category-L-tests (Files): Likewise.
31665         * modules/unictype/category-Ll-tests (Files): Likewise.
31666         * modules/unictype/category-Lm-tests (Files): Likewise.
31667         * modules/unictype/category-Lo-tests (Files): Likewise.
31668         * modules/unictype/category-Lt-tests (Files): Likewise.
31669         * modules/unictype/category-Lu-tests (Files): Likewise.
31670         * modules/unictype/category-M-tests (Files): Likewise.
31671         * modules/unictype/category-Mc-tests (Files): Likewise.
31672         * modules/unictype/category-Me-tests (Files): Likewise.
31673         * modules/unictype/category-Mn-tests (Files): Likewise.
31674         * modules/unictype/category-N-tests (Files): Likewise.
31675         * modules/unictype/category-Nd-tests (Files): Likewise.
31676         * modules/unictype/category-Nl-tests (Files): Likewise.
31677         * modules/unictype/category-No-tests (Files): Likewise.
31678         * modules/unictype/category-P-tests (Files): Likewise.
31679         * modules/unictype/category-Pc-tests (Files): Likewise.
31680         * modules/unictype/category-Pd-tests (Files): Likewise.
31681         * modules/unictype/category-Pe-tests (Files): Likewise.
31682         * modules/unictype/category-Pf-tests (Files): Likewise.
31683         * modules/unictype/category-Pi-tests (Files): Likewise.
31684         * modules/unictype/category-Po-tests (Files): Likewise.
31685         * modules/unictype/category-Ps-tests (Files): Likewise.
31686         * modules/unictype/category-S-tests (Files): Likewise.
31687         * modules/unictype/category-Sc-tests (Files): Likewise.
31688         * modules/unictype/category-Sk-tests (Files): Likewise.
31689         * modules/unictype/category-Sm-tests (Files): Likewise.
31690         * modules/unictype/category-So-tests (Files): Likewise.
31691         * modules/unictype/category-Z-tests (Files): Likewise.
31692         * modules/unictype/category-Zl-tests (Files): Likewise.
31693         * modules/unictype/category-Zp-tests (Files): Likewise.
31694         * modules/unictype/category-Zs-tests (Files): Likewise.
31695         * modules/unictype/category-and-not-tests (Files): Likewise.
31696         * modules/unictype/category-and-tests (Files): Likewise.
31697         * modules/unictype/category-byname-tests (Files): Likewise.
31698         * modules/unictype/category-name-tests (Files): Likewise.
31699         * modules/unictype/category-none-tests (Files): Likewise.
31700         * modules/unictype/category-of-tests (Files): Likewise.
31701         * modules/unictype/category-or-tests (Files): Likewise.
31702         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31703         * modules/unictype/combining-class-tests (Files): Likewise.
31704         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31705         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31706         * modules/unictype/ctype-blank-tests (Files): Likewise.
31707         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31708         * modules/unictype/ctype-digit-tests (Files): Likewise.
31709         * modules/unictype/ctype-graph-tests (Files): Likewise.
31710         * modules/unictype/ctype-lower-tests (Files): Likewise.
31711         * modules/unictype/ctype-print-tests (Files): Likewise.
31712         * modules/unictype/ctype-punct-tests (Files): Likewise.
31713         * modules/unictype/ctype-space-tests (Files): Likewise.
31714         * modules/unictype/ctype-upper-tests (Files): Likewise.
31715         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31716         * modules/unictype/decimal-digit-tests (Files): Likewise.
31717         * modules/unictype/digit-tests (Files): Likewise.
31718         * modules/unictype/mirror-tests (Files): Likewise.
31719         * modules/unictype/numeric-tests (Files): Likewise.
31720         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31721         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31722         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31723         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31724         Likewise.
31725         * modules/unictype/property-bidi-block-separator-tests (Files):
31726         Likewise.
31727         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31728         Likewise.
31729         * modules/unictype/property-bidi-common-separator-tests (Files):
31730         Likewise.
31731         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31732         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31733         Likewise.
31734         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31735         Likewise.
31736         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31737         Likewise.
31738         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31739         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31740         Likewise.
31741         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31742         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31743         Likewise.
31744         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31745         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31746         * modules/unictype/property-bidi-segment-separator-tests (Files):
31747         Likewise.
31748         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31749         * modules/unictype/property-byname-tests (Files): Likewise.
31750         * modules/unictype/property-combining-tests (Files): Likewise.
31751         * modules/unictype/property-composite-tests (Files): Likewise.
31752         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31753         * modules/unictype/property-dash-tests (Files): Likewise.
31754         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31755         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31756         Likewise.
31757         * modules/unictype/property-deprecated-tests (Files): Likewise.
31758         * modules/unictype/property-diacritic-tests (Files): Likewise.
31759         * modules/unictype/property-extender-tests (Files): Likewise.
31760         * modules/unictype/property-format-control-tests (Files): Likewise.
31761         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31762         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31763         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31764         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31765         * modules/unictype/property-hyphen-tests (Files): Likewise.
31766         * modules/unictype/property-id-continue-tests (Files): Likewise.
31767         * modules/unictype/property-id-start-tests (Files): Likewise.
31768         * modules/unictype/property-ideographic-tests (Files): Likewise.
31769         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31770         * modules/unictype/property-ids-trinary-operator-tests (Files):
31771         Likewise.
31772         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31773         * modules/unictype/property-iso-control-tests (Files): Likewise.
31774         * modules/unictype/property-join-control-tests (Files): Likewise.
31775         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31776         * modules/unictype/property-line-separator-tests (Files): Likewise.
31777         * modules/unictype/property-logical-order-exception-tests (Files):
31778         Likewise.
31779         * modules/unictype/property-lowercase-tests (Files): Likewise.
31780         * modules/unictype/property-math-tests (Files): Likewise.
31781         * modules/unictype/property-non-break-tests (Files): Likewise.
31782         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31783         * modules/unictype/property-numeric-tests (Files): Likewise.
31784         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31785         * modules/unictype/property-other-default-ignorable-code-point-tests
31786         (Files): Likewise.
31787         * modules/unictype/property-other-grapheme-extend-tests (Files):
31788         Likewise.
31789         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31790         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31791         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31792         * modules/unictype/property-other-math-tests (Files): Likewise.
31793         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31794         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31795         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31796         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31797         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31798         * modules/unictype/property-private-use-tests (Files): Likewise.
31799         * modules/unictype/property-punctuation-tests (Files): Likewise.
31800         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31801         * modules/unictype/property-radical-tests (Files): Likewise.
31802         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31803         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31804         * modules/unictype/property-space-tests (Files): Likewise.
31805         * modules/unictype/property-terminal-punctuation-tests (Files):
31806         Likewise.
31807         * modules/unictype/property-test-tests (Files): Likewise.
31808         * modules/unictype/property-titlecase-tests (Files): Likewise.
31809         * modules/unictype/property-unassigned-code-value-tests (Files):
31810         Likewise.
31811         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31812         * modules/unictype/property-uppercase-tests (Files): Likewise.
31813         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31814         * modules/unictype/property-white-space-tests (Files): Likewise.
31815         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31816         * modules/unictype/property-xid-start-tests (Files): Likewise.
31817         * modules/unictype/property-zero-width-tests (Files): Likewise.
31818         * modules/unictype/scripts-tests (Files): Likewise.
31819         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31820         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31821         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31822         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31823         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31824         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31825         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31826         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31827         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31828         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31829         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31830         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31831         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31832         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31833         * modules/uninorm/composition-tests (Files): Likewise.
31834         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31835         * modules/uninorm/decomposition-tests (Files): Likewise.
31836         * modules/uninorm/filter-tests (Files): Likewise.
31837         * modules/uninorm/nfc-tests (Files): Likewise.
31838         * modules/uninorm/nfd-tests (Files): Likewise.
31839         * modules/uninorm/nfkc-tests (Files): Likewise.
31840         * modules/uninorm/nfkd-tests (Files): Likewise.
31841         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31842         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31843         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31844         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31845         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31846         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31847         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31848         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31849         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31850         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31851         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31852         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31853         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31854         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31855         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31856         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31857         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31858         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31859         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31860         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31861         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31862         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31863         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31864         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31865         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31866         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31867         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31868         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31869         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31870         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31871         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31872         * modules/uniwidth/u8-width-tests (Files): Likewise.
31873         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31874         * modules/uniwidth/u16-width-tests (Files): Likewise.
31875         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31876         * modules/uniwidth/u32-width-tests (Files): Likewise.
31877         * modules/uniwidth/width-tests (Files): Likewise.
31878         * modules/unlink-tests (Files): Likewise.
31879         * modules/unsetenv-tests (Files): Likewise.
31880         * modules/usleep-tests (Files): Likewise.
31881         * modules/utimens-tests (Files): Likewise.
31882         * modules/utimensat-tests (Files): Likewise.
31883         * modules/vasnprintf-posix-tests (Files): Likewise.
31884         * modules/vasnprintf-tests (Files): Likewise.
31885         * modules/vasprintf-posix-tests (Files): Likewise.
31886         * modules/vasprintf-tests (Files): Likewise.
31887         * modules/vdprintf-posix-tests (Files): Likewise.
31888         * modules/vfprintf-posix-tests (Files): Likewise.
31889         * modules/vprintf-posix-tests (Files): Likewise.
31890         * modules/vsnprintf-posix-tests (Files): Likewise.
31891         * modules/vsnprintf-tests (Files): Likewise.
31892         * modules/vsprintf-posix-tests (Files): Likewise.
31893         * modules/wcrtomb-tests (Files): Likewise.
31894         * modules/wcsnrtombs-tests (Files): Likewise.
31895         * modules/wcsrtombs-tests (Files): Likewise.
31896         * modules/wctype-tests (Files): Likewise.
31897         * modules/wcwidth-tests (Files): Likewise.
31898         * modules/xmemdup0-tests (Files): Likewise.
31899         * modules/xprintf-posix-tests (Files): Likewise.
31900         * modules/xvasprintf-tests (Files): Likewise.
31901
31902 2009-12-24  Eric Blake  <ebb9@byu.net>
31903
31904         test-nanosleep: fix typo
31905         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31906         patch.
31907         Reported by Bruno Haible.
31908
31909 2009-12-24  Bruno Haible  <bruno@clisp.org>
31910
31911         Reduce namespace pollution on glibc systems.
31912         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31913         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31914         systems.
31915         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31916         <getopt.h> on glibc systems.
31917         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31918         systems.
31919         * lib/fcntl.c: Include <unistd.h> here instead.
31920
31921 2009-12-24  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31924
31925 2009-12-24  Eric Blake  <ebb9@byu.net>
31926
31927         tests: add signature checks
31928         * tests/signature.h (SIGNATURE_CHECK): New file.
31929         * modules/atexit-tests (Files): Use it.
31930         * modules/btowc-tests (Files): Likewise.
31931         * modules/canonicalize-lgpl-tests (Files): Likewise.
31932         * modules/ceilf-tests (Files): Likewise.
31933         * modules/ceill-tests (Files): Likewise.
31934         * modules/chown-tests (Files): Likewise.
31935         * modules/dprintf-posix-tests (Files): Likewise.
31936         * modules/dup2-tests (Files): Likewise.
31937         * modules/dup3-tests (Files): Likewise.
31938         * modules/duplocale-tests (Files): Likewise.
31939         * modules/fchdir-tests (Files): Likewise.
31940         * modules/fcntl-tests (Files): Likewise.
31941         * modules/fdopendir-tests (Files): Likewise.
31942         * modules/fflush-tests (Files): Likewise.
31943         * modules/flock-tests (Files): Likewise.
31944         * modules/floorf-tests (Files): Likewise.
31945         * modules/floorl-tests (Files): Likewise.
31946         * modules/fnmatch-tests (Files): Likewise.
31947         * modules/fopen-tests (Files): Likewise.
31948         * modules/fprintf-posix-tests (Files): Likewise.
31949         * modules/freopen-tests (Files): Likewise.
31950         * modules/frexp-nolibm-tests (Files): Likewise.
31951         * modules/frexp-tests (Files): Likewise.
31952         * modules/frexpl-nolibm-tests (Files): Likewise.
31953         * modules/frexpl-tests (Files): Likewise.
31954         * modules/fseek-tests (Files): Likewise.
31955         * modules/fseeko-tests (Files): Likewise.
31956         * modules/fsync-tests (Files): Likewise.
31957         * modules/ftell-tests (Files): Likewise.
31958         * modules/ftello-tests (Files): Likewise.
31959         * modules/futimens-tests (Files): Likewise.
31960         * modules/getaddrinfo-tests (Files): Likewise.
31961         * modules/getcwd-tests (Files): Likewise.
31962         * modules/getdelim-tests (Files): Likewise.
31963         * modules/getdtablesize-tests (Files): Likewise.
31964         * modules/getgroups-tests (Files): Likewise.
31965         * modules/gethostname-tests (Files): Likewise.
31966         * modules/getline-tests (Files): Likewise.
31967         * modules/getopt-posix-tests (Files): Likewise.
31968         * modules/gettimeofday-tests (Files): Likewise.
31969         * modules/glob-tests (Files): Likewise.
31970         * modules/iconv-tests (Files): Likewise.
31971         * modules/inet_ntop-tests (Files): Likewise.
31972         * modules/inet_pton-tests (Files): Likewise.
31973         * modules/isblank-tests (Files): Likewise.
31974         * modules/lchown-tests (Files): Likewise.
31975         * modules/ldexpl-tests (Files): Likewise.
31976         * modules/link-tests (Files): Likewise.
31977         * modules/linkat-tests (Files): Likewise.
31978         * modules/lseek-tests (Files): Likewise.
31979         * modules/lstat-tests (Files): Likewise.
31980         * modules/mbrtowc-tests (Files): Likewise.
31981         * modules/mbsinit-tests (Files): Likewise.
31982         * modules/mbsnrtowcs-tests (Files): Likewise.
31983         * modules/mbsrtowcs-tests (Files): Likewise.
31984         * modules/memchr-tests (Files): Likewise.
31985         * modules/memcmp-tests (Files): Likewise.
31986         * modules/memmem-tests (Files): Likewise.
31987         * modules/memrchr-tests (Files): Likewise.
31988         * modules/mkdir-tests (Files): Likewise.
31989         * modules/mkfifo-tests (Files): Likewise.
31990         * modules/mkfifoat-tests (Files): Likewise.
31991         * modules/mknod-tests (Files): Likewise.
31992         * modules/nanosleep-tests (Files): Likewise.
31993         * modules/nl_langinfo-tests (Files): Likewise.
31994         * modules/obstack-printf-tests (Files): Likewise.
31995         * modules/open-tests (Files): Likewise.
31996         * modules/openat-tests (Files): Likewise.
31997         * modules/perror-tests (Files): Likewise.
31998         * modules/pipe2-tests (Files): Likewise.
31999         * modules/poll-tests (Files): Likewise.
32000         * modules/popen-tests (Files): Likewise.
32001         * modules/posix_spawn-tests (Files): Likewise.
32002         * modules/posix_spawnp-tests (Files): Likewise.
32003         * modules/pread-tests (Files): Likewise.
32004         * modules/printf-posix-tests (Files): Likewise.
32005         * modules/pty-tests (Files): Likewise.
32006         * modules/random_r-tests (Files): Likewise.
32007         * modules/rawmemchr-tests (Files): Likewise.
32008         * modules/readlink-tests (Files): Likewise.
32009         * modules/remove-tests (Files): Likewise.
32010         * modules/rename-tests (Files): Likewise.
32011         * modules/renameat-tests (Files): Likewise.
32012         * modules/rmdir-tests (Files): Likewise.
32013         * modules/round-tests (Files): Likewise.
32014         * modules/roundf-tests (Files): Likewise.
32015         * modules/roundl-tests (Files): Likewise.
32016         * modules/select-tests (Files): Likewise.
32017         * modules/setenv-tests (Files): Likewise.
32018         * modules/sigaction-tests (Files): Likewise.
32019         * modules/sleep-tests (Files): Likewise.
32020         * modules/snprintf-posix-tests (Files): Likewise.
32021         * modules/snprintf-tests (Files): Likewise.
32022         * modules/sprintf-posix-tests (Files): Likewise.
32023         * modules/stat-tests (Files): Likewise.
32024         * modules/strcasestr-tests (Files): Likewise.
32025         * modules/strchrnul-tests (Files): Likewise.
32026         * modules/strerror-tests (Files): Likewise.
32027         * modules/strsignal-tests (Files): Likewise.
32028         * modules/strstr-tests (Files): Likewise.
32029         * modules/strtod-tests (Files): Likewise.
32030         * modules/strverscmp-tests (Files): Likewise.
32031         * modules/symlink-tests (Files): Likewise.
32032         * modules/symlinkat-tests (Files): Likewise.
32033         * modules/times-tests (Files): Likewise.
32034         * modules/trunc-tests (Files): Likewise.
32035         * modules/truncf-tests (Files): Likewise.
32036         * modules/truncl-tests (Files): Likewise.
32037         * modules/tsearch-tests (Files): Likewise.
32038         * modules/uname-tests (Files): Likewise.
32039         * modules/unlink-tests (Files): Likewise.
32040         * modules/unsetenv-tests (Files): Likewise.
32041         * modules/usleep-tests (Files): Likewise.
32042         * modules/utimensat-tests (Files): Likewise.
32043         * modules/vasprintf-tests (Files): Likewise.
32044         * modules/vdprintf-posix-tests (Files): Likewise.
32045         * modules/vfprintf-posix-tests (Files): Likewise.
32046         * modules/vprintf-posix-tests (Files): Likewise.
32047         * modules/vsnprintf-posix-tests (Files): Likewise.
32048         * modules/vsnprintf-tests (Files): Likewise.
32049         * modules/vsprintf-posix-tests (Files): Likewise.
32050         * modules/wcrtomb-tests (Files): Likewise.
32051         * modules/wcsnrtombs-tests (Files): Likewise.
32052         * modules/wcsrtombs-tests (Files): Likewise.
32053         * modules/wcwidth-tests (Files): Likewise.
32054         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32055         * tests/test-isinf.c (isinf): Likewise.
32056         * tests/test-isnan.c (isnan): Likewise.
32057         * tests/test-signbit.c (signbit): Likewise.
32058         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32059         declaration, either as macro or with correct signature.
32060         (select): Ensure function under test is declared with correct
32061         signature in correct header.
32062         * tests/test-atexit.c (atexit): Likewise.
32063         * tests/test-btowc.c (btowc): Likewise.
32064         * tests/test-canonicalize-lgpl.c (realpath)
32065         (canonicalize_file_name): Likewise.
32066         * tests/test-ceilf1.c (ceilf): Likewise.
32067         * tests/test-ceill.c (ceill): Likewise.
32068         * tests/test-chown.c (chown): Likewise.
32069         * tests/test-dprintf-posix.c (dprintf): Likewise.
32070         * tests/test-dup2.c (dup2): Likewise.
32071         * tests/test-dup3.c (dup3): Likewise.
32072         * tests/test-duplocale.c (duplocale): Likewise.
32073         * tests/test-fchdir.c (fchdir): Likewise.
32074         * tests/test-fchownat.c (fchownat): Likewise.
32075         * tests/test-fcntl.c (fcntl): Likewise.
32076         * tests/test-fdopendir.c (fdopendir): Likewise.
32077         * tests/test-fflush.c (fflush): Likewise.
32078         * tests/test-flock.c (flock): Likewise.
32079         * tests/test-floorf1.c (floorf): Likewise.
32080         * tests/test-floorl.c (floorl): Likewise.
32081         * tests/test-fnmatch.c (fnmatch): Likewise.
32082         * tests/test-fopen.c (fopen): Likewise.
32083         * tests/test-fprintf-posix.c (fprintf): Likewise.
32084         * tests/test-freopen.c (freopen): Likewise.
32085         * tests/test-frexp.c (frexp): Likewise.
32086         * tests/test-frexpl.c (frexpl): Likewise.
32087         * tests/test-fseek.c (fseek): Likewise.
32088         * tests/test-fseeko.c (fseeko): Likewise.
32089         * tests/test-fstatat.c (fstatat): Likewise.
32090         * tests/test-fsync.c (fsync): Likewise.
32091         * tests/test-ftell.c (ftell): Likewise.
32092         * tests/test-ftello.c (ftello): Likewise.
32093         * tests/test-futimens.c (futimens): Likewise.
32094         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32095         (gai_strerror): Likewise.
32096         * tests/test-getcwd.c (getcwd): Likewise.
32097         * tests/test-getdelim.c (getdelim): Likewise.
32098         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32099         * tests/test-getgroups.c (getgroups): Likewise.
32100         * tests/test-gethostname.c (gethostname): Likewise.
32101         * tests/test-getline.c (getline): Likewise.
32102         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32103         Likewise.
32104         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32105         * tests/test-glob.c (glob, globfree): Likewise.
32106         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32107         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32108         * tests/test-inet_pton.c (inet_pton): Likewise.
32109         * tests/test-isblank.c (isblank): Likewise.
32110         * tests/test-lchown.c (lchown): Likewise.
32111         * tests/test-ldexpl.c (ldexpl): Likewise.
32112         * tests/test-link.c (link): Likewise.
32113         * tests/test-linkat.c (linkat): Likewise.
32114         * tests/test-lseek.c (lseek): Likewise.
32115         * tests/test-lstat.c (lstat): Likewise.
32116         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32117         * tests/test-mbsinit.c (mbsinit): Likewise.
32118         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32119         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32120         * tests/test-memchr.c (memchr): Likewise.
32121         * tests/test-memcmp.c (memcmp): Likewise.
32122         * tests/test-memmem.c (memmem): Likewise.
32123         * tests/test-memrchr.c (memrchr): Likewise.
32124         * tests/test-mkdir.c (mkdir): Likewise.
32125         * tests/test-mkdirat.c (mkdirat): Likewise.
32126         * tests/test-mkfifo.c (mkfifo): Likewise.
32127         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32128         * tests/test-mknod.c (mknod): Likewise.
32129         * tests/test-nanosleep.c (nanosleep): Likewise.
32130         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32131         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32132         Likewise.
32133         * tests/test-open.c (open): Likewise.
32134         * tests/test-openat.c (openat): Likewise.
32135         * tests/test-perror.c (perror): Likewise.
32136         * tests/test-pipe2.c (pipe2): Likewise.
32137         * tests/test-poll.c (poll): Likewise.
32138         * tests/test-popen.c (popen, pclose): Likewise.
32139         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32140         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32141         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32142         (posix_spawn_file_actions_destroy)
32143         (posix_spawn_file_actions_addclose)
32144         (posix_spawn_file_actions_addopen)
32145         (posix_spawn_file_actions_adddup2): Likewise.
32146         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32147         * tests/test-pread.c (pread): Likewise.
32148         * tests/test-printf-posix.c (printf): Likewise.
32149         * tests/test-pty.c (openpty, forkpty): Likewise.
32150         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32151         (random_r): Likewise.
32152         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32153         * tests/test-readlink.c (readlink): Likewise.
32154         * tests/test-remove.c (remove): Likewise.
32155         * tests/test-rename.c (rename): Likewise.
32156         * tests/test-renameat.c (renameat): Likewise.
32157         * tests/test-rmdir.c (rmdir): Likewise.
32158         * tests/test-round1.c (round): Likewise.
32159         * tests/test-roundf1.c (roundf): Likewise.
32160         * tests/test-roundl.c (roundl): Likewise.
32161         * tests/test-setenv.c (setenv): Likewise.
32162         * tests/test-sigaction.c (sigaction): Likewise.
32163         * tests/test-sleep.c (sleep): Likewise.
32164         * tests/test-snprintf.c (snprintf): Likewise.
32165         * tests/test-sprintf-posix.c (sprintf): Likewise.
32166         * tests/test-stat.c (stat): Likewise.
32167         * tests/test-stpncpy.c (stpncpy): Likewise.
32168         * tests/test-strcasestr.c (strcasestr): Likewise.
32169         * tests/test-strchrnul.c (strchrnul): Likewise.
32170         * tests/test-strerror.c (strerror): Likewise.
32171         * tests/test-strsignal.c (strsignal): Likewise.
32172         * tests/test-strstr.c (strstr): Likewise.
32173         * tests/test-strtod.c (strtod): Likewise.
32174         * tests/test-strverscmp.c (strverscmp): Likewise.
32175         * tests/test-symlink.c (symlink): Likewise.
32176         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32177         * tests/test-times.c (times): Likewise.
32178         * tests/test-trunc1.c (trunc): Likewise.
32179         * tests/test-truncf1.c (truncf): Likewise.
32180         * tests/test-truncl.c (truncl): Likewise.
32181         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32182         Likewise.
32183         * tests/test-uname.c (uname): Likewise.
32184         * tests/test-unlink.c (unlink): Likewise.
32185         * tests/test-unlinkat.c (unlinkat): Likewise.
32186         * tests/test-unsetenv.c (unsetenv): Likewise.
32187         * tests/test-usleep.c (usleep): Likewise.
32188         * tests/test-utimensat.c (utimensat): Likewise.
32189         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32190         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32191         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32192         * tests/test-vprintf-posix.c (vprintf): Likewise.
32193         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32194         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32195         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32196         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32197         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32198         * tests/test-wcwidth.c (wcwidth): Likewise.
32199
32200         build: pull in conditional headers during GNULIB_POSIXCHECK
32201         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32202         definitions from any conditionally-included headers.
32203         * lib/stdlib.in.h (includes): Likewise.
32204         * lib/unistd.in.h (includes): Likewise.
32205
32206 2009-12-24  Bruno Haible  <bruno@clisp.org>
32207
32208         * tests/test-argv-iter.c: Include header file being tested immediately
32209         after config.h.
32210         * tests/test-base64.c: Likewise.
32211         * tests/test-flock.c: Likewise.
32212         * tests/test-fsync.c: Likewise.
32213         * tests/test-getdate.c: Likewise.
32214         * tests/test-getndelim2.c: Likewise.
32215         * tests/test-isfinite.c: Likewise.
32216         * tests/test-isinf.c: Likewise.
32217         * tests/test-strerror.c: Likewise.
32218         * tests/test-strsignal.c: Likewise.
32219
32220 2009-12-23  Eric Blake  <ebb9@byu.net>
32221
32222         unistd: work around cygwin bug
32223         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32224         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32225         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32226
32227 2009-12-23  Bruno Haible  <bruno@clisp.org>
32228
32229         localename: More tests.
32230         * tests/test-localename.c (SIZEOF): New macro.
32231         (categories): New variable.
32232         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32233         test_locale_name_default): Add test w.r.t. thread locale.
32234         (test_locale_name_thread): New function.
32235         (main): Invoke it.
32236
32237         localename: Make aware of thread locale.
32238         * lib/localename.h (gl_locale_name_thread): New declaration.
32239         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32240         behaviour with respect to thread locale.
32241         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32242         <langinfo.h>, glthread/lock.h.
32243         (SIZE_BITS): New macro.
32244         (string_hash): New function.
32245         (struct hash_node): New type.
32246         (HASH_TABLE_SIZE): New macro.
32247         (struniq_hash_table, struniq_lock): New variables.
32248         (struniq): New function.
32249         (gl_locale_name_thread): New function.
32250         (gl_locale_name): Invoke it.
32251         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32252         * modules/localename (Depends-on): Add lock.
32253         Reported by Mike Gran <spk121@yahoo.com>.
32254
32255 2009-12-23  Eric Blake  <ebb9@byu.net>
32256
32257         va-args: new module
32258         * modules/va-args: New file.
32259         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32260         * MODULES.html.sh (Core language properties): Mention it.
32261
32262         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32263         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32264         named alias for __attribute__((__unused__)).
32265         * lib/chown.c: Update client.
32266         * lib/fchmodat.c: Likewise.
32267         * lib/fts.c: Likewise.
32268         * lib/getdate.y: Likewise.
32269         * lib/getgroups.c: Likewise.
32270         * lib/getopt.c: Likewise.
32271         * lib/getugroups.c: Likewise.
32272         * lib/mkdir.c: Likewise.
32273         * lib/mkfifo.c: Likewise.
32274         * lib/mkfifoat.c: Likewise.
32275         * lib/mknod.c: Likewise.
32276         * lib/mknodat.c: Likewise.
32277         * lib/readlink.c: Likewise.
32278         * lib/se-context.in.h: Likewise.
32279         * lib/se-selinux.in.h: Likewise.
32280         * lib/sockets.c: Likewise.
32281         * lib/symlink.c: Likewise.
32282         * lib/symlinkat.c: Likewise.
32283         * lib/unicodeio.c: Likewise.
32284         * lib/unistr.h: Likewise.
32285         * tests/test-areadlink.c: Likewise.
32286         * tests/test-areadlinkat.c: Likewise.
32287         * tests/test-filenamecat.c: Likewise.
32288         * tests/test-fseeko.c: Likewise.
32289         * tests/test-ftello.c: Likewise.
32290         * tests/test-getdate.c: Likewise.
32291         * tests/test-getgroups.c: Likewise.
32292         * tests/test-gethostname.c: Likewise.
32293         * tests/test-quotearg.c: Likewise.
32294         * tests/test-version-etc.c: Likewise.
32295         * tests/test-xalloc-die.c: Likewise.
32296         * tests/test-xfprintf-posix.c: Likewise.
32297         * tests/test-xprintf-posix.c: Likewise.
32298         * tests/test-xvasprintf.c: Likewise.
32299
32300         tests: avoid compiler warnings
32301         * tests/test-fcntl.c (main): Delete unused parameters.
32302         * tests/test-freopen-safer.c (main): Likewise.
32303         * tests/test-xalloc-die.c (main): Mark unused parameters.
32304         * tests/test-fseeko.c (main): Likewise.
32305         * tests/test-ftello.c (main): Likewise.
32306         * tests/test-nanosleep.c (main): Avoid declaration warning.
32307         * tests/test-sleep.c (main): Likewise.
32308         * tests/test-unsetenv.c (main): Silence warning about string
32309         literal.
32310         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32311
32312 2009-12-23  Bruno Haible  <bruno@clisp.org>
32313
32314         * tests/test-localename.c (test_locale_name): New function, extracted
32315         from main. Also test mixed situations.
32316         (test_locale_name_posix, test_locale_name_environ,
32317         test_locale_name_default): New functions.
32318         (main): Invoke them all.
32319         * modules/localename-tests (configure.ac): Test for newlocale.
32320
32321 2009-12-23  Bruno Haible  <bruno@clisp.org>
32322
32323         unistd: Ensure getcwd gets declared before being overridden.
32324         * lib/unistd.in.h: Conditionally include <io.h>.
32325
32326 2009-12-22  Bruno Haible  <bruno@clisp.org>
32327
32328         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32329         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32330         (gl_WCHAR_H): Invoke it.
32331         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32332         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32333         Reported by Karl Berry <karl@freefriends.org>.
32334
32335 2009-12-22  Eric Blake  <ebb9@byu.net>
32336
32337         math, unistd: avoid redundant includes
32338         * lib/math.in.h (isnan): No need to re-include <math.h>.
32339         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32340
32341         getsubopt: work around cygwin bug
32342         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32343         avoid conflicting with system getsubopt.
32344         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32345         bug.
32346
32347         getopt: synchronize from glibc
32348         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32349         parameter order.  Adjust all callers.
32350         (_getopt_internal_r, main): Adjust quoting in error messages.
32351         Drop considerations for outdated POSIX 1003.2 error message.
32352         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32353         callers.
32354         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32355
32356         test-getopt: test stderr behavior
32357         * modules/getopt-posix-tests (Depends-on): Add dup2.
32358         * tests/test-getopt.c (ASSERT): Avoid stderr.
32359         (main): Move stderr to a temporary file.
32360         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32361         Instead, add parameter to inform caller if output occurred.
32362         (test_getopt): Adjust all existing tests to expect silence, and
32363         add new tests of leading ":".
32364         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32365         glibc shortcomings with leading "-:" or "+:" in optstring.
32366         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32367         Likewise.
32368         * doc/posix-functions/getopt.texi (getopt): Likewise.
32369
32370         test-getopt: enhance test
32371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32372         supports optind=0.
32373         * tests/test-getopt.c (OPTIND_MIN): Move...
32374         * tests/test-getopt.h (OPTIND_MIN): ...here.
32375         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32376         Require that optind=0 works, since modern BSD supports it in
32377         addition to optreset, and since coreutils expects it.
32378         (test_getopt_long_only): New test.
32379         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32380         glibc shortcomings with 'W;', and enforcement of optind=0.
32381         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32382         Likewise.
32383
32384 2009-12-21  Bruno Haible  <bruno@clisp.org>
32385
32386         localename: Improvements for MacOS X and Cygwin.
32387         * lib/localename.h (gl_locale_name_environ): New declaration.
32388         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32389         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32390         (gl_locale_name_posix): Invoke it.
32391         (gl_locale_name_default): Add comments. Use Windows native API also on
32392         Cygwin.
32393
32394 2009-12-21  Bruno Haible  <bruno@clisp.org>
32395
32396         Update list of Win32 locale ids.
32397         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32398         (LANG_SAMI): Renamed from LANG_SAAMI.
32399         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32400         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32401         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32402         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32403         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32404         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32405         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32406         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32407         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32408         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32409         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32410         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32411         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32412         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32413         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32414         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32415         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32416         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32417         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32418         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32419         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32420         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32421         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32422         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32423         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32424         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32425         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32426         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32427         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32428         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32429         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32430         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32431         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32432         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32433         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32434         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32435         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32436         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32437         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32438         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32439         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32440         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32441         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32442         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32443         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32444         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32445         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32446         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32447         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32448         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32449         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32450         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32451         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32452         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32453         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32454         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32455         Add more languages and countries for Sami, Sorbian. Add more countries
32456         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32457         for Pashto. Change country for Syriac, Tswana.
32458
32459 2009-12-21  Eric Blake  <ebb9@byu.net>
32460
32461         test-utimens: avoid spurious failure
32462         * tests/test-chown.h (nap): Factor...
32463         * tests/nap.h: ...into new file.
32464         * tests/test-lchown.h (nap): Avoid duplication.
32465         * tests/test-utimens-common.h (nap): Use shared implementation,
32466         necessary on file systems with 1-second resolution.
32467         * modules/chown-tests (Files): Include new file.
32468         * modules/fdutimensat-tests (Files): Likewise.
32469         * modules/futimens-tests (Files): Likewise.
32470         * modules/lchown-tests (Files): Likewise.
32471         * modules/openat-tests (Files): Likewise.
32472         * modules/utimens-tests (Files): Likewise.
32473         * modules/utimensat-tests (Files): Likewise.
32474
32475 2009-12-19  Eric Blake  <ebb9@byu.net>
32476
32477         futimens, utimensat: work around Linux bug
32478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32479         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32480         * lib/utimensat.c (rpl_utimensat): Work around it.
32481         * lib/futimens.c (rpl_futimens): Adjust comment.
32482
32483         utimens: work around Linux ctime bug
32484         * lib/utimens.c (detect_ctime_bug): New helper function.
32485         (update_timespec): Differentiate between workaround needed for
32486         this bug vs. what is needed for systems that lack utimensat.
32487         (fdutimens, lutimens): Work around bug.
32488
32489         utimens: check for ctime update
32490         * tests/test-utimens-common.h (check_ctime): Define.
32491         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32492         * tests/test-futimens.h (test_futimens): Likewise.
32493         * tests/test-lutimens.h (test_lutimens): Likewise.
32494         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32495         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32496
32497 2009-12-19  Bruno Haible  <bruno@clisp.org>
32498
32499         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32500         * tests/test-dprintf-posix2.sh: New file.
32501         * tests/test-dprintf-posix2.c: New file.
32502         * modules/dprintf-posix-tests (Files): Add them.
32503         (configure.ac): Check for getrlimit and setrlimit.
32504         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32505
32506 2009-12-19  Bruno Haible  <bruno@clisp.org>
32507
32508         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32509         * tests/test-fprintf-posix3.sh: New file.
32510         * tests/test-fprintf-posix3.c: New file.
32511         * modules/fprintf-posix-tests (Files): Add them.
32512         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32513
32514 2009-12-19  Eric Blake  <ebb9@byu.net>
32515
32516         dirfd: fix prototype
32517         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32518         * lib/dirfd.c (dirfd): Likewise.
32519
32520         canonicalize: reduce memory usage
32521         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32522         allocation to size.
32523         Reported by Solar Designer <solar@openwall.com>.
32524
32525 2009-12-19  Bruno Haible  <bruno@clisp.org>
32526
32527         New module attribute 'Applicability'.
32528         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32529         * gnulib-tool: New option --extract-applicability.
32530         (func_usage): Document it.
32531         (sed_extract_prog): Recognize it.
32532         (func_get_applicability): New function.
32533         (func_import): Generalize handling of 'link-warning' module.
32534         * modules/link-warning (Applicability): New section.
32535         * modules/arg-nonnull (Applicability): New section.
32536         Repoted by Simon Josefsson <simon@josefsson.org>.
32537
32538 2009-12-19  Bruno Haible  <bruno@clisp.org>
32539
32540         fflush: tweak
32541         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32542         * lib/fseeko.c (rpl_fseeko): Likewise.
32543
32544 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32545
32546         * lib/gl_list.h: Fix typo in comment.
32547
32548 2009-12-16  Eric Blake  <ebb9@byu.net>
32549
32550         fcntl: use to simplify other modules
32551         * modules/cloexec (Depends-on): Add fcntl.
32552         * modules/fchdir (Depends-on): Likewise.
32553         * modules/fd-safer-flag (Depends-on): Likewise.
32554         * modules/unistd-safer (Depends-on): Likewise.
32555         * modules/dup3 (configure.ac): Set module indicator.
32556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32557         missing.
32558         * lib/fchdir.c (_gl_register_dup): Fix comment.
32559         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32560         * lib/dup-safer.c (dup_safer): Likewise.
32561         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32562         * lib/dup3.c (dup3): Likewise.
32563         * tests/test-fchdir.c (main): Enhance test.
32564         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32565
32566         fcntl: port portions of fcntl to mingw
32567         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32568         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32569         replacement for mingw.
32570         * modules/fcntl (Description): Update.
32571         (Depends-on): Add dup2.
32572         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32573         * modules/fcntl-h (Makefile.am): Substitute it.
32574         * lib/fcntl.in.h (fcntl): Update declaration.
32575         (F_DUPFD, F_GETFD): New macros, when needed.
32576         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32577         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32578         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32579         we now guarantee.
32580
32581         fcntl: work around cygwin bug in F_DUPFD
32582         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32583         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32584         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32585         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32586         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32587
32588         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32589         * modules/fcntl (Files): List new files.
32590         (configure.ac): Run a test.
32591         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32592         * lib/fcntl.c (rpl_fcntl): Likewise.
32593         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32594         (gl_FCNTL_H): Always replace fcntl.h.
32595         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32596         * lib/fcntl.in.h (fcntl): Declare replacement.
32597         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32598         needed, plus a witness.
32599         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32600         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32601         * tests/test-fcntl.c: New file.
32602         * modules/fcntl-tests: Likewise.
32603
32604         binary-io: avoid potential compilation warning
32605         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32606         directives.
32607
32608         fflush: avoid compilation error on NetBSD
32609         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32610         between off_t and fpos_t, since the latter is sometimes a struct.
32611         * lib/fseeko.c (rpl_fseeko): Likewise.
32612         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32613
32614 2009-12-15  Eric Blake  <ebb9@byu.net>
32615
32616         fcntl-h, stdio, sys_ioctl: fix declarations
32617         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32618         function must not take arguments.
32619         * lib/sys_ioctl.in.h (ioctl): Likewise.
32620         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32621         (open): Add a link warning.
32622
32623 2009-12-15  Jim Meyering  <meyering@redhat.com>
32624
32625         areadlink, areadlink-with-size: relax license to LGPLv2+
32626         * modules/areadlink (License): Relax to LGPLv2+.
32627         * modules/areadlink-with-size (License): Likewise.
32628
32629 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32630             Bruno Haible  <bruno@clisp.org>
32631
32632         *printf: Fix memory leak.
32633         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32634         * lib/vfprintf.c (vfprintf): Likewise.
32635         * lib/dprintf.c (dprintf): Likewise.
32636         * lib/vdprintf.c (vdprintf): Likewise.
32637
32638 2009-12-14  Eric Blake  <ebb9@byu.net>
32639
32640         accept4: adjust module dependencies
32641         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32642
32643         utimens: one more try at avoiding compiler warning
32644         * lib/utimens.c (lutimens): Lower scope of result.
32645
32646 2009-12-13  Bruno Haible  <bruno@clisp.org>
32647
32648         Move the malloc checking from module 'list' to new module 'xlist'.
32649         * modules/xlist: New file.
32650         * lib/gl_xlist.h: New file.
32651         * lib/gl_xlist.c: New file.
32652         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32653         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32654         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32655         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32656         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32657         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32658         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32659         gl_sortedlist_nx_add): New declarations.
32660         (struct gl_list_implementation): Rename and change methods accordingly.
32661         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32662         (gl_list_nx_create): Renamed from gl_list_create.
32663         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32664         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32665         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32666         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32667         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32668         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32669         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32670         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32671         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32672         gl_list_create_empty.
32673         (gl_list_nx_create): Renamed from gl_list_create.
32674         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32675         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32676         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32677         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32678         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32679         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32680         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32681         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32682         * lib/gl_array_list.c: Don't include xalloc.h.
32683         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32684         NULL upon out-of-memory.
32685         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32686         out-of-memory.
32687         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32688         Change return type to 'int'.
32689         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32690         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32691         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32692         upon out-of-memory.
32693         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32694         upon out-of-memory.
32695         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32696         upon out-of-memory.
32697         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32698         upon out-of-memory.
32699         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32700         out-of-memory.
32701         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32702         Update.
32703         (gl_array_list_implementation): Update.
32704         * lib/gl_carray_list.c: Don't include xalloc.h.
32705         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32706         Return NULL upon out-of-memory.
32707         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32708         out-of-memory.
32709         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32710         Change return type to 'int'.
32711         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32712         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32713         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32714         upon out-of-memory.
32715         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32716         upon out-of-memory.
32717         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32718         out-of-memory.
32719         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32720         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32721         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32722         Update.
32723         (gl_carray_list_implementation): Update.
32724         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32725         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32726         gl_linked_create_empty. Return NULL upon out-of-memory.
32727         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32728         out-of-memory.
32729         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32730         Change return type to 'int'. Return -1 upon out-of-memory.
32731         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32732         out-of-memory.
32733         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32734         upon out-of-memory.
32735         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32736         upon out-of-memory.
32737         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32738         NULL upon out-of-memory.
32739         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32740         upon out-of-memory.
32741         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32742         out-of-memory.
32743         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32744         Update.
32745         * lib/gl_linked_list.c: Don't include xalloc.h.
32746         (gl_linked_list_implementation): Update.
32747         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32748         (add_to_bucket): Change return type to 'int'.
32749         (gl_linkedhash_list_implementation): Update.
32750         * lib/gl_anytree_list1.h (free_subtree): New function.
32751         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32752         gl_tree_create_empty. Return NULL upon out-of-memory.
32753         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32754         Change return type to 'int'. Return -1 upon out-of-memory.
32755         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32756         out-of-memory.
32757         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32758         (gl_tree_remove_node): New function, moved here from
32759         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32760         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32761         Update.
32762         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32763         malloc, not xmalloc. Return NULL upon out-of-memory.
32764         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32765         out-of-memory.
32766         (gl_tree_remove_node_from_tree): New function, extracted from
32767         gl_tree_remove_node.
32768         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32769         upon out-of-memory.
32770         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32771         out-of-memory.
32772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32773         upon out-of-memory.
32774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32775         upon out-of-memory.
32776         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32777         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32778         not xmalloc. Return NULL upon out-of-memory.
32779         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32780         out-of-memory.
32781         (gl_tree_remove_node_from_tree): New function, extracted from
32782         gl_tree_remove_node.
32783         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32784         upon out-of-memory.
32785         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32786         out-of-memory.
32787         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32788         upon out-of-memory.
32789         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32790         upon out-of-memory.
32791         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32792         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32793         gl_anytree_list1.h before gl_anyavltree_list2.h.
32794         (gl_avltree_list_implementation): Update.
32795         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32796         gl_anytree_list1.h before gl_anyavltree_list2.h.
32797         (gl_rbtree_list_implementation): Update.
32798         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32799         Change return type to 'int'. Return -1 upon out-of-memory. Use
32800         __builtin_expect.
32801         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32802         (gl_avltreehash_list_implementation): Update.
32803         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32804         (gl_rbtreehash_list_implementation): Update.
32805         * modules/array-list (Depends-on): Remove xalloc.
32806         * modules/carray-list (Depends-on): Likewise.
32807         * modules/linked-list (Depends-on): Likewise.
32808         * modules/linkedhash-list (Depends-on): Likewise.
32809         * modules/avltree-list (Depends-on): Likewise.
32810         * modules/rbtree-list (Depends-on): Likewise.
32811         * modules/avltreehash-list (Depends-on): Likewise.
32812         * modules/rbtreehash-list (Depends-on): Likewise.
32813
32814         * modules/xsublist: New file.
32815         * lib/gl_xsublist.h: New file.
32816         * lib/gl_xsublist.c: New file.
32817         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32818         (gl_sublist_nx_create): New declaration.
32819         * lib/gl_sublist.c: Don't include xalloc.h.
32820         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32821         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32822         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32823         Change return type to 'int'. Return -1 upon out-of-memory.
32824         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32825         upon out-of-memory.
32826         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32827         NULL upon out-of-memory.
32828         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32829         upon out-of-memory.
32830         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32831         NULL upon out-of-memory.
32832         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32833         NULL upon out-of-memory.
32834         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32835         upon out-of-memory.
32836         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32837         (gl_sublist_list_implementation): Update.
32838         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32839         upon out-of-memory.
32840         * modules/sublist (Depends-on): Remove xalloc.
32841
32842         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32843         * tests/test-carray_list.c: Likewise.
32844         * tests/test-linked_list.c: Likewise.
32845         * tests/test-linkedhash_list.c: Likewise.
32846         * tests/test-avltree_list.c: Likewise.
32847         * tests/test-rbtree_list.c: Likewise.
32848         * tests/test-avltreehash_list.c: Likewise.
32849         * tests/test-rbtreehash_list.c: Likewise.
32850         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32851         * modules/carray-list-tests (Makefile.am): Likewise.
32852         * modules/linked-list-tests (Makefile.am): Likewise.
32853         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32854         * modules/avltree-list-tests (Makefile.am): Likewise.
32855         * modules/rbtree-list-tests (Makefile.am): Likewise.
32856         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32857         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32858
32859         * NEWS: Mention the changes.
32860
32861         * lib/clean-temp.c: Include gl_xlist.h.
32862         * modules/clean-temp (Depends-on): Add xlist.
32863
32864         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32865         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32866
32867         * tests/test-array_oset.c: Include gl_xlist.h.
32868         * modules/array-oset-tests (Depends-on): Add xlist.
32869
32870         Reported by José E. Marchesi <jemarch@gnu.org>.
32871
32872 2009-12-13  Bruno Haible  <bruno@clisp.org>
32873
32874         Move the malloc checking from module 'oset' to new module 'xoset'.
32875         * modules/xoset: New file.
32876         * lib/gl_xoset.h: New file.
32877         * lib/gl_xoset.c: New file.
32878         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32879         declarations.
32880         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32881         (struct gl_oset_implementation): Rename and change methods accordingly.
32882         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32883         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32884         'int'. Mark as __warn_unused_result__.
32885         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32886         gl_oset_create_empty.
32887         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32888         'int'.
32889         * lib/gl_array_oset.c: Don't include xalloc.h.
32890         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32891         malloc, not xmalloc.
32892         (grow): Change return type to 'int'. Don't call xalloc_die.
32893         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32894         to 'int'.
32895         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32896         'int'.
32897         (gl_array_oset_implementation): Update.
32898         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32899         gl_tree_create_empty.
32900         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32901         'int'.
32902         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32903         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32904         xmalloc.
32905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32906         not xmalloc.
32907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32908         xmalloc.
32909         (gl_avltree_oset_implementation): Update.
32910         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32911         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32912         xmalloc.
32913         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32914         not xmalloc.
32915         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32916         xmalloc.
32917         (gl_rbtree_oset_implementation): Update.
32918         * modules/array-oset (Depends-on): Remove xalloc.
32919         * modules/avltree-oset (Depends-on): Likewise.
32920         * modules/rbtree-oset (Depends-on): Likewise.
32921         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32922         * tests/test-avltree_oset.c: Likewise.
32923         * tests/test-rbtree_oset.c: Likewise.
32924         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32925         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32926         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32927         * NEWS: Mention the change.
32928
32929 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32930
32931         maint.mk: allow a project to override release-prep commands
32932         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32933         commands into a new rule.
32934         (release-prep): New rule.
32935         (release-prep-hook): New overridable variable.
32936
32937 2009-12-13  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32940
32941 2009-12-13  Jim Meyering  <meyering@redhat.com>
32942
32943         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32944         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32945
32946 2009-12-12  Bruno Haible  <bruno@clisp.org>
32947
32948         duplocale: Tweak.
32949         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32950
32951 2009-12-12  Karl Berry  <karl@gnu.org>
32952
32953         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32954
32955 2009-12-12  Bruno Haible  <bruno@clisp.org>
32956
32957         * m4/po.m4: Undo incorrect untabification.
32958
32959 2009-12-12  Bruno Haible  <bruno@clisp.org>
32960
32961         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32962         * modules/c-strtod (Depends-on): Add locale.
32963         * modules/c-strtold (Depends-on): Likewise.
32964
32965 2009-12-12  Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32968
32969 2009-12-11  Eric Blake  <ebb9@byu.net>
32970
32971         setenv: relax requirement in light of POSIX ruling
32972         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32973         not NULL.
32974         * tests/test-setenv.c (main): Relax test.
32975         * tests/test-unsetenv.c (main): Likewise.
32976         * doc/posix-functions/setenv.texi (setenv): Document this.
32977         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32978
32979 2009-12-11  Bruno Haible  <bruno@clisp.org>
32980
32981         New module 'fd-safer-flag'.
32982         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32983         * lib/dup-safer.c (dup_safer_flag): Remove function.
32984         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32985         * lib/fd-safer.c (fd_safer_flag): Remove function.
32986         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32987         * modules/cloexec (configure.ac): Drop indicator macro.
32988         * modules/fd-safer-flag: New file.
32989         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32990         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32991         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32992
32993 2009-12-11  Bruno Haible  <bruno@clisp.org>
32994
32995         Tests for module 'nl_langinfo'.
32996         * modules/nl_langinfo-tests: New file.
32997         * tests/test-nl_langinfo.sh: New file.
32998         * tests/test-nl_langinfo.c: New file.
32999
33000         New module 'nl_langinfo'.
33001         * lib/nl_langinfo.c: New file.
33002         * m4/nl_langinfo.m4: New file.
33003         * modules/nl_langinfo: New file.
33004         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33005
33006 2009-12-11  Bruno Haible  <bruno@clisp.org>
33007
33008         Tests for module 'langinfo'.
33009         * modules/langinfo-tests: New file.
33010         * tests/test-langinfo.c: New file.
33011
33012         New module 'langinfo'.
33013         * lib/langinfo.in.h: New file.
33014         * m4/langinfo_h.m4: New file.
33015         * modules/langinfo: New file.
33016         * doc/posix-headers/langinfo.texi: Mention the new module.
33017
33018 2009-12-11  Bruno Haible  <bruno@clisp.org>
33019
33020         * lib/config.charset: Untabify.
33021
33022 2009-12-11  Bruno Haible  <bruno@clisp.org>
33023
33024         * modules/unistd-safer (configure.ac): Drop indicator macro.
33025
33026 2009-12-11  Bruno Haible  <bruno@clisp.org>
33027
33028         Move pipe2-safer code to its own file.
33029         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33030         * lib/pipe-safer.c (pipe2_safer): Remove function.
33031         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33032         (Makefile.am): Add it to lib_SOURCES.
33033
33034 2009-12-10  Bruno Haible  <bruno@clisp.org>
33035
33036         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33037
33038 2009-12-10  Bruno Haible  <bruno@clisp.org>
33039
33040         Declare which arguments expect non-NULL values, for GCC and clang.
33041         * build-aux/arg-nonnull.h: New file.
33042         * modules/arg-nonnull: New file.
33043         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33044         (inet_ntop, inet_pton): Use it.
33045         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33046         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33047         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33048         (open, openat): Use it.
33049         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33050         (fnmatch): Use it.
33051         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33052         (getopt, getopt_long, getopt_long_only): Use it.
33053         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33054         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33055         Use it.
33056         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33057         (iconv_open): Use it.
33058         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33059         (strtoimax, strtoumax): Use it.
33060         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33061         (duplocale): Use it.
33062         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33063         (frexp, frexpl): Use it.
33064         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33065         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33066         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33067         (tsearch, tfind, tdelete, twalk): Use it.
33068         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33069         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33070         sigpending): Use it.
33071         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33072         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33073         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33074         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33075         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33076         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33077         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33078         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33079         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33080         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33081         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33082         Use it.
33083         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33084         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33085         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33086         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33087         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33088         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33089         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33090         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33091         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33092         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33093         strtoull, unsetenv): Use it.
33094         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33095         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33096         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33097         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33098         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33099         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33100         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33101         (strcasecmp, strncasecmp): Use it.
33102         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33103         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33104         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33105         rpl_setsockopt): Use it.
33106         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33107         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33108         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33109         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33110         (gettimeofday): Use it.
33111         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33112         (times): Use it.
33113         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33114         (uname): Use it.
33115         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33116         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33117         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33118         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33119         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33120         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33121         unlinkat, write): Use it.
33122         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33123         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33124         * lib/argv-iter.h: Include arg-nonnull.h.
33125         (_ATTRIBUTE_NONNULL_): Remove macro.
33126         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33127         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33128         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33129         optimization.
33130         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33131         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33132         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33133         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33134         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33135         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33136         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33137         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33138         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33139         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33140         * modules/dirent (Depends-on): Add arg-nonnull.
33141         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33142         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33143         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33144         * modules/fnmatch (Depends-on): Add arg-nonnull.
33145         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33146         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33147         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33148         * modules/glob (Depends-on): Add arg-nonnull.
33149         (Makefile.am): Insert arg-nonnull.h into glob.h.
33150         * modules/iconv_open (Depends-on): Add arg-nonnull.
33151         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33152         * modules/inttypes (Depends-on): Add arg-nonnull.
33153         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33154         * modules/locale (Depends-on): Add arg-nonnull.
33155         (Makefile.am): Insert arg-nonnull.h into locale.h.
33156         * modules/math (Depends-on): Add arg-nonnull.
33157         (Makefile.am): Insert arg-nonnull.h into math.h.
33158         * modules/netdb (Depends-on): Add arg-nonnull.
33159         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33160         * modules/search (Depends-on): Add arg-nonnull.
33161         (Makefile.am): Insert arg-nonnull.h into search.h.
33162         * modules/signal (Depends-on): Add arg-nonnull.
33163         (Makefile.am): Insert arg-nonnull.h into signal.h.
33164         * modules/spawn (Depends-on): Add arg-nonnull.
33165         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33166         * modules/stdio (Depends-on): Add arg-nonnull.
33167         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33168         * modules/stdlib (Depends-on): Add arg-nonnull.
33169         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33170         * modules/string (Depends-on): Add arg-nonnull.
33171         (Makefile.am): Insert arg-nonnull.h into string.h.
33172         * modules/strings (Depends-on): Add arg-nonnull.
33173         (Makefile.am): Insert arg-nonnull.h into strings.h.
33174         * modules/sys_socket (Depends-on): Add arg-nonnull.
33175         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33176         * modules/sys_stat (Depends-on): Add arg-nonnull.
33177         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33178         * modules/sys_time (Depends-on): Add arg-nonnull.
33179         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33180         * modules/sys_times (Depends-on): Add arg-nonnull.
33181         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33182         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33183         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33184         * modules/time (Depends-on): Add arg-nonnull.
33185         (Makefile.am): Insert arg-nonnull.h into time.h.
33186         * modules/unistd (Depends-on): Add arg-nonnull.
33187         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33188         * modules/wchar (Depends-on): Add arg-nonnull.
33189         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33190         * modules/argv-iter (Depends-on): Add arg-nonnull.
33191         * tests/test-canonicalize.c (null_ptr): New function.
33192         (main): Use it.
33193         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33194         (main): Use it.
33195         * tests/test-memmem.c (null_ptr): New function.
33196         (main): Use it.
33197         Reported by Jim Meyering.
33198
33199 2009-12-10  Bruno Haible  <bruno@clisp.org>
33200
33201         Use spaces for indentation, not tabs.
33202         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33203         * m4/*.m4: Untabify.
33204         * build-aux/*.h: Untabify.
33205         * tests/**/*.[hc]: Untabify.
33206         * README: New section "Indent with spaces, not TABs", based on
33207         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33208         * NEWS: Mention the change.
33209
33210 2009-12-10  Bruno Haible  <bruno@clisp.org>
33211
33212         pty test: Fix link error.
33213         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33214         test_pty_LDADD.
33215
33216 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33217
33218         * modules/pty: New file.
33219         * modules/pty-tests: New file.
33220         * m4/pty.m4: New file.
33221         * tests/test-pty.c: New file.
33222         * doc/glibc-headers/pty.texi: Modified.
33223         * doc/glibc-functions/forkpty.texi: Modified.
33224         * doc/glibc-functions/openpty.texi: Modified.
33225
33226 2009-12-10  Bruno Haible  <bruno@clisp.org>
33227
33228         Avoid syntax error in C++ mode.
33229         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33230
33231 2009-12-10  Bruno Haible  <bruno@clisp.org>
33232
33233         Use sed with option -e.
33234         * gnulib-tool (func_version, func_emit_copyright_notice,
33235         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33236         option -e to sed.
33237         * modules/link-warning (Makefile.am): Likewise.
33238
33239 2009-12-10  Jim Meyering  <meyering@redhat.com>
33240
33241         mgetgroups: do not write bytes beyond end of malloc'd buffer
33242         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33243         username, we call getgroups with a one-element-shorter buffer,
33244         but still told it the length was original, max_n_groups.
33245
33246 2009-12-09  Eric Blake  <ebb9@byu.net>
33247
33248         cloexec: relax license
33249         * modules/cloexec (Maintainer): Add myself.
33250         (License): Use LGPL, not GPL.
33251
33252         link-warning: optimize generation
33253         * modules/link-warning (Makefile.am): Reduce process usage.
33254
33255 2009-12-09  Bruno Haible  <bruno@clisp.org>
33256
33257         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33258         workaround was added on 2009-11-17.
33259
33260 2009-12-09  Jim Meyering  <meyering@redhat.com>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33264         * modules/link-warning (Makefile.am): Make the comment-removing sed
33265         command more robust in the face of bootstrap-prepended comment lines.
33266
33267 2009-12-09  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33270         most one group.
33271
33272 2009-12-09  Simon Josefsson <simon@josefsson.org>
33273             Bruno Haible  <bruno@clisp.org>
33274
33275         * build-aux/link-warning.h: Add copyright notice.
33276         * modules/link-warning (Makefile.am): Generate link-warning.h from
33277         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33278         * NEWS: Mention change in link-warning module.
33279         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33280         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33281         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33282         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33283         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33284         * modules/math (Makefile.am): Add dependency to math.h.
33285         * modules/search (Makefile.am): Add dependency to search.h.
33286         * modules/signal (Makefile.am): Add dependency to signal.h.
33287         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33288         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33289         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33290         * modules/string (Makefile.am): Add dependency to string.h.
33291         * modules/strings (Makefile.am): Add dependency to strings.h.
33292         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33293         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33294         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33295         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33296         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33297         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33298         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33299         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33300         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33301
33302 2009-12-09  Bruno Haible  <bruno@clisp.org>
33303
33304         fchdir: Optimize away rpl_fstat when possible.
33305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33306         REPLACE_OPEN_DIRECTORY.
33307         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33308
33309 2009-12-09  Bruno Haible  <bruno@clisp.org>
33310
33311         * lib/fchdir.c: Update comment.
33312
33313 2009-12-09  Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33316
33317 2009-12-08  Eric Blake  <ebb9@byu.net>
33318
33319         fchdir: avoid memory leak on re-registration.
33320         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33321
33322 2009-12-08  Jim Meyering  <meyering@redhat.com>
33323
33324         init.sh: avoid Solaris 10 /bin/sh portability problem
33325         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33326         sourced script:
33327           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33328           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33329           bar
33330         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33331         and two tests used that idiom.
33332         * tests/init.sh: Update suggested usage comments.
33333         (path_prepend_): New function, to be used in place
33334         of the --src-path=DIR option.
33335         (setup_): Move PATH-prepending code into path_prepend_.
33336         * tests/test-pread.sh: Adapt to new usage.
33337         * tests/test-xalloc-die.sh: Likewise.
33338
33339 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33340
33341         * doc/gnulib.texi (Glibc pty.h): Add.
33342         * doc/glibc-functions/forkpty.texi: Add.
33343         * doc/glibc-functions/openpty.texi: Add.
33344         Suggested by Bruno Haible.
33345
33346 2009-12-08  Eric Blake  <ebb9@byu.net>
33347
33348         fchdir: fix logic bugs
33349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33350         * tests/test-fchdir.c (main): Enhance test.
33351         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33352         is in use.
33353
33354         dup2: fix logic bugs
33355         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33356         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33357         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33358         exists.
33359         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33360
33361 2009-12-07  Eric Blake  <ebb9@byu.net>
33362
33363         unlink: fix m4 detection
33364         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33365
33366         unistd-safer: add unit test
33367         * modules/unistd-safer-tests: New file.
33368         * tests/test-dup-safer.c: Likewise.
33369         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33370         * tests/test-dup2.c (setmode): Likewise.
33371         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33372
33373         cloexec: preserve text vs. binary across dup_cloexec
33374         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33375         mode.
33376         * modules/dup2-tests (Depends-on): Add binary-io.
33377         * modules/cloexec-tests (Depends-on): Likewise.
33378         * tests/test-dup2.c (setmode, is_mode): New helpers.
33379         (main): Add tests that translation mode is preserved.
33380         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33381         Reported by Bruno Haible.
33382
33383         mgetgroups: reduce duplicate listings
33384         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33385         resulting array.
33386         * tests/test-chown.h (test_chown): Simplify client.
33387         * tests/test-lchown.h (test_lchown): Likewise.
33388
33389 2009-12-06  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33392         value.
33393
33394 2009-12-06  Bruno Haible  <bruno@clisp.org>
33395
33396         * lib/progname.c: Include stdio.h, stdlib.h.
33397         (set_program_name): Reject a NULL argument.
33398
33399 2009-12-05  Eric Blake  <ebb9@byu.net>
33400
33401         pipe2-safer: new module
33402         * modules/pipe2-safer: New file.
33403         * lib/unistd-safer.h (pipe2_safer): New prototype.
33404         * lib/unistd--.h (pipe2): New wrapper.
33405         * lib/pipe-safer.c (pipe2_safer): New function.
33406         * modules/pipe (Depends-on): Add pipe2-safer.
33407         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33408
33409         stdlib-safer: preserve cloexec flag for mkostemp[s]
33410         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33411         fd_safer_flag.
33412
33413         unistd-safer: allow preservation of cloexec status via flag
33414         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33415         prototypes.
33416         * lib/dup-safer.c (dup_safer_flag): New function.
33417         * lib/fd-safer.c (fd_safer_flag): Likewise.
33418         * modules/cloexec (configure.ac): Set witness.
33419
33420         test-dup2: enhance test
33421         * modules/dup2-tests (Depends-on): Add cloexec.
33422         * tests/test-dup2.c (main): Enhance test.
33423
33424         cloexec: add dup_cloexec
33425         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33426         header and comments.
33427         * lib/cloexec.c (set_cloexec_flag): Add comments.
33428         (dup_cloexec): New function, with mingw implementation borrowed
33429         from...
33430         * lib/w32spawn.h (dup_noinherit): ...here.
33431         * modules/execute (Depends-on): Add cloexec.
33432         * modules/pipe (Depends-on): Likewise.
33433         * modules/cloexec (Depends-on): Add dup2.
33434         * modules/cloexec-tests (Files): New file.
33435         * tests/test-cloexec.c: Likewise.
33436
33437         test-xalloc-die: fix test for mingw
33438         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33439         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33440         directory and .exe suffix off argv[0] output.
33441
33442         test-fseeko: fix test for mingw
33443         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33444         than undefining fseek, so test will pass on mingw.
33445
33446 2009-12-05  Bruno Haible  <bruno@clisp.org>
33447
33448         * lib/progname.h (set_program_name): Clarify specification.
33449         * lib/progname.c (set_program_name): Likewise.
33450         Reported by Jim Meyering.
33451
33452 2009-12-05  Jim Meyering  <meyering@redhat.com>
33453
33454         maint.mk: backslash-escape parens in default regexp
33455         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33456         backslash-escape the literal parentheses.
33457
33458         maint.mk: news-date-check: use grep -E
33459         * top/maint.mk (today): Define a Make variable, not a...
33460         (news-date-check): ...shell variable.
33461         (news-date-regexp): Use the Make variable.
33462         Use grep's -E option.  Change the failing diagnostic to mention
33463         the variable, $(news-date-regexp).
33464
33465 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33466
33467         maintainer-makefile: allow customization of NEWS entry format
33468         * top/maint.mk (news-date-regexp): New overridable variable.
33469         (news-date-check): Use it.
33470
33471 2009-12-04  Eric Blake  <ebb9@byu.net>
33472
33473         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33474         * lib/mgetgroups.h (xgetgroups): New prototype.
33475         * lib/mgetgroups.c (xgetgroups): New wrapper.
33476         (mgetgroups): Handle ENOSYS.
33477         * modules/mgetgroups (Depends-on): Add realloc.
33478         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33479
33480         mgetgroups: avoid argument promotion issues with -1
33481         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33482         for invalid gid_t.
33483         * tests/test-chown.h (getegid, test_chown): Likewise.
33484         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33485
33486 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33487
33488         exclude: Fix header file problems.
33489         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33490
33491 2009-12-01  Jim Meyering  <meyering@redhat.com>
33492
33493         fts: fts_open: do not let an empty string cause immediate failure
33494         This is required in support of GNU rm, for which the command
33495         "rm A '' B" must process and remove both A and B, in spite of
33496         the empty string argument.
33497         * lib/fts.c (fts_open): Do not let the presence of an empty string
33498         cause fts_open to fail immediately.  Most fts-using tools must be
33499         able to process all arguments, in order, and can be expected to
33500         diagnose such arguments themselves.
33501
33502 2009-11-30  Eric Blake  <ebb9@byu.net>
33503
33504         utimens: fix compilation error
33505         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33506         Declare variable at right scope.
33507
33508 2009-11-29  Jim Meyering  <meyering@redhat.com>
33509
33510         bootstrap: handle perl-5.11's changed --version output
33511         * build-aux/bootstrap (get_version): Handle perl separately,
33512         since perl-5.11's --version output is different.
33513
33514 2009-11-28  Jim Meyering  <meyering@redhat.com>
33515
33516         userspec: depend on the inttostr module, too
33517         * modules/userspec (Depends-on): Add inttostr.
33518
33519         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33520         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33521         number of MAXUID when it evaluates to (uid_t) -1.
33522         Likewise for group ID.  Reported by Matt McCutchen in
33523         <http://savannah.gnu.org/bugs/?28113>
33524
33525         userspec: reformat to use spaces, not TABs
33526         * lib/userspec.c: Expand TABs to spaces.
33527         Add Emacs' "indent-tabs-mode: nil" hint.
33528
33529 2009-11-27  Eric Blake  <ebb9@byu.net>
33530
33531         getopt-gnu: flush out another BSD bug
33532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33533         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33534         flush out BSD bug.
33535         * tests/test-getopt.h (test_getopt): End lists with NULL.
33536         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33537         (test_getopt_long_posix): Enhance test.
33538         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33539         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33540         getopt-gnu.
33541         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33542         Likewise.
33543
33544 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33545
33546         * modules/idpriv-droptemp-tests (Notice): Fix text.
33547
33548 2009-11-27  Jim Meyering  <meyering@redhat.com>
33549
33550         test-xalloc-die: avoid spurious failure due to libtool argv difference
33551         In a libtool-enabled project, this test would fail due to a difference
33552         in the emitted program name, e.g.,
33553         -test-xalloc-die: memory exhausted
33554         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33555         Use program to avoid that.
33556         * modules/xalloc-die-tests (Depends-on): Add progname.
33557         * tests/test-xalloc-die.c: Include progname.h".
33558         (program_name): Remove decl.
33559         (main): Call set_program_name.
33560         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33561
33562 2009-11-26  Richard Jones  <rjones@redhat.com>
33563
33564         w32sock: leave win32 error in place.
33565         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33566
33567 2009-11-26  Eric Blake  <ebb9@byu.net>
33568
33569         init.sh: suggest to use skip_ and fail_ functions in comments
33570         * tests/init.sh: Add a sentence.
33571
33572 2009-11-25  Bruno Haible  <bruno@clisp.org>
33573
33574         init.sh: add documentation in comments
33575         * tests/init.sh: Add some developer and user documentation.
33576
33577 2009-11-26  Jim Meyering  <meyering@redhat.com>
33578
33579         init.sh: accommodate even those who specify bogus srcdir manually
33580         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33581         configure-time tests to be sanitized, so that there is no need to
33582         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33583         (with no double quotes) suffices.  However, since tests may be
33584         invoked manually, and since you may explicitly set srcdir to the
33585         name of a directory containing spaces, do quote its uses here.
33586         * tests/test-pread.sh: Likewise.
33587         Suggested by Bruno Haible.
33588
33589         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33590         * tests/test-pread.sh: Write no data into the pipe, because
33591         test-pread actually reads none.  This avoids a diagnostic,
33592         "bash: echo: write error: Broken pipe", that arises in the unusual
33593         event something is ignoring SIGPIPE, and might be interpreted
33594         as some sort of failure.  Reported by Bruno Haible.
33595
33596 2009-11-25  Jim Meyering  <meyering@redhat.com>
33597
33598         test-pread: cover failure with ESPIPE and EINVAL
33599         * tests/test-pread.c (main): Test for failure, too.
33600         * tests/test-pread.sh: Invoke with stdin on a pipe.
33601         Suggested by Eric Blake.
33602
33603         pread: improvement and fix
33604         * modules/pread (Depends-on): Depend on lseek, for portability to
33605         e.g., mingw.  Suggested by Eric Blake.
33606         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33607
33608         unistd.in.h: correct declaration of pread
33609         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33610         Reported by Richard W.M. Jones.
33611
33612         test-pread.sh: distribute the test script
33613         * modules/pread-tests (Files): Include test-pread.sh.
33614
33615         test-pread.sh: clean up
33616         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33617         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33618         That is unnecessary, since it's always ".".
33619         Suggestion from Eric Blake.
33620
33621         test-pread.sh: make executable
33622         * tests/test-pread.sh: Set executable bit.
33623         Reported by Eric Blake.
33624
33625         correct typo in test-pread.sh
33626         * tests/test-pread.sh: Add #! line.
33627
33628         test pread
33629         * tests/test-pread.c: New file.
33630         * tests/test-pread.sh: Likewise.
33631         * modules/pread-tests: Likewise.
33632
33633         pread: new module
33634         * modules/pread: New file.
33635         * lib/unistd.in.h (pread): Define/declare.
33636         * lib/pread.c (pread): New file.
33637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33638         * modules/unistd (Makefile.am): Substitute witnesses.
33639         * doc/posix-functions/pread.texi (pread): Update.
33640         * MODULES.html.sh: Add pread.
33641
33642 2009-11-25  Jim Meyering  <meyering@redhat.com>
33643
33644         tests/init.sh: new file to be used via most *.sh tests
33645         * tests/init.sh: New file.
33646
33647 2009-11-25  Eric Blake  <ebb9@byu.net>
33648
33649         utimens: work around older Linux failure with symlinks
33650         * lib/utimens.c (lutimensat_works_really): New variable.
33651         (fdutimens, lutimens): Use it to manage kernels that support
33652         nanosecond times on files, but not on symlinks.
33653         Reported by OndÅ™ej Vašík.
33654
33655         utimes: fix configure grammar
33656         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33657
33658 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33659
33660         regex: Fix fastmap for multibyte character ranges.
33661         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33662         characters when a multibyte character range is included.
33663
33664 2009-11-22  Andy Wingo  <wingo@pobox.com>
33665
33666         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33667         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33668
33669 2009-11-24  Bruno Haible  <bruno@clisp.org>
33670
33671         doc: Most *_l functions exist in MacOS X 10.5.
33672         * doc/posix-functions/duplocale.texi: Update platforms list.
33673         * doc/posix-functions/freelocale.texi: Likewise.
33674         * doc/posix-functions/newlocale.texi: Likewise.
33675         * doc/posix-functions/uselocale.texi: Likewise.
33676         * doc/posix-functions/isalnum_l.texi: Likewise.
33677         * doc/posix-functions/isalpha_l.texi: Likewise.
33678         * doc/posix-functions/isblank_l.texi: Likewise.
33679         * doc/posix-functions/iscntrl_l.texi: Likewise.
33680         * doc/posix-functions/isdigit_l.texi: Likewise.
33681         * doc/posix-functions/isgraph_l.texi: Likewise.
33682         * doc/posix-functions/islower_l.texi: Likewise.
33683         * doc/posix-functions/isprint_l.texi: Likewise.
33684         * doc/posix-functions/ispunct_l.texi: Likewise.
33685         * doc/posix-functions/isspace_l.texi: Likewise.
33686         * doc/posix-functions/isupper_l.texi: Likewise.
33687         * doc/posix-functions/iswalnum_l.texi: Likewise.
33688         * doc/posix-functions/iswalpha_l.texi: Likewise.
33689         * doc/posix-functions/iswblank_l.texi: Likewise.
33690         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33691         * doc/posix-functions/iswctype_l.texi: Likewise.
33692         * doc/posix-functions/iswdigit_l.texi: Likewise.
33693         * doc/posix-functions/iswgraph_l.texi: Likewise.
33694         * doc/posix-functions/iswlower_l.texi: Likewise.
33695         * doc/posix-functions/iswprint_l.texi: Likewise.
33696         * doc/posix-functions/iswpunct_l.texi: Likewise.
33697         * doc/posix-functions/iswspace_l.texi: Likewise.
33698         * doc/posix-functions/iswupper_l.texi: Likewise.
33699         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33700         * doc/posix-functions/isxdigit_l.texi: Likewise.
33701         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33702         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33703         * doc/posix-functions/strcoll_l.texi: Likewise.
33704         * doc/posix-functions/strfmon_l.texi: Likewise.
33705         * doc/posix-functions/strftime_l.texi: Likewise.
33706         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33707         * doc/posix-functions/strxfrm_l.texi: Likewise.
33708         * doc/posix-functions/tolower_l.texi: Likewise.
33709         * doc/posix-functions/toupper_l.texi: Likewise.
33710         * doc/posix-functions/towctrans_l.texi: Likewise.
33711         * doc/posix-functions/towlower_l.texi: Likewise.
33712         * doc/posix-functions/towupper_l.texi: Likewise.
33713         * doc/posix-functions/wcscoll_l.texi: Likewise.
33714         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33715         * doc/posix-functions/wctrans_l.texi: Likewise.
33716         * doc/posix-functions/wctype_l.texi: Likewise.
33717         * doc/glibc-functions/strptime_l.texi: Likewise.
33718         * doc/glibc-functions/strtod_l.texi: Likewise.
33719         * doc/glibc-functions/strtof_l.texi: Likewise.
33720         * doc/glibc-functions/strtol_l.texi: Likewise.
33721         * doc/glibc-functions/strtold_l.texi: Likewise.
33722         * doc/glibc-functions/strtoll_l.texi: Likewise.
33723         * doc/glibc-functions/strtoul_l.texi: Likewise.
33724         * doc/glibc-functions/strtoull_l.texi: Likewise.
33725         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33726         * doc/glibc-functions/wcstod_l.texi: Likewise.
33727         * doc/glibc-functions/wcstof_l.texi: Likewise.
33728         * doc/glibc-functions/wcstol_l.texi: Likewise.
33729         * doc/glibc-functions/wcstold_l.texi: Likewise.
33730         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33731         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33732         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33733
33734 2009-11-24  Bruno Haible  <bruno@clisp.org>
33735
33736         duplocale: Fix logic bug.
33737         * lib/duplocale.c: Don't include <langinfo.h>.
33738         (_NL_LOCALE_NAME): Remove macro.
33739         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33740         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33741
33742 2009-11-23  Jim Meyering  <meyering@redhat.com>
33743
33744         test-update-copyright: don't hard-code /usr/bin/perl
33745         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33746         perl to print the current year.  Gilles Espinasse reported that
33747         the replaced use of perl was hard-coded as /usr/bin/perl.
33748
33749 2009-11-23  Bruno Haible  <bruno@clisp.org>
33750
33751         duplocale: Add support for glibc 2.3.x.
33752         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33753
33754 2009-11-22  Bruno Haible  <bruno@clisp.org>
33755
33756         vasnprintf: Tiny optimization.
33757         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33758         MacOS X.
33759
33760 2009-11-22  Bruno Haible  <bruno@clisp.org>
33761
33762         Tests for module 'duplocale'.
33763         * modules/duplocale-tests: New file.
33764         * tests/test-duplocale.c: New file.
33765
33766         New module 'duplocale'.
33767         * m4/duplocale.m4: New file.
33768         * lib/locale.in.h (duplocale): New declaration.
33769         * lib/duplocale.c: New file.
33770         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33771         gl_LOCALE_H_DEFAULTS): New macros.
33772         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33773         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33774         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33775         REPLACE_DUPLOCALE.
33776         * modules/duplocale: New file.
33777         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33778
33779 2009-11-22  Bruno Haible  <bruno@clisp.org>
33780
33781         * modules/locale-tests (configure.ac): Test for newlocale function.
33782         * tests/test-locale.c: When the system has extended locale functions,
33783         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33784
33785         locale: Make locale_t available when possible.
33786         * lib/locale.in.h: Include <xlocale.h> when it exists.
33787         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33788         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33789         * modules/locale (Depends-on): Add extensions.
33790         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33791         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33792
33793 2009-11-22  Bruno Haible  <bruno@clisp.org>
33794
33795         Add comments.
33796         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33797         invocation.
33798         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33800         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33801
33802 2009-11-22  Bruno Haible  <bruno@clisp.org>
33803
33804         error: account for the possibility of freopen (stdout).
33805         * lib/error.c: Include <unistd.h>.
33806         (flush_stdout): New function, extracted from error and error_at_line.
33807         Determine stdout's fd dynamically.
33808         (error, error_at_line): Invoke flush_stdout.
33809         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33810         * modules/error (Depends-on): Add unistd.
33811
33812 2009-11-22  Bruno Haible  <bruno@clisp.org>
33813
33814         diffseq: Add comment.
33815         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33816
33817 2009-11-22  Jim Meyering  <meyering@redhat.com>
33818
33819         c-stack: avoid defining an unused static function
33820         * lib/c-stack.c (find_stack_direction): Do not define this function
33821         when it will not be used.
33822
33823         diffseq: avoid spurious gcc warnings
33824         * lib/diffseq.h (IF_LINT2): Define.
33825         (compareseq): Use it to initialize two members of "part".
33826         This avoids two used-uninitialized warnings.
33827
33828 2009-11-21  Jim Meyering  <meyering@redhat.com>
33829
33830         c-stack: avoid "ignoring return value of `write'" warning
33831         * lib/c-stack.c: Include "ignore-value.h".
33832         (die): Explicitly ignore each write return value.
33833         * modules/c-stack (Depends-on): Add ignore-value.
33834
33835 2009-11-21  Bruno Haible  <bruno@clisp.org>
33836
33837         diffseq: reduce scope of variable 'best'.
33838         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33839         variable, earlier used for two different purposes.
33840
33841 2009-11-21  Jim Meyering  <meyering@redhat.com>
33842
33843         diffseq: remove useless assignment to "best"
33844         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33845         assignment.  At that point "best" is already guaranteed to be zero.
33846
33847 2009-11-20  Eric Blake  <ebb9@byu.net>
33848
33849         build: mention ftp redirector in release announcements
33850         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33851         values that used to come from cfg.mk; mention FTP redirect URL.
33852         * build-aux/announce-gen: Mention the mirror list.
33853         Suggested by Karl Berry.
33854
33855         nanosleep: improve port to mingw
33856         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33858         LIB_NANOSLEEP, but only when needed.
33859         * modules/select (Link): Document LIBSOCKET.
33860         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33861         enough.
33862
33863         nanosleep: work around cygwin bug
33864         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33865         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33866         bug.
33867         (getnow): Delete, not needed.
33868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33869         LIB_CLOCK_GETTIME.
33870         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33871         clock-time, gettime.
33872         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33873         bug.
33874         * modules/nanosleep-tests: New test.
33875         * tests/test-nanosleep.c: New file.
33876
33877         sleep: work around cygwin bug
33878         * lib/sleep.c (rpl_sleep): Work around the bug.
33879         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33880         (gl_PREREQ_SLEEP): Delete unused macro.
33881         * modules/sleep (Depends-on): Add verify.
33882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33883         * modules/unistd (Makefile.am): Substitute witness.
33884         * lib/unistd.in.h (sleep): Update prototype.
33885         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33886         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33887         * modules/sleep-tests (Depends-on): Check for alarm.
33888
33889 2009-11-20  Jim Meyering  <meyering@redhat.com>
33890
33891         maint.mk: improve sc_prohibit_magic_number_exit
33892         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33893         so it does not match uses like System.exit(1).
33894         Add comments showing how to correct all offenders.
33895
33896 2009-11-19  Eric Blake  <ebb9@byu.net>
33897
33898         xalloc-die-tests: add missing library
33899         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33900
33901         test-xvasprintf: silence compiler warnings
33902         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33903         empty string from gcc.
33904
33905 2009-11-19  Jim Meyering  <meyering@redhat.com>
33906
33907         xfreopen: new module, from coreutils
33908         * modules/xfreopen: New module.
33909         * lib/xfreopen.c: New file.
33910         * lib/xfreopen.h: New file.
33911         * MODULES.html.sh (File stream based Input/Output"): Add it.
33912
33913 2009-11-19  Eric Blake  <ebb9@byu.net>
33914
33915         manywarnings: depend on warnings
33916         * modules/manywarnings (Depends-on): Add warnings.
33917
33918         build: avoid compiler warnings
33919         * lib/select.c (rpl_select): Delete unused variable.
33920         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33921
33922 2009-11-18  Eric Blake  <ebb9@byu.net>
33923
33924         tests: avoid false negative with --with-packager
33925         * tests/test-version-etc.sh: Discard packager information.
33926         * tests/test-argp-version-etc-1.sh: Likewise.
33927         Reported by Mike Frysinger.
33928
33929         utimens: fix regression on Solaris
33930         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33931         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33932         can only change fd timestamps via futimesat.  Instead, use an
33933         additional witness macro to avoid BSD bug.
33934         Reported by Jim Meyering.
33935
33936 2009-11-17  Eric Blake  <ebb9@byu.net>
33937
33938         usleep: use it to simplify tests
33939         * modules/stat-time-tests (Depends-on): Add usleep.
33940         (configure.ac): Drop usleep check.
33941         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33942         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33943         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33944         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33945         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33946         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33947         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33948         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33949         Likewise.
33950         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33951         * tests/test-lchown.h (nap): Likewise.
33952         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33953         * tests/test-stat-time.c (nap): Likewise.
33954         * tests/test-utimens-common.h (nap): Update comments.
33955
33956         usleep: new module
33957         * modules/usleep: New file.
33958         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33959         * lib/usleep.c (usleep): Likewise.
33960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33961         * modules/unistd (Makefile.am): Substitute witnesses.
33962         * lib/unistd.in.h (usleep): Add declaration.
33963         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33964         * MODULES.html.sh (Date and time): Likewise.
33965         * modules/usleep-tests (Depends-on): New test.
33966         * tests/test-usleep.c: New file.
33967
33968         chown: work around OpenBSD bug
33969         * lib/chown.c (rpl_chown): Work around the bug.
33970         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33971         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33973         * modules/chown (Depends-on): Add stdbool.
33974         * modules/lchown (Depends-on): Likewise.
33975         * doc/posix-functions/chown.texi (chown): Document the bug.
33976         * doc/posix-functions/lchown.texi (lchown): Likewise.
33977         * tests/test-lchown.h (test_chown): Relax test.
33978
33979         mkstemp: avoid conflict with C++ keyword template
33980         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33981         * lib/mkostemp.c (mkostemp): Likewise.
33982         * lib/mkostemps.c (mkostemps): Likewise.
33983         * lib/mkstemp.c (mkstemp): Likewise.
33984         * lib/mkstemps.c (mkstemps): Likewise.
33985
33986         xalloc-die-tests: optimize
33987         * tests/test-xalloc-die.sh: Reduce number of processes.
33988
33989 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33990
33991         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33992         patch from ludo@gnu.org (Ludovic Courtès).
33993
33994 2009-11-17  Jim Meyering  <meyering@redhat.com>
33995
33996         version-etc: use proper license string
33997         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33998         * modules/version-etc-fsf: Likewise.
33999
34000 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34001
34002         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34003         printed to stdout.  Deal with EOL differences.
34004
34005 2009-11-17  Eric Blake  <ebb9@byu.net>
34006
34007         unsetenv: work around Solaris bug
34008         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34009         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34010         Reported by Jim Meyering.
34011
34012         vasnprintf: avoid compiler warnings
34013         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34014         variables.
34015         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34016
34017 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34018
34019         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34020         settings since xalloc-die is no longer the self test,
34021         xalloc-die.sh is.
34022
34023 2009-11-17  Jim Meyering  <meyering@redhat.com>
34024
34025         test-xalloc-die.sh: make the code agree with the commit log
34026         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34027         at the end, just in case you happen to have a test-xalloc-die
34028         program in some other PATH directory.
34029
34030         test-xalloc-die.sh: fix a portability bug
34031         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34032         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34033         Otherwise, argv[0] (as often seen in diagnostics) would be too
34034         system-dependent, sometimes with, and sometimes without the leading "./".
34035
34036         version-etc-fsf: relax license to LGPLv3+
34037         * modules/version-etc-fsf (License): Relax license.
34038
34039 2009-11-16  Eric Blake  <ebb9@byu.net>
34040
34041         xalloc-die-tests: avoid printing null pointer
34042         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34043         shell script.
34044         * tests/test-xalloc-die.c (program_name): Declare.
34045         * tests/test-xalloc-die.sh (tmpfiles): New file.
34046
34047         setenv, unsetenv: work around various bugs
34048         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34049         (setenv) [HAVE_SETENV]: Work around bugs.
34050         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34051         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34052         for bugs.
34053         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34054         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34056         * modules/stdlib (Makefile.am): Update substitutions.
34057         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34058         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34059         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34060         * modules/setenv-tests: New test.
34061         * modules/unsetenv-tests: Likewise.
34062         * tests/test-setenv.c: New file.
34063         * tests/test-unsetenv.c: Likewise.
34064
34065 2009-11-16  Jim Meyering  <meyering@redhat.com>
34066
34067         version-etc: relax license to LGPLv3+
34068         * modules/version-etc (License): Relax license.
34069
34070         better AC_REQUIRE expanded-before-required-warning avoidance
34071         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34072         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34073         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34074         which is no longer needed.
34075
34076 2009-11-16  Eric Blake  <ebb9@byu.net>
34077
34078         test-freading: clean up temporary file
34079         * tests/test-freading.c (main): Remove file on success, and use
34080         ASSERT more liberally.
34081         Reported by Jim Meyering.
34082
34083 2009-11-16  Jim Meyering  <meyering@redhat.com>
34084
34085         avoid new AC_REQUIRE expanded-before-required warnings
34086         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34087         merely using it.
34088         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34089         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34090
34091 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34092
34093         * tests/test-xalloc-die.c: New file.
34094         * modules/xalloc-die-tests: New file.
34095         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34096         XFAIL_TESTS so it can be appended by modules.
34097
34098 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34099
34100         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34101         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34102
34103 2009-11-14  Eric Blake  <ebb9@byu.net>
34104
34105         fnmatch: avoid compiler warning
34106         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34107         to silence compiler warning about mismatch signedness in ?:.
34108         Reported by Robert Millan.
34109
34110         intprops: add double-inclusion guard
34111         * lib/intprops.h: Allow idempotent includes.
34112         Suggested by Bruce Korb.
34113
34114         openat: detect Solaris fchownat bug
34115         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34116         penalizing glibc chownat when only lchownat is broken.
34117         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34118         trailing slash bugs.
34119         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34120         * modules/openat-tests (Files): Include more files.
34121         (Depends-on): Add mgetgroups, sleep, stat-time.
34122         (configure.ac): Add additional checks.
34123         (Makefile.am): Build new test.
34124         * tests/test-fchownat.c: New file.
34125
34126         lchown: detect Solaris and FreeBSD bug
34127         * lib/lchown.c (rpl_lchown): Work around bug.
34128         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34130         * modules/unistd (Makefile.am): Populate it.
34131         * lib/unistd.in.h (lchown): Update declaration.
34132         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34133         * modules/lchown-tests: New file.
34134         * tests/test-lchown.h (test_lchown): Likewise.
34135         * tests/test-lchown.c (main): Likewise.
34136
34137         chown: detect Solaris and FreeBSD bug
34138         * lib/chown.c (rpl_chown): Work around bug.
34139         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34140         (gl_PREREQ_CHOWN): Delete.
34141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34142         * modules/unistd (Makefile.am): Populate it.
34143         * lib/unistd.in.h (chown): Update declaration.
34144         * lib/lchown.c (chown): Update client.
34145         * modules/lchown (Depends-on): Add lstat.
34146         * doc/posix-functions/chown.texi (chown): Document the bug.
34147         * doc/posix-functions/getgroups.texi (getgroups): Document
34148         getgroups pitfall.
34149         * modules/chown-tests: New file.
34150         * tests/test-chown.h (test_chown): Likewise.
34151         * tests/test-chown.c (main): Likewise.
34152
34153 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34154
34155         gnulib-tool: correctly detect absence of m4 directories
34156         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34157
34158 2009-11-14  Jim Meyering  <meyering@redhat.com>
34159
34160         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34161         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34162
34163 2009-11-14  John W. Eaton  <jwe@gnu.org>
34164
34165         strftime.h: wrap funtion declaration in extern "C" block
34166         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34167
34168 2009-11-13  Eric Blake  <ebb9@byu.net>
34169
34170         getgroups: avoid compiler warning
34171         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34172
34173         getgroups: work around FreeBSD bug
34174         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34175         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34176         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34177         * tests/test-getgroups.c (main): Fix buffer overrun.
34178
34179         getgroups: avoid compilation failure
34180         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34181         * modules/getgroups (Depends-on): Add stdint.
34182
34183 2009-11-13  Jim Meyering  <meyering@redhat.com>
34184
34185         test-getgroups: avoid compilation failure
34186         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34187
34188 2009-11-13  Eric Blake  <ebb9@byu.net>
34189
34190         mgetgroups: new module, taken from coreutils
34191         * modules/mgetgroups: New file.
34192         * lib/mgetgroups.h: Likewise.
34193         * lib/mgetgroups.c (mgetgroups): Likewise.
34194         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34195         * MODULES.html.sh (Users and groups): Mention it.
34196
34197         getgroups: don't expose GETGROUPS_T to user
34198         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34199         an element at a time if GETGROUPS_T is wrong size.
34200         * lib/getugroups.h (getugroups): Change signature.
34201         * lib/unistd.in.h (getgroups): Likewise.
34202         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34203         signature needs fixing.
34204         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34205         AC_TYPE_GETGROUPS.
34206         * modules/group-member (Depends-on): Add getgroups.
34207         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34208         (group_member): Rely on getgroups replacement.
34209         * lib/getugroups.c (getugroups): Use gid_t.
34210         * tests/test-getgroups.c (main): Likewise.
34211         * NEWS: Mention the signature change.
34212         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34213         problem with signature.
34214         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34215         GETGROUPS_T is still useful for setgroups.
34216
34217         getgroups, getugroups: provide stubs for mingw
34218         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34219         * lib/getugroups.c (getugroups): Likewise.
34220         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34221         function.  Modernize replacement scheme.
34222         (gl_PREREQ_GETGROUPS): Delete.
34223         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34224         * modules/getgroups (configure.ac): Declare witness.
34225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34226         * modules/unistd (Depends-on): Substitute witness.
34227         * lib/unistd.in.h (getgroups): Declare replacement.
34228
34229         getgroups: avoid calling exit
34230         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34231         drop xalloc.
34232         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34233         dependencies.
34234         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34235         exiting, in the rare case of malloc failure.
34236
34237         getgroups: fix logic error
34238         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34239         has more than 20 groups.
34240         * modules/getgroups-tests: New test.
34241         * tests/test-getgroups.c: New file.
34242
34243 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34244
34245         * tests/test-base64.c: Improve.
34246
34247 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34248
34249         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34250         Blake <ebb9@byu.net>.
34251
34252 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34253
34254         * tests/test-xvasprintf.c: Add %s%s related checks.
34255
34256 2009-11-12  Eric Blake  <ebb9@byu.net>
34257
34258         version-etc: match standards.texi style
34259         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34260         and use <> only for URLs.
34261
34262 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34263
34264         fts: do not fail on a submount during traversal
34265         * lib/fts.c (fts_build): Read the stat info again after opening
34266         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34267         Original report at http://bugzilla.redhat.com/501848.
34268
34269 2009-11-12  Jim Meyering  <meyering@redhat.com>
34270
34271         bootstrap: sync from coreutils
34272         * build-aux/bootstrap (bootstrap_epilogue): New function.
34273         Use git_modules_config in one more place.  This make bootstrap's
34274         --gnulib-srcdir option more useful for testing.
34275
34276         bootstrap: generalize autoheader check
34277         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34278         AC_CONFIG_HEADERS.
34279
34280 2009-11-11  Eric Blake  <ebb9@byu.net>
34281
34282         mkfifoat: use new modules for Solaris and BSD bugs
34283         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34284         * lib/mkfifoat.c (mknodat): Split...
34285         * lib/mknodat.c (mknodat): ...into new file.
34286         * modules/mkfifoat (Files): Ship new file.
34287         (Depends-on): Add mkfifo, mknod.
34288         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34289         (Depends-on): Add symlink.
34290         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34291         redundant with test_mkfifo.h.
34292         (do_mkfifoat, do_mknodat): New helpers.
34293
34294         mknod: new module
34295         * modules/mknod: New file.
34296         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34297         * lib/mknod.c (mknod): Likewise.
34298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34299         defaults.
34300         * modules/sys_stat (Makefile.am): Substitute them.
34301         * lib/sys_stat.in.h (mknod): Declare replacement.
34302         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34303         Document it.
34304         * doc/posix-functions/mknod.texi (mknod): Likewise.
34305         * modules/mknod-tests: New test.
34306         * tests/test-mknod.c: Likewise.
34307
34308         mkfifo: new module
34309         * modules/mkfifo: New file.
34310         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34311         * lib/mkfifo.c (mkfifo): Likewise.
34312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34313         defaults.
34314         * modules/sys_stat (Makefile.am): Substitute them.
34315         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34316         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34317         Document it.
34318         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34319         * modules/mkfifo-tests: New test.
34320         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34321         from test-mkfifoat.c.
34322         * tests/test-mkfifo.c: New file.
34323
34324         readlink: detect FreeBSD bug
34325         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34326         slash on symlink.
34327         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34328         * tests/test-readlink.h (test_readlink): Enhance test.
34329
34330         symlink: detect FreeBSD bug
34331         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34332         slash on symlink.
34333         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34334         * tests/test-symlink.h (test_symlink): Enhance test.
34335
34336 2009-11-10  Eric Blake  <ebb9@byu.net>
34337
34338         link: detect FreeBSD bug
34339         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34340         symlink.
34341         * doc/posix-functions/link.texi (link): Document the bug.
34342         * tests/test-link.h (test_link): Enhance test.
34343         * tests/test-linkat.c (main): Update caller.
34344
34345         unlink, remove: detect FreeBSD bug
34346         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34347         slash on symlink.
34348         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34349         * doc/posix-functions/remove.texi (remove): Likewise.
34350         * tests/test-unlink.h (test_unlink): Enhance test.
34351         * tests/test-remove.c (main): Likewise.
34352
34353 2009-11-09  Eric Blake  <ebb9@byu.net>
34354
34355         rename: detect FreeBSD bug
34356         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34357         slash on symlink.
34358         * modules/renameat-tests (Depends-on): Add filenamecat.
34359         * tests/test-rename.h (test_rename): Allow one more errno.
34360         * tests/test-renameat.c (main): Likewise.
34361         * doc/posix-functions/rename.texi (rename): Document the bug.
34362
34363         open: detect FreeBSD bug
34364         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34365         symlink.
34366         * doc/posix-functions/open.texi (open): Document the bug.
34367         * doc/posix-functions/utimes.texi (utimes): Likewise.
34368         * tests/test-open.h (test_open): Add parameters, and test symlink
34369         handling.
34370         * tests/test-open.c (main): Adjust caller.
34371         * tests/test-fcntl-safer.c (main): Likewise.
34372         * modules/open-tests (Depends-on): Add stdbool, symlink.
34373         * modules/fcntl-safer-tests (Depends-on): Likewise.
34374         * tests/test-openat.c (main): Add test-open tests.
34375
34376         stat: detect FreeBSD bug
34377         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34378         symlink.
34379         * doc/posix-functions/stat.texi (stat): Document the bug.
34380         * tests/test-stat.h (test_stat_func): Add argument.
34381         * tests/test-stat.c (main): Adjust caller.
34382         * tests/test-fstatat.c (main): Likewise.
34383         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34384         Reported by Jim Meyering.
34385
34386 2009-11-09  James Youngman  <jay@gnu.org>
34387
34388         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34389         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34390
34391 2009-11-08  Jim Meyering  <meyering@redhat.com>
34392
34393         utimens: remove invalid futimesat call
34394         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34395         It used the file descriptor of the target file as the DIR_FD
34396         parameter and NULL as the file name.  That caused failure with
34397         errno == EFAULT on FreeBSD-8.0-rc2
34398
34399 2009-11-07  Eric Blake  <ebb9@byu.net>
34400
34401         fflush, freadseek: use fseeko, not fseek
34402         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34403         (clear_ungetc_buffer): Avoid potential problems on large files.
34404         * lib/freadseek.c (freadseek): Likewise.
34405         * modules/freadseek (Depends-on): Add fseeko.
34406         * modules/fseek (configure.ac): Set a witness.
34407         * tests/test-fflush.c (main): Use fseeko.
34408         * tests/test-fpurge.c (fseek): Disable link warning.
34409         * tests/test-freadable.c (fseek): Likewise.
34410         * tests/test-freading.c (fseek): Likewise.
34411         * tests/test-fseeko.c (fseek): Likewise.
34412         * tests/test-ftell.c (fseek): Likewise.
34413         * tests/test-ftello.c (fseek): Likewise.
34414         * tests/test-fwritable.c (fseek): Likewise.
34415         * tests/test-fwriting.c (fseek): Likewise.
34416
34417 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34418
34419         * modules/memchr (Depends-on): Drop getpagesize dependency.
34420
34421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34422
34423         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34424         Reported by Ludovic Courtès.
34425         * build-aux/pmccabe2html: Improve example usage.
34426         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34427
34428 2009-11-06  Jim Meyering  <meyering@redhat.com>
34429
34430         do-release-commit-and-tag: New module.
34431         Automate the release-commit and tag process.
34432         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34433         * modules/do-release-commit-and-tag: New file.
34434         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34435
34436 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34437
34438         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34439         because test-select.c uses inet_pton.
34440
34441 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34442
34443         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34444         GETADDRINFO_LIB.  Bump serial number.
34445         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34446         Suggested by Eric Blake <ebb9@byu.net>.
34447
34448 2009-11-05  Eric Blake  <ebb9@byu.net>
34449
34450         strtod: detect darwin bug
34451         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34452         Reported by Leo Davis.
34453
34454         freopen-safer: new module
34455         * modules/freopen-safer: New module.
34456         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34457         * lib/freopen-safer.c (freopen_safer): New file.
34458         * lib/stdio-safer.h (freopen_safer): New declaration.
34459         * lib/stdio--.h (freopen): New override.
34460         * MODULES.html.sh (File stream based Input/Output): Mention it.
34461         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34462         freopen-safer module.
34463         * doc/posix-functions/stderr.texi (stderr): Likewise.
34464         * doc/posix-functions/stdin.texi (stdin): Likewise.
34465         * doc/posix-functions/stdout.texi (stdout): Likewise.
34466         * modules/freopen-safer-tests: New test.
34467         * tests/test-reopen-safer.c: New file.
34468
34469 2009-11-05  Jim Meyering  <meyering@redhat.com>
34470
34471         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34472         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34473
34474 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34475
34476         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34477
34478 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34479
34480         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34481
34482 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34483
34484         Fix link error.
34485         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34486         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34487
34488 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34489
34490         * tests/test-func.c: Also test value of __func__.
34491
34492 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34493
34494         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34495         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34496
34497 2009-11-05  Bruno Haible  <bruno@clisp.org>
34498
34499         Fix link error.
34500         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34501         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34502         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34503
34504 2009-11-05  Bruno Haible  <bruno@clisp.org>
34505
34506         Tests for module 'inet_pton'.
34507         * modules/inet_pton-tests: New file.
34508         * tests/test-inet_pton.c: New file.
34509
34510 2009-11-05  Bruno Haible  <bruno@clisp.org>
34511
34512         Tests for module 'inet_ntop'.
34513         * modules/inet_ntop-tests: New file.
34514         * tests/test-inet_ntop.c: New file.
34515
34516 2009-11-04  Eric Blake  <ebb9@byu.net>
34517
34518         stdlib-safer: wrap all mkstemp variants
34519         * modules/mkostemp (configure.ac): Set witness.
34520         * modules/mkostemps (configure.ac): Likewise.
34521         * modules/mkstemps (configure.ac): Likewise.
34522         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34523         (mkstemps_safer): Wrap more functions.
34524         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34525         wrapping.
34526         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34527         (mkstemps_safer): Implement the wrappers.
34528
34529         mkstemps, mkostemps: new modules
34530         * modules/mkostemps: New module.
34531         * modules/mkstemps: Likewise.
34532         * lib/mkostemps.c (mkostemps): New file.
34533         * lib/mkstemps.c (mkstemps): Likewise.
34534         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34535         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34537         * modules/stdlib (Makefile.am): Substitute them.
34538         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34539         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34540         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34541         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34542         * MODULES.html.sh (File system functions): Mention them.
34543
34544         tempname: resync from glibc
34545         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34546         same values for __GT_FILE as glibc.  Abort even when assertions
34547         are disabled.
34548         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34549         match its value otherwise.  Allow idempotent inclusion.
34550         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34551         * lib/mkostemp.c (mkostemp): Likewise.
34552         * lib/mkstemp.c (mkstemp): Likewise.
34553         * lib/tmpfile.c (tmpfile): Likewise.
34554         * NEWS: Document this.
34555
34556         utimens: fix use of futimens on older Linux
34557         * lib/utimens.c (fdutimens): Use updated, rather than original,
34558         timespec to avoid bug in older Linux kernel.
34559         Reported by Simon Josefsson.
34560
34561 2009-11-04  Bruno Haible  <bruno@clisp.org>
34562
34563         Make num_processors more flexible and consistent.
34564         * lib/nproc.h (enum nproc_query): New type.
34565         (num_processors): Add a 'query' argument.
34566         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34567         (num_processors): Add a 'query' argument. Test the value of the
34568         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34569         mingw, count the number of CPUs available for the current process.
34570         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34571         Check for sched_getaffinity and sched_getaffinity_np.
34572         * modules/nproc (Depends-on): Add c-ctype, extensions.
34573         * NEWS: Mention the change.
34574
34575 2009-11-03  Bruno Haible  <bruno@clisp.org>
34576
34577         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34578
34579 2009-11-03  Jim Meyering  <meyering@redhat.com>
34580
34581         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34582         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34583         if it is defined.
34584
34585 2009-11-02  Eric Blake  <ebb9@byu.net>
34586
34587         mktime, timegm: share common declaration
34588         * lib/mktime-internal.h: New file.
34589         * lib/mktime.c: Use it rather than open-coding a declaration.
34590         * lib/timegm.c: Likewise.
34591         * modules/mktime (Files): Ship it.
34592         * modules/timegm (Files): Likewise.
34593         Suggested by Bruno Haible.
34594
34595         test-update-copyright: update test to match script changes
34596         * tests/test-update-copyright.sh: Avoid hard-coding perl
34597         location.  Don't update *.bak created by earlier runs.
34598
34599 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34600             Simon Josefsson  <simon@josefsson.org>
34601             Bruno Haible  <bruno@clisp.org>
34602
34603         Fix link error on Solaris 8.
34604         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34605         also in libnsl. Define also INET_PTON_LIB.
34606         * modules/inet_pton (Link): New section.
34607
34608 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34609             Bruno Haible  <bruno@clisp.org>
34610
34611         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34612         * modules/inet_ntop (Link): New section.
34613         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34614
34615 2009-11-02  Eric Blake  <ebb9@byu.net>
34616
34617         maint: avoid compiler warnings in m4 macros
34618         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34620
34621 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34622
34623         * m4/pmccabe2html.m4: Remove file.
34624         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34625         function.  Change maintainer.
34626         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34627         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34628         Courtès).
34629
34630 2009-10-31  Eric Blake  <ebb9@byu.net>
34631
34632         fseeko: fix m4 regression
34633         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34634         regression from 2009-10-27.
34635         Reported by Ralf Wildenhues.
34636
34637 2009-10-31  Jim Meyering  <meyering@redhat.com>
34638
34639         inttostr: aesthetics and improved (compile-time) safety
34640         Define inttype_is_signed rather than inttype_is_unsigned,
34641         since the sole use is via "#if inttype_is_signed".
34642         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34643         inttype_is_unsigned.
34644         * lib/offtostr.c (inttype_is_signed): Likewise.
34645         * lib/uinttostr.c (inttype_is_signed): Likewise.
34646         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34647         * lib/inttostr.c (inttostr): Use verify to cross-check the
34648         inttype_is_signed value and the signedness of the actual type.
34649         * modules/inttostr (Depends-on): Add verify.
34650
34651 2009-10-30  Eric Blake  <ebb9@byu.net>
34652
34653         build: avoid compiler warnings
34654         * lib/fchmodat.c (lchmod): Mark unused variables.
34655         * lib/getopt.c (_getopt_initialize): Likewise.
34656         * lib/mktime.c (__mktime_internal): Provide prototype.
34657         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34658         older gcc that do not understand #pragma GCC diagnostic.
34659         * lib/uinttostr.c (inttype_is_unsigned): Define.
34660         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34661
34662 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34663
34664         stat: fix compilation on AIX
34665         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34666         only see struct stat64.
34667
34668 2009-10-30  Eric Blake  <ebb9@byu.net>
34669
34670         exclude: make more robust
34671         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34672         rather than masking a coding bug.
34673         Suggested by Bruno Haible.
34674
34675 2009-10-30  Jim Meyering  <meyering@redhat.com>
34676
34677         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34678         Rather than putting #!/usr/bin/perl on the first line,
34679         start with a variant of what's recommended by "man perlrun" that
34680         invokes the first "perl" program from your shell's search path.
34681         * build-aux/gitlog-to-changelog: Replace #!... as above.
34682         Add a "Local Variables" perl mode setting.
34683         Prompted by a patch from Ludovic Courtès.
34684         Improved by Eric Blake.
34685         * build-aux/useless-if-before-free: Likewise.
34686         * build-aux/announce-gen: Likewise.
34687         * build-aux/update-copyright: Likewise.
34688
34689 2009-10-29  Eric Blake  <ebb9@byu.net>
34690
34691         filenamecat-lgpl: adjust clients
34692         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34693         filenamecat.
34694         * modules/renameat (Depends-on): Likewise.
34695
34696         filenamecat: split into filenamecat-lgpl
34697         * modules/filenamecat-lgpl: New module.
34698         * modules/filenamecat (Files): Move library-safe files into
34699         filenamecat-lgpl.
34700         (Depends-on): Add filenamecat-lgpl.
34701         (configure.ac): Declare witness.
34702         * lib/filenamecat.h (file_name_concat): Only declare when using
34703         GPL module.
34704         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34705         Move...
34706         * lib/filenamecat-lgpl.c: ...into new file.
34707         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34708         (gl_FILE_NAME_CONCAT): Use it.
34709         * MODULES.html.sh (File system functions): Mention new module.
34710
34711         argp: avoid memory leak
34712         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34713         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34714         base_name, since the latter malloc()s and can call exit().
34715         Leak introduced 2006-07-03.
34716
34717         dirname-lgpl: adjust clients that don't need full dirname
34718         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34719         * modules/filenamecat (Depends-on): Likewise.
34720         * modules/linkat (Depends-on): Likewise.
34721         * modules/mkancesdirs (Depends-on): Likewise.
34722         * modules/mkdir (Depends-on): Likewise.
34723         * modules/openat (Depends-on): Likewise.
34724         * modules/savewd (Depends-on): Likewise.
34725         * modules/rename (Depends-on): Likewise.
34726         (License): Relax license.
34727         * modules/mkdir-tests (Depends-on): Drop progname.
34728         (Makefile.am): Delete unneeded LDADD.
34729         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34730
34731         dirname: split into dirname-lgpl
34732         * modules/dirname-lgpl: New module.
34733         * modules/dirname (Files): Move library-safe files into
34734         dirname-lgpl.
34735         (Depends-on): Add dirname-lgpl.
34736         (configure.ac): Declare witness.
34737         * modules/double-slash-root (License): Relax license.
34738         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34739         module.
34740         * lib/dirname.c (dir_len, mdir_name): Move...
34741         * lib/dirname-lgpl.c: ...into new file.
34742         * lib/basename.c (last_component, base_len): Move...
34743         * lib/basename-lgpl.c: ...into new file.
34744         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34745         (gl_DIRNAME): Use it.
34746         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34747         Mention new module.
34748         * modules/dirname-tests (Depends-on): Add progname.
34749         * tests/test-dirname.c (program_name): Delete.
34750
34751         mkdir: make safe for libraries
34752         * modules/mkdir (Depends-on): Drop xalloc.
34753         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34754         exit.
34755
34756         tests: avoid some compiler warnings
34757         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34758         literals.
34759         * tests/test-memchr.c (main): Avoid type mismatch.
34760         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34761         * tests/test-base64.c (main): Likewise.
34762         * tests/test-getdelim.c (main): Likewise.
34763         * tests/test-gethostname.c (main): Likewise.
34764         * tests/test-getline.c (main): Likewise.
34765         * tests/test-netinet_in.c (main): Likewise.
34766         * tests/test-select.c (open_server_socket, main): Likewise.
34767         * tests/test-select-stdin.c (main): Likewise.
34768         * tests/test-sockets.c (main): Likewise.
34769         * tests/test-strsignal.c (main): Likewise.
34770         * tests/test-sys_select.c (main): Likewise.
34771         * tests/test-sys_socket.c (main): Likewise.
34772         * tests/test-u64.c (main): Likewise.
34773         * tests/test-xfprintf-posix.c (main): Likewise.
34774         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34775
34776         sockets: avoid compiler warning
34777         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34778
34779         maint: detect usage(1) and other suspicious exits
34780         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34781
34782 2009-10-29  Jim Meyering  <meyering@redhat.com>
34783
34784         timespec: long-to-int truncation could make timespec_cmp malfunction
34785         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34786         a multiple of 2^32 nanoseconds as no difference.
34787
34788 2009-10-28  Jim Meyering  <meyering@redhat.com>
34789
34790         fprintftime: wrap macro code argument in "do {...} while(0)"
34791         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34792         cpy macro must be a statement that can be followed by a semicolon.
34793         Now that the else clause contains a comment and is hence longer
34794         than one line, I require curly braces.  That in turn requires
34795         that we wrap this code block in the standard do...while(0).
34796
34797         fprintftime: remove stray semicolon from previous change
34798         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34799
34800         fprintftime: avoid a warning about ignored fwrite return value
34801         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34802         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34803         that is unsafe.
34804         * modules/fprintftime (Depends-on): Add ignore-value.
34805
34806         exclude: avoid an unwarranted warning
34807         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34808
34809 2009-10-27  Eric Blake  <ebb9@byu.net>
34810
34811         fseek: avoid compilation failure when fflush is replaced
34812         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34813         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34814         module is in use.
34815         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34816         module is not in use; since REPLACE_FSEEK worked otherwise.
34817         (GNULIB_FTELLO): Likewise for ftell.
34818         Reported by Ian Beckwith and others.
34819
34820 2009-10-27  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34823         Reported by Jim Meyering.
34824
34825 2009-10-27  Jim Meyering  <jim@meyering.net>
34826             Bruno Haible  <bruno@clisp.org>
34827
34828         Avoid warning despite dropping the return value of fwrite.
34829         * lib/unicodeio.c: Include ignore-value.h.
34830         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34831         * modules/unicodeio (Depends-on): Add ignore-value.
34832
34833 2009-10-26  Eric Blake  <ebb9@byu.net>
34834
34835         areadlinkat: fix fallback path
34836         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34837         pointer and zero.
34838
34839 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34840
34841         Use a better IO block size for modern systems
34842         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34843         * lib/md2.c: Likewise.
34844         * lib/md4.c: Likewise.
34845         * lib/md5.c: Likewise.
34846         * lib/sha1.c: Likewise.
34847         * lib/sha256.c: Likewise.
34848         * lib/sha512.c: Likewise.
34849
34850 2009-10-22  Eric Blake  <ebb9@byu.net>
34851
34852         tests: avoid several compiler warnings
34853         * tests/test-getcwd.c (main): Avoid buffer underflow.
34854         * tests/test-getdate.c (main): String literals are not safe with
34855         putenv, so use setenv.  Declare unused argument.
34856         * modules/getdate-tests (Depends-on): Add setenv.
34857         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34858         problems with string literals in char *.
34859         * tests/test-hash.c (main): Avoid shadowing declaration.
34860         (insert_new): Treat string literals as char const *.
34861         * tests/test-getopt.h (test_getopt): Likewise.
34862         (getopt_loop): Alter types to minimize casting elsewhere.
34863         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34864         (test_getopt_long_posix): Likewise.
34865         (do_getopt_long): Add wrapper to minimize casting.
34866         * tests/test-atexit.c (clear_temp_file): Use void.
34867         * tests/test-areadlink-with-size.c (main): Declare unused
34868         arguments.
34869         * tests/test-areadlink.c (main): Likewise.
34870         * tests/test-areadlinkat-with-size.c (main): Likewise.
34871         * tests/test-areadlinkat.c (main): Likewise.
34872         * tests/test-canonicalize-lgpl.c (main): Likewise.
34873         * tests/test-canonicalize.c (main): Likewise.
34874         * tests/test-dirent-safer.c (main): Likewise.
34875         * tests/test-dirname.c (main): Likewise.
34876         * tests/test-dup2.c (main): Likewise.
34877         * tests/test-fchdir.c (main): Likewise.
34878         * tests/test-fcntl-h.c (main): Likewise.
34879         * tests/test-fcntl-safer.c (main): Likewise.
34880         * tests/test-fdopendir.c (main): Likewise.
34881         * tests/test-fdutimensat.c (main): Likewise.
34882         * tests/test-fflush.c (main): Likewise.
34883         * tests/test-filenamecat.c (main): Likewise.
34884         * tests/test-filevercmp.c (main): Likewise.
34885         * tests/test-fopen-safer.c (main): Likewise.
34886         * tests/test-fopen.c (main): Likewise.
34887         * tests/test-fpending.c (main): Likewise.
34888         * tests/test-fpurge.c (main): Likewise.
34889         * tests/test-freading.c (main): Likewise.
34890         * tests/test-fstatat.c (main): Likewise.
34891         * tests/test-fsync.c (main): Likewise.
34892         * tests/test-futimens.c (main): Likewise.
34893         * tests/test-getndelim2.c (main): Likewise.
34894         * tests/test-gettimeofday.c (main): Likewise.
34895         * tests/test-getopt.c (main): Likewise.
34896         * tests/test-i-ring.c (main): Likewise.
34897         * tests/test-inttypes.c (main): Likewise.
34898         * tests/test-link.c (main): Likewise.
34899         * tests/test-lstat.c (main): Likewise.
34900         * tests/test-math.c (main): Likewise.
34901         * tests/test-md5.c (main): Likewise.
34902         * tests/test-memchr2.c (main): Likewise.
34903         * tests/test-memrchr.c (main): Likewise.
34904         * tests/test-mkdir.c (main): Likewise.
34905         * tests/test-mkdirat.c (main): Likewise.
34906         * tests/test-mkfifoat.c (main): Likewise.
34907         * tests/test-open.c (main): Likewise.
34908         * tests/test-openat-safer.c (main): Likewise.
34909         * tests/test-openat.c (main): Likewise.
34910         * tests/test-quotearg.c (main): Likewise.
34911         * tests/test-rawmemchr.c (main): Likewise.
34912         * tests/test-readlink.c (main): Likewise.
34913         * tests/test-remove.c (main): Likewise.
34914         * tests/test-rename.c (main): Likewise.
34915         * tests/test-renameat.c (main): Likewise.
34916         * tests/test-rmdir.c (main): Likewise.
34917         * tests/test-sha1.c (main): Likewise.
34918         * tests/test-signal.c (main): Likewise.
34919         * tests/test-sigaction.c (main): Likewise.
34920         * tests/test-stat.c (main): Likewise.
34921         * tests/test-stat-time.c (main): Likewise.
34922         * tests/test-stddef.c (main): Likewise.
34923         * tests/test-stdint.c (main): Likewise.
34924         * tests/test-stdio.c (main): Likewise.
34925         * tests/test-stdlib.c (main): Likewise.
34926         * tests/test-strchrnul.c (main): Likewise.
34927         * tests/test-strerror.c (main): Likewise.
34928         * tests/test-string.c (main): Likewise.
34929         * tests/test-strtod.c (main): Likewise.
34930         * tests/test-strverscmp.c (main): Likewise.
34931         * tests/test-symlink.c (main): Likewise.
34932         * tests/test-symlinkat.c (main): Likewise.
34933         * tests/test-sys_stat.c (main): Likewise.
34934         * tests/test-sys_time.c (main): Likewise.
34935         * tests/test-time.c (main): Likewise.
34936         * tests/test-unistd.c (main): Likewise.
34937         * tests/test-unlink.c (main): Likewise.
34938         * tests/test-unlinkat.c (main): Likewise.
34939         * tests/test-utimens.c (main): Likewise.
34940         * tests/test-utimensat.c (main): Likewise.
34941         * tests/test-version-etc.c (main): Likewise.
34942         * tests/test-wchar.c (main): Likewise.
34943         * tests/test-wctype.c (main): Likewise.
34944         * tests/test-xprintf-posix.c (main): Likewise.
34945         * tests/test-posixtm.c (main): Likewise.
34946         (STREQ): Delete unused macro.
34947         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34948         shadowed variables.
34949         * tests/test-memchr.c (main): Likewise.
34950
34951 2009-10-21  Eric Blake  <ebb9@byu.net>
34952
34953         areadlinkat: avoid failure on older glibc
34954         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34955         rather than mis-comparing 0 against FUNC_RESULT of char*.
34956
34957 2009-10-21  Bruno Haible  <bruno@clisp.org>
34958
34959         * modules/stpncpy (License): Relicense under LGPLv2+.
34960         Reported by David Lutterkort <lutter@redhat.com>.
34961
34962 2009-10-20  Eric Blake  <ebb9@byu.net>
34963
34964         utimensat: work around Solaris 9 bug
34965         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34966         has trailing slash bugs.
34967         * tests/test-lutimens.h (test_lutimens): Enhance test.
34968         * tests/test-utimens.h (test_utimens): Likewise.
34969         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34970         * doc/posix-functions/utimes.texi (utimes): Likewise.
34971         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34972         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34973         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34974         * doc/posix-functions/futimens.texi (futimens): Likewise.
34975
34976         fdutimensat: new module
34977         * modules/fdutimensat: New file.
34978         * lib/fdutimensat.c (fdutimensat): Likewise.
34979         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34980         * MODULES.html.sh (File system functions): Mention module.
34981         * modules/fdutimensat-tests: New test.
34982         * tests/test-fdutimensat.c: Likewise.
34983
34984         doc: regenerate INSTALL
34985         * doc/INSTALL: Reflect recent autoconf update.
34986         * doc/INSTALL.ISO: Likewise.
34987         * doc/INSTALL.UTF-8: Likewise.
34988
34989 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34990
34991         acl: warn if ACL support is not detected
34992         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34993
34994 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34995
34996         * lib/nproc.h: Add extern "C" block for C++.
34997
34998 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34999             Bruno Haible  <bruno@clisp.org>
35000
35001         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35002         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35003         * doc/posix-functions/isalpha.texi: Likewise.
35004         * doc/posix-functions/isblank.texi: Likewise.
35005         * doc/posix-functions/iscntrl.texi: Likewise.
35006         * doc/posix-functions/isdigit.texi: Likewise.
35007         * doc/posix-functions/isgraph.texi: Likewise.
35008         * doc/posix-functions/islower.texi: Likewise.
35009         * doc/posix-functions/isprint.texi: Likewise.
35010         * doc/posix-functions/ispunct.texi: Likewise.
35011         * doc/posix-functions/isspace.texi: Likewise.
35012         * doc/posix-functions/isupper.texi: Likewise.
35013         * doc/posix-functions/isxdigit.texi: Likewise.
35014
35015 2009-10-18  Bruno Haible  <bruno@clisp.org>
35016
35017         Tests for module 'isblank'.
35018         * modules/isblank-tests: New file.
35019         * tests/test-isblank.c: New file.
35020
35021         New module 'isblank'.
35022         * lib/isblank.c: New file.
35023         * m4/isblank.m4: New file.
35024         * modules/isblank: New file.
35025         * doc/posix-functions/isblank.texi: Mention the new module.
35026
35027 2009-10-18  Bruno Haible  <bruno@clisp.org>
35028
35029         New module 'ctype'.
35030         * lib/ctype.in.h: New file.
35031         * m4/ctype.m4: New file.
35032         * modules/ctype: New file.
35033         * doc/posix-headers/ctype.texi: Mention the new module.
35034
35035 2009-10-18  Jim Meyering  <meyering@redhat.com>
35036
35037         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35038         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35039         right after its initialization, rather than farther down.
35040         Keeping these in close proximity makes it easier to ensure
35041         that each such variable is initialized.  E.g.,
35042
35043             LIB_CLOCK_GETTIME=
35044             AC_SUBST([LIB_CLOCK_GETTIME])
35045
35046         This change also increments these serial numbers.
35047         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35048         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35050
35051 2009-10-18  Bruno Haible  <bruno@clisp.org>
35052
35053         Don't let environment variables perturb build.
35054         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35055         (gl_PREREQ_GETHRXTIME): ... not here.
35056
35057 2009-10-18  Bruno Haible  <bruno@clisp.org>
35058
35059         Avoid symlink attack in localcharset module.
35060         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35061         (O_NOFOLLOW): Define fallback.
35062         (get_charset_aliases): Don't open the file if it is a symbolic link.
35063         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35064         gl_FCNTL_H.
35065         (gl_FCNTL_H): Require it.
35066         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35067         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35068         Reported by Fergal Glynn <fglynn@veracode.com>.
35069
35070 2009-10-18  Bruno Haible  <bruno@clisp.org>
35071
35072         Implement nproc for mingw.
35073         * lib/nproc.c: Include <windows.h>
35074         (num_processors): On native Windows platforms, try GetSystemInfo.
35075
35076 2009-10-18  Bruno Haible  <bruno@clisp.org>
35077
35078         Implement nproc for IRIX.
35079         * lib/nproc.c: Include <sys/sysmp.h>.
35080         (num_processors): On IRIX systems, try sysmp.
35081         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35082
35083 2009-10-18  Bruno Haible  <bruno@clisp.org>
35084
35085         Implement nproc for HP-UX.
35086         * lib/nproc.c: Include <sys/pstat.h>
35087         (num_processors): On HP-UX systems, try pstat_getdynamic.
35088         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35089         pstat_getdynamic.
35090
35091 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35092             Bruno Haible  <bruno@clisp.org>
35093
35094         Implement nproc for NetBSD, OpenBSD.
35095         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35096         (ARRAY_SIZE): New macro.
35097         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35098         * m4/nproc.m4: New file.
35099         * modules/nproc (Files): Add m4/nproc.m4.
35100         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35101         (Makefile.am): Instead, augment lib_SOURCES.
35102
35103 2009-10-18  Bruno Haible  <bruno@clisp.org>
35104
35105         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35106         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35107         sys/param.h.
35108
35109 2009-10-16  Eric Blake  <ebb9@byu.net>
35110
35111         utimensat: new module
35112         * modules/utimensat: New file.
35113         * lib/utimensat.c (utimensat): Likewise.
35114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35115         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35116         so we can work around Linux bugs.
35117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35118         * modules/sys_stat (Makefile.am): Substitute them.
35119         * lib/sys_stat.in.h (utimensat): Declare it.
35120         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35121         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35122         * modules/utimensat-tests: New test.
35123         * tests/test-utimensat.c: Likewise.
35124
35125         utimens: let lutimens work on non-symlinks
35126         * lib/utimens.c (lutimens): Fall back to utimens rather than
35127         failing with ENOSYS, when file is not a symlink.
35128         (utimens): Reduce redirection.
35129         * tests/test-lutimens.h (test_lutimens): Update test to cover
35130         non-symlinks.
35131         * tests/test-utimens.h (test_utimens): Update test to cover
35132         symlinks.
35133         * tests/test-utimens.c (main): Update caller.
35134
35135         utimens: cache whether utimensat syscall works
35136         * lib/utimens.c (utimensat_works_really): New cache variable.
35137         (fdutimens, lutimens): Use it to avoid failing syscall.
35138
35139         test-stat-time, test-utimens: improve portability
35140         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35141         ext4 on alpha, and for cygwin.
35142         * tests/test-utimens-common.h: New file.
35143         (nap): Factor delays into single function.
35144         * tests/test-lutimens.h (test_lutimens): Use new header.
35145         * tests/test-futimens.h (test_futimens): Likewise.
35146         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35147         timestamps to occur from same machine, as was done previously for
35148         test_utimens.
35149         * modules/utimens-tests (Files): Ship new file.
35150         * modules/futimens-tests (Files): Likewise.
35151         Reported in part by Jim Meyering.
35152
35153         sys_stat: sort replacement declarations
35154         * lib/sys_stat.in.h: Sort declarations.
35155         * lib/futimens.c (futimens): Fix typo.
35156
35157 2009-10-15  Jim Meyering  <meyering@redhat.com>
35158
35159         don't let environment settings perturb build
35160         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35161         could cause a configure-time and/or build-time malfunction.
35162         Typically, a configure-time function-in-library test is performed
35163         via code like this:
35164
35165           LIB_VAR=
35166           AC_SUBST([LIB_VAR])
35167           prefix_saved_LIBS=$LIBS
35168             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35169                        [test "$ac_cv_search_FUNC" = "none required" ||
35170                         LIB_VAR=$ac_cv_search_FUNC])
35171           LIBS=$prefix_saved_LIBS
35172
35173         However, in each of the files affected by this change, the LIB_VAR=
35174         initialization was omitted.  Thus, when set in the environment, its
35175         value would propagate into generated Makefiles when FUNC is not found
35176         in LIB_NAME.
35177         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35180
35181 2009-10-14  Eric Blake  <ebb9@byu.net>
35182
35183         fchdir: avoid infinite recursion in mingw
35184         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35185         recursing.
35186
35187         test-stat-time: port to mingw
35188         * tests/test-stat-time.c (force_unlink): Return a value.
35189         (test_ctime) [W32]: Fix compilation error.
35190         (nap): Don't call usleep with too large an argument.  Use
35191         force_unlink.
35192         * doc/pastposix-functions/usleep.texi (usleep): Document the
35193         portability issue.
35194
35195 2009-10-13  Jim Meyering  <meyering@redhat.com>
35196
35197         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35198         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35199         * modules/pipe-filter-ii: Likewise.
35200         * modules/sys_socket-tests: Likewise.
35201         * modules/tsearch-tests: Likewise.
35202         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35203         (check): Depend on it.
35204
35205 2009-10-12  Eric Blake  <ebb9@byu.net>
35206
35207         utimens-tests: port to NFS file systems
35208         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35209         comparisons to avoid spurious failures from timestamp drift
35210         between NFS machines.
35211
35212 2009-10-12  Eric Blake  <ebb9@byu.net>
35213
35214         stat-time-tests: minor cleanups
35215         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35216         * tests/test-stat-time.c (nap): Separate assignment from call.
35217         Suggested by Paolo Bonzini and Bruno Haible.
35218
35219         sys_stat: guarantee struct timespec
35220         * lib/sys_stat.in.h (includes): Always include <time.h>
35221         * modules/sys_stat (Depends-on): Add time.
35222         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35223         mode_t permission values.
35224         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35225         get at subsecond timestamps.
35226
35227 2009-10-10  Eric Blake  <ebb9@byu.net>
35228
35229         futimens: new module
35230         * modules/futimens: New file.
35231         * lib/futimens.c (futimens): Likewise.
35232         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35233         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35234         we can work around Linux bugs.
35235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35236         * modules/sys_stat (Makefile.am): Substitute them.
35237         * lib/sys_stat.in.h (futimens): Declare it.
35238         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35239         * doc/posix-functions/futimens.texi (futimens): Likewise.
35240         * modules/futimens-tests: New test.
35241         * tests/test-futimens.c: Likewise.
35242
35243         utimens: introduce fdutimens
35244         * lib/utimens.h (fdutimens): New prototype.
35245         * lib/utimens.c (gl_futimens): Move guts...
35246         (fdutimens): ...to new interface.
35247         * tests/test-utimens.c (do_fdutimens): Use it.
35248
35249         utimens: add UTIME_NOW and UTIME_OMIT support
35250         * lib/utimens.c (validate_timespec, update_timespec): New helper
35251         functions.
35252         (gl_futimens, lutimens): Use them.
35253         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35254         stdbool, sys_stat.
35255         (Link): Mention resulting library dependency.
35256         * modules/utimecmp (Link): Likewise.
35257         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35258         (Makefile.am): Pick up library dependency.
35259         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35260         definition.
35261         * tests/test-sys_stat.c: Test the definitions.
35262         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35263         * NEWS: Document library dependency.
35264
35265         utimecmp: support symlink timestamps
35266         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35267         hashing when possible.  Use pathconf when available.
35268         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35269         * modules/utimecmp (Depends-on): Add lstat.
35270
35271         utimens: add lutimens interface
35272         * lib/utimens.c (lutimens): New function.
35273         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35274         * lib/utimens.h (lutimens): Declare new interface.
35275         * tests/test-utimens.c (main): Enhance test.
35276         * tests/test-lutimens.h (test_lutimens): New file.
35277         * modules/utimens-tests (Files): Distribute it.
35278         (Depends-on): Add symlink.
35279         (configure.ac): Check for usleep.
35280
35281         utimens: validate futimens usage
35282         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35283         fewer syscalls on failure later on.  Avoid compiler warning on
35284         mingw.
35285         * modules/utimens (Depends-on): Add dup2.
35286
35287         utimens: add test
35288         * modules/utimens-tests: New test.
35289         * tests/test-utimens.h: New file.
35290         * tests/test-futimens.h: Likewise.
35291         * tests/test-utimens.c: Likewise.
35292
35293         doc: mention timestamp portability issues
35294         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35295         instead.
35296         * doc/posix-functions/utime.texi (utime): Likewise.
35297         * doc/posix-functions/utimes.texi (utimes): Likewise.
35298         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35299         instead.
35300         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35301         module.
35302         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35303         Mention weakness with symlink timestamps.
35304         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35305         to utimensat/futimens instead.
35306         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35307
35308         test-dup2: enhance test
35309         * tests/test-dup2.c (main): Also check AT_FDCWD.
35310
35311         test-stat-time: avoid more spurious failures
35312         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35313         xfs; and avoid race if the two timestamps cross quantization edge.
35314
35315         relocatable: prefer 'file system' over 'filesystem'
35316         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35317         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35318         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35319         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35320         * lib/relocatable.c (compute_curr_prefix): Likewise.
35321
35322 2009-10-10  Jim Meyering  <meyering@redhat.com>
35323
35324         stat-time-tests: check for the usleep function
35325         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35326
35327 2009-10-10  Bruno Haible  <bruno@clisp.org>
35328
35329         * modules/xnanosleep: Put the Link section after the Include section.
35330
35331 2009-10-09  Eric Blake  <ebb9@byu.net>
35332
35333         dup2: work around FreeBSD 6.1 bug
35334         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35335         * doc/posix-functions/dup2.texi (dup2): Document it.
35336         Reported by Nelson H. F. Beebe and Jim Meyering.
35337
35338         test-stat-time: port to buggy NFS clients
35339         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35340         (test_ctime): Also skip test if mtime and ctime are skewed.
35341
35342         maint: prefer 'file system' over 'filesystem'
35343         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35344         * doc/posix-functions/lstat.texi (lstat): Likewise.
35345         * lib/file-has-acl.c (file_has_acl): Likewise.
35346         * lib/fwriteerror.c [TEST]: Likewise.
35347         * tests/test-areadlink.h (test_areadlink): Likewise.
35348         * tests/test-areadlinkat-with-size.c (main): Likewise.
35349         * tests/test-areadlinkat.c (main): Likewise.
35350         * tests/test-canonicalize-lgpl.c (main): Likewise.
35351         * tests/test-canonicalize.c (main): Likewise.
35352         * tests/test-fstatat.c (main): Likewise.
35353         * tests/test-linkat.c (main): Likewise.
35354         * tests/test-lstat.h (test_lstat_func): Likewise.
35355         * tests/test-mkdir.h (test_mkdir): Likewise.
35356         * tests/test-readlink.h (test_readlink): Likewise.
35357         * tests/test-remove.c (main): Likewise.
35358         * tests/test-rename.h (test_rename): Likewise.
35359         * tests/test-renameat.c (main): Likewise.
35360         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35361         * tests/test-symlink.h (test_symlink): Likewise.
35362         * tests/test-symlinkat.c (main): Likewise.
35363         * tests/test-unlink.h (test_unlink_func): Likewise.
35364         * tests/test-unlinkat.c (main): Likewise.
35365
35366         maint: make realtime library usage explicit
35367         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35368         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35369         * modules/settime (Link): Likewise.
35370         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35371
35372         test-stat-time: speed up execution
35373         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35374         warning on mingw.
35375         (nap): New helper function.
35376         (prepare_test): Use it to reduce sleep time.
35377         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35378         execution.
35379         * modules/stat-time-tests (configure.ac): Check for usleep.
35380
35381 2009-10-09  Jim Meyering  <meyering@redhat.com>
35382
35383         selinux-h: always use getfilecon wrappers
35384         * lib/getfilecon.c: New file.
35385         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35386         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35387         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35388         (fgetfilecon): Provide a stub.
35389         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35390         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35391         file unconditionally.
35392         When <selinux/selinux.h> is found, arrange to use wrappers.
35393         * modules/selinux-h (Files): Add getfilecon.c.
35394         (Makefile.am): Substitute include-next-related bits
35395         into the now-always-generated selinux/selinux.h file.
35396         * doc/glibc-functions/lgetfilecon.texi: New file.
35397         * doc/glibc-functions/fgetfilecon.texi: New file.
35398         * doc/glibc-functions/getfilecon.texi: New file.
35399         * doc/glibc-functions/getfilecon-desc.texi: New file.
35400         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35401         which to pull in the new files.
35402         * MODULES.html.sh (Misc): Add selinux-h.
35403
35404 2009-10-08  Jim Meyering  <meyering@redhat.com>
35405
35406         unistd: fix comment typo
35407         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35408
35409 2009-10-08  Eric Blake  <ebb9@byu.net>
35410
35411         areadlink: use SIZE_MAX consistently
35412         * modules/areadlink (Depends-on): Add stdint.
35413         * modules/areadlink-with-size (Depends-on): Likewise.
35414         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35415         gives NULL; drop sys/types, since unistd gives size_t; and add
35416         stdint for SIZE_MAX.
35417         (SIZE_MAX): Rely on headers.
35418         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35419         and add stdint.
35420         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35421         (SIZE_MAX): Likewise.
35422         (INITIAL_BUF_SIZE): Turn into enum.
35423         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35424
35425 2009-10-08  Jim Meyering  <meyering@redhat.com>
35426
35427         areadlinkat: avoid compilation failure
35428         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35429         Fix typo in comment.
35430
35431 2009-10-07  Eric Blake  <ebb9@byu.net>
35432
35433         areadlinkat-with-size: new module
35434         * modules/areadlinkat-with-size: New module.
35435         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35436         * lib/areadlink.h (areadlinkat): Declare it.
35437         * MODULES.html.sh (File system functions): Mention it.
35438         * modules/areadlinkat-with-size-tests: New test.
35439         * tests/test-areadlinkat-with-size.c: New file.
35440
35441         xreadlinkat: new module
35442         * modules/xreadlinkat: New module.
35443         * lib/xreadlinkat.c (xreadlinkat): New file.
35444         * lib/xreadlink.h (xreadlinkat): Declare it.
35445         * MODULES.html.sh (File system functions): Mention it.
35446
35447         areadlinkat: new module
35448         * lib/at-func.c (FUNC_FAIL): New define.
35449         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35450         * modules/areadlinkat: New module.
35451         * lib/linkat.c (areadlinkat): Move...
35452         * lib/areadlinkat.c (areadlinkat): ...to new file.
35453         * lib/areadlink.h (areadlinkat): Declare it.
35454         * modules/linkat (Depends-on): Add areadlinkat.
35455         * MODULES.html.sh (File system functions): Mention it.
35456         * modules/areadlinkat-tests: New test.
35457         * tests/test-areadlinkat.c: New file.
35458
35459         areadlink, areadlink-with-size: add tests
35460         * modules/areadlink-tests: New test.
35461         * modules/areadlink-with-size-tests: Likewise.
35462         * tests/test-areadlink.h: New file.
35463         * tests/test-areadlink.c: Likewise.
35464         * tests/test-areadlink-with-size.c: Likewise.
35465
35466         maint: minor cleanups
35467         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35468         _UNUSED_PARAMETER_ instead.
35469         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35470         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35471         * modules/linkat-tests (Files): Distribute test-link.h.
35472
35473         openat, utimens: whitespace cleanup
35474         * lib/openat.c: Prefer space throughout, rather than mix of 8
35475         spaces vs. tabs.
35476         * lib/at-func.c: Likewise.
35477         * lib/utimens.c: Likewise.
35478
35479         openat: avoid using wrong fd
35480         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35481         working directory chooses same fd.
35482         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35483
35484         mkdir, mkdirat: fix cygwin 1.5.x bug
35485         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35486         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35487         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35488         bug.
35489         (gl_PREREQ_MKDIR): Delete unused macro.
35490         * modules/mkdir (Files): Track file rename.
35491         (configure.ac): Update macro name.
35492         * modules/openat (Depends-on): Add mkdir.
35493         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35494
35495         mkdir, mkdirat: add tests
35496         * modules/mkdir-tests: New test.
35497         * tests/test-mkdir.h: New file.
35498         * tests/test-mkdir.c: Likewise.
35499         * tests/test-mkdirat.c: Likewise.
35500         * modules/openat-tests (Files): Add new files.
35501         (Makefile.am): Run new test.
35502
35503 2009-10-06  Eric Blake  <ebb9@byu.net>
35504
35505         doc: tweak *at function documentation
35506         * doc/posix-functions/faccessat.texi (faccessat): Mention
35507         known issue with replacement.
35508         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35509         * doc/posix-functions/linkat.texi (linkat): Likewise.
35510         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35511         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35512         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35513         * doc/posix-functions/renameat.texi (renameat): Likewise.
35514         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35515
35516         openat: fix GNU/Hurd bug in unlinkat
35517         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35518         broken.
35519         * doc/posix-functions/unlink.texi (unlink): Document this.
35520         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35521
35522         fdopendir: fix GNU/Hurd bug
35523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35524         allowing non-directory fds.
35525         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35527         * modules/dirent (Makefile.am): Substitute it.
35528         * lib/dirent.in.h (fdopendir): Declare replacement.
35529         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35530         * tests/test-fdopendir.c (main): Test something other than
35531         /dev/null, since on Hurd that behaves like a directory.
35532
35533         test-symlink: port to GNU/Hurd
35534         * tests/test-symlink.h (test_symlink): Relax expected errno.
35535
35536         doc: tweak more cygwin information
35537         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35538         now compatible with glibc.
35539         * doc/posix-functions/getopt.texi (getopt): Likewise.
35540
35541         getopt-gnu: add another test
35542         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35543         guarantee behavior relied on by m4.
35544         * tests/test-getopt.c (main): Use it.
35545         * modules/getopt-posix-tests (Depends-on): Add setenv.
35546         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35547
35548         getopt: fix compilation on darwin
35549         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35550         include.
35551         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35552         Reported by Ludovic Courtès.
35553
35554 2009-10-06  Bruno Haible  <bruno@clisp.org>
35555
35556         * modules/size_max (Description): Discourage its use.
35557         Reported by Simon Josefsson.
35558
35559 2009-10-06  Jim Meyering  <meyering@redhat.com>
35560
35561         linkat: avoid compilation failure
35562         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35563
35564 2009-10-05  Eric Blake  <ebb9@byu.net>
35565
35566         linkat: support Linux 2.6.17
35567         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35568         linkat on Linux, but allow cache variable override.
35569         * lib/linkat.c (rpl_linkat): Define override.
35570         * modules/linkat (Depends-on): Add symlinkat.
35571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35572         * modules/unistd (Makefile.am): Substitute it.
35573         * lib/unistd.in.h (linkat): Declare replacement.
35574         Reported by Pádraig Brady.
35575
35576         quotearg: port test to systems with C.UTF-8 locale
35577         * tests/test-quotearg.c (struct result_strings): Add another
35578         member, differentiating between C.ASCII and C.UTF-8 handling.
35579         (compare_strings): Add parameter.
35580         (main): Adjust all callers.
35581
35582         getopt: avoid clash with FreeBSD _getopt_internal
35583         * lib/getopt.in.h (_getopt_internal): Override the name.
35584         * lib/getopt_int.h (includes): Pick up any overrides.
35585         Reported by Reuben Thomas.
35586
35587         hash: allow C89 compilation
35588         * lib/hash.c (check_tuning): Move declaration before statement.
35589         Reported by Reuben Thomas.
35590
35591 2009-10-05  Karl Berry  <karl@gnu.org>
35592
35593         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35594
35595 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35596             Bruno Haible  <bruno@clisp.org>
35597
35598         * lib/uname.c (uname): Use a table-driven algorithm to compute
35599         Windows NT versions.
35600
35601 2009-10-04  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35604         program_invocation_short_name.
35605         * modules/progname (configure.ac): Test for presence of
35606         program_invocation_short_name.
35607         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35608
35609 2009-10-04  Bruno Haible  <bruno@clisp.org>
35610
35611         * lib/progname.c (set_program_name): Fix comment.
35612         Reported by Jim Meyering.
35613
35614 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35615             Bruno Haible  <bruno@clisp.org>
35616
35617         * lib/uname.c: Include <string.h>.
35618         (uname): Do only one call to GetVersionEx in the common case.
35619
35620 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35621             Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35624         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35625         (uname): Add support for Windows CE and various non-x86 CPU types.
35626
35627 2009-10-03  Bruno Haible  <bruno@clisp.org>
35628
35629         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35630         invocation to tests/configure.ac.
35631         Reported by Ian Beckwith <ianb@erislabs.net>.
35632
35633 2009-10-02  Eric Blake  <ebb9@byu.net>
35634
35635         fchdir: avoid compiler warning
35636         * lib/fchdir.c (canonicalize_file_name)
35637         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35638
35639         test-open: support mingw errno values
35640         * tests/test-open.h (test_open): Relax test.
35641         * tests/test-fopen.h (test_fopen): Likewise.
35642         * tests/test-openat-safer.c (main): Likewise.
35643
35644         open: fix opening directory on mingw
35645         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35646
35647         test-open: on GNU/Hurd, /dev/null is a directory
35648         * tests/test-fopen.h (main): Rename...
35649         (test_fopen): ...to this.  Use a guaranteed non-directory when
35650         confirming open behavior on trailing slash.
35651         * tests/test-openat-safer.c (main): Likewise.
35652         * tests/test-open.h (main): Likewise....
35653         (test_open): ...to this.
35654         * tests/test-fopen.c (main): Adjust caller.
35655         * tests/test-fopen-safer.c (main): Likewise.
35656         * tests/test-open.c (main): Likewise.
35657         * tests/test-fcntl-safer.c (main): Likewise.
35658         Reported by Samuel Thibault.
35659
35660         rename, fchdir: don't ignore chdir failure
35661         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35662         * lib/rename.c (rpl_rename) [W32]: Likewise.
35663         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35664         an empty destination directory if source cannot be renamed,
35665         although there is still possibility for failure.
35666         * doc/posix-functions/rename.texi (rename): Document the race.
35667         Reported by Jim Meyering.
35668
35669         maint: cleanup whitespace in recent commits
35670         * lib/rename.c (rpl_rename): Remove tabs.
35671         * tests/test-link.h (test_link): Likewise.
35672         * lib/fchdir.c (get_name): Likewise.
35673         Reported by Jim Meyering.
35674
35675 2009-10-02  Ben Pfaff  <blp@gnu.org>
35676
35677         relocatable-prog-wrapper: Add missing dependency on
35678         double-slash-root.
35679         * modules/relocatable-prog-wrapper: Add dependency.
35680         Reported by Ian Beckwith <ianb@erislabs.net>.
35681
35682 2009-10-02  Eric Blake  <ebb9@byu.net>
35683
35684         renameat: fix Solaris bugs
35685         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35686         needed fixing.
35687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35688         * modules/stdio (Makefile.am): Substitute it.
35689         * lib/stdio.in.h (renameat): Declare replacement.
35690         * lib/renameat.c (rpl_renameat): Implement fix.
35691
35692         renameat: new module
35693         * modules/renameat: New file.
35694         * lib/renameat.c (renameat): Likewise.
35695         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35697         * modules/stdio (Makefile.am): Substitute them.
35698         * lib/stdio.in.h (renameat): Declare it.
35699         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35700         * doc/posix-functions/renameat.texi (renameat): Likewise.
35701         * modules/renameat-tests: New test.
35702         * tests/test-renameat.c: Likewise.
35703
35704         rename: fix mingw bugs
35705         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35706         directory overwrite bugs.
35707
35708         rename: fix another cygwin 1.5 bug
35709         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35710         checks.
35711         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35712         unnecessary cygwin workarounds.  Also work around bug with moving
35713         full directory onto an empty one.
35714         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35715
35716         rename-dest-slash: merge into rename module
35717         * modules/rename-dest-slash (Status): Mark obsolete.
35718         (Depends-on): Add rename.
35719         (Files): Let rename do it all.
35720         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35721         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35722         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35723         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35724         * lib/rename.c (rpl_rename): Update comments.
35725
35726         rename: fix cygwin 1.5.x bugs
35727         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35728         * lib/rename.c (rpl_rename): Work around them.
35729         * modules/rename (Depends-on): Add same-inode.
35730
35731         rename: fix Solaris 10 bug
35732         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35733         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35734         was the only bug.
35735
35736         rename: fix Solaris 9 bug
35737         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35738         on non-directory.  Avoid calling exit.
35739         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35740         strdup.
35741         * modules/rename-tests (Depends-on): Drop lstat.
35742         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35743         (gl_PREREQ_RENAME): Delete unused macro.
35744
35745         rename-dest-slash: fix NetBSD bug
35746         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35747         links.
35748         * modules/rename-dest-slash (Depends-on): Add same-inode.
35749
35750         rename-tests: new test, exposes several platform bugs
35751         * modules/rename-tests: New file.
35752         * tests/test-rename.h: Likewise.
35753         * tests/test-rename.c: Likewise.
35754         * doc/posix-functions/rename.texi (rename): Improve documentation,
35755         including bugs that will eventually be fixed in gnulib.
35756
35757 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35758
35759         * lib/uname.c: Include <stdlib.h>
35760         (uname): Assume version info is available.
35761
35762 2009-10-02  Jim Meyering  <meyering@redhat.com>
35763
35764         gnu-web-doc-update: correct --help output
35765         * build-aux/gnu-web-doc-update: Make --help output relevant.
35766
35767         gnu-web-doc-update: add standard options
35768         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35769
35770         gnu-web-doc-update: New module.
35771         Use this script to automatically update the on-line web documentation
35772         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35773         * modules/gnu-web-doc-update: New file, from coreutils.
35774         * build-aux/gnu-web-doc-update: New script.
35775
35776 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35777
35778         link: LoadLibrary is not needed.
35779         * lib/link.c: Use GetModuleHandle.
35780
35781 2009-10-01  Eric Blake  <ebb9@byu.net>
35782
35783         getopt: bump serial number
35784         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35785         change.
35786
35787         tests: tighten link, rmdir, and remove tests
35788         * tests/test-link.h (includes): No need to use <config.h> here.
35789         Clean up if directory hard link was created, otherwise test for
35790         trailing '.'.
35791         * tests/test-linkat.c (main): Simplify.
35792         * tests/test-remove.c (main): Enhance test for trailing '.'.
35793         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35794
35795 2009-10-01  Jim Meyering  <meyering@redhat.com>
35796
35797         maint.mk: requiring "make major" was annoying, for a "minor" release.
35798         What is intended is "stable", to contrast with alpha and beta,
35799         so require "make stable", not "make major".
35800         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35801         (get_tool_versions): Likewise.
35802         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35803
35804 2009-09-30  Ben Pfaff  <blp@gnu.org>
35805
35806         Fix broken build of replacement for Windows tmpfile().
35807         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35808         flags argument added along with the 'mkostemp' module.
35809
35810 2009-09-28  Bruno Haible  <bruno@clisp.org>
35811
35812         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35813         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35814         to 'remove_elt'.
35815         (gl_list_remove): Update.
35816         * lib/gl_list.c (gl_list_remove): Update.
35817         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35818         to 'remove_elt'.
35819         (gl_oset_remove): Update.
35820         * lib/gl_list.c (gl_oset_remove): Update.
35821         Reported by Eric Blake.
35822
35823 2009-09-28  Eric Blake  <ebb9@byu.net>
35824
35825         doc: mention yet more cygwin 1.7 status
35826         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35827         cygwin.
35828         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35829         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35830
35831         argp: fix test failure
35832         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35833         that are not upper-case.  Pass correct range to tolower.
35834
35835 2009-09-27  Jim Meyering  <meyering@redhat.com>
35836
35837         test-yesno: work around sparc-dash here-document infelicity
35838         Without this change, the literal \177 byte in a here document
35839         would make dash 0.5.5.1-3 access uninitialized memory.
35840         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35841         Instead, use a marker, "@", and filter through tr to create the desired
35842         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35843
35844 2009-09-27  Bruno Haible  <bruno@clisp.org>
35845
35846         Disable untested support for new flavours of ACLs on AIX.
35847         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35848         progress.
35849         * lib/set-mode-acl.c (qset_acl): Likewise.
35850
35851 2008-12-07  Bruno Haible  <bruno@clisp.org>
35852
35853         Add support for new flavours of ACLs on AIX. (Untested.)
35854         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35855         (file_has_acl): Add support for newer AIX.
35856         * lib/set-mode-acl.c (qset_acl): Likewise.
35857         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35858         Rainer Tammer <tammer@tammer.net>.
35859
35860 2009-09-26  Eric Blake  <ebb9@byu.net>
35861
35862         argp: fix compilation of getopt
35863         * lib/getopt.in.h (includes): Use different guard than glibc.
35864         Reported by Sergey Poznyakoff.
35865
35866         doc: mention more cygwin 1.7 status
35867         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35868         bug.
35869         * doc/posix-functions/execl.texi (execl): Likewise.
35870         * doc/posix-functions/execle.texi (execle): Likewise.
35871         * doc/posix-functions/execlp.texi (execlp): Likewise.
35872         * doc/posix-functions/execv.texi (execv): Likewise.
35873         * doc/posix-functions/execve.texi (execve): Likewise.
35874         * doc/posix-functions/execvp.texi (execvp): Likewise.
35875         * doc/glibc-functions/canonicalize_file_name.texi
35876         (canonicalize_file_name): Cygwin 1.7 now provides this.
35877         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35878         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35879         on AT_SYMLINK_NOFOLLOW.
35880
35881 2009-09-24  Eric Blake  <ebb9@byu.net>
35882
35883         test-linkat: make test more robust
35884         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35885
35886         getopt: fix inclusion guards for cygwin
35887         * modules/getopt-posix (Depends-on): Add include-next.
35888         (Makefile.am): Substitute more items in replacement header.
35889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35890         <getopt.h>.
35891         * lib/getopt.in.h (includes): Use split inclusion guard, and
35892         prefer <getopt.h> over include <unistd.h> when one is present.
35893         (option): Also override name of 'struct option'.
35894
35895         same-inode: revert prior change; it is not yet ready
35896         * NEWS: Undo mention of this change.
35897         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35898         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35899         * lib/cycle-check.c (cycle_check): Likewise.
35900         * lib/same.c (same_name): Likewise.
35901         * lib/at-func2.c (at_func2): Likewise.
35902
35903 2009-09-23  Eric Blake  <ebb9@byu.net>
35904
35905         linkat: new module
35906         * modules/linkat: New file.
35907         * lib/at-func2.c (at_func2): Likewise.
35908         * lib/linkat.c (linkat): Likewise.
35909         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35910         * lib/openat-priv.h (at_func2): Add declaration.
35911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35912         * modules/unistd (Makefile.am): Substitute them.
35913         * lib/unistd.in.h (linkat): Declare it.
35914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35915         * doc/posix-functions/linkat.texi (linkat): Likewise.
35916         * doc/posix-functions/link.texi (link): Tweak wording.
35917         * tests/test-link.c (main): Move guts...
35918         * tests/test-link.h (test_link): ...into new file.
35919         * modules/linkat-tests: New test.
35920         * tests/test-linkat.c: Likewise.
35921         * modules/link-tests (Files): Ship new file.
35922         (Depends-on): Add stdbool.
35923
35924         dirname: add library-safe mdir_name
35925         * lib/dirname.h (mdir_name): New prototype.
35926         * lib/dirname.c (dir_name): Move guts...
35927         (mdir_name): ...to new function that avoids xalloc_die.
35928
35929         fchdir: another mingw fix
35930         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35931         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35932         on mingw (where it has not yet been ported), and make it optional
35933         elsewhere.
35934         (_gl_register_fd): Use it.
35935
35936         same-inode: make SAME_INODE tri-state, to port to mingw
35937         * NEWS: Mention this change.
35938         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35939         st_ino always being 0.
35940         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35941         * lib/cycle-check.c (cycle_check): Likewise.
35942         * lib/same.c (same_name): Likewise.
35943
35944         lstat: avoid mingw compilation error
35945         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35946         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35947         lstat ourselves.
35948         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35949         was adequate.
35950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35951         the checks for lstat.
35952         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35953
35954         link: fix test failure on Solaris 9
35955         * lib/link.c (rpl_link): Don't assume link will catch bogus
35956         trailing slash on source.
35957
35958         test-symlinkat: enhance test
35959         * tests/test-readlink.c (main): Move guts...
35960         * tests/test-readlink.h (test_readlink): ...into new file.
35961         * tests/test-symlink.c (main): Move guts...
35962         * tests/test-symlink.h (test_symlink): ...into new file.
35963         * tests/test-symlinkat.c (main): Use new files for further
35964         coverage.
35965         (do_symlink, do_readlink): New helper functions.
35966         * modules/symlink-tests (Files): Ship new file.
35967         (Depends-on): Add stdbool.
35968         * modules/readlink-tests (Files): Ship new file.
35969         (Depends-on): Add stdbool.
35970         * modules/symlinkat-tests (Files): Use new files.
35971
35972 2009-09-23  Eric Blake  <ebb9@byu.net>
35973
35974         readlink: document portability issue with symlink length
35975         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35976         systems have bogus st_size on symlinks, and mention the
35977         areadlink-with-size module.
35978         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35979         * doc/posix-functions/readlink.texi (readlink): Mention the
35980         areadlink module, and ERANGE failure.
35981         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35982         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35983
35984         readlink: fix Solaris 9 bug with trailing slash
35985         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35986         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35987         * doc/posix-functions/readlink.texi (readlink): Document this.
35988         * modules/readlink-tests: New test.
35989         * tests/test-readlink.c: Likewise.
35990
35991         readlink: fix cygwin 1.5.x bug with return type
35992         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35993         * lib/unistd.in.h (readlink): Use ssize_t.
35994         * lib/readlink.c (readlink): Likewise.
35995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35996         * modules/unistd (Makefile.am): Substitute it.
35997         * lib/unistd.in.h (readlink): Declare replacement.
35998         * doc/posix-functions/readlink.texi (readlink): Document this.
35999
36000         symlink: use throughout gnulib
36001         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36002         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36003         symlink is not used.
36004         * modules/symlinkat (Depends-on): Add symlink.
36005         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36006         * modules/canonicalize-tests (Depends-on): Likewise.
36007         * modules/lstat-tests (Depends-on): Likewise.
36008         * modules/openat-tests (Depends-on): Likewise.
36009         * modules/remove-tests (Depends-on): Likewise.
36010         * modules/rmdir-tests (Depends-on): Likewise.
36011         * modules/unlink-tests (Depends-on): Likewise.
36012         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36013         * tests/test-canonicalize.c (symlink): Likewise.
36014         * tests/test-fstatat.c (symlink): Likewise.
36015         * tests/test-lstat.c (symlink): Likewise.
36016         * tests/test-remove.c (symlink): Likewise.
36017         * tests/test-rmdir.c (symlink): Likewise.
36018         * tests/test-unlink.c (symlink): Likewise.
36019         * tests/test-unlinkat.c (symlink): Likewise.
36020
36021         symlink: new module, for Solaris 9 bug
36022         * modules/symlink: New file.
36023         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36024         * lib/symlink.c: Likewise.
36025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36026         * modules/unistd (Makefile.am): Substitute them.
36027         * lib/unistd.in.h (symlink): Declare replacement.
36028         * MODULES.html.sh (File system functions): Mention it.
36029         * doc/posix-functions/symlink.texi (symlink): Likewise.
36030         * modules/symlink-tests: New test.
36031         * tests/test-symlink.c: Likewise.
36032
36033 2009-09-23  Bruno Haible  <bruno@clisp.org>
36034
36035         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36036         when needed.
36037         Test case: gnulib-tool --import --with-tests atexit inttypes.
36038         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36039
36040 2009-09-23  Bruno Haible  <bruno@clisp.org>
36041
36042         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36043         subcommand, not in a subshell.
36044
36045 2009-09-22  Eric Blake  <ebb9@byu.net>
36046
36047         unistd: sort replacement declarations
36048         * lib/unistd.in.h: Sort declarations.
36049
36050         open, openat: minor optimization
36051         * lib/open.c (open): If open succeeded, len is non-zero.
36052         * lib/openat.c (rpl_openat): Likewise.
36053
36054         link-follow: ensure correct result
36055         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36056         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36057         distinguish between possible failures.
36058
36059 2009-09-21  Eric Blake  <ebb9@byu.net>
36060
36061         fts: avoid compiler warning
36062         * lib/fts.c (dirent_inode_sort_may_be_useful)
36063         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36064
36065 2009-09-19  Bruno Haible  <bruno@clisp.org>
36066
36067         * lib/progreloc.c (canonicalize_file_name): New declaration.
36068
36069 2009-09-19  Eric Blake  <ebb9@byu.net>
36070
36071         link: fix quoting
36072         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36073
36074         openat: fix openat bugs on Solaris 9
36075         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36076         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36077         * modules/openat (Depends-on): Add open.
36078         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36079         * modules/fcntl-h (Makefile.am): Substitute it.
36080         * lib/fcntl.in.h (openat): Declare replacement.
36081         * doc/posix-functions/openat.texi (openat): Document this.
36082
36083         openat: move fstatat and unlinkat into correct files
36084         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36085         compiled.
36086         * lib/openat.c (fstatat, unlinkat): Move...
36087         * lib/fstatat.c (fstatat): ...into correct files.
36088         * lib/unlinkat.c (unlinkat): Likewise.
36089
36090         openat: fix unlinkat bugs on Solaris 9
36091         * lib/unlinkat.c (unlinkat): New file.
36092         * modules/openat (Depends-on): Add unlink.
36093         (Files): Distribute it.
36094         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36095         trailing slash behavior is broken.
36096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36097         * modules/unistd (Makefile.am): Substitute it.
36098         * lib/unistd.in.h (unlinkat): Declare replacement.
36099         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36100
36101         openat: fix fstatat bugs on Solaris 9
36102         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36103         stat.
36104         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36105
36106         test-unlinkat: enhance test, to expose Solaris 9 bug
36107         * tests/test-unlink.c (main): Factor guts...
36108         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36109         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36110         * tests/test-rmdir.c (main): Adjust caller.
36111         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36112         (unlinker): New helper function.
36113         (rmdirat): Enhance check.
36114         * modules/rmdir-tests (Depends-on): Add stdbool.
36115         * modules/unlink-tests (Depends-on): Likewise.
36116         (Files): Add test-unlink.h.
36117         * modules/openat-tests (Files): Likewise.
36118         (Depends-on): Add unlinkdir.
36119
36120         test-fstatat: new test, to expose Solaris 9 bugs
36121         * tests/test-stat.c (main): Factor guts...
36122         * tests/test-stat.h (test_stat_func): ...into new file.
36123         * tests/test-lstat.c (main): Factor guts...
36124         * tests/test-lstat.h (test_lstat_func): ...into new file.
36125         * tests/test-fstatat.c: New file.
36126         * modules/stat-tests (Files): Add test-stat.h.
36127         * modules/lstat-tests (Files): Add test-lstat.h.
36128         (Depends-on): Add stdbool.
36129         * modules/openat-tests (Depends-on): Add pathmax.
36130         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36131         (Makefile.am): Run new test.
36132
36133         remove: new module, for mingw and Solaris 9 bugs
36134         * modules/remove: New file.
36135         * lib/remove.c: Likewise.
36136         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36138         * modules/stdio (Makefile.am): Use them.
36139         * lib/stdio.in.h (remove): Declare replacement.
36140         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36141         * doc/posix-functions/remove.texi (remove): Likewise.
36142         * modules/remove-tests: New test.
36143         * tests/test-remove.c: Likewise.
36144
36145         unlink: new module, for Solaris 9 bug
36146         * modules/unlink: New file.
36147         * lib/unlink.c: Likewise.
36148         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36150         * modules/unistd (Makefile.am): Use them.
36151         * lib/unistd.in.h (stat): Declare replacement.
36152         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36153         * doc/posix-functions/unlink.texi (unlink): Likewise.
36154         * modules/unlink-tests: New test.
36155         * tests/test-unlink.c: Likewise.
36156
36157         lstat: fix Solaris 9 bug
36158         * lib/lstat.c (lstat): Also check for trailing slash on
36159         non-symlink, non-directories.  Use stat module to simplify logic.
36160         * doc/posix-functions/lstat.texi (lstat): Document it.
36161         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36162         (configure.ac): Check for symlink.
36163         * tests/test-lstat.c (main): Add more tests.
36164
36165         stat: add as dependency to other modules
36166         * modules/chown (Depends-on): Add stat.
36167         * modules/euidaccess (Depends-on): Likewise.
36168         * modules/fchdir (Depends-on): Likewise.
36169         * modules/isdir (Depends-on): Likewise.
36170         * modules/link (Depends-on): Likewise.
36171         * modules/lstat (Depends-on): Likewise.
36172         * modules/mkdir-p (Depends-on): Likewise.
36173         * modules/modechange (Depends-on): Likewise.
36174         * modules/open (Depends-on): Likewise.
36175         * modules/readlink (Depends-on): Likewise.
36176         * modules/same (Depends-on): Likewise.
36177
36178         stat: fix Solaris 9 bug
36179         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36180         slash.
36181         * lib/stat.c (rpl_stat): Work around it.
36182         * doc/posix-functions/stat.texi (stat): Update documentation.
36183
36184         stat: new module, for mingw bug
36185         * modules/stat: New file.
36186         * lib/stat.c: Likewise.
36187         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36189         * modules/sys_stat (Makefile.am): Use them.
36190         * lib/sys_stat.in.h (stat): Declare replacement.
36191         * lib/openat.c (fstatat): Deal with lstat and stat being function
36192         macros.
36193         * modules/openat (Depends-on): Add inline.
36194         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36195         * doc/posix-functions/stat.texi (stat): Likewise.
36196         * modules/stat-tests: New test.
36197         * tests/test-stat.c: Likewise.
36198
36199 2009-09-19  Jim Meyering  <meyering@redhat.com>
36200
36201         syntax-check: detect unnecessary inclusion of canonicalize.h
36202         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36203
36204 2009-09-19  Eric Blake  <ebb9@byu.net>
36205
36206         canonicalize-lgpl: adjust clients to use correct header
36207         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36208         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36209         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36210         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36211         * lib/progreloc.c (includes): Likewise.
36212
36213 2009-09-19  Jim Meyering  <meyering@redhat.com>
36214
36215         test-posixtm.c: correct a comment
36216         * tests/test-posixtm.c: Correct first-line comment.
36217         Spotted by Eric Blake.
36218
36219 2009-09-16  Jim Meyering  <meyering@redhat.com>
36220
36221         posixtm-tests: make T const-correct; add a test case
36222         * tests/test-posixtm.c (T): Declare const.
36223         Add a test for -(2^31+1).
36224         Remove useless can-succeed-only-in-2002 test.
36225
36226         posixtm-tests: adjust the sole failing test
36227         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36228         expected output matches what mktime now produces.  Cross-checked via
36229         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36230
36231         posixtm: move #ifdef'd tests into a new module
36232         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36233         * tests/test-posixtm.c: ... this new file.
36234         * modules/posixtm-tests: New module.
36235
36236 2009-09-19  Eric Blake  <ebb9@byu.net>
36237
36238         openat: simplify use of at-func.c
36239         * lib/at-func.c (includes): Include prerequisites here, to
36240         simplify requirements on client files.
36241         * lib/openat-priv.h: Add double-inclusion guard.
36242         * lib/faccessat.c (includes): Simplify.
36243         * lib/fchmodat.c (includes): Likewise.
36244         * lib/fchownat.c (includes): Likewise.
36245         * lib/mkdirat.c (includes): Likewise.
36246         * lib/mkfifoat.c (includes): Likewise.
36247         * lib/symlinkat.c (includes): Likewise.
36248
36249         openat: allow return of fd 0
36250         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36251         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36252         unistd-safer.
36253         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36254         <fcntl.h>; this module does not leak fds.
36255         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36256         must be allowed to return 0, leaving openat_safer to add the
36257         safety.
36258         (openat_permissive): Avoid writing to just-opened fd 2 if
36259         restoring the current directory fails.
36260         * lib/openat-die.c (openat_restore_fail): Add comment.
36261         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36262         (save_cwd): Guarantee safe fd, but without use of open_safer.
36263         * tests/test-openat.c: New test.
36264         * modules/openat-tests (Files, Makefile.am): Distribute and build
36265         new file.
36266
36267         relocatable-prog-wrapper: fix build
36268         * modules/relocatable-prog-wrapper (Files): Update name of
36269         canonicalize m4 file, broken on 2009-09-17.
36270         Reported by emad hajjar <aleppos@hotmail.com>.
36271
36272 2009-09-19  Bruno Haible  <bruno@clisp.org>
36273
36274         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36275         * lib/safe-alloc.c: Likewise.
36276         Reported by Ian Beckwith <ianb@erislabs.net>.
36277
36278 2009-09-18  Bruno Haible  <bruno@clisp.org>
36279
36280         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36281         Reported by <erobles@sensacd.com.mx>.
36282
36283 2009-09-17  Eric Blake  <ebb9@byu.net>
36284
36285         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36286         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36287         slashes when checking if last component is missing.
36288         * tests/test-canonicalize.c (main): Test this.
36289
36290         canonicalize, canonicalize-lgpl: honor // if distinct from /
36291         * modules/canonicalize (Files): Add double-slash-root.m4.
36292         * modules/canonicalize-lgpl (Files): Likewise.
36293         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36294         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36295         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36296         fallback definition.
36297         (canonicalize_filename_mode): Use it to protect //.
36298         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36299         (__realpath): Likewise.
36300         * tests/test-canonicalize.c (main): Test this.
36301         * tests/test-canonicalize-lgpl.c (main): Likewise.
36302         * modules/canonicalize-tests (Depends-on): Add same-inode.
36303         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36304
36305         canonicalize-lgpl: fix glibc bug with trailing slash
36306         * m4/canonicalize-lgpl.m4: Move contents...
36307         * m4/canonicalize.m4: ...here.
36308         (gl_CANONICALIZE_LGPL): Factor realpath check...
36309         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36310         glibc 2.3.5 bug, fixed 2005-04-27.
36311         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36312         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36313         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36314         * modules/canonicalize-lgpl (Files): Manage file rename.
36315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36316         * modules/stdlib (Makefile.am): Substitute witness.
36317         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36318         is needed.
36319         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36320         replacement is required.
36321         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36322         * doc/glibc-functions/canonicalize_file_name.texi
36323         (canonicalize_file_name): Document this.
36324         * doc/posix-functions/realpath.texi (realpath): Likewise.
36325
36326         canonicalize-lgpl: reject non-directory with trailing slash
36327         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36328         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36329         catches failures in glibc 2.3.5.
36330         * tests/test-canonicalize.c (main): Likewise.
36331
36332         canonicalize-lgpl: use native realpath if it works
36333         * lib/canonicalize-lgpl.c (realpath): Guard with
36334         FUNC_REALPATH_WORKS.
36335         * lib/stdlib.in.h (realpath): Make declaration optional based on
36336         HAVE_REALPATH.
36337         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36338         native realpath works.
36339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36340         * modules/stdlib (Makefile.am): Substitute witness.
36341
36342         canonicalize, canonicalize-lgpl: use <stdlib.h>
36343         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36344         (Include): Mention <stdlib.h>.
36345         (configure.ac): Mention functions we provide.
36346         * modules/canonicalize (configure.ac): Likewise.
36347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36348         realpath if canonicalize_file_name is missing.
36349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36350         * modules/stdlib (Makefile.am): Substitute witnesses.
36351         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36352         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36353         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36354         * NEWS: Document this.
36355         * doc/glibc-functions/canonicalize_file_name.texi
36356         (canonicalize_file_name): Likewise.
36357         * doc/posix-functions/realpath.texi (realpath): Likewise.
36358         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36359
36360         test-canonicalize: consolidate into single C program
36361         * tests/test-canonicalize.sh: Delete; move setup into...
36362         * tests/test-canonicalize.c (main): ...the program, making it
36363         easier to run in debugger.  Add some tests.
36364         * modules/canonicalize-tests (Files): Remove unused file.
36365         (Depends-on): Add progname.
36366         (configure.ac, Makefile.am): Simplify.
36367
36368         test-canonicalize-lgpl: consolidate into single C program
36369         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36370         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36371         easier to run in debugger.  Add some tests.
36372         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36373         (configure.ac, Makefile.am): Simplify.
36374
36375         canonicalize: avoid resolvepath
36376         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36377         unnecessary checks.
36378         * lib/canonicalize.c (includes): Simplify.
36379         (canonicalize_file_name): Drop resolvepath implementation.
36380         * modules/canonicalize (Depends-on): Drop filenamecat.
36381
36382         canonicalize: don't lose errno
36383         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36384         over calls to free.
36385
36386         canonicalize: simplify errno handling
36387         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36388         assignment.
36389
36390         canonicalize, canonicalize-lgpl: update module dependencies
36391         * modules/canonicalize (Depends-on): Add extensions, lstat,
36392         pathmax, stdlib.
36393         (Files): Drop pathmax.h.
36394         (configure.ac): Adjust macro name.
36395         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36396         lstat, stdlib, sys_stat.
36397         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36398         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36399         extensions.
36400         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36401         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36402         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36403         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36404         declaration, if available.
36405         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36406         we can rely on the readlink module.
36407         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36408         (includes): Use <unistd.h> unconditionally.
36409
36410 2009-09-17  Eric Blake  <ebb9@byu.net>
36411
36412         maint: make Include sections of modules consistent
36413         * modules/alloca: Use only header name; no need to list #include.
36414         * modules/alloca-opt: Likewise.
36415         * modules/arpa_inet: Likewise.
36416         * modules/canon-host: Likewise.
36417         * modules/configmake: Likewise.
36418         * modules/dirent: Likewise.
36419         * modules/eealloc: Likewise.
36420         * modules/environ: Likewise.
36421         * modules/fchdir: Likewise.
36422         * modules/fcntl: Likewise.
36423         * modules/fcntl-h: Likewise.
36424         * modules/gethrxtime: Likewise.
36425         * modules/gettime: Likewise.
36426         * modules/ignore-value: Likewise.
36427         * modules/inet_ntop: Likewise.
36428         * modules/inet_pton: Likewise.
36429         * modules/inttypes: Likewise.
36430         * modules/isnand-nolibm: Likewise.
36431         * modules/isnanf-nolibm: Likewise.
36432         * modules/mbchar: Likewise.
36433         * modules/mbfile: Likewise.
36434         * modules/mbiter: Likewise.
36435         * modules/mbuiter: Likewise.
36436         * modules/netdb: Likewise.
36437         * modules/netinet_in: Likewise.
36438         * modules/nproc: Likewise.
36439         * modules/pagealign_alloc: Likewise.
36440         * modules/poll: Likewise.
36441         * modules/printf-frexp: Likewise.
36442         * modules/pthread: Likewise.
36443         * modules/putenv: Likewise.
36444         * modules/random_r: Likewise.
36445         * modules/relocatable-prog: Likewise.
36446         * modules/search: Likewise.
36447         * modules/select: Likewise.
36448         * modules/selinux-h: Likewise.
36449         * modules/settime: Likewise.
36450         * modules/signal: Likewise.
36451         * modules/size_max: Likewise.
36452         * modules/socklen: Likewise.
36453         * modules/ssize_t: Likewise.
36454         * modules/stdarg: Likewise.
36455         * modules/stdbool: Likewise.
36456         * modules/stddef: Likewise.
36457         * modules/stdint: Likewise.
36458         * modules/stdio: Likewise.
36459         * modules/stdlib: Likewise.
36460         * modules/string: Likewise.
36461         * modules/strings: Likewise.
36462         * modules/sys_file: Likewise.
36463         * modules/sys_ioctl: Likewise.
36464         * modules/sys_select: Likewise.
36465         * modules/sys_socket: Likewise.
36466         * modules/sys_stat: Likewise.
36467         * modules/sys_time: Likewise.
36468         * modules/sys_times: Likewise.
36469         * modules/sys_utsname: Likewise.
36470         * modules/sys_wait: Likewise.
36471         * modules/sysexits: Likewise.
36472         * modules/time: Likewise.
36473         * modules/times: Likewise.
36474         * modules/tmpfile: Likewise.
36475         * modules/trim: Likewise.
36476         * modules/unistd: Likewise.
36477         * modules/wchar: Likewise.
36478         * modules/wctype: Likewise.
36479
36480 2009-09-17  Bruno Haible  <bruno@clisp.org>
36481
36482         Make getdate.y compile on QNX and NetBSD 5 / i386.
36483         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36484         TIME_T_FITS_IN_LONG_INT.
36485         * lib/getdate.y (long_time_t): New type.
36486         (relative_time): Change type of 'seconds' field to long_time_t.
36487         (get_date): Update types of local variables. Check against overflow
36488         during conversion from long_time_t to time_t.
36489         Reported by Matt Kraai <kraai@ftbfs.org>
36490         and Hasso Tepper <hasso@netbsd.org>.
36491
36492 2009-09-17  Bruno Haible  <bruno@clisp.org>
36493
36494         * modules/COPYING: Update copyright years.
36495         * modules/README: Likeiwse.
36496         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36497         Reported by Ian Beckwith <ianb@erislabs.net>.
36498
36499 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36500
36501         * users.txt: Update references for gnuit package.
36502
36503 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36504
36505         * m4/getdelim.m4: Fix typo in copyright line.
36506
36507 2009-09-17  Bruno Haible  <bruno@clisp.org>
36508
36509         * lib/atoll.c: Use the standard header with GPL copyright.
36510         * lib/argz.in.h: Likewise.
36511         * lib/glob.c: Likewise.
36512         * lib/glob-libc.h: Likewise.
36513         * lib/random_r.c: Likewise.
36514         * lib/siglist.h: Likewise.
36515         * lib/strsignal.c: Likewise.
36516         Reported by Ian Beckwith <ianb@erislabs.net>.
36517
36518 2009-09-17  Eric Blake  <ebb9@byu.net>
36519
36520         rmdir: ensure correct dependency order
36521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36522
36523 2009-09-17  Bruno Haible  <bruno@clisp.org>
36524
36525         Disable assertion that fails on NetBSD 5 / i386.
36526         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36527         Reported by Sam Steingold <sds@gnu.org>
36528         and Hasso Tepper <hasso@netbsd.org>.
36529
36530 2009-09-16  Eric Blake  <ebb9@byu.net>
36531
36532         unlinkdir: port to mingw
36533         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36534         on which no one can unlink a directory.
36535
36536         stdlib: sort witness names
36537         * modules/stdlib (Makefile.am): Sort replacements.
36538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36539         * lib/stdlib.in.h: Likewise.
36540
36541         parse-duration-tests: avoid link failure
36542         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36543         LIBINTL.
36544         Reported by Tom G. Christensen.
36545
36546         openat-tests: ensure unlinkat behaves like rmdir
36547         * tests/test-rmdir.c (main): Factor guts...
36548         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36549         * modules/rmdir-tests (Files): Ship new file.
36550         * modules/openat-tests: New test.
36551         * tests/test-unlinkat.c: Likewise.
36552
36553         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36554         * modules/rmdir-errno (Status, Notice): Now obsolete.
36555
36556         rmdir: work around cygwin 1.5.x and mingw bugs
36557         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36558         * lib/rmdir.c (rmdir): Work around it.
36559         * modules/rmdir (Status, Notice): No longer obsolete.
36560         (Files): Add dos.m4.
36561         (Depends-on): Add unistd.
36562         (configure.ac): Set witnesses.
36563         (License): Relax to LGPLv2+.
36564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36565         * modules/unistd (Makefile.am): Substitute witnesses.
36566         * lib/unistd.in.h (rmdir): Declare replacement.
36567         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36568         * modules/rmdir-tests: New tests.
36569         * tests/test-rmdir.c: Likewise.
36570
36571 2009-09-15  Eric Blake  <ebb9@byu.net>
36572
36573         fchdir: improve use of replacement functions
36574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36575         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36577         REPLACE_CLOSEDIR.
36578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36579         * modules/sys_stat (Makefile.am): Substitute correct witness.
36580         * modules/dirent (Makefile.am): Likewise.
36581         * modules/unistd (Makefile.am): Likewise.
36582         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36583         * lib/unistd.in.h (dup): Likewise.
36584         * lib/sys_stat.in.h (fstat): Likewise.
36585
36586         maint: ignore gnulib-tool temp files
36587         * .gitignore: Ignore files created during gnulib-tool --test.
36588
36589 2009-09-13  Jim Meyering  <meyering@redhat.com>
36590
36591         posixtm: don't reject a time that specify "60" as the number of seconds
36592         * lib/posixtm.c (posixtime): The code to reject invalid dates
36593         would also reject a time specified with the .60 suffix.
36594         But POSIX allows that, in order to accommodate leap seconds.
36595         So don't reject it.
36596         (main): Adjust tests accordingly.
36597         * modules/posixtm (Depends-on): Add stpcpy.
36598
36599 2009-09-11  Jim Meyering  <meyering@redhat.com>
36600
36601         announce-gen: include [$release_type] in emitted Subject:
36602         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36603         e.g., [stable] in the emitted Subject: line.
36604
36605 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36606
36607         Remove obsolete macros from several modules.
36608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36609         obsolete Autoconf macros with their modern counterparts.
36610         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36611         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36613         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36614         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36615         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36617         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36618         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36619         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36620         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36622         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36623         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36624         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36625         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36626         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36627         * m4/time_r.m4 (gl_TIME_R): Likewise.
36628         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36629         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36630         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36631
36632         Fix copyright header in build-aux scripts.
36633         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36634         recommendation.
36635         * build-aux/ncftpput-ftp: Likewise.
36636         * build-aux/update-copyright: Likewise.
36637
36638 2009-09-09  Eric Blake  <ebb9@byu.net>
36639
36640         test-link: allow Linux choice of errno
36641         * tests/test-link.c (main): Relax test for alternate error.
36642
36643         strndup: fix improper m4 caching
36644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36645         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36646         (gl_PREREQ_STRNDUP): Delete.
36647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36648         * modules/string (Makefile.am): Substitute it.
36649         * lib/string.in.h (strndup): Modernize prototype.
36650
36651         getcwd: port to mingw
36652         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36653         different from the POSIX assumptions made throughout the getcwd
36654         module; fortunately, the mingw getcwd does not need replacement.
36655         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36656         * modules/getcwd-tests: New test.
36657         * tests/test-getcwd.c: Likewise.
36658
36659         link: fix platform bugs
36660         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36661         * lib/link.c (link): Work around them.  Fix related mingw bug.
36662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36663         * modules/unistd (Makefile.am): Substitute it.
36664         * lib/unistd.in.h (link): Declare replacement.
36665         * doc/posix-functions/link.texi (link): Document this.
36666         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36667
36668         test-link: consolidate into single C program, test more cases
36669         * tests/test-link.sh: Delete.
36670         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36671         at least Cygwin and Solaris.
36672         * modules/link-tests (Files): Remove unused file.
36673         (Depends-on): Add errno, sys_stat.
36674         (Makefile.am): Simplify.
36675
36676 2009-09-08  Bruno Haible  <bruno@clisp.org>
36677
36678         Work around towlower, towupper bug on mingw.
36679         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36680         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36681         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36682         * doc/posix-functions/towupper.texi: Likewise.
36683         Reported by Eric Blake.
36684
36685 2009-09-08  Jim Meyering  <meyering@redhat.com>
36686
36687         build: don't try to run autoheader if we don't use it
36688         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36689         is not used in configure.ac.
36690
36691 2009-09-08  Eric Blake  <ebb9@byu.net>
36692
36693         euidaccess: fix compilation error
36694         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36695
36696         rawmemchr: relax license
36697         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36698         okay.
36699         Reported by Jim Meyering.
36700
36701         mkfifoat: new module
36702         * modules/mkfifoat: New file.
36703         * lib/mkfifoat.c: Likewise.
36704         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36706         * modules/sys_stat (Makefile.am): Use them.
36707         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36708         * MODULES.html.sh (File system functions): Mention module.
36709         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36710         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36711         * modules/mkfifoat-tests: New test.
36712         * tests/test-mkfifoat.c: Likewise.
36713
36714         strchrnul: relax license
36715         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36716         okay.
36717         Reported by Jim Meyering.
36718
36719 2009-09-08  Eric Blake  <ebb9@byu.net>
36720
36721         fstatat: fix compilation on Solaris
36722         * lib/fstatat.c (includes): Add fcntl.h.
36723         Reported by Pádraig Brady.
36724
36725 2009-09-07  Eric Blake  <ebb9@byu.net>
36726
36727         rename: modernize replacement
36728         * modules/rename (Depends-on): Add stdio.
36729         (configure.ac): Declare witness.
36730         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36731         stdio take care of replacement.
36732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36733         * modules/stdio (Makefile.am): Substitute them.
36734         * lib/stdio.in.h (rename): Declare replacement.
36735         * lib/rename.c (includes): Allow cross-compilation to non-windows
36736         machines.
36737         * doc/posix-functions/rename.texi (rename): Improve
36738         documentation.
36739
36740         stdio: sort witness names
36741         * modules/stdio (Makefile.am): Sort replacements.
36742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36743         * lib/stdio.in.h: Likewise.
36744
36745         getcwd: minor cleanups
36746         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36747         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36748
36749         openat: provide more convenience names
36750         * modules/faccessat (configure.ac): Add C witness.
36751         * lib/unistd.in.h (readlinkat): Fix typo.
36752         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36753         convenience wrappers.
36754         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36755         wrappers in syntax checks.
36756
36757 2009-09-06  Eric Blake  <ebb9@byu.net>
36758
36759         doc: fix comments in recent patches
36760         * lib/faccessat.c: Mention correct function.
36761         * lib/fchmodat.c: Likewise.
36762         * lib/fchownat.c: Likewise.
36763         * lib/symlinkat.c: Likewise.
36764         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36765         constants.
36766
36767         faccessat, symlinkat: continue cleanup of previous patch
36768         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36769         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36770         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36772         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36773         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36774         set.
36775
36776 2009-09-06  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36779         (fstatat): Declare if GNULIB_FSTATAT is set.
36780         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36781         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36782         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36783         * modules/fcntl-h (Files): Remove m4/openat.m4.
36784         * modules/sys_stat (Files): Remove m4/openat.m4.
36785         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36786         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36787         * modules/unistd (Files): Remove m4/openat.m4.
36788         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36789         GNULIB_OPENAT.
36790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36791         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36793         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36794         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36795         gl_OPENAT_DEFAULTS.
36796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36797         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36798         Don't require gl_OPENAT_DEFAULTS.
36799         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36800         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36801         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36802         (gl_OPENAT_DEFAULTS): Remove macro.
36803
36804 2009-09-06  Bruno Haible  <bruno@clisp.org>
36805
36806         * modules/openat (configure.ac): Remove unneeded witness.
36807
36808 2009-09-06  Bruno Haible  <bruno@clisp.org>
36809
36810         Set errno to ENOSYS when a function is entirely unsupported.
36811         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36812         EOPNOTSUPP.
36813         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36814         * modules/chown (Depends-on): Remove errno.
36815
36816 2009-09-06  Bruno Haible  <bruno@clisp.org>
36817
36818         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36819
36820 2009-09-06  Bruno Haible  <bruno@clisp.org>
36821
36822         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36823
36824 2009-09-06  Ben Pfaff  <blp@gnu.org>
36825             Bruno Haible  <bruno@clisp.org>
36826
36827         Work around a glibc bug in strtok_r.
36828         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36829         Undefine if UNDEFINE_STRTOK_R is set.
36830         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36832         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36833         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36834         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36835         UNDEFINE_STRTOK_R.
36836         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36837
36838 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36839
36840         exclude: minor fix
36841         * lib/exclude.c: Include wctype.h
36842
36843 2009-09-06  Akim Demaille  <demaille@gostai.com>
36844
36845         bootstrap: improve error message
36846         * build-aux/bootstrap (find_tool): Upon failure, report the list
36847         of candidates.
36848         Honor the initial value of the envvar.
36849
36850 2009-09-05  Eric Blake  <ebb9@byu.net>
36851
36852         symlinkat: new module
36853         * modules/symlinkat: New file.
36854         * lib/symlinkat.c: Likewise.
36855         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36857         * modules/unistd (Makefile.am): Use them.
36858         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36859         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36860         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36861         * MODULES.html.sh (File system functions): Mention module.
36862         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36863         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36864         * modules/symlinkat-tests: New test.
36865         * tests/test-symlinkat.c: Likewise.
36866
36867         test-openat-safer: add more checks
36868         * tests/test-openat-safer.c (main): Check more code paths.
36869
36870 2009-09-05  Jim Meyering  <meyering@redhat.com>
36871
36872         syntax-check: detect unnecessary inclusion of openat.h
36873         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36874
36875 2009-09-05  Bruno Haible  <bruno@clisp.org>
36876
36877         Support towlower, towupper.
36878         * doc/posix-functions/towlower.texi: Mention module wctype.
36879         * doc/posix-functions/towupper.texi: Likewise.
36880         * lib/wctype.in.h (towlower, towupper): New functions.
36881         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36882         (ASSERT): New macro.
36883         (e): New variable.
36884         (main): Test also towlower, towupper. Test WEOF argument.
36885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36886
36887 2009-09-05  Bruno Haible  <bruno@clisp.org>
36888
36889         Fix conversion behaviour when the input is invalid.
36890         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36891         mark occurring in first pass of indirect conversion.
36892         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36893         input.
36894         Found by clang's static analyzer.
36895
36896 2009-09-05  Bruno Haible  <bruno@clisp.org>
36897
36898         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36899         where direct conversion is possible.
36900
36901 2009-09-04  Eric Blake  <ebb9@byu.net>
36902
36903         openat: fail with ENOENT on empty name
36904         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36905         buffer.
36906
36907         link-follow: fix logic bug in prior patch
36908         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36909         reversed sense of yes and no in prior patch.  Avoid confusing
36910         compilation failure with desired semantics.
36911
36912         link-follow: accomodate mingw and cross-compilation
36913         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36914         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36915         cross-compilation results to -1, to make linkat easier to
36916         implement when cross-compiling.  Trivially support mingw.
36917         * modules/link-follow (configure.ac): Call new name.
36918         * NEWS: Mention this.
36919
36920 2009-09-03  Eric Blake  <ebb9@byu.net>
36921
36922         faccessat: compile replacement
36923         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36924         needed.
36925
36926         fts: fix compilation error
36927         * lib/fts.c (includes): Re-add "openat.h", for
36928         openat_needs_fchdir.
36929
36930         faccessat: new module
36931         * modules/faccessat: New file.
36932         * lib/faccessat.c: Likewise.
36933         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36935         * modules/unistd (Makefile.am): Use it.
36936         * lib/unistd.in.h (faccessat): Declare it.
36937         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36938         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36939         * MODULES.html.sh (File system functions): Mention it.
36940         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36941         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36942
36943         euidaccess: prefer POSIX over non-standard implementation
36944         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36945         * lib/euidaccess.c (euidaccess): Use it if available.
36946
36947         openat: make template easier to use
36948         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36949         AT_FUNC_F2 to be undefined.
36950         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36951         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36952         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36953         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36954         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36955         Likewise.
36956         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36957         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36958         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36959         Likewise.
36960
36961         openat: declare in POSIX headers
36962         * NEWS: Mention this.
36963         * modules/openat (configure.ac): Declare witnesses.
36964         (Depends-on): Add fcntl-h, sys_stat, unistd.
36965         (Include): Mention correct headers.
36966         * modules/fcntl-h (Depends-on): Add link-warning.
36967         (Files): Add openat.m4.
36968         (Makefile.am): Substitute witnesses.
36969         * modules/sys_stat (Files, Makefile.am): Likewise.
36970         * modules/unistd (Files, Makefile.am): Likewise.
36971         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36972         (gl_OPENAT_DEFAULTS): New macro.
36973         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36976         (SYS_STAT_H): Remove unused variable.
36977         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36978         * lib/fcntl--.h (includes): Remove unneeded header.
36979         * lib/openat-safer.c (includes): Likewise.
36980         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36981         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36982         appropriate headers.
36983         (__OPENAT_PREFIX): Delete.
36984         * lib/fcntl.in.h (openat): Provide declaration.
36985         (AT_FDCWD): Fix Solaris bug.
36986         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36987         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36988         * lib/fchmodat.c (includes):  Adjust to find declaration.
36989         * lib/fchownat.c (includes): Likewise.
36990         * lib/mkdirat.c (includes): Likewise.
36991         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36992         still visible.
36993
36994 2009-09-02  Eric Blake  <ebb9@byu.net>
36995
36996         errno: use consistently
36997         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36998         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36999         * lib/canonicalize.c (ELOOP): Likewise.
37000         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37001         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37002         * lib/lchown.c (EOPNOTSUPP): Likewise.
37003         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37004         * lib/savewd.c (ESTALE): Likewise.
37005         * lib/settime.c (ENOSYS): Likewise.
37006         * lib/utimens.c (ENOSYS): Likewise.
37007         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37008         * lib/chdir-safer.c (ELOOP): Likewise.
37009         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37010         * modules/c-stack (Depends-on): Add errno.
37011         * modules/canonicalize (Depends-on): Likewise.
37012         * modules/chdir-safer (Depends-on): Likewise.
37013         * modules/fdopendir (Depends-on): Likewise.
37014         * modules/inet_ntop (Depends-on): Likewise.
37015         * modules/inet_pton (Depends-on): Likewise.
37016         * modules/lchown (Depends-on): Likewise.
37017         * modules/openat (Depends-on): Likewise.
37018         * modules/savewd (Depends-on): Likewise.
37019         * modules/settime (Depends-on): Likewise.
37020         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37021
37022         fts: avoid leaking fds
37023         * modules/fts (Depends-on): Add cloexec.
37024         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37025         flag.
37026
37027         fts: make directory fds more robust
37028         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37029         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37030
37031         backupfile, chdir-long, fts, savedir: make safer
37032         * lib/backupfile.c (includes): Use "dirent--.h", since
37033         numbered_backup can write to stderr during readdir.
37034         * lib/savedir.c (includes): Likewise.
37035         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37036         emulation can write to stderr on failure.
37037         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37038         * lib/getcwd.c: Document why opendir_safer is unused.
37039         * lib/glob.c: Likewise.
37040         * lib/scandir.c: Likewise.
37041         * lib/openat-proc.c: Likewise, for open_safer.
37042         * modules/backupfile (Depends-on): Add dirent-safer.
37043         * modules/savedir (Depends-on): Likewise.
37044         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37045         * modules/chdir-long (Depends-on): Add openat-safer.
37046
37047         openat-safer: new module
37048         * modules/openat-safer: New file.
37049         * lib/openat-safer.c: Likewise.
37050         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37051         * lib/fcntl-safer.h (openat_safer): Declare.
37052         * lib/fcntl--.h (openat): Override.
37053         * MODULES.html.sh (File descriptor based I/O): Mention it.
37054         * lib/openat.h: Add double-inclusion guards.
37055         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37056         "fcntl--.h", so we can implement openat.
37057         * modules/openat-safer-tests: New test.
37058         * tests/test-openat-safer.c: New file.
37059
37060         dirent-safer: new module
37061         * modules/dirent-safer: New file.
37062         * lib/dirent--.h: Likewise.
37063         * lib/dirent-safer.h: Likewise.
37064         * lib/opendir-safer.c: Likewise.
37065         * m4/dirent-safer.m4: Likewise.
37066         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37067         * modules/dirent-safer-tests: New test.
37068         * tests/test-dirent-safer.c: New file.
37069         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37070
37071         fdopendir: optimize on mingw
37072         * lib/unistd.in.h (_gl_directory_name): New prototype.
37073         * lib/fchdir.c (_gl_directory_name): Implement it.
37074         (fchdir): Use it to simplify implementation.
37075         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37076         fchdir, when available, to avoid calling [f]chdir().
37077
37078         fdopendir: split into its own module
37079         * lib/openat.c (fdopendir): Move...
37080         * lib/fdopendir.c: ...into new file.
37081         * modules/fdopendir: New module.
37082         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37083         * modules/openat (Depends-on): Add fdopendir.
37084         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37085         fdopendir here.
37086         * modules/savedir (Depends-on): Only need fdopendir, not full
37087         openat.
37088         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37089         * lib/openat.h (fdopendir): Drop prototype.
37090         * lib/dirent.in.h (fdopendir): Provide prototype.
37091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37092         * modules/dirent (Makefile.am): Substitute them.
37093         * MODULES.html.sh (File system functions): Mention it.
37094         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37095         * modules/fdopendir-tests: New file.
37096         * tests/test-fdopendir.c: Likewise.
37097
37098         fchdir: use more consistent macro convention
37099         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37100         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37101         REPLACE_FCHDIR, rather than relying on config.h macros.
37102         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37103         inside a single make-time REPLACE_FCHDIR block, rather than using
37104         the config.h FCHDIR_REPLACEMENT.
37105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37106         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37107         Manage fstat replacement.
37108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37109         REPLACE_FCHDIR.
37110         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37111         (Makefile.am): Substitute REPLACE_FCHDIR.
37112         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37113         FCHDIR_REPLACEMENT.
37114         * lib/dup-safer.c (dup_safer): Likewise.
37115         * lib/dup2.c (rpl_dup2): Likewise.
37116         * lib/dup3.c (rpl_dup3): Likewise.
37117         * lib/open.c (rpl_open): Likewise.
37118
37119         fchdir: simplify error handling, and support dup3
37120         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37121         stdbool, malloc-posix, realloc-posix.
37122         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37123         (ensure_dirs_slot): Return false on allocation failure.
37124         (rpl_dup2): Delete.
37125         (_gl_register_dup): New function.
37126         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37127         (_gl_register_fd): Close fd on allocation failure.
37128         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37129         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37130         prototype.
37131         (rpl_dup2_fchdir): Delete prototype.
37132         * lib/open.c (open): Update caller.
37133         * lib/dup2.c (dup2): Track fchdir metadata.
37134         * lib/dup3.c (dup3): Likewise.
37135         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37137
37138 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37139
37140         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37141         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37142         don't pass arguments to AC_OUTPUT.
37143
37144 2009-09-02  Bruno Haible  <bruno@clisp.org>
37145
37146         * modules/mkdtemp (License): Relicense under LGPLv2+.
37147         Reported by Paolo Bonzini.
37148
37149 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37150
37151         Replace uses of obsolete autoconf macros in Jim's modules.
37152         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37153         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37154         can evoke a warning from autoconf when run with -Wobsolete
37155         enabled.  They were declared obsolete for good reasons (see
37156         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37157         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37158         should not continue using the deprecated macros.
37159         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37160         obsolete Autoconf macros with modern counterparts.
37161         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37162         * m4/dos.m4 (gl_AC_DOS): Likewise.
37163         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37165         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37166         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37167         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37170         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37171         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37172         Likewise.
37173         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37174         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37175         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37176         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37177         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37178         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37179
37180 2009-09-01  Eric Blake  <ebb9@byu.net>
37181
37182         fchdir: fix off-by-one bug in previous patch
37183         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37184         (_gl_unregister_fd): Delete useless if.
37185
37186 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37187
37188         maint.mk: sort the list of syntax-check rules
37189         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37190         easier to get a sense of progress when the rules are run sequentially
37191         and take a long time.
37192
37193 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37194
37195         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37196         * modules/netinet_in: Likewise.
37197         * modules/sys_file: Likewise.
37198         * modules/sys_ioctl: Likewise.
37199         * modules/sys_select: Likewise.
37200         * modules/sys_socket: Likewise.
37201         * modules/sys_stat: Likewise.
37202         * modules/sys_time: Likewise.
37203         * modules/sys_times: Likewise.
37204         * modules/sys_utsname: Likewise.
37205         * modules/sys_wait: Likewise.
37206
37207 2009-09-01  Jim Meyering  <meyering@redhat.com>
37208
37209         fts: help ensure that return values are not ignored
37210         * lib/fts_.h (__GNUC_PREREQ): Define.
37211         (__attribute_warn_unused_result__): Define.
37212         (fts_children, fts_close, fts_open, fts_read): Declare with
37213         __attribute_warn_unused_result__.
37214
37215         fts: fts_close now fails also when closing a dir file descriptor fails
37216         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37217         and propagate to caller, along with errno.
37218
37219         announce-gen: correct formatting in --help output
37220         * build-aux/announce-gen (usage): Move the one-line description in
37221         --help output "up", to where it belongs, just after Usage:.
37222
37223 2009-08-31  Eric Blake  <ebb9@byu.net>
37224
37225         fchdir: port to mingw
37226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37227         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37228         opened, then use a substitute.
37229         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37230         replacement.
37231         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37232         (_gl_register_fd): No need to check stat if open already filters
37233         all directories.
37234         (fchdir): Fix error condition to match POSIX.
37235         * modules/fchdir (Depends-on): Add sys_stat.
37236         * doc/posix-functions/open.texi (open): Document the limitation.
37237         * modules/fchdir-tests: New file.
37238         * tests/test-fchdir.c: Likewise.
37239
37240         canonicalize: allow cross-testing from cygwin to mingw
37241         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37242         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37243         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37244         Likewise.
37245         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37246         target does not support symlinks.
37247         * tests/test-canonicalize-lgpl.sh: Likewise.
37248
37249         chown: avoid compilation warning on mingw
37250         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37251         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37252         mingw.
37253         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37254         * modules/chown (Depends-on): Add errno.
37255
37256 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37257
37258         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37259         command.
37260
37261 2009-08-31  Jim Meyering  <meyering@redhat.com>
37262
37263         canonicalize: remove useless initialization
37264         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37265         initialization of local, "end".
37266
37267 2009-08-30  Bruno Haible  <bruno@clisp.org>
37268
37269         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37270         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37271         ENOSYS.
37272
37273 2009-08-30  Bruno Haible  <bruno@clisp.org>
37274
37275         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37276         /usr/xpg4/bin/tr when it exists.
37277         * tests/test-pipe-filter-gi1.sh: Likewise.
37278
37279 2009-08-30  Bruno Haible  <bruno@clisp.org>
37280
37281         Work around deficient /usr/bin/id program on Solaris.
37282         * tests/test-file-has-acl.sh (ID): New variable.
37283         * tests/test-set-mode-acl.sh (ID): Likewise.
37284         * tests/test-copy-acl.sh (ID): Likewise.
37285         * tests/test-copy-file.sh (ID): Likewise.
37286
37287 2009-08-30  Bruno Haible  <bruno@clisp.org>
37288
37289         New module 'xstriconveh'.
37290         * lib/xstriconveh.h: New file.
37291         * lib/xstriconveh.c: New file.
37292         * modules/xstriconveh: New file.
37293
37294 2009-08-30  Bruno Haible  <bruno@clisp.org>
37295
37296         Make it easier to use mem_cd_iconveh.
37297         * lib/striconveh.h (iconveh_t): New type.
37298         (iconveh_open, iconveh_close): New declarations.
37299         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37300         with a single 'const iconveh_t *' argument.
37301         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37302         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37303         with a single 'const iconveh_t *' argument.
37304         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37305         * tests/test-striconveh.c (main): Update.
37306         * NEWS: Mention the change.
37307
37308 2009-08-30  Bruno Haible  <bruno@clisp.org>
37309
37310         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37311         problem.
37312
37313 2009-08-30  Bruno Haible  <bruno@clisp.org>
37314
37315         Work around iconv_open problem on Solaris.
37316         * lib/iconv_open-solaris.gperf: New file.
37317         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37319         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37320         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37321         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37322         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37323
37324 2009-08-29  Jim Meyering  <meyering@redhat.com>
37325
37326         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37327         * top/maint.mk (cvs-check): Remove target; it was just an alias
37328         to the better-named vc-diff-check.
37329         (maintainer-distcheck): Remove rule.  It was used only from
37330         the (alpha/beta/major) target, and all of its commands but one
37331         were coreutils-specific.
37332         (vc-dist): Remove rule.
37333         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37334         Run vc-diff-check, not vc-dist.
37335         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37336
37337 2009-08-27  Bruno Haible  <bruno@clisp.org>
37338
37339         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37340         of 0.
37341
37342 2009-08-27  Bruno Haible  <bruno@clisp.org>
37343
37344         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37345         compilers.
37346         * doc/func.texi: Document the SunPRO C bug.
37347
37348 2009-08-27  Bruno Haible  <bruno@clisp.org>
37349
37350         Fix link error on Solaris.
37351         * tests/test-parse-duration.c (xstrdup): Remove function.
37352
37353 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37354
37355         ignore-value: handle pointer types, too
37356         * lib/ignore-value.h (__attribute__): Remove definition.
37357         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37358         of a more concise and more-often effective "(void) i" statement.
37359         (ignore_ptr): New function to suppress warnings from functions that
37360         return pointers, and to make it explicit that one function doesn't
37361         handle all cases.
37362
37363 2009-08-25  Bruno Haible  <bruno@clisp.org>
37364
37365         dup2: work around a Linux bug.
37366         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37367         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37368         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37369         Reported by Simon Josefsson.
37370
37371 2009-08-25  Jim Meyering  <meyering@redhat.com>
37372
37373         libguestfs uses gnulib
37374         * users.txt: Add libguestfs.
37375
37376 2009-08-24  Eric Blake  <ebb9@byu.net>
37377
37378         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37379         * lib/pipe2.c (includes): Add binary-io.h.
37380         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37381
37382 2009-08-24  Bruno Haible  <bruno@clisp.org>
37383
37384         Tolerate declared but missing accept4 syscall.
37385         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37386         available.
37387         * lib/sys_socket.in.h (accept4): If the function is already present,
37388         override it.
37389         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37390         * modules/accept4 (Makefile.am): Compile accept4.c always.
37391         Reported by Paolo Bonzini and Eric Blake.
37392
37393 2009-08-23  Bruno Haible  <bruno@clisp.org>
37394
37395         New module 'accept4'.
37396         * lib/sys_socket.in.h (accept4): New declaration.
37397         * lib/accept4.c: New file.
37398         * m4/accept4.m4: New file.
37399         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37400         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37401         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37402         HAVE_ACCEPT4.
37403         * modules/accept4: New file.
37404         * doc/glibc-functions/accept4.texi: Mention the new module.
37405
37406 2009-08-24  Jim Meyering  <meyering@redhat.com>
37407
37408         progname: also set global program_invocation_name, when possible
37409         Before this change, a libtool-enabled program that calls glibc's
37410         error function would report the program name as
37411         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37412         * modules/progname (configure.ac): Check for a declaration of
37413         program_invocation_name.
37414         * lib/progname.c:  Include <errno.h>.
37415         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37416         Set program_invocation_name.
37417
37418 2009-08-23  Bruno Haible  <bruno@clisp.org>
37419
37420         * lib/dup3.c: Include <string.h>.
37421
37422 2009-08-23  Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37425         * lib/pipe2.c (pipe2): Likewise.
37426         Suggested by Eric Blake.
37427
37428 2009-08-23  Bruno Haible  <bruno@clisp.org>
37429
37430         Tolerate declared but missing dup3 syscall.
37431         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37432         * lib/unistd.in.h (dup3): If the function is already present,
37433         override it.
37434         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37435         * modules/dup3 (Makefile.am): Compile dup3.c always.
37436         Reported by Paolo Bonzini.
37437
37438 2009-08-23  Bruno Haible  <bruno@clisp.org>
37439
37440         Tolerate declared but missing pipe2 syscall.
37441         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37442         available.
37443         * lib/unistd.in.h (pipe2): If the function is already present,
37444         override it.
37445         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37446         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37447         Reported by Paolo Bonzini.
37448
37449 2009-08-23  Bruno Haible  <bruno@clisp.org>
37450
37451         * lib/pipe2.c (pipe2): Move #ifs inside function.
37452
37453 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37454
37455         quotearg: document limitations of quote_these_too
37456         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37457         those limitations are created.
37458         * lib/quotearg.h (set_char_quoting): Document that digits and
37459         letters that are special after backslash are not permitted.
37460         (quotearg_char): Cross-reference set_char_quoting documentation.
37461
37462 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37463
37464         quotearg: implement custom_quoting_style
37465         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37466         right_quote fields.
37467         (set_custom_quoting): New public function.
37468         (quotearg_buffer_restyled): Add left_quote and right_quote
37469         arguments, handle them very much like locale quoting, and update
37470         all uses.
37471         (quotearg_n_custom): New public function.
37472         (quotearg_n_custom_mem): New public function.
37473         (quotearg_custom): New public function.
37474         (quotearg_custom_mem): New public function.
37475         * lib/quotearg.h: Prototype and document new public functions.
37476         (enum quoting_style): For escape_quoting_style and
37477         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37478         ignored even though they're otherwise like c_quoting_style.
37479         Add custom_quoting_style member and document with comparison to
37480         clocale_quoting_style.
37481         * tests/test-quotearg.c (custom_quotes): New array.
37482         (custom_results): New array.
37483         (main): Extend to test custom quoting.
37484
37485 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37486
37487         quotearg: fix right quote escaping when it's in quote_these_too
37488         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37489         quote, be sure to prepend only one backslash.
37490         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37491         (main): Test it.
37492
37493 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37494
37495         quotearg-tests: test escaping of embedded locale quotes
37496         * tests/test-quotearg.c (struct result_strings): Add member for
37497         new input.
37498         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37499         (inputs): Add new input.
37500         (results_g): Add expected results.
37501         (flag_results): Likewise.
37502         (locale_results): Likewise.
37503         (compare_strings): Check those.
37504
37505 2009-08-23  Bruno Haible  <bruno@clisp.org>
37506
37507         Tests for module 'dup3'.
37508         * modules/dup3-tests: New file.
37509         * tests/test-dup3.c: New file.
37510
37511         New module 'dup3'.
37512         * lib/unistd.in.h (dup3): New declaration.
37513         * lib/dup3.c: New file.
37514         * m4/dup3.m4: New file.
37515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37516         HAVE_DUP3.
37517         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37518         * modules/dup3: New file.
37519         * doc/glibc-functions/dup3.texi: Mention the new module.
37520
37521 2009-08-23  Bruno Haible  <bruno@clisp.org>
37522
37523         Tweak the dup2 test.
37524         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37525         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37526         the test file is still empty. Fix argument order of lseek.
37527
37528 2009-08-23  Bruno Haible  <bruno@clisp.org>
37529
37530         Avoid test link errors when the modules getopt-gnu, gettext are used.
37531         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37533
37534 2009-08-23  Bruno Haible  <bruno@clisp.org>
37535
37536         Fix getdtablesize() on mingw.
37537         * lib/getdtablesize.c (getdtablesize): Implement differently.
37538         * lib/unistd.in.h (getdtablesize): Improve comment.
37539
37540 2009-08-23  Bruno Haible  <bruno@clisp.org>
37541
37542         New module 'mkostemp'.
37543         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37544         * lib/stdlib.in.h (mksotemp): New declaration.
37545         * lib/mkostemp.c: New file, from glibc with modifications.
37546         * lib/tempname.h (GT_FILE): Remove outdated comment.
37547         (gen_tempname): Add flags argument.
37548         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37549         (__GT_FILE): Map to 1.
37550         (small_open, large_open): Remove macros.
37551         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37552         * lib/mkstemp.c (mkstemp): Update.
37553         * lib/mkdtemp.c (mkdtemp): Likewise.
37554         * m4/mkostemp.m4: New file.
37555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37556         HAVE_MKOSTEMP.
37557         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37558         HAVE_MKOSTEMP.
37559         * modules/mkostemp: New file, based on modules/mkstemp.
37560         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37561         * NEWS: Mention the change.
37562
37563 2009-08-23  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37566         Reported by Eric Blake.
37567
37568 2009-08-23  Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37571         Reported by Eric Blake.
37572
37573 2009-08-23  Bruno Haible  <bruno@clisp.org>
37574
37575         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37576         * modules/pipe2 (Depends-on): Likewise.
37577
37578 2009-08-23  Eric Blake  <ebb9@byu.net>
37579
37580         fcntl-h: add O_TTY_INIT support
37581         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37582         * tests/test-fcntl-h.c (o): Test it.
37583         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37584
37585         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37586         * modules/fcntl: Move <fcntl.h> header replacement...
37587         * modules/fcntl-h: ...to new name, so as not to collide with
37588         like-named function.
37589         * tests/test-fcntl.c: Rename...
37590         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37591         * modules/fcntl-tests: Rename...
37592         * modules/fcntl-h-tests: ...to this.  Update test file name.
37593         * modules/chdir-long (Depends-on): Update clients.
37594         * modules/chdir-safer (Depends-on): Likewise.
37595         * modules/fcntl-safer (Depends-on): Likewise.
37596         * modules/fts (Depends-on): Likewise.
37597         * modules/mkancesdirs (Depends-on): Likewise.
37598         * modules/mkdir-p (Depends-on): Likewise.
37599         * modules/open (Depends-on): Likewise.
37600         * modules/savewd (Depends-on): Likewise.
37601         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37602         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37603
37604 2009-08-22  Bruno Haible  <bruno@clisp.org>
37605
37606         * modules/binary-io (License): Relicense under LGPL.
37607         * modules/pipe2 (License): Likewise.
37608
37609 2009-08-22  Bruno Haible  <bruno@clisp.org>
37610
37611         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37612         return value.
37613         * lib/pipe-filter-gi.c (filter_init): Likewise.
37614         Reported by Eric Blake.
37615
37616 2009-08-22  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37619         * modules/pipe (Depends-on): Add pipe2.
37620
37621 2009-08-22  Bruno Haible  <bruno@clisp.org>
37622
37623         Tests for module 'pipe2'.
37624         * modules/pipe2-tests: New file.
37625         * tests/test-pipe2.c: New file.
37626
37627         New module 'pipe2'.
37628         * lib/unistd.in.h (pipe2): New declaration.
37629         * lib/pipe2.c: New file.
37630         * m4/pipe2.m4: New file.
37631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37632         HAVE_PIPE2.
37633         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37634         * modules/pipe2: New file.
37635         * doc/glibc-functions/pipe2.texi: Mention the new module.
37636
37637 2009-08-22  Bruno Haible  <bruno@clisp.org>
37638
37639         Reference some new glibc functions.
37640         * doc/glibc-functions/accept4.texi: New file.
37641         * doc/glibc-functions/dup3.texi: New file.
37642         * doc/glibc-functions/mkostemp.texi: New file.
37643         * doc/glibc-functions/pipe2.texi: New file.
37644         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37645         (Glibc sys/socket.h): Refer to accept4.
37646         (Glibc unistd.h): Refer to dup3, pipe2.
37647         Reported by Eric Blake.
37648
37649 2009-08-22  Jim Meyering  <meyering@redhat.com>
37650             Bruno Haible  <bruno@clisp.org>
37651
37652         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37653         This makes it so packages using automake-1.11's silent-rules option
37654         can print e.g., a single "GEN    configmake.h" line, rather than
37655         the 30+ statements that perform the job.  If you want to see the
37656         actual commands, you can still run "make V=1".
37657         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37658         so that make output is abbreviated when those variables are defined
37659         appropriately.
37660         * modules/argz: Likewise.
37661         * modules/arpa_inet: Likewise.
37662         * modules/byteswap: Likewise.
37663         * modules/configmake: Likewise.
37664         * modules/dirent: Likewise.
37665         * modules/errno: Likewise.
37666         * modules/fcntl: Likewise.
37667         * modules/float: Likewise.
37668         * modules/fnmatch: Likewise.
37669         * modules/getopt-posix: Likewise.
37670         * modules/glob: Likewise.
37671         * modules/iconv_open: Likewise.
37672         * modules/inttypes: Likewise.
37673         * modules/localcharset: Likewise.
37674         * modules/locale: Likewise.
37675         * modules/math: Likewise.
37676         * modules/netdb: Likewise.
37677         * modules/netinet_in: Likewise.
37678         * modules/poll: Likewise.
37679         * modules/posix_spawnp-tests: Likewise.
37680         * modules/sched: Likewise.
37681         * modules/search: Likewise.
37682         * modules/selinux-h: Likewise.
37683         * modules/signal: Likewise.
37684         * modules/spawn: Likewise.
37685         * modules/stdarg: Likewise.
37686         * modules/stdbool: Likewise.
37687         * modules/stddef: Likewise.
37688         * modules/stdint: Likewise.
37689         * modules/stdio: Likewise.
37690         * modules/stdlib: Likewise.
37691         * modules/string: Likewise.
37692         * modules/strings: Likewise.
37693         * modules/sys_file: Likewise.
37694         * modules/sys_ioctl: Likewise.
37695         * modules/sys_select: Likewise.
37696         * modules/sys_socket: Likewise.
37697         * modules/sys_stat: Likewise.
37698         * modules/sys_time: Likewise.
37699         * modules/sys_times: Likewise.
37700         * modules/sys_utsname: Likewise.
37701         * modules/sys_wait: Likewise.
37702         * modules/sysexits: Likewise.
37703         * modules/time: Likewise.
37704         * modules/unistd: Likewise.
37705         * modules/wchar: Likewise.
37706         * modules/wctype: Likewise.
37707
37708 2009-08-22  Jim Meyering  <meyering@redhat.com>
37709
37710         announce-gen: detect write failure
37711         * build-aux/announce-gen: Add Coda at end.
37712         Remove equivalent-but-more-verbose block at top.
37713
37714 2009-08-19  Akim Demaille  <demaille@gostai.com>
37715
37716         bootstrap: --help to stdout.
37717         * bootstrap (usage): Don't send --help to stderr.
37718         Use a here doc instead of a long string.
37719
37720 2009-08-21  Eric Blake  <ebb9@byu.net>
37721
37722         test-popen-safer: split from test-popen
37723         * tests/test-popen.c (main): Move...
37724         * tests/test-popen.h: ...into new file.
37725         * tests/test-popen-safer2.c: New file.
37726         * modules/popen-tests (Files): Add test-popen.h.
37727         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37728         Suggested by Bruno Haible.
37729
37730         test-fcntl-safer: split from test-open
37731         * tests/test-open.c (main): Move...
37732         * tests/test-open.h: ...into new file.
37733         * tests/test-fcntl-safer.c: New file.
37734         * modules/open-tests (Files): Add test-open.h.
37735         * modules/fcntl-safer-tests: New file.
37736         Suggested by Bruno Haible.
37737
37738         test-fopen-safer: split from test-fopen
37739         * tests/test-fopen.c (main): Move...
37740         * tests/test-fopen.h: ...into new file.
37741         * tests/test-fopen-safer.c: New file.
37742         * modules/fopen-tests (Files): Add test-fopen.h.
37743         * modules/fopen-safer-tests: New file.
37744         Suggested by Bruno Haible.
37745
37746 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37747
37748         popen-safer: test O_CLOEXEC at run-time.
37749         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37750
37751 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37752
37753         fcntl: move more flags to the header
37754         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37755         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37756         * lib/fcntl.in.h: Do both things here.
37757
37758 2009-08-21  Jim Meyering  <meyering@redhat.com>
37759
37760         consistently remove $@-t before redirecting to it
37761         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37762         * modules/alloca-opt: Likewise.
37763         * modules/byteswap: Likewise.
37764         * modules/fnmatch: Likewise.
37765         * modules/getopt-posix: Likewise.
37766         * modules/glob: Likewise.
37767         * modules/poll: Likewise.
37768         * modules/posix_spawnp-tests: Likewise.
37769         * modules/sys_socket: Likewise.
37770         * modules/sysexits: Likewise.
37771
37772 2009-08-21  Eric Blake  <ebb9@byu.net>
37773
37774         popen: simplify access to original popen
37775         * lib/popen.c (rpl_popen): No need to worry about popen being a
37776         macro.
37777         Reported by Bruno Haible.
37778
37779 2009-08-20  Eric Blake  <ebb9@byu.net>
37780
37781         build: avoid some compiler warnings
37782         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37783         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37784         type.
37785         (new_exclude_segment, excluded_file_pattern_p)
37786         (excluded_file_name_p): Reduce scope.
37787         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37788         old-style declaration.
37789
37790 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37791
37792         * tests/test-exclude1.sh: Handle Windows EOL.
37793         * tests/test-exclude2.sh: Likewise.
37794         * tests/test-exclude3.sh: Likewise.
37795         * tests/test-exclude4.sh: Likewise.
37796         * tests/test-exclude5.sh: Likewise.
37797         * tests/test-exclude6.sh: Likewise.
37798         * tests/test-exclude7.sh: Likewise.
37799
37800 2009-08-19  Akim Demaille  <demaille@gostai.com>
37801
37802         bootstrap: find sha1sum when named gsha1sum.
37803         * bootstrap (find_tool): New.
37804         ($SHA1SUM): New.
37805         Use it.
37806
37807 2009-08-20  Jim Meyering  <meyering@redhat.com>
37808
37809         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37810         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37811         expression that converts "." in a file name to "\." in the resulting
37812         regexp.  Start with a dummy statement, so that prior shell variable
37813         definitions are expanded portably.  Reported by Simon Josefsson.
37814
37815 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37816
37817         Fix polling for writeability of a screen buffer.
37818         * lib/poll.c: Distinguish input and screen buffers for the
37819         Win32 implementation.
37820         * lib/select.c: Likewise.
37821
37822 2009-08-19  Eric Blake  <ebb9@byu.net>
37823
37824         popen-safer: prevent popen from clobbering std descriptors
37825         * modules/popen-safer: New file.
37826         * lib/popen-safer.c: Likewise.
37827         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37828         * lib/stdio--.h (popen): Provide override.
37829         * lib/stdio-safer.h (popen_safer): Provide declaration.
37830         * tests/test-popen.c (includes): Partially test this.
37831         * modules/popen-safer-tests: New file, for more tests.
37832         * tests/test-popen-safer.c: Likewise.
37833         * MODULES.html.sh (file stream based Input/Output): Mention it.
37834
37835         tests: test some of the *-safer modules
37836         * modules/fopen-safer (Depends-on): Add fopen.
37837         * modules/fcntl-safer (Depends-on): Add fcntl.
37838         * modules/stdlib-safer (Depends-on): Add stdlib.
37839         (configure.ac): Set indicator.
37840         * modules/unistd-safer (configure.ac): Likewise.
37841         * modules/tmpfile-safer (configure.ac): Likewise.
37842         (Depends-on): Add tmpfile.
37843         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37844         active.
37845         * tests/test-fopen.c (includes): Test safer versions when they are
37846         in use.
37847         * tests/test-open.c (includes): Likewise.
37848
37849         popen: fix cygwin 1.5 bug when stdin closed
37850         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37851         * modules/popen: New file.
37852         * modules/popen-tests: Likewise.
37853         * tests/test-popen.c: Likewise.
37854         * m4/popen.m4: Likewise.
37855         * lib/popen.c: Likewise.
37856         * lib/stdio.in.h (popen): New declaration.
37857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37858         * modules/stdio (Makefile.am): Likewise.
37859         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37860
37861 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37862
37863         maint.mk: give full control over update-copyright exclusions
37864         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37865         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37866         (update-copyright): Don't force inclusion of top-level
37867         ChangeLog.  Don't force exclusion of all COPYING files, but make
37868         them the default exclusion instead.
37869
37870 2009-08-16  Bruno Haible  <bruno@clisp.org>
37871
37872         Fix test failures on Solaris 10.
37873         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37874         tests when Solaris iconv() is used.
37875         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37876         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37877         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37878         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37879         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37880
37881 2009-08-16  Bruno Haible  <bruno@clisp.org>
37882
37883         Fix test failures on Solaris 10.
37884         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37885         'tr' program and pass it as first argument.
37886         * tests/test-pipe-filter-gi1.sh: Likewise.
37887         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37888         program as first argument.
37889         * tests/test-pipe-filter-gi1.c (main): Likewise.
37890
37891 2009-08-16  Eric Blake  <ebb9@byu.net>
37892
37893         fpurge: fix previous commits
37894         * modules/fpurge (Makefile.am): Make replacement conditional,
37895         partially reverting 2007-04-29 change; missed in previous
37896         attempt.
37897         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37898         is missing.
37899
37900 2009-08-16  Bruno Haible  <bruno@clisp.org>
37901
37902         Clarify fpurge's effect on the file position.
37903         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37904         * tests/test-fpurge.c (main): Make a second pass for checking the file
37905         position.
37906
37907 2009-08-16  Bruno Haible  <bruno@clisp.org>
37908
37909         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37910         declaration of fpurge is missing.
37911         * tests/test-fpurge.c (main): Check that the file has not more contents
37912         than expected. Close the file before removing it.
37913
37914 2009-08-15  Eric Blake  <ebb9@byu.net>
37915
37916         fpurge: don't wrap working cygwin implementation
37917         * lib/fpurge.c (fpurge): Fix comment typo.
37918         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37919         1.7 to avoid replacement.
37920         * tests/test-fpurge.c (main): Enhance test.
37921
37922 2009-08-15  Eric Blake  <ebb9@byu.net>
37923         and Jim Meyering  <meyering@redhat.com>
37924
37925         test-update-copyright: skip if perl is insufficient
37926         * tests/test-update-copyright.sh: Failure to run maintainer tool
37927         should not cause testsuite failure on cygwin 1.5.
37928
37929 2009-08-14  Eric Blake  <ebb9@byu.net>
37930
37931         doc: mention more functions added in cygwin 1.7.0
37932         * doc/posix-headers/limits.texi (limits.h): Update for recent
37933         cygwin additions.
37934         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37935         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37936         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37937         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37938         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37939
37940 2009-08-14  Eric Blake  <ebb9@byu.net>
37941
37942         maint.mk: simplify update-copyright rule
37943         * top/maint.mk (update-copyright-local): Delete, and document how
37944         to do it in cfg.mk instead.
37945         (update-copyright-exclude-regexp): Delete, and document how to do
37946         it in .x-update-copyright instead.
37947         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37948         exclude ChangeLog.
37949
37950 2009-08-14  Bruno Haible  <bruno@clisp.org>
37951
37952         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37953
37954 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37955
37956         maint.mk: support update-copyright-env
37957         * top/maint.mk (update-copyright-env): Define place-holder.
37958         (update-copyright): Expand $(update-copyright-env) before
37959         invoking update-copyright.
37960
37961 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37962
37963         update-copyright: implement forced reformatting
37964         * build-aux/update-copyright: Implement and document
37965         UPDATE_COPYRIGHT_FORCE.
37966         * tests/test-update-copyright.sh: Test it.
37967
37968 2009-08-14  Eric Blake  <ebb9@byu.net>
37969         and Bruno Haible  <bruno@clisp.org>
37970
37971         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37972         * tests/test-locale.c: Revert previous patch related to NULL.
37973         * tests/test-stdio.c: Likewise.
37974         * tests/test-stdlib.c: Likewise.
37975         * tests/test-string.c: Likewise.
37976         * tests/test-unistd.c: Likewise.
37977         * modules/time-tests (Depends-on): Add verify.
37978         * modules/wchar-tests (Depends-on): Likewise.
37979         * tests/test-time.c: Test for NULL compliance.
37980         * tests/test-wchar.c: Likewise.
37981         * modules/locale (Depends-on): Add stddef.
37982         * modules/stdio (Depends-on): Likewise.
37983         * modules/stdlib (Depends-on): Likewise.
37984         * modules/string (Depends-on): Likewise.
37985         * modules/time (Depends-on): Likewise.
37986         * modules/unistd (Depends-on): Likewise.
37987         * modules/wchar (Depends-on): Likewise.
37988         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37989         * lib/stdlib.in.h (includes): Likewise.
37990         * lib/string.in.h (includes): Likewise.
37991         * lib/time.in.h (includes): Likewise.
37992         * lib/unistd.in.h (includes): Likewise.
37993         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37994         replaced.
37995         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37996         * m4/stddef_h.m4: New file.
37997         * modules/stddef: Likewise.
37998         * lib/stddef.in.h: Likewise.
37999         * modules/stddef-tests: Likewise.
38000         * tests/test-stddef.c: Likewise.
38001         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38002         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38003         * doc/posix-headers/locale.texi (locale.h): Likewise.
38004         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38005         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38006         * doc/posix-headers/string.texi (string.h): Likewise.
38007         * doc/posix-headers/time.texi (time.h): Likewise.
38008         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38009         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38010
38011 2009-08-14  Eric Blake  <ebb9@byu.net>
38012
38013         doc: improve git diff of texinfo files
38014         * .gitattributes: Add rule for *.texi files, with hint on how to
38015         use it.
38016         Copied from m4, and based on a report by Bruno Haible.
38017
38018 2009-08-14  Bruno Haible  <bruno@clisp.org>
38019
38020         Disable multithread support by default on Cygwin 1.5.x for real.
38021         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38022
38023 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38024
38025         update-copyright: much ado about intervals
38026         * build-aux/update-copyright: Implement and document
38027         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38028         of copyright year intervals.
38029         Also, document UPDATE_COPYRIGHT_YEAR.
38030         * tests/test-update-copyright.sh: Test it.
38031
38032         update-copyright: convert 2-digit to 4-digit years
38033         * build-aux/update-copyright: Implement and document.
38034         * tests/test-update-copyright.sh: Update.
38035
38036 2009-08-14  Jim Meyering  <meyering@redhat.com>
38037
38038         test-exclude: avoid coreutils "make check" failure
38039         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38040         just as in test-argmatch.c.
38041
38042 2009-08-13  Eric Blake  <ebb9@byu.net>
38043
38044         test-dup2: fix bad assumption
38045         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38046         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38047
38048         test-version-etc: fix CRLF portability issue
38049         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38050         recognize \r.
38051         * tests/test-argp-version-etc-1.sh: Likewise.
38052
38053         getopt: update client modules
38054         * modules/argp (Depends-on): Use getopt-gnu.
38055         * modules/git-merge-changelog (Depends-on): Likewise.
38056         * modules/long-options (Depends-on): Likewise.
38057         * modules/xstrtol (Depends-on): Likewise.
38058
38059 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38060
38061         * tests/test-version-etc.sh: Don't fail on different
38062         project/version.  Don't fail on CRLF differences.  Rewrite to use
38063         multiple -e instead of multiple sed forks, suggested by Eric Blake
38064         <ebb9@byu.net>.
38065         * tests/test-argp-version-etc-1.sh: Likewise.
38066
38067 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38068
38069         * tests/test-version-etc.sh: Don't fail on different
38070         project/version.
38071
38072 2009-08-12  Bruno Haible  <bruno@clisp.org>
38073
38074         Tests for modules 'getopt-posix', 'getopt-gnu'.
38075         * modules/getopt-posix-tests: New file.
38076         * tests/test-getopt.c: New file.
38077         * tests/test-getopt.h: New file.
38078         * tests/test-getopt_long.h: New file.
38079
38080         New modules 'getopt-posix', 'getopt-gnu'.
38081         * modules/getopt-gnu: New file, renamed from modules/getopt.
38082         * modules/getopt-posix: New file.
38083         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38084         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38085         (gl_GETOPT): Remove macro.
38086         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38087         Disable the test against BSD systems that declare optreset. Test
38088         against mingw bug. Test against lack of support of optional arguments
38089         on many platforms.
38090         * doc/glibc-headers/getopt.texi: Update module name and list of
38091         relevant platforms.
38092         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38093         'getopt-gnu' and more portability problems.
38094         * NEWS: Mention the changes.
38095
38096 2009-08-12  Bruno Haible  <bruno@clisp.org>
38097
38098         Ensure that optarg etc. get declared by <unistd.h>.
38099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38100         AC_USE_SYSTEM_EXTENSIONS.
38101         * modules/getopt (Depends-on): Add 'extensions'.
38102
38103 2009-08-12  Bruno Haible  <bruno@clisp.org>
38104
38105         Avoid test link errors.
38106         * modules/pipe-filter-ii-tests (Makefile.am): Define
38107         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38108         * modules/pipe-filter-gi-tests (Makefile.am): Define
38109         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38111
38112 2009-08-12  Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38115         gl_GETOPT_SUBSTITUTE before.
38116         (gl_GETOPT): Use it.
38117         * m4/argp.m4 (gl_ARGP): Update.
38118         Reported by Sergey Poznyakoff.
38119
38120         * m4/getopt.m4: Reorder macros.
38121         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38122         (gl_GETOPT_SUBSTITUTE): Remove macro.
38123
38124 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38125
38126         Minor improvement in gitlog-to-changelog
38127
38128         * build-aux/gitlog-to-changelog: New option `--format' makes
38129         output format string configurable.
38130
38131 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38132
38133         Optimize exclude: use hash tables for non-wildcard patterns.
38134
38135         * lib/exclude.c: Include hash.h and mbuiter.h
38136         (struct exclude_pattern, exclude_segment): New data types.
38137         (struct exclude): Rewrite.
38138         (fnmatch_pattern_has_wildcards): New function.
38139         (new_exclude_segment, free_exclude_segment): New functions.
38140         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38141         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38142         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38143         * modules/exclude: Depend on hash and mbuiter.
38144
38145         * modules/exclude-tests: New file.
38146         * tests/test-exclude.c: New file.
38147         * tests/test-exclude1.sh: New file.
38148         * tests/test-exclude2.sh: New file.
38149         * tests/test-exclude3.sh: New file.
38150         * tests/test-exclude4.sh: New file.
38151         * tests/test-exclude5.sh: New file.
38152         * tests/test-exclude6.sh: New file.
38153         * tests/test-exclude7.sh: New file.
38154
38155 2009-08-12  Bruno Haible  <bruno@clisp.org>
38156
38157         Ensure that getopt() gets declared by <unistd.h>.
38158         * lib/unistd.in.h: Conditionally include getopt.h.
38159         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38160         Set GNULIB_UNISTD_H_GETOPT.
38161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38162         GNULIB_UNISTD_H_GETOPT.
38163         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38164
38165 2009-08-12  Bruno Haible  <bruno@clisp.org>
38166
38167         Clarify logic.
38168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38169         gl_replace_getopt instead of GETOPT_H.
38170
38171 2009-08-12  Bruno Haible  <bruno@clisp.org>
38172
38173         * m4/getopt.m4: Add comments.
38174
38175 2009-08-12  Bruno Haible  <bruno@clisp.org>
38176
38177         Disable multithread support by default on Cygwin 1.5.x.
38178         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38179         set gl_use_threads=no if not specified otherwise.
38180
38181 2009-08-11  Bruno Haible  <bruno@clisp.org>
38182
38183         Avoid compilation error on NetBSD 5.0.
38184         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38185         * tests/test-stdio.c: Likewise.
38186         * tests/test-stdlib.c: Likewise.
38187         * tests/test-string.c: Likewise.
38188         * tests/test-unistd.c: Likewise.
38189         Reported by Greg Troxel <gdt@ir.bbn.com>
38190         at <https://savannah.gnu.org/support/?106973>.
38191
38192 2009-08-11  Bruno Haible  <bruno@clisp.org>
38193
38194         * modules/dup2-tests (Depends-on): Remove close.
38195
38196         Undo 2009-07-19 commit.
38197         * modules/acl-tests (Depends-on): Remove close.
38198         * modules/binary-io-tests (Depends-on): Likewise.
38199         * modules/closein-tests (Depends-on): Likewise.
38200         * modules/flock-tests (Depends-on): Likewise.
38201         * modules/fsync-tests (Depends-on): Likewise.
38202         * modules/lseek-tests (Depends-on): Likewise.
38203         * modules/pipe-tests (Depends-on): Likewise.
38204         * modules/posix_spawn-tests (Depends-on): Likewise.
38205         * modules/posix_spawnp-tests (Depends-on): Likewise.
38206         * modules/stat-time-tests (Depends-on): Likewise.
38207         * modules/yesno-tests (Depends-on): Likewise.
38208
38209 2009-08-10  Bruno Haible  <bruno@clisp.org>
38210
38211         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38212
38213 2009-08-10  Bruno Haible  <bruno@clisp.org>
38214
38215         Fix a gcc warning.
38216         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38217
38218 2009-08-10  Bruno Haible  <bruno@clisp.org>
38219
38220         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38221         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38222         not only the first time.
38223         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38224         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38225         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38226         is 1, not only the the first time.
38227
38228 2009-08-10  Bruno Haible  <bruno@clisp.org>
38229
38230         Make it possible to use module 'gethostname' without module 'close'.
38231         * lib/unistd.in.h (close): Evoke a link error only if
38232         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38234         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38235         * modules/unistd (Makefile.am): Substitute
38236         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38237         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38238         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38240         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38241         * modules/sys_ioctl (Makefile.am): Substitute
38242         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38243         * modules/socket (configure.ac): On native Windows, set
38244         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38245         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38246         Reported by Sam Steingold <sds@gnu.org>.
38247
38248 2009-08-10  Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38251         * modules/ioctl (configure.ac): Likewise.
38252
38253 2009-08-10  Bruno Haible  <bruno@clisp.org>
38254
38255         Avoid collision between gnulib wrapper and libintl wrapper.
38256         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38257         already defined in intl/printf.c.
38258         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38259         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38260
38261 2009-08-09  Bruno Haible  <bruno@clisp.org>
38262
38263         Make <sys/select.h> really self-contained, also on Solaris 10.
38264         * lib/sys_select.in.h: Include <string.h>.
38265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38266         Solaris 10 problem.
38267         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38268         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38269         Reported by Jim Meyering.
38270
38271 2009-08-09  Bruno Haible  <bruno@clisp.org>
38272
38273         Avoid warnings from 'aclocal' that are due to a use of macro name
38274         AM_XGETTEXT_OPTION that is not defined in automake.
38275         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38276         automake.
38277         * modules/error (configure.ac): Likewise.
38278         * modules/propername (configure.ac): Likewise.
38279         * modules/vasprintf (configure.ac): Likewise.
38280         * modules/verror (configure.ac): Likewise.
38281         * modules/xprintf (configure.ac): Likewise.
38282         * modules/xvasprintf (configure.ac): Likewise.
38283
38284 2009-08-08  Bruno Haible  <bruno@clisp.org>
38285
38286         Avoid compilation error in C++ mode.
38287         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38288         Reported by Sam Steingold <sds@gnu.org>.
38289
38290 2009-08-08  Bruno Haible  <bruno@clisp.org>
38291
38292         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38293         for the various Unix platforms.
38294         * doc/posix-headers/limits.texi: Update platforms list regarding
38295         HOST_NAME_MAX.
38296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38297
38298 2009-08-07  Jim Meyering  <meyering@redhat.com>
38299
38300         selinux-at: fix typo in a comment
38301         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38302         Spotted by Paolo Bonzini.
38303
38304         selinux-at: remove redundant m4 code, add documentation
38305         * modules/selinux-at (configure.ac): Remove redundant code.
38306         LIB_SELINUX is already set via the dependent module, selinux-h.
38307         (Include): Add quotes around selinux-at.h.
38308         * lib/selinux-at.h: Add documentation.
38309         Reported by Bruno Haible in
38310         http://marc.info/?l=gnulib-bug&m=124958988300749
38311
38312 2009-08-07  Bruno Haible  <bruno@clisp.org>
38313
38314         Avoid link error on MacOS X 10.3 and 10.4.
38315         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38316         on non-ELF systems.
38317         * lib/argp-pv.c (argp_program_version): Likewise.
38318         Reported by Simon Josefsson.
38319
38320 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38321
38322         * tests/test-version-etc.sh: Use $EXEEXT.
38323
38324 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38325
38326         update-copyright: update documentation to point to maint.mk
38327         * build-aux/update-copyright: Here.
38328
38329 2009-08-06  Jim Meyering  <meyering@redhat.com>
38330
38331         maint.mk: support update-copyright-local
38332         * top/maint.mk (update-copyright-local): Define place-holder.
38333         (update-copyright): Depend on $(update-copyright-local).
38334
38335 2009-08-06  Jim Meyering  <meyering@redhat.com>
38336
38337         selinux-at: new module
38338         Initially written for coreutils, this module will soon be
38339         used by findutils, too.
38340         * MODULES.html.sh [Misc]: Add selinux-at.
38341         * lib/selinux-at.h: New file, from coreutils.
38342         * lib/selinux-at.c: Likewise.
38343         * modules/selinux-at: Likewise.
38344         (License): Change from LGPL to GPL, since it depends
38345         on the GPL'd openat module.
38346
38347         doc: update README
38348         * README: Remove references to cogito.
38349         Remove cvs-repo-updating instructions from 2007.
38350         Don't imply that CVS is better if you have limited disk space.
38351
38352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38353
38354         update-copyright: support C-style comments
38355         * build-aux/update-copyright: Implement and document.
38356         * tests/test-update-copyright.sh: Test.
38357
38358 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38359
38360         update-copyright: support omitted "(C)"
38361         * build-aux/update-copyright: Implement and document.  Also,
38362         allow variable whitespace before "(C)".
38363         * tests/test-update-copyright.sh: Test.
38364
38365 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38366
38367         update-copyright: don't trip on non-FSF copyright statements
38368         * build-aux/update-copyright: Fix so that the first correctly
38369         formatted FSF copyright statement is recognized no matter what
38370         appears before it.  Update documentation.
38371         * tests/test-update-copyright.sh: Test that.
38372
38373 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38374
38375         update-copyright: clean up code a little
38376         * build-aux/update-copyright: Append "_re" to the name of any
38377         variable holding a regular expression.
38378         Replace "old" and "new" with "stmt" in variable names.
38379         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38380         handled correctly.
38381         Format code more consistently.
38382
38383 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38384
38385         update-copyright-tests: improve portability
38386         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38387         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38388
38389 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38390
38391         update-copyright: support @copyright{} and &copy;
38392         * build-aux/update-copyright: Implement and document.
38393         * tests/test-update-copyright.sh: Test.
38394
38395 2009-08-04  Jim Meyering  <meyering@redhat.com>
38396
38397         update-copyright-tests: correctly test EOL=\r\n handling
38398         * tests/test-update-copyright.sh: Put \r at the end of some lines
38399         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38400
38401         maint.mk: make update-copyright exclusion list more configurable
38402         * top/maint.mk (update-copyright): Default to excluding COPYING,
38403         but allow an override, in case someone does want to update that file.
38404
38405         maint.mk: don't update copyright date in COPYING
38406         * top/maint.mk (update-copyright): Exclude COPYING.
38407
38408         maint.mk: add a copyright-updating rule
38409         * top/maint.mk (update-copyright): New rule.
38410         Derived from coreutils/Makefile.am.
38411
38412         update-copyright: rename some variables
38413         * build-aux/update-copyright: Rename a few variables for clarity.
38414         Tweak syntax.  List Joel E. Denny as coauthor.
38415
38416 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38417
38418         update-copyright: fix bug for 2-digit last year and add tests
38419         * build-aux/update-copyright: Fix bug.
38420         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38421         specified.
38422         * modules/update-copyright-tests: New
38423         * tests/test-update-copyright.sh: New.
38424
38425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38426
38427         update-copyright: handle leading tabs in line prefix
38428         * build-aux/update-copyright: Count leading tabs as 8 spaces
38429         when computing margin.  This helps with the formatting of
38430         ChangeLogs, for example.
38431         Fix documentation a little.
38432
38433 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38434
38435         update-copyright: support EOL=\r\n
38436         * build-aux/update-copyright: Implement that.
38437
38438 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38439
38440         update-copyright: automatically format copyright statements
38441         * build-aux/update-copyright: Implement that.
38442         Also, be a little more predictable and safer by always failing
38443         when the full copyright format is not perfectly recognized as an
38444         unbroken whole.  Discussed at
38445         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38446         Rewrite documentation.
38447
38448 2009-08-03  Bruno Haible  <bruno@clisp.org>
38449
38450         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38451
38452 2009-08-02  Bruno Haible  <bruno@clisp.org>
38453
38454         Tests for module 'uname'.
38455         * modules/uname-tests: New file.
38456         * tests/test-uname.c: New file.
38457
38458         New module 'uname'.
38459         * lib/uname.c: New file.
38460         * m4/uname.m4: New file.
38461         * modules/uname: New file.
38462         * doc/posix-functions/uname.texi: Mention the new module.
38463
38464 2009-08-02  Bruno Haible  <bruno@clisp.org>
38465
38466         Tests for module 'sys_utsname'.
38467         * modules/sys_utsname-tests: New file.
38468         * tests/test-sys_utsname.c: New file.
38469
38470         New module 'sys_utsname'.
38471         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38472         * m4/sys_utsname_h.m4: New file.
38473         * modules/sys_utsname: New file.
38474         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38475
38476 2009-08-02  Bruno Haible  <bruno@clisp.org>
38477
38478         Implicitly initialize the sockets library.
38479         * lib/gethostname.c: Include sockets.h.
38480         (rpl_gethostname): Invoke gl_sockets_startup.
38481         * lib/socket.c: Include sockets.h.
38482         (rpl_socket): Invoke gl_sockets_startup.
38483         * modules/gethostname (Depends-on): Add sockets.
38484         * modules/socket (Depends-on): Likewise.
38485         * tests/test-poll.c: Don't include sockets.h.
38486         (main): Don't invoke gl_sockets_startup.
38487         * tests/test-select.c: Don't include sockets.h.
38488         (main): Don't invoke gl_sockets_startup.
38489
38490 2009-08-02  Bruno Haible  <bruno@clisp.org>
38491
38492         Allow multiple calls to gl_sockets_startup.
38493         * lib/sockets.c (initialized_sockets_version): New variable.
38494         (gl_sockets_startup): Do nothing if already called for this or a higher
38495         version.
38496         (gl_sockets_cleanup): Reset initialized_sockets_version.
38497
38498 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38499
38500         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38501         different project/version.
38502
38503 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38504             Bruno Haible  <bruno@clisp.org>
38505
38506         Tests for module 'pipe-filter-gi'.
38507         * modules/pipe-filter-gi-tests: New file.
38508         * tests/test-pipe-filter-gi1.sh: New file.
38509         * tests/test-pipe-filter-gi1.c: New file.
38510         * tests/test-pipe-filter-gi2.sh: New file.
38511         * tests/test-pipe-filter-gi2-main.c: New file.
38512         * tests/test-pipe-filter-gi2-child.c: New file.
38513
38514         New module 'pipe-filter-gi'.
38515         * lib/pipe-filter-gi.c: New file.
38516         * modules/pipe-filter-gi: New file.
38517
38518 2009-08-02  Bruno Haible  <bruno@clisp.org>
38519             Paolo Bonzini  <bonzini@gnu.org>
38520
38521         Tests for module 'pipe-filter-ii'.
38522         * modules/pipe-filter-ii-tests: New file.
38523         * tests/test-pipe-filter-ii1.sh: New file.
38524         * tests/test-pipe-filter-ii1.c: New file.
38525         * tests/test-pipe-filter-ii2.sh: New file.
38526         * tests/test-pipe-filter-ii2-main.c: New file.
38527         * tests/test-pipe-filter-ii2-child.c: New file.
38528
38529         New module 'pipe-filter-ii'.
38530         * lib/pipe-filter.h: New file.
38531         * lib/pipe-filter-ii.c: New file.
38532         * lib/pipe-filter-aux.h: New file.
38533         * modules/pipe-filter-ii: New file.
38534
38535 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38536
38537         * lib/gc-libgcrypt.c: Change copyright to FSF.
38538         * lib/gc-gnulib.c: Likewise.
38539
38540 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38541
38542         * lib/gethostname.c: Include limits.h.
38543
38544 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38545             Bruno Haible  <bruno@clisp.org>
38546
38547         Ensure HOST_NAME_MAX as part of the gethostname module.
38548         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38549         define also HOST_NAME_MAX.
38550         * tests/test-gethostname.c: Include <limits.h>.
38551         (main): Check also HOST_NAME_MAX.
38552         * doc/posix-headers/limits.texi: Document the mingw problem.
38553
38554 2009-08-02  Bruno Haible  <bruno@clisp.org>
38555
38556         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38557         Add comments.
38558
38559 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38560
38561         * lib/gethostname.c: Add Windows wrapper.
38562         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38563         * modules/gethostname: Depend on sys_socket & errno, for also
38564         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38565         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38566
38567 2009-07-31  Jim Meyering  <meyering@redhat.com>
38568
38569         getloadavg: fix symbol name in comment
38570         * lib/getloadavg.c: Correct a typo I introduced when adding
38571         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38572         Matt Kraai spotted the problem.
38573
38574 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38575
38576         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38577         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38578         code also if ! defined N_NAME_POINTER.
38579         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38580         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38581         but the n_name member is a 12-byte array.
38582
38583 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38584
38585         update-copyright: generalize comment handling
38586         * build-aux/update-copyright: Handle copyright statements
38587         within more comment styles.
38588         Document usage.
38589         Report any file with an external copyright holder or parse failure.
38590
38591 2009-07-29  Jim Meyering  <meyering@redhat.com>
38592
38593         mktime: correct setting of REPLACE_MKTIME
38594         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38595
38596         update-copyright: new module
38597         * modules/update-copyright: New file.
38598         * build-aux/update-copyright: New file.
38599         * MODULES.html.sh (maint+release support): Add update-copyright.
38600
38601 2009-07-27  Bruno Haible  <bruno@clisp.org>
38602
38603         Fix compilation error when <ctime> is used and mktime is replaced.
38604         * lib/time.in.h (mktime): New declaration.
38605         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38606         REPLACE_MKTIME instead of defining mktime in config.h.
38607         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38608         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38609         Reported by Ross McFarland <rwmcfa1@neces.com>.
38610
38611 2009-07-27  Bruno Haible  <bruno@clisp.org>
38612
38613         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38614         Reported by Matt Kraai <mkraai@beckman.com>.
38615
38616 2009-07-25  Jim Meyering  <meyering@redhat.com>
38617
38618         maint.mk: avoid warnings about missing files
38619         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38620         diagnostic when .prev-version does not exist.
38621         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38622         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38623         nonexistent cfg.mk.
38624         Suggestions from Simon Josefsson.
38625
38626 2009-07-25  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38629         defined as macros. Needed on QNX 6.4.1.
38630         Reported by Matt Kraai <mkraai@beckman.com>.
38631
38632 2009-07-23  Jim Meyering  <meyering@redhat.com>
38633
38634         maint.mk: invoke "make dist" with a working value of XZ_OPT
38635         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38636
38637 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38638
38639         Make fseeko.c compile on QNX.
38640         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38641
38642 2009-07-22  Peter Simons  <simons@cryp.to>
38643
38644         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38645         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38646         * lib/md4.h: Likewise.
38647         * lib/md5.h: Likewise.
38648         * lib/sha1.h: Likewise.
38649         * lib/sha256.h: Likewise.
38650         * lib/sha512.h: Likewise.
38651
38652         tests-sha1: don't assign literal string to 'char *' variable
38653         * tests/test-sha1.c (main): Declare locals with "const" to match
38654         attributes of the right hand side.
38655
38656 2009-07-21  Eric Blake  <ebb9@byu.net>
38657
38658         dup2: fix more mingw problems
38659         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38660         fd to itself.
38661         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38662         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38663         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38664         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38665         care of mingw bugs.
38666
38667 2009-07-21  Jim Meyering  <meyering@redhat.com>
38668
38669         vc-list-files: avoid failure when /bin/sh is dash
38670         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38671         On some Debian based systems, /bin/sh is a symlink to dash, and running
38672         this command would omit the "/" following each 'tests' prefix:
38673           dash -x build-aux/vc-list-files -C . tests
38674         That is because bash and dash work differently:
38675           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38676           bash ok
38677           dash odd
38678
38679 2009-07-21  Eric Blake  <ebb9@byu.net>
38680
38681         dup2-tests: test previous patch
38682         * modules/dup2-tests: New file.
38683         * tests/test-dup2.c: Likewise.
38684         * tests/test-open.c (main): Avoid unspecified behavior.
38685         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38686         test.
38687
38688         dup2: work around mingw and cygwin 1.5 bug
38689         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38691         * modules/unistd (Makefile.am): Substitute it.
38692         * lib/unistd.in.h (dup2): Declare the replacement.
38693         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38694         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38695         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38696         * modules/execute (Depends-on): Add dup2.
38697         * modules/fseterr (Depends-on): Likewise.
38698         * modules/pipe (Depends-on): Likewise.
38699         * modules/posix_spawn-internal (Depends-on): Likewise.
38700
38701 2009-07-21  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/.gitattributes: New file.
38704
38705 2009-07-20  Bruno Haible  <bruno@clisp.org>
38706
38707         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38708         (main): Use it.
38709
38710 2009-07-20  Eric Blake  <ebb9@byu.net>
38711
38712         test-pipe: make a bit more robust.
38713         * tests/test-pipe.c (myerr): Allow error messages regardless of
38714         what we do to stderr.
38715         (test_pipe): Rearrange to avoid deadlock.
38716         (child_main): Try a larger read, to ensure we avoided deadlock.
38717         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38718         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38719         if misused.
38720
38721 2009-07-19  Jim Meyering  <meyering@redhat.com>
38722
38723         fts: avoid false-positive cycle-detection
38724         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38725         for each new command line argument.
38726
38727 2009-07-19  Bruno Haible  <bruno@clisp.org>
38728
38729         Fix build error on mingw with the modules sys_select and unistd.
38730         * modules/acl-tests (Depends-on): Add close.
38731         * modules/binary-io-tests (Depends-on): Likewise.
38732         * modules/closein-tests (Depends-on): Likewise.
38733         * modules/flock-tests (Depends-on): Likewise.
38734         * modules/fsync-tests (Depends-on): Likewise.
38735         * modules/lseek-tests (Depends-on): Likewise.
38736         * modules/pipe-tests (Depends-on): Likewise.
38737         * modules/posix_spawn-tests (Depends-on): Likewise.
38738         * modules/posix_spawnp-tests (Depends-on): Likewise.
38739         * modules/stat-time-tests (Depends-on): Likewise.
38740         * modules/yesno-tests (Depends-on): Likewise.
38741
38742 2009-07-19  Bruno Haible  <bruno@clisp.org>
38743
38744         Unify conditionals.
38745         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38746         macros, not at the compiler macros.
38747         * lib/pipe.c: Likewise.
38748         * lib/execute.c: Likewise.
38749         * lib/spawni.c: Likewise.
38750
38751 2009-07-19  Bruno Haible  <bruno@clisp.org>
38752
38753         Fix handling of closed stdin/stdout/stderr on mingw.
38754         * lib/w32spawn.h: Include unistd.h.
38755         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38756         file descriptor with O_NOINHERIT flag.
38757         (fd_safer_noinherit): New function, based on fd-safer.c.
38758         (dup_safer_noinherit): New function, based on dup-safer.c.
38759         (undup_safer_noinherit): New function.
38760         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38761         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38762         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38763         instead of fd_safer.
38764         * tests/test-pipe.c: Include <windows.h>.
38765         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38766         result.
38767
38768         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38769         from main.
38770         (test_pipe): Pass an extra argument for disambiguation.
38771         (main): Invoke parent_main or child_main.
38772
38773         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38774         consistently.
38775
38776 2009-07-18  Eric Blake  <ebb9@byu.net>
38777
38778         test-pipe: fix mingw build
38779         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38780
38781 2009-07-18  Bruno Haible  <bruno@clisp.org>
38782
38783         * modules/pipe-tests (Makefile.am): Fix typo.
38784
38785 2009-07-18  Eric Blake  <ebb9@byu.net>
38786
38787         error: fix mingw build
38788         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38789         Reported by Bruno Haible.
38790
38791         error: avoid undefined use of stdout
38792         * lib/error.c (error, error_at_line): Check that fd 1 is open
38793         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38794         is handling faults and the close_stdout module wants to report the
38795         detection of closed stdout as an error.
38796
38797 2009-07-17  Eric Blake  <ebb9@byu.net>
38798
38799         pipe: be robust in face of closed fds
38800         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38801         should cause child to misbehave.
38802         * modules/pipe-tests: New module.
38803         * tests/test-pipe.c: New file.
38804         * tests/test-pipe.sh: New file.
38805         Reported by Akim Demaille.
38806
38807 2009-07-14  Bruno Haible  <bruno@clisp.org>
38808
38809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38810         Reported by anonymous kc.
38811
38812 2009-07-07  Jim Meyering  <meyering@redhat.com>
38813
38814         maint.mk: don't look for translatable strings in *.m4 or *.mk
38815         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38816         when searching for translatable strings.
38817
38818 2009-07-05  Jim Meyering  <meyering@redhat.com>
38819
38820         remove superfluous parentheses in STREQ definition
38821         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38822         * lib/getugroups.c (STREQ): Likewise.
38823         * lib/fnmatch.c (STREQ): Likewise.
38824         Spotted by Bruno Haible.
38825
38826 2009-07-04  Jim Meyering  <meyering@redhat.com>
38827
38828         argv-iter: new module
38829         * MODULES.html.sh: Add argv-iter.
38830         * lib/argv-iter.c, lib/argv-iter.h: New files.
38831         * modules/argv-iter: New file.
38832         * modules/argv-iter-tests: New file.
38833         * tests/test-argv-iter.c: Test it.
38834
38835 2009-07-04  Bruno Haible  <bruno@clisp.org>
38836
38837         Fix assertion.
38838         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38839         contains more exact copies of a given entry than file2, leave the extra
38840         copies unpaired rather than aborting.
38841         Reported by Eric Blake.
38842
38843 2009-07-02  Bruno Haible  <bruno@clisp.org>
38844
38845         Speedup git-merge-changelog for git cherry-pick.
38846         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38847         (entries_mapping_get): New function, extracted from compute_mapping.
38848         (entries_mapping_reverse_get): New function.
38849         (compute_mapping): Add a 'full' argument. Return the result in a
38850         'struct entries_mapping'.
38851         (main): Update. Access the mappings through entries_mapping_get.
38852         Reported by Eric Blake.
38853
38854 2009-07-02  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38857         best_i.
38858
38859 2009-07-02  Bruno Haible  <bruno@clisp.org>
38860
38861         Speed up approximate search for matching ChangeLog entries.
38862         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38863         argument. Call fstrcmp_bounded instead of fstrcmp.
38864         (compute_mapping, try_split_merged_entry, main): Update callers.
38865
38866 2009-07-02  Bruno Haible  <bruno@clisp.org>
38867
38868         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38869
38870 2009-06-30  Bruno Haible  <bruno@clisp.org>
38871
38872         Reduce the number of uc_is_cased calls.
38873         * lib/unicase.h (casing_suffix_context_t): Add
38874         'first_char_except_ignorable' field.
38875         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38876         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38877         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38878         Update initializer.
38879         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38880         case-ignorable characters.
38881         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38882         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38883         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38884         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38885         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38886
38887 2009-06-30  Bruno Haible  <bruno@clisp.org>
38888
38889         Tests for module 'unicase/ignorable'.
38890         * modules/unicase/ignorable-tests: New file.
38891         * tests/unicase/test-ignorable.c: New file, generated by
38892         gen-uni-tables.
38893
38894         Tests for module 'unicase/cased'.
38895         * modules/unicase/cased-tests: New file.
38896         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38897         * tests/unicase/test-predicate-part1.h: New file, derived from
38898         tests/unictype/test-predicate-part1.h.
38899         * tests/unicase/test-predicate-part2.h: New file, same as
38900         tests/unictype/test-predicate-part2.h.
38901
38902         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38903         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38904         (output_casing_properties): New function.
38905         (main): Call it.
38906         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38907         * lib/unicase/cased.c: Include unictype/bitmap.h.
38908         (uc_is_cased): Define through a bitmap lookup.
38909         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38910         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38911         (uc_is_case_ignorable): Define through a bitmap lookup.
38912         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38913         lib/unictype/bitmap.h.
38914         (Depends-on): Add inline. Clean up.
38915         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38916         lib/unictype/bitmap.h.
38917         (Depends-on): Add inline. Clean up.
38918         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38919         recognition.
38920         * tests/unicase/test-u16-tolower.c (main): Likewise.
38921         * tests/unicase/test-u32-tolower.c (main): Likewise.
38922
38923 2009-06-30  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38926         * lib/unicase/u16-casemap.c: Likewise.
38927         * lib/unicase/u32-casemap.c: Likewise.
38928
38929 2009-06-29  Bruno Haible  <bruno@clisp.org>
38930
38931         Define u32_casefold as a wrapper around u32_ct_casefold.
38932         * lib/unicase/u32-casefold.c: Update.
38933         * modules/unicase/u32-casefold (Depends-on): Add
38934         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38935         unicase/empty-suffix-context. Clean up.
38936
38937         Define u16_casefold as a wrapper around u16_ct_casefold.
38938         * lib/unicase/u16-casefold.c: Update.
38939         * modules/unicase/u16-casefold (Depends-on): Add
38940         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38941         unicase/empty-suffix-context. Clean up.
38942
38943         Define u8_casefold as a wrapper around u8_ct_casefold.
38944         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38945         * lib/unicase/u8-casefold.c: Update.
38946         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38947         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38948
38949         Define u32_totitle as a wrapper around u32_ct_totitle.
38950         * lib/unicase/u32-totitle.c: Update.
38951         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38953
38954         Define u16_totitle as a wrapper around u16_ct_totitle.
38955         * lib/unicase/u16-totitle.c: Update.
38956         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38958
38959         Define u8_totitle as a wrapper around u8_ct_totitle.
38960         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38961         functions.
38962         (FUNC): Delegate to U_CT_TOTITLE.
38963         * lib/unicase/u8-totitle.c: Update.
38964         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38965         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38966
38967         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38968         invocation.
38969         * modules/unicase/u32-tolower (Depends-on): Add
38970         unicase/empty-prefix-context, unicase/empty-suffix-context.
38971
38972         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38973         invocation.
38974         * modules/unicase/u16-tolower (Depends-on): Add
38975         unicase/empty-prefix-context, unicase/empty-suffix-context.
38976
38977         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38978         * modules/unicase/u8-tolower (Depends-on): Add
38979         unicase/empty-prefix-context, unicase/empty-suffix-context.
38980
38981         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38982         invocation.
38983         * modules/unicase/u32-toupper (Depends-on): Add
38984         unicase/empty-prefix-context, unicase/empty-suffix-context.
38985
38986         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38987         invocation.
38988         * modules/unicase/u16-toupper (Depends-on): Add
38989         unicase/empty-prefix-context, unicase/empty-suffix-context.
38990
38991         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38992         * modules/unicase/u8-toupper (Depends-on): Add
38993         unicase/empty-prefix-context, unicase/empty-suffix-context.
38994
38995         New module 'unicase/u32-ct-casefold'.
38996         * lib/unicase/u32-ct-casefold.c: New file.
38997         * modules/unicase/u32-ct-casefold: New file.
38998
38999         New module 'unicase/u16-ct-casefold'.
39000         * lib/unicase/u16-ct-casefold.c: New file.
39001         * modules/unicase/u16-ct-casefold: New file.
39002
39003         New module 'unicase/u8-ct-casefold'.
39004         * lib/unicase/u8-ct-casefold.c: New file.
39005         * lib/unicase/u-ct-casefold.h: New file, derived from
39006         lib/unicase/u-casefold.h.
39007         * modules/unicase/u8-ct-casefold: New file.
39008
39009         New module 'unicase/u32-ct-totitle'.
39010         * lib/unicase/u32-ct-totitle.c: New file.
39011         * modules/unicase/u32-ct-totitle: New file.
39012
39013         New module 'unicase/u16-ct-totitle'.
39014         * lib/unicase/u16-ct-totitle.c: New file.
39015         * modules/unicase/u16-ct-totitle: New file.
39016
39017         New module 'unicase/u8-ct-totitle'.
39018         * lib/unicase/u8-ct-totitle.c: New file.
39019         * lib/unicase/u-ct-totitle.h: New file, derived from
39020         lib/unicase/u-totitle.h.
39021         * modules/unicase/u8-ct-totitle: New file.
39022
39023         New module 'unicase/u32-ct-tolower'.
39024         * lib/unicase/u32-ct-tolower.c: New file.
39025         * modules/unicase/u32-ct-tolower: New file.
39026
39027         New module 'unicase/u16-ct-tolower'.
39028         * lib/unicase/u16-ct-tolower.c: New file.
39029         * modules/unicase/u16-ct-tolower: New file.
39030
39031         New module 'unicase/u8-ct-tolower'.
39032         * lib/unicase/u8-ct-tolower.c: New file.
39033         * modules/unicase/u8-ct-tolower: New file.
39034
39035         New module 'unicase/u32-ct-toupper'.
39036         * lib/unicase/u32-ct-toupper.c: New file.
39037         * modules/unicase/u32-ct-toupper: New file.
39038
39039         New module 'unicase/u16-ct-toupper'.
39040         * lib/unicase/u16-ct-toupper.c: New file.
39041         * modules/unicase/u16-ct-toupper: New file.
39042
39043         New module 'unicase/u8-ct-toupper'.
39044         * lib/unicase/u8-ct-toupper.c: New file.
39045         * modules/unicase/u8-ct-toupper: New file.
39046
39047         Add context arguments to u*_casemap functions.
39048         * lib/unicase/unicasemap.h: Include unicase.h.
39049         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39050         suffix_context arguments.
39051         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39052         functions.
39053         (FUNC): Add prefix_context and suffix_context arguments. Use
39054         uc_is_cased and uc_is_case_ignorable.
39055         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39056         * lib/unicase/u16-casemap.c: Likewise.
39057         * lib/unicase/u32-casemap.c: Likewise.
39058         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39059         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39060         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39061         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39062         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39063         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39064
39065         New module 'unicase/u32-suffix-context'.
39066         * lib/unicase/u32-suffix-context.c: New file.
39067         * modules/unicase/u32-suffix-context: New file.
39068
39069         New module 'unicase/u16-suffix-context'.
39070         * lib/unicase/u16-suffix-context.c: New file.
39071         * modules/unicase/u16-suffix-context: New file.
39072
39073         New module 'unicase/u8-suffix-context'.
39074         * lib/unicase/u8-suffix-context.c: New file.
39075         * lib/unicase/u-suffix-context.h: New file.
39076         * modules/unicase/u8-suffix-context: New file.
39077
39078         New module 'unicase/empty-suffix-context'.
39079         * lib/unicase/empty-suffix-context.c: New file.
39080         * modules/unicase/empty-suffix-context: New file.
39081
39082         New module 'unicase/u32-prefix-context'.
39083         * lib/unicase/u32-prefix-context.c: New file.
39084         * modules/unicase/u32-prefix-context: New file.
39085
39086         New module 'unicase/u16-prefix-context'.
39087         * lib/unicase/u16-prefix-context.c: New file.
39088         * modules/unicase/u16-prefix-context: New file.
39089
39090         New module 'unicase/u8-prefix-context'.
39091         * lib/unicase/u8-prefix-context.c: New file.
39092         * lib/unicase/u-prefix-context.h: New file.
39093         * lib/unicase/context.h: New file.
39094         * modules/unicase/u8-prefix-context: New file.
39095
39096         New module 'unicase/empty-prefix-context'.
39097         * lib/unicase/empty-prefix-context.c: New file.
39098         * modules/unicase/empty-prefix-context: New file.
39099
39100         New module 'unicase/ignorable'.
39101         * lib/unicase/ignorable.c: New file.
39102         * modules/unicase/ignorable: New file.
39103
39104         New module 'unicase/cased'.
39105         * lib/unicase/caseprop.h: New file.
39106         * lib/unicase/cased.c: New file.
39107         * modules/unicase/cased: New file.
39108
39109         New functions for case mapping of substrings.
39110         * lib/unicase.h (casing_prefix_context_t): New type.
39111         (unicase_empty_prefix_context): New variable.
39112         (u8_casing_prefix_context, u16_casing_prefix_context,
39113         u32_casing_prefix_context, u8_casing_prefixes_context,
39114         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39115         declarations.
39116         (casing_suffix_context_t): New type.
39117         (unicase_empty_suffix_context): New variable.
39118         (u8_casing_suffix_context, u16_casing_suffix_context,
39119         u32_casing_suffix_context, u8_casing_suffixes_context,
39120         u16_casing_suffixes_context, u32_casing_suffixes_context,
39121         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39122         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39123         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39124         declarations.
39125
39126 2009-06-28  Jim Meyering  <meyering@redhat.com>
39127
39128         boostrap: indent only with spaces
39129         * build-aux/bootstrap: Indent only with spaces, never TABs.
39130
39131         bootstrap: split long lines
39132         * build-aux/bootstrap: Keep line length < 80.
39133
39134         bootstrap: sync from coreutils
39135         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39136         just as autoreconf does.  Verify a list of prerequisite
39137         package-name,version-number pairs if defined in bootstrap.conf.
39138         Refer to README-prereq, if prerequisites are not satisfied.
39139
39140 2009-06-27  Eric Blake  <ebb9@byu.net>
39141
39142         tests: add test for bogus NULL definition
39143         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39144         * tests/test-stdlib.c: Likewise.
39145         * tests/test-string.c: Likewise.
39146         * tests/test-locale.c: Likewise.
39147         * tests/test-unistd.c: Likewise.
39148         * modules/stdio-tests (Depends-on): Add verify.
39149         * modules/stdlib-tests (Depends-on): Likewise.
39150         * modules/string-tests (Depends-on): Likewise.
39151         * modules/locale-tests (Depends-on): Likewise.
39152         * modules/unistd-tests (Depends-on): Likewise.
39153
39154 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39155
39156         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39157         self-explaining comment.
39158         * m4/selinux-selinux-h: Update serial.
39159         (gl_LIBSELINUX): New macro, adding a warning for missing development
39160         packages to code extracted from...
39161         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39162         Add warning for missing development packages here, too.
39163
39164 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39165
39166         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39167
39168 2009-06-25  Eric Blake  <ebb9@byu.net>
39169
39170         version-etc: fix regression
39171         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39172         gcc.
39173         (version_etc): Use it, to catch bugs with trailing NULL.
39174         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39175         (version_etc_va): Fix logic bug.
39176         * modules/version-etc-tests: Add test.
39177         * tests/test-version-etc.c: New file.
39178         * tests/test-version-etc.sh: Likewise.
39179
39180 2009-06-25  Sam Steingold  <sds@gnu.org>
39181
39182         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39183         mbtowc declaration.
39184
39185 2009-06-25  Eric Blake  <ebb9@byu.net>
39186
39187         fpurge: migrate into <stdio.h>
39188         * lib/fpurge.h: Delete...
39189         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39190         * lib/fpurge.c (fpurge): Change declaring header.
39191         * modules/fpurge (Files): Drop deleted file.
39192         (Depends-on): Add stdio.
39193         (configure.ac): Set witness.
39194         * modules/stdio (Makefile.am): Support fpurge macros.
39195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39197         * lib/fflush.c: Update client.
39198         * tests/test-fpurge.c: Likewise.
39199         * NEWS: Mention the change.
39200
39201 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39202
39203         * lib/argp-version-etc.c (program_authors): Add const
39204         qualifier.
39205         * lib/version-etc.c: Fix typos in the comments.
39206         * modules/argp-version-etc: Depends on version-etc.
39207
39208 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39209
39210         argp-version-etc: new module.
39211
39212         * lib/argp-version-etc.c: New file.
39213         * lib/argp-version-etc.h: New file.
39214         * modules/argp-version-etc: New file.
39215         * modules/argp-version-etc-tests: New file.
39216         * tests/test-argp-version-etc.c: New test.
39217         * tests/test-argp-version-etc-1.sh: New test.
39218
39219 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39220
39221         Provide additional interfaces and documentation for version-etc
39222         module.
39223
39224         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39225         interfaces.
39226         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39227         prototypes.
39228
39229 2009-06-24  Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39232         HAVE_LIB${NAME} macro.
39233         Reported by Sam Steingold <sds@gnu.org>.
39234
39235 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39236
39237         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39238         needed.
39239
39240 2009-06-21  Bruno Haible  <bruno@clisp.org>
39241
39242         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39243         work.
39244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39245         together with LIB${NAME}, LTLIB${NAME}.
39246         Reported by Sam Steingold <sds@gnu.org>.
39247
39248 2009-06-20  Jim Meyering  <meyering@redhat.com>
39249
39250         tests: make sc_require_test_exit_idiom more generic
39251         * top/maint.mk (Exit_witness_file): New overridable variable.
39252         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39253         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39254
39255 2009-06-19  Jim Meyering  <meyering@redhat.com>
39256
39257         hash: reverse order of src/dst parameters in an internal interface
39258         * lib/hash.c (transfer_entries): Reverse order of parameters to
39259         put DST before SRC.  Adjust callers.
39260
39261         tests: test-hash: avoid wholesale duplication
39262         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39263         Instead, use a loop and add a single conditional.
39264
39265         tests: test-hash: allow seed selection via a command line argument
39266         * tests/test-hash.c (get_seed): New function.
39267         (main): Use it.
39268
39269 2009-06-19  Eric Blake  <ebb9@byu.net>
39270
39271         hash: avoid memory leak on allocation failure
39272         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39273         failure.  Factor repeated algorithm...
39274         (transfer_entries): ...into new helper routine.
39275         (hash_delete): React to hash_rehash return value.
39276
39277         hash: reduce memory pressure in hash_rehash no-op case
39278         * lib/hash.c (next_prime): Avoid overflow.
39279         (hash_initialize): Factor bucket size computation...
39280         (compute_bucket_size): ...into new helper function.
39281         (hash_rehash): Use new function and open coding to reduce memory
39282         pressure, and avoid a memory leak in USE_OBSTACK code.
39283         Reported by Jim Meyering.
39284
39285 2009-06-18  Eric Blake  <ebb9@byu.net>
39286
39287         hash: make rotation more obvious
39288         * modules/hash (Depends-on): Add bitrotate and stdint.
39289         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39290         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39291         (SIZE_MAX): Rely on headers for definition.
39292         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39293         (raw_hasher): Use rotr_sz.
39294         Suggested by Jim Meyering.
39295
39296         hash: fix memory leak in last patch
39297         * lib/hash.c (hash_rehash): Avoid memory leak.
39298
39299         hash: avoid no-op rehashing
39300         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39301
39302         hash: provide default callback functions
39303         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39304         (hash_initialize): Use them as defaults.
39305         * tests/test-hash.c (main): Test this.
39306
39307         hash: minor optimization
39308         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39309         when possible.
39310         (hash_initialize): Document this promise.
39311         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39312         * tests/test-hash.c (hash_compare_strings): Test this.
39313
39314 2009-06-18  Bruno Haible  <bruno@clisp.org>
39315
39316         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39317         going to be replaced anyway.
39318
39319 2009-06-18  Bruno Haible  <bruno@clisp.org>
39320
39321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39322         in one place.
39323         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39324         be replaced anyway.
39325
39326 2009-06-18  Eric Blake  <ebb9@byu.net>
39327
39328         hash: check for resize before insertion
39329         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39330         threshold before insertion, so that a pathological hash_rehash
39331         that fills every bucket can still trigger another rehash.
39332
39333 2009-06-18  Jim Meyering  <meyering@redhat.com>
39334
39335         hash-tests: add a loop around the small tests
39336         * tests/test-hash.c (main): Repeat small tests with selected
39337         small initial table sizes.
39338
39339 2009-06-17  Eric Blake  <ebb9@byu.net>
39340
39341         hash: minor cleanups
39342         * lib/hash.h (hash_entry): Make opaque, by moving...
39343         * lib/hash.c (hash_entry): ...here.
39344         (hash_insert): Clarify restrictions on what can be inserted.
39345         (hash_get_next): Clarify when it is safe to remove an element
39346         during traversal.
39347         (check_tuning): Skip verification when tuning is known safe.
39348         (hash_initialize): Clarify restrictions on tuning.
39349
39350 2009-06-17  Jim Meyering  <jim@meyering.net>
39351         and Eric Blake  <ebb9@byu.net>
39352
39353         hash-tests: new module
39354         * modules/hash-tests: New file.
39355         * tests/test-hash.c: New file.
39356
39357 2009-06-17  Eric Blake  <ebb9@byu.net>
39358
39359         strstr-simple: document new module
39360         * MODULES.html.sh: Document new module.
39361
39362         strstr, strcasestr: replace on platforms with broken memchr
39363         * modules/strstr: Split into...
39364         * modules/strstr-simple: ...new module that does not care about
39365         performance, but does care about glibc bug.
39366         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39367         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39368         if platform memchr is broken, per Debian bug 521737.
39369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39370         memchr.
39371         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39372         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39374         * modules/mountlist (Depends-on): Add strstr-simple.
39375         * modules/gen-uni-tables (Depends-on): Likewise.
39376         * modules/argz (Depends-on): Add strstr.
39377
39378 2009-06-17  Bruno Haible  <bruno@clisp.org>
39379
39380         * modules/posix_spawn-internal (Depends-on): Add errno.
39381
39382 2009-06-17  Bruno Haible  <bruno@clisp.org>
39383
39384         Define missing ESTALE on Interix 3.5.
39385         * lib/errno.in.h (ESTALE): Assign a value if missing.
39386         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39387         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39388         missing.
39389         * doc/posix-headers/errno.texi: Mention the Interix bug.
39390         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39391
39392 2009-06-15  Eric Blake  <ebb9@byu.net>
39393
39394         memchr, memchr2: add valgrind exception
39395         * lib/memchr.valgrind: New file.
39396         * lib/memchr2.valgrind: New file.
39397         * modules/memchr (Files): Distribute valgrind file.
39398         * modules/memchr2 (Files): Likewise.
39399
39400         docs: memchr is no longer obsolete
39401         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39402         * lib/string.in.h (memchr): Simplify logic.
39403
39404 2009-06-14  Jim Meyering  <meyering@redhat.com>
39405
39406         link-follow: fix the "checking..." message to not mention trailing slash
39407         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39408         never considered trailing slashes.
39409
39410 2009-06-14  Bruno Haible  <bruno@clisp.org>
39411
39412         * m4/memchr.m4: Mention also the bug on IA-64.
39413         * doc/posix-functions/memchr.texi: Likewise.
39414
39415 2009-06-12  Eric Blake  <ebb9@byu.net>
39416
39417         memchr: detect broken x86_64 and alpha implementations
39418         * modules/memchr-tests (Depends-on): Move mmap detection...
39419         * modules/memchr (Depends-on): ...here.
39420         (configure.ac): Set indicator.
39421         * lib/string.in.h (memchr): Declare replacement.
39422         * modules/string (Makefile.am): Trigger replacement.
39423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39425         bugs.
39426         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39427         * modules/getpagesize (License): Relax license.
39428
39429 2009-06-11  Bruno Haible  <bruno@clisp.org>
39430
39431         * lib/idpriv.h: Add more references.
39432
39433 2009-06-08  Bruno Haible  <bruno@clisp.org>
39434
39435         Tests for module 'idpriv-droptemp'.
39436         * modules/idpriv-droptemp-tests: New file.
39437         * tests/test-idpriv-droptemp.sh: New file.
39438         * tests/test-idpriv-droptemp.su.sh: New file.
39439         * tests/test-idpriv-droptemp.c: New file.
39440
39441         New module 'idpriv-droptemp'.
39442         * lib/idpriv-droptemp.c: New file.
39443         * modules/idpriv-droptemp: New file.
39444
39445 2009-06-08  Bruno Haible  <bruno@clisp.org>
39446
39447         Tests for module 'idpriv-drop'.
39448         * modules/idpriv-drop-tests: New file.
39449         * tests/test-idpriv-drop.sh: New file.
39450         * tests/test-idpriv-drop.su.sh: New file.
39451         * tests/test-idpriv-drop.c: New file.
39452
39453         New module 'idpriv-drop'.
39454         * lib/idpriv.h: New file.
39455         * lib-idpriv-drop.c: New file.
39456         * m4/idpriv.m4: New file.
39457         * modules/idpriv-drop: New file.
39458
39459 2009-06-08  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39462         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39463         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39464         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39465         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39466         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39467         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39468
39469 2009-06-08  Eric Blake  <ebb9@byu.net>
39470
39471         test-strstr: use memory fence, when possible
39472         * tests/test-strstr.c (main): Use memory fence, in order to be
39473         more likely to trigger Debian bug 521737.
39474         * modules/strstr-tests (Files): Pull in additional files.
39475
39476         memchr: no longer obsolete, for wider field testing
39477         * modules/memchr (Status, Notice): Delete, this module is no
39478         longer obsolete.
39479         * modules/vasnprintf (Depends-on): Add memchr.
39480
39481 2009-06-07  Jim Meyering  <meyering@redhat.com>
39482
39483         hash: declare some functions with the warn_unused_result attribute
39484         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39485
39486 2009-06-07  Bruno Haible  <bruno@clisp.org>
39487
39488         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39489         Reported by Eric Blake.
39490
39491 2009-06-06  Eric Blake  <ebb9@byu.net>
39492
39493         test-alignof: fix typo with long double
39494         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39495         compiler error.
39496
39497 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39498
39499         Escape non-texinfo { and }s.
39500         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39501         markup error.
39502
39503 2009-06-04  Jim Meyering  <meyering@redhat.com>
39504
39505         gitlog-to-changelog: don't infloop on an empty commit log
39506         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39507         Reported by Boris Petersen <transacid@centerim.org>.
39508
39509 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39510
39511         version-etc: extend for packagers
39512         Add three new configure options, intended for packagers:
39513           --with-packager="packager name"
39514           --with-packager-version="packager-specific version"
39515           --with-packager-bug-reports="packager bug reporting"
39516         An example with coreutils:
39517           $ ./configure \
39518             --with-packager=Gentoo \
39519             --with-packager-bug-report=http://bugs.gentoo.org/ \
39520             --with-packager-version="patchset 1.6"
39521           $ ./src/ls --version | head -n2
39522           ls (GNU coreutils) 7.1-dirty
39523           Packaged by Gentoo (patchset 1.6)
39524         Note that the bug reporting info via --help doesn't show up because
39525         coreutils uses its own custom emit_bug_reporting_address() implementation
39526         in src/system.h.  If it didn't, it'd look like:
39527           $ ./src/ls --help | tail -n4
39528           Report bugs to <bug-coreutils@gnu.org>.
39529           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39530           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39531           General help using GNU software: <http://www.gnu.org/gethelp/>.
39532         * lib/version-etc.c: Print new information, if provided.
39533         * m4/version-etc.m4: New file.
39534         * modules/version-etc (Files): Add m4/version-etc.m4.
39535         (configure.ac): Add gl_VERSION_ETC.
39536
39537 2009-05-31  Bruno Haible  <bruno@clisp.org>
39538
39539         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39540         and 'int64_t'.
39541         * modules/alignof-tests (Dependencies): Add stdint.
39542         Reported by Eric Blake.
39543
39544 2009-05-31  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39547         restriction due to compiler bugs.
39548         Reported by Eric Blake.
39549
39550 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39551             Bruno Haible  <bruno@clisp.org>
39552
39553         Fix test-alignof failure.
39554         * lib/alignof.h (alignof_slot): New macro.
39555         (alignof_type): New macro, with the same semantics as the previous
39556         'alignof'.
39557         (alignof): Alias to alignof_slot.
39558         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39559         check that the results are usable as constant expressions.
39560
39561 2009-05-31  Bruno Haible  <bruno@clisp.org>
39562
39563         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39564         * tests/test-memchr.c (main): Check that memchr does not read past the
39565         first occurrence of the byte.
39566         * tests/test-strstr.c (main): Update comment.
39567         Suggested by Eric Blake.
39568
39569 2009-05-30  Bruno Haible  <bruno@clisp.org>
39570
39571         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39572         detail how to use dumpbin.
39573         Reported by David Byron <dbyron@dbyron.com>.
39574
39575 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39576
39577         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39578
39579 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39580
39581         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39582
39583 2009-05-28  Bruno Haible  <bruno@clisp.org>
39584
39585         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39586         build-aux/ files.
39587
39588 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39589
39590         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39591
39592 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39593
39594         * gnulib-tool (sed_transform_main_lib_file)
39595         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39596         regexps.
39597
39598 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39599
39600         * tests/test-strstr.c: Add another self-test.
39601         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39602         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39603
39604 2009-05-23  Bruno Haible  <bruno@clisp.org>
39605
39606         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39607         change.
39608
39609 2009-05-21  Bruno Haible  <bruno@clisp.org>
39610
39611         Simplify use of mode_t varargs.
39612         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39613         uses 'mode_t' or 'int'.
39614         * lib/openat.c (openat): Likewise.
39615         * lib/open-safer.c (open_safer): Likewise.
39616         * m4/mode_t.m4: New file.
39617         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39618         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39620         * modules/open (Files): Add m4/mode_t.m4.
39621         * modules/openat (Files): Likewise.
39622         * modules/fcntl-safer (Files): Likewise.
39623         Suggested by Eric Blake.
39624
39625 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39626
39627         * doc/glibc-functions/fallocate.texi: New file.
39628         * doc/gnulib.texi: Include it.
39629
39630 2009-05-21  Eric Blake  <ebb9@byu.net>
39631             Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39634         invocations.
39635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39636
39637 2009-05-21  Eric Blake  <ebb9@byu.net>
39638             Bruno Haible  <bruno@clisp.org>
39639
39640         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39641         include_next. Fix of 2008-11-20 commit.
39642         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39643         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39644         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39645         NEXT_MATH_H.
39646         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39647         instead of NEXT_MATH_H.
39648
39649 2009-05-21  Bruno Haible  <bruno@clisp.org>
39650
39651         Avoid redefinition warnings for SIZE_MAX.
39652         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39653         Reported by Simon Josefsson.
39654
39655 2009-05-21  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39658         AC_CACHE_VAL.
39659
39660 2009-05-20  Bruno Haible  <bruno@clisp.org>
39661
39662         Make zeroptr.h work on mingw.
39663         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39664         mprotect.
39665         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39666         * modules/memchr2-tests (configure.ac): Likewise.
39667         * modules/memcmp-tests (configure.ac): Likewise.
39668         * modules/memmem-tests (configure.ac): Likewise.
39669         * modules/memrchr-tests (configure.ac): Likewise.
39670         Reported by Simon Josefsson.
39671
39672 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39673
39674         * tests/test-glob.c: Include string.h for strcmp prototype.
39675
39676 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39677
39678         * modules/getdelim (Depends-on): Add explicit stdint, although it
39679         was implicitly already pulled in via realloc-posix.
39680         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39681
39682 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39683
39684         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39685         G. Christensen" <tgc@jupiterrise.com>.
39686         * m4/sys_socket_h.m4: Check for sa_family_t.
39687         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39688         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39689         * tests/test-sys_socket.c: Check that sa_family_t works.
39690
39691 2009-05-18  Eric Blake  <ebb9@byu.net>
39692
39693         maint.mk: allow gnulib_dir in VPATH build
39694         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39695
39696 2009-05-15  Jim Meyering  <meyering@redhat.com>
39697
39698         maint.mk: Give gnulib_dir a default definition.
39699         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39700         Thus, most packages no longer need to specify this variable in cfg.mk
39701
39702 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39703
39704         rename.m4: fix typos that would make non-mingw cross-configure fail
39705         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39706
39707 2009-05-13  Eric Blake  <ebb9@byu.net>
39708
39709         mmap-anon: avoid out-of-order autoconf expansion
39710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39711         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39712         * modules/memchr-tests (Depends-on): Add extensions.
39713         * modules/memchr2-tests (Depends-on): Add extensions.
39714         * modules/memcmp-tests (Depends-on): Add extensions.
39715         * modules/memmem-tests (Depends-on): Add extensions.
39716         * modules/memrchr-tests (Depends-on): Add extensions.
39717
39718 2009-05-13  Bruno Haible  <bruno@clisp.org>
39719
39720         Make some tests ISO C 99 compliant.
39721         * tests/zerosize-ptr.h: New file.
39722         * tests/test-memchr.c: Include zerosize-ptr.h.
39723         (main): Use a zero-size object pointer instead of NULL.
39724         * tests/test-memchr2.c: Include zerosize-ptr.h.
39725         (main): Use a zero-size object pointer instead of NULL.
39726         * tests/test-memcmp.c: Include zerosize-ptr.h.
39727         (main): Use a zero-size object pointer instead of NULL.
39728         * tests/test-memmem.c: Include zerosize-ptr.h.
39729         (main): Use a zero-size object pointer instead of NULL.
39730         * tests/test-memrchr.c: Include zerosize-ptr.h.
39731         (main): Use a zero-size object pointer instead of NULL.
39732         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39733         m4/mmap-anon.m4.
39734         (Depends-on): Add getpagesize.
39735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39736         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39737         m4/mmap-anon.m4.
39738         (Depends-on): Add getpagesize.
39739         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39740         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39741         m4/mmap-anon.m4.
39742         (Depends-on): Add getpagesize.
39743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39744         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39745         m4/mmap-anon.m4.
39746         (Depends-on): Add getpagesize.
39747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39748         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39749         m4/mmap-anon.m4.
39750         (Depends-on): Add getpagesize.
39751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39752
39753 2009-05-12  Bruno Haible  <bruno@clisp.org>
39754
39755         Tests for module 'alignof'.
39756         * modules/alignof-tests: New file.
39757         * tests/test-alignof.c: New file.
39758
39759 2009-05-12  Bruno Haible  <bruno@clisp.org>
39760
39761         Fix alignof macro.
39762         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39763         vendor compilers that are always correct.
39764
39765 2009-05-12  Bruno Haible  <bruno@clisp.org>
39766
39767         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39769         not whether its fully works.
39770
39771 2009-05-12  Bruno Haible  <bruno@clisp.org>
39772
39773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39774
39775 2009-05-12  Jim Meyering  <meyering@redhat.com>
39776
39777         * top/maint.mk: Adjust backslash alignment.
39778
39779 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39780
39781         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39782
39783 2009-05-11  Eric Blake  <ebb9@byu.net>
39784
39785         argp: avoid undefined behavior
39786         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39787         macros.
39788
39789 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39790
39791         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39792         user.name to prevent git commit from complaining.
39793
39794 2009-05-10  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39797         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39798         it rewrites every file name only once.
39799         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39800
39801 2009-05-08  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39804         instead of 'max'.
39805
39806 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39807
39808         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39809         sockaddr_storage test.
39810
39811 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39812
39813         * modules/sys_socket (Makefile.am): Substitute
39814         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39815         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39816         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39817         * tests/test-sys_socket.c: Check sockaddr_storage.
39818
39819 2009-05-08  Bruno Haible  <bruno@clisp.org>
39820
39821         New module 'alignof'.
39822         * lib/alignof.h: New file.
39823         * modules/alignof: New file.
39824
39825 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39826             Bruno Haible  <bruno@clisp.org>
39827
39828         Fix test-file-has-acl on FreeBSD.
39829         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39830         mask is implicitly added.
39831         * tests/test-file-has-acl.c: Include <signal.h>.
39832         (main): Terminate the test after 5 seconds.
39833         * modules/acl-tests (configure.ac): Check for alarm function.
39834
39835 2009-05-04  Bruno Haible  <bruno@clisp.org>
39836
39837         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39839         * modules/errno (configure.ac): Drop AC_REQUIRE.
39840         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39841         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39842
39843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39844
39845         * modules/glob-tests: New module.
39846         * tests/test-glob.c: Add.
39847
39848 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39849
39850         * modules/fnmatch-tests: New module.
39851         * tests/test-fnmatch.c: Add.
39852
39853 2009-05-04  Eric Blake  <ebb9@byu.net>
39854
39855         maint: make the new no-submodule-changes rule VPATH-safe
39856         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39857
39858 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39859             Bruno Haible  <bruno@clisp.org>
39860
39861         acl: Fix infinite loop on FreeBSD.
39862         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39863         of return value from acl_get_entry.
39864         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39865         Likewise.
39866
39867 2009-05-03  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/acl-internal.h (acl_entries): Clarify return value.
39870         * lib/acl_entries.c (acl_entries): Likewise.
39871
39872 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39873
39874         Bug fix in acl module.
39875         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39876
39877 2009-05-03  Bruno Haible  <bruno@clisp.org>
39878
39879         Create gperf-generated file in the source dir, not in the build dir.
39880         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39881         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39882         * modules/unicase/locale-language (unicase/locale-languages.h):
39883         Likewise.
39884         * modules/unicase/special-casing (unicase/special-casing-table.h):
39885         Likewise.
39886         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39887         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39888         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39889         Reported by Ralf Wildenhues.
39890
39891 2009-05-03  Bruno Haible  <bruno@clisp.org>
39892
39893         * modules/fnmatch (Description, configure.ac): Taken from
39894         fnmatch-posix.
39895         * modules/fnmatch-posix: Turn into a symbolic reference to the
39896         'fnmatch' module, and deprecate.
39897         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39898
39899 2009-05-03  Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39902         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39903         Reported by Ralf Wildenhues.
39904
39905 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39906
39907         * m4/fnmatch.m4: Fix fnmatch re-define.
39908
39909 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39910
39911         priv-set: new module and tests; adapt write-any-file
39912         * lib/priv-set.c: New file.
39913         * lib/priv-set.h: New file.
39914         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39915         * lib/write-any-file.c: Simplify by using priv-set module.
39916         * m4/priv-set.m4: New file.
39917         * modules/priv-set: New file.
39918         * modules/unlinkdir: Add dependency on priv-set module.
39919         * modules/write-any-file: Likewise.
39920
39921         Tests for module 'priv-set'.
39922         * modules/priv-set-tests: New file.
39923         * tests/test-priv-set.c: New file.
39924
39925 2009-05-03  Jim Meyering  <meyering@redhat.com>
39926             Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39929         use the converted UTF-8 variant of the name instead.
39930
39931 2009-05-03  Jim Meyering  <meyering@redhat.com>
39932
39933         tests: tighten some getdate tests
39934         * tests/test-getdate.c (main): Tighten tests: require equality,
39935         not just greater than.  Set TZ envvar to UTC0.
39936
39937 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39938
39939         getdate: correctly interpret "next monday" when run on a Monday
39940         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39941         that e.g., "next tues" (when run on a tuesday) results in a date
39942         that is one week in the future, and not today's date.
39943         I.e., add a week when the wday is the same as the current one.
39944         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39945         and earlier by Martin Bernreuther and Jan Minář.
39946         * tests/test-getdate.c (main): Check that "next DAY" is always in
39947         the future and that "last DAY" is always in the past.
39948
39949 2009-05-02  Jim Meyering  <meyering@redhat.com>
39950
39951         build: ensure that a release build fails when a submodule is unclean
39952         * top/maint.mk (no-submodule-changes): New rule.
39953         (alpha beta major): Depend on it.
39954
39955 2009-05-02  Bruno Haible  <bruno@clisp.org>
39956
39957         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39958         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39959         shell variable gl_fnmatch_required to detect which variant is
39960         requested.
39961         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39962         gl_FUNC_FNMATCH_POSIX.
39963         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39964         exclude fnmatch-posix.
39965
39966 2009-05-02  Bruno Haible  <bruno@clisp.org>
39967
39968         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39969         * modules/mbsrtowcs (License): Change to LGPLv2+.
39970         * modules/strnlen1 (License): Likewise.
39971         Reported by Simon Josefsson.
39972
39973 2009-05-02  Bruno Haible  <bruno@clisp.org>
39974
39975         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39976         "cross".
39977         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39978         gnulib-tool was called with option --source-base=lib.
39979
39980 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39981
39982         Use automake *-local hooks without commands, for extensibility.
39983         * modules/localcharset (Makefile.am): Rename install-exec-local
39984         rule to install-exec-localcharset, and make it a prerequisite of
39985         install-exec-local.  Likewise, rename the uninstall-local rule to
39986         uninstall-localcharset, and make it a prerequisite of the former.
39987
39988 2009-05-01  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39991         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39992         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39994         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39995         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39996         m4/locale-zh.m4, m4/codeset.m4.
39997
39998         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39999         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40000         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40001         m4/locale-zh.m4.
40002
40003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40004         REPLACE_WCRTOMB if mbstate_t must be replaced.
40005         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40006         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40007
40008 2009-05-01  Bruno Haible  <bruno@clisp.org>
40009
40010         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40011         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40012         dngettext, dcngettext, textdomain, bindtextdomain,
40013         bind_textdomain_codeset): Undefine before redefining.
40014
40015 2009-04-30  Bruno Haible  <bruno@clisp.org>
40016
40017         Fix bug introduced on 2009-04-25.
40018         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40019         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40020         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40021         is defined.
40022         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40023         is defined.
40024         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40025         is defined.
40026         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40027
40028 2009-04-28  Bruno Haible  <bruno@clisp.org>
40029
40030         Comment tweaks.
40031         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40032         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40033         * lib/unicase.h (u*_casexfrm): Likewise.
40034         Reported by Paolo Bonzini.
40035
40036 2009-04-28  Bruno Haible  <bruno@clisp.org>
40037
40038         Fix a compilation error.
40039         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40040         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40041         Reported by Jim Meyering.
40042
40043 2009-04-27  Bruno Haible  <bruno@clisp.org>
40044
40045         New module 'libunistring'.
40046         * modules/libunistring: New file.
40047         * m4/libunistring.m4: New file.
40048         * MODULES.html.sh (Unicode string functions): Add it.
40049
40050 2009-04-27  Eric Blake  <ebb9@byu.net>
40051
40052         maint.mk: allow package-specific header to provide <config.h>
40053         * top/maint.mk (sc_require_config_h): New variable.
40054         (sc_require_config_h, sc_require_config_h_first): Use it.
40055
40056 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40057
40058         * top/maint.mk (sc_avoid_if_before_free): Except
40059         useless-if-before-free script.
40060
40061 2009-04-27  Eric Blake  <ebb9@byu.net>
40062
40063         maintainer-makefile: depend on all required helper scripts
40064         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40065         useless-if-before-free.
40066         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40067         version, rather than assuming gnulib checkout is available.
40068         Reported by Simen Josefsson.
40069
40070 2009-04-26  Bruno Haible  <bruno@clisp.org>
40071
40072         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40073         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40074         "../" or "..".
40075
40076 2009-04-26  Bruno Haible  <bruno@clisp.org>
40077
40078         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40079         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40080         AC_LIB_HAVE_LINKFLAGS.
40081
40082 2009-04-26  Bruno Haible  <bruno@clisp.org>
40083
40084         Simplify calling convention of u*_conv_from_encoding.
40085         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40086         u32_conv_from_encoding): Expect a resultbuf argument and return the
40087         result directly as a pointer.
40088         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40089         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40090         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40091         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40092         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40093         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40094         Update.
40095         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40096         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40097         * lib/vasnprintf.c (VASNPRINTF): Update.
40098         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40099         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40100         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40101         * NEWS: Mention the change.
40102
40103 2009-04-26  Bruno Haible  <bruno@clisp.org>
40104
40105         Simplify calling convention of u*_conv_to_encoding.
40106         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40107         u32_conv_to_encoding): Expect a resultbuf argument and return the
40108         result directly as a pointer.
40109         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40110         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40111         freeing scaled_offsets if mem_iconveha failed.
40112         * lib/unicase/u-casexfrm.h (FUNC): Update.
40113         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40114         * lib/vasnprintf.c (VASNPRINTF): Update.
40115         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40116         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40117         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40118         * NEWS: Mention the change.
40119
40120 2009-04-26  Bruno Haible  <bruno@clisp.org>
40121
40122         Avoid test failures on AIX and OSF/1.
40123         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40124         malloc(0).
40125         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40126         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40127         Likewise.
40128         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40129         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40130         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40131         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40132         * doc/posix-functions/malloc.texi: Document the portability problem
40133         related to malloc(0).
40134
40135 2009-04-26  Bruno Haible  <bruno@clisp.org>
40136
40137         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40138         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40139         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40140
40141 2009-04-25  Bruno Haible  <bruno@clisp.org>
40142
40143         Avoid link error when creating a namespace clean library.
40144         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40145         as macro with arguments if already defined as an alias.
40146         * lib/signbitf.c (gl_signbitf): Don't undefine.
40147         * lib/signbitd.c (gl_signbitd): Don't undefine.
40148         * lib/signbitl.c (gl_signbitl): Don't undefine.
40149
40150 2009-04-25  Jim Meyering  <meyering@redhat.com>
40151
40152         vc-list-files: fix another quoting bug
40153         * build-aux/vc-list-files: Avoid sed backslash expansion
40154         of pathological directory names.
40155
40156 2009-04-25  Eric Blake  <ebb9@byu.net>
40157
40158         vc-list-files: fix shell quoting error
40159         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40160         timestamp.
40161
40162 2009-04-25  Jim Meyering  <meyering@redhat.com>
40163
40164         vc-list-files: restore lost functionality with subdir argument
40165         * build-aux/vc-list-files: When given a non-"." sub-directory
40166         argument, substitute the $dir/ prefix back onto each resulting name.
40167         Otherwise, coreutils' root_tests check would fail.
40168
40169 2009-04-24  Eric Blake  <ebb9@byu.net>
40170
40171         vc-list-files: ignore git symlinks
40172         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40173         than ls-files, to ignore git symlinks.
40174
40175         maint.mk: import improvements from m4
40176         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40177         (move_if_change): Delete unused macro.
40178         (news-date-check, vc-diff-check): Support VPATH builds.
40179         (announcement): Likewise.  Split --bootstrap-tools list...
40180         (boostrap-tools): ...into separate list, which can be overridden
40181         in cfg.mk.
40182         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40183         requiring dependency on useless-if-before-free module.
40184         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40185         Support VPATH builds.
40186
40187 2009-04-24  Jim Meyering  <meyering@redhat.com>
40188
40189         maint.mk: remove coreutils-specific rules and variables
40190         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40191         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40192         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40193
40194         maint.mk: remove obsolete rule
40195         * top/maint.mk (rel-check): Remove rule.
40196         (WGET, WGETFLAGS): Remove now-unused variables.
40197
40198 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40199
40200         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40201         consistency.
40202
40203         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40204         '$(PATH_SEPARATOR)' instead of ':'.
40205
40206 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40207
40208         * lib/getopt1.c (main): Use 'const' for static array.
40209
40210 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40211
40212         * top/maint.mk: Sync with coreutils.
40213         * NEWS: Explain incompatibilities.
40214
40215 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40216             Bruno Haible  <bruno@clisp.org>
40217
40218         Fix cross-compilation results.
40219         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40220         statement, as third argument of AC_TRY_RUN.
40221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40223         Likewise.
40224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40225         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40226         Likewise.
40227         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40229         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40230
40231 2009-04-20  Bruno Haible  <bruno@clisp.org>
40232
40233         Avoid test failure on mingw.
40234         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40235
40236 2009-04-20  Bruno Haible  <bruno@clisp.org>
40237
40238         Avoid compilation error on mingw.
40239         * modules/localename-tests (Depends-on): Add locale.
40240
40241 2009-04-19  Bruno Haible  <bruno@clisp.org>
40242
40243         Support for building a shared library on Windows platforms.
40244         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40245         (main): Test the presence of UNINORM_NFC here.
40246         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40247         (main): Test the presence of UNINORM_NFD here.
40248         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40249         (main): Test the presence of UNINORM_NFKC here.
40250         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40251         (main): Test the presence of UNINORM_NFKD here.
40252
40253 2009-04-19  Bruno Haible  <bruno@clisp.org>
40254
40255         Avoid a compiler warning.
40256         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40257         Change type of variable 'sequence'.
40258
40259 2009-04-19  Bruno Haible  <bruno@clisp.org>
40260
40261         * modules/configmake (Makefile.am): When the contents of configmake.h
40262         does not change, arrange to preserve its modification time.
40263
40264 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40265
40266         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40267         gettext domain.
40268
40269 2009-04-16  Jim Meyering  <meyering@redhat.com>
40270
40271         useless-if-before-free: improve conversion code
40272         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40273         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40274
40275 2009-04-14  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/fcntl (Depends-on): Add extensions.
40278         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40279
40280 2009-04-12  Ben Pfaff  <blp@gnu.org>
40281
40282         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40283         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40284
40285 2009-03-20  Ben Pfaff  <blp@gnu.org>
40286
40287         Make rename replace existing destinations on Windows.
40288         * m4/rename.m4: Add test for Mingw.
40289         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40290         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40291         * doc/posix-functions/rename.texi: Document.
40292
40293 2009-04-10  Bruno Haible  <bruno@clisp.org>
40294
40295         New include file "iconveh.h".
40296         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40297         * lib/striconveh.h: Include it.
40298         (enum iconv_ilseq_handler): Remove definition.
40299         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40300         striconveh.h.
40301         * lib/striconveha.c: Include striconveh.h.
40302         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40303         * modules/striconveh (Files): Add lib/iconveh.h.
40304         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40305         lib/striconveh.h.
40306
40307 2009-04-10  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/uniconv.h: Update comment.
40310
40311 2009-04-10  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40314         always.
40315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40316         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40317         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40318         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40319         "unistring-notinline.h", so that the function gets defined always.
40320         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40321         * lib/unistr/u8-uctomb.c: Likewise.
40322         * lib/unistr/u16-mbtouc.c: Likewise.
40323         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40324         * lib/unistr/u16-uctomb.c: Likewise.
40325         * lib/unistr/u32-mbtouc.c: Likewise.
40326         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40327         * lib/unistr/u32-uctomb.c: Likewise.
40328
40329 2009-04-10  Bruno Haible  <bruno@clisp.org>
40330
40331         Mark 'utime' obsolete.
40332         * modules/utime (Status, Notice): New sections.
40333         Suggested by Jim Meyering.
40334
40335         Fix cross-compile guess for utime test.
40336         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40337         autoconf.
40338         * doc/posix-functions/utime.texi: Give more precisions.
40339         Reported by Jan <ipif@ymail.com>.
40340
40341 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40342
40343         filevercmp: correct today's change
40344         * lib/filevercmp.c: Also handle coreutils' test inputs.
40345         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40346
40347         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40348         for reporting it.
40349         * lib/filevercmp.c: Special handle for "", "." and "..".
40350         * tests/test-filevercmp.c: Enlarge the set suite.
40351
40352 2009-04-07  Jim Meyering  <meyering@redhat.com>
40353
40354         useless-if-before-free: show how to remove braced useless free, too
40355         * build-aux/useless-if-before-free: still only in a comment, though.
40356
40357 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40358
40359         maint.mk: import changes to syntax-check macros from coreutils
40360         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40361         Use them in the relevant macros.
40362
40363 2009-04-06  Bruno Haible  <bruno@clisp.org>
40364
40365         Fix unportable use of bit-fields.
40366         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40367         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40368         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40369
40370 2009-04-06  Bruno Haible  <bruno@clisp.org>
40371
40372         Avoid test failures on AIX and OSF/1.
40373         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40374         that malloc(0) = NULL.
40375         * tests/unicase/test-u8-tolower.c (check): Likewise.
40376         * tests/unicase/test-u8-totitle.c (check): Likewise.
40377         * tests/unicase/test-u8-toupper.c (check): Likewise.
40378         * tests/unicase/test-u16-casefold.c (check): Likewise.
40379         * tests/unicase/test-u16-tolower.c (check): Likewise.
40380         * tests/unicase/test-u16-totitle.c (check): Likewise.
40381         * tests/unicase/test-u16-toupper.c (check): Likewise.
40382         * tests/unicase/test-u32-casefold.c (check): Likewise.
40383         * tests/unicase/test-u32-tolower.c (check): Likewise.
40384         * tests/unicase/test-u32-totitle.c (check): Likewise.
40385         * tests/unicase/test-u32-toupper.c (check): Likewise.
40386         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40387         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40388         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40389         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40390         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40391         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40392         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40393         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40394         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40395         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40396         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40397         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40398
40399 2009-04-05  Bruno Haible  <bruno@clisp.org>
40400
40401         Work around an autoconf limitation.
40402         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40403         comment line if it would be longer than 3 KB.
40404
40405 2009-04-05  Bruno Haible  <bruno@clisp.org>
40406
40407         Avoid test failure with libiconv-1.13.
40408         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40409         of the expected test results.
40410
40411 2009-04-05  Bruno Haible  <bruno@clisp.org>
40412
40413         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40414         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40415         that it should be installed.
40416
40417 2009-04-05  Bruno Haible  <bruno@clisp.org>
40418
40419         * gnulib-tool: New option --copy-file.
40420         (func_usage): Document it.
40421         (func_dest_tmpfilename): Moved out of func_import.
40422         (func_add_file, func_update_file): New functions, extracted from
40423         func_import.
40424         (func_import): Update.
40425
40426 2009-04-05  Karl Berry  <karl@gnu.org>
40427
40428         * README: prominently mention gnulib-tool.
40429         Rearrange sections so getting the code is near the top.
40430
40431 2009-04-05  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/unicase.h: Mention u*_cmp2.
40434         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40435         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40436         * lib/unicase/ulc-casecmp.c: Likewise.
40437         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40438         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40439         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40440         unistr/u8-cmp.
40441         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40442         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40443         unistr/u16-cmp.
40444         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40445         unistr/u32-cmp.
40446
40447         * lib/uninorm.h: Mention u*_cmp2.
40448         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40449         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40450         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40451         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40452         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40453         unistr/u8-cmp.
40454         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40455         unistr/u16-cmp.
40456         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40457         unistr/u32-cmp.
40458
40459         New module 'unistr/u32-cmp2'.
40460         * lib/unistr/u32-cmp2.c: New file.
40461         * modules/unistr/u32-cmp2: New file.
40462
40463         New module 'unistr/u16-cmp2'.
40464         * lib/unistr/u16-cmp2.c: New file.
40465         * modules/unistr/u16-cmp2: New file.
40466
40467         New module 'unistr/u8-cmp2'.
40468         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40469         * lib/unistr/u8-cmp2.c: New file.
40470         * lib/unistr/u-cmp2.h: New file.
40471         * modules/unistr/u8-cmp2: New file.
40472
40473 2009-04-05  Bruno Haible  <bruno@clisp.org>
40474
40475         * lib/unictype.h (uc_property_is_valid): New macro.
40476         * tests/unictype/test-pr_byname.c (main): Use it.
40477
40478         * lib/unistr.h: Doc fixes.
40479         * lib/uniconv.h: Doc fixes.
40480         * lib/unictype.h: Doc fixes.
40481
40482 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40483
40484         Port coreutils 7.2 to Solaris 8.
40485
40486         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40487         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40488         for Solaris 8.  This is a bit of a hack, as it means it's the
40489         caller's responsibility to add -lnsl if needed, but most likely it
40490         won't be needed since only getaddrinfo uses this and getaddrinfo
40491         isn't needed on Solaris 8.
40492
40493         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40494         problem to Solaris 8 encountered with coreutils 7.2, which
40495         resulted in a message "fnmatch.c:292: warning: passing argument 4
40496         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40497         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40498
40499 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40500
40501         * m4/ld-version-script.m4: Add FIXME comment.
40502
40503 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40504
40505         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40506         SOVERSION variable.
40507
40508 2009-04-02  Bruno Haible  <bruno@clisp.org>
40509
40510         * Makefile (info, html, dvi, pdf): Combine the rules.
40511         Suggested by Jim Meyering.
40512
40513 2009-04-01  Bruno Haible  <bruno@clisp.org>
40514
40515         * Makefile (info, html, dvi, pdf): New targets.
40516         Reported by Reuben Thomas <rrt@sc3d.org>.
40517
40518 2009-04-01  Bruno Haible  <bruno@clisp.org>
40519
40520         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40521         can be put into PATH.
40522         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40523
40524 2009-04-01  Bruno Haible  <bruno@clisp.org>
40525
40526         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40527
40528 2009-04-01  Bruno Haible  <bruno@clisp.org>
40529
40530         Rename module 'visibility'.
40531         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40532         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40533         * doc/gnulib.texi: Update.
40534         * MODULES.html.sh (Misc): Update.
40535         * NEWS: Mention the change.
40536
40537 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40538
40539         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40540         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40541         Eric Blake <ebb9@byu.net> for review.
40542         * MODULES.html.sh: Add lib-msvc-compat.
40543         * doc/gnulib.texi: Link to new section.
40544         * m4/ld-output-def.m4: New file.
40545         * doc/ld-output-def.texi: New file.
40546
40547 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40548
40549         Rename ld-version-script to lib-symbol-versions.  Suggested by
40550         Bruno Haible <bruno@clisp.org>.
40551         * modules/ld-version-script: Renamed to lib-symbol-versions.
40552         * doc/ld-version-script.texi: Fix module name.
40553         * MODULES.html.sh: Add lib-symbol-versions.
40554
40555 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40556
40557         * modules/u64-tests: New file.
40558         * tests/test-u64.c: New file.
40559
40560 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40561
40562         * MODULES.html.sh: Mention u64.
40563         * modules/u64: New module.
40564         * modules/crypto/sha512: Depend on u64 module instead of providing
40565         u64.h.
40566
40567 2009-03-27  Eric Blake  <ebb9@byu.net>
40568
40569         test-strerror: make debugging EAI_SYSTEM easier
40570         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40571         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40572         failure was EAI_SYSTEM.
40573
40574 2009-03-25  Bruno Haible  <bruno@clisp.org>
40575
40576         Fix a problem with --enable-relocatable on Solaris 7.
40577         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40578         since 2008-02-24.
40579
40580 2009-03-25  Eric Blake  <ebb9@byu.net>
40581
40582         test-sockets: avoid gcc warning
40583         * tests/test-sockets.c (main): Silence compiler warning.
40584
40585 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40586
40587         New modules nproc, pthread, contributed by Glen Lenker.
40588
40589         * MODULES.html.sh: Add pthread, nproc.
40590         * lib/nproc.c: New file.
40591         * lib/nproc.h: New file.
40592         * lib/pthread.in.h: New file.
40593         * m4/pthread.m4: New file.
40594         * modules/nproc: New file.
40595         * modules/pthread: New file.
40596
40597 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40598
40599         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40600         New variable.
40601
40602 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40603
40604         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40605         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40606         * tests/test-filevercmp.c: Add tests for backup suffixes.
40607
40608 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40609
40610         * modules/stdlib (Depends-on): Add stdint, needed when defining
40611         struct random_data on, for example, HP-UX 10.20.  Reported by
40612         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40613
40614 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40615
40616         * lib/readline.c (readline): Call fflush on stdout after printing
40617         prompt.
40618
40619 2009-03-20  Bruno Haible  <bruno@clisp.org>
40620
40621         Remove dependency from 'close' module to -lws2_32 on native Windows.
40622         * lib/close-hook.h: New file.
40623         * lib/close-hook.c: New file.
40624         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40625         w32sock.h.
40626         (_gl_close_fd_maybe_socket): Remove function.
40627         (rpl_close): Invoke execute_all_close_hooks instead of
40628         _gl_close_fd_maybe_socket.
40629         * lib/sockets.c: Include close-hook.h, w32sock.h.
40630         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40631         (close_sockets_hook): New variable.
40632         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40633         (gl_sockets_cleanup): Unregister it.
40634         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40635         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40636         * modules/close-hook: New file.
40637         * modules/close (Files): Remove lib/w32sock.h.
40638         (Depends-on): Add close-hook.
40639         (Link): Remove section.
40640         * modules/sockets (Files): Add lib/w32sock.h.
40641         (Depends-on): Add close-hook.
40642         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40643         invocation.
40644         * NEWS: Mention that LIB_CLOSE is gone.
40645
40646 2009-03-23  Eric Blake  <ebb9@byu.net>
40647
40648         signal-tests: test previous patch
40649         * tests/test-signal.c: New file.
40650         * modules/signal-tests: Likewise.
40651
40652         signal.h: always support 'volatile sig_atomic_t'
40653         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40654         (gl_SIGNAL_H_DEFAULTS): Add a default.
40655         * modules/signal (Makefile.am): Substitute if needed.
40656         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40657         users can blindly add volatile.
40658         * doc/posix-headers/signal.texi (signal.h): Document it.
40659         Reported by Matthew Woehlke.
40660
40661 2009-03-23  Jim Meyering  <meyering@redhat.com>
40662
40663         pathmax: PATH_MAX: use pathconf only when available
40664         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40665         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40666         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40667         This avoids a link failure in a PSP cross-compilation environment
40668         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40669
40670         * lib/vasnprintf.c (divide): Fix typo in comment.
40671
40672 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40673
40674         * gnulib-tool (func_filter_filelist): Fix comment.
40675
40676 2009-03-20  Bruno Haible  <bruno@clisp.org>
40677
40678         Make sockets.h self-contained.
40679         * lib/sockets.c: Include sockets.h first.
40680         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40681
40682 2009-03-19  Eric Blake  <ebb9@byu.net>
40683
40684         doc: mention more functions added in cygwin 1.7.0
40685         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40686         addition.
40687         * doc/posix-functions/log2f.texi: Likewise.
40688
40689 2009-03-19  Jim Meyering  <meyering@redhat.com>
40690
40691         fsusage: avoid syntax error due to statement-before-declaration
40692         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40693         after all declarations.  Reported by Matthew Woehlke in
40694         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40695
40696 2009-03-18  Eric Blake  <ebb9@byu.net>
40697
40698         build-aux/compile: sync from automake
40699         * build-aux/compile: New file, from automake.
40700         * config/srclist.txt: Mention build-aux/compile.
40701
40702 2009-03-17  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/git-merge-changelog.c: Fix typo in comment.
40705         Reported by Reuben Thomas <rrt@sc3d.org>.
40706
40707 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40708
40709         * m4/regex.m4: update and improve help for
40710         --without-included-regex.
40711
40712 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40713
40714         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40715         failure on missing include files.
40716
40717 2009-03-17  Eric Blake  <ebb9@byu.net>
40718
40719         doc: mention more functions added in cygwin 1.7.0
40720         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40721         addition.
40722         * doc/posix-functions/fwscanf.texi: Likewise.
40723         * doc/posix-functions/swprintf.texi: Likewise.
40724         * doc/posix-functions/swscanf.texi: Likewise.
40725         * doc/posix-functions/vfwprintf.texi: Likewise.
40726         * doc/posix-functions/vfwscanf.texi: Likewise.
40727         * doc/posix-functions/vswprintf.texi: Likewise.
40728         * doc/posix-functions/vswscanf.texi: Likewise.
40729         * doc/posix-functions/vwprintf.texi: Likewise.
40730         * doc/posix-functions/vwscanf.texi: Likewise.
40731         * doc/posix-functions/wcscasecmp.texi: Likewise.
40732         * doc/posix-functions/wcsdup.texi: Likewise.
40733         * doc/posix-functions/wcsftime.texi: Likewise.
40734         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40735         * doc/posix-functions/wprintf.texi: Likewise.
40736         * doc/posix-functions/wscanf.texi: Likewise.
40737         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40738
40739 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40740
40741         maint.mk: really add $(AM_MAKEFLAGS)
40742         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40743         was inadvertently omitted in the last commit.
40744         Spotted by Bruno Haible.
40745
40746         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40747         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40748         $(AM_MAKEFLAGS)' rather than plain `make'.
40749
40750         gnulib-tool: execute $MAKE not make
40751         * gnulib-tool: Default $MAKE to 'make'.
40752         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40753         than make.  Initialize $MAKE in the do-autobuild script.
40754
40755         gnulib-tool: use $MAKE not make in generated files
40756         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40757         make, in generated files.  Initialize $MAKE in the do-autobuild
40758         script.
40759
40760         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40761
40762         GNUmakefile: disable parallelism only for multiple, recursive targets
40763         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40764         additions in the Makefile.
40765         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40766         by Automake.
40767         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40768         are listed on the command line and at least one of them is
40769         listed in $(ALL_RECURSIVE_TARGETS).
40770
40771 2009-03-14  Bruno Haible  <bruno@clisp.org>
40772
40773         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40774         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40775         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40776         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40777         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40778         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40779         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40780         unistr/u8-uctomb.
40781         * modules/unistr/u8-strchr (Depends-on): Likewise.
40782         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40783         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40784         unistr/u16-uctomb.
40785         * modules/unistr/u16-strchr (Depends-on): Likewise.
40786         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40787
40788 2009-03-12  Bruno Haible  <bruno@clisp.org>
40789
40790         Work around select() bug on Interix 3.5.
40791         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40792         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40793         * m4/select.m4: New file.
40794         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40795         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40796         * modules/select (Files): Add m4/select.m4.
40797         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40798         * modules/nanosleep (Depends-on): Add select.
40799         * modules/poll (Depends-on): Likewise.
40800         * doc/posix-functions/select.texi: Mention the Interix bug.
40801         Reported by Markus Duft <mduft@gentoo.org>.
40802
40803         * lib/select.c: Renamed from lib/winsock-select.c.
40804         * modules/select (Files): Add lib/select.c, remove
40805         lib/winsock-select.c.
40806         (configure.ac): Update.
40807
40808 2009-03-12  Jim Meyering  <meyering@redhat.com>
40809
40810         avoid gcc warnings about unused macro definitions
40811         * lib/readtokens.c (STREQ): Remove unused definition.
40812         * lib/xmalloc.c (SIZE_MAX): Likewise.
40813         * lib/openat-die.c (N_): Likewise.
40814         * lib/mountlist.c (SIZE_MAX): Remove definition.
40815         Instead, include <stdint.h>.
40816         * lib/readutmp.c: Likewise.
40817         * modules/readutmp (Depends-on): Add stdint.
40818         * modules/mountlist (Depends-on): Add stdint.
40819         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40820
40821 2009-03-10  Bruno Haible  <bruno@clisp.org>
40822
40823         Tests for module 'mbmemcasecoll'.
40824         * modules/mbmemcasecoll-tests: New file.
40825         * tests/test-mbmemcasecoll1.sh: New file.
40826         * tests/test-mbmemcasecoll2.sh: New file.
40827         * tests/test-mbmemcasecoll3.sh: New file.
40828         * tests/test-mbmemcasecoll.c: New file.
40829
40830         New module 'mbmemcasecoll'.
40831         * lib/mbmemcasecoll.h: New file.
40832         * lib/mbmemcasecoll.c: New file.
40833         * modules/mbmemcasecoll: New file.
40834
40835         * tests/test-mbmemcasecmp.h: New file, extracted from
40836         tests/test-mbmemcasecmp.c.
40837         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40838         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40839         (main): Update.
40840         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40841
40842 2009-03-09  Bruno Haible  <bruno@clisp.org>
40843
40844         Tests for module 'mbmemcasecmp'.
40845         * modules/mbmemcasecmp-tests: New file.
40846         * tests/test-mbmemcasecmp1.sh: New file.
40847         * tests/test-mbmemcasecmp2.sh: New file.
40848         * tests/test-mbmemcasecmp3.sh: New file.
40849         * tests/test-mbmemcasecmp.c: New file.
40850
40851         New module 'mbmemcasecmp'.
40852         * lib/mbmemcasecmp.h: New file.
40853         * lib/mbmemcasecmp.c: New file.
40854         * modules/mbmemcasecmp: New file.
40855
40856 2009-03-09  Bruno Haible  <bruno@clisp.org>
40857
40858         Tests for module 'unicase/ulc-casecoll'.
40859         * modules/unicase/ulc-casecoll-tests: New file.
40860         * tests/unicase/test-ulc-casecoll1.sh: New file.
40861         * tests/unicase/test-ulc-casecoll2.sh: New file.
40862         * tests/unicase/test-ulc-casecoll.c: New file.
40863
40864         New module 'unicase/ulc-casecoll'.
40865         * lib/unicase.h (ulc_casecoll): New declaration.
40866         * lib/unicase/ulc-casecoll.c: New file.
40867         * modules/unicase/ulc-casecoll: New file.
40868
40869         New module 'unicase/ulc-casexfrm'.
40870         * lib/unicase.h (ulc_casexfrm): New declaration.
40871         * lib/unicase/ulc-casexfrm.c: New file.
40872         * modules/unicase/ulc-casexfrm: New file.
40873
40874 2009-03-09  Bruno Haible  <bruno@clisp.org>
40875
40876         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40877         invocations.
40878
40879         * m4/mbscasecmp.m4: Remove file.
40880         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40881         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40882
40883         * m4/mbscasestr.m4: Remove file.
40884         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40885         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40886
40887         * m4/mbschr.m4: Remove file.
40888         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40889         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40890
40891         * m4/mbscspn.m4: Remove file.
40892         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40893         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40894
40895         * m4/mbslen.m4: Remove file.
40896         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40897         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40898
40899         * m4/mbsncasecmp.m4: Remove file.
40900         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40901         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40902
40903         * m4/mbsnlen.m4: Remove file.
40904         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40905         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40906
40907         * m4/mbspbrk.m4: Remove file.
40908         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40909         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40910
40911         * m4/mbspcasecmp.m4: Remove file.
40912         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40913         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40914
40915         * m4/mbsrchr.m4: Remove file.
40916         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40917         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40918
40919         * m4/mbssep.m4: Remove file.
40920         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40921         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40922
40923         * m4/mbsspn.m4: Remove file.
40924         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40925         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40926
40927         * m4/mbsstr.m4: Remove file.
40928         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40929         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40930
40931         * m4/mbstok_r.m4: Remove file.
40932         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40933         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40934
40935         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40936
40937         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40938         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40939
40940         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40941
40942 2009-03-08  Bruno Haible  <bruno@clisp.org>
40943
40944         Tests for module 'unicase/ulc-casecmp'.
40945         * modules/unicase/ulc-casecmp-tests: New file.
40946         * tests/unicase/test-ulc-casecmp1.sh: New file.
40947         * tests/unicase/test-ulc-casecmp2.sh: New file.
40948         * tests/unicase/test-ulc-casecmp.c: New file.
40949
40950         New module 'unicase/ulc-casecmp'.
40951         * lib/unicase.h (ulc_casecmp): New declaration.
40952         * lib/unicase/ulc-casecmp.c: New file.
40953         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40954         'const SRC_UNIT *'.
40955         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40956         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40957         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40958         * modules/unicase/ulc-casecmp: New file.
40959
40960         Tests for module 'unicase/u32-is-cased'.
40961         * modules/unicase/u32-is-cased-tests: New file.
40962         * tests/unicase/test-u32-is-cased.c: New file.
40963
40964         Tests for module 'unicase/u16-is-cased'.
40965         * modules/unicase/u16-is-cased-tests: New file.
40966         * tests/unicase/test-u16-is-cased.c: New file.
40967
40968         Tests for module 'unicase/u8-is-cased'.
40969         * modules/unicase/u8-is-cased-tests: New file.
40970         * tests/unicase/test-u8-is-cased.c: New file.
40971         * tests/unicase/test-is-cased.h: New file.
40972
40973         New module 'unicase/u32-is-cased'.
40974         * lib/unicase/u32-is-cased.c: New file.
40975         * modules/unicase/u32-is-cased: New file.
40976
40977         New module 'unicase/u16-is-cased'.
40978         * lib/unicase/u16-is-cased.c: New file.
40979         * modules/unicase/u16-is-cased: New file.
40980
40981         New module 'unicase/u8-is-cased'.
40982         * lib/unicase/u8-is-cased.c: New file.
40983         * lib/unicase/u-is-cased.h: New file.
40984         * modules/unicase/u8-is-cased: New file.
40985
40986         Tests for module 'unicase/u32-is-casefolded'.
40987         * modules/unicase/u32-is-casefolded-tests: New file.
40988         * tests/unicase/test-u32-is-casefolded.c: New file.
40989
40990         Tests for module 'unicase/u16-is-casefolded'.
40991         * modules/unicase/u16-is-casefolded-tests: New file.
40992         * tests/unicase/test-u16-is-casefolded.c: New file.
40993
40994         Tests for module 'unicase/u8-is-casefolded'.
40995         * modules/unicase/u8-is-casefolded-tests: New file.
40996         * tests/unicase/test-u8-is-casefolded.c: New file.
40997         * tests/unicase/test-is-casefolded.h: New file.
40998
40999         New module 'unicase/u32-is-casefolded'.
41000         * lib/unicase/u32-is-casefolded.c: New file.
41001         * modules/unicase/u32-is-casefolded: New file.
41002
41003         New module 'unicase/u16-is-casefolded'.
41004         * lib/unicase/u16-is-casefolded.c: New file.
41005         * modules/unicase/u16-is-casefolded: New file.
41006
41007         New module 'unicase/u8-is-casefolded'.
41008         * lib/unicase/u8-is-casefolded.c: New file.
41009         * modules/unicase/u8-is-casefolded: New file.
41010
41011         Tests for module 'unicase/u32-is-titlecase'.
41012         * modules/unicase/u32-is-titlecase-tests: New file.
41013         * tests/unicase/test-u32-is-titlecase.c: New file.
41014
41015         Tests for module 'unicase/u16-is-titlecase'.
41016         * modules/unicase/u16-is-titlecase-tests: New file.
41017         * tests/unicase/test-u16-is-titlecase.c: New file.
41018
41019         Tests for module 'unicase/u8-is-titlecase'.
41020         * modules/unicase/u8-is-titlecase-tests: New file.
41021         * tests/unicase/test-u8-is-titlecase.c: New file.
41022         * tests/unicase/test-is-titlecase.h: New file.
41023
41024         New module 'unicase/u32-is-titlecase'.
41025         * lib/unicase/u32-is-titlecase.c: New file.
41026         * modules/unicase/u32-is-titlecase: New file.
41027
41028         New module 'unicase/u16-is-titlecase'.
41029         * lib/unicase/u16-is-titlecase.c: New file.
41030         * modules/unicase/u16-is-titlecase: New file.
41031
41032         New module 'unicase/u8-is-titlecase'.
41033         * lib/unicase/u8-is-titlecase.c: New file.
41034         * modules/unicase/u8-is-titlecase: New file.
41035
41036         Tests for module 'unicase/u32-is-lowercase'.
41037         * modules/unicase/u32-is-lowercase-tests: New file.
41038         * tests/unicase/test-u32-is-lowercase.c: New file.
41039
41040         Tests for module 'unicase/u16-is-lowercase'.
41041         * modules/unicase/u16-is-lowercase-tests: New file.
41042         * tests/unicase/test-u16-is-lowercase.c: New file.
41043
41044         Tests for module 'unicase/u8-is-lowercase'.
41045         * modules/unicase/u8-is-lowercase-tests: New file.
41046         * tests/unicase/test-u8-is-lowercase.c: New file.
41047         * tests/unicase/test-is-lowercase.h: New file.
41048
41049         New module 'unicase/u32-is-lowercase'.
41050         * lib/unicase/u32-is-lowercase.c: New file.
41051         * modules/unicase/u32-is-lowercase: New file.
41052
41053         New module 'unicase/u16-is-lowercase'.
41054         * lib/unicase/u16-is-lowercase.c: New file.
41055         * modules/unicase/u16-is-lowercase: New file.
41056
41057         New module 'unicase/u8-is-lowercase'.
41058         * lib/unicase/u8-is-lowercase.c: New file.
41059         * modules/unicase/u8-is-lowercase: New file.
41060
41061         Tests for module 'unicase/u32-is-uppercase'.
41062         * modules/unicase/u32-is-uppercase-tests: New file.
41063         * tests/unicase/test-u32-is-uppercase.c: New file.
41064
41065         Tests for module 'unicase/u16-is-uppercase'.
41066         * modules/unicase/u16-is-uppercase-tests: New file.
41067         * tests/unicase/test-u16-is-uppercase.c: New file.
41068
41069         Tests for module 'unicase/u8-is-uppercase'.
41070         * modules/unicase/u8-is-uppercase-tests: New file.
41071         * tests/unicase/test-u8-is-uppercase.c: New file.
41072         * tests/unicase/test-is-uppercase.h: New file.
41073
41074         New module 'unicase/u32-is-uppercase'.
41075         * lib/unicase/u32-is-uppercase.c: New file.
41076         * modules/unicase/u32-is-uppercase: New file.
41077
41078         New module 'unicase/u16-is-uppercase'.
41079         * lib/unicase/u16-is-uppercase.c: New file.
41080         * modules/unicase/u16-is-uppercase: New file.
41081
41082         New module 'unicase/u8-is-uppercase'.
41083         * lib/unicase/u8-is-uppercase.c: New file.
41084         * modules/unicase/u8-is-uppercase: New file.
41085
41086         New module 'unicase/u32-is-invariant'.
41087         * lib/unicase/u32-is-invariant.c: New file.
41088         * modules/unicase/u32-is-invariant: New file.
41089
41090         New module 'unicase/u16-is-invariant'.
41091         * lib/unicase/u16-is-invariant.c: New file.
41092         * modules/unicase/u16-is-invariant: New file.
41093
41094         New module 'unicase/u8-is-invariant'.
41095         * lib/unicase/u8-is-invariant.c: New file.
41096         * lib/unicase/invariant.h: New file.
41097         * lib/unicase/u-is-invariant.h: New file.
41098         * modules/unicase/u8-is-invariant: New file.
41099
41100         Tests for module 'unicase/u32-casecoll'.
41101         * modules/unicase/u32-casecoll-tests: New file.
41102         * tests/unicase/test-u32-casecoll.c: New file.
41103
41104         Tests for module 'unicase/u16-casecoll'.
41105         * modules/unicase/u16-casecoll-tests: New file.
41106         * tests/unicase/test-u16-casecoll.c: New file.
41107
41108         Tests for module 'unicase/u8-casecoll'.
41109         * modules/unicase/u8-casecoll-tests: New file.
41110         * tests/unicase/test-u8-casecoll.c: New file.
41111
41112         New module 'unicase/u32-casecoll'.
41113         * lib/unicase/u32-casecoll.c: New file.
41114         * modules/unicase/u32-casecoll: New file.
41115
41116         New module 'unicase/u16-casecoll'.
41117         * lib/unicase/u16-casecoll.c: New file.
41118         * modules/unicase/u16-casecoll: New file.
41119
41120         New module 'unicase/u8-casecoll'.
41121         * lib/unicase/u8-casecoll.c: New file.
41122         * lib/unicase/u-casecoll.h: New file.
41123         * modules/unicase/u8-casecoll: New file.
41124
41125         New module 'unicase/u32-casexfrm'.
41126         * lib/unicase/u32-casexfrm.c: New file.
41127         * modules/unicase/u32-casexfrm: New file.
41128
41129         New module 'unicase/u16-casexfrm'.
41130         * lib/unicase/u16-casexfrm.c: New file.
41131         * modules/unicase/u16-casexfrm: New file.
41132
41133         New module 'unicase/u8-casexfrm'.
41134         * lib/unicase/u8-casexfrm.c: New file.
41135         * lib/unicase/u-casexfrm.h: New file.
41136         * modules/unicase/u8-casexfrm: New file.
41137
41138         Tests for module 'unicase/u32-casecmp'.
41139         * modules/unicase/u32-casecmp-tests: New file.
41140         * tests/unicase/test-u32-casecmp.c: New file.
41141
41142         Tests for module 'unicase/u16-casecmp'.
41143         * modules/unicase/u16-casecmp-tests: New file.
41144         * tests/unicase/test-u16-casecmp.c: New file.
41145
41146         Tests for module 'unicase/u8-casecmp'.
41147         * modules/unicase/u8-casecmp-tests: New file.
41148         * tests/unicase/test-u8-casecmp.c: New file.
41149         * tests/unicase/test-casecmp.h: New file.
41150
41151         New module 'unicase/u32-casecmp'.
41152         * lib/unicase/u32-casecmp.c: New file.
41153         * modules/unicase/u32-casecmp: New file.
41154
41155         New module 'unicase/u16-casecmp'.
41156         * lib/unicase/u16-casecmp.c: New file.
41157         * modules/unicase/u16-casecmp: New file.
41158
41159         New module 'unicase/u8-casecmp'.
41160         * lib/unicase/u8-casecmp.c: New file.
41161         * lib/unicase/u-casecmp.h: New file.
41162         * modules/unicase/u8-casecmp: New file.
41163
41164         Tests for module 'unicase/u32-casefold'.
41165         * modules/unicase/u32-casefold-tests: New file.
41166         * tests/unicase/test-u32-casefold.c: New file.
41167
41168         Tests for module 'unicase/u16-casefold'.
41169         * modules/unicase/u16-casefold-tests: New file.
41170         * tests/unicase/test-u16-casefold.c: New file.
41171
41172         Tests for module 'unicase/u8-casefold'.
41173         * modules/unicase/u8-casefold-tests: New file.
41174         * tests/unicase/test-u8-casefold.c: New file.
41175
41176         New module 'unicase/u32-casefold'.
41177         * lib/unicase/u32-casefold.c: New file.
41178         * modules/unicase/u32-casefold: New file.
41179
41180         New module 'unicase/u16-casefold'.
41181         * lib/unicase/u16-casefold.c: New file.
41182         * modules/unicase/u16-casefold: New file.
41183
41184         New module 'unicase/u8-casefold'.
41185         * lib/unicase/u8-casefold.c: New file.
41186         * lib/unicase/u-casefold.h: New file.
41187         * modules/unicase/u8-casefold: New file.
41188
41189         New module 'unicase/tocasefold'.
41190         * lib/unicase/casefold.h: New file.
41191         * lib/unicase/tocasefold.c: New file.
41192         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41193         * modules/unicase/tocasefold: New file.
41194
41195         Tests for module 'unicase/u32-totitle'.
41196         * modules/unicase/u32-totitle-tests: New file.
41197         * tests/unicase/test-u32-totitle.c: New file.
41198
41199         Tests for module 'unicase/u16-totitle'.
41200         * modules/unicase/u16-totitle-tests: New file.
41201         * tests/unicase/test-u16-totitle.c: New file.
41202
41203         Tests for module 'unicase/u8-totitle'.
41204         * modules/unicase/u8-totitle-tests: New file.
41205         * tests/unicase/test-u8-totitle.c: New file.
41206
41207         New module 'unicase/u32-totitle'.
41208         * lib/unicase/u32-totitle.c: New file.
41209         * modules/unicase/u32-totitle: New file.
41210
41211         New module 'unicase/u16-totitle'.
41212         * lib/unicase/u16-totitle.c: New file.
41213         * modules/unicase/u16-totitle: New file.
41214
41215         New module 'unicase/u8-totitle'.
41216         * lib/unicase/u8-totitle.c: New file.
41217         * lib/unicase/u-totitle.h: New file.
41218         * modules/unicase/u8-totitle: New file.
41219
41220         Tests for module 'unicase/u32-tolower'.
41221         * modules/unicase/u32-tolower-tests: New file.
41222         * tests/unicase/test-u32-tolower.c: New file.
41223
41224         Tests for module 'unicase/u16-tolower'.
41225         * modules/unicase/u16-tolower-tests: New file.
41226         * tests/unicase/test-u16-tolower.c: New file.
41227
41228         Tests for module 'unicase/u8-tolower'.
41229         * modules/unicase/u8-tolower-tests: New file.
41230         * tests/unicase/test-u8-tolower.c: New file.
41231
41232         New module 'unicase/u32-tolower'.
41233         * lib/unicase/u32-tolower.c: New file.
41234         * modules/unicase/u32-tolower: New file.
41235
41236         New module 'unicase/u16-tolower'.
41237         * lib/unicase/u16-tolower.c: New file.
41238         * modules/unicase/u16-tolower: New file.
41239
41240         New module 'unicase/u8-tolower'.
41241         * lib/unicase/u8-tolower.c: New file.
41242         * modules/unicase/u8-tolower: New file.
41243
41244         Tests for module 'unicase/u32-toupper'.
41245         * modules/unicase/u32-toupper-tests: New file.
41246         * tests/unicase/test-u32-toupper.c: New file.
41247
41248         Tests for module 'unicase/u16-toupper'.
41249         * modules/unicase/u16-toupper-tests: New file.
41250         * tests/unicase/test-u16-toupper.c: New file.
41251
41252         Tests for module 'unicase/u8-toupper'.
41253         * modules/unicase/u8-toupper-tests: New file.
41254         * tests/unicase/test-u8-toupper.c: New file.
41255
41256         New module 'unicase/u32-toupper'.
41257         * lib/unicase/u32-toupper.c: New file.
41258         * modules/unicase/u32-toupper: New file.
41259
41260         New module 'unicase/u16-toupper'.
41261         * lib/unicase/u16-toupper.c: New file.
41262         * modules/unicase/u16-toupper: New file.
41263
41264         New module 'unicase/u8-toupper'.
41265         * lib/unicase/u8-toupper.c: New file.
41266         * modules/unicase/u8-toupper: New file.
41267
41268         New module 'unicase/u32-casemap'.
41269         * lib/unicase/u32-casemap.c: New file.
41270         * modules/unicase/u32-casemap: New file.
41271
41272         New module 'unicase/u16-casemap'.
41273         * lib/unicase/u16-casemap.c: New file.
41274         * modules/unicase/u16-casemap: New file.
41275
41276         New module 'unicase/u8-casemap'.
41277         * lib/unicase/unicasemap.h: New file.
41278         * lib/unicase/u8-casemap.c: New file.
41279         * lib/unicase/u-casemap.h: New file.
41280         * modules/unicase/u8-casemap: New file.
41281
41282         New module 'unicase/special-casing'.
41283         * lib/unicase/special-casing.h: New file.
41284         * lib/unicase/special-casing.c: New file.
41285         * lib/unicase/special-casing-table.gperf: New file, generated by
41286         gen-uni-tables.c.
41287         * modules/unicase/special-casing: New file.
41288
41289         Tests for module 'unicase/locale-language'.
41290         * modules/unicase/locale-language-tests: New file.
41291         * tests/unicase/test-locale-language.sh: New file.
41292         * tests/unicase/test-locale-language.c: New file.
41293
41294         New module 'unicase/locale-language'.
41295         * lib/unicase/locale-language.c: New file.
41296         * lib/unicase/locale-languages.gperf: New file.
41297         * modules/unicase/locale-language: New file.
41298
41299         Generate more tables for case conversion and case folding.
41300         * lib/gen-uni-tables.c (SCC_*): New enum items.
41301         (struct special_casing_rule): New type.
41302         (casing_rules, num_casing_rules, allocated_casing_rules): New
41303         variables.
41304         (add_casing_rule, fill_casing_rules): New functions.
41305         (struct casefold_rule): New type.
41306         (casefolding_rules, num_casefolding_rules,
41307         allocated_casefolding_rules): New variables.
41308         (fill_casefolding_rules): New function.
41309         (unicode_casefold): New variable.
41310         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41311         sort_casing_rules, output_casing_rules): New functions.
41312         (main): Accept to more arguments: SpecialCasing.txt and
41313         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41314         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41315         Output mapping for casefolding.
41316
41317         * lib/unicase.h: Include stdbool.h, uninorm.h.
41318         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41319         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41320         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41321         arguments.
41322         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41323         resultp arguments.
41324         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41325         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41326         resultp arguments.
41327         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41328         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41329         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41330         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41331         declarations.
41332         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41333
41334 2009-03-08  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41337         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41338         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41339         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41340
41341 2009-03-07  Bruno Haible  <bruno@clisp.org>
41342
41343         Adjust u*_normcmp, u*_normcoll API.
41344         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41345         u16_normcoll, u32_normcoll): Change failure conventions.
41346         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41347         errno and return -1.
41348         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41349
41350 2009-03-07  Bruno Haible  <bruno@clisp.org>
41351
41352         Tests for module 'uninorm/u32-normcoll'.
41353         * modules/uninorm/u32-normcoll-tests: New file.
41354         * tests/uninorm/test-u32-normcoll.c: New file.
41355
41356         Tests for module 'uninorm/u16-normcoll'.
41357         * modules/uninorm/u16-normcoll-tests: New file.
41358         * tests/uninorm/test-u16-normcoll.c: New file.
41359
41360         Tests for module 'uninorm/u8-normcoll'.
41361         * modules/uninorm/u8-normcoll-tests: New file.
41362         * tests/uninorm/test-u8-normcoll.c: New file.
41363
41364 2009-03-07  Bruno Haible  <bruno@clisp.org>
41365
41366         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41367         tests/uninorm/test-u32-normcmp.c.
41368         * tests/uninorm/test-u32-normcmp.c: Include it.
41369         (test_nonascii): New function, extracted from main. Add some more
41370         tests.
41371         (main): Invoke test_ascii and test_nonascii.
41372         * modules/uninorm/u32-normcmp-tests (Files): Add
41373         tests/uninorm/test-u32-normcmp.h.
41374         (Depends-on): Remove uninorm/u32-normcmp.
41375
41376         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41377         tests/uninorm/test-u16-normcmp.c.
41378         * tests/uninorm/test-u16-normcmp.c: Include it.
41379         (test_nonascii): New function, extracted from main. Add some more
41380         tests.
41381         (main): Invoke test_ascii and test_nonascii.
41382         * modules/uninorm/u16-normcmp-tests (Files): Add
41383         tests/uninorm/test-u16-normcmp.h.
41384         (Depends-on): Remove uninorm/u16-normcmp.
41385
41386         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41387         tests/uninorm/test-u8-normcmp.c.
41388         * tests/uninorm/test-u8-normcmp.c: Include it.
41389         (test_nonascii): New function, extracted from main. Add some more
41390         tests.
41391         (main): Invoke test_ascii and test_nonascii.
41392         * modules/uninorm/u8-normcmp-tests (Files): Add
41393         tests/uninorm/test-u8-normcmp.h.
41394         (Depends-on): Remove uninorm/u8-normcmp.
41395
41396 2009-03-07  Bruno Haible  <bruno@clisp.org>
41397
41398         New module 'uninorm/u32-normcoll'.
41399         * lib/uninorm/u32-normcoll.c: New file.
41400         * modules/uninorm/u32-normcoll: New file.
41401
41402         New module 'uninorm/u16-normcoll'.
41403         * lib/uninorm/u16-normcoll.c: New file.
41404         * modules/uninorm/u16-normcoll: New file.
41405
41406         New module 'uninorm/u8-normcoll'.
41407         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41408         declarations.
41409         * lib/uninorm/u8-normcoll.c: New file.
41410         * lib/uninorm/u-normcoll.h: New file.
41411         * modules/uninorm/u8-normcoll: New file.
41412
41413         New module 'uninorm/u32-normxfrm'.
41414         * lib/uninorm/u32-normxfrm.c: New file.
41415         * modules/uninorm/u32-normxfrm: New file.
41416
41417         New module 'uninorm/u16-normxfrm'.
41418         * lib/uninorm/u16-normxfrm.c: New file.
41419         * modules/uninorm/u16-normxfrm: New file.
41420
41421         New module 'uninorm/u8-normxfrm'.
41422         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41423         declarations.
41424         * lib/uninorm/u8-normxfrm.c: New file.
41425         * lib/uninorm/u-normxfrm.h: New file.
41426         * modules/uninorm/u8-normxfrm: New file.
41427
41428 2009-03-07  Bruno Haible  <bruno@clisp.org>
41429
41430         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41431         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41432         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41433
41434 2009-03-07  Bruno Haible  <bruno@clisp.org>
41435
41436         New module 'memxfrm'.
41437         * lib/memxfrm.h: New file.
41438         * lib/memxfrm.c: New file.
41439         * modules/memxfrm: New file.
41440
41441 2009-03-07  Bruno Haible  <bruno@clisp.org>
41442
41443         New module 'memcmp2'.
41444         * lib/memcmp2.h: New file.
41445         * lib/memcmp2.c: New file.
41446         * modules/memcmp2: New file.
41447
41448 2009-03-07  Bruno Haible  <bruno@clisp.org>
41449
41450         Tests for module 'uninorm/decomposing-form'.
41451         * modules/uninorm/decomposing-form-tests: New file.
41452         * tests/uninorm/test-decomposing-form.c: New file.
41453
41454         New module 'uninorm/decomposing-form'.
41455         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41456         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41457         Add 'decomposing_variant' field.
41458         * lib/uninorm/decomposing-form.c: New file.
41459         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41460         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41461         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41462         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41463         * modules/uninorm/decomposing-form: New file.
41464         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41465         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41466
41467 2009-03-07  Bruno Haible  <bruno@clisp.org>
41468
41469         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41470         strings.
41471
41472 2009-03-06  Bruno Haible  <bruno@clisp.org>
41473
41474         Tests for module 'uninorm/u32-normcmp'.
41475         * tests/uninorm/test-u32-normcmp.c: New file.
41476         * modules/uninorm/u32-normcmp-tests: New file.
41477
41478         Tests for module 'uninorm/u16-normcmp'.
41479         * tests/uninorm/test-u16-normcmp.c: New file.
41480         * modules/uninorm/u16-normcmp-tests: New file.
41481
41482         Tests for module 'uninorm/u8-normcmp'.
41483         * tests/uninorm/test-u8-normcmp.c: New file.
41484         * modules/uninorm/u8-normcmp-tests: New file.
41485
41486         New module 'uninorm/u32-normcmp'.
41487         * lib/uninorm/u32-normcmp.c: New file.
41488         * modules/uninorm/u32-normcmp: New file.
41489
41490         New module 'uninorm/u16-normcmp'.
41491         * lib/uninorm/u16-normcmp.c: New file.
41492         * modules/uninorm/u16-normcmp: New file.
41493
41494         New module 'uninorm/u8-normcmp'.
41495         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41496         declarations.
41497         * lib/uninorm/u8-normcmp.c: New file.
41498         * lib/uninorm/u-normcmp.h: New file.
41499         * modules/uninorm/u8-normcmp: New file.
41500
41501 2009-03-06  Bruno Haible  <bruno@clisp.org>
41502
41503         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41504         Reported by Eric Blake.
41505
41506 2009-03-06  Eric Blake  <ebb9@byu.net>
41507             Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41510         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41511         condition.
41512         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41513         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41514         condition.
41515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41516
41517 2009-03-06  Eric Blake  <ebb9@byu.net>
41518
41519         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41520         to avoid compiler warnings.
41521         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41522
41523 2009-03-05  Bruno Haible  <bruno@clisp.org>
41524
41525         * tests/test-ftell.c (main): Disable test beyond end of file on
41526         FreeMiNT.
41527         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41528
41529 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41530
41531         * lib/filevercmp.c: Move hidden files up in ordering.
41532         * tests/test-filevercmp.c: Add tests for hidden files.
41533
41534 2009-03-04  Bruno Haible  <bruno@clisp.org>
41535
41536         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41537         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41538         AM_CFLAGS.
41539         Reported by Simon Josefsson.
41540
41541 2009-03-03  Bruno Haible  <bruno@clisp.org>
41542
41543         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41544         Reported by Simon Josefsson.
41545
41546         * doc/ld-version-script.texi: Update node reference.
41547
41548 2009-03-03  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/visibility (License): Change to 'unlimited'.
41551         Suggested by Simon Josefsson.
41552
41553 2009-03-03  Jim Meyering  <meyering@redhat.com>
41554
41555         unlinkdir: cannot_unlink_dir may modify process state
41556         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41557         it's neither thread-safe nor appropriate for use in a library.
41558
41559 2009-03-03  Eric Blake  <ebb9@byu.net>
41560
41561         test-closein: silence test under Darwin
41562         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41563         care if it dies from EPIPE or EBADF.
41564
41565 2009-03-03  Bruno Haible  <bruno@clisp.org>
41566
41567         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41568         earlier.
41569         * doc/visibility.texi: Fix @node and @section.
41570
41571 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41572
41573         * doc/gnulib.texi: Link to sections for ld version script and
41574         visibility.
41575         * doc/visibility.texi: Add @node and @section.
41576         * modules/ld-version-script: New module.
41577         * m4/ld-version-script.m4: New file.
41578         * doc/ld-version-script.texi: New file.
41579
41580 2009-03-02  David Lutterkort  <lutter@redhat.com>
41581
41582         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41584
41585 2009-03-02  Bruno Haible  <bruno@clisp.org>
41586
41587         * doc/visibility.texi: Mention libtool's -export-symbols option.
41588
41589 2009-03-02  Jim Meyering  <meyering@redhat.com>
41590
41591         announce-gen: new option: --no-print-checksums
41592         * build-aux/announce-gen (usage): Describe it.
41593         (print_checksums): Print a newline here, not in the [*] footnote.
41594         (main): Honor it.
41595
41596 2009-03-01  Bruno Haible  <bruno@clisp.org>
41597
41598         Use socklen_t in the native Windows replacements prototypes.
41599         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41600         instead of 'int'.
41601         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41602         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41603         * modules/getsockopt (Depends-on): Add socklen.
41604         * modules/setsockopt (Depends-on): Add socklen.
41605
41606 2009-03-01  Bruno Haible  <bruno@clisp.org>
41607
41608         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41609         least 4.2.
41610
41611 2009-03-01  Eric Blake  <ebb9@byu.net>
41612             Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41615         error messages.
41616         * lib/wait-process.c (wait_subprocess): Omit error message about
41617         deadly signal sent to the child of termsigp != NULL.
41618
41619 2009-03-01  Eric Blake  <ebb9@byu.net>
41620
41621         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41622
41623 2009-03-01  Bruno Haible  <bruno@clisp.org>
41624
41625         Avoid a gcc warning.
41626         * tests/test-sched.c (b): Make global.
41627         Reported by Eric Blake.
41628
41629 2009-01-19  Martin Lambers  <marlam@marlam.de>
41630
41631         Provide POSIX semantics for socket timeout options on W32.
41632         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41633         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41634         * modules/setsockopt: Depend on sys_time module for struct timeval.
41635         * modules/getsockopt: Depend on sys_time module for struct timeval.
41636
41637 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41638
41639         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41640         __USE_GNU, for consistency with netdb.in.h.
41641         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41642
41643 2009-03-01  Bruno Haible  <bruno@clisp.org>
41644
41645         More support for FreeMiNT.
41646         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41647         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41648
41649 2009-03-01  Bruno Haible  <bruno@clisp.org>
41650
41651         More support for FreeMiNT.
41652         * lib/fpurge.c (fpurge): Correct last commit.
41653         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41654
41655 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41656
41657         Fix unportable awk script in vc-list-files.
41658         * build-aux/vc-list-files: In the replacement awk script, use
41659         substr with a second argument of 1, not zero.
41660         Report by Simon Josefsson.
41661
41662 2009-02-28  Bruno Haible  <bruno@clisp.org>
41663
41664         More support for FreeMiNT.
41665         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41666         to FreeMiNT today.
41667         * lib/fwriting.c (fwriting): Likewise.
41668         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41669
41670 2009-02-28  Bruno Haible  <bruno@clisp.org>
41671
41672         * tests/test-freadseek.c (main): Disable test beyond end of file on
41673         FreeMiNT.
41674         * tests/test-ftello.c (main): Likewise.
41675         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41676
41677 2009-02-28  Bruno Haible  <bruno@clisp.org>
41678
41679         Add tentative support for FreeMiNT.
41680         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41681         * lib/fpurge.c (fpurge): Likewise.
41682         * lib/freadable.c (freadable): Likewise.
41683         * lib/freading.c (freading): Likewise.
41684         * lib/freadptr.c (freadptr): Likewise.
41685         * lib/freadseek.c (freadptrinc): Likewise.
41686         * lib/fseeko.c (rpl_fseeko): Likewise.
41687         * lib/fseterr.c (fseterr): Likewise.
41688         * lib/fwritable.c (fwritable): Likewise.
41689         * lib/fwriting.c (fwriting): Likewise.
41690         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41691         Hourihane.
41692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41693
41694 2009-02-28  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41697         SIGCHLD.
41698         Reported by Jim Meyering.
41699
41700 2009-02-28  Bruno Haible  <bruno@clisp.org>
41701
41702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41703         Mention the results of these tests on various platforms.
41704         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41705         order.
41706         * doc/posix-functions/printf.texi: Likewise.
41707         * doc/posix-functions/snprintf.texi: Likewise.
41708         * doc/posix-functions/sprintf.texi: Likewise.
41709         * doc/posix-functions/vfprintf.texi: Likewise.
41710         * doc/posix-functions/vprintf.texi: Likewise.
41711         * doc/posix-functions/vsnprintf.texi: Likewise.
41712         * doc/posix-functions/vsprintf.texi: Likewise.
41713         * doc/glibc-functions/obstack_printf.texi: Likewise.
41714         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41715
41716 2009-02-28  Bruno Haible  <bruno@clisp.org>
41717
41718         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41719         Reported by Loïc Minier <lool@dooz.org>.
41720
41721 2009-02-27  Bruno Haible  <bruno@clisp.org>
41722
41723         * gnulib-tool (func_import): Make the sed expression used to create the
41724         sed script for updating the .gitignore file POSIX compliant.
41725         Reported by Eric Blake.
41726
41727 2009-02-27  Bruno Haible  <bruno@clisp.org>
41728
41729         * gnulib-tool (sed): Don't alias as "sed --posix".
41730         Reported by Eric Blake.
41731
41732 2009-02-27  Bruno Haible  <bruno@clisp.org>
41733
41734         Avoid test link errors.
41735         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41736         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41737         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41738         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41740
41741 2009-02-27  Bruno Haible  <bruno@clisp.org>
41742
41743         Avoid spurious "(cached)" in configure output.
41744         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41745         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41747         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41751         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41752         Reported by Eric Blake.
41753
41754 2009-02-27  Eric Blake  <ebb9@byu.net>
41755
41756         printf: fix regression in previous patch
41757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41758
41759 2009-02-27  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41762         value.
41763         * lib/stdint.in.h: Likewise.
41764         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41765
41766 2009-02-27  Eric Blake  <ebb9@byu.net>
41767
41768         doc: mention more functions added in cygwin 1.7.0
41769         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41770         addition.
41771         * doc/posix-functions/open_wmemstream.texi: Likewise.
41772         * doc/posix-functions/wcsnlen.texi: Likewise.
41773         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41774         * doc/posix-functions/wcstod.texi: Likewise.
41775         * doc/posix-functions/wcstof.texi: Likewise.
41776         * doc/posix-functions/wcstoimax.texi: Likewise.
41777         * doc/posix-functions/wcstok.texi: Likewise.
41778         * doc/posix-functions/wcstoumax.texi: Likewise.
41779
41780         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41782         * doc/posix-functions/fprintf.texi: Update.
41783         * doc/posix-functions/printf.texi: Update.
41784         * doc/posix-functions/snprintf.texi: Update.
41785         * doc/posix-functions/sprintf.texi: Update.
41786         * doc/posix-functions/vfprintf.texi: Update.
41787         * doc/posix-functions/vprintf.texi: Update.
41788         * doc/posix-functions/vsnprintf.texi: Update.
41789         * doc/posix-functions/vsprintf.texi: Update.
41790         * doc/glibc-functions/obstack_printf.texi: Update.
41791         * doc/glibc-functions/obstack_vprintf.texi: Update.
41792
41793 2009-02-26  Eric Blake  <ebb9@byu.net>
41794
41795         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41796         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41797         compilation bug by using runtime conversion.
41798         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41799         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41800         * modules/ceill-tests (Files): Use nan.h.
41801         * modules/floorl-tests (Files): Likewise.
41802         * modules/frexpl-tests (Files): Likewise.
41803         * modules/isnanl-tests (Files): Likewise.
41804         * modules/ldexpl-tests (Files): Likewise.
41805         * modules/roundl-tests (Files): Likewise.
41806         * modules/truncl-tests (Files): Likewise.
41807         * tests/test-ceill.c (main): Use a working NaN.
41808         * tests/test-floorl.c (main): Likewise.
41809         * tests/test-frexpl.c (main): Likewise.
41810         * tests/test-isnan.c (test_long_double): Likewise.
41811         * tests/test-isnanl.h (main): Likewise.
41812         * tests/test-ldexpl.h (main): Likewise.
41813         * tests/test-roundl.h (main): Likewise.
41814         * tests/test-truncl.h (main): Likewise.
41815         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41816
41817 2009-02-26  Eric Blake  <ebb9@byu.net>
41818             Bruno Haible  <bruno@clisp.org>
41819
41820         Work around a *printf bug with %ls on Solaris.
41821         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41822         precision is specified, sprintf stops converting the wide string
41823         argument when the number of bytes that have been produced by this
41824         conversion equals or exceeds the precision.
41825         * doc/posix-functions/fprintf.texi: Update.
41826         * doc/posix-functions/printf.texi: Update.
41827         * doc/posix-functions/snprintf.texi: Update.
41828         * doc/posix-functions/sprintf.texi: Update.
41829         * doc/posix-functions/vfprintf.texi: Update.
41830         * doc/posix-functions/vprintf.texi: Update.
41831         * doc/posix-functions/vsnprintf.texi: Update.
41832         * doc/posix-functions/vsprintf.texi: Update.
41833         * doc/glibc-functions/obstack_printf.texi: Update.
41834         * doc/glibc-functions/obstack_vprintf.texi: Update.
41835
41836 2009-02-26  Eric Blake  <ebb9@byu.net>
41837
41838         stdlib: favor compiler check of random.h
41839         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41840         to avoid an ObjC random.h installed by Swarm.
41841
41842 2009-02-26  Bruno Haible  <bruno@clisp.org>
41843
41844         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41845         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41846         Reported by Gary V. Vaughan <gary@gnu.org>.
41847
41848 2009-02-26  Bruno Haible  <bruno@clisp.org>
41849
41850         Fix *printf behaviour regarding the %ls directive.
41851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41852         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41853         NEED_PRINTF_DIRECTIVE_LS.
41854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41855         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41856         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41857         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41858         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41859         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41860         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41865         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41869         * doc/posix-functions/fprintf.texi: Update.
41870         * doc/posix-functions/printf.texi: Update.
41871         * doc/posix-functions/snprintf.texi: Update.
41872         * doc/posix-functions/sprintf.texi: Update.
41873         * doc/posix-functions/vfprintf.texi: Update.
41874         * doc/posix-functions/vprintf.texi: Update.
41875         * doc/posix-functions/vsnprintf.texi: Update.
41876         * doc/posix-functions/vsprintf.texi: Update.
41877         * doc/glibc-functions/obstack_printf.texi: Update.
41878         * doc/glibc-functions/obstack_vprintf.texi: Update.
41879         Reported by Eric Blake.
41880
41881 2009-02-25  Bruno Haible  <bruno@clisp.org>
41882
41883         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41884         with known value.
41885         Reported by Gary V. Vaughan <gary@gnu.org>.
41886
41887 2009-02-25  Bruno Haible  <bruno@clisp.org>
41888
41889         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41890         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41891         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41892         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41893         Reported by Gary V. Vaughan <gary@gnu.org>.
41894
41895 2009-02-25  Bruno Haible  <bruno@clisp.org>
41896
41897         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41898         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41899         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41900         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41901         Reported by Gary V. Vaughan <gary@gnu.org>.
41902
41903 2009-02-25  Eric Blake  <ebb9@byu.net>
41904
41905         tests: skip fseek/ftell tests if ungetc is broken
41906         * m4/ungetc.m4: New file.
41907         * modules/fseek-tests: Split test, so ungetc dependency is
41908         separate from rest of test.
41909         * modules/fseeko-tests: Likewise.
41910         * modules/ftell-tests: Likewise.
41911         * modules/ftello-tests: Likewise.
41912         * tests/test-fseek.c (main): Isolate ungetc dependency.
41913         * tests/test-fseeko.c (main): Likewise.
41914         * tests/test-ftell.c (main): Likewise.
41915         * tests/test-ftello.c (main): Likewise.
41916         * tests/test-fseek2.sh: New file.
41917         * tests/test-fseeko2.sh: Likewise.
41918         * tests/test-ftell2.sh: Likewise.
41919         * tests/test-ftello2.sh: Likewise.
41920
41921 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41922
41923         test-getaddrinfo: fix usage of skip return code 77
41924         * tests/test-gettaddrinfo.c: Return skip code 77 only
41925         for first occurance of skip (4x77 is not 77)
41926
41927 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41928
41929         strtod: avoid C99 decl-after-statement
41930         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41931
41932 2009-02-24  Eric Blake  <ebb9@byu.net>
41933
41934         strtod: detect HP-UX 11.31 bug
41935         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41936         Reported by Gary V. Vaughan.
41937
41938 2009-02-23  Bruno Haible  <bruno@clisp.org>
41939
41940         Fix invalid read past end of memory block.
41941         * lib/vasnprintf.c (DCHAR_SET): Define.
41942         (local_wcslen): Define only when needed.
41943         (local_strnlen, local_wcsnlen): New functions.
41944         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41945         directives that involve a conversion ourselves.
41946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41947         wcsnlen, mbrtowc, wcrtomb.
41948         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41949         * tests/test-vasprintf-posix.c (test_function): Likewise.
41950         * tests/test-snprintf-posix.h (test_function): Likewise.
41951         * tests/test-sprintf-posix.h (test_function): Likewise.
41952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41953
41954 2009-02-22  Bruno Haible  <bruno@clisp.org>
41955
41956         Implement new clarified decomposition of Hangul syllables.
41957         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41958         of type LTV, return only a pairwise decomposition.
41959         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41960         Likewise.
41961         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41962         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41963         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41964
41965 2009-02-22  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41968         zero-length results and shrink excess allocated memory.
41969         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41970         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41971         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41972         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41973         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41974         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41975         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41976         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41977         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41978         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41979         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41980         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41981
41982 2009-02-21  Bruno Haible  <bruno@clisp.org>
41983
41984         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41985         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41986         spaces after a period. Put a space between a macro name and its
41987         argument list. Trivial rewordings.
41988         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41989         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41990         (main): Return 0 explicitly.
41991
41992 2009-02-21  Bruno Haible  <bruno@clisp.org>
41993
41994         Tests for module 'uninorm/filter'.
41995         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41996         * modules/uninorm/filter-tests: New file.
41997
41998         New module 'uninorm/filter'.
41999         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42000         uninorm_filter_flush, uninorm_filter_free): New declarations.
42001         * lib/uninorm/uninorm-filter.c: New file.
42002         * modules/uninorm/filter: New file.
42003
42004 2009-02-21  Bruno Haible  <bruno@clisp.org>
42005
42006         Tests for module 'uninorm/nfkc'.
42007         * tests/uninorm/test-nfkc.c: New file.
42008         * tests/uninorm/test-u8-nfkc.c: New file.
42009         * tests/uninorm/test-u16-nfkc.c: New file.
42010         * tests/uninorm/test-u32-nfkc.c: New file.
42011         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42012         * tests/uninorm/test-u32-nfkc-big.c: New file.
42013         * modules/uninorm/nfkc-tests: New file.
42014
42015         New module 'uninorm/nfkc'.
42016         * lib/uninorm/nfkc.c: New file.
42017         * modules/uninorm/nfkc: New file.
42018
42019         Tests for module 'uninorm/nfkd'.
42020         * tests/uninorm/test-nfkd.c: New file.
42021         * tests/uninorm/test-u8-nfkd.c: New file.
42022         * tests/uninorm/test-u16-nfkd.c: New file.
42023         * tests/uninorm/test-u32-nfkd.c: New file.
42024         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42025         * tests/uninorm/test-u32-nfkd-big.c: New file.
42026         * modules/uninorm/nfkd-tests: New file.
42027
42028         New module 'uninorm/nfkd'.
42029         * lib/uninorm/nfkd.c: New file.
42030         * modules/uninorm/nfkd: New file.
42031
42032         Tests for module 'uninorm/nfc'.
42033         * tests/uninorm/test-nfc.c: New file.
42034         * tests/uninorm/test-u8-nfc.c: New file.
42035         * tests/uninorm/test-u16-nfc.c: New file.
42036         * tests/uninorm/test-u32-nfc.c: New file.
42037         * tests/uninorm/test-u32-nfc-big.sh: New file.
42038         * tests/uninorm/test-u32-nfc-big.c: New file.
42039         * modules/uninorm/nfc-tests: New file.
42040
42041         New module 'uninorm/nfc'.
42042         * lib/uninorm/nfc.c: New file.
42043         * modules/uninorm/nfc: New file.
42044
42045         Tests for module 'uninorm/nfd'.
42046         * tests/uninorm/test-nfd.c: New file.
42047         * tests/uninorm/test-u8-nfd.c: New file.
42048         * tests/uninorm/test-u16-nfd.c: New file.
42049         * tests/uninorm/test-u32-nfd.c: New file.
42050         * tests/uninorm/test-u32-nfd-big.sh: New file.
42051         * tests/uninorm/test-u32-nfd-big.c: New file.
42052         * tests/uninorm/test-u32-normalize-big.h: New file.
42053         * tests/uninorm/test-u32-normalize-big.c: New file.
42054         * tests/uninorm/NormalizationTest.txt: New file, created from
42055         Unicode 5.1.0 NormalizationTest.txt.
42056         * modules/uninorm/nfd-tests: New file.
42057
42058         New module 'uninorm/nfd'.
42059         * lib/uninorm/nfd.c: New file.
42060         * modules/uninorm/nfd: New file.
42061
42062         New module 'uninorm/u32-normalize'.
42063         * lib/uninorm/u32-normalize.c: New file.
42064         * modules/uninorm/u32-normalize: New file.
42065
42066         New module 'uninorm/u16-normalize'.
42067         * lib/uninorm/u16-normalize.c: New file.
42068         * modules/uninorm/u16-normalize: New file.
42069
42070         New module 'uninorm/u8-normalize'.
42071         * lib/uninorm/u8-normalize.c: New file.
42072         * lib/uninorm/normalize-internal.h: New file.
42073         * lib/uninorm/u-normalize-internal.h: New file.
42074         * modules/uninorm/u8-normalize: New file.
42075
42076         New module 'uninorm/decompose-internal'.
42077         * lib/uninorm/decompose-internal.c: New file.
42078         * modules/uninorm/decompose-internal: New file.
42079
42080         Tests for module 'uninorm/composition'.
42081         * tests/uninorm/test-composition.c: New file.
42082         * modules/uninorm/composition-tests: New file.
42083
42084         New module 'uninorm/composition'.
42085         * lib/uninorm/composition.c: New file.
42086         * lib/uninorm/composition-table.gperf: New file, generated by
42087         gen-uni-tables.
42088         * modules/uninorm/composition: New file.
42089
42090         Tests for module 'uninorm/compat-decomposition'.
42091         * tests/uninorm/test-compat-decomposition.c: New file.
42092         * modules/uninorm/compat-decomposition-tests: New file.
42093
42094         New module 'uninorm/compat-decomposition'.
42095         * lib/uninorm/decompose-internal.h: New file.
42096         * lib/uninorm/compat-decomposition.c: New file.
42097         * modules/uninorm/compat-decomposition: New file.
42098
42099         Tests for module 'uninorm/canonical-decomposition'.
42100         * tests/uninorm/test-canonical-decomposition.c: New file.
42101         * modules/uninorm/canonical-decomposition-tests: New file.
42102
42103         New module 'uninorm/canonical-decomposition'.
42104         * lib/uninorm/canonical-decomposition.c: New file.
42105         * modules/uninorm/canonical-decomposition: New file.
42106
42107         Tests for module 'uninorm/decomposition'.
42108         * tests/uninorm/test-decomposition.c: New file.
42109         * modules/uninorm/decomposition-tests: New file.
42110
42111         New module 'uninorm/decomposition'.
42112         * lib/uninorm/decomposition.c: New file.
42113         * modules/uninorm/decomposition: New file.
42114
42115         New module 'uninorm/decomposition-table'.
42116         * lib/uninorm/decomposition-table.h: New file.
42117         * lib/uninorm/decomposition-table.c: New file.
42118         * lib/uninorm/decomposition-table1.h: New file, generated by
42119         gen-uni-tables.
42120         * lib/uninorm/decomposition-table2.h: New file, generated by
42121         gen-uni-tables.
42122         * modules/uninorm/decomposition-table: New file.
42123
42124         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42125         (UC_DECOMP_*): New enumeration items.
42126         (get_decomposition): New function.
42127         (struct decomp_table): New type.
42128         (output_decomposition, output_decomposition_tables): New functions.
42129         (unicode_composition_exclusions): New variable.
42130         (fill_composition_exclusions, debug_output_composition_tables): New
42131         functions.
42132         (main): Accept one more argument. Invoke fill_composition_exclusions.
42133         Output decomposition and composition tables.
42134
42135         New module 'uninorm/base'.
42136         * lib/uninorm.h: New file.
42137         * lib/unictype.h: Update comment.
42138         * modules/uninorm/base: New file.
42139
42140 2009-02-21  David Lutterkort  <lutter@redhat.com>
42141
42142         Tests for module 'safe-alloc'.
42143         * tests/test-safe-alloc.c: New file.
42144         * modules/safe-alloc-tests: New file.
42145
42146         New module 'safe-alloc'.
42147         * lib/safe-alloc.h: New file.
42148         * lib/safe-alloc.c: New file.
42149         * m4/safe-alloc.m4: New file.
42150         * modules/safe-alloc: New file.
42151         * doc/safe-alloc.texi: New file.
42152         * doc/gnulib.texi: Include it.
42153         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42154         safe-alloc.
42155
42156 2009-02-18  Bruno Haible  <bruno@clisp.org>
42157
42158         Fix link error on non-glibc systems.
42159         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42160         variable.
42161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42162
42163 2009-02-18  Jim Meyering  <meyering@redhat.com>
42164
42165         fts: avoid used-uninitialized error due to recent change
42166         * lib/fts.c (fts_read): Guard uses of the new member,
42167         parent->fts_n_dirs_remaining, since it's not relevant for
42168         the parent of a directory specified on the command-line.
42169
42170 2009-02-17  James Youngman  <jay@gnu.org>
42171             Bruno Haible  <bruno@clisp.org>
42172
42173         * m4/include_next.m4: Reformulate comment.
42174
42175 2009-02-16  Jim Meyering  <meyering@redhat.com>
42176
42177         fts: add #if guards so that the fts_lgpl module still builds
42178         * lib/fts.c: Guard just-added hash-table-using parts with
42179         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42180         Reported by Simon Josefsson.
42181
42182 2009-02-15  Bruno Haible  <bruno@clisp.org>
42183
42184         * modules/array-mergesort-tests: New file.
42185         * tests/test-array-mergesort.c: New file.
42186
42187         New module 'array-mergesort'.
42188         * modules/array-mergesort: New file.
42189         * lib/array-mergesort.h: New file.
42190
42191 2009-02-15  Bruno Haible  <bruno@clisp.org>
42192
42193         Fix 2009-02-07 commit.
42194         * lib/gen-uni-tables.c (output_predicate, output_category,
42195         output_combclass, output_bidi_category, output_decimal_digit,
42196         output_digit, output_numeric, output_mirror, output_scripts,
42197         output_ident_category, output_simple_mapping): Fix format directives.
42198         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42199
42200 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42201
42202         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42203         fixes are available from IBM.
42204
42205 2009-02-13  Jim Meyering  <meyering@redhat.com>
42206
42207         fts: arrange not to stat non-directories in more cases
42208         This makes GNU find (when it doesn't need to stat each file)
42209         *much* more efficient at traversing reiserfs file systems.
42210         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42211         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42212         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42213         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42214         (leaf_optimization_applies): New function.
42215         (LCO_hash, LCO_compare): New helper functions.
42216         (link_count_optimize_ok): New function.
42217         (fts_stat): Initialize new member (if dir).
42218         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42219         we've just stat'ed a directory.  Skip the stat call when possible.
42220         ---
42221         Note this AFS-related exchange:
42222         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42223         and note find's pioctl call in find/fstype.c.
42224         But that is necessary only if you want to enable the
42225         optimization for AFS, and for now, I don't.
42226
42227         fts: move a function definition "up" (no semantic change)
42228         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42229         "up" to precede upcoming use of a related function.
42230
42231 2009-02-11  Jim Meyering  <meyering@redhat.com>
42232
42233         fts: correct internal computation of nlinks (optimization-related)
42234         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42235         whether the current entry is a directory, so don't test it.
42236
42237 2009-02-10  Bruno Haible  <bruno@clisp.org>
42238
42239         Tests for module 'uniwbrk/ulc-wordbreaks'.
42240         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42241         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42242         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42243
42244         Tests for module 'uniwbrk/u32-wordbreaks'.
42245         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42246         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42247
42248         Tests for module 'uniwbrk/u16-wordbreaks'.
42249         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42250         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42251
42252         Tests for module 'uniwbrk/u8-wordbreaks'.
42253         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42254         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42255
42256 2009-02-10  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42259         property.
42260         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42261         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42262         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42263
42264 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42265
42266         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42267         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42268
42269 2009-02-10  Bruno Haible  <bruno@clisp.org>
42270
42271         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42272         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42273         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42274         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42275         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42276         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42277
42278 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42279
42280         * lib/sockets.h (gl_fd_to_handle): New function.
42281
42282         * tests/test-sockets.c: Call gl_fd_to_handle.
42283
42284 2009-02-09  Bruno Haible  <bruno@clisp.org>
42285
42286         * doc/havelib.texi: Document the conventions on bi-arch systems.
42287
42288 2009-02-08  Bruno Haible  <bruno@clisp.org>
42289
42290         Document the AC_LIB_LINKFLAGS macro.
42291         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42292         * doc/gnulib.texi: Include it.
42293
42294 2009-02-08  Bruno Haible  <bruno@clisp.org>
42295
42296         Fix wrong order of sections, compared to TOC.
42297         * doc/gnulib.texi: Include relocatable-maint.texi after the
42298         "Regular expressions" node, not before.
42299
42300 2009-02-08  Bruno Haible  <bruno@clisp.org>
42301
42302         Tests for module 'unicase/totitle'.
42303         * modules/unicase/totitle-tests: New file.
42304
42305         Tests for module 'unicase/tolower'.
42306         * modules/unicase/tolower-tests: New file.
42307
42308         Tests for module 'unicase/toupper'.
42309         * modules/unicase/toupper-tests: New file.
42310         * tests/unicase/test-mapping-part1.h: New file.
42311         * tests/unicase/test-mapping-part2.h: New file.
42312
42313         New module 'unicase/totitle'.
42314         * modules/unicase/totitle: New file.
42315         * lib/unicase/totitle.c: New file.
42316
42317         New module 'unicase/tolower'.
42318         * modules/unicase/tolower: New file.
42319         * lib/unicase/tolower.c: New file.
42320
42321         New module 'unicase/toupper'.
42322         * modules/unicase/toupper: New file.
42323         * lib/unicase/toupper.c: New file.
42324         * lib/unicase/simple-mapping.h: New file.
42325
42326         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42327         (mapping_table): New structure.
42328         (output_simple_mapping): New function.
42329         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42330         * modules/gen-uni-tables (Description): Update.
42331         * lib/unicase/toupper.h: New file, automatically generated by
42332         gen-uni-tables.
42333         * lib/unicase/tolower.h: New file, automatically generated by
42334         gen-uni-tables.
42335         * lib/unicase/totitle.h: New file, automatically generated by
42336         gen-uni-tables.
42337         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42338         gen-uni-tables.
42339         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42340         gen-uni-tables.
42341         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42342         gen-uni-tables.
42343
42344         New module 'unicase/base'.
42345         * modules/unicase/base: New file.
42346         * lib/unicase.h: New file.
42347
42348 2009-02-08  Bruno Haible  <bruno@clisp.org>
42349
42350         New module 'uniwbrk/ulc-wordbreaks'.
42351         * modules/uniwbrk/ulc-wordbreaks: New file.
42352         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42353
42354         New module 'uniwbrk/u32-wordbreaks'.
42355         * modules/uniwbrk/u32-wordbreaks: New file.
42356         * lib/uniwbrk/u32-wordbreaks.c: New file.
42357
42358         New module 'uniwbrk/u16-wordbreaks'.
42359         * modules/uniwbrk/u16-wordbreaks: New file.
42360         * lib/uniwbrk/u16-wordbreaks.c: New file.
42361
42362         New module 'uniwbrk/u8-wordbreaks'.
42363         * modules/uniwbrk/u8-wordbreaks: New file.
42364         * lib/uniwbrk/u8-wordbreaks.c: New file.
42365         * lib/uniwbrk/u-wordbreaks.h: New file.
42366
42367         New module 'uniwbrk/table'.
42368         * modules/uniwbrk/table: New file.
42369         * lib/uniwbrk/wbrktable.h: New file.
42370         * lib/uniwbrk/wbrktable.c: New file.
42371
42372         New module 'uniwbrk/wordbreak-property'.
42373         * modules/uniwbrk/wordbreak-property: New file.
42374         * lib/uniwbrk/wordbreak-property.c: New file.
42375
42376         * lib/gen-uni-tables.c (WBP_*): New enum items.
42377         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42378         (unicode_org_wbp): New variable.
42379         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42380         New functions.
42381         (wbp_table): New structure.
42382         (output_wbp, output_wbrk_tables): New functions.
42383         (main): Accept additional argument. Invoke fill_org_wbp,
42384         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42385         output_wbrk_tables.
42386         * modules/gen-uni-tables (Description): Update.
42387         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42388         gen-uni-tables.
42389
42390         New module 'uniwbrk/base'.
42391         * modules/uniwbrk/base: New file.
42392         * lib/uniwbrk.h: New file.
42393
42394 2009-02-08  Bruno Haible  <bruno@clisp.org>
42395
42396         Update to Unicode 5.1.0.
42397         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42398         U+2185..U+2188.
42399         (is_property_default_ignorable_code_point): Don't include characters
42400         of category Cc or Cs and not-a-characters.
42401         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42402         U+0D79, U+109E, U+109F, U+A60C.
42403         * lib/unictype/bidi_of.h: Regenerated.
42404         * lib/unictype/blocks.h: Regenerated.
42405         * lib/unictype/categ_C.h: Regenerated.
42406         * lib/unictype/categ_Cf.h: Regenerated.
42407         * lib/unictype/categ_Cn.h: Regenerated.
42408         * lib/unictype/categ_L.h: Regenerated.
42409         * lib/unictype/categ_Ll.h: Regenerated.
42410         * lib/unictype/categ_Lm.h: Regenerated.
42411         * lib/unictype/categ_Lo.h: Regenerated.
42412         * lib/unictype/categ_Lu.h: Regenerated.
42413         * lib/unictype/categ_M.h: Regenerated.
42414         * lib/unictype/categ_Mc.h: Regenerated.
42415         * lib/unictype/categ_Me.h: Regenerated.
42416         * lib/unictype/categ_Mn.h: Regenerated.
42417         * lib/unictype/categ_N.h: Regenerated.
42418         * lib/unictype/categ_Nd.h: Regenerated.
42419         * lib/unictype/categ_Nl.h: Regenerated.
42420         * lib/unictype/categ_No.h: Regenerated.
42421         * lib/unictype/categ_P.h: Regenerated.
42422         * lib/unictype/categ_Pd.h: Regenerated.
42423         * lib/unictype/categ_Pe.h: Regenerated.
42424         * lib/unictype/categ_Pf.h: Regenerated.
42425         * lib/unictype/categ_Pi.h: Regenerated.
42426         * lib/unictype/categ_Po.h: Regenerated.
42427         * lib/unictype/categ_Ps.h: Regenerated.
42428         * lib/unictype/categ_S.h: Regenerated.
42429         * lib/unictype/categ_Sk.h: Regenerated.
42430         * lib/unictype/categ_Sm.h: Regenerated.
42431         * lib/unictype/categ_So.h: Regenerated.
42432         * lib/unictype/categ_of.h: Regenerated.
42433         * lib/unictype/combining.h: Regenerated.
42434         * lib/unictype/ctype_alnum.h: Regenerated.
42435         * lib/unictype/ctype_alpha.h: Regenerated.
42436         * lib/unictype/ctype_graph.h: Regenerated.
42437         * lib/unictype/ctype_lower.h: Regenerated.
42438         * lib/unictype/ctype_print.h: Regenerated.
42439         * lib/unictype/ctype_punct.h: Regenerated.
42440         * lib/unictype/ctype_upper.h: Regenerated.
42441         * lib/unictype/decdigit.h: Regenerated.
42442         * lib/unictype/digit.h: Regenerated.
42443         * lib/unictype/mirror.h: Regenerated.
42444         * lib/unictype/numeric.h: Regenerated.
42445         * lib/unictype/pr_alphabetic.h: Regenerated.
42446         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42447         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42448         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42449         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42450         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42451         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42452         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42453         * lib/unictype/pr_combining.h: Regenerated.
42454         * lib/unictype/pr_dash.h: Regenerated.
42455         * lib/unictype/pr_decimal_digit.h: Regenerated.
42456         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42457         * lib/unictype/pr_deprecated.h: Regenerated.
42458         * lib/unictype/pr_diacritic.h: Regenerated.
42459         * lib/unictype/pr_extender.h: Regenerated.
42460         * lib/unictype/pr_format_control.h: Regenerated.
42461         * lib/unictype/pr_grapheme_base.h: Regenerated.
42462         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42463         * lib/unictype/pr_grapheme_link.h: Regenerated.
42464         * lib/unictype/pr_id_continue.h: Regenerated.
42465         * lib/unictype/pr_id_start.h: Regenerated.
42466         * lib/unictype/pr_ideographic.h: Regenerated.
42467         * lib/unictype/pr_ignorable_control.h: Regenerated.
42468         * lib/unictype/pr_lowercase.h: Regenerated.
42469         * lib/unictype/pr_math.h: Regenerated.
42470         * lib/unictype/pr_numeric.h: Regenerated.
42471         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42472         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42473         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42474         * lib/unictype/pr_other_id_continue.h: Regenerated.
42475         * lib/unictype/pr_other_lowercase.h: Regenerated.
42476         * lib/unictype/pr_other_math.h: Regenerated.
42477         * lib/unictype/pr_punctuation.h: Regenerated.
42478         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42479         * lib/unictype/pr_soft_dotted.h: Regenerated.
42480         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42481         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42482         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42483         * lib/unictype/pr_uppercase.h: Regenerated.
42484         * lib/unictype/pr_xid_continue.h: Regenerated.
42485         * lib/unictype/pr_xid_start.h: Regenerated.
42486         * lib/unictype/pr_zero_width.h: Regenerated.
42487         * lib/unictype/scripts.h: Regenerated.
42488         * lib/unictype/scripts_byname.gperf: Regenerated.
42489         * lib/unictype/sy_java_ident.h: Regenerated.
42490         * lib/unilbrk/lbrkprop1.h: Regenerated.
42491         * lib/unilbrk/lbrkprop2.h: Regenerated.
42492         * tests/unictype/test-categ_C.c: Regenerated.
42493         * tests/unictype/test-categ_Cf.c: Regenerated.
42494         * tests/unictype/test-categ_Cn.c: Regenerated.
42495         * tests/unictype/test-categ_L.c: Regenerated.
42496         * tests/unictype/test-categ_Ll.c: Regenerated.
42497         * tests/unictype/test-categ_Lm.c: Regenerated.
42498         * tests/unictype/test-categ_Lo.c: Regenerated.
42499         * tests/unictype/test-categ_Lu.c: Regenerated.
42500         * tests/unictype/test-categ_M.c: Regenerated.
42501         * tests/unictype/test-categ_Mc.c: Regenerated.
42502         * tests/unictype/test-categ_Me.c: Regenerated.
42503         * tests/unictype/test-categ_Mn.c: Regenerated.
42504         * tests/unictype/test-categ_N.c: Regenerated.
42505         * tests/unictype/test-categ_Nd.c: Regenerated.
42506         * tests/unictype/test-categ_Nl.c: Regenerated.
42507         * tests/unictype/test-categ_No.c: Regenerated.
42508         * tests/unictype/test-categ_P.c: Regenerated.
42509         * tests/unictype/test-categ_Pd.c: Regenerated.
42510         * tests/unictype/test-categ_Pe.c: Regenerated.
42511         * tests/unictype/test-categ_Pf.c: Regenerated.
42512         * tests/unictype/test-categ_Pi.c: Regenerated.
42513         * tests/unictype/test-categ_Po.c: Regenerated.
42514         * tests/unictype/test-categ_Ps.c: Regenerated.
42515         * tests/unictype/test-categ_S.c: Regenerated.
42516         * tests/unictype/test-categ_Sk.c: Regenerated.
42517         * tests/unictype/test-categ_Sm.c: Regenerated.
42518         * tests/unictype/test-categ_So.c: Regenerated.
42519         * tests/unictype/test-ctype_alnum.c: Regenerated.
42520         * tests/unictype/test-ctype_alpha.c: Regenerated.
42521         * tests/unictype/test-ctype_graph.c: Regenerated.
42522         * tests/unictype/test-ctype_lower.c: Regenerated.
42523         * tests/unictype/test-ctype_print.c: Regenerated.
42524         * tests/unictype/test-ctype_punct.c: Regenerated.
42525         * tests/unictype/test-ctype_upper.c: Regenerated.
42526         * tests/unictype/test-decdigit.h: Regenerated.
42527         * tests/unictype/test-digit.h: Regenerated.
42528         * tests/unictype/test-numeric.h: Regenerated.
42529         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42530         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42531         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42532         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42533         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42534         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42535         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42536         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42537         * tests/unictype/test-pr_combining.c: Regenerated.
42538         * tests/unictype/test-pr_dash.c: Regenerated.
42539         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42540         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42541         * tests/unictype/test-pr_deprecated.c: Regenerated.
42542         * tests/unictype/test-pr_diacritic.c: Regenerated.
42543         * tests/unictype/test-pr_extender.c: Regenerated.
42544         * tests/unictype/test-pr_format_control.c: Regenerated.
42545         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42546         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42547         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42548         * tests/unictype/test-pr_id_continue.c: Regenerated.
42549         * tests/unictype/test-pr_id_start.c: Regenerated.
42550         * tests/unictype/test-pr_ideographic.c: Regenerated.
42551         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42552         * tests/unictype/test-pr_lowercase.c: Regenerated.
42553         * tests/unictype/test-pr_math.c: Regenerated.
42554         * tests/unictype/test-pr_numeric.c: Regenerated.
42555         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42556         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42557         Regenerated.
42558         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42559         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42560         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42561         * tests/unictype/test-pr_other_math.c: Regenerated.
42562         * tests/unictype/test-pr_punctuation.c: Regenerated.
42563         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42564         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42565         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42566         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42567         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42568         * tests/unictype/test-pr_uppercase.c: Regenerated.
42569         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42570         * tests/unictype/test-pr_xid_start.c: Regenerated.
42571         * tests/unictype/test-pr_zero_width.c: Regenerated.
42572
42573         Update to Unicode 5.1.0.
42574         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42575         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42576         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42577         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42578         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42579         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42580         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42581         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42582         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42583         (nonspacing_table_ind): Update.
42584         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42585
42586         Update to Unicode 5.1.0.
42587         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42588         code transform.
42589         * lib/uniname/uniname.c (unicode_character_name,
42590         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42591         * lib/uniname/uninames.h: Regenerated.
42592         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42593
42594 2009-02-07  Bruno Haible  <bruno@clisp.org>
42595
42596         Merge gen-ctype and gen-lbrk into a single program.
42597         * lib/gen-uni-tables.c: New file, incorporating
42598         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42599         Add directory prefixes to the names of the generated files.
42600         * lib/unictype/gen-ctype.c: Remove file.
42601         * lib/unilbrk/gen-lbrk.c: Remove file.
42602         * modules/gen-uni-tables: New file.
42603         * modules/unictype/gen-ctype: Remove file.
42604         * modules/unilbrk/gen-lbrk: Remove file.
42605
42606 2009-02-07  Bruno Haible  <bruno@clisp.org>
42607
42608         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42609
42610         New module 'unistr/u32-strcoll'.
42611         * modules/unistr/u32-strcoll: New file.
42612         * lib/unistr/u32-strcoll.c: New file.
42613
42614         New module 'unistr/u16-strcoll'.
42615         * modules/unistr/u16-strcoll: New file.
42616         * lib/unistr/u16-strcoll.c: New file.
42617
42618         New module 'unistr/u8-strcoll'.
42619         * modules/unistr/u8-strcoll: New file.
42620         * lib/unistr/u8-strcoll.c: New file.
42621         * lib/unistr/u-strcoll.h: New file.
42622
42623 2009-02-07  Bruno Haible  <bruno@clisp.org>
42624
42625         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42626         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42627         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42628         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42629         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42630         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42631
42632 2009-02-07  Bruno Haible  <bruno@clisp.org>
42633
42634         Make 64-bit clean.
42635         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42636         output_combclass, output_bidi_category, output_decimal_digit,
42637         output_digit, output_numeric, output_mirror, output_scripts,
42638         output_ident_category): Use proper width specifier in format strings.
42639
42640 2009-02-07  Bruno Haible  <bruno@clisp.org>
42641
42642         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42643         failure behaviour.
42644
42645 2009-02-07  Jim Meyering  <meyering@redhat.com>
42646
42647         regex: avoid compilation failure with upcoming gcc-4.4
42648         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42649         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42650         "... error: integer overflow in preprocessor expression".
42651
42652 2009-02-05  Ben Pfaff  <blp@gnu.org>
42653
42654         Fix link errors on Windows when close module is used.
42655         * modules/close: Add $(LIB_CLOSE) to Link section.
42656         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42657         $(LIB_CLOSE) on Windows.
42658
42659 2009-02-05  Jim Meyering  <meyering@redhat.com>
42660
42661         still avoid unused-parameter warnings, but do it cleanly
42662         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42663         (get_fs_usage): Cast to void instead.
42664         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42665         (dev_from_mount_options, read_file_system_list): Cast to void.
42666         Prompted by Bruno Haible.
42667
42668 2009-02-04  Jim Meyering  <meyering@redhat.com>
42669
42670         fsusage.c: correct copyright year
42671         * lib/fsusage.c: Reflect year in which the change is pushed into
42672
42673         avoid misc. warnings
42674         * lib/fsusage.c (UNUSED_PARAM): Define.
42675         (get_fs_usage): Mark parameter "disk" as unused.
42676         * lib/getugroups.c (getgrent): Use "void" in prototype.
42677         * lib/mountlist.c: Mark unused parameters.
42678         (read_file_system_list): Declare a local with "const".
42679         * lib/nanosleep.c (getnow): Declare static.
42680         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42681
42682         dirfd: set errno upon failure
42683         * lib/dirfd.c: Include <errno.h>.
42684         Set errno to ENOTSUP when returning -1.
42685         * modules/dirfd (Depends-on): Add errno.
42686         Suggested by John Kodis <kodis@comcast.net>.
42687
42688 2009-02-01  Bruno Haible  <bruno@clisp.org>
42689
42690         Don't assume sizeof (long) >= sizeof (void *).
42691         * lib/memcmp.c: Include stdint.h.
42692         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42693         srcp2 to 'const byte *'.
42694         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42695         types to uintptr_t.
42696         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42697         * modules/memcmp (Depends-on): Add stdint.
42698         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42699
42700 2009-01-30  Eric Blake  <ebb9@byu.net>
42701
42702         fix more require-before-expand issues
42703         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42704         expand, AC_PROG_AWK.
42705         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42706
42707 2009-01-28  Eric Blake  <ebb9@byu.net>
42708
42709         version-etc: use consistent URL formatting
42710         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42711         Improve formatting.  Use fputs for string without %.
42712
42713 2009-01-28  Jim Meyering  <meyering@redhat.com>
42714
42715         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42716         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42717         "underquoted definition of NAME" from autoconf-2.59.
42718
42719 2009-01-28  Bruno Haible  <bruno@clisp.org>
42720
42721         * doc/gnulib.texi: Add "Obsolete modules" to index.
42722
42723 2009-01-28  Jim Meyering  <meyering@redhat.com>
42724
42725         useless-if-before-free: recognize more variants
42726         * build-aux/useless-if-before-free: Also recognize e.g.,
42727         if (NULL != p) free (p);
42728
42729 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42730
42731         test-getaddrinfo: skip (don't fail) this test when there's no network
42732         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42733         on the presumption that it means you lack network access.
42734
42735 2009-01-26  Jim Meyering  <meyering@redhat.com>
42736
42737         fflush: avoid warnings on modern systems
42738         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42739         pos and result, into scopes where they're used.
42740
42741 2009-01-26  Eric Blake  <ebb9@byu.net>
42742
42743         Silence warning reintroduced by recent extensions patch.
42744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42745         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42746         autoconf.
42747
42748         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42749         * m4/00gnulib.m4: New file.
42750         * gnulib-tool (func_get_filelist): Always use it.
42751         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42752         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42753
42754 2009-01-25  Bruno Haible  <bruno@clisp.org>
42755
42756         Make test-quotearg work on MacOS X and AIX.
42757         * tests/test-quotearg.sh: New file.
42758         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42759         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42760         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42761         include <libintl.h>.
42762         (fake_locale): Remove variable.
42763         (gettext, dgettext, dcgettext): Remove functions.
42764         (main): Instead of setting a fake locale, set a real locale. Call
42765         textdomain and bindtextdomain.
42766         * modules/quotearg-tests (Files): Add the new files.
42767         (Depends-on): Add gettext, setenv, unsetenv.
42768         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42769         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42770         Augment TESTS_ENVIRONMENT.
42771
42772 2009-01-25  Bruno Haible  <bruno@clisp.org>
42773
42774         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42775         fr_FR.ISO8859-1 locale on MacOS X.
42776         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42777         ja_JP.eucJP locale on MacOS X.
42778         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42779         zh_CN.GB18030 locale on MacOS X.
42780
42781 2009-01-25  Bruno Haible  <bruno@clisp.org>
42782
42783         Avoid link errors on MacOS X 10.3.
42784         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42785         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42786
42787 2009-01-25  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42790         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42791         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42792         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42793         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42794         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42795         posix_spawnattr_init, posix_spawnattr_setsigmask,
42796         posix_spawnattr_setflags, posix_spawnattr_destroy.
42797
42798         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42799         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42800         * modules/execute (Files): Remove m4/posix_spawn.m4.
42801         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42802         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42803         posix_spawnattr_init, posix_spawnattr_setsigmask,
42804         posix_spawnattr_setflags, posix_spawnattr_destroy.
42805
42806 2009-01-25  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/glthread/threadlib.c: Include <stdlib.h>.
42809
42810 2009-01-25  Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/glthread/threadlib.c (dummy): New declaration.
42813
42814 2009-01-25  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42817         multibyte characters also for the GB18030 encoding. Don't crash when
42818         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42819
42820 2009-01-25  Bruno Haible  <bruno@clisp.org>
42821
42822         Avoid redefining 'struct random_data' on OSF/1 5.1.
42823         * lib/stdlib.in.h: Include <random.h> if it exists.
42824         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42825         HAVE_RANDOM_H. Include <random.h> when testing whether
42826         'struct random_data' exists.
42827         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42828
42829 2009-01-25  Bruno Haible  <bruno@clisp.org>
42830
42831         Don't install charset.alias on MacOS X >= 10.3.
42832         * lib/localcharset.c (DARWIN7): New macro.
42833         (get_charset_aliases): Hardcode the result for Darwin7.
42834         * modules/localcharset (install-exec-local): Don't install
42835         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42836
42837 2009-01-25  Bruno Haible  <bruno@clisp.org>
42838
42839         Don't install charset.alias on mingw and Cygwin.
42840         * modules/localcharset (install-exec-local): Don't install
42841         charset.alias on mingw and Cygwin, if the file does not yet exist.
42842         The result for these platforms is hardcoded in localcharset.c.
42843
42844 2009-01-25  Bruno Haible  <bruno@clisp.org>
42845
42846         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42848         before requiring AC_USE_SYSTEM_EXTENSIONS.
42849
42850 2009-01-25  Jim Meyering  <meyering@redhat.com>
42851
42852         c-strtod: avoid warnings
42853         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42854         "assignment discards qualifiers from pointer target type" warnings.
42855
42856 2009-01-24  Bruno Haible  <bruno@clisp.org>
42857
42858         Add support for non-UTF-8 locales on MacOS X.
42859         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42860         canonical encodings. For Darwin 7 and newer, don't map traditional
42861         encodings to UTF-8.
42862         Reported by Vincent Lefevre <vincent@vinc17.org>
42863         at <http://savannah.gnu.org/bugs/?25235>.
42864
42865 2009-01-24  Bruno Haible  <bruno@clisp.org>
42866
42867         * doc/gnulib.texi (Obsolete modules): New section.
42868         Reported by Mike Frysinger <vapier@gentoo.org>.
42869
42870 2009-01-24  Bruno Haible  <bruno@clisp.org>
42871
42872         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42873         (%.dvi): New rule.
42874
42875 2009-01-24  Bruno Haible  <bruno@clisp.org>
42876
42877         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42878         Reported by Eric Blake.
42879
42880 2009-01-24  Bruno Haible  <bruno@clisp.org>
42881
42882         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42883         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42884         Reported by Gary V. Vaughan <gary@gnu.org>.
42885
42886 2009-01-24  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42889
42890 2009-01-23  Bruno Haible  <bruno@clisp.org>
42891
42892         Make c-strtod, c-strtold usable in libraries.
42893         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42894         (C_STRTOD): Call strdup instead of xstrdup.
42895         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42896         * modules/c-strtold (Depends-on): Likewise.
42897         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42898         * NEWS: Mention the change.
42899         Reported by Michael Gold <mgold@ncf.ca>.
42900
42901 2009-01-23  Jim Meyering  <meyering@redhat.com>
42902
42903         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42904         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42905         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42906
42907 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42908
42909         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42910         GNU CoreUtils.
42911         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42912         * modules/version-etc (Description): Update.
42913
42914 2009-01-22  Bruno Haible  <bruno@clisp.org>
42915
42916         Cache the C locale object.
42917         * lib/c-strtod.c (c_locale_cache): New variable.
42918         (c_locale): New function.
42919         (C_STRTOD): Use it, and don't call freelocale.
42920         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42921         Suggested by Paolo Bonzini.
42922
42923 2009-01-21  Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42926         conditions other than overflow.
42927
42928 2009-01-21  Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/c-strtod.c: Include errno.h.
42931         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42932         value from STRTOD_L and STRTOD.
42933
42934 2009-01-21  Bruno Haible  <bruno@clisp.org>
42935         and Jim Meyering  <meyering@redhat.com>
42936
42937         nanosleep: skip configure test (fail it) for apple universal builds
42938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42939         universal builds, assume that nanosleep does not work.
42940         * modules/nanosleep (Depends-on): Add multiarch.
42941
42942         mktime: skip configure test (fail it) for apple universal builds
42943         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42944         universal builds, assume that mktime does not work.
42945         * modules/mktime (Depends-on): Add multiarch.
42946
42947 2009-01-21  Eric Blake  <ebb9@byu.net>
42948
42949         multiarch: avoid expand-before-require warning
42950         * modules/multiarch (configure.ac): Require, rather than expand,
42951         gl_MULTIARCH.
42952         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42953         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42954         enforce that all clients require it.  Partial reversion of
42955         2008-12-29 patch.
42956
42957         error: avoid expand-before-require warning
42958         * modules/errno (configure.ac): Require, rather than expand,
42959         gl_HEADER_ERRNO_H.
42960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42961         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42962         enforce that all clients require it.
42963
42964         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42965         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42966         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42967         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42968
42969 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42970
42971         Revert:
42972         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42973
42974         regex: do not depend on obsolete modules.
42975         * modules/regex: Remove memcmp and memmove.
42976
42977 2009-01-20  Bruno Haible  <bruno@clisp.org>
42978
42979         Make the 'link' module link on Windows NT 4.
42980         * lib/link.c (_WIN32_WINNT): Don't define.
42981         (CreateHardLinkFuncType): New type.
42982         (CreateHardLinkFunc, initialized): New variables.
42983         (initialize): New function.
42984         (link): Invoke CreateHardLink indirectly through the function pointer.
42985
42986 2009-01-20  Bruno Haible  <bruno@clisp.org>
42987
42988         Fix compilation failure on mingw.
42989         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42990
42991 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42992
42993         * doc/c-strtod.texi: Mention a couple of restrictions.
42994
42995 2009-01-20  Jim Meyering  <meyering@redhat.com>
42996
42997         gettimeofday: move more declarations out of functions
42998         * lib/gettimeofday.c: Move extern declarations of tzset and
42999         gmtime out of containing functions.  Prompted by Bruno Haible.
43000
43001 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43002
43003         regex: do not depend on obsolete modules.
43004         * modules/regex: Remove memcmp and memmove.
43005
43006 2009-01-19  Bruno Haible  <bruno@clisp.org>
43007
43008         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43009         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43010         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43011         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43012         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43013
43014 2009-01-19  Bruno Haible  <bruno@clisp.org>
43015
43016         * tests/test-link.c: Include <errno.h>.
43017         (main): Exit with code 77 when a hard link cannot be created due to
43018         the file system.
43019         * tests/test-link.sh: Skip test when a hard link cannot be created due
43020         to the file system.
43021         Suggested by Eric Blake.
43022
43023 2009-01-19  Martin Lambers  <marlam@marlam.de>
43024
43025         * modules/link-tests: New file.
43026         * tests/test-link.sh: New file.
43027         * tests/test-link.c: New file.
43028
43029 2009-01-19  Eric Blake  <ebb9@byu.net>
43030
43031         doc: mention another function added in cygwin 1.7.0
43032         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43033         Another new function in cygwin 1.7.
43034
43035 2009-01-19  Bruno Haible  <bruno@clisp.org>
43036
43037         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43038         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43039         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43040         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43041         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43042         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43044         * m4/md4.m4 (gl_MD4): Likewise.
43045         * m4/md5.m4 (gl_MD5): Likewise.
43046         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43047         * m4/sha1.m4 (gl_SHA1): Likewise.
43048         * m4/sha256.m4 (gl_SHA256): Likewise.
43049         * m4/sha512.m4 (gl_SHA512): Likewise.
43050
43051 2009-01-19  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/uniname/uniname-tests (Depends-on): Add progname.
43054         * tests/uniname/test-uninames.c: Include progname.h.
43055         (main): Call set_program_name.
43056
43057         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43058         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43059         (main): Call set_program_name.
43060
43061         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43062         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43063         (main): Call set_program_name.
43064
43065         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43066         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43067         (main): Call set_program_name.
43068
43069         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43070         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43071         (main): Call set_program_name.
43072
43073         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43074         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43075         (main): Call set_program_name.
43076
43077         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43078         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43079         (main): Call set_program_name.
43080
43081         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43082         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43083         (main): Call set_program_name.
43084
43085         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43086         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43087         (main): Call set_program_name.
43088
43089 2009-01-19  Eric Blake  <ebb9@byu.net>
43090
43091         test-unistd: test previous patch
43092         * tests/test-unistd.c: Test *_FILENO macros.
43093
43094         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43095         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43096         Guarantee a definition.
43097         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43098         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43099         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43100         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43101         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43102         Likewise.
43103         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43104         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43105         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43106         Likewise.
43107         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43108         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43109         (STDERR_FILENO): Likewise.
43110         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43111         (STDERR_FILENO): Likewise.
43112         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43113         (STDERR_FILENO): Likewise.
43114         Reported by Elbert Pol.
43115
43116 2009-01-19  Eric Blake  <ebb9@byu.net>
43117
43118         doc: mention more functions added in cygwin 1.7.0
43119         * doc/posix-functions/abort.texi (abort): Update wording related
43120         to cygwin.
43121         * doc/posix-functions/daylight.texi (daylight): Likewise.
43122         * doc/posix-functions/optarg.texi (optarg): Likewise.
43123         * doc/posix-functions/optarg.texi (opterr): Likewise.
43124         * doc/posix-functions/optarg.texi (optind): Likewise.
43125         * doc/posix-functions/optarg.texi (optopt): Likewise.
43126         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43127         worked in 1.5.x, and was withdrawn in 1.7.
43128         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43129         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43130         cygwin versions.
43131         * doc/posix-functions/perror.texi (perror): Likewise.
43132         * doc/posix-functions/printf.texi (printf): Likewise.
43133         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43134         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43135         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43136         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43137         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43138         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43139         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43140         Likewise.
43141         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43142         Likewise.
43143         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43144         this function.
43145         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43146         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43147         Likewise.
43148         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43149         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43150         * doc/posix-functions/confstr.texi (confstr): Likewise.
43151         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43152         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43153         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43154         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43155         * doc/posix-functions/fputws.texi (fputws): Likewise.
43156         * doc/posix-functions/fwide.texi (fwide): Likewise.
43157         * doc/posix-functions/getwc.texi (getwc): Likewise.
43158         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43159         * doc/posix-functions/putwc.texi (putwc): Likewise.
43160         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43161         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43162         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43163         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43164         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43165         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43166         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43167         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43168         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43169         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43170         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43171
43172 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43173
43174         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43175         * lib/ioctl.c: Include <sys/ioctl.h>.
43176
43177 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43178
43179         * modules/getdate-tests (Depends-on): Add progname.
43180         * tests/test-getdate.c: Use progname module, to avoid link errors
43181         on non-glibc systems.
43182
43183 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43184
43185         * modules/filenamecat-tests (Depends-on): Add progname.
43186         * modules/fstrcmp-tests (Depends-on): Likewise.
43187
43188         * tests/test-filenamecat.c: Use progname module, to avoid link
43189         errors on non-glibc systems.
43190         * tests/test-fstrcmp.c: Likewise.
43191
43192 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43193
43194         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43195         * lib/gettimeofday.c: Move extern declaration out of function.
43196
43197 2009-01-18  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43200         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43201         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43202
43203 2009-01-18  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/strftime.c (MEMPCPY): Remove unused macro.
43206         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43207
43208 2009-01-18  Martin Lambers  <marlam@marlam.de>
43209
43210         New module 'link'.
43211         * lib/unistd.in.h (link): New declaration.
43212         * lib/link.c: New file.
43213         * m4/link.m4: New file.
43214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43215         HAVE_LINK.
43216         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43217         * modules/link: New file.
43218         * doc/posix-functions/link.texi: Mention the new module.
43219
43220 2009-01-18  Bruno Haible  <bruno@clisp.org>
43221
43222         * tests/test-avltree_list.c (main): Call set_program_name.
43223         * tests/test-avltree_oset.c (main): Likewise.
43224         * tests/test-obstack-printf.c: Include progname.h.
43225         (main): Call set_program_name.
43226         * tests/test-quotearg.c: Include progname.h.
43227         (main): Call set_program_name.
43228         * tests/test-xmemdup0.c: Include progname.h.
43229         (main): Call set_program_name.
43230
43231 2009-01-18  Bruno Haible  <bruno@clisp.org>
43232
43233         New module 'alphasort'.
43234         * lib/dirent.in.h (alphasort): New declaration.
43235         * lib/alphasort.c: New file, from glibc with modifications.
43236         * m4/alphasort.m4: New file.
43237         * modules/alphasort: New file.
43238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43239         HAVE_ALPHASORT.
43240         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43241         HAVE_ALPHASORT.
43242         * doc/posix-functions/alphasort.texi: Mention the new module and the
43243         portability problems.
43244
43245 2009-01-18  Bruno Haible  <bruno@clisp.org>
43246
43247         New module 'scandir'.
43248         * lib/dirent.in.h (scandir): New declaration.
43249         * lib/scandir.c: New file, from glibc with modifications.
43250         * m4/scandir.m4: New file.
43251         * modules/scandir: New file.
43252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43253         HAVE_SCANDIR.
43254         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43255         HAVE_SCANDIR.
43256         * doc/posix-functions/scandir.texi: Mention the new module and the
43257         portability problems.
43258
43259 2009-01-17  Bruno Haible  <bruno@clisp.org>
43260
43261         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43262         Update documentation.
43263         (func_remove_suffix): Escape all dots in the suffix. Update
43264         documentation.
43265         (func_filter_filelist): Update documentation.
43266         Reported by Ralf Wildenhues.
43267
43268 2009-01-17  Bruno Haible  <bruno@clisp.org>
43269
43270         * modules/dprintf-posix-tests: New file.
43271         * tests/test-dprintf-posix.sh: New file.
43272         * tests/test-dprintf-posix.c: New file.
43273
43274         New modules 'dprintf', 'dprintf-posix'.
43275         * lib/stdio.in.h (dprintf): New declaration.
43276         * lib/dprintf.c: New file.
43277         * m4/dprintf.m4: New file.
43278         * m4/dprintf-posix.m4: New file.
43279         * modules/dprintf: New file.
43280         * modules/dprintf-posix: New file.
43281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43282         HAVE_DPRINTF, REPLACE_DPRINTF.
43283         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43284         HAVE_DPRINTF, REPLACE_DPRINTF.
43285         * doc/posix-functions/dprintf.texi: Mention the new modules.
43286
43287 2009-01-17  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/vdprintf-posix-tests: New file.
43290         * tests/test-vdprintf-posix.sh: New file.
43291         * tests/test-vdprintf-posix.c: New file.
43292
43293         New modules 'vdprintf', 'vdprintf-posix'.
43294         * lib/stdio.in.h (vdprintf): New declaration.
43295         * lib/vdprintf.c: New file.
43296         * m4/vdprintf.m4: New file.
43297         * m4/vdprintf-posix.m4: New file.
43298         * modules/vdprintf: New file.
43299         * modules/vdprintf-posix: New file.
43300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43301         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43302         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43303         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43304         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43305
43306 2009-01-17  Bruno Haible  <bruno@clisp.org>
43307
43308         Fix replacement of fopen on mingw.
43309         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43310         mingw.
43311
43312 2009-01-17  Bruno Haible  <bruno@clisp.org>
43313
43314         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43315         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43316
43317 2009-01-17  Bruno Haible  <bruno@clisp.org>
43318
43319         Avoid test-fflush2.sh failure on mingw.
43320         * tests/test-fflush2.c: Include binary-io.h.
43321         (main): Put standard input into binary mode.
43322         * modules/fflush-tests (Depends-on): Add binary-io.
43323
43324 2009-01-17  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/wchar.in.h: In another particular situation, include only the
43327         system's <wchar.h> file.
43328         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43329         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43330         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43331
43332 2009-01-17  Bruno Haible  <bruno@clisp.org>
43333
43334         Support for stripping executables in --enable-relocatable.
43335         * build-aux/install-reloc: Expect one more argument, or an environment
43336         variable RELOC_STRIP_PROG. If set, strip the destination program and
43337         its wrapper.
43338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43339         RELOC_STRIP_PROG.
43340         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43341         to set RELOCATABLE_STRIP.
43342         * NEWS: Mention the new Makefile requirement.
43343
43344 2009-01-17  Bruno Haible  <bruno@clisp.org>
43345
43346         * build-aux/install-reloc: Remove debugging information left over by
43347         C compiler on MacOS X.
43348
43349 2009-01-17  Bruno Haible  <bruno@clisp.org>
43350
43351         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43352         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43353         _NSGetExecutablePath.
43354
43355 2009-01-16  Jim Meyering  <meyering@redhat.com>
43356
43357         strerror: avoid warnings about discarding "const"
43358         * lib/strerror.c (rpl_strerror): Instead of returning a const
43359         string from each and every "case", use a variable, and add a single
43360         cast after the switch.
43361
43362 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43363
43364         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43365
43366 2009-01-16  Bruno Haible  <bruno@clisp.org>
43367
43368         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43369         array initializer syntax that also works in C++ mode.
43370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43371
43372 2009-01-16  Jim Meyering  <meyering@redhat.com>
43373
43374         poll: suppress a warning
43375         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43376         to ignore "...unsigned expression < 0 is always false" warnings.
43377
43378 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43379
43380         poll: remove declarations of unused variables
43381         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43382         sockbuf and optlen.
43383
43384 2009-01-15  Bruno Haible  <bruno@clisp.org>
43385
43386         Make fflush-after-ungetc POSIX compliant on BSD systems.
43387         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43388         (clear_ungetc_buffer): Implement also for other systems.
43389         (rpl_fflush): On glibc systems, invoke
43390         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43391         clear_ungetc_buffer after fetching the stream's position, not before.
43392
43393 2009-01-15  Bruno Haible  <bruno@clisp.org>
43394
43395         Make fflush-after-ungetc POSIX compliant on glibc systems.
43396         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43397         after ungetc.
43398         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43399         (rpl_fflush): On glibc systems, simply call the system's fflush
43400         function after clearing the ungetc buffer.
43401         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43402         Instead, lseek only to the end of file, then use the system's fseeko
43403         for the rest. On glibc systems, reset the EOF indicator bit.
43404
43405 2009-01-15  Jim Meyering  <meyering@redhat.com>
43406
43407         openmp.m4: revert quote-adding change, for portability to older autoconf
43408         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43409         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43410         Simon Josefsson noticed the problem when using autoconf-2.61.
43411
43412 2009-01-15  Bruno Haible  <bruno@clisp.org>
43413
43414         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43415         * tests/test-fflush2.c (ASSERT): Always fail.
43416         (main): Add two tests for fflush() after ungetc(), taking into account
43417         the Austin Group's clarification.
43418         Suggested by Eric Blake.
43419
43420 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43421
43422         mktime.m4: remove K&R-style function prototypes
43423         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43424         for the Sun C++ compiler.
43425
43426 2009-01-14  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43429         while including <wchar.h>.
43430         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43431         the system's <wchar.h> file.
43432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43433
43434 2009-01-14  Bruno Haible  <bruno@clisp.org>
43435
43436         * m4/csharp.m4: Don't mention gettext on the serial number line.
43437         * m4/csharpexec.m4: Likewise.
43438         * m4/eaccess.m4: Likewise.
43439         * m4/javaexec.m4: Likewise.
43440         * m4/sig_atomic_t.m4: Likewise.
43441         * m4/tmpdir.m4: Likewise.
43442         * m4/intldir.m4: Bump gettext version.
43443         * m4/lib-ld.m4: Likewise.
43444
43445 2009-01-14  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/progname.c (set_program_name): Add more comments.
43448         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43449
43450 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43451
43452         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43453         were sys/stat.h does not define it.
43454
43455 2009-01-14  Jim Meyering  <meyering@redhat.com>
43456
43457         many *.m4 files: improve m4 quoting
43458         99% of this change was performed by running the following commands:
43459         git ls-files | grep '\.m4$' | xargs perl -pi \
43460           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43461           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43462           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43463           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43464         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43465         The remainder were to add Copyright dates, increment serial numbers,
43466         undo some changes in comments, exclude m4/intl.m4, and add quotes
43467         around the "1" in ",1" where the unusual spacing prohibited the
43468         above regexps from doing the job.  For more details, see
43469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43470         * m4/acl.m4: Modified.
43471         * m4/afs.m4: Likewise.
43472         * m4/alloca.m4: Likewise.
43473         * m4/argp.m4: Likewise.
43474         * m4/argz.m4: Likewise.
43475         * m4/atexit.m4: Likewise.
43476         * m4/bison-i18n.m4: Likewise.
43477         * m4/bison.m4: Likewise.
43478         * m4/byteswap.m4: Likewise.
43479         * m4/c-stack.m4: Likewise.
43480         * m4/c-strtod.m4: Likewise.
43481         * m4/calloc.m4: Likewise.
43482         * m4/canonicalize-lgpl.m4: Likewise.
43483         * m4/chown.m4: Likewise.
43484         * m4/clock_time.m4: Likewise.
43485         * m4/codeset.m4: Likewise.
43486         * m4/copy-file.m4: Likewise.
43487         * m4/csharp.m4: Likewise.
43488         * m4/csharpcomp.m4: Likewise.
43489         * m4/csharpexec.m4: Likewise.
43490         * m4/d-ino.m4: Likewise.
43491         * m4/d-type.m4: Likewise.
43492         * m4/dirfd.m4: Likewise.
43493         * m4/double-slash-root.m4: Likewise.
43494         * m4/eaccess.m4: Likewise.
43495         * m4/eealloc.m4: Likewise.
43496         * m4/environ.m4: Likewise.
43497         * m4/errno_h.m4: Likewise.
43498         * m4/euidaccess.m4: Likewise.
43499         * m4/execute.m4: Likewise.
43500         * m4/fatal-signal.m4: Likewise.
43501         * m4/fchdir.m4: Likewise.
43502         * m4/fcntl_h.m4: Likewise.
43503         * m4/fileblocks.m4: Likewise.
43504         * m4/filenamecat.m4: Likewise.
43505         * m4/findprog.m4: Likewise.
43506         * m4/flexmember.m4: Likewise.
43507         * m4/fnmatch.m4: Likewise.
43508         * m4/fopen.m4: Likewise.
43509         * m4/fpending.m4: Likewise.
43510         * m4/fprintf-posix.m4: Likewise.
43511         * m4/free.m4: Likewise.
43512         * m4/frexp.m4: Likewise.
43513         * m4/frexpl.m4: Likewise.
43514         * m4/fsusage.m4: Likewise.
43515         * m4/ftruncate.m4: Likewise.
43516         * m4/gc-camellia.m4: Likewise.
43517         * m4/gc-random.m4: Likewise.
43518         * m4/gc.m4: Likewise.
43519         * m4/getaddrinfo.m4: Likewise.
43520         * m4/getcwd-abort-bug.m4: Likewise.
43521         * m4/getcwd-path-max.m4: Likewise.
43522         * m4/getdate.m4: Likewise.
43523         * m4/getdomainname.m4: Likewise.
43524         * m4/getgroups.m4: Likewise.
43525         * m4/gethostname.m4: Likewise.
43526         * m4/gethrxtime.m4: Likewise.
43527         * m4/getline.m4: Likewise.
43528         * m4/getloadavg.m4: Likewise.
43529         * m4/getndelim2.m4: Likewise.
43530         * m4/getpass.m4: Likewise.
43531         * m4/gettext.m4: Likewise.
43532         * m4/gettime.m4: Likewise.
43533         * m4/gettimeofday.m4: Likewise.
43534         * m4/gnulib-common.m4: Likewise.
43535         * m4/group-member.m4: Likewise.
43536         * m4/host-os.m4: Likewise.
43537         * m4/iconv.m4: Likewise.
43538         * m4/iconv_open.m4: Likewise.
43539         * m4/inet_ntop.m4: Likewise.
43540         * m4/inet_pton.m4: Likewise.
43541         * m4/inline.m4: Likewise.
43542         * m4/intldir.m4: Likewise.
43543         * m4/intlmacosx.m4: Likewise.
43544         * m4/intmax.m4: Likewise.
43545         * m4/intmax_t.m4: Likewise.
43546         * m4/inttypes.m4: Likewise.
43547         * m4/inttypes_h.m4: Likewise.
43548         * m4/inttypes-pri.m4: Likewise.
43549         * m4/isapipe.m4: Likewise.
43550         * m4/isnand.m4: Likewise.
43551         * m4/isnanf.m4: Likewise.
43552         * m4/isnanl.m4: Likewise.
43553         * m4/javacomp.m4: Likewise.
43554         * m4/javaexec.m4: Likewise.
43555         * m4/jm-winsz1.m4: Likewise.
43556         * m4/jm-winsz2.m4: Likewise.
43557         * m4/lchown.m4: Likewise.
43558         * m4/lcmessage.m4: Likewise.
43559         * m4/ldexpl.m4: Likewise.
43560         * m4/lib-ld.m4: Likewise.
43561         * m4/lib-link.m4: Likewise.
43562         * m4/libsigsegv.m4: Likewise.
43563         * m4/link-follow.m4: Likewise.
43564         * m4/localcharset.m4: Likewise.
43565         * m4/locale-fr.m4: Likewise.
43566         * m4/locale-ja.m4: Likewise.
43567         * m4/locale-tr.m4: Likewise.
43568         * m4/locale-zh.m4: Likewise.
43569         * m4/lock.m4: Likewise.
43570         * m4/longlong.m4: Likewise.
43571         * m4/ls-mntd-fs.m4: Likewise.
43572         * m4/lstat.m4: Likewise.
43573         * m4/malloc.m4: Likewise.
43574         * m4/mathl.m4: Likewise.
43575         * m4/mbrtowc.m4: Likewise.
43576         * m4/mbstate_t.m4: Likewise.
43577         * m4/mbswidth.m4: Likewise.
43578         * m4/memchr.m4: Likewise.
43579         * m4/memcmp.m4: Likewise.
43580         * m4/memcpy.m4: Likewise.
43581         * m4/memmem.m4: Likewise.
43582         * m4/memmove.m4: Likewise.
43583         * m4/mempcpy.m4: Likewise.
43584         * m4/memrchr.m4: Likewise.
43585         * m4/memset.m4: Likewise.
43586         * m4/minmax.m4: Likewise.
43587         * m4/mkdir-slash.m4: Likewise.
43588         * m4/mkdtemp.m4: Likewise.
43589         * m4/mktime.m4: Likewise.
43590         * m4/mmap-anon.m4: Likewise.
43591         * m4/mountlist.m4: Likewise.
43592         * m4/nanosleep.m4: Likewise.
43593         * m4/nls.m4: Likewise.
43594         * m4/nocrash.m4: Likewise.
43595         * m4/open.m4: Likewise.
43596         * m4/openat.m4: Likewise.
43597         * m4/openmp.m4: Likewise.
43598         * m4/pathmax.m4: Likewise.
43599         * m4/perl.m4: Likewise.
43600         * m4/physmem.m4: Likewise.
43601         * m4/pipe.m4: Likewise.
43602         * m4/po.m4: Likewise.
43603         * m4/poll.m4: Likewise.
43604         * m4/posixtm.m4: Likewise.
43605         * m4/posixver.m4: Likewise.
43606         * m4/printf-frexp.m4: Likewise.
43607         * m4/printf-frexpl.m4: Likewise.
43608         * m4/printf-posix.m4: Likewise.
43609         * m4/printf-posix-rpl.m4: Likewise.
43610         * m4/printf.m4: Likewise.
43611         * m4/progtest.m4: Likewise.
43612         * m4/putenv.m4: Likewise.
43613         * m4/readline.m4: Likewise.
43614         * m4/readlink.m4: Likewise.
43615         * m4/readutmp.m4: Likewise.
43616         * m4/realloc.m4: Likewise.
43617         * m4/regex.m4: Likewise.
43618         * m4/relocatable.m4: Likewise.
43619         * m4/relocatable-lib.m4: Likewise.
43620         * m4/rename-dest-slash.m4: Likewise.
43621         * m4/rename.m4: Likewise.
43622         * m4/rmdir-errno.m4: Likewise.
43623         * m4/rmdir.m4: Likewise.
43624         * m4/roundf.m4: Likewise.
43625         * m4/roundl.m4: Likewise.
43626         * m4/rpmatch.m4: Likewise.
43627         * m4/save-cwd.m4: Likewise.
43628         * m4/selinux-selinux-h.m4: Likewise.
43629         * m4/setenv.m4: Likewise.
43630         * m4/settime.m4: Likewise.
43631         * m4/sig2str.m4: Likewise.
43632         * m4/sig_atomic_t.m4: Likewise.
43633         * m4/signalblocking.m4: Likewise.
43634         * m4/signbit.m4: Likewise.
43635         * m4/sigpipe.m4: Likewise.
43636         * m4/sockets.m4: Likewise.
43637         * m4/sockpfaf.m4: Likewise.
43638         * m4/st_dm_mode.m4: Likewise.
43639         * m4/stat-time.m4: Likewise.
43640         * m4/stdbool.m4: Likewise.
43641         * m4/stdint.m4: Likewise.
43642         * m4/stdint_h.m4: Likewise.
43643         * m4/stpcpy.m4: Likewise.
43644         * m4/stpncpy.m4: Likewise.
43645         * m4/strcase.m4: Likewise.
43646         * m4/strchrnul.m4: Likewise.
43647         * m4/strcspn.m4: Likewise.
43648         * m4/strdup.m4: Likewise.
43649         * m4/strftime.m4: Likewise.
43650         * m4/strndup.m4: Likewise.
43651         * m4/strnlen.m4: Likewise.
43652         * m4/strpbrk.m4: Likewise.
43653         * m4/strptime.m4: Likewise.
43654         * m4/strsep.m4: Likewise.
43655         * m4/strtod.m4: Likewise.
43656         * m4/strtoimax.m4: Likewise.
43657         * m4/strtok_r.m4: Likewise.
43658         * m4/strtol.m4: Likewise.
43659         * m4/strtoll.m4: Likewise.
43660         * m4/strtoul.m4: Likewise.
43661         * m4/strtoull.m4: Likewise.
43662         * m4/strtoumax.m4: Likewise.
43663         * m4/strverscmp.m4: Likewise.
43664         * m4/threadlib.m4: Likewise.
43665         * m4/timegm.m4: Likewise.
43666         * m4/tm_gmtoff.m4: Likewise.
43667         * m4/tmpdir.m4: Likewise.
43668         * m4/tmpfile.m4: Likewise.
43669         * m4/tzset.m4: Likewise.
43670         * m4/uintmax_t.m4: Likewise.
43671         * m4/unlinkdir.m4: Likewise.
43672         * m4/unlocked-io.m4: Likewise.
43673         * m4/uptime.m4: Likewise.
43674         * m4/userspec.m4: Likewise.
43675         * m4/utimbuf.m4: Likewise.
43676         * m4/utime.m4: Likewise.
43677         * m4/utimes-null.m4: Likewise.
43678         * m4/utimes.m4: Likewise.
43679         * m4/vararrays.m4: Likewise.
43680         * m4/vasnprintf.m4: Likewise.
43681         * m4/vfprintf-posix.m4: Likewise.
43682         * m4/vprintf-posix.m4: Likewise.
43683         * m4/wait-process.m4: Likewise.
43684         * m4/wchar_t.m4: Likewise.
43685         * m4/wint_t.m4: Likewise.
43686         * m4/write-any-file.m4: Likewise.
43687         * m4/yield.m4: Likewise.
43688
43689 2009-01-13  Bruno Haible  <bruno@clisp.org>
43690
43691         Avoid test-copy-file.sh failures when ACL support insufficient.
43692         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43693         TESTS_ENVIRONMENT.
43694         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43695         Reported by Jim Meyering.
43696
43697 2009-01-13  Bruno Haible  <bruno@clisp.org>
43698
43699         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43700         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43701         * modules/unistdio/u8-printf-parse (Files): Likewise.
43702         * modules/unistdio/u32-printf-parse (Files): Likewise.
43703         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43704
43705 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43706
43707         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43708         and m4/inttypes_h.m4 too.
43709
43710 2009-01-12  Eric Blake  <ebb9@byu.net>
43711
43712         tests: IRIX 6.2 cc can't compile -0.0 into .data
43713         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43714         rather than at compile-time.
43715         * tests/test-floorl.c (minus_zero): Likewise.
43716         * tests/test-frexpl.c (minus_zero): Likewise.
43717         * tests/test-isnan.c (minus_zerol): Likewise.
43718         * tests/test-isnanl.h (minus_zero): Likewise.
43719         * tests/test-ldexpl.c (minus_zero): Likewise.
43720         * tests/test-roundl.c (minus_zero): Likewise.
43721         * tests/test-signbit.c (minus_zerol): Likewise.
43722         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43723         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43724         * tests/test-truncl.c (minus_zero): Likewise.
43725         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43726         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43727         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43728
43729 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43730
43731         regex: fix glibc bug 9697
43732         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43733         handling.
43734
43735 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43736
43737         regex: fix glibc bug 697
43738         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43739         being NULL also if there are no backreferences.
43740
43741 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43742
43743         regex: merge glibc changes
43744         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43745         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43746         re_string_skip_chars, re_string_reconstruct): Likewise.
43747         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43748
43749 2009-01-07  Jim Meyering  <meyering@redhat.com>
43750
43751         poll: filter through cppi
43752         * lib/poll.c: Indent cpp directives to reflect nesting.
43753
43754 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43755
43756         poll: don't return uninitialized
43757         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43758
43759 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43760
43761         avoid compile failure on AIX 6.1
43762         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43763         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43764
43765 2009-01-04  Jim Meyering  <meyering@redhat.com>
43766
43767         remove duplicate inclusion of <stdio.h>
43768         * tests/test-fprintf-posix.c: Likewise.
43769         * tests/test-printf-posix.c: Likewise.
43770         * tests/test-snprintf-posix.c: Likewise.
43771         * tests/test-sprintf-posix.c: Likewise.
43772         * tests/test-vasprintf-posix.c: Likewise.
43773         * tests/test-vfprintf-posix.c: Likewise.
43774         * tests/test-vprintf-posix.c: Likewise.
43775         * tests/test-vsnprintf-posix.c: Likewise.
43776         * tests/test-vsprintf-posix.c: Likewise.
43777
43778 2009-01-03  Jim Meyering  <meyering@redhat.com>
43779
43780         gnulib-tool: fix sed-based filtering
43781         * gnulib-tool (func_filter_filelist): Remove extra backslash
43782         in sed_fff_filter definition.
43783
43784 2009-01-02  Jim Meyering  <meyering@redhat.com>
43785
43786         strftime: avoid compilation failure on Solaris 2.6
43787         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43788         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43789         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43790         be available.  Reported by Tom G. Christensen.  Details in
43791         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43792
43793 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43794             Bruno Haible  <bruno@clisp.org>
43795
43796         Speed up gnulib-tool by doing more string processing through shell
43797         built-ins.
43798         * gnulib-tool (fast_func_append): New variable.
43799         (func_remove_prefix, func_remove_suffix): New functions.
43800         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43801         (func_filter_filelist): New function.
43802         (func_get_dependencies): Use func_remove_suffix instead of sed.
43803         (func_get_automake_snippet): Use func_filter_filelist instead of a
43804         subshell and sed invocation.
43805
43806 2009-01-01  Bruno Haible  <bruno@clisp.org>
43807
43808         Fix a security bug.
43809         * gnulib-tool (func_import, import, update): Don't allow the characters
43810         '"', '$', '`', '\' in macro arguments that become part of commands that
43811         are evaluated.
43812
43813 2009-01-01  Bruno Haible  <bruno@clisp.org>
43814
43815         * gnulib-tool (func_reset_sigpipe): Add more comments.
43816
43817 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43818
43819         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43820         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43821         already know the answer.
43822
43823 2009-01-01  Jim Meyering  <meyering@redhat.com>
43824
43825         * lib/version-etc.c (version_etc_va): Update copyright year.
43826
43827 2008-12-30  Bruno Haible  <bruno@clisp.org>
43828
43829         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43830         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43831         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43832
43833 2008-12-29  Eric Blake  <ebb9@byu.net>
43834
43835         multiarch: avoid autoconf AC_REQUIRE bug
43836         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43837         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43838         2.63 and older.
43839         Reported by Bruno Haible, and analyzed in
43840         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43841
43842 2008-12-29  Bruno Haible  <bruno@clisp.org>
43843
43844         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43845         files in subdirectories correctly.
43846         Reported by Ralf Wildenhues.
43847
43848 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43849
43850         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43851         rather than 'join FILE -', for Solaris join.
43852
43853 2008-12-29  Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43856         quoting.
43857         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43858         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43859         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43860         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43861         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43862         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43863         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43864         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43865         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43866         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43867         * m4/nls.m4 (AM_NLS): Likewise.
43868         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43869         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43870         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43871         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43872         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43873         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43874         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43875         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43876         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43877         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43878         * m4/xsize.m4 (gl_XSIZE): Likewise.
43879         Suggested by Jim Meyering.
43880
43881 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43882
43883         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43884         * lib/parse-duration.c: use a switch instead of cascading if's.
43885
43886 2008-12-29  Eric Blake  <ebb9@byu.net>
43887
43888         wchar.h: supply WEOF on Irix 5.3
43889         * lib/wchar.in.h (wint_t): Also supply WEOF.
43890         * lib/wctype.in.h (wint_t): Likewise.
43891         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43892         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43893         Reported by Tom G. Christensen.
43894
43895 2008-12-26  Bruno Haible  <bruno@clisp.org>
43896
43897         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43898         i486, i586, i686.
43899
43900 2008-12-26  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43903
43904 2008-12-26  Bruno Haible  <bruno@clisp.org>
43905
43906         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43907         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43908         not __STDC_CONSTANT_MACROS.
43909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43910
43911 2008-12-25  Bruno Haible  <bruno@clisp.org>
43912
43913         Add support for universal builds to vasnprintf.
43914         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43915         universal builds, guess no.
43916         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43917         * modules/vasprintf-posix (Depends-on): Likewise.
43918         * modules/fprintf-posix (Depends-on): Likewise.
43919         * modules/vfprintf-posix (Depends-on): Likewise.
43920         * modules/snprintf-posix (Depends-on): Likewise.
43921         * modules/vsnprintf-posix (Depends-on): Likewise.
43922         * modules/sprintf-posix (Depends-on): Likewise.
43923         * modules/vsprintf-posix (Depends-on): Likewise.
43924         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43931
43932         Add support for universal builds to <inttypes.h>.
43933         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43934         _SCNu64_PREFIX): In Apple
43935         universal builds, define directly, using _LP64.
43936         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43937         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43938         * modules/inttypes (Depends-on): Add multiarch.
43939         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43940
43941         Add support for universal builds to <stdint.h>.
43942         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43943         universal builds, define directly, using _LP64.
43944         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43945         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43946         and size_t.
43947         * modules/stdint (Depends-on): Add multiarch.
43948         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43949
43950         New module 'multiarch'.
43951         * modules/multiarch: New file.
43952         * m4/multiarch.m4: New file.
43953
43954 2008-12-25  Bruno Haible  <bruno@clisp.org>
43955
43956         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43957
43958 2008-12-25  Bruno Haible  <bruno@clisp.org>
43959
43960         * modules/btowc (License): Relicense under LGPLv2+.
43961         * modules/mbsinit (License): Likewise.
43962         * modules/mbrtowc (License): Likewise.
43963         * modules/wcrtomb (License): Likewise.
43964         * modules/streq (License): Likewise.
43965         Reported by David Lutterkort <lutter@redhat.com>.
43966
43967 2008-12-23  Bruno Haible  <bruno@clisp.org>
43968
43969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43970
43971 2008-12-23  Bruno Haible  <bruno@clisp.org>
43972
43973         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43975         GETADDRINFO_LIB, not in LIBS.
43976         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43977         * modules/canon-host (Link): Likewise.
43978         * NEWS: Mention the change.
43979         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43980         GETADDRINFO_LIB.
43981
43982 2008-12-22  Bruno Haible  <bruno@clisp.org>
43983
43984         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43985         * doc/posix-functions/iswalpha_l.texi: Likewise.
43986         * doc/posix-functions/iswblank_l.texi: Likewise.
43987         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43988         * doc/posix-functions/iswctype_l.texi: Likewise.
43989         * doc/posix-functions/iswdigit_l.texi: Likewise.
43990         * doc/posix-functions/iswgraph_l.texi: Likewise.
43991         * doc/posix-functions/iswlower_l.texi: Likewise.
43992         * doc/posix-functions/iswprint_l.texi: Likewise.
43993         * doc/posix-functions/iswpunct_l.texi: Likewise.
43994         * doc/posix-functions/iswspace_l.texi: Likewise.
43995         * doc/posix-functions/iswupper_l.texi: Likewise.
43996         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43997         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43998         * doc/posix-functions/open_wmemstream.texi: Likewise.
43999         * doc/posix-functions/swscanf.texi: Likewise.
44000         * doc/posix-functions/towctrans_l.texi: Likewise.
44001         * doc/posix-functions/towlower.texi: Likewise.
44002         * doc/posix-functions/towlower_l.texi: Likewise.
44003         * doc/posix-functions/towupper.texi: Likewise.
44004         * doc/posix-functions/towupper_l.texi: Likewise.
44005         * doc/posix-functions/vfwprintf.texi: Likewise.
44006         * doc/posix-functions/vfwscanf.texi: Likewise.
44007         * doc/posix-functions/vswscanf.texi: Likewise.
44008         * doc/posix-functions/vwprintf.texi: Likewise.
44009         * doc/posix-functions/vwscanf.texi: Likewise.
44010         * doc/posix-functions/wcpcpy.texi: Likewise.
44011         * doc/posix-functions/wcpncpy.texi: Likewise.
44012         * doc/posix-functions/wcscasecmp.texi: Likewise.
44013         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44014         * doc/posix-functions/wcscoll_l.texi: Likewise.
44015         * doc/posix-functions/wcsdup.texi: Likewise.
44016         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44017         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44018         * doc/posix-functions/wcsnlen.texi: Likewise.
44019         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44020         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44021         * doc/posix-functions/wctrans_l.texi: Likewise.
44022         * doc/posix-functions/wctype_l.texi: Likewise.
44023         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44024         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44025         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44026         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44027         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44028         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44029         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44030         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44031         * doc/glibc-functions/wcschrnul.texi: Likewise.
44032         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44033         * doc/glibc-functions/wcstod_l.texi: Likewise.
44034         * doc/glibc-functions/wcstof_l.texi: Likewise.
44035         * doc/glibc-functions/wcstol_l.texi: Likewise.
44036         * doc/glibc-functions/wcstold_l.texi: Likewise.
44037         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44038         * doc/glibc-functions/wcstoq.texi: Likewise.
44039         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44040         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44041         * doc/glibc-functions/wcstouq.texi: Likewise.
44042         * doc/glibc-functions/wmempcpy.texi: Likewise.
44043
44044 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44045             Eric Blake  <ebb9@byu.net>
44046             Paolo Bonzini  <bonzini@gnu.org>
44047             Bruno Haible  <bruno@clisp.org>
44048
44049         Make c-stack work on Haiku.
44050         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44051         (c_stack_action): Use SA_ONSTACK flag.
44052
44053 2008-12-22  Bruno Haible  <bruno@clisp.org>
44054
44055         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44056
44057 2008-12-22  Bruno Haible  <bruno@clisp.org>
44058
44059         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44060         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44061         being overridden.
44062         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44063         New macros.
44064         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44066         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44067         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44068
44069 2008-12-22  Bruno Haible  <bruno@clisp.org>
44070
44071         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44072         from test code.
44073
44074 2008-12-22  Eric Blake  <ebb9@byu.net>
44075
44076         Avoid gcc warnings on cygwin.
44077         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44078         Avoid unused variable.
44079         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44080         Likewise.
44081
44082 2008-12-22  Bruno Haible  <bruno@clisp.org>
44083
44084         Remove HAVE_MBRTOWC conditionals.
44085         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44086         (mbscasecmp): Assume mbrtowc function.
44087         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44088         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44089         * lib/mbschr.c: Include mbuiter.h unconditionally.
44090         (mbschr): Assume mbrtowc function.
44091         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44092         (mbscspn): Assume mbrtowc function.
44093         * lib/mbslen.c: Include mbuiter.h unconditionally.
44094         (mbslen): Assume mbrtowc function.
44095         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44096         (mbsncasecmp): Assume mbrtowc function.
44097         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44098         (mbsnlen): Assume mbrtowc function.
44099         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44100         (mbspbrk): Assume mbrtowc function.
44101         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44102         (mbspcasecmp): Assume mbrtowc function.
44103         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44104         (mbsrchr): Assume mbrtowc function.
44105         * lib/mbssep.c: Include mbuiter.h unconditionally.
44106         (mbssep): Assume mbrtowc function.
44107         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44108         (mbsspn): Assume mbrtowc function.
44109         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44110         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44111         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44112         (mbstok_r): Assume mbrtowc function.
44113         * lib/propername.c: Include mbuiter.h unconditionally.
44114         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44115         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44116         (trim2): Assume mbrtowc function.
44117         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44118         (mbsnwidth): Assume mbrtowc function.
44119         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44120         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44121         fallback definitions.
44122         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44123
44124 2008-12-22  Bruno Haible  <bruno@clisp.org>
44125
44126         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44127
44128 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44129
44130         * modules/regex: Request emulations for the mb*/wc* functions we need.
44131         * m4/regex.m4: Don't look for those functions here.
44132         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44133
44134 2008-12-22  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44137
44138 2008-12-21  Bruno Haible  <bruno@clisp.org>
44139
44140         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44141         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44142         (Include): Remove conditionalization.
44143         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44144         (Include): Remove conditionalization.
44145         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44146         (Include): Remove conditionalization.
44147         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44148         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44149         * NEWS: Mention the change.
44150         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44151         via Sergey Poznyakoff <gray@gnu.org.ua>.
44152
44153 2008-12-21  Bruno Haible  <bruno@clisp.org>
44154
44155         * MODULES.html.sh (Extended multibyte and wide character utilities
44156         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44157         wcrtomb, wcsrtombs.
44158         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44159         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44160         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44161         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44162
44163 2008-12-21  Bruno Haible  <bruno@clisp.org>
44164
44165         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44166
44167 2008-12-21  Bruno Haible  <bruno@clisp.org>
44168
44169         * modules/wcsnrtombs-tests: New file.
44170         * tests/test-wcsnrtombs1.sh: New file.
44171         * tests/test-wcsnrtombs2.sh: New file.
44172         * tests/test-wcsnrtombs3.sh: New file.
44173         * tests/test-wcsnrtombs4.sh: New file.
44174         * tests/test-wcsnrtombs.c: New file.
44175
44176         New module 'wcsnrtombs'.
44177         * lib/wchar.in.h (wcsnrtombs): New declaration.
44178         * lib/wcsnrtombs.c: New file.
44179         * lib/wcsrtombs-state.c: New file.
44180         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44181         (internal_state): Remove variable.
44182         * m4/wcsnrtombs.m4: New file.
44183         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44184         compilation units.
44185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44186         HAVE_WCSNRTOMBS.
44187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44188         HAVE_WCSNRTOMBS.
44189         * modules/wcsnrtombs: New file.
44190         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44191         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44192
44193 2008-12-21  Bruno Haible  <bruno@clisp.org>
44194
44195         * modules/wcsrtombs-tests: New file.
44196         * tests/test-wcsrtombs1.sh: New file.
44197         * tests/test-wcsrtombs2.sh: New file.
44198         * tests/test-wcsrtombs3.sh: New file.
44199         * tests/test-wcsrtombs4.sh: New file.
44200         * tests/test-wcsrtombs.c: New file.
44201
44202         New module 'wcsrtombs'.
44203         * lib/wchar.in.h (wcsrtombs): New declaration.
44204         * lib/wcsrtombs.c: New file.
44205         * m4/wcsrtombs.m4: New file.
44206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44207         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44209         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44210         * modules/wcsrtombs: New file.
44211         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44212         bugs.
44213
44214 2008-12-21  Bruno Haible  <bruno@clisp.org>
44215
44216         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44217         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44218         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44219         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44220         if not correct.
44221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44222         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44223         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44224         m4/locale-zh.m4, m4/codeset.m4.
44225         * doc/posix-functions/wcrtomb.texi: Document the bug.
44226
44227 2008-12-21  Bruno Haible  <bruno@clisp.org>
44228
44229         Work around a btowc() bug on IRIX 6.5.
44230         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44231         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44232         REPLACE_WTOBC if not.
44233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44234         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44235         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44236
44237 2008-12-21  Bruno Haible  <bruno@clisp.org>
44238
44239         * modules/wcrtomb-tests: New file.
44240         * tests/test-wcrtomb.sh: New file.
44241         * tests/test-wcrtomb.c: New file.
44242
44243         New module 'wcrtomb'.
44244         * lib/wchar.in.h (wcrtomb): New declaration.
44245         * lib/wcrtomb.c: New file.
44246         * m4/wcrtomb.m4: New file.
44247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44248         HAVE_WCRTOMB.
44249         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44250         HAVE_WCRTOMB.
44251         * modules/wcrtomb: New file.
44252         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44253
44254 2008-12-21  Bruno Haible  <bruno@clisp.org>
44255
44256         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44257         * modules/mbsrtowcs (Files): Likewise.
44258         * modules/wctob (Files): Likewise.
44259         * modules/c-strcase-tests (Files): Likewise.
44260         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44261         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44262         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44263         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44264         * modules/vasnprintf-posix-tests (Files): Likewise.
44265
44266 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44267
44268         gitlog-to-changelog: pass all command-line arguments to git-log
44269         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44270         it is sometimes convenient to filter the commits in various ways.
44271         gitlog-to-changelog only allows --since to specify a start date,
44272         but git-log itself supports many other filtering mechanisms.
44273         At the moment, I want to filter by branch name.  Rather than
44274         adding a --branch option to gitlog-to-changelog, it seems more
44275         flexible to simply pass all options directly to git-log and let
44276         git do the work.  Notice that this effectively makes --since a
44277         redundant option for gitlog-to-changelog, but removing it would
44278         require current usage to change since calls would then require
44279         an additional '--'.
44280
44281 2008-12-21  Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/mbsnrtowcs-tests: New file.
44284         * tests/test-mbsnrtowcs1.sh: New file.
44285         * tests/test-mbsnrtowcs2.sh: New file.
44286         * tests/test-mbsnrtowcs3.sh: New file.
44287         * tests/test-mbsnrtowcs4.sh: New file.
44288         * tests/test-mbsnrtowcs.c: New file.
44289
44290         New module 'mbsnrtowcs'.
44291         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44292         * lib/mbsnrtowcs.c: New file.
44293         * lib/mbsrtowcs-state.c: New file.
44294         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44295         (internal_state): Remove variable.
44296         * m4/mbsnrtowcs.m4: New file.
44297         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44298         compilation units.
44299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44300         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44301         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44302         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44303         * modules/mbsnrtowcs: New file.
44304         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44305         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44306         portability problem.
44307
44308 2008-12-21  Bruno Haible  <bruno@clisp.org>
44309
44310         Work around mbsrtowcs bug.
44311         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44312         (gl_FUNC_MBSRTOWCS): Invoke it.
44313         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44314         m4/locale-zh.m4.
44315         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44316
44317 2008-12-21  Bruno Haible  <bruno@clisp.org>
44318
44319         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44320
44321 2008-12-21  Bruno Haible  <bruno@clisp.org>
44322
44323         Update doc for AIX.
44324         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44325         16-bit wchar_t type.
44326         * doc/posix-functions/btowc.texi: Likewise.
44327         * doc/posix-functions/fgetwc.texi: Likewise.
44328         * doc/posix-functions/fgetws.texi: Likewise.
44329         * doc/posix-functions/fputwc.texi: Likewise.
44330         * doc/posix-functions/fputws.texi: Likewise.
44331         * doc/posix-functions/fwide.texi: Likewise.
44332         * doc/posix-functions/fwprintf.texi: Likewise.
44333         * doc/posix-functions/fwscanf.texi: Likewise.
44334         * doc/posix-functions/getwchar.texi: Likewise.
44335         * doc/posix-functions/getwc.texi: Likewise.
44336         * doc/posix-functions/iswalnum.texi: Likewise.
44337         * doc/posix-functions/iswalpha.texi: Likewise.
44338         * doc/posix-functions/iswblank.texi: Likewise.
44339         * doc/posix-functions/iswcntrl.texi: Likewise.
44340         * doc/posix-functions/iswctype.texi: Likewise.
44341         * doc/posix-functions/iswdigit.texi: Likewise.
44342         * doc/posix-functions/iswgraph.texi: Likewise.
44343         * doc/posix-functions/iswlower.texi: Likewise.
44344         * doc/posix-functions/iswprint.texi: Likewise.
44345         * doc/posix-functions/iswpunct.texi: Likewise.
44346         * doc/posix-functions/iswspace.texi: Likewise.
44347         * doc/posix-functions/iswupper.texi: Likewise.
44348         * doc/posix-functions/iswxdigit.texi: Likewise.
44349         * doc/posix-functions/mbrtowc.texi: Likewise.
44350         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44351         * doc/posix-functions/mbstowcs.texi: Likewise.
44352         * doc/posix-functions/mbtowc.texi: Likewise.
44353         * doc/posix-functions/putwchar.texi: Likewise.
44354         * doc/posix-functions/putwc.texi: Likewise.
44355         * doc/posix-functions/swprintf.texi: Likewise.
44356         * doc/posix-functions/tolower.texi: Likewise.
44357         * doc/posix-functions/toupper.texi: Likewise.
44358         * doc/posix-functions/towctrans.texi: Likewise.
44359         * doc/posix-functions/ungetwc.texi: Likewise.
44360         * doc/posix-functions/vswprintf.texi: Likewise.
44361         * doc/posix-functions/wcrtomb.texi: Likewise.
44362         * doc/posix-functions/wcscat.texi: Likewise.
44363         * doc/posix-functions/wcschr.texi: Likewise.
44364         * doc/posix-functions/wcscmp.texi: Likewise.
44365         * doc/posix-functions/wcscoll.texi: Likewise.
44366         * doc/posix-functions/wcscpy.texi: Likewise.
44367         * doc/posix-functions/wcscspn.texi: Likewise.
44368         * doc/posix-functions/wcsftime.texi: Likewise.
44369         * doc/posix-functions/wcslen.texi: Likewise.
44370         * doc/posix-functions/wcsncat.texi: Likewise.
44371         * doc/posix-functions/wcsncmp.texi: Likewise.
44372         * doc/posix-functions/wcsncpy.texi: Likewise.
44373         * doc/posix-functions/wcspbrk.texi: Likewise.
44374         * doc/posix-functions/wcsrchr.texi: Likewise.
44375         * doc/posix-functions/wcsrtombs.texi: Likewise.
44376         * doc/posix-functions/wcsspn.texi: Likewise.
44377         * doc/posix-functions/wcsstr.texi: Likewise.
44378         * doc/posix-functions/wcstod.texi: Likewise.
44379         * doc/posix-functions/wcstof.texi: Likewise.
44380         * doc/posix-functions/wcstoimax.texi: Likewise.
44381         * doc/posix-functions/wcstok.texi: Likewise.
44382         * doc/posix-functions/wcstold.texi: Likewise.
44383         * doc/posix-functions/wcstoll.texi: Likewise.
44384         * doc/posix-functions/wcstol.texi: Likewise.
44385         * doc/posix-functions/wcstombs.texi: Likewise.
44386         * doc/posix-functions/wcstoull.texi: Likewise.
44387         * doc/posix-functions/wcstoul.texi: Likewise.
44388         * doc/posix-functions/wcstoumax.texi: Likewise.
44389         * doc/posix-functions/wcswidth.texi: Likewise.
44390         * doc/posix-functions/wcsxfrm.texi: Likewise.
44391         * doc/posix-functions/wctob.texi: Likewise.
44392         * doc/posix-functions/wctomb.texi: Likewise.
44393         * doc/posix-functions/wctrans.texi: Likewise.
44394         * doc/posix-functions/wctype.texi: Likewise.
44395         * doc/posix-functions/wcwidth.texi: Likewise.
44396         * doc/posix-functions/wmemchr.texi: Likewise.
44397         * doc/posix-functions/wmemcmp.texi: Likewise.
44398         * doc/posix-functions/wmemcpy.texi: Likewise.
44399         * doc/posix-functions/wmemmove.texi: Likewise.
44400         * doc/posix-functions/wmemset.texi: Likewise.
44401         * doc/posix-functions/wprintf.texi: Likewise.
44402         * doc/posix-functions/wscanf.texi: Likewise.
44403
44404 2008-12-21  Bruno Haible  <bruno@clisp.org>
44405
44406         Update doc for HP-UX 11.11.
44407         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44408         in HP-UX version 11.00, not in all versions of HP-UX 11.
44409         * doc/posix-functions/fwide.texi: Likewise.
44410         * doc/posix-functions/fwprintf.texi: Likewise.
44411         * doc/posix-functions/fwscanf.texi: Likewise.
44412         * doc/posix-functions/inet_ntop.texi: Likewise.
44413         * doc/posix-functions/inet_pton.texi: Likewise.
44414         * doc/posix-functions/mbrlen.texi: Likewise.
44415         * doc/posix-functions/mbrtowc.texi: Likewise.
44416         * doc/posix-functions/mbsinit.texi: Likewise.
44417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44418         * doc/posix-functions/swprintf.texi: Likewise.
44419         * doc/posix-functions/swscanf.texi: Likewise.
44420         * doc/posix-functions/towctrans.texi: Likewise.
44421         * doc/posix-functions/vfwprintf.texi: Likewise.
44422         * doc/posix-functions/vswprintf.texi: Likewise.
44423         * doc/posix-functions/vwprintf.texi: Likewise.
44424         * doc/posix-functions/wcrtomb.texi: Likewise.
44425         * doc/posix-functions/wcsrtombs.texi: Likewise.
44426         * doc/posix-functions/wcsstr.texi: Likewise.
44427         * doc/posix-functions/wctob.texi: Likewise.
44428         * doc/posix-functions/wctrans.texi: Likewise.
44429         * doc/posix-functions/wmemchr.texi: Likewise.
44430         * doc/posix-functions/wmemcmp.texi: Likewise.
44431         * doc/posix-functions/wmemcpy.texi: Likewise.
44432         * doc/posix-functions/wmemmove.texi: Likewise.
44433         * doc/posix-functions/wmemset.texi: Likewise.
44434         * doc/posix-functions/wprintf.texi: Likewise.
44435         * doc/posix-functions/wscanf.texi: Likewise.
44436
44437 2008-12-21  Bruno Haible  <bruno@clisp.org>
44438
44439         Work around a portability problem.
44440         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44441         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44442
44443 2008-12-20  Bruno Haible  <bruno@clisp.org>
44444
44445         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44446         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44447         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44449         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44450
44451         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44452         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44453         set.
44454         (GNULIB_defined_mbstate_t): New macro.
44455         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44456         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44457         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44458         reuses the system's mbrtowc function but works around the bugs.
44459         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44460         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44461         macros.
44462         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44463         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44464         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44465         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44466         REPLACE_MBSINIT if mbsinit needs to be overridden.
44467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44468         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44469         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44470         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44471         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44472         m4/locale-zh.m4.
44473         (Depends): Add mbsinit.
44474         * modules/mbsinit (Depends): Add mbrtowc.
44475         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44476
44477 2008-12-20  Bruno Haible  <bruno@clisp.org>
44478
44479         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44480         so that there are no conversion errors on AIX.
44481         * tests/test-mbsrtowcs.c (main): LIkewise.
44482
44483 2008-12-20  Bruno Haible  <bruno@clisp.org>
44484
44485         Work around wctob bug on Solaris <= 9.
44486         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44487         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44489         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44490         * modules/wctob (Files): Add m4/locale-fr.m4.
44491         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44492
44493 2008-12-20  Bruno Haible  <bruno@clisp.org>
44494
44495         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44496         /dev/null.
44497         * tests/test-select-in.sh: Likewise.
44498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44499
44500 2008-12-20  Bruno Haible  <bruno@clisp.org>
44501
44502         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44503         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44504         Cygwin 1.5.x.
44505
44506 2008-12-20  Bruno Haible  <bruno@clisp.org>
44507
44508         Ensure mbstate_t is defined on HP-UX 11.11.
44509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44510         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44511         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44512         AC_USE_SYSTEM_EXTENSIONS.
44513         * modules/fnmatch (Depends-on): Add extensions.
44514         * modules/mbrlen (Depends-on): Likewise.
44515         * modules/mbrtowc (Depends-on): Likewise.
44516         * modules/mbsinit (Depends-on): Likewise.
44517         * modules/mbsrtowcs (Depends-on): Likewise.
44518         * modules/mbswidth (Depends-on): Likewise.
44519         * modules/quotearg (Depends-on): Likewise.
44520         * modules/strftime (Depends-on): Likewise.
44521
44522 2008-12-20  Bruno Haible  <bruno@clisp.org>
44523
44524         Ensure wctob is declared on IRIX 6.5.
44525         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44526         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44527         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44529         of HAVE_WCTOB.
44530         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44531         HAVE_WCTOB.
44532         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44533
44534 2008-12-19  Bruno Haible  <bruno@clisp.org>
44535
44536         * modules/mbsrtowcs-tests: New file.
44537         * tests/test-mbsrtowcs1.sh: New file.
44538         * tests/test-mbsrtowcs2.sh: New file.
44539         * tests/test-mbsrtowcs3.sh: New file.
44540         * tests/test-mbsrtowcs4.sh: New file.
44541         * tests/test-mbsrtowcs.c: New file.
44542
44543         New module 'mbsrtowcs'.
44544         * lib/wchar.in.h (mbsrtowcs): New declaration.
44545         * lib/mbsrtowcs.c: New file.
44546         * m4/mbsrtowcs.m4: New file.
44547         * modules/mbsrtowcs: New file.
44548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44549         HAVE_MBSRTOWCS.
44550         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44551         HAVE_MBSRTOWCS.
44552         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44553
44554 2008-12-19  Bruno Haible  <bruno@clisp.org>
44555
44556         New module 'mbrlen'.
44557         * lib/wchar.in.h (mbrlen): New declaration.
44558         * lib/mbrlen.c: New file.
44559         * m4/mbrlen.m4: New file.
44560         * modules/mbrlen: New file.
44561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44562         HAVE_MBRLEN.
44563         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44564         HAVE_MBRLEN.
44565         * doc/posix-functions/mbrlen.texi: Document the new module.
44566
44567 2008-12-19  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44570         * modules/mbrtowc (Depends-on): Add verify.
44571         Suggested by Paul Eggert.
44572
44573 2008-12-18  Bruno Haible  <bruno@clisp.org>
44574
44575         * modules/mbsinit-tests: New file.
44576         * tests/test-mbsinit.sh: New file.
44577         * tests/test-mbsinit.c: New file.
44578
44579 2008-12-18  Bruno Haible  <bruno@clisp.org>
44580
44581         * modules/mbrtowc-tests: New file.
44582         * tests/test-mbrtowc1.sh: New file.
44583         * tests/test-mbrtowc2.sh: New file.
44584         * tests/test-mbrtowc3.sh: New file.
44585         * tests/test-mbrtowc4.sh: New file.
44586         * tests/test-mbrtowc.c: New file.
44587
44588         New module 'mbrtowc'.
44589         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44590         mbsinit and mbrtowc.
44591         (mbrtowc): New declaration.
44592         * lib/mbrtowc.c: New file.
44593         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44594         * modules/mbrtowc: New file.
44595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44596         HAVE_MBRTOWC.
44597         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44598         HAVE_MBRTOWC.
44599         * doc/posix-functions/mbrtowc.texi: Document the new module.
44600
44601 2008-12-18  Bruno Haible  <bruno@clisp.org>
44602
44603         New module 'wctob'.
44604         * lib/wchar.in.h (wctob): New declaration.
44605         * lib/wctob.c: New file.
44606         * m4/wctob.m4: New file.
44607         * modules/wctob: New file.
44608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44609         HAVE_WCTOB.
44610         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44611         * doc/posix-functions/wctob.texi: Document the new module.
44612
44613 2008-12-18  Bruno Haible  <bruno@clisp.org>
44614
44615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44616         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44617
44618 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44619
44620         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44621         G. Christensen" <tgc@jupiterrise.com>.
44622
44623         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44624         G. Christensen" <tgc@jupiterrise.com>.
44625
44626         * lib/flock.c: Need to include string.h.  Reported by "Tom
44627         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44628         <ebb9@byu.net>.
44629
44630 2008-12-18  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/locale-ja.m4: New file, from GNU gettext.
44633
44634 2008-12-17  Bruno Haible  <bruno@clisp.org>
44635
44636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44637         Suggested by Eric Blake.
44638
44639 2008-12-17  Bruno Haible  <bruno@clisp.org>
44640
44641         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44642
44643 2008-12-17  Bruno Haible  <bruno@clisp.org>
44644
44645         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44646         * modules/mbsinit (Depends-on): Add verify.
44647         Suggested by Paul Eggert.
44648
44649 2008-12-17  Bruno Haible  <bruno@clisp.org>
44650
44651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44652         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44653         gl_FUNC_MBRTOWC.
44654         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44655         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44656         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44657         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44658         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44659         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44660         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44661         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44662         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44663         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44664         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44665         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44666         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44667         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44668         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44669         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44670         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44671         * modules/trim (configure.ac): Likewise.
44672
44673 2008-12-17  Bruno Haible  <bruno@clisp.org>
44674
44675         * modules/btowc-tests: New file.
44676         * tests/test-btowc1.sh: New file.
44677         * tests/test-btowc2.sh: New file.
44678         * tests/test-btowc.c: New file.
44679
44680         New module 'btowc'.
44681         * lib/wchar.in.h (btowc): New declaration.
44682         * lib/btowc.c: New file.
44683         * m4/btowc.m4: New file.
44684         * modules/btowc: New file.
44685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44686         HAVE_BTOWC.
44687         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44688         * doc/posix-functions/btowc.texi: Document the new module.
44689
44690 2008-12-17  Bruno Haible  <bruno@clisp.org>
44691
44692         New module 'mbsinit'.
44693         * lib/wchar.in.h (mbsinit): New declaration.
44694         * lib/mbsinit.c: New file.
44695         * m4/mbsinit.m4: New file.
44696         * modules/mbsinit: New file.
44697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44698         HAVE_MBSINIT.
44699         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44700         HAVE_MBSINIT.
44701         * doc/posix-functions/mbsinit.texi: Document the new module.
44702
44703 2008-12-16  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/unistd.in.h: Add comment.
44706         * tests/test-environ.c: Don't include <stdlib.h>.
44707
44708 2008-12-16  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/parse-duration.h (parse_duration): Document return value
44711         convention.
44712         * lib/parse-duration.c: Include specification header first. Add
44713         comments.
44714         (_): Remove macro.
44715         (parse_year_month_day, parse_hour_minute_second): Move side effects
44716         outside of strchr call.
44717         (parse_non_iso8601): Move side effects outside of isspace call.
44718         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44719         call.
44720
44721 2008-12-16  Bruno Haible  <bruno@clisp.org>
44722
44723         * tests/test-parse-duration.sh: Produce no output when the test
44724         succeeds.
44725
44726 2008-12-16  Bruno Haible  <bruno@clisp.org>
44727
44728         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44729         expressions.
44730
44731 2008-12-15  Bruno Haible  <bruno@clisp.org>
44732
44733         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44734         * doc/glibc-functions/flistxattr.texi: Likewise.
44735         * doc/glibc-functions/fopencookie.texi: Likewise.
44736         * doc/glibc-functions/fremovexattr.texi: Likewise.
44737         * doc/glibc-functions/fsetxattr.texi: Likewise.
44738         * doc/glibc-functions/getxattr.texi: Likewise.
44739         * doc/glibc-functions/lgetxattr.texi: Likewise.
44740         * doc/glibc-functions/listxattr.texi: Likewise.
44741         * doc/glibc-functions/llistxattr.texi: Likewise.
44742         * doc/glibc-functions/lremovexattr.texi: Likewise.
44743         * doc/glibc-functions/lsetxattr.texi: Likewise.
44744         * doc/glibc-functions/removexattr.texi: Likewise.
44745         * doc/glibc-functions/setxattr.texi: Likewise.
44746         * doc/posix-functions/open_memstream.texi: Likewise.
44747
44748 2008-12-15  Eric Blake  <ebb9@byu.net>
44749
44750         Update doc for cygwin 1.7.
44751         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44752         functions.
44753         * doc/posix-functions/fchmodat.texi: Likewise.
44754         * doc/posix-functions/fchownat.texi: Likewise.
44755         * doc/posix-functions/fdopendir.texi: Likewise.
44756         * doc/posix-functions/fmemopen.texi: Likewise.
44757         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44758         * doc/posix-functions/fstatat.texi: Likewise.
44759         * doc/posix-functions/futimens.texi: Likewise.
44760         * doc/posix-functions/gai_strerror.texi: Likewise.
44761         * doc/posix-functions/getaddrinfo.texi: Likewise.
44762         * doc/posix-functions/getnameinfo.texi: Likewise.
44763         * doc/posix-functions/if_freenameindex.texi: Likewise.
44764         * doc/posix-functions/if_indextoname.texi: Likewise.
44765         * doc/posix-functions/if_nameindex.texi: Likewise.
44766         * doc/posix-functions/if_nametoindex.texi: Likewise.
44767         * doc/posix-functions/insque.texi: Likewise.
44768         * doc/posix-functions/linkat.texi: Likewise.
44769         * doc/posix-functions/llrint.texi: Likewise.
44770         * doc/posix-functions/llrintf.texi: Likewise.
44771         * doc/posix-functions/llrintl.texi: Likewise.
44772         * doc/posix-functions/lockf.texi: Likewise.
44773         * doc/posix-functions/lrintl.texi: Likewise.
44774         * doc/posix-functions/mkdirat.texi: Likewise.
44775         * doc/posix-functions/mkfifoat.texi: Likewise.
44776         * doc/posix-functions/mknodat.texi: Likewise.
44777         * doc/posix-functions/mq_close.texi: Likewise.
44778         * doc/posix-functions/mq_getattr.texi: Likewise.
44779         * doc/posix-functions/mq_notify.texi: Likewise.
44780         * doc/posix-functions/mq_open.texi: Likewise.
44781         * doc/posix-functions/mq_receive.texi: Likewise.
44782         * doc/posix-functions/mq_send.texi: Likewise.
44783         * doc/posix-functions/mq_setattr.texi: Likewise.
44784         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44785         * doc/posix-functions/mq_timedsend.texi: Likewise.
44786         * doc/posix-functions/mq_unlink.texi: Likewise.
44787         * doc/posix-functions/open_memstream.texi: Likewise.
44788         * doc/posix-functions/openat.texi: Likewise.
44789         * doc/posix-functions/posix_fadvise.texi: Likewise.
44790         * doc/posix-functions/posix_fallocate.texi: Likewise.
44791         * doc/posix-functions/posix_madvise.texi: Likewise.
44792         * doc/posix-functions/posix_memalign.texi: Likewise.
44793         * doc/posix-functions/posix_openpt.texi: Likewise.
44794         * doc/posix-functions/readlinkat.texi: Likewise.
44795         * doc/posix-functions/remque.texi: Likewise.
44796         * doc/posix-functions/renameat.texi: Likewise.
44797         * doc/posix-functions/rintl.texi: Likewise.
44798         * doc/posix-functions/sem_unlink.texi: Likewise.
44799         * doc/posix-functions/shm_open.texi: Likewise.
44800         * doc/posix-functions/shm_unlink.texi: Likewise.
44801         * doc/posix-functions/signgam.texi: Likewise.
44802         * doc/posix-functions/sigset.texi: Likewise.
44803         * doc/posix-functions/stpcpy.texi: Likewise.
44804         * doc/posix-functions/stpncpy.texi: Likewise.
44805         * doc/posix-functions/strerror.texi: Likewise.
44806         * doc/posix-functions/strtod.texi: Likewise.
44807         * doc/posix-functions/symlinkat.texi: Likewise.
44808         * doc/posix-functions/unlinkat.texi: Likewise.
44809         * doc/posix-functions/utimensat.texi: Likewise.
44810         * doc/glibc-functions/bindresvport.texi: Likewise.
44811         * doc/glibc-functions/dn_expand.texi: Likewise.
44812         * doc/glibc-functions/exp10.texi: Likewise.
44813         * doc/glibc-functions/exp10f.texi: Likewise.
44814         * doc/glibc-functions/fgetxattr.texi: Likewise.
44815         * doc/glibc-functions/flistxattr.texi: Likewise.
44816         * doc/glibc-functions/fopencookie.texi: Likewise.
44817         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44818         * doc/glibc-functions/fremovexattr.texi: Likewise.
44819         * doc/glibc-functions/fsetxattr.texi: Likewise.
44820         * doc/glibc-functions/getifaddrs.texi: Likewise.
44821         * doc/glibc-functions/getxattr.texi: Likewise.
44822         * doc/glibc-functions/lgetxattr.texi: Likewise.
44823         * doc/glibc-functions/listxattr.texi: Likewise.
44824         * doc/glibc-functions/llistxattr.texi: Likewise.
44825         * doc/glibc-functions/lremovexattr.texi: Likewise.
44826         * doc/glibc-functions/lsetxattr.texi: Likewise.
44827         * doc/glibc-functions/pow10.texi: Likewise.
44828         * doc/glibc-functions/pow10f.texi: Likewise.
44829         * doc/glibc-functions/rcmd_af.texi: Likewise.
44830         * doc/glibc-functions/removexattr.texi: Likewise.
44831         * doc/glibc-functions/res_init.texi: Likewise.
44832         * doc/glibc-functions/res_mkquery.texi: Likewise.
44833         * doc/glibc-functions/res_query.texi: Likewise.
44834         * doc/glibc-functions/res_querydomain.texi: Likewise.
44835         * doc/glibc-functions/res_send.texi: Likewise.
44836         * doc/glibc-functions/rresvport_af.texi: Likewise.
44837         * doc/glibc-functions/setxattr.texi: Likewise.
44838         * doc/glibc-functions/strcasestr.texi: Likewise.
44839
44840 2008-12-15  Bruno Haible  <bruno@clisp.org>
44841
44842         Fix compilation error on OSF/1 4.0.
44843         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44844         <sys/time.h>, simply delegate to the system header.
44845         Reported by Daniel Richard G. <oss@teragram.com>.
44846
44847 2008-12-15  Bruno Haible  <bruno@clisp.org>
44848
44849         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44850         * doc/posix-functions/fchmodat.texi: Likewise.
44851         * doc/posix-functions/fchownat.texi: Likewise.
44852         * doc/posix-functions/fdopendir.texi: Likewise.
44853         * doc/posix-functions/fstatat.texi: Likewise.
44854         * doc/posix-functions/mkdirat.texi: Likewise.
44855         * doc/posix-functions/unlinkat.texi: Likewise.
44856
44857 2008-12-14  Bruno Haible  <bruno@clisp.org>
44858
44859         Update doc for POSIX:2008.
44860         * doc/posix-functions/faccessat.texi: New file.
44861         * doc/posix-functions/fchmodat.texi: New file.
44862         * doc/posix-functions/fchownat.texi: New file.
44863         * doc/posix-functions/fdopendir.texi: New file.
44864         * doc/posix-functions/fstatat.texi: New file.
44865         * doc/posix-functions/futimens.texi: New file.
44866         * doc/posix-functions/linkat.texi: New file.
44867         * doc/posix-functions/mkdirat.texi: New file.
44868         * doc/posix-functions/mkfifoat.texi: New file.
44869         * doc/posix-functions/mknodat.texi: New file.
44870         * doc/posix-functions/open_wmemstream.texi: New file.
44871         * doc/posix-functions/openat.texi: New file.
44872         * doc/posix-functions/psiginfo.texi: New file.
44873         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44874         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44875         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44876         * doc/posix-functions/readlinkat.texi: New file.
44877         * doc/posix-functions/renameat.texi: New file.
44878         * doc/posix-functions/strerror_l.texi: New file.
44879         * doc/posix-functions/symlinkat.texi: New file.
44880         * doc/posix-functions/unlinkat.texi: New file.
44881         * doc/posix-functions/utimensat.texi: New file.
44882         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44883
44884 2008-12-14  Bruno Haible  <bruno@clisp.org>
44885
44886         Update doc for POSIX:2008.
44887         * doc/posix-functions/alphasort.texi: Renamed from
44888         doc/glibc-functions/alphasort.texi.
44889         * doc/posix-functions/dirfd.texi: Renamed from
44890         doc/glibc-functions/dirfd.texi.
44891         * doc/posix-functions/dprintf.texi: Renamed from
44892         doc/glibc-functions/dprintf.texi.
44893         * doc/posix-functions/duplocale.texi: Renamed from
44894         doc/glibc-functions/duplocale.texi.
44895         * doc/posix-functions/fexecve.texi: Renamed from
44896         doc/glibc-functions/fexecve.texi.
44897         * doc/posix-functions/fmemopen.texi: Renamed from
44898         doc/glibc-functions/fmemopen.texi.
44899         * doc/posix-functions/freelocale.texi: Renamed from
44900         doc/glibc-functions/freelocale.texi.
44901         * doc/posix-functions/getdate_err.texi: Renamed from
44902         doc/glibc-functions/getdate_err.texi.
44903         * doc/posix-functions/isalnum_l.texi: Renamed from
44904         doc/glibc-functions/isalnum_l.texi.
44905         * doc/posix-functions/isalpha_l.texi: Renamed from
44906         doc/glibc-functions/isalpha_l.texi.
44907         * doc/posix-functions/isblank_l.texi: Renamed from
44908         doc/glibc-functions/isblank_l.texi.
44909         * doc/posix-functions/iscntrl_l.texi: Renamed from
44910         doc/glibc-functions/iscntrl_l.texi.
44911         * doc/posix-functions/isdigit_l.texi: Renamed from
44912         doc/glibc-functions/isdigit_l.texi.
44913         * doc/posix-functions/isgraph_l.texi: Renamed from
44914         doc/glibc-functions/isgraph_l.texi.
44915         * doc/posix-functions/islower_l.texi: Renamed from
44916         doc/glibc-functions/islower_l.texi.
44917         * doc/posix-functions/isprint_l.texi: Renamed from
44918         doc/glibc-functions/isprint_l.texi.
44919         * doc/posix-functions/ispunct_l.texi: Renamed from
44920         doc/glibc-functions/ispunct_l.texi.
44921         * doc/posix-functions/isspace_l.texi: Renamed from
44922         doc/glibc-functions/isspace_l.texi.
44923         * doc/posix-functions/isupper_l.texi: Renamed from
44924         doc/glibc-functions/isupper_l.texi.
44925         * doc/posix-functions/iswalnum_l.texi: Renamed from
44926         doc/glibc-functions/iswalnum_l.texi.
44927         * doc/posix-functions/iswalpha_l.texi: Renamed from
44928         doc/glibc-functions/iswalpha_l.texi.
44929         * doc/posix-functions/iswblank_l.texi: Renamed from
44930         doc/glibc-functions/iswblank_l.texi.
44931         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44932         doc/glibc-functions/iswcntrl_l.texi.
44933         * doc/posix-functions/iswctype_l.texi: Renamed from
44934         doc/glibc-functions/iswctype_l.texi.
44935         * doc/posix-functions/iswdigit_l.texi: Renamed from
44936         doc/glibc-functions/iswdigit_l.texi.
44937         * doc/posix-functions/iswgraph_l.texi: Renamed from
44938         doc/glibc-functions/iswgraph_l.texi.
44939         * doc/posix-functions/iswlower_l.texi: Renamed from
44940         doc/glibc-functions/iswlower_l.texi.
44941         * doc/posix-functions/iswprint_l.texi: Renamed from
44942         doc/glibc-functions/iswprint_l.texi.
44943         * doc/posix-functions/iswpunct_l.texi: Renamed from
44944         doc/glibc-functions/iswpunct_l.texi.
44945         * doc/posix-functions/iswspace_l.texi: Renamed from
44946         doc/glibc-functions/iswspace_l.texi.
44947         * doc/posix-functions/iswupper_l.texi: Renamed from
44948         doc/glibc-functions/iswupper_l.texi.
44949         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44950         doc/glibc-functions/iswxdigit_l.texi.
44951         * doc/posix-functions/isxdigit_l.texi: Renamed from
44952         doc/glibc-functions/isxdigit_l.texi.
44953         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44954         doc/glibc-functions/mbsnrtowcs.texi.
44955         * doc/posix-functions/mkdtemp.texi: Renamed from
44956         doc/glibc-functions/mkdtemp.texi.
44957         * doc/posix-functions/newlocale.texi: Renamed from
44958         doc/glibc-functions/newlocale.texi.
44959         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44960         doc/glibc-functions/nl_langinfo_l.texi.
44961         * doc/posix-functions/open_memstream.texi: Renamed from
44962         doc/glibc-functions/open_memstream.texi.
44963         * doc/posix-functions/opterr.texi: Renamed from
44964         doc/glibc-functions/opterr.texi.
44965         * doc/posix-functions/optind.texi: Renamed from
44966         doc/glibc-functions/optind.texi.
44967         * doc/posix-functions/optopt.texi: Renamed from
44968         doc/glibc-functions/optopt.texi.
44969         * doc/posix-functions/psignal.texi: Renamed from
44970         doc/glibc-functions/psignal.texi.
44971         * doc/posix-functions/scandir.texi: Renamed from
44972         doc/glibc-functions/scandir.texi.
44973         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44974         doc/glibc-functions/sched_get_priority_min.texi.
44975         * doc/posix-functions/signgam.texi: Renamed from
44976         doc/glibc-functions/signgam.texi.
44977         * doc/posix-functions/stpcpy.texi: Renamed from
44978         doc/glibc-functions/stpcpy.texi.
44979         * doc/posix-functions/stpncpy.texi: Renamed from
44980         doc/glibc-functions/stpncpy.texi.
44981         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44982         doc/glibc-functions/strcasecmp_l.texi.
44983         * doc/posix-functions/strcoll_l.texi: Renamed from
44984         doc/glibc-functions/strcoll_l.texi.
44985         * doc/posix-functions/strfmon_l.texi: Renamed from
44986         doc/glibc-functions/strfmon_l.texi.
44987         * doc/posix-functions/strftime_l.texi: Renamed from
44988         doc/glibc-functions/strftime_l.texi.
44989         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44990         doc/glibc-functions/strncasecmp_l.texi.
44991         * doc/posix-functions/strndup.texi: Renamed from
44992         doc/glibc-functions/strndup.texi.
44993         * doc/posix-functions/strnlen.texi: Renamed from
44994         doc/glibc-functions/strnlen.texi.
44995         * doc/posix-functions/strsignal.texi: Renamed from
44996         doc/glibc-functions/strsignal.texi.
44997         * doc/posix-functions/strxfrm_l.texi: Renamed from
44998         doc/glibc-functions/strxfrm_l.texi.
44999         * doc/posix-functions/timer_gettime.texi: Renamed from
45000         doc/glibc-functions/timer_gettime.texi.
45001         * doc/posix-functions/tolower_l.texi: Renamed from
45002         doc/glibc-functions/tolower_l.texi.
45003         * doc/posix-functions/toupper_l.texi: Renamed from
45004         doc/glibc-functions/toupper_l.texi.
45005         * doc/posix-functions/towctrans_l.texi: Renamed from
45006         doc/glibc-functions/towctrans_l.texi.
45007         * doc/posix-functions/towlower_l.texi: Renamed from
45008         doc/glibc-functions/towlower_l.texi.
45009         * doc/posix-functions/towupper_l.texi: Renamed from
45010         doc/glibc-functions/towupper_l.texi.
45011         * doc/posix-functions/uselocale.texi: Renamed from
45012         doc/glibc-functions/uselocale.texi.
45013         * doc/posix-functions/vdprintf.texi: Renamed from
45014         doc/glibc-functions/vdprintf.texi.
45015         * doc/posix-functions/wcpcpy.texi:
45016         Renamed from doc/glibc-functions/wcpcpy.texi.
45017         * doc/posix-functions/wcpncpy.texi: Renamed from
45018         doc/glibc-functions/wcpncpy.texi.
45019         * doc/posix-functions/wcscasecmp.texi: Renamed from
45020         doc/glibc-functions/wcscasecmp.texi.
45021         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45022         doc/glibc-functions/wcscasecmp_l.texi.
45023         * doc/posix-functions/wcscoll_l.texi: Renamed from
45024         doc/glibc-functions/wcscoll_l.texi.
45025         * doc/posix-functions/wcsdup.texi: Renamed from
45026         doc/glibc-functions/wcsdup.texi.
45027         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45028         doc/glibc-functions/wcsncasecmp.texi.
45029         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45030         doc/glibc-functions/wcsncasecmp_l.texi.
45031         * doc/posix-functions/wcsnlen.texi: Renamed from
45032         doc/glibc-functions/wcsnlen.texi.
45033         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45034         doc/glibc-functions/wcsnrtombs.texi.
45035         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45036         doc/glibc-functions/wcsxfrm_l.texi.
45037         * doc/posix-functions/wctrans_l.texi: Renamed from
45038         doc/glibc-functions/wctrans_l.texi.
45039         * doc/posix-functions/wctype_l.texi: Renamed from
45040         doc/glibc-functions/wctype_l.texi.
45041         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45042         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45043         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45044         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45045         these subsections.
45046         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45047         Remove sections.
45048
45049 2008-12-14  Bruno Haible  <bruno@clisp.org>
45050
45051         Update doc for POSIX:2008.
45052         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45053
45054 2008-12-14  Bruno Haible  <bruno@clisp.org>
45055
45056         Update doc for POSIX:2008.
45057         * doc/pastposix-functions/bcmp.texi: Renamed from
45058         doc/posix-functions/bcmp.texi.
45059         * doc/pastposix-functions/bcopy.texi: Renamed from
45060         doc/posix-functions/bcopy.texi.
45061         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45062         doc/posix-functions/bsd_signal.texi.
45063         * doc/pastposix-functions/bzero.texi: Renamed from
45064         doc/posix-functions/bzero.texi.
45065         * doc/pastposix-functions/ecvt.texi: Renamed from
45066         doc/posix-functions/ecvt.texi.
45067         * doc/pastposix-functions/fcvt.texi: Renamed from
45068         doc/posix-functions/fcvt.texi.
45069         * doc/pastposix-functions/ftime.texi: Renamed from
45070         doc/posix-functions/ftime.texi.
45071         * doc/pastposix-functions/gcvt.texi: Renamed from
45072         doc/posix-functions/gcvt.texi.
45073         * doc/pastposix-functions/getcontext.texi: Renamed from
45074         doc/posix-functions/getcontext.texi.
45075         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45076         doc/posix-functions/gethostbyaddr.texi.
45077         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45078         doc/posix-functions/gethostbyname.texi.
45079         * doc/pastposix-functions/getwd.texi: Renamed from
45080         doc/posix-functions/getwd.texi.
45081         * doc/pastposix-functions/h_errno.texi: Renamed from
45082         doc/posix-functions/h_errno.texi.
45083         * doc/pastposix-functions/index.texi: Renamed from
45084         doc/posix-functions/index.texi.
45085         * doc/pastposix-functions/makecontext.texi: Renamed from
45086         doc/posix-functions/makecontext.texi.
45087         * doc/pastposix-functions/mktemp.texi: Renamed from
45088         doc/posix-functions/mktemp.texi.
45089         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45090         doc/posix-functions/pthread_attr_getstackaddr.texi.
45091         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45092         doc/posix-functions/pthread_attr_setstackaddr.texi.
45093         * doc/pastposix-functions/rindex.texi: Renamed from
45094         doc/posix-functions/rindex.texi.
45095         * doc/pastposix-functions/scalb.texi: Renamed from
45096         doc/posix-functions/scalb.texi.
45097         * doc/pastposix-functions/setcontext.texi: Renamed from
45098         doc/posix-functions/setcontext.texi.
45099         * doc/pastposix-functions/swapcontext.texi: Renamed from
45100         doc/posix-functions/swapcontext.texi.
45101         * doc/pastposix-functions/ualarm.texi: Renamed from
45102         doc/posix-functions/ualarm.texi.
45103         * doc/pastposix-functions/usleep.texi: Renamed from
45104         doc/posix-functions/usleep.texi.
45105         * doc/pastposix-functions/vfork.texi: Renamed from
45106         doc/posix-functions/vfork.texi.
45107         * doc/pastposix-functions/wcswcs.texi: Renamed from
45108         doc/posix-functions/wcswcs.texi.
45109         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45110         (Function Substitutes): Update.
45111
45112 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45113
45114         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45115         m4/strerror.m4.
45116
45117 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45118             Bruno Haible  <bruno@clisp.org>
45119
45120         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45121
45122 2008-12-13  Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/strtoull (Depends-on): Remove unistd.
45125
45126 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45127
45128         * modules/strtoull (Depends-on): Add stdlib.
45129
45130 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45131
45132         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45133
45134 2008-12-10  Jim Meyering  <meyering@redhat.com>
45135
45136         gl_ASSERT: don't say assertions are disabled when they're not
45137         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45138         "checking whether to enable assertions... no", when they are in
45139         fact enabled.  This is solely a bug in the output of configure.
45140         In spite of saying "no", NDEBUG was not defined in that case.
45141         Also, as noted by Eric Blake, leave assertions enabled upon
45142         --enable-assert=INVALID.
45143
45144 2008-12-10  Bruno Haible  <bruno@clisp.org>
45145
45146         Change MODULES.html to refer to POSIX:2008 where possible.
45147         * MODULES.html.sh (POSIX2008_URL): New variable.
45148         (posix_headers): Remove sys/timeb, ucontext.
45149         (posix2001_headers): New variable.
45150         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45151         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45152         index, makecontext, mktemp, pthread_attr_getstackaddr,
45153         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45154         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45155         (posix2001_functions): New variable.
45156         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45157         otherwise.
45158
45159 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45160
45161         add missing include to parse-duration.c
45162         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45163         * modules/parse-duration (Depends-on): Add xalloc.
45164
45165         fix sed script reading maint.mk
45166         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45167         (syntax-check-rules): Use it.
45168
45169 2008-12-09  Bruno Haible  <bruno@clisp.org>
45170
45171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45172         MacOS X 10.4/PowerPC.
45173         Reported by Simon Josefsson.
45174
45175 2008-12-08  Jim Meyering  <meyering@redhat.com>
45176
45177         work around mingw's lack of some S_IF definitions
45178         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45179         Reported by Simon Josefsson.
45180
45181 2008-12-08  Bruno Haible  <bruno@clisp.org>
45182
45183         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45184         applied to variables. Needed on MacOS X 10.4/PowerPC.
45185         Reported by Simon Josefsson.
45186
45187 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45188         and Eric Blake  <ebb9@byu.net>
45189
45190         assert: honor --enable-assert
45191         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45192         order to honor --enable-assert, rather than treating it as a
45193         synonym for --disable-assert.
45194
45195 2008-12-08  Jim Meyering  <meyering@redhat.com>
45196
45197         * lib/posixtm.c: Remove now-useless declaration of mktime.
45198
45199         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45200
45201 2008-12-07  Bruno Haible  <bruno@clisp.org>
45202
45203         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45204         test_once): Mark functions as static.
45205         * tests/test-tls.c (test_tls): Likewise.
45206
45207 2008-12-07  Bruno Haible  <bruno@clisp.org>
45208
45209         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45210         iconv_register_autodetect.
45211
45212 2008-12-07  Jim Meyering  <meyering@redhat.com>
45213
45214         posixtm.c: avoid a warning
45215         * lib/posixtm.c (posixtime): Don't initialize tm0.
45216         It's no longer needed to placate gcc4's -Wuninitialized,
45217         and the attempt to placate would elicit a new warning.
45218
45219         unicodeio.c: mark unused parameters
45220         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45221         (fallback_failure_callback): Likewise.
45222
45223 2008-12-07  Bruno Haible  <bruno@clisp.org>
45224
45225         * gnulib-tool (func_create_testdir): When building the tests
45226         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45227         Reported by Simon Josefsson.
45228
45229 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45230
45231         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45232
45233 2008-12-06  Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45236         Suggested by Eric Blake.
45237
45238 2008-12-06  Bruno Haible  <bruno@clisp.org>
45239
45240         Fix a c-stack test failure on MacOS X.
45241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45242         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45243         handler for SIGBUS as well.
45244         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45245         install a signal handler for SIGBUS as well.
45246         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45247
45248 2008-12-06  Bruno Haible  <bruno@clisp.org>
45249
45250         Advocacy documentation.
45251         * doc/gnulib-intro.texi (Benefits): New section.
45252         * doc/gnulib.texi: Update.
45253
45254 2008-12-06  Bruno Haible  <bruno@clisp.org>
45255
45256         Document the 'manywarnings' module.
45257         * doc/manywarnings.texi: New file.
45258         * doc/gnulib.texi: Include it.
45259
45260 2008-12-05  Eric Blake  <ebb9@byu.net>
45261
45262         tests: silence some gcc warnings
45263         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45264         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45265         type mismatches.
45266
45267 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45268             Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45271
45272 2008-11-29  Jim Meyering  <meyering@redhat.com>
45273
45274         unicodeio.c: mark unused parameters
45275         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45276         (fallback_failure_callback): Likewise.
45277
45278         fts: fix a thinko
45279         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45280         (set_stat_type): Return S_IF*-valued "type" directly.
45281         Prompted by James Youngman's spotting a related bug.
45282         Confirmed by further testing through find.
45283
45284         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45285         * lib/fts.c (D_TYPE): Define.
45286         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45287         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45288         (s_ifmt_shift_bits): New function.
45289         (set_stat_type): New function.
45290         (fts_build): When not calling fts_stat, call set_stat_type
45291         to propagate dirent.d_type info to fts_read caller.
45292         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45293         fts_statp->st_mode type information may be valid.
45294
45295 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45296
45297         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45298         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45299         <sds@gnu.org>.
45300
45301 2008-11-20  Bruno Haible  <bruno@clisp.org>
45302
45303         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45304         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45305         INCLUDE_NEXT.
45306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45307         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45308         * modules/math (Makefile.am): Substitute
45309         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45311
45312 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45313             Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/stdint.in.h: Define all type macros so that their expansion is
45316         a single typedef'ed token. Fixes a compilation failure in Boost which
45317         does "using ::int8_t;".
45318
45319 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45320
45321         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45322         gl_MANYWARN_ALL_GCC.
45323         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45324         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45325         * modules/manywarnings: New file.
45326         * MODULES.html.sh: Mention manywarnings module.
45327
45328 2008-11-18  Bruno Haible  <bruno@clisp.org>
45329
45330         * doc/gnulib-tool.texi (Unit tests): New section.
45331
45332 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45333
45334         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45335         paths like 'lib/po/foo.po'.
45336
45337 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45338
45339         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45340         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45341
45342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45343
45344         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45345         parameter works.
45346
45347 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45348
45349         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45350
45351 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45352
45353         * modules/parse-duration-tests: New file.
45354         * tests/test-parse-duration.sh: New file.
45355         * tests/test-parse-duration.c: New file.
45356
45357         New module 'parse-duration'.
45358         * lib/parse-duration.h: New file.
45359         * lib/parse-duration.c: New file.
45360         * modules/parse-duration: New file.
45361
45362 2008-11-17  Bruno Haible  <bruno@clisp.org>
45363
45364         * tests/test-select-out.sh: Comment out the first pipe test.
45365         Reported by Simon Josefsson.
45366
45367 2008-11-17  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45371         gl_HOSTENT.
45372
45373 2008-11-17  Bruno Haible  <bruno@clisp.org>
45374
45375         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45376         -lnetwork and -lnet. Needed for Haiku and BeOS.
45377
45378 2008-11-16  Bruno Haible  <bruno@clisp.org>
45379
45380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45381
45382 2008-11-16  Bruno Haible  <bruno@clisp.org>
45383
45384         Avoid test failure on Haiku.
45385         * tests/test-fsync.c: Include <errno.h>.
45386         (main): Don't require that fsync (0) fails.
45387
45388 2008-11-15  Bruno Haible  <bruno@clisp.org>
45389
45390         New module 'hostent'.
45391         * modules/hostent: New file.
45392         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45393
45394 2008-11-15  Bruno Haible  <bruno@clisp.org>
45395
45396         New module 'servent'.
45397         * modules/servent: New file.
45398         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45399
45400 2008-11-15  Bruno Haible  <bruno@clisp.org>
45401
45402         Avoid generating same test program with two different rules.
45403         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45404         test-frexp to test-frexp-nolibm.
45405         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45406         test-frexpl to test-frexpl-nolibm.
45407
45408 2008-11-15  Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45411         $(FREXPL_LIBM).
45412
45413 2008-11-15  Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/netdb.in.h: Activate the definitions also when the system's
45416         <netdb.h> has 'struct addrinfo'.
45417         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45418         EAI_OVERFLOW or AI_NUMERICSERV.
45419         * doc/posix-headers/netdb.texi: Document the problem.
45420
45421 2008-11-15  Bruno Haible  <bruno@clisp.org>
45422
45423         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45424
45425         Make the 'sched' module work on platforms where <sched.h> exists but
45426         is incomplete (such as Haiku).
45427         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45428         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45429         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45430         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45431         HAVE_STRUCT_SCHED_PARAM.
45432         * modules/sched (Depends-on): Add include_next.
45433         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45434         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45435         * doc/posix-headers/sched.texi: Document the issue.
45436
45437 2008-11-13  Jim Meyering  <meyering@redhat.com>
45438
45439         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45440         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45441         test would fail due to the difference in the Report bugs to ...
45442         line.  The expected address is empty, "<>", while the actual
45443         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45444
45445 2008-11-12  Bruno Haible  <bruno@clisp.org>
45446
45447         lstat: don't compile lstat.c on systems lacking lstat
45448         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45449         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45450         Reported by Daniel P. Berrange via Jim Meyering.
45451
45452 2008-11-12  Jim Meyering  <meyering@redhat.com>
45453
45454         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45455
45456 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45457
45458         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45459         instead.
45460
45461 2008-11-12  Bruno Haible  <bruno@clisp.org>
45462
45463         * lib/unicodeio.c: Include unistr.h.
45464         (utf8_wctomb): Remove function.
45465         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45466
45467 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45468
45469         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45470         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45471         <bruno@clisp.org>.
45472         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45473
45474 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45475
45476         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45477         * doc/gnulib.texi: Add section for warnings.
45478
45479 2008-11-11  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/sockets.h: Add a comment.
45482
45483 2008-11-11  Karl Berry  <karl@gnu.org>
45484
45485         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45486
45487 2008-11-11  Eric Blake  <ebb9@byu.net>
45488
45489         fdl.texi: avoid git symlinks
45490         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45491
45492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45493
45494         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45495
45496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45497
45498         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45499         (gl_WARN_ADD): Substitute $2 if literal.
45500
45501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45502
45503         * m4/warning.m4: Remove.
45504
45505 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45506
45507         * m4/warnings.m4: Almost complete rewrite. :-)
45508
45509 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45510
45511         * modules/warnings: New module.
45512         * m4/warnings.m4: New file.
45513         * MODULES.html.sh: Mention warnings module.
45514         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45515         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45516
45517 2008-11-10  Eric Blake  <ebb9@byu.net>
45518
45519         fdl.texi: make a symlink to the latest version
45520         * doc/standards.texi: Revert today's earlier change.
45521         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45522         * doc/fdl.texi: ...and replace this with a symlink to the newer
45523         fdl-1.3.texi.
45524
45525 2008-11-10  Bruno Haible  <bruno@clisp.org>
45526
45527         * tests/test-select-fd.c (main): Accept the result file name as fourth
45528         argument.
45529         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45530         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45531
45532 2008-11-10  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45535         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45536         as autoconf-substituted macros.
45537         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45539         gl_NETDB_H_DEFAULTS. Set these variables.
45540         * modules/netdb (Makefile.am): Substitute these variables.
45541
45542 2008-11-10  Eric Blake  <ebb9@byu.net>
45543
45544         standards.texi: include correct file for FDL 1.3
45545         * doc/standards.texi (GNU Free Documentation License): Change
45546         include file to pull in FDL 1.3, not 1.2.
45547
45548         fdl.texi: revert accidental change to license
45549         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45550
45551 2008-11-10  Bruno Haible  <bruno@clisp.org>
45552
45553         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45554         cross-compiling guesses also when the native compile gives no result.
45555
45556 2008-11-10  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/spawni.c (__spawni): Force variable into the stack.
45559
45560 2008-11-10  Bruno Haible  <bruno@clisp.org>
45561
45562         Add support for Haiku.
45563         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45564         glibc and BeOS, but also on Haiku.
45565         * lib/fpurge.c (fpurge): Likewise.
45566         * lib/freadable.c (freadable): Likewise.
45567         * lib/freadahead.c (freadahead): Likewise.
45568         * lib/freading.c (freading): Likewise.
45569         * lib/freadptr.c (freadptr): Likewise.
45570         * lib/freadseek.c (freadptrinc): Likewise.
45571         * lib/fseeko.c (rpl_fseeko): Likewise.
45572         * lib/fseterr.c (fseterr): Likewise.
45573         * lib/fwritable.c (fwritable): Likewise.
45574         * lib/fwriting.c (fwriting): Likewise.
45575         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45576
45577 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45578
45579         * lib/config.charset: Treat Haiku like BeOS.
45580
45581 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45582
45583         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45584         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45585
45586 2008-11-08  Bruno Haible  <bruno@clisp.org>
45587
45588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45589         AC_CACHE_CHECK.
45590
45591 2008-11-08  Bruno Haible  <bruno@clisp.org>
45592
45593         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45594
45595 2008-11-08  Bruno Haible  <bruno@clisp.org>
45596
45597         * tests/test-select-fd.c: New file.
45598         * tests/test-select-in.sh: New file.
45599         * tests/test-select-out.sh: New file.
45600         * tests/test-select-stdin.c: New file.
45601         * modules/select-tests (Files): Add the new files.
45602         (Depends-on): Add gettimeofday.
45603         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45604         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45605         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45606
45607 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45608             Bruno Haible  <bruno@clisp.org>
45609
45610         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45611
45612 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45613
45614         * build-aux/pmccabe2html: Added support for C++ source files.
45615
45616 2008-11-05  Ben Pfaff  <blp@gnu.org>
45617
45618         Fix lib/close.c build on Windows.
45619         * modules/close (Files): Add lib/w32sock.h.
45620
45621 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45622
45623         Accept Bison's NEWS format.
45624         * build-aux/announce-gen (print_news_deltas): Tweak
45625         $re_prefix.
45626
45627 2008-11-04  Bruno Haible  <bruno@clisp.org>
45628
45629         * modules/random_r (Maintainer): Add glibc.
45630
45631 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45632
45633         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45634         by karl@freefriends.org (Karl Berry).
45635         * doc/alloca.texi: Likewise.
45636         * doc/c-ctype.texi: Likewise.
45637         * doc/c-strcase.texi: Likewise.
45638         * doc/c-strcaseeq.texi: Likewise.
45639         * doc/c-strcasestr.texi: Likewise.
45640         * doc/c-strstr.texi: Likewise.
45641         * doc/c-strtod.texi: Likewise.
45642         * doc/c-strtold.texi: Likewise.
45643         * doc/ctime.texi: Likewise.
45644         * doc/error.texi: Likewise.
45645         * doc/fdl.texi: Likewise.
45646         * doc/gcd.texi: Likewise.
45647         * doc/getdate.texi: Likewise.
45648         * doc/gnulib-intro.texi: Likewise.
45649         * doc/gnulib-tool.texi: Likewise.
45650         * doc/gnulib.texi: Likewise.
45651         * doc/inet_ntoa.texi: Likewise.
45652         * doc/maintain.texi: Likewise.
45653         * doc/make-stds.texi: Likewise.
45654         * doc/quote.texi: Likewise.
45655         * doc/regexprops-generic.texi: Likewise.
45656         * doc/standards.texi: Likewise.
45657         * doc/verify.texi: Likewise.
45658         * doc/visibility.texi: Likewise.
45659         * doc/gnulib.texi (GNU Free Documentation License): Include
45660         fdl-1.3.texi instead of fdl.texi.
45661
45662 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45663
45664         * doc/fdl-1.3.texi: New file, from
45665         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45666         * modules/fdl-1.3: Add.
45667         * MODULES.html.sh: Add fdl-1.3.
45668
45669 2008-11-03  Bruno Haible  <bruno@clisp.org>
45670
45671         Make determination of absolute name of header file work with AIX xlc.
45672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45673         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45674         preprocessing.
45675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45676         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45677
45678 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45679
45680         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45681         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45682         <ludo@gnu.org>.
45683
45684 2008-11-02  Bruno Haible  <bruno@clisp.org>
45685
45686         Mark 'strpbrk' obsolete.
45687         * modules/strpbrk (Status, Notice): New sections.
45688         * modules/strtok_r (Depends-on): Add strpbrk.
45689
45690 2008-11-02  Bruno Haible  <bruno@clisp.org>
45691
45692         Mark 'strdup' obsolete.
45693         * modules/strdup (Status, Notice): New sections.
45694         * modules/findprog (Depends-on): Add strdup.
45695         * modules/getaddrinfo (Depends-on): Likewise.
45696         * modules/localename (Depends-on): Likewise.
45697         * modules/relocatable-lib (Depends-on): Likewise.
45698         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45699         * modules/relocatable-prog (Depends-on): Likewise.
45700         * modules/trim (Depends-on): Likewise.
45701         * modules/unictype/gen-ctype (Depends-on): Likewise.
45702         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45703
45704 2008-11-02  Bruno Haible  <bruno@clisp.org>
45705
45706         Mark 'strcspn' obsolete.
45707         * modules/strcspn (Status, Notice): New sections.
45708
45709 2008-11-02  Bruno Haible  <bruno@clisp.org>
45710
45711         Mark 'rmdir' obsolete.
45712         * modules/rmdir (Status, Notice): New sections.
45713         * modules/clean-temp (Depends-on): Add rmdir.
45714         * modules/openat (Depends-on): Likewise.
45715
45716 2008-11-02  Bruno Haible  <bruno@clisp.org>
45717
45718         Mark 'raise' obsolete.
45719         * modules/raise (Status, Notice): New sections.
45720         (Include): Specify <signal.h>.
45721         * modules/stdio (Depends-on): Add raise.
45722         * modules/write (Depends-on): Likewise.
45723
45724 2008-11-02  Bruno Haible  <bruno@clisp.org>
45725
45726         Mark 'memset' obsolete.
45727         * modules/memset (Status, Notice): New sections.
45728
45729 2008-11-02  Bruno Haible  <bruno@clisp.org>
45730
45731         Mark 'memmove' obsolete.
45732         * modules/memmove (Status, Notice): New sections.
45733         * modules/argp (Depends-on): Add memmove.
45734         * modules/argz (Depends-on): Likewise.
45735         * modules/canonicalize (Depends-on): Likewise.
45736         * modules/canonicalize-lgpl (Depends-on): Likewise.
45737         * modules/fts (Depends-on): Likewise.
45738         * modules/getcwd (Depends-on): Likewise.
45739         * modules/human (Depends-on): Likewise.
45740         * modules/regex (Depends-on): Likewise.
45741         * modules/striconveh (Depends-on): Likewise.
45742         * modules/trim (Depends-on): Likewise.
45743         * modules/unistr/u8-move (Depends-on): Likewise.
45744         * modules/unistr/u16-move (Depends-on): Likewise.
45745         * modules/unistr/u32-move (Depends-on): Likewise.
45746
45747 2008-11-02  Bruno Haible  <bruno@clisp.org>
45748
45749         Mark 'memcpy' obsolete.
45750         * modules/memcpy (Status, Notice): New sections.
45751
45752 2008-11-02  Bruno Haible  <bruno@clisp.org>
45753
45754         Mark 'memcmp' obsolete.
45755         * modules/memcmp (Status, Notice): New sections.
45756         * modules/argmatch (Depends-on): Add memchr.
45757         * modules/backupfile (Depends-on): Likewise.
45758         * modules/c-strcasestr (Depends-on): Likewise.
45759         * modules/crypto/des (Depends-on): Likewise.
45760         * modules/csharpcomp (Depends-on): Likewise.
45761         * modules/fnmatch (Depends-on): Likewise.
45762         * modules/git-merge-changelog (Depends-on): Likewise.
45763         * modules/isnand (Depends-on): Likewise.
45764         * modules/isnand-nolibm (Depends-on): Likewise.
45765         * modules/isnanf (Depends-on): Likewise.
45766         * modules/isnanf-nolibm (Depends-on): Likewise.
45767         * modules/isnanl (Depends-on): Likewise.
45768         * modules/isnanl-nolibm (Depends-on): Likewise.
45769         * modules/mbchar (Depends-on): Likewise.
45770         * modules/memcoll (Depends-on): Likewise.
45771         * modules/quotearg (Depends-on): Likewise.
45772         * modules/regex (Depends-on): Likewise.
45773         * modules/relocatable-prog (Depends-on): Likewise.
45774         * modules/same (Depends-on): Likewise.
45775         * modules/signbit (Depends-on): Likewise.
45776         * modules/strcasestr-simple (Depends-on): Likewise.
45777         * modules/unictype/gen-ctype (Depends-on): Likewise.
45778         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45779         * modules/uniname/uniname (Depends-on): Likewise.
45780         * modules/unistr/u8-cmp (Depends-on): Likewise.
45781
45782 2008-11-02  Bruno Haible  <bruno@clisp.org>
45783
45784         Mark 'memchr' obsolete.
45785         * modules/memchr (Status, Notice): New sections.
45786         * modules/argp (Depends-on): Add memchr.
45787         * modules/base64 (Depends-on): Likewise.
45788         * modules/c-strcasestr (Depends-on): Likewise.
45789         * modules/chdir-long (Depends-on): Likewise.
45790         * modules/fnmatch (Depends-on): Likewise.
45791         * modules/getsubopt (Depends-on): Likewise.
45792         * modules/git-merge-changelog (Depends-on): Likewise.
45793         * modules/glob (Depends-on): Likewise.
45794         * modules/strcasestr-simple (Depends-on): Likewise.
45795         * modules/strnlen (Depends-on): Likewise.
45796
45797 2008-11-02  Bruno Haible  <bruno@clisp.org>
45798
45799         Mark 'atexit' obsolete.
45800         * modules/atexit (Status, Notice): New sections.
45801         * modules/chdir-long (Depends-on): Add atexit.
45802         * modules/wait-process (Depends-on): Likewise.
45803
45804 2008-11-02  Bruno Haible  <bruno@clisp.org>
45805
45806         * gnulib-tool: New option --with-obsolete.
45807         (func_usage): Document it.
45808         (func_modules_transitive_closure): Drop obsolete dependencies if
45809         incobsolete is not true.
45810         (func_import): Read and save the incobsolete variable to the cache.
45811
45812 2008-11-02  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45815         * gnulib-tool: New option --extract-status.
45816         (func_usage): Document it.
45817         (sed_extract_prog): Recognize it.
45818         (func_get_status): New function.
45819
45820 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45821
45822         * modules/sockets (License): Change from LGPL to LGPLv2+.
45823
45824 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45825
45826         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45827
45828 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45829
45830         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45831         Mention times and sys_times.
45832         * modules/sys_times, modules/sys_times-tests: New modules.
45833         * modules/times, modules/times-tests: Likewise
45834         * m4/sys_times_h.m4: New file.
45835         * lib/sys_times.in.h: Likewise
45836         * lib/times.c: Likewise.
45837         * tests/test-sys_times.c: Likewise.
45838         * tests/test-times.c: Likewise.
45839         * doc/posix-headers/sys_times.texi: Update.
45840         * doc/posix-functions/times.texi: Update.
45841
45842 2008-10-28  Jim Meyering  <meyering@redhat.com>
45843
45844         * modules/tempname (Depends-on): Add lstat.
45845
45846         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45847
45848 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45849
45850         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45851         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45852         using idiom used elsewhere in gnulib.
45853
45854 2008-10-27  Jim Meyering  <meyering@redhat.com>
45855
45856         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45857
45858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45859
45860         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45861         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45862         programs.
45863         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45864
45865 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45866
45867         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45868
45869 2008-10-27  Bruno Haible  <bruno@clisp.org>
45870
45871         * tests/test-lstat.c: Include <stdio.h>.
45872
45873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45874
45875         * modules/lstat-tests: New module.
45876         * tests/test-lstat.c: New file.
45877
45878 2008-10-26  Jim Meyering  <meyering@redhat.com>
45879
45880         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45881
45882 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45883             Bruno Haible  <bruno@clisp.org>
45884
45885         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45886         * modules/configmake (Include): Add a note that the include must come
45887         after all system headers.
45888         * lib/javaversion.c: Include configmake.h after all other includes.
45889
45890 2008-10-26  Bruno Haible  <bruno@clisp.org>
45891
45892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45893         HAVE_STRUCT_RANDOM_DATA to 1.
45894         (gl_STDLIB_H): Simplify.
45895
45896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45897
45898         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45899         substitute HAVE_STRUCT_RANDOM_DATA.
45900         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45901         random_data.
45902         * modules/stdlib (Makefile.am): Substitute
45903         HAVE_STRUCT_RANDOM_DATA.
45904
45905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45906
45907         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45908         * doc/gnulib-intro.texi (Copyright): Likewise.
45909
45910 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45911
45912         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45913         findings.
45914
45915 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45916             Bruno Haible  <bruno@clisp.org>
45917
45918         * lib/unistd.in.h: Include <winsock2.h>.
45919         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45920         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45921         Provide dummy declarations.
45922         (gethostname): Override.
45923         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45924         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45925         gl_PREREQ_SYS_H_WINSOCK2.
45926         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45927         * doc/posix-functions/gethostname.texi: More details.
45928
45929 2008-10-25  Bruno Haible  <bruno@clisp.org>
45930
45931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45932         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45933         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45934
45935         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45936         here ...
45937         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45939         gl_UNISTD_H_DEFAULTS.
45940
45941 2008-10-25  Eric Blake  <ebb9@byu.net>
45942
45943         signbit: avoid spurious compiler failure
45944         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45945         declarations inside function.
45946
45947 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45948             Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45951         * modules/random_r (Depends-on): Add stdint.
45952
45953 2008-10-24  Bruno Haible  <bruno@clisp.org>
45954
45955         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45956         Eggert.
45957         * modules/strerror (License): Likewise.
45958
45959 2008-10-24  Jim Meyering  <meyering@redhat.com>
45960
45961         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45962         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45963
45964 2008-10-24  Eric Blake  <ebb9@byu.net>
45965
45966         getgroups: fix compilation when getgroups is available
45967         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45968         but with <config.h> override of getgroups disabled.
45969
45970 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45971
45972         * doc/gnulib.texi (Header files): Add note about C++ problems.
45973         Explained by Bruno Haible <bruno@clisp.org>.
45974
45975 2008-10-23  Bruno Haible  <bruno@clisp.org>
45976
45977         Define a dummy SA_NODEFER macro on Interix.
45978         * lib/signal.in.h (SA_NODEFER): Define fallback.
45979         Reported by Aleksey Cheusov <cheusov@tut.by> via
45980         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45981
45982 2008-10-23  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/freadahead (License): Change to LGPLv2+.
45985         Suggested by Simon Josefsson.
45986
45987 2008-10-23  Jim Meyering  <meyering@redhat.com>
45988
45989         random_r: new module
45990         * modules/random_r: New file.
45991         * m4/random_r.m4: New file.
45992         * lib/random_r.c: New file, from glibc.
45993         * modules/random_r-tests: New file.
45994         * tests/test-random_r.c: New file.
45995         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45996          Declare.
45997         (RAND_MAX): Define.
45998         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45999         * modules/stdlib: Substitute them, too.
46000         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46001         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46002         * doc/glibc-functions/random_r.texi: Likewise.
46003         * doc/glibc-functions/setstate_r.texi: Likewise.
46004         * doc/glibc-functions/srandom_r.texi: Likewise.
46005         * config/srclist.txt: Mention it.
46006
46007 2008-10-23  David Lutterkort  <lutter@redhat.com>
46008
46009         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46010         link requirement
46011
46012 2008-10-23  Jim Meyering  <meyering@redhat.com>
46013
46014         selinux-h: mark parameters of stub functions as intentionally unused
46015         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46016         * lib/se-context.in.h: Likewise.
46017
46018 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46019
46020         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46021
46022 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46023
46024         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46025
46026 2008-10-22  Eric Blake  <ebb9@byu.net>
46027
46028         glthread/thread: avoid compiler warning
46029         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46030         Add unreachable abort to silence compiler.
46031
46032 2008-10-22  Eric Blake  <ebb9@byu.net>
46033
46034         netdb: also supply struct addrinfo for cygwin 1.5.x
46035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46036         older cygwin.
46037         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46038         cygwin.
46039         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46040
46041 2008-10-22  Bruno Haible  <bruno@clisp.org>
46042
46043         * users.txt: Update entry about pspp.
46044
46045 2008-10-21  Bruno Haible  <bruno@clisp.org>
46046
46047         Simplification.
46048         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46049         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46050
46051         Simplification.
46052         * lib/ioctl.c (ioctl): Don't undefine.
46053         * lib/socket.c (socket): Don't undefine.
46054
46055         Remove unused module indicator macros.
46056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46057         GNULIB_$1 as a C macro.
46058
46059         * doc/posix-functions/close.texi: Undo last change.
46060         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46061         Windows platforms.
46062
46063 2008-10-21  Bruno Haible  <bruno@clisp.org>
46064
46065         Add gethostname() declaration to <unistd.h>.
46066         * lib/unistd.in.h (gethostname): New declaration.
46067         * lib/gethostname.c: Include <unistd.h>.
46068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46069         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46071         and HAVE_GETHOSTNAME.
46072         * modules/gethostname (Depends-on): Add unistd.
46073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46074         (Include): Specify <unistd.h>.
46075         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46076         HAVE_GETHOSTNAME.
46077         * tests/test-gethostname.c: Include <unistd.h> first.
46078
46079 2008-10-21  Bruno Haible  <bruno@clisp.org>
46080
46081         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46082         * modules/select-tests (Depends-on): Likewise.
46083         Reported by Simon Josefsson.
46084
46085 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46086
46087         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46088         * lib/accept.c: New file, based on winsock.c.
46089         * lib/bind.c: New file, based on winsock.c.
46090         * lib/connect.c: New file, based on winsock.c.
46091         * lib/getpeername.c: New file, based on winsock.c.
46092         * lib/getsockname.c: New file, based on winsock.c.
46093         * lib/getsockopt.c: New file, based on winsock.c.
46094         * lib/ioctl.c: New file, based on winsock.c.
46095         * lib/listen.c: New file, based on winsock.c.
46096         * lib/recv.c: New file, based on winsock.c.
46097         * lib/recvfrom.c: New file, based on winsock.c.
46098         * lib/send.c: New file, based on winsock.c.
46099         * lib/sendto.c: New file, based on winsock.c.
46100         * lib/setsockopt.c: New file, based on winsock.c.
46101         * lib/shutdown.c: New file, based on winsock.c.
46102         * lib/socket.c: New file, based on winsock.c.
46103         * lib/w32sock.h: New file, based on winsock.c.
46104         * lib/winsock.c: Remove file.
46105         * modules/accept: Likewise.
46106         * modules/bind: Likewise.
46107         * modules/connect: Likewise.
46108         * modules/getpeername: Likewise.
46109         * modules/getsockname: Likewise.
46110         * modules/getsockopt: Likewise.
46111         * modules/ioctl: Likewise.
46112         * modules/listen: Likewise.
46113         * modules/recv: Likewise.
46114         * modules/recvfrom: Likewise.
46115         * modules/send: Likewise.
46116         * modules/sendto: Likewise.
46117         * modules/setsockopt: Likewise.
46118         * modules/shutdown: Likewise.
46119         * modules/socket: Use socket.c instead of winsock.c.
46120         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46121         * doc/posix-functions/accept.texi: Doc fix.
46122         * doc/posix-functions/bind.texi: Doc fix.
46123         * doc/posix-functions/close.texi: Doc fix.
46124         * doc/posix-functions/connect.texi: Doc fix.
46125         * doc/posix-functions/getpeername.texi: Doc fix.
46126         * doc/posix-functions/getsockname.texi: Doc fix.
46127         * doc/posix-functions/getsockopt.texi: Doc fix.
46128         * doc/posix-functions/ioctl.texi: Doc fix.
46129         * doc/posix-functions/listen.texi: Doc fix.
46130         * doc/posix-functions/recv.texi: Doc fix.
46131         * doc/posix-functions/recvfrom.texi: Doc fix.
46132         * doc/posix-functions/send.texi: Doc fix.
46133         * doc/posix-functions/sendto.texi: Doc fix.
46134         * doc/posix-functions/setsockopt.texi: Doc fix.
46135         * doc/posix-functions/shutdown.texi: Doc fix.
46136         * doc/posix-functions/socket.texi: Doc fix.
46137
46138 2008-10-20  Bruno Haible  <bruno@clisp.org>
46139
46140         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46141         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46142         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46143         as an alias for SIGABRT.
46144         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46145         (sigaction): Map it to SIGABRT.
46146         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46147
46148 2008-10-20  Bruno Haible  <bruno@clisp.org>
46149
46150         * lib/fts.c: Don't include lstat.h.
46151         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46152
46153         Move the lstat() declaration to <sys/stat.h>.
46154         * lib/lstat.h: Remove file.
46155         * lib/sys_stat.in.h: Add special invocation convention.
46156         (lstat): New declaration.
46157         * lib/lstat.c (orig_lstat): New function.
46158         (rpl_lstat): Use orig_lstat instead of lstat.
46159         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46160         AC_C_INLINE. Set REPLACE_LSTAT.
46161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46162         and REPLACE_LSTAT.
46163         * modules/lstat (Files): Remove lib/lstat.h.
46164         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46165         (Include): Specify <sys/stat.h> instead of lstat.h.
46166         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46167         REPLACE_LSTAT.
46168         * NEWS: Mention the change.
46169
46170 2008-10-20  Bruno Haible  <bruno@clisp.org>
46171
46172         * modules/posix_spawn-tests: New file.
46173         * tests/test-posix_spawn3.c: New file.
46174
46175 2008-10-20  Bruno Haible  <bruno@clisp.org>
46176
46177         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46178         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46179         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46180         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46181         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46182
46183 2008-10-20  Bruno Haible  <bruno@clisp.org>
46184
46185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46186         of posix_spawn on AIX 5.3.
46187
46188 2008-10-20  Bruno Haible  <bruno@clisp.org>
46189
46190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46191
46192 2008-10-20  Bruno Haible  <bruno@clisp.org>
46193
46194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46195         of AC_LANG_PROGRAM.
46196
46197 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46198
46199         * lib/netdb.in.h: Don't define GNU specific constants until they
46200         are supported or needed.  Reported by Bruno Haible
46201         <bruno@clisp.org>.
46202
46203 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46204
46205         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46206
46207 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46208
46209         * lib/getaddrinfo.h: Remove file.
46210         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46211         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46212         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46213         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46214         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46215         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46216         * tests/test-getaddrinfo.c: Likewise.
46217         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46218         * NEWS: Mention change.
46219
46220 2008-10-19  Bruno Haible  <bruno@clisp.org>
46221
46222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46223
46224 2008-10-19  Bruno Haible  <bruno@clisp.org>
46225
46226         * lib/wait-process.c: Include simply <sys/wait.h>.
46227         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46228         WIFSTOPPED): Remove fallback definitions.
46229         * modules/wait-process (Depends-on): Add sys_wait.
46230
46231         New module 'sys_wait'.
46232         * modules/sys_wait: New file.
46233         * lib/sys_wait.in.h: New file, partially copied from
46234         lib/wait-process.c.
46235         * m4/sys_wait_h.m4: New file.
46236         * doc/posix-headers/sys_wait.texi: Mention the new module.
46237
46238 2008-10-19  Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46241
46242 2008-10-19  Bruno Haible  <bruno@clisp.org>
46243
46244         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46245         * lib/wait-process.c (WAIT_T): Remove type.
46246         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46247         (wait_subprocess): Update.
46248
46249 2008-10-19  Bruno Haible  <bruno@clisp.org>
46250
46251         New module 'atoll'.
46252         * modules/atoll: New file.
46253         * lib/stdlib.in.h (atoll): New declaration.
46254         * lib/atoll.c: New file, from glibc with modifications.
46255         * m4/atoll.m4: New file.
46256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46257         HAVE_ATOLL.
46258         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46259         * doc/posix-functions/atoll.texi: Mention the new module.
46260
46261 2008-10-19  Bruno Haible  <bruno@clisp.org>
46262
46263         Add strtoull() declaration to <stdlib.h>.
46264         * lib/stdlib.in.h (strtoull): New declaration.
46265         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46266         Set HAVE_STRTOULL.
46267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46268         HAVE_STRTOULL.
46269         * modules/strtoull (Depends-on): Add stdlib.
46270         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46271         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46272         HAVE_STRTOULL.
46273
46274 2008-10-19  Bruno Haible  <bruno@clisp.org>
46275
46276         Add strtoll() declaration to <stdlib.h>.
46277         * lib/stdlib.in.h (strtoll): New declaration.
46278         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46279         Set HAVE_STRTOLL.
46280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46281         HAVE_STRTOLL.
46282         * modules/strtoll (Depends-on): Add stdlib.
46283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46284         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46285
46286 2008-10-19  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/bcopy (Depends-on): Add strings.
46289         (Include): Specify <strings.h>.
46290
46291 2008-10-19  Bruno Haible  <bruno@clisp.org>
46292
46293         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46294
46295 2008-10-19  Bruno Haible  <bruno@clisp.org>
46296
46297         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46298         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46299         mingw.
46300
46301 2008-10-19  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/atanl.c: Don't include isnanl.h.
46304         * lib/cosl.c: Likewise.
46305         * lib/ldexpl.c: Likewise.
46306         * lib/logl.c: Likewise.
46307         * lib/sinl.c: Likewise.
46308         * lib/sqrtl.c: Likewise.
46309         * lib/tanl.c: Likewise.
46310
46311         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46312         * lib/isnanf.h: Remove file.
46313         * lib/isnand.h: Remove file.
46314         * lib/isnanl.h: Remove file.
46315         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46316         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46317         macros.
46318         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46319         HAVE_ISNANF, don't define it as a C macro.
46320         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46321         HAVE_ISNAND, don't define it as a C macro.
46322         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46323         HAVE_ISNANL, don't define it as a C macro.
46324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46325         HAVE_ISNAN[FDL].
46326         * modules/isnanf (Files): Remove lib/isnanf.h.
46327         (Depends-on): Add math.
46328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46329         (Include): Specify <math.h> instead of isnanf.h.
46330         * modules/isnand (Files): Remove lib/isnand.h.
46331         (Depends-on): Add math.
46332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46333         (Include): Specify <math.h> instead of isnand.h.
46334         * modules/isnanl (Files): Remove lib/isnanl.h.
46335         (Depends-on): Add math.
46336         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46337         (Include): Specify <math.h> instead of isnanl.h.
46338         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46339         HAVE_ISNAN[FDL].
46340         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46341         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46342         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46343         * NEWS: Mention the change.
46344
46345 2008-10-18  Bruno Haible  <bruno@clisp.org>
46346
46347         Add getusershell(), setusershell(), endusershell() declarations to
46348         <unistd.h>.
46349         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46350         declarations.
46351         * lib/getusershell.c: Include unistd.h.
46352         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46353         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46354         HAVE_GETUSERSHELL.
46355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46356         and HAVE_GETUSERSHELL.
46357         * modules/getusershell (Depends-on): Add unistd, extensions.
46358         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46359         (Include): Specify <unistd.h>.
46360         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46361         HAVE_GETUSERSHELL.
46362
46363 2008-10-18  Bruno Haible  <bruno@clisp.org>
46364
46365         Add a getloadavg() declaration to <stdlib.h>.
46366         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46367         getloadavg declaration.
46368         (getloadavg): New declaration.
46369         * lib/getloadavg.c: Include <stdlib.h> first.
46370         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46371         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46372         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46374         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46375         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46376         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46377         (Include): Specify <stdlib.h>.
46378         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46379         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46380
46381 2008-10-18  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/dirchownmod.c: Don't include lchmod.h.
46384
46385         Move the lchmod() declaration to <sys/stat.h>.
46386         * lib/lchmod.h: Remove file.
46387         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46388         (lchmod): New declaration, moved here from lib/lchown.h.
46389         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46390         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46392         and HAVE_LCHMOD.
46393         * modules/lchmod (Files): Remove lib/lchmod.h.
46394         (Depends-on): Add sys_stat, extensions.
46395         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46396         (Include): Specify <sys/stat.h> instead of lchmod.h.
46397         * modules/sys_stat (Depends-on): Add link-warning.
46398         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46399         definition of GL_LINK_WARNING.
46400         * NEWS: Mention the change.
46401
46402 2008-10-18  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/fchdir.c: Don't include dirfd.h.
46405         * lib/fts.c: Likewise.
46406         * lib/getcwd.c: Likewise.
46407         * lib/glob.c: Likewise.
46408
46409         Move the dirfd() declaration to <dirent.h>.
46410         * lib/dirfd.h: Remove file.
46411         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46412         (dirfd): New declaration.
46413         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46414         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46415         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46416         HAVE_DECL_DIRFD.
46417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46418         HAVE_DECL_DIRFD.
46419         * modules/dirfd (Files): Remove lib/dirfd.h.
46420         (Depends-on): Add dirent, extensions.
46421         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46422         (Include): Specify <dirent.h> instead of dirfd.h.
46423         * modules/dirent (Depends-on): Add link-warning.
46424         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46425         definition of GL_LINK_WARNING.
46426         * NEWS: Mention the change.
46427
46428 2008-10-18  Bruno Haible  <bruno@clisp.org>
46429
46430         Move the euidaccess() declaration to <unistd.h>.
46431         * lib/euidaccess.h: Remove file.
46432         * lib/unistd.in.h (euidaccess): New declaration.
46433         * lib/euidaccess.c: Don't include euidaccess.h.
46434         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46435         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46437         and HAVE_EUIDACCESS.
46438         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46439         (Depends-on): Add unistd.
46440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46441         (Include): Specify <unistd.h> instead of euidaccess.h.
46442         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46443         HAVE_EUIDACCESS.
46444         * NEWS: Mention the change.
46445
46446 2008-10-18  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46449
46450         Move the getdomainname() declaration to <unistd.h>.
46451         * lib/getdomainname.h: Remove file.
46452         * lib/unistd.in.h (getdomainname): New declaration.
46453         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46454         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46455         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46456         HAVE_GETDOMAINNAME.
46457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46458         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46459         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46460         (Depends-on): Add unistd, extensions.
46461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46462         (Includes): Specify <unistd.h> instead of getdomainname.h.
46463         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46464         HAVE_GETDOMAINNAME.
46465         * NEWS: Mention the change.
46466
46467 2008-10-18  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/dirent: New file.
46470         * m4/dirent_h.m4: New file.
46471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46472         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46473         * modules/fchdir (Files): Remove lib/dirent.in.h.
46474         (Depends-on): Add dirent.
46475         (Makefile.am): Move rules to modules/dirent.
46476         * doc/posix-headers/dirent.texi: Mention the new module.
46477
46478 2008-10-18  Bruno Haible  <bruno@clisp.org>
46479
46480         Avoid -Wunused-parameter warnings in public gnulib header files.
46481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46482         macro.
46483         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46484
46485 2008-10-18  Bruno Haible  <bruno@clisp.org>
46486
46487         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46488         * doc/glibc-functions/error.texi: Mention the module 'error'.
46489         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46490         * doc/glibc-functions/getdomainname.texi: Mention the module
46491         'getdomainname'.
46492         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46493         * doc/glibc-functions/getpagesize.texi: Mention the module
46494         'getpagesize'.
46495         * doc/glibc-functions/getusershell.texi: Mention the module
46496         'getusershell'.
46497         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46498         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46499         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46500         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46501         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46502         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46503         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46504         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46505         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46506         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46507         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46508         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46509         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46510         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46511
46512 2008-10-17  Bruno Haible  <bruno@clisp.org>
46513
46514         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46515         HP-UX and IRIX, use -0.0L.
46516         * tests/test-ceill.c (minus_zero): Likewise.
46517         * tests/test-floorl.c (minus_zero): Likewise.
46518         * tests/test-frexpl.c (minus_zero): Likewise.
46519         * tests/test-isnan.c (minus_zerol): Likewise.
46520         * tests/test-isnanl.h (minus_zero): Likewise.
46521         * tests/test-ldexpl.c (minus_zero): Likewise.
46522         * tests/test-roundl.c (minus_zero): Likewise.
46523         * tests/test-signbit.c (minus_zerol): Likewise.
46524         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46525         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46526         * tests/test-truncl.c (minus_zero): Likewise.
46527         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46528         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46529         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46530         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46531
46532 2008-10-17  Bruno Haible  <bruno@clisp.org>
46533
46534         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46535         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46536         that it gets activated only for gcc >= 3.0.
46537         * lib/dirent.in.h: Likewise.
46538         * lib/errno.in.h: Likewise.
46539         * lib/fcntl.in.h: Likewise.
46540         * lib/float.in.h: Likewise.
46541         * lib/iconv.in.h: Likewise.
46542         * lib/inttypes.in.h: Likewise.
46543         * lib/locale.in.h: Likewise.
46544         * lib/math.in.h: Likewise.
46545         * lib/netdb.in.h: Likewise.
46546         * lib/netinet_in.in.h: Likewise.
46547         * lib/search.in.h: Likewise.
46548         * lib/signal.in.h: Likewise.
46549         * lib/spawn.in.h: Likewise.
46550         * lib/stdarg.in.h: Likewise.
46551         * lib/stdint.in.h: Likewise.
46552         * lib/stdio.in.h: Likewise.
46553         * lib/stdlib.in.h: Likewise.
46554         * lib/string.in.h: Likewise.
46555         * lib/strings.in.h: Likewise.
46556         * lib/sys_file.in.h: Likewise.
46557         * lib/sys_ioctl.in.h: Likewise.
46558         * lib/sys_select.in.h: Likewise.
46559         * lib/sys_socket.in.h: Likewise.
46560         * lib/sys_stat.in.h: Likewise.
46561         * lib/sys_time.in.h: Likewise.
46562         * lib/sysexits.in.h: Likewise.
46563         * lib/time.in.h: Likewise.
46564         * lib/unistd.in.h: Likewise.
46565         * lib/wchar.in.h: Likewise.
46566         * lib/wctype.in.h: Likewise.
46567         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46568
46569 2008-10-17  Jim Meyering  <meyering@redhat.com>
46570
46571         ignore-value: don't depend on inline module
46572         * modules/ignore-value (Depends-on): Remove 'inline'.
46573         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46574         Suggestion from Bruno Haible.
46575
46576 2008-10-17  Bruno Haible  <bruno@clisp.org>
46577
46578         New implementation of condition variables for Win32.
46579         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46580         (gl_linked_waitqueue_t): New type.
46581         (gl_cond_t): Use it.
46582         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46583         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46584         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46585         (glthread_cond_init_func, glthread_cond_wait_func,
46586         glthread_cond_timedwait_func, glthread_cond_signal_func,
46587         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46588         Reimplemented on the basis of gl_linked_waitqueue_t.
46589         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46590         gl_waitqueue_t.
46591         (gl_rwlock_t): Update.
46592         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46593
46594 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46595
46596         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46597         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46598
46599 2008-10-17  Jim Meyering  <meyering@redhat.com>
46600
46601         ignore-value: new module
46602         * modules/ignore-value: New file.
46603         * lib/ignore-value.h: New file.
46604         * MODULES.html.sh (Compiler warning management): New section,
46605         just for this module.  More to come.
46606
46607 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46608
46609         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46610         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46611         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46612
46613 2008-10-16  Jim Meyering  <meyering@redhat.com>
46614
46615         openat-die.c: avoid 'no previous prototype' warning
46616         * lib/openat-die.c: Include "openat.h".
46617         Reported by Reuben Thomas <rrt@sc3d.org>.
46618
46619 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46620
46621         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46622         * lib/netdb.in.h: Fix typo.
46623         Reported by Bruno Haible  <bruno@clisp.org>
46624
46625         * lib/netdb.in.h: Include sys/socket.h for platforms without
46626         netdb.h, to get structures like hostent on MinGW.
46627         * modules/netdb (Depends-on): Add sys_socket.
46628
46629 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46630
46631         * modules/netdb, modules/netdb-tests: New file.
46632         * m4/netdb_h.m4: New file.
46633         * lib/netdb.in.h: Add, currently just an empty file pending
46634         definitions.
46635         * tests/test-netdb.c: New file.
46636         * doc/posix-headers/netdb.texi: Mention that we replace it if
46637         needed.
46638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46639         netdb.
46640
46641 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46642
46643         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46644         with code.
46645
46646 2008-10-13  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/glthread/cond.c (glthread_cond_wait_func,
46649         glthread_cond_timedwait_func): Add a comment.
46650
46651 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46652
46653         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46654         * tests/test-select.c: Likewise,
46655
46656 2008-10-13  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/glthread/cond.c (glthread_cond_wait_func,
46659         glthread_cond_timedwait_func): Fix variable name.
46660         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46661
46662 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46663
46664         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46666         struct sockaddr.sa_len.
46667         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46668
46669 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46670
46671         * build-aux/pmccabe2html: Add css and css_url parameters.
46672
46673 2008-10-12  Bruno Haible  <bruno@clisp.org>
46674
46675         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46676         calling aclx_get.
46677         Reported by Rainer Tammer <tammer@tammer.net>.
46678
46679 2008-10-12  Bruno Haible  <bruno@clisp.org>
46680
46681         Use msvcrt aware primitives for creation/termination of Win32 threads.
46682         * lib/glthread/thread.c: Include <process.h>.
46683         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46684         (wrapper_func): Update signature.
46685         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46686
46687 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46688             Bruno Haible  <bruno@clisp.org>
46689
46690         Provide a Win32 implementation of the 'cond' module.
46691         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46692         * lib/glthread/cond.c (glthread_cond_init_func,
46693         glthread_cond_wait_func, glthread_cond_timedwait_func,
46694         glthread_cond_signal_func, glthread_cond_broadcast_func,
46695         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46696         * modules/cond (Dependencies): Add gettimeofday.
46697
46698 2008-10-11  Bruno Haible  <bruno@clisp.org>
46699
46700         Make sleep work on older versions of mingw.
46701         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46702         only whether it exists.
46703         * doc/posix-functions/sleep.texi: Mention the problem with older
46704         versions of mingw.
46705
46706 2008-10-11  Bruno Haible  <bruno@clisp.org>
46707
46708         New module 'shutdown'.
46709         * modules/shutdown: New file.
46710         * lib/sys_socket.in.h (shutdown): New declaration.
46711         * lib/winsock.c (shutdown): New function.
46712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46713         GNULIB_SHUTDOWN.
46714         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46715         * doc/posix-functions/shutdown.texi: Document the new module.
46716
46717 2008-10-11  Jim Meyering  <meyering@redhat.com>
46718
46719         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46720
46721 2008-10-11  Bruno Haible  <bruno@clisp.org>
46722
46723         New module 'fclose'.
46724         * modules/fclose: New file.
46725         * lib/stdio.in.h (fclose): New declaration.
46726         * lib/fclose.c: New file.
46727         * m4/fclose.m4: New file.
46728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46729         REPLACE_FCLOSE.
46730         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46731         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46732         REPLACE_FCLOSE.
46733         * modules/close (Depends-on): fclose.
46734         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46735
46736 2008-10-11  Bruno Haible  <bruno@clisp.org>
46737
46738         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46739         set errno and don't call _close.
46740
46741 2008-10-10  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46744         ACL, not afterwards. Fixes test failure on Cygwin.
46745
46746 2008-10-09  Ben Pfaff  <blp@gnu.org>
46747
46748         * build-aux/announce-gen: Fix gnulib version related part of usage
46749         message.  Die with a useful error message if no tarballs are
46750         found.
46751
46752 2008-10-10  Jim Meyering  <meyering@redhat.com>
46753
46754         bootstrap: use git's --depth=N option only if it's supported
46755         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46756         recognize the --depth option.  Reported by Pádraig Brady.
46757
46758 2008-10-09  Bruno Haible  <bruno@clisp.org>
46759
46760         New module 'ioctl'.
46761         * modules/ioctl: New file.
46762         * lib/sys_socket.in.h (ioctl): Remove declaration.
46763         * lib/winsock.c: Include <sys/ioctl.h>.
46764         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46765         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46766         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46767         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46768         * doc/posix-functions/ioctl.texi: Mention the new module.
46769
46770 2008-10-09  Bruno Haible  <bruno@clisp.org>
46771
46772         New module 'sys_ioctl'.
46773         * lib/sys_ioctl.in.h: New file.
46774         * m4/sys_ioctl_h.m4: New file.
46775         * modules/sys_ioctl: New file.
46776         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46777
46778 2008-10-09  Bruno Haible  <bruno@clisp.org>
46779
46780         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46781         * lib/winsock.c: Include <stdarg.h>.
46782         (rpl_ioctl): Change to second argument 'int' and then varargs.
46783
46784 2008-10-09  Bruno Haible  <bruno@clisp.org>
46785
46786         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46787         when the sys_socket module is present and the system has <winsock2.h>.
46788
46789 2008-10-09  Bruno Haible  <bruno@clisp.org>
46790
46791         * doc/posix-functions/close.texi: Mention module 'close' instead of
46792         module 'sys_socket'.
46793
46794 2008-10-09  Bruno Haible  <bruno@clisp.org>
46795
46796         * doc/glibc-headers/sys_ioctl.texi: New file.
46797         * doc/gnulib.texi: Include it.
46798
46799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46800             Bruno Haible  <bruno@clisp.org>
46801
46802         Combine the two replacements of 'close'.
46803         * lib/sys_socket.in.h (close): Define to a reminder to include
46804         <unistd.h>.
46805         (_gl_close_fd_maybe_socket): New declaration.
46806         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46807         * lib/winsock.c (close): Remove undefinition.
46808         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46809         needed for the gnulib module 'close'.
46810         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46811         define to an error symbol or to a warning, if suitable.
46812         * lib/close.c: Include <sys/socket.h>.
46813         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46814         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46815         UNISTD_H_HAVE_WINSOCK2_H.
46816         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46818         UNISTD_H_HAVE_WINSOCK2_H.
46819         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46820         (configure.ac): Set a module indicator.
46821         (Makefile.am): Substitute GNULIB_CLOSE.
46822         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46823         * modules/poll-tests (Depends-on): Add close.
46824         * modules/select-tests (Depends-on): Likewise.
46825
46826 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46827             Bruno Haible  <bruno@clisp.org>
46828
46829         New module 'close'.
46830         * modules/close: New file.
46831         * lib/unistd.in.h (close): Move declaration out of the
46832         FCHDIR_REPLACEMENT scope.
46833         (_gl_unregister_fd): New declaration.
46834         * lib/close.c: New file.
46835         * lib/fchdir.c (rpl_close): Remove function.
46836         * m4/close.m4: New file.
46837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46838         close.
46839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46840         REPLACE_CLOSE.
46841         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46842         REPLACE_CLOSE.
46843         * modules/fchdir (Depends-on): Add close.
46844
46845 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46846             Bruno Haible  <bruno@clisp.org>
46847
46848         * lib/fcntl.in.h (open): Simplify conditionals.
46849         (_gl_register_fd): New declaration.
46850         * lib/fchdir.c (rpl_open): Remove function.
46851         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46852         also.
46853         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46855         open.
46856
46857 2008-10-09  Jim Meyering  <meyering@redhat.com>
46858
46859         GNUmakefile: use the more name-space-friendly "_version"
46860         * top/GNUmakefile (_dummy): Update.
46861         (_version): Rename from "version".
46862
46863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46864             Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46867         rpl_close.
46868         (_gl_register_fd): New function, extracted from rpl_open.
46869         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46870         (rpl_open, rpl_opendir): Use _gl_register_fd.
46871
46872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46873
46874         Fix organization of 'open' replacement.
46875         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46876         (gl_FUNC_OPEN): Use it.
46877         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46878
46879 2008-10-08  Bruno Haible  <bruno@clisp.org>
46880
46881         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46882
46883 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46884
46885         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46886         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46887         listen).
46888
46889 2008-10-08  Eric Blake  <ebb9@byu.net>
46890
46891         GNUmakefile: add 'make version' target
46892         * top/GNUmakefile (_curr-ver): Split version update rules...
46893         (version): ...into a target.
46894
46895 2008-10-07  Bruno Haible  <bruno@clisp.org>
46896
46897         Use a more portable replacement expression for -0.0L.
46898         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46899         instead of -0.0L. Fix m4 quotation.
46900
46901         * tests/test-signbit.c: Include <float.h>.
46902         (minus_zero): New variable.
46903         (test_signbitl): Use minus_zero instead of -zero.
46904         * modules/signbit-tests (Depends-on): Add float.
46905
46906         * tests/test-ceill.c: Include <float.h>.
46907         (zero): Remove variable.
46908         (minus_zero): New variable.
46909         (main): Use minus_zero instead of -zero.
46910         * modules/ceill-tests (Depends-on): Add float.
46911
46912         * tests/test-floorl.c: Include <float.h>.
46913         (zero): Remove variable.
46914         (minus_zero): New variable.
46915         (main): Use minus_zero instead of -zero.
46916         * modules/floorl-tests (Depends-on): Add float.
46917
46918         * tests/test-roundl.c: Include <float.h>.
46919         (zero): Remove variable.
46920         (minus_zero): New variable.
46921         (main): Use minus_zero instead of -zero.
46922         * modules/roundl-tests (Depends-on): Add float.
46923
46924         * tests/test-truncl.c: Include <float.h>.
46925         (zero): Remove variable.
46926         (minus_zero): New variable.
46927         (main): Use minus_zero instead of -zero.
46928         * modules/truncl-tests (Depends-on): Add float.
46929
46930         * tests/test-frexpl.c (zero): Remove variable.
46931         (minus_zero): New variable.
46932         (main): Use minus_zero instead of -zero.
46933         * modules/frexpl-tests (Depends-on): Add float.
46934
46935         * tests/test-isnan.c (zerol): Remove variable.
46936         (minus_zerol): New variable.
46937         (test_long_double): Use minus_zerol instead of -zerol.
46938         * modules/isnan-tests (Depends-on): Add float.
46939
46940         * tests/test-isnanl.h (zero): Remove variable.
46941         (minus_zero): New variable.
46942         (main): Use minus_zero instead of -zero.
46943         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46944         * modules/isnanl-tests (Depends-on): Add float.
46945
46946         * tests/test-ldexpl.c (zero): Remove variable.
46947         (minus_zero): New variable.
46948         (main): Use minus_zero instead of -zero.
46949         * modules/ldexpl-tests (Depends-on): Add float.
46950
46951         * tests/test-snprintf-posix.h (zerol): Remove variable.
46952         (minus_zerol): New variable.
46953         (test_function): Use minus_zerol instead of -zerol.
46954         * modules/snprintf-posix-tests (Depends-on): Add float.
46955         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46956
46957         * tests/test-sprintf-posix.h (zerol): Remove variable.
46958         (minus_zerol): New variable.
46959         (test_function): Use minus_zerol instead of -zerol.
46960         * modules/sprintf-posix-tests (Depends-on): Add float.
46961         * modules/vsprintf-posix-tests (Depends-on): Add float.
46962
46963         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46964         (minus_zerol): New variable.
46965         (test_function): Use minus_zerol instead of -zerol.
46966         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46967
46968         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46969         (minus_zerol): New variable.
46970         (test_function): Use minus_zerol instead of -zerol.
46971         * modules/vasprintf-posix-tests (Depends-on): Add float.
46972
46973 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46974
46975         * MODULES.html.sh (Support for building documentation): Mention
46976         pmccabe2html.  Sort entries.
46977
46978         Add pmccabe2html module, from gnupdf.
46979         * build-aux/pmccabe.css: New file.
46980         * build-aux/pmccabe2html: New file.
46981         * m4/pmccabe2html.m4: New file.
46982         * modules/pmccabe2html: New file.
46983
46984 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46985
46986         flock: new module
46987         * MODULES.html.sh: Add to list of modules.
46988         * lib/flock.c: flock implementation for Windows and Unix systems
46989         which have fcntl.
46990         * doc/glibc-functions/flock.texi: Update documentation.
46991         * lib/sys_file.in.h: <sys/file.h> header file.
46992         * m4/flock.m4: M4 macros.
46993         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46994         * modules/flock: flock module.
46995         * modules/flock-tests: flock tests module.
46996         * modules/sys_file: sys/file.h module.
46997         * tests/test-flock.c: test suite for flock.
46998
46999 2008-10-06  Jim Meyering  <meyering@redhat.com>
47000
47001         bootstrap: check for LT_INIT more portably still ;-)
47002         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47003         Spotted by Bruno Haible.
47004
47005 2008-10-06  Eric Blake  <ebb9@byu.net>
47006
47007         test-signbit: avoid tripping Irix cc bug on -0.0L
47008         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47009         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47010         entire testsuite consistent and avoids an Irix 6.2 bug.
47011
47012 2008-10-05  Bruno Haible  <bruno@clisp.org>
47013             Jim Meyering  <jim@meyering.net>
47014
47015         Add an option for ignoring EPIPE during close_stdout.
47016         * lib/closeout.h: Include <stdbool.h>.
47017         (close_stdout_set_ignore_EPIPE): New declaration.
47018         * lib/closeout.c: Include <stdbool.h>.
47019         (ignore_EPIPE): New variable.
47020         (close_stdout_set_ignore_EPIPE): New function.
47021         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47022         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47023         failure.
47024         * modules/closeout (Depends-on): Add stdbool.
47025
47026 2008-10-05  Bruno Haible  <bruno@clisp.org>
47027
47028         * modules/accept: New file.
47029         * modules/bind: New file.
47030         * modules/connect: New file.
47031         * modules/getpeername: New file.
47032         * modules/getsockname: New file.
47033         * modules/getsockopt: New file.
47034         * modules/listen: New file.
47035         * modules/recv: New file.
47036         * modules/recvfrom: New file.
47037         * modules/send: New file.
47038         * modules/sendto: New file.
47039         * modules/setsockopt: New file.
47040         * modules/socket: New file.
47041         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47042         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47043         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47044         the particular module is requested. Add a link warning when the
47045         particular module is not requested.
47046         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47047         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47048         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47049         the particular module is requested.
47050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47051         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47052         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47053         * modules/sys_socket (Depends-on): Add link-warning.
47054         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47055         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47056         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47057         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47058         GL_LINK_WARNING.
47059         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47060         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47061         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47062         * doc/posix-functions/getpeername.texi: Mention the new module
47063         'getpeername'.
47064         * doc/posix-functions/getsockname.texi: Mention the new module
47065         'getsockname'.
47066         * doc/posix-functions/getsockopt.texi: Mention the new module
47067         'getsockopt'.
47068         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47069         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47070         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47071         * doc/posix-functions/send.texi: Mention the new module 'send'.
47072         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47073         * doc/posix-functions/setsockopt.texi: Mention the new module
47074         'setsockopt'.
47075         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47076         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47077         listen, connect, accept.
47078         * modules/select-tests (Depends-on): Likewise.
47079
47080 2008-10-05  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/winsock.c (strerror): Remove unused #undef.
47083         (rpl_close): Remove unused local variable.
47084
47085         * modules/sys_socket (Depends-on); Add errno.
47086
47087 2008-10-05  Bruno Haible  <bruno@clisp.org>
47088
47089         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47090         (select): Add a link warning when the 'select' module is not used.
47091         * modules/sys_select (Depends-on): Add link-warning.
47092         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47093         Suggested by Paolo Bonzini.
47094
47095 2008-10-05  Jim Meyering  <meyering@redhat.com>
47096
47097         bootstrap: check for LT_INIT more portably
47098         * build-aux/bootstrap: Avoid using grep -E, since it's not
47099         portable enough.  Suggestion from Bruno Haible.
47100
47101 2008-10-05  Bruno Haible  <bruno@clisp.org>
47102
47103         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47104         as being fixed by gnulib.
47105
47106 2008-10-05  Bruno Haible  <bruno@clisp.org>
47107
47108         * modules/select-tests: New file, mostly copied from
47109         modules/sys_select-tests.
47110         * tests/test-select.c: New file, mostly copied from
47111         tests/test-sys_select.c.
47112         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47113         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47114         (Makefile.am): Remove test_sys_select_LDADD.
47115
47116         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47117         to an undefined symbol, for an error message.
47118         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47119         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47120         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47121         winsock-select.c here.
47122         * modules/sys_select (Files): Remove lib/winsock-select.c.
47123         (Depends-on): Remove alloca.
47124         (Makefile.am): Substitute GNULIB_SELECT.
47125         * modules/select: New file.
47126         * doc/posix-functions/select.texi: Update.
47127
47128 2008-10-05  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47131         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47132         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47133         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47134         getdtablesize.
47135         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47136         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47137
47138 2008-10-05  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/getdtablesize-tests: New file.
47141         * tests/test-getdtablesize.c: New file.
47142
47143         New module 'getdtablesize'.
47144         * lib/unistd.in.h (getdtablesize): New declaration.
47145         * lib/getdtablesize.c: New file.
47146         * m4/getdtablesize.m4: New file.
47147         * modules/getdtablesize: New file.
47148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47149         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47150         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47151         HAVE_GETDTABLESIZE.
47152         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47153
47154 2008-10-05  Bruno Haible  <bruno@clisp.org>
47155
47156         * modules/sched (Makefile.am): Fix typo.
47157         Reported by Simon Josefsson.
47158
47159 2008-10-05  Jim Meyering  <meyering@redhat.com>
47160
47161         bootstrap: check for LT_INIT, too
47162         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47163         are deprecated.  Suggestion from Ralf Wildenhues.
47164
47165 2008-10-05  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47168         overriding them by ours.
47169         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47170
47171 2008-10-05  Jim Meyering  <meyering@redhat.com>
47172
47173         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47174         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47175         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47176
47177 2008-10-04  Bruno Haible  <bruno@clisp.org>
47178
47179         * modules/dup2 (License): Change to LGPLv2+.
47180         * modules/sleep (License): Likewise.
47181         * modules/perror (License): Likewise.
47182         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47183         Blake.
47184         * modules/signal (License): Likewise.
47185         * modules/sigprocmask (License): Likewise.
47186         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47187         Meyering.
47188
47189 2008-10-04  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47192         Reported by Rainer Tammer <tammer@tammer.net>.
47193
47194 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47195             Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47198         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47199         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47200
47201 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47202
47203         filevercmp: new module
47204         * lib/filevercmp.h: New function filevercmp comparing version strings.
47205         * lib/filevercmp.c: Implementation of filevercmp function.
47206         * modules/filevercmp: Module metadata.
47207         * tests/test-filevercmp.c: Unit test for new module.
47208         * modules/filevercmp-tests: Unit test metadata.
47209         * MODULES.html.sh: Add filevercmp module.
47210
47211 2008-10-03  Bruno Haible  <bruno@clisp.org>
47212
47213         * lib/c-ctype.h: Add comment.
47214         Reported by Jim Meyering.
47215
47216 2008-10-02  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47219
47220 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47221
47222         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47223         name of bootstrap.conf accordingly.
47224
47225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47226
47227         * build-aux/bootstrap: Install git-merge-changelog configuration
47228         items into .gitconfig if needed.
47229
47230 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47231
47232         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47233         git repository, and initialize/update it accordingly.
47234
47235 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47236
47237         * modules/fsync-tests: New file.
47238         * tests/test-fsync.c: New file.
47239
47240         New module 'fsync'.
47241         * lib/fsync.c: New file.
47242         * m4/fsync.m4: New file.
47243         * modules/fsync: New file.
47244         * lib/unistd.in.h (fsync): New declaration.
47245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47246         GNULIB_FSYNC and HAVE_FSYNC.
47247         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47248         * MODULES.html.sh (posix_functions): Add fsync.
47249         * doc/posix-functions/fsync.texi: Mention the new module.
47250
47251 2008-10-02  Jim Meyering  <meyering@redhat.com>
47252
47253         fts.c: sync with similar code from coreutils' remove.c
47254         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47255         Guard also with "#if defined __linux__", since for now at least,
47256         this code is Linux-kernel-specific.
47257
47258 2008-10-02  Jim Meyering  <meyering@redhat.com>
47259
47260         fts: bug fixes
47261         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47262         Include <sys/vfs.h>, not <sys/statfs.h>.
47263
47264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47265         Include <sys/vfs.h>, not <sys/statfs.h>.
47266
47267 2008-10-01  Bruno Haible  <bruno@clisp.org>
47268
47269         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47271         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47272         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47273         * doc/posix-functions/posix_spawnp.texi: Likewise.
47274         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47275         whether posix_spawn actually works.
47276         * m4/pipe.m4 (gl_PIPE): Likewise.
47277         * modules/execute (Files): Add m4/posix_spawn.m4.
47278         * modules/pipe (Files): Add m4/posix_spawn.m4.
47279         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47280
47281 2008-10-01  Jim Meyering  <meyering@redhat.com>
47282
47283         remove trailing spaces
47284         * NEWS: Likewise.
47285         * lib/poll.c (poll): Likewise.
47286         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47287         * lib/winsock.c (rpl_close): Likewise.
47288         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47289         * modules/yield: Likewise.
47290         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47291         * tests/test-sys_select.c (connect_to_socket): Likewise.
47292
47293         fts.c: adjust a new interface to be more generally useful
47294         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47295         (fts_build): Adjust caller.
47296
47297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47298
47299         * modules/cond-tests: New file.
47300         * tests/test-cond.c: New file.
47301
47302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47303             Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/cond (Dependencies): Add errno, time.
47306         * lib/glthread/cond.h: Include <time.h>.
47307         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47308         across platforms.
47309
47310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47311             Bruno Haible  <bruno@clisp.org>
47312
47313         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47314
47315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47316             Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/tls-tests (Depends-on): Add thread, yield.
47319         (configure.ac): Remove all checks.
47320         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47321         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47322         gl_thread_self): Remove definitions. Include glthread/thread.h and
47323         glthread/yield.h instead.
47324         (test_tls): Pass an additional NULL argument to gl_thread_join.
47325
47326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47327             Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/lock-tests (Depends-on): Add thread, yield.
47330         (configure.ac): Remove all checks.
47331         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47332         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47333         gl_thread_self): Remove definitions. Include glthread/thread.h and
47334         glthread/yield.h instead.
47335         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47336         additional NULL argument to gl_thread_join.
47337
47338 2008-09-30  Bruno Haible  <bruno@clisp.org>
47339
47340         Fix the Win32 implementation of the 'thread' module.
47341         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47342         pointer type.
47343         (gl_thread_self): Invoke gl_thread_self_func.
47344         (gl_thread_self_func): New declaration.
47345         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47346         (do_init_self_key, init_self_key): New functions.
47347         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47348         Remove some fields.
47349         (running_threads, running_lock): Remove variables.
47350         (get_current_thread_handle): New function.
47351         (gl_thread_self_func, wrapper_func, glthread_create_func,
47352         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47353         simplified.
47354
47355 2008-09-30  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47358         files.
47359
47360 2008-09-30  Jim Meyering  <meyering@redhat.com>
47361
47362         fts.m4: correct the test for statfs.f_type
47363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47364         when checking for statfs.f_type.
47365
47366 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47367
47368         tests: avoid some compiler warnings
47369         * tests/test-memchr.c (main): Pass NULL indirectly.
47370         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47371
47372 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47373
47374         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47375         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47376         exactly specified dayshifts.
47377         (dayshift): New rule.
47378         (rel): Add dayshift.
47379         (relative_time_table) [tomorrow, yesterday, today, now]:
47380         Use tDAY_SHIFT in place of tDAY_UNIT.
47381         * tests/test-getdate.c: Add tests for now-disallowed countable
47382         dayshifts, e.g., "4 yesterday ago".
47383
47384 2008-09-29  Bruno Haible  <bruno@clisp.org>
47385
47386         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47387         * tests/test-posix_spawn1.in.sh: Renamed from
47388         tests/test-posix_spawn.in.sh.
47389         * tests/test-posix_spawn2.c: New file.
47390         * tests/test-posix_spawn2.in.sh: New file.
47391         * modules/posix_spawnp-tests (Files): Update.
47392         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47393
47394 2008-09-29  Bruno Haible  <bruno@clisp.org>
47395
47396         Propagate effects of putenv/setenv/unsetenv to child processes.
47397         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47398         * lib/pipe.c (create_pipe): Likewise.
47399
47400 2008-09-29  Bruno Haible  <bruno@clisp.org>
47401
47402         Enable use of shell scripts as executables in mingw.
47403         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47404         run the program as a shell script.
47405         * lib/pipe.c (create_pipe): Likewise.
47406         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47407         resulting array.
47408
47409 2008-09-29  Eric Blake  <ebb9@byu.net>
47410
47411         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47412
47413 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47414
47415         * doc/posix-functions/accept.texi: Update mingw problems.
47416         * doc/posix-functions/bind.texi: Update mingw problems.
47417         * doc/posix-functions/close.texi: Update mingw problems.
47418         * doc/posix-functions/connect.texi: Update mingw problems.
47419         * doc/posix-functions/getpeername.texi: Update mingw problems.
47420         * doc/posix-functions/getsockname.texi: Update mingw problems.
47421         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47422         * doc/posix-functions/ioctl.texi: Update mingw problems.
47423         * doc/posix-functions/listen.texi: Update mingw problems.
47424         * doc/posix-functions/recv.texi: Update mingw problems.
47425         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47426         * doc/posix-functions/select.texi: Update mingw problems.
47427         * doc/posix-functions/send.texi: Update mingw problems.
47428         * doc/posix-functions/sendto.texi: Update mingw problems.
47429         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47430         * doc/posix-functions/socket.texi: Update mingw problems.
47431
47432 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47433             Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/sys_select.in.h: Include sys/time.h.
47436         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47437         * modules/sys_select: Depend on sys_time.
47438         * tests/test-sys_select.c: Test that sys/select.h defines struct
47439         timeval fully.
47440
47441 2008-09-29  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47444         * lib/sys_select.in.h: Likewise.
47445
47446 2008-09-29  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47449
47450 2008-09-29  Bruno Haible  <bruno@clisp.org>
47451
47452         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47453         Set LIBSOCKET instead of augmenting LIBS.
47454         * modules/sockets (Link): New section.
47455         * modules/sockets-tests (test_sockets_LDADD): New variable.
47456         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47457         * modules/poll-tests (test_poll_LDADD): New variable.
47458         * NEWS: Document the change.
47459
47460 2008-09-29  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47463         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47464         ARPA_INET_H directly.
47465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47466
47467 2008-09-28  Bruno Haible  <bruno@clisp.org>
47468
47469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47470         from gl_HEADER_SYS_SOCKET.
47471         (gl_HEADER_SYS_SOCKET): Invoke it.
47472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47473
47474 2008-09-28  Bruno Haible  <bruno@clisp.org>
47475
47476         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47477         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47478         Needed on OSF/1 4.0.
47479
47480 2008-09-28  Bruno Haible  <bruno@clisp.org>
47481
47482         Override open more carefully.
47483         * lib/open.c (orig_open): New function.
47484         (rpl_open): Use orig_open instead of open.
47485         * lib/fcntl.in.h: Add special invocation convention.
47486         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47487         (gl_FUNC_OPEN): Invoke it.
47488
47489         Override freopen more carefully.
47490         * lib/freopen.c (orig_freopen): New function.
47491         (rpl_freopen): Use orig_freopen instead of freopen.
47492         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47493         (gl_FUNC_FREOPEN): Invoke it.
47494
47495         Override fopen more carefully.
47496         * lib/fopen.c (orig_fopen): New function.
47497         (rpl_fopen): Use orig_fopen instead of fopen.
47498         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47499         (gl_FUNC_FOPEN): Invoke it.
47500         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47501
47502 2008-09-28  Bruno Haible  <bruno@clisp.org>
47503
47504         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47505         SIGPIPE.
47506
47507 2008-09-28  Bruno Haible  <bruno@clisp.org>
47508
47509         * tests/test-sigaction.c (handler, main): Disable the check whether
47510         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47511         glibc systems with LinuxThreads.
47512
47513 2008-09-28  Bruno Haible  <bruno@clisp.org>
47514
47515         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47516
47517         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47518         with AIX xlc.
47519         * lib/fcntl.in.h (open): Likewise.
47520         Reported by Rainer Tammer <tammer@tammer.net>.
47521
47522 2008-09-28  Bruno Haible  <bruno@clisp.org>
47523
47524         * modules/posix_spawnp-tests: New file.
47525         * tests/test-posix_spawn.c: New file.
47526         * tests/test-posix_spawn.in.sh: New file.
47527
47528         New module 'posix_spawnp'.
47529         * modules/posix_spawnp: New file.
47530         * lib/spawnp.c: New file, from GNU libc with modifications.
47531         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47532
47533         New module 'posix_spawn'.
47534         * modules/posix_spawn: New file.
47535         * lib/spawn.c: New file, from GNU libc with modifications.
47536         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47537
47538         New module 'posix_spawnattr_destroy'.
47539         * modules/posix_spawnattr_destroy: New file.
47540         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47541         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47542         module.
47543
47544         New module 'posix_spawnattr_setsigmask'.
47545         * modules/posix_spawnattr_setsigmask: New file.
47546         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47547         modifications.
47548         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47549         new module.
47550
47551         New module 'posix_spawnattr_getsigmask'.
47552         * modules/posix_spawnattr_getsigmask: New file.
47553         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47554         modifications.
47555         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47556         new module.
47557
47558         New module 'posix_spawnattr_setsigdefault'.
47559         * modules/posix_spawnattr_setsigdefault: New file.
47560         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47561         modifications.
47562         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47563         new module.
47564
47565         New module 'posix_spawnattr_getsigdefault'.
47566         * modules/posix_spawnattr_getsigdefault: New file.
47567         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47568         modifications.
47569         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47570         new module.
47571
47572         New module 'posix_spawnattr_setschedpolicy'.
47573         * modules/posix_spawnattr_setschedpolicy: New file.
47574         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47575         modifications.
47576         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47577         new module.
47578
47579         New module 'posix_spawnattr_getschedpolicy'.
47580         * modules/posix_spawnattr_getschedpolicy: New file.
47581         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47582         modifications.
47583         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47584         new module.
47585
47586         New module 'posix_spawnattr_setschedparam'.
47587         * modules/posix_spawnattr_setschedparam: New file.
47588         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47589         modifications.
47590         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47591         new module.
47592
47593         New module 'posix_spawnattr_getschedparam'.
47594         * modules/posix_spawnattr_getschedparam: New file.
47595         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47596         modifications.
47597         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47598         new module.
47599
47600         New module 'posix_spawnattr_setpgroup'.
47601         * modules/posix_spawnattr_setpgroup: New file.
47602         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47603         modifications.
47604         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47605         module.
47606
47607         New module 'posix_spawnattr_getpgroup'.
47608         * modules/posix_spawnattr_getpgroup: New file.
47609         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47610         modifications.
47611         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47612         module.
47613
47614         New module 'posix_spawnattr_setflags'.
47615         * modules/posix_spawnattr_setflags: New file.
47616         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47617         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47618         module.
47619
47620         New module 'posix_spawnattr_getflags'.
47621         * modules/posix_spawnattr_getflags: New file.
47622         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47623         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47624         module.
47625
47626         New module 'posix_spawnattr_init'.
47627         * modules/posix_spawnattr_init: New file.
47628         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47629         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47630         module.
47631
47632         New module 'posix_spawn_file_actions_destroy'.
47633         * modules/posix_spawn_file_actions_destroy: New file.
47634         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47635         modifications.
47636         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47637         the new module.
47638
47639         New module 'posix_spawn_file_actions_addopen'.
47640         * modules/posix_spawn_file_actions_addopen: New file.
47641         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47642         modifications.
47643         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47644         the new module.
47645
47646         New module 'posix_spawn_file_actions_adddup2'.
47647         * modules/posix_spawn_file_actions_adddup2: New file.
47648         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47649         modifications.
47650         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47651         the new module.
47652
47653         New module 'posix_spawn_file_actions_addclose'.
47654         * modules/posix_spawn_file_actions_addclose: New file.
47655         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47656         modifications.
47657         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47658         the new module.
47659
47660         New module 'posix_spawn_file_actions_init'.
47661         * modules/posix_spawn_file_actions_init: New file.
47662         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47663         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47664         new module.
47665
47666         New module 'posix_spawn-internal'.
47667         * modules/posix_spawn-internal: New file.
47668         * lib/spawn_int.h: New file, from GNU libc with modifications.
47669         * lib/spawni.c: New file, from GNU libc with modifications.
47670         * m4/posix_spawn.m4: New file.
47671
47672         New module 'spawn'.
47673         * modules/spawn: New file.
47674         * lib/spawn.in.h: New file, from GNU libc with modifications.
47675         * m4/spawn_h.m4: New file.
47676         * doc/posix-headers/spawn.texi: Mention the new module.
47677
47678 2008-09-28  Bruno Haible  <bruno@clisp.org>
47679
47680         * modules/sched-tests: New file.
47681         * tests/test-sched.c: New file.
47682
47683         New module 'sched'.
47684         * modules/sched: New file.
47685         * lib/sched.in.h: New file.
47686         * m4/sched_h.m4: New file.
47687         * doc/posix-headers/sched.texi: Mention the new module.
47688
47689 2008-09-27  Eric Blake  <ebb9@byu.net>
47690
47691         Fix previous patch, and tweak references to $0.
47692         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47693         (func_version, func_gnulib_dir): Don't call this program
47694         gnulib-tool.
47695         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47696         with using $0 in function.
47697         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47698         (func_fatal_error): Reuse the name the user invoked us with.
47699
47700 2008-09-27  Bruno Haible  <bruno@clisp.org>
47701
47702         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47703         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47704         (gl_ICONV_H): Not here.
47705         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47706         instead of assigning ICONV_H directly.
47707
47708         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47710         WCHAR_H directly.
47711
47712 2008-09-27  Bruno Haible  <bruno@clisp.org>
47713
47714         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47715         * modules/arpa_inet (Depends-on): Add link-warning.
47716         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47717         * modules/unistd (Makefile.am): Likewise.
47718
47719 2008-09-26  Bruno Haible  <bruno@clisp.org>
47720
47721         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47722         variables.
47723         (func_version): Essentially copied from gnulib-tool.
47724         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47725         func_readlink): Copied from gnulib-tool.
47726
47727 2008-09-26  Bruno Haible  <bruno@clisp.org>
47728
47729         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47730         invoking git-version-gen.
47731
47732 2008-09-26  Bruno Haible  <bruno@clisp.org>
47733
47734         * posix-modules: Update to directory names changed on 2008-01-19.
47735         Remove commas in output before splitting into words. No more need to
47736         avoid 'ftruncate' since 2007-02-19.
47737
47738 2008-09-26  Bruno Haible  <bruno@clisp.org>
47739
47740         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47741
47742 2008-09-26  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47745         * modules/fwriteerror (Depends-on): Add errno.
47746
47747 2008-09-26  Bruno Haible  <bruno@clisp.org>
47748
47749         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47750         * tests/test-vc-list-files-cvs.sh: Likewise.
47751
47752 2008-09-26  Bruno Haible  <bruno@clisp.org>
47753
47754         * doc/posix-headers/sys_resource.texi: Reorder items.
47755
47756 2008-09-26  Jim Meyering  <meyering@redhat.com>
47757
47758         fts: tweak inode comparison function
47759         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47760         inode numbers, as documented.
47761
47762         fts: sort dirent entries on inode number before traversing
47763         This avoids a quadratic, seek-related performance penalty when
47764         operating on a directory containing many entries (measurable at 10k;
47765         3.5 hours at 2 million entries with a cold cache) on certain types
47766         of file systems, including ext3 and ext4, but not tmpfs.
47767         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47768         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47769         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47770         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47771         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47772         (fts_build): Set the stat.st_ino member from D_INO.
47773         If it is likely to be useful, sort dirent entries on inode number.
47774
47775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47776         and the struct statfs.f_type member.
47777         * modules/fts (Depends-on): Add d-ino.
47778
47779 2008-09-26  Bruno Haible  <bruno@clisp.org>
47780
47781         * modules/sigpipe-die (Depends-on): Add sigpipe.
47782
47783         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47784         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47785         and GNULIB_STDIO_H_SIGPIPE are set.
47786         * lib/stdio-write.c: New file.
47787         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47788         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47789         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47790         REPLACE_STDIO_WRITE_FUNCS.
47791         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47792         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47793         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47794         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47795         * modules/stdio (Files): Add lib/stdio-write.c.
47796         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47797         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47798         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47799         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47800         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47801         REPLACE_FPRINTF_POSIX.
47802         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47803         REPLACE_PRINTF_POSIX.
47804         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47805         REPLACE_VFPRINTF_POSIX.
47806         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47807         REPLACE_VPRINTF_POSIX.
47808         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47809         SIGPIPE issue.
47810         * doc/posix-functions/fputc.texi: Likewise.
47811         * doc/posix-functions/fputs.texi: Likewise.
47812         * doc/posix-functions/fwrite.texi: Likewise.
47813         * doc/posix-functions/printf.texi: Likewise.
47814         * doc/posix-functions/putc.texi: Likewise.
47815         * doc/posix-functions/putchar.texi: Likewise.
47816         * doc/posix-functions/puts.texi: Likewise.
47817         * doc/posix-functions/vfprintf.texi: Likewise.
47818         * doc/posix-functions/vprintf.texi: Likewise.
47819
47820         * modules/safe-write (Depends-on): Add write.
47821
47822         * modules/sigpipe-tests: New file.
47823         * tests/test-sigpipe.c: New file.
47824         * tests/test-sigpipe.sh: New file.
47825
47826         * modules/write: New file.
47827         * lib/unistd.in.h: Include <sys/types.h>.
47828         (write): New declaration.
47829         * lib/write.c: New file.
47830         * m4/write.m4: New file.
47831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47832         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47833         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47834         GNULIB_WRITE, REPLACE_WRITE.
47835         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47836         and the SIGPIPE issue.
47837
47838         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47839         (raise): New declaration.
47840         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47841         (ext_signal): New function.
47842         (rpl_raise): New function.
47843         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47844         GNULIB_SIGNAL_H_SIGPIPE.
47845         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47846         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47847
47848         * modules/sigpipe: New file.
47849         * m4/sigpipe.m4: New file.
47850
47851 2008-09-25  Derek Price  <derek@ximbiot.com>
47852             Bruno Haible  <bruno@clisp.org>
47853
47854         * gnulib-tool (func_import): Report all license incompatibilities, not
47855         just the first one.
47856
47857 2008-09-25  Bruno Haible  <bruno@clisp.org>
47858
47859         * gnulib-tool (func_import): When computing the edits, consider not
47860         only the Makefile.ams that exist but also those that will be generated.
47861
47862 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47863
47864         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47865         fixes gnulib-tool --test warning about duplicate dependency.
47866
47867 2008-09-25  Bruno Haible  <bruno@clisp.org>
47868
47869         * gnulib-tool: Don't ask the user to perform edits in the generated
47870         Makefile.ams.
47871         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47872         apply to the Makefile.am being generated.
47873         (func_emit_tests_Makefile_am): Execute edits that apply to the
47874         Makefile.am being generated.
47875         (func_import): Setup list of Makefile.am edits before emitting the
47876         Makefile.ams, not at the end.
47877         (func_create_testdir): Update.
47878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47879
47880 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47881
47882         * gnulib-tool (func_import): Store the --tests-base option in the
47883         comment in gnulib-cache.m4.
47884
47885 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47886
47887         * NEWS: Document increased portability that sys_select now provides.
47888
47889         * lib/sys_select.in.h: Install select wrapper.
47890         * lib/sys_socket.in.h: Use more descriptive name when there is no
47891         select wrapper.
47892         * lib/winsock-select.c: New.
47893         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47894         Require gl_HEADER_SYS_SOCKET.
47895         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47896         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47897         * tests/test-sys_select.c: Add functional tests.
47898
47899 2008-09-24  Eric Blake  <ebb9@byu.net>
47900
47901         open, fopen: close fd leak in last patch
47902         * lib/open.c (rpl_open): Close fd before returning error.
47903         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47904         * doc/posix-functions/open.texi (open): Document that Irix also
47905         has the bug.
47906         * doc/posix-functions/fopen.texi (fopen): Likewise.
47907         Reported by Paolo Bonzini.
47908
47909 2008-09-24  Bruno Haible  <bruno@clisp.org>
47910
47911         Ensure that a filename ending in a slash cannot be used to access a
47912         non-directory.
47913         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47914         to check whether it's really a directory.
47915         * lib/fopen.c: Include fcntl.h, unistd.h.
47916         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47917         and fdopen().
47918         * modules/fopen (Depends-on): Add unistd.
47919         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47920         * tests/test-fopen.c (main): Likewise.
47921         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47922         * doc/posix-functions/fopen.texi: Likewise.
47923         Reported by Eric Blake.
47924
47925 2008-09-23  Eric Blake  <ebb9@byu.net>
47926
47927         c-stack: avoid compiler optimizations when provoking overflow
47928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47929         recursion harder to optimize, to ensure a stack overflow occurs.
47930         * tests/test-c-stack.c (recurse): Likewise.
47931         Borrowed from libsigsegv.
47932
47933         c-stack: work around Irix sigaltstack bug
47934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47935         whether sigaltstack uses wrong end of stack_t (copied in part from
47936         libsigsegv).
47937         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47938         Irix bug, without requiring an over-allocation.
47939         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47940         bug.
47941
47942         fopen: document mingw bug on directories
47943         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47944         not allowing a stream visiting a directory, even though reading
47945         from such a stream is not portable.
47946
47947 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47948
47949         * lib/poll.c: Rewrite.
47950         * modules/poll: Depend on alloca.
47951
47952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47953
47954         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47955         instead define prototypes for a full set of wrappers.  Ensure
47956         that Cygwin does not use the compatibility code, which is only
47957         for MinGW.
47958         * lib/winsock.c: New.
47959         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47960         * modules/sys_socket: Add lib/winsock.c.
47961
47962         * modules/poll-tests: Add errno and perror.
47963         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47964
47965 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47966
47967         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47968
47969 2008-09-23  Bruno Haible  <bruno@clisp.org>
47970
47971         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47972         * doc/glibc-functions/*: Likewise.
47973
47974 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47975
47976         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47977         success.
47978
47979 2008-09-22  Eric Blake  <ebb9@byu.net>
47980             Bruno Haible  <bruno@clisp.org>
47981
47982         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47983         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47984         supply %A but mishandle pseudo-NaN.
47985         Reported by Simon Josefsson.
47986
47987 2008-09-21  Bruno Haible  <bruno@clisp.org>
47988
47989         * tests/test-lock.c (main): Tweak skip message.
47990         * tests/test-tls.c (main): Likewise.
47991
47992 2008-09-21  Bruno Haible  <bruno@clisp.org>
47993
47994         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47995         whether 'struct sigaction' has sa_sigaction here...
47996         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47997         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47998
47999 2008-09-21  Bruno Haible  <bruno@clisp.org>
48000
48001         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48002         section.
48003         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48004         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48005         the new section.
48006         (Support for obsolete systems lacking POSIX:2001): New section.
48007         (String handling <string.h>): Move strdup to the new section.
48008         Suggested by Simon Josefsson and Paolo Bonzini.
48009
48010 2008-09-21  Bruno Haible  <bruno@clisp.org>
48011
48012         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48013         exponents in %e and %g results on 'long double'. Needed for mingw's
48014         improved *printf functions.
48015         * tests/test-vasprintf-posix.c (test_function): Likewise.
48016         * tests/test-snprintf-posix.h (test_function): Likewise.
48017         * tests/test-sprintf-posix.h (test_function): Likewise.
48018         Reported by Eric Blake.
48019
48020 2008-09-21  Bruno Haible  <bruno@clisp.org>
48021
48022         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48023         * tests/test-sprintf-posix.h (test_function): Likewise.
48024
48025 2008-09-21  Bruno Haible  <bruno@clisp.org>
48026
48027         * modules/getpass (Depends-on): Add strdup-posix.
48028
48029         New module 'strdup-posix'.
48030         * modules/strdup-posix: New file.
48031         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48032         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48034         REPLACE_STRDUP.
48035         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48036         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48038         strdup-posix.
48039
48040         * modules/strdup (Depends-on): Remove malloc-posix.
48041
48042 2008-09-20  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48045         Wildenhues.
48046
48047 2008-09-20  Bruno Haible  <bruno@clisp.org>
48048
48049         Ensure that wint_t gets defined on IRIX 5.3.
48050         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48051         * lib/wctype.in.h (wint_t): Likewise.
48052         (__wctype_wint_t): Remove type.
48053         (isw*): Use wint_t instead of __wctype_wint_t.
48054         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48055         * modules/wchar (Files): Add m4/wint_t.m4.
48056         (Makefile.am): Substitute HAVE_WINT_T.
48057         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48058         * tests/test-wctype.c: Check that wint_t is defined.
48059         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48060         * doc/posix-headers/wctype.texi: Likewise.
48061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48062
48063 2008-09-18  Bruno Haible  <bruno@clisp.org>
48064
48065         * gnulib-tool (func_exit): Update comment.
48066
48067 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48068
48069         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48070         assumes strdup exists and does not depend on strdup to return
48071         ENOMEM on out of memory conditions.
48072
48073 2008-09-18  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48076         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48077         digits for the exponent.
48078
48079 2008-09-18  Jim Meyering  <meyering@redhat.com>
48080             Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/vasnprintf.c (decimal_point_char): Define also if
48083         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48084
48085 2008-09-16  Bruno Haible  <bruno@clisp.org>
48086         and Eric Blake  <ebb9@byu.net>
48087
48088         vasnprintf: support Irix 5.3
48089         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48090         that mishandle long double infinity.
48091         Reported by Tom G. Christensen.
48092
48093 2008-09-16  Bruno Haible  <bruno@clisp.org>
48094
48095         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48096         Solaris 9.
48097         * doc/glibc-functions/alphasort.texi: Likewise.
48098         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48099
48100 2008-09-16  Jim Meyering  <meyering@redhat.com>
48101
48102         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48103         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48104         a umask modification leak out of a subshell.  Otherwise, the
48105         opensolaris /bin/sh would be accepted and thus cause unwarranted
48106         failures in the coreutils test suite.
48107
48108 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48109
48110         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48111         to succeed.
48112
48113 2008-09-16  Jim Meyering  <meyering@redhat.com>
48114
48115         avoid spurious test failure when library is built without ACL support
48116         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48117         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48118         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48119         * tests/test-copy-acl.sh: Likewise.
48120
48121 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48122
48123         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48124         based on character occurrence counts.
48125
48126 2008-09-15  Eric Blake  <ebb9@byu.net>
48127
48128         tests: avoid some compiler warnings
48129         * tests/test-memchr.c (main): Pass NULL indirectly.
48130         * tests/test-closein.c (main): Avoid unused variable.
48131
48132 2008-09-15  Bruno Haible  <bruno@clisp.org>
48133
48134         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48135         are missing on OpenBSD 4.0 individually.
48136         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48137
48138 2008-09-15  Bruno Haible  <bruno@clisp.org>
48139
48140         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48141         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48142         * doc/posix-functions/perror.texi: Likewise.
48143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48144         is missing.
48145         Reported by Eric Blake.
48146
48147         * lib/errno.in.h: Use replacement values >= 2000.
48148         Reported by Eric Blake.
48149
48150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48151
48152         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48153         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48154         limit.
48155         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48156         compareseq was aborted.
48157
48158 2008-09-14  Bruno Haible  <bruno@clisp.org>
48159
48160         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48161         yvec_edit_count.
48162         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48163         (fstrcmp_bounded): Simplify result computation accordingly.
48164
48165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48166
48167         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48168         (fstrcmp): Define in terms of fstrcmp_bounded.
48169         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48170         lower_bound argument.
48171         Return quickly if the result is certainly < lower_bound.
48172         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48173
48174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48175
48176         * lib/diffseq.h (EARLY_ABORT): New macro.
48177         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48178         evaluates to true.
48179
48180 2008-09-14  Bruno Haible  <bruno@clisp.org>
48181
48182         * modules/perror-tests: New file.
48183         * tests/test-perror.sh: New file.
48184         * tests/test-perror.c: New file.
48185
48186         New module 'perror'.
48187         * lib/stdio.in.h (perror): New declaration.
48188         * lib/perror.c: New file.
48189         * m4/perror.m4: New file.
48190         * modules/perror: New file.
48191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48192         * doc/posix-functions/perror.texi: Mention the perror module.
48193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48194         REPLACE_PERROR.
48195         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48196         REPLACE_PERROR.
48197
48198 2008-09-14  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/stdio (Makefile.am): Reorder to match the order in
48201         lib/stdio.in.h.
48202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48203
48204 2008-09-13  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48207
48208 2008-09-13  Bruno Haible  <bruno@clisp.org>
48209
48210         Extend strerror to cover the added errno values.
48211         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48212         (rpl_strerror): Provide error messages for the added errno values and
48213         for the WSA* values.
48214         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48215         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48216         strerror.
48217         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48218         * modules/strerror (Depends-on): Add errno.
48219         * doc/posix-functions/strerror.texi: Document the change.
48220         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48221         and EOVERFLOW.
48222
48223 2008-09-13  Bruno Haible  <bruno@clisp.org>
48224
48225         * modules/EOVERFLOW: Remove file.
48226         * m4/eoverflow.m4: Remove file.
48227         * modules/EOVERFLOW-tests: Remove file.
48228         * tests/test-EOVERFLOW.c: Remove file.
48229         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48230         * modules/ftell (Depends-on): Likewise.
48231         * modules/getdelim (Depends-on): Likewise.
48232         * modules/getugroups (Depends-on): Likewise.
48233         * modules/poll (Depends-on): Likewise.
48234         * modules/snprintf (Depends-on): Likewise.
48235         * modules/sprintf-posix (Depends-on): Likewise.
48236         * modules/vasnprintf (Depends-on): Likewise.
48237         * modules/vasprintf (Depends-on): Likewise.
48238         * modules/vfprintf-posix (Depends-on): Likewise.
48239         * modules/vsnprintf (Depends-on): Likewise.
48240         * modules/vsprintf-posix (Depends-on): Likewise.
48241         * modules/xvasprintf (Depends-on): Likewise.
48242         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48243         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48244         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48245         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48247         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48248         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48249         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48251         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48252         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48254         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48255         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48256         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48257         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48259         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48260         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48261         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48263         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48265         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48266         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48268         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48269         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48270         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48271         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48272         * MODULES.html.sh: Remove EOVERFLOW.
48273         * NEWS: Mention the change.
48274
48275 2008-09-13  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/errno-tests: New file.
48278         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48279
48280         * lib/errno.in.h: New file.
48281         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48282         * modules/errno: New file.
48283         * doc/posix-headers/errno.texi: Update documentation.
48284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48285
48286 2008-09-13  Bruno Haible  <bruno@clisp.org>
48287
48288         * tests/test-poll.c: Use #if for native Windows, rather than testing
48289         __MSVCRT__.
48290
48291 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48292             Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/glob.c: Don't include <pwd.h> on native Windows.
48295         (WINDOWS32): New macro.
48296         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48297
48298 2008-09-13  Bruno Haible  <bruno@clisp.org>
48299
48300         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48301         (ETIMEDOUT): Remove macro.
48302         (glthread_cond_timedwait_multithreaded): New declaration.
48303         (glthread_cond_timedwait): Use it.
48304         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48305         (glthread_cond_timedwait_multithreaded): New function.
48306
48307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48308
48309         * modules/poll-tests: Do not check for io.h.
48310         * tests/test-poll.c: Check for __MSVCRT__ instead.
48311
48312 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48313
48314         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48315         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48316         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48317
48318 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48319
48320         * modules/poll-tests: New.
48321         * tests/test-poll.c: New.
48322
48323 2008-09-12  Eric Blake  <ebb9@byu.net>
48324
48325         frexp: test for NetBSD failure on -0.0
48326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48327         not all, bugs from NetBSD 3.0 have been fixed.
48328         * doc/posix-functions/frexp.texi (frexp): Document bug.
48329         Reported by Thomas Klausner.
48330
48331         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48333         literal -0.0.
48334         Reported by Jonathan C. Patschke <jp@centtech.com>.
48335
48336 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48337
48338         * lib/glthread/cond.h: Use dummy implementation also if
48339         USE_WIN32_THREADS.
48340
48341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48342
48343         * modules/fnmatch-posix (License): Change to LGPLv2+.
48344         * modules/fnmatch-gnu (License): Likewise.
48345
48346 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48347
48348         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48349
48350 2008-09-11  Jim Meyering  <meyering@redhat.com>
48351
48352         * users.txt: Add gtk-vnc.
48353
48354 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48355
48356         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48357         rotate amounts.
48358
48359         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48360         required for 16-bit and 8-bit rotates.
48361         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48362         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48363         UINT8_MAX instead of hard-coded constants.
48364         Suggested by Paul Eggert.
48365
48366 2008-09-07  Bruno Haible  <bruno@clisp.org>
48367
48368         * tests/test-striconveh.c (main): Check behaviour when converting from
48369         UTF-7.
48370
48371         Make striconveh work better with stateful encodings.
48372         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48373         that iconv does not increment the inptr when returning -1/EINVAL.
48374
48375 2008-09-07  Bruno Haible  <bruno@clisp.org>
48376
48377         * build-aux/config.rpath: Update according to libtool-2.2.6.
48378         * build-aux/config.libpath: Likewise.
48379
48380 2008-09-06  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48383         * lib/freadptr.c (freadptr): Likewise.
48384         * lib/freadseek.c (freadptrinc): Likewise.
48385         Reported by Simon Josefsson.
48386
48387 2008-09-06  Bruno Haible  <bruno@clisp.org>
48388
48389         * modules/freadptr (License): Change to LGPLv2+.
48390         * modules/freadseek (License): Likewise.
48391         Suggested by Eric Blake.
48392
48393         * modules/memchr2 (License): Change to LGPLv2+.
48394         Approved by Eric Blake.
48395
48396 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48397             Bruno Haible  <bruno@clisp.org>
48398
48399         Make gnulib-tool work with native 'sed' on AIX.
48400         * gnulib-tool (sed_noop): New variable.
48401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48402         func_add_or_update, func_create_testdir): Use it to initialize sed
48403         script variables.
48404         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48405
48406 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48407             Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48410         also works after #include directives.
48411
48412 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48413
48414         getdate.y: reject an out-of-range timezone value
48415         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48416         the range [-24...+24].  When specified with only one or two digits,
48417         * tests/test-getdate.c: Tests for the fix.
48418         * doc/getdate.texi: Document this change.
48419
48420 2008-09-03  Bruno Haible  <bruno@clisp.org>
48421
48422         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48423
48424 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48425
48426         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48427         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48428         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48429         Blake <ebb9@byu.net>.
48430
48431         * tests/test-bitrotate.c: Add more test vectors.
48432
48433 2008-09-02  Eric Blake  <ebb9@byu.net>
48434
48435         vasnprintf-posix: handle large precision via %.*d
48436         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48437         when handling it ourselves.
48438         * tests/test-vasnprintf-posix.c (test_function): Add test.
48439         * tests/test-snprintf-posix.h (test_function): Likewise.
48440         * tests/test-sprintf-posix.h (test_function): Likewise.
48441         * tests/test-vasprintf-posix.c (test_function): Likewise.
48442         Reported by Alain Guibert.
48443
48444 2008-09-01  Eric Blake  <ebb9@byu.net>
48445
48446         c-stack: make configure-time check more robust
48447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48448         successful sigaction call.
48449         Reported by Tom G. Christensen.
48450
48451 2008-09-01  Bruno Haible  <bruno@clisp.org>
48452
48453         New module 'findprog-lgpl'.
48454         * modules/findprog-lgpl: New file.
48455         * lib/findprog-lgpl.c: New file.
48456         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48457         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48458         to decide whether to use strdup or xstrdup, concatenated_filename or
48459         xconcatenated_filename.
48460
48461 2008-09-01  Bruno Haible  <bruno@clisp.org>
48462
48463         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48464         'xconcat-filename' (GPL).
48465         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48466         (License): Change to LGPLv2+.
48467         * modules/xconcat-filename: New file.
48468         * lib/concat-filename.h (concatenated_filename): Change specification.
48469         (xconcatenated_filename): New declaration.
48470         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48471         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48472         memory situations.
48473         * lib/xconcat-filename.c: New file.
48474         * NEWS: Mention the change.
48475         * lib/findprog.c: Include concat-filename.h, not filename.h.
48476         (find_in_path): Use xconcatenated_filename instead of
48477         concatenated_filename.
48478         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48479         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48480         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48481         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48482         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48483         instead of concatenated_filename.
48484         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48485         (execute_java_class): Use xconcatenated_filename instead of
48486         concatenated_filename.
48487         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48488         * modules/javacomp (Depends-on): Likewise.
48489         * modules/javaexec (Depends-on): Likewise.
48490
48491 2008-09-01  Bruno Haible  <bruno@clisp.org>
48492
48493         Split module 'filename' into 'filename' and 'concat-filename'.
48494         * modules/filename: Keep only lib/filename.h.
48495         (License): Change to LGPLv2+.
48496         * modules/concat-filename: New file, extracted from modules/filename.
48497         * lib/filename.h (concatenated_filename): Remove declaration.
48498         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48499         * lib/concat-filename.c: Include concat-filename.h.
48500         * NEWS: Mention the change.
48501
48502 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48503
48504         * lib/bitrotate.h (rotl8, rotr8): Add.
48505
48506         * modules/bitrotate (configure.ac): Need
48507         AC_REQUIRE([AC_C_INLINE]).
48508         (Description): Mention stdint.h.  Reported by Bruno Haible
48509         <bruno@clisp.org>.
48510
48511         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48512         Paolo Bonzini <bonzini@gnu.org>.
48513
48514 2008-08-31  Bruno Haible  <bruno@clisp.org>
48515
48516         Assume Solaris specific bi-arch conventions on Solaris systems.
48517         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48518         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48520         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48521         like acl_libdirstem.
48522         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48523         acl_libdirstem.
48524         * NEWS: Mention the change.
48525         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48526
48527 2008-08-31  Jim Meyering  <meyering@redhat.com>
48528
48529         * lib/strftime.h: Add comments describing the two added arguments.
48530
48531         remove duplicate #include directives
48532         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48533         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48534
48535 2008-08-31  Bruno Haible  <bruno@clisp.org>
48536
48537         New module 'sigpipe-die'.
48538         * modules/sigpipe-die: New file.
48539         * lib/sigpipe-die.h: New file.
48540         * lib/sigpipe-die.c: New file.
48541         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48542
48543 2008-08-31  Bruno Haible  <bruno@clisp.org>
48544
48545         Don't override previously installed signal handlers.
48546         * lib/fatal-signal.c (saved_sigactions): New variable.
48547         (uninstall_handlers): Reset the signal to the saved handler, not
48548         to SIG_DFL (except when ignored).
48549         (install_handlers): Save the previous handlers.
48550
48551 2008-08-30  Bruno Haible  <bruno@clisp.org>
48552
48553         * gnulib-tool (func_reset_sigpipe): New function.
48554         (func_get_automake_snippet, func_modules_transitive_closure,
48555         func_import): Invoke it before a join command that reads from stdin,
48556         to avoid "echo: write error: Broken pipe" error messages on stderr.
48557         Reported by Sam Steingold <sds@gnu.org>.
48558
48559 2008-08-30  Bruno Haible  <bruno@clisp.org>
48560
48561         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48562         Code copied from m4/open.m4.
48563         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48564         access and the filename ends in a slash. Code copied from lib/open.c.
48565         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48566         * tests/test-fopen.c (main): Check against bug with trailing slash.
48567
48568 2008-08-29  Bruno Haible  <bruno@clisp.org>
48569
48570         Avoid some "gcc -pedantic" warnings.
48571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48572         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48573         * lib/dirent.in.h: Likewise.
48574         * lib/fcntl.in.h: Likewise.
48575         * lib/float.in.h: Likewise.
48576         * lib/iconv.in.h: Likewise.
48577         * lib/inttypes.in.h: Likewise.
48578         * lib/locale.in.h: Likewise.
48579         * lib/math.in.h: Likewise.
48580         * lib/netinet_in.in.h: Likewise.
48581         * lib/search.in.h: Likewise.
48582         * lib/signal.in.h: Likewise.
48583         * lib/stdarg.in.h: Likewise.
48584         * lib/stdint.in.h: Likewise.
48585         * lib/stdio.in.h: Likewise.
48586         * lib/stdlib.in.h: Likewise.
48587         * lib/string.in.h: Likewise.
48588         * lib/strings.in.h: Likewise.
48589         * lib/sys_select.in.h: Likewise.
48590         * lib/sys_socket.in.h: Likewise.
48591         * lib/sys_stat.in.h: Likewise.
48592         * lib/sys_time.in.h: Likewise.
48593         * lib/sysexits.in.h: Likewise.
48594         * lib/time.in.h: Likewise.
48595         * lib/unistd.in.h: Likewise.
48596         * lib/wchar.in.h: Likewise.
48597         * lib/wctype.in.h: Likewise.
48598         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48599         * modules/fchdir (Makefile.am): Likewise.
48600         * modules/fcntl (Makefile.am): Likewise.
48601         * modules/float (Makefile.am): Likewise.
48602         * modules/iconv_open (Makefile.am): Likewise.
48603         * modules/inttypes (Makefile.am): Likewise.
48604         * modules/locale (Makefile.am): Likewise.
48605         * modules/math (Makefile.am): Likewise.
48606         * modules/netinet_in (Makefile.am): Likewise.
48607         * modules/search (Makefile.am): Likewise.
48608         * modules/signal (Makefile.am): Likewise.
48609         * modules/stdarg (Makefile.am): Likewise.
48610         * modules/stdint (Makefile.am): Likewise.
48611         * modules/stdio (Makefile.am): Likewise.
48612         * modules/stdlib (Makefile.am): Likewise.
48613         * modules/string (Makefile.am): Likewise.
48614         * modules/strings (Makefile.am): Likewise.
48615         * modules/sys_select (Makefile.am): Likewise.
48616         * modules/sys_socket (Makefile.am): Likewise.
48617         * modules/sys_stat (Makefile.am): Likewise.
48618         * modules/sys_time (Makefile.am): Likewise.
48619         * modules/sysexits (Makefile.am): Likewise.
48620         * modules/time (Makefile.am): Likewise.
48621         * modules/unistd (Makefile.am): Likewise.
48622         * modules/wchar (Makefile.am): Likewise.
48623         * modules/wctype (Makefile.am): Likewise.
48624         Reported by Reuben Thomas <rrt@sc3d.org>.
48625
48626 2008-08-29  Bruno Haible  <bruno@clisp.org>
48627
48628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48629         any more.
48630
48631 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48632
48633         * MODULES.html.sh (Misc): Add bitrotate.
48634
48635         * modules/bitrotate: New file.
48636
48637         * lib/bitrotate.h: New file.
48638
48639         * modules/bitrotate-tests: New file.
48640
48641         * tests/test-bitrotate.c: New file.
48642
48643         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48644         on the bitrotate module.
48645
48646         * lib/arctwo.c: Use new bitrotate module.
48647
48648 2008-08-29  Jim Meyering  <meyering@redhat.com>
48649
48650         bootstrap: merge changes from coreutils
48651         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48652         of copied files.  Remove a kludge, now that this is fixed.
48653         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48654         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48655         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48656
48657 2008-08-29  Bruno Haible  <bruno@clisp.org>
48658
48659         * MODULES.html.sh: Remove --cvs-urls option.
48660
48661 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48662
48663         maint.mk: adjust to file name change
48664         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48665
48666 2008-08-28  Jim Meyering  <meyering@redhat.com>
48667
48668         * modules/getndelim2 (License): Relicense to LGPLv2+.
48669         Approved by Richard Stallman for the version of 1995, and by
48670         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48671
48672 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48673
48674         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48675         dummy if one is not available.  Do not touch them if
48676         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48677         (getc_maybe_unlocked): New.
48678         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48679
48680 2008-08-26  Eric Blake  <ebb9@byu.net>
48681
48682         doc/INSTALL: resync from autoconf
48683         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48684         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48685         moving...
48686         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48687         * INSTALL: Regenerate.
48688         * INSTALL.ISO: New file.
48689         * INSTALL.UTF-8: Likewise.
48690
48691 2008-08-26  Jim Meyering  <meyering@redhat.com>
48692
48693         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48694         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48695         these definitions conditional, so that they may be overridden, too.
48696
48697 2008-08-26  Bruno Haible  <bruno@clisp.org>
48698
48699         Generate INSTALL file variants with prettier quotes.
48700         * doc/Makefile (INSTALL_PRELUDE): New macro.
48701         (INSTALL): Use it.
48702         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48703
48704 2008-08-26  Bruno Haible  <bruno@clisp.org>
48705
48706         Run makeinfo in an English locale.
48707         * doc/Makefile (MAKEINFO): New variable.
48708
48709 2008-08-26  Bruno Haible  <bruno@clisp.org>
48710
48711         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48712         Suggested by Eric Blake.
48713
48714 2008-08-25  Bruno Haible  <bruno@clisp.org>
48715
48716         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48717
48718 2008-08-25  Eric Blake  <ebb9@byu.net>
48719
48720         c-stack: test that stack overflow can be caught
48721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48722         that platform allows handling stack overflow; at least OS/2 EMX
48723         has sigaltstack, but crashes before transferring control to
48724         handler on stack overflow.
48725         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48726         check for HAVE_STACK_OVERFLOW_HANDLING.
48727         Reported by Elbert Pol.
48728
48729 2008-08-25  Bruno Haible  <bruno@clisp.org>
48730
48731         * doc/posix-functions/strftime.texi: Fix description of strftime
48732         module.
48733
48734 2008-08-24  Bruno Haible  <bruno@clisp.org>
48735
48736         * tests/uniwidth/test-uc_width2.c: New file.
48737         * tests/uniwidth/test-uc_width2.sh: New file.
48738         * modules/uniwidth/width-tests (Files): Add the new files.
48739         (TESTS): Add uniwidth/test-uc_width2.sh.
48740         (TESTS_ENVIRONMENT): New variable.
48741         (check_PROGRAMS): Add test-uc_width2.
48742         (test_uc_width2_SOURCES): New variable.
48743
48744         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48745         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48746         not 0x00AB.
48747         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48748
48749 2008-08-22  Eric Blake  <ebb9@byu.net>
48750
48751         test-lock, test-tls: mention why a test is skipped
48752         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48753         skipped.
48754         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48755
48756         count-one-bits: relax license
48757         * modules/count-one-bits (License): Relicense to LGPLv2+.
48758         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48759
48760 2008-08-22  Andreas Schwab  <schwab@suse.de>
48761
48762         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48763         Remove spurious space in assignment.
48764
48765 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48766
48767         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48768         Paul Eggert <eggert@CS.UCLA.EDU>.
48769
48770 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48771
48772         * modules/gettext: Add m4/threadlib.m4.
48773
48774 2008-08-19  Eric Blake  <ebb9@byu.net>
48775
48776         test-c-stack: fix compilation failure on FreeBSD 5.0
48777         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48778         headers before <sys/resource.h>.
48779         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48780         the bug.
48781         Reported by Nelson H. F. Beebe.
48782
48783         strverscmp: migrate from "strverscmp.h" to <string.h>
48784         * modules/string (Makefile.am): Add new hooks.
48785         * modules/strverscmp (Files): Remove strverscmp.h.
48786         (Depends-on): Add string.
48787         (configure.ac): Add indicator.
48788         (Include): Mention new header.
48789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48790         defaults.
48791         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48792         results.
48793         * lib/strverscmp.h: Delete.
48794         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48795         * tests/test-strverscmp.c (includes): Adjust client.
48796         * lib/check-version.c (includes): Likewise.
48797         * NEWS: Document the change.
48798
48799         strverscmp: add unit test
48800         * modules/strverscmp-tests: New file.
48801         * tests/test-strverscmp.c: Likewise.
48802
48803 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48804
48805         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48806         regarding Windows crypto stuff, from Mono.
48807
48808 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48809
48810         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48811         if present, for intel RND.  Return error on failures.
48812
48813 2008-08-18  Ben Pfaff  <blp@gnu.org>
48814
48815         gitlog-to-changelog: give better diagnostic for failed pipe-open
48816         * build-aux/gitlog-to-changelog: Improve error message: suggest
48817         that the version of Git may be too old.
48818
48819 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48820
48821         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48822         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48823
48824 2008-08-18  Bruno Haible  <bruno@clisp.org>
48825
48826         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48827         pthread_in_use().
48828
48829 2008-08-18  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/glthread/threadlib.c: Include <pthread.h>.
48832
48833 2008-08-18  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48836         glthread_recursive_lock_* macros.
48837         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48838         Fix syntax error.
48839
48840 2008-08-18  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/glthread/thread.c: Avoid forcing a context switch right after
48843         thread creation.
48844
48845 2008-08-17  Bruno Haible  <bruno@clisp.org>
48846
48847         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48848         * lib/glthread/thread.h: Provide Win32 specific implementation.
48849         * modules/thread (Files): Add lib/glthread/thread.c.
48850         (Depends-on): Add lock.
48851         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48852
48853 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48854
48855         New module 'yield'.
48856         * modules/yield: New file.
48857         * lib/glthread/yield.h: New file.
48858         * m4/yield.m4: New file.
48859         * MODULES.html.sh (Multithreading): Add yield.
48860
48861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48862
48863         New module 'thread'.
48864         * modules/thread: New file.
48865         * lib/glthread/thread.h: New file.
48866         * m4/thread.m4: New file.
48867         * MODULES.html.sh (Multithreading): Add thread.
48868
48869 2008-08-17  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/glthread/lock.h: Include <stdlib.h> always.
48872         * lib/glthread/tls.h: Likewise.
48873         * lib/glthread/cond.h: Likewise.
48874
48875 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48876
48877         New module 'cond'.
48878         * modules/cond: New file.
48879         * lib/glthread/cond.h: New file.
48880         * lib/glthread/cond.c: New file.
48881         * m4/cond.m4: New file.
48882         * MODULES.html.sh (Multithreading): Add cond.
48883
48884 2008-08-16  Eric Blake  <ebb9@byu.net>
48885
48886         c-stack: fix regression on Irix 5.3 from 2008-06-21
48887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48888         sa_sigaction...
48889         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48890         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48892         * modules/signal (Makefile.am): Use the value.
48893         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48894         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48895         * doc/posix-headers/signal.texi (signal.h): Document this
48896         portability issue.
48897         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48898         Reported by Tom G. Christensen.
48899
48900 2008-08-17  Bruno Haible  <bruno@clisp.org>
48901
48902         New module 'threadlib'.
48903         * modules/threadlib: New file.
48904         * lib/glthread/threadlib.c: New file, extracted from
48905         lib/glthread/lock.c.
48906         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48907         functions.
48908         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48909         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48910         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48911         macros.
48912         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48913         (gl_DISABLE_THREADS): Remove macro.
48914         * modules/lock (Files): Remove build-aux/config.rpath.
48915         (Depends-on): Remove havelib. Add threadlib.
48916         (configure.ac-early): Remove section.
48917         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48918         * modules/tls (Depends-on): Remove lock. Add threadlib.
48919         (Link): New section, copied from threadlib.
48920         * MODULES.html.sh (Multithreading): Add threadlib.
48921
48922 2008-08-14  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48925         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48926         glthread_rwlock_unlock, glthread_rwlock_destroy,
48927         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48928         glthread_recursive_lock_destroy): Define as macros always.
48929         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48930         glthread_lock_lock.
48931         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48932         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48933         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48934         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48935         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48936         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48937         (glthread_recursive_lock_lock_func): Renamed from
48938         glthread_recursive_lock_lock.
48939         (glthread_recursive_lock_unlock_func): Renamed from
48940         glthread_recursive_lock_unlock.
48941         (glthread_recursive_lock_destroy_func): Renamed from
48942         glthread_recursive_lock_destroy.
48943
48944 2008-08-14  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/glthread/lock.h: Renamed from lib/lock.h.
48947         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48948         * lib/glthread/tls.h: Renamed from lib/tls.h.
48949         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48950         * lib/fstrcmp.c: Update includes.
48951         * lib/strsignal.c: Update includes.
48952         * modules/lock (Files, Makefile.am): Update.
48953         (Include): Change to "glthread/lock.h".
48954         * modules/tls (Files, Makefile.am): Update.
48955         (Include): Change to "glthread/tls.h".
48956         * tests/test-lock.c: Update includes.
48957         * tests/test-tls.c: Update includes.
48958         * NEWS: Mention the renamed header files.
48959
48960 2008-08-11  Jim Meyering  <meyering@redhat.com>
48961
48962         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48963
48964 2008-08-11  Eric Blake  <ebb9@byu.net>
48965
48966         test-c-stack: avoid C99-ism
48967         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48968         before statement.
48969         Reported by Alain Guibert.
48970
48971 2008-08-10  Jim Meyering  <meyering@redhat.com>
48972
48973         ensure that return value of uinttostr et al are not ignored
48974         * lib/inttostr.h (__GNUC_PREREQ): Define.
48975         (__attribute_warn_unused_result__): Define.
48976         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48977
48978 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48979
48980         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48981         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48982
48983 2008-08-07  Jim Meyering  <meyering@redhat.com>
48984
48985         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48986
48987         * modules/mkstemp (License): Relicense under LGPLv2+.
48988         * modules/tempname (License): Likewise.
48989
48990 2008-08-06  Bruno Haible  <bruno@clisp.org>
48991
48992         * lib/poll.c (poll): Further micro-optimization.
48993
48994 2008-08-06  Jim Meyering  <meyering@redhat.com>
48995
48996         inet_pton.c: use locale-independent tolower
48997         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48998         (inet_pton6): Use c_tolower rather than tolower.
48999         * modules/inet_pton (Depends-on): Add c-ctype.
49000
49001 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49002
49003         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49004         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49005
49006 2008-08-06  Jim Meyering  <meyering@redhat.com>
49007
49008         * modules/inet_pton (License): Relicense under LGPLv2+.
49009
49010 2008-08-03  Bruno Haible  <bruno@clisp.org>
49011
49012         Additional non-aborting API for lock and tls.
49013         * lib/lock.h: Include <errno.h>.
49014         (glthread_lock_init): New macro/function.
49015         (gl_lock_init): Define as wrapper around glthread_lock_init.
49016         (glthread_lock_lock): New macro/function.
49017         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49018         (glthread_lock_unlock): New macro/function.
49019         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49020         (glthread_lock_destroy): New macro/function.
49021         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49022         (glthread_rwlock_init): New macro/function.
49023         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49024         (glthread_rwlock_rdlock): New macro/function.
49025         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49026         (glthread_rwlock_wrlock): New macro/function.
49027         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49028         (glthread_rwlock_unlock): New macro/function.
49029         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49030         (glthread_rwlock_destroy): New macro/function.
49031         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49032         (glthread_recursive_lock_init): New macro/function.
49033         (gl_recursive_lock_init): Define as wrapper around
49034         glthread_recursive_lock_init.
49035         (glthread_recursive_lock_lock): New macro/function.
49036         (gl_recursive_lock_lock): Define as wrapper around
49037         glthread_recursive_lock_lock.
49038         (glthread_recursive_lock_unlock): New macro/function.
49039         (gl_recursive_lock_unlock): Define as wrapper around
49040         glthread_recursive_lock_unlock.
49041         (glthread_recursive_lock_destroy): New macro/function.
49042         (gl_recursive_lock_destroy): Define as wrapper around
49043         glthread_recursive_lock_destroy.
49044         (glthread_once): New macro/function.
49045         (gl_once): Define as wrapper around glthread_once.
49046         Update function declarations.
49047         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49048         glthread_rwlock_init. Return error code.
49049         (glthread_rwlock_rdlock_multithreaded): Renamed from
49050         glthread_rwlock_rdlock. Return error code.
49051         (glthread_rwlock_wrlock_multithreaded): Renamed from
49052         glthread_rwlock_wrlock. Return error code.
49053         (glthread_rwlock_unlock_multithreaded): Renamed from
49054         glthread_rwlock_unlock. Return error code.
49055         (glthread_rwlock_destroy_multithreaded): Renamed from
49056         glthread_rwlock_destroy. Return error code.
49057         (glthread_recursive_lock_init_multithreaded): Renamed from
49058         glthread_recursive_lock_init. Return error code.
49059         (glthread_recursive_lock_lock_multithreaded): Renamed from
49060         glthread_recursive_lock_lock. Return error code.
49061         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49062         glthread_recursive_lock_unlock. Return error code.
49063         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49064         glthread_recursive_lock_destroy. Return error code.
49065         (glthread_once_call): Make static.
49066         (glthread_once_multithreaded): Renamed from glthread_once.
49067         * lib/tls.h: Include <errno.h>.
49068         (glthread_tls_key_init): New macro/function.
49069         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49070         (glthread_tls_set): New macro/function.
49071         (gl_tls_set): Define as wrapper around glthread_tls_set.
49072         (glthread_tls_key_destroy): New macro/function.
49073         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49074         Update function declarations.
49075         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49076         glthread_tls_get.
49077         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49078
49079 2008-08-04  Eric Blake  <ebb9@byu.net>
49080
49081         gnumakefile: use space, not TAB, outside of targets
49082         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49083
49084 2008-08-02  Jim Meyering  <meyering@redhat.com>
49085
49086         getdate.y: avoid locale-dependent date parsing failure
49087         In Turkish locales, getdate would fail to recognize keywords
49088         containing a lowercase "i".  The solution is not to rely on
49089         locale-sensitive case-conversion.
49090         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49091         (lookup_word): Use c_toupper in place of toupper.
49092         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49093         Reported by Vefa Bicakci <bicave@superonline.com> in
49094         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49095         * modules/getdate (Depends-on): Add c-ctype.
49096
49097 2008-08-02  Bruno Haible  <bruno@clisp.org>
49098
49099         * gnulib-tool (func_import): When updating or creating a .gitignore
49100         file, prepend each added line with a slash, and ignore leading slashes
49101         from the existing lines.
49102         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49103
49104 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49105
49106         Portability fix for GNU make 3.79.1.
49107         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49108         versions do not understand.
49109
49110 2008-08-01  Bruno Haible  <bruno@clisp.org>
49111
49112         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49113         * tests/test-isnanf.h (zero): New variable.
49114         (main): Avoid literal -0.0f.
49115         * tests/test-isnand.h (zero): New variable.
49116         (main): Avoid literal -0.0.
49117         * tests/test-isnanl.h (zero): New variable.
49118         (main): Avoid literal -0.0L.
49119         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49120         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49121         -0.0, -0.0L.
49122         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49123         (test_signbitd): Avoid literal -0.0.
49124         (test_signbitl): Avoid literal -0.0L.
49125         * tests/test-ceilf1.c (zero): New variable.
49126         (main): Avoid literal -0.0f.
49127         * tests/test-ceill.c (zero): New variable.
49128         (main): Avoid literal -0.0L.
49129         * tests/test-floorf1.c (zero): New variable.
49130         (main): Avoid literal -0.0f.
49131         * tests/test-floorl.c (zero): New variable.
49132         (main): Avoid literal -0.0L.
49133         * tests/test-roundf1.c (zero): New variable.
49134         (main): Avoid literal -0.0f.
49135         * tests/test-round1.c (zero): New variable.
49136         (main): Avoid literal -0.0.
49137         * tests/test-roundl.c (zero): New variable.
49138         (main): Avoid literal -0.0L.
49139         * tests/test-truncf1.c (zero): New variable.
49140         (main): Avoid literal -0.0f.
49141         * tests/test-trunc1.c (zero): New variable.
49142         (main): Avoid literal -0.0.
49143         * tests/test-truncl.c (zero): New variable.
49144         (main): Avoid literal -0.0L.
49145         * tests/test-frexp.c (zero): New variable.
49146         (main): Avoid literal -0.0.
49147         * tests/test-frexpl.c (zero): New variable.
49148         (main): Avoid literal -0.0L.
49149         * tests/test-ldexpl.c (zero): New variable.
49150         (main): Avoid literal -0.0L.
49151         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49152         (zerod, zerol): New variables.
49153         (test_function): Avoid literals -0.0, -0.0L.
49154         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49155         (zerod, zerol): New variables.
49156         (test_function): Avoid literals -0.0, -0.0L.
49157         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49158         (zerod, zerol): New variables.
49159         (test_function): Avoid literals -0.0, -0.0L.
49160         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49161         (zerod, zerol): New variables.
49162         (test_function): Avoid literals -0.0, -0.0L.
49163         * tests/test-strtod.c (zero): New variable.
49164         (main): Avoid literal -0.0.
49165         Reported by Jonathan C. Patschke <jp@centtech.com>.
49166
49167 2008-07-31  Jim Meyering  <meyering@redhat.com>
49168
49169         sha256.h: correct definition of SHA224_DIGEST_SIZE
49170         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49171         Reported by Paulie Pena IV <paulie4@gmail.com>.
49172         Define as 224 / 8, rather than as a literal.
49173         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49174         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49175         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49176
49177 2008-07-31  Bruno Haible  <bruno@clisp.org>
49178
49179         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49180         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49181         Reported by Jonathan Patschke <jp@centtech.com>.
49182
49183 2008-07-31  Bruno Haible  <bruno@clisp.org>
49184
49185         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49186         Reported by Paolo Bonzini <bonzini@gnu.org>.
49187
49188 2008-07-30  Eric Blake  <ebb9@byu.net>
49189
49190         test-strtod: allow compilation without -lm
49191         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49192         Reported by Dennis Clarke <blastwave@gmail.com>.
49193
49194 2008-07-28  Jim Meyering  <meyering@redhat.com>
49195
49196         bootstrap: work also when there are no .po files in po/
49197         * build-aux/bootstrap (update_po_files): Complete the change
49198         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49199
49200 2008-07-27  Jim Meyering  <meyering@redhat.com>
49201
49202         * users.txt: Add zile.
49203
49204 2008-07-26  Ben Pfaff  <blp@gnu.org>
49205
49206         Add missing dependencies on new m4/exponent[fdl].m4 files.
49207         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49208         * modules/isnand-nolibm: Add m4/exponentd.m4.
49209         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49210         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49211         m4/isnan[fdl].m4, because the macros actually used moved.
49212         Reported by Jim Meyering.
49213
49214 2008-07-14  Ben Pfaff  <blp@gnu.org>
49215
49216         Add isinf module.
49217         * lib/isinf.c: New file.
49218         * lib/math.in.h: Define isinf macro if we have decided to replace
49219         it.
49220         * m4/isinf.m4: New file.
49221         * m4/math_h.m4: Initialize and substitute variables for isinf
49222         module.
49223         * modules/isinf: New file.
49224         * modules/isinf-tests: New file.
49225         * modules/math: Add substitutions for new module.
49226         * tests/test-isinf.c: New file.
49227         * doc/posix-functions/isinf.texi: Mention new module.
49228         * MODULES.html.sh: Mention new module.
49229
49230 2008-07-14  Ben Pfaff  <blp@gnu.org>
49231
49232         Factor out some macros for use by additional modules.
49233         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49234         exponentf.m4.
49235         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49236         exponentd.m4.
49237         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49238         file exponentl.m4.
49239         * m4/exponentf.m4: New file.
49240         * m4/exponentd.m4: New file.
49241         * m4/exponentl.m4: New file.
49242         * modules/isnanf: Use new file m4/exponentf.m4.
49243         * modules/isnand: Use new file m4/exponentd.m4.
49244         * modules/isnanl: Use new file m4/exponentl.m4.
49245
49246 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49247
49248         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49249         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49250         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49251         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49252
49253         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49254         readlink on platforms without PATH_MAX.
49255
49256 2008-07-21  Eric Blake  <ebb9@byu.net>
49257
49258         Warn, not fail, on stale version.
49259         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49260
49261         Don't allow installation with stale devel version number.
49262         * top/GNUmakefile (_is-install-target): New macro.
49263         (_curr-ver): Forbid installation with stale version number.
49264
49265 2008-07-20  Bruno Haible  <bruno@clisp.org>
49266
49267         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49268         TESTS_ENVIRONMENT.
49269         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49270
49271 2008-07-20  Bruno Haible  <bruno@clisp.org>
49272
49273         * lib/c-stack.h (c_stack_action): Add documentation.
49274         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49275
49276 2008-07-20  Bruno Haible  <bruno@clisp.org>
49277
49278         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49279         * modules/readlink (License): Likewise.
49280
49281 2008-07-17  Eric Blake  <ebb9@byu.net>
49282
49283         * modules/c-stack (Link): Fix typo.
49284
49285         Make c-stack use libsigsegv, when available.
49286         * modules/c-stack (Depends-on): Add libsigsegv.
49287         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49288         needed.
49289         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49290         (segv_handler, overflow_handler, c_stack_action)
49291         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49292         implementation when libsigsegv is available, but only when using
49293         the library is necessary.
49294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49295         comment, explaining why XSI check fails on Linux.
49296         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49297         * tests/test-c-stack2.sh: Tweak skip message.
49298         * NEWS: Document new link-time requirements.
49299
49300 2008-07-16  Eric Blake  <ebb9@byu.net>
49301
49302         c-stack: Expose false positives when not using libsigsegv.
49303         * modules/c-stack-tests (Files): Expand test.
49304         * tests/test-c-stack.c (main): Add means to conditionally trigger
49305         non-overflow SIGSEGV.
49306         * tests/test-c-stack2.sh: New file.
49307
49308 2008-07-14  Bruno Haible  <bruno@clisp.org>
49309
49310         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49311         Reported by Eric Blake.
49312
49313 2008-07-14  Sam Steingold  <sds@gnu.org>
49314             Bruno Haible  <bruno@clisp.org>
49315
49316         New module libsigsegv.
49317         * modules/libsigsegv: New file.
49318         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49319         modifications.
49320         * MODULES.html.sh (Signal handling): New section.
49321
49322 2008-07-14  Bruno Haible  <bruno@clisp.org>
49323
49324         * modules/unictype/ctype-* (Description): Add the word "function".
49325         Improves the resulting doc in MODULES.html.
49326
49327 2008-07-12  Ben Pfaff  <blp@gnu.org>
49328
49329         Add longlong module.
49330         * modules/longlong: New file.
49331
49332 2008-07-12  Bruno Haible  <bruno@clisp.org>
49333
49334         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49335         to empty.
49336
49337 2008-07-10  Ben Pfaff  <blp@gnu.org>
49338
49339         Add isnan module.
49340         * doc/posix-functions/isnan.texi: Mention new module.
49341         * lib/math.in.h: Define isnan macro if we have decided to replace
49342         it.
49343         * m4/isnan.m4: New file.
49344         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49345         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49346         also.
49347         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49348         redundancy.
49349         * m4/math_h.m4: Initialize and substitute variables for isnan
49350         module.
49351         * modules/isnan: New file.
49352         * modules/isnan-tests: New file.
49353         * modules/math: Add substitutions for new module.
49354         * tests/test-isnan.c: New file.
49355         * MODULES.html.sh: Mention new module.
49356
49357 2008-07-10  Ben Pfaff  <blp@gnu.org>
49358
49359         Add isnanf module.
49360         * lib/isnanf.m4: New file.
49361         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49362         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49363         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49364         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49365         * modules/isnanf: New file.
49366         * modules/isnanf-tests: New file.
49367         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49368         files.
49369         * tests/test-isnanf-nolibm.c: factored most of its contents into
49370         new file tests/test-isnanf.h.
49371         * tests/test-isnanf.h: New file.
49372         * tests/test-isnanf.c: New file.
49373         * MODULES.html.sh: Mention new module.
49374         * doc/glibc-functions/isnanf.texi: Mention new module.
49375
49376 2008-07-10  Ben Pfaff  <blp@gnu.org>
49377
49378         Add isnand module.
49379         * lib/isnand.h: New file.
49380         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49381         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49382         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49383         functionality also.
49384         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49385         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49386         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49387         * modules/isnand: New file.
49388         * modules/isnand-tests: New file.
49389         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49390         files.
49391         * tests/test-isnand-nolibm.c: factored most of its contents into
49392         new file tests/test-isnand.h.
49393         * tests/test-isnand.h: New file.
49394         * tests/test-isnand.c: New file.
49395         * MODULES.html.sh: Mention new module.
49396
49397 2008-07-10  Ben Pfaff  <blp@gnu.org>
49398
49399         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49400         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49401         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49402         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49403         * modules/isnanf-nolibm: Update references to renamed files.
49404         * modules/isnand-nolibm: Likewise.
49405         * modules/isnanf-nolibm-tests: Likewise.
49406         * modules/isnand-nolibm-tests: Likewise.
49407         * lib/frexp.c: Likewise.
49408         * lib/isfinite.c: Likewise.
49409         * lib/signbitd.c: Likewise.
49410         * lib/signbitf.c: Likewise.
49411         * lib/vasnprintf.c: Likewise.
49412         * tests/test-ceilf1.c: Likewise.
49413         * tests/test-ceilf2.c: Likewise.
49414         * tests/test-floorf1.c: Likewise.
49415         * tests/test-floorf2.c: Likewise.
49416         * tests/test-frexp.c: Likewise.
49417         * tests/test-round1.c: Likewise.
49418         * tests/test-round2.c: Likewise.
49419         * tests/test-roundf1.c: Likewise.
49420         * tests/test-strtod.c: Likewise.
49421         * tests/test-trunc1.c: Likewise.
49422         * tests/test-trunc2.c: Likewise.
49423         * tests/test-truncf1.c: Likewise.
49424         * tests/test-truncf2.c: Likewise.
49425         * NEWS: Mention the renamed header files.
49426
49427 2008-07-11  Jim Meyering  <meyering@redhat.com>
49428
49429         vc-list-files: make the last-resort awk code more portable
49430         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49431         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49432         does not support it.
49433
49434 2008-07-10  Eric Blake  <ebb9@byu.net>
49435
49436         Work with tar's bootstrap.
49437         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49438         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49439         an m4 comment.
49440
49441 2008-07-09  Jim Meyering  <meyering@redhat.com>
49442
49443         posix-shell.m4: fix typo that made this test malfunction
49444         * m4/posix-shell.m4: Remove capitalization in variable name.
49445
49446 2008-07-08  Bruno Haible  <bruno@clisp.org>
49447
49448         * m4/onceonly.m4: Update comments.
49449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49450
49451 2008-07-04  Jim Meyering  <meyering@redhat.com>
49452
49453         * users.txt: Add vc-dwim.
49454         (bison, coreutils): Use the gitweb URL.
49455
49456 2008-07-03  Jim Meyering  <meyering@redhat.com>
49457
49458         * users.txt: Add libffcall.  From Sam Steingold.
49459
49460 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49461
49462         getdate.y: do not ignore TZ with relative day, month or year offset
49463         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49464         relative-date-handling, since otherwise, the latter would clobber the
49465         sole output (an updated Start value) of the tz-handling block.
49466         * tests/test-getdate.c: Tests for the fix
49467
49468 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49469
49470         Recognize 'foo_LIBRARIES += libgnu.a'.
49471         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49472         makefile snippet has already specified an installation location,
49473         also using '+='.
49474
49475 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49476
49477         getdate.y: factor out common actions
49478         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49479         Use them in place of open-coded actions.
49480
49481 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49482
49483         Add self-test for getdate module.
49484         * modules/getdate-tests: New file.
49485         * tests/test-getdate.c: New file.
49486
49487 2008-06-29  Bruno Haible  <bruno@clisp.org>
49488
49489         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49490         .gitignore.
49491         Reported by Sylvain Beucler <beuc@beuc.net>.
49492
49493 2008-06-29  Bruno Haible  <bruno@clisp.org>
49494
49495         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49496         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49497
49498 2008-06-29  Bruno Haible  <bruno@clisp.org>
49499
49500         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49501         EXTRA_DIST.
49502         Reported by Sylvain Beucler <beuc@beuc.net>.
49503
49504 2008-06-26  Jim Meyering  <meyering@redhat.com>
49505
49506         make several modules depend on the "open" module
49507         This provides slightly increased consistency when opening-for-write
49508         the name of a non-directory spelled with a trailing slash.
49509         * modules/chdir-safer: Likewise.
49510         * modules/chown: Likewise.
49511         * modules/clean-temp: Likewise.
49512         * modules/copy-file: Likewise.
49513         * modules/fchdir: Likewise.
49514         * modules/fcntl-safer: Likewise.
49515         * modules/pipe: Likewise.
49516         * modules/utime: Likewise.
49517         Prompted by Eric Blake and Bruno Haible.
49518
49519 2008-06-24  Andreas Schwab  <schwab@suse.de>
49520
49521         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49522         literals can be used as initializers for global variables.
49523
49524 2008-06-23  Eric Blake  <ebb9@byu.net>
49525
49526         Make gnulib-cache.m4 easier to diff.
49527         * gnulib-tool (func_import): Allow newlines when reading cached
49528         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49529
49530 2008-06-23  Bruno Haible  <bruno@clisp.org>
49531
49532         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49533         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49534         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49535         m4/signalblocking.m4.
49536         (gl_PREREQ_SIGACTION): Don't invoke it.
49537         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49538         gl_PREREQ_SIG_HANDLER_H.
49539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49540         Don't check for sigaction here.
49541
49542 2008-06-23  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49545         (install_handlers): Don't set the SA_RESETHAND flag.
49546
49547 2008-06-23  Bruno Haible  <bruno@clisp.org>
49548
49549         * m4/sigaction.m4: Comment fixes.
49550         * lib/signal.in.h: Likewise.
49551
49552 2008-06-23  Eric Blake  <ebb9@byu.net>
49553
49554         Fix typo.
49555         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49556
49557         Avoid SA_ namespace.
49558         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49559         Reported by Ralf Wildenhues.
49560
49561         Avoid test failure due to SA_RESTORER.
49562         * tests/test-sigaction.c (SA_MASK): New macro.
49563         (main): Avoid failing due to extension flags being set.
49564         Reported by Jim Meyering.
49565
49566         Revert use of sig-handler.h in sigprocmask.c.
49567         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49568         it requires the existence of struct sigaction.
49569         * lib/sigprocmask.c (handler_t): Restore typedef.
49570         (rpl_signal, old_handlers): Use local type.
49571
49572 2008-06-22  Bruno Haible  <bruno@clisp.org>
49573
49574         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49575         conditionally.
49576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49577
49578 2008-06-22  Bruno Haible  <bruno@clisp.org>
49579
49580         * doc/posix-functions/siginterrupt.texi: Move note.
49581
49582         * lib/signal.in.h (SA_RESTART): New macro.
49583         * lib/sigaction.c: Update comment.
49584
49585         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49586
49587         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49588         (gl_PREREQ_SIGPROCMASK): Invoke it.
49589         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49590
49591         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49592
49593         * lib/sigprocmask.c: Update a comment.
49594
49595 2008-06-21  Eric Blake  <ebb9@byu.net>
49596
49597         Use sigaction module rather than signal().
49598         * modules/c-stack (Depends-on): Add sigaction.
49599         * modules/fatal-signal (Depends-on): Likewise.
49600         * modules/nanosleep (Depends-on): Likewise.
49601         * modules/sigprocmask (Files): Add sig-handler.h.
49602         * modules/sigaction (Files): Likewise.
49603         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49604         Eggert.
49605         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49606         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49607         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49608         (init_fatal_signals): Likewise.
49609         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49610         (siginterrupt): Delete fallback.
49611         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49612         instead.
49613         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49614         siginterrupt.
49615
49616         New module sigaction, for mingw.
49617         * modules/sigaction: New module...
49618         * modules/sigaction-tests: ...and its test.
49619         * m4/sigaction.m4: New file.
49620         * lib/sigaction.c: Likewise.
49621         * tests/test-sigaction.c: Likewise.
49622         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49623         * modules/signal (Makefile.am): Likewise.
49624         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49625         needed.
49626         * doc/posix-headers/signal.texi (signal.h): Mention provided
49627         types.
49628         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49629         that sigaction is preferable.
49630         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49631         module.
49632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49633         sigaction.
49634
49635         Improve robustness of sigprocmask by overriding signal.
49636         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49637         is in use.
49638         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49639         (SIGKILL, SIGSTOP): Provide fallbacks.
49640         (rpl_signal): Implement.
49641         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49642         signal can be called inside handlers.
49643
49644         Fix nanosleep module on mingw.
49645         * modules/nanosleep (Depends-on): Add sys_select.
49646         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49647
49648         Fix licensing of sigprocmask.
49649         * modules/raise (License): Relicense as LGPL.
49650
49651 2008-06-21  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49654         result if it contains question marks.
49655         Reported by Michael Geng <linux@michaelgeng.de>.
49656
49657 2008-06-19  Bruno Haible  <bruno@clisp.org>
49658
49659         Fix CVS-ism.
49660         * doc/gnulib.texi: Include updated-stamp.texi.
49661         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49662         (updated-stamp.texi): New rule.
49663         (gnulib.info): Depend on it.
49664         * doc/.gitignore: Add updated-stamp.texi.
49665         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49666
49667 2008-06-19  Bruno Haible  <bruno@clisp.org>
49668
49669         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49670         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49671
49672 2008-06-19  Eric Blake  <ebb9@byu.net>
49673
49674         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49675         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49676         Reported by Stepan Kasal.
49677
49678 2008-06-18  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49681         Reported by Eric Blake.
49682
49683 2008-06-18  Eric Blake  <ebb9@byu.net>
49684
49685         Work around cygwin 1.5.25 strsignal bug.
49686         * tests/test-strsignal.c: Allow for const char *.
49687         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49688
49689 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49690
49691         * users.txt: Update URL to article and add author/date
49692         information.
49693
49694 2008-06-17  Bruno Haible  <bruno@clisp.org>
49695
49696         New macro gl_DISABLE_THREADS.
49697         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49698         if the user did not pass --enable-threads or --disable-threads option.
49699         (gl_DISABLE_THREADS): New macro.
49700         Reported by Eric Blake <ebb9@byu.net>.
49701
49702 2008-06-17  Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49705         when the macro ignores it.
49706         Based on a patch by Eric Blake <ebb9@byu.net>.
49707
49708 2008-06-17  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/tls (License): Change to LGPLv2+.
49711         Reported by Eric Blake.
49712
49713 2008-06-17  Eric Blake  <ebb9@byu.net>
49714
49715         Simplify c-stack prerequisites.
49716         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49718         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49719         check.
49720         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49721         <sys/resource.h>.
49722
49723         Move c-stack test into testsuite.
49724         * modules/c-stack-tests: New file.
49725         * lib/c-stack.c [DEBUG]: Move test program...
49726         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49727         fail test if sigaltstack is lacking.
49728         * tests/test-c-stack.sh: New driver file.
49729
49730 2008-06-16  Eric Blake  <ebb9@byu.net>
49731
49732         Use raise module consistently.
49733         * modules/fatal-signal (Depends-on): Add raise.
49734         * modules/sigprocmask (Depends-on): Likewise.
49735         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49736         * lib/sigprocmask.c (sigprocmask): Likewise.
49737         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49738         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49739
49740         Fix compliance bug in sigpending.
49741         * lib/sigprocmask.c (sigpending): Return pending array via
49742         parameter, not return value.
49743
49744 2008-06-14  Eric Blake  <ebb9@byu.net>
49745
49746         Improve obstack-printf test code.
49747         * tests/test-obstack-printf.c (test_function): Fix comment, and
49748         simplify usage of obstack_* in macros.  Add a test for coverage.
49749         Reported by Bruno Haible.
49750
49751 2008-06-14  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49754         array size as a constant, not as a const variable.
49755         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49756         AC_USE_SYSTEM_EXTENSIONS.
49757         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49758         Test whether the obstack_printf function actually exists.
49759         * modules/obstack-printf (Depends-on): Add extensions.
49760         (Include): Remove obstack.h.
49761         * modules/obstack-printf-posix (Depends-on): Add extensions.
49762         (Include): Remove obstack.h.
49763
49764 2008-06-13  Eric Blake  <ebb9@byu.net>
49765
49766         Add obstack-printf and obstack-printf-posix modules.
49767         * modules/obstack-printf: New file.
49768         * modules/obstack-printf-posix: Likewise.
49769         * MODULES.html.sh (Misc): Mention them.
49770         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49771         Likewise.
49772         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49773         Likewise.
49774         * modules/stdio (Makefile.am): Accomodate new modules.
49775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49776         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49777         Declare.
49778         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49779         functions.
49780         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49781         (gl_REPLACE_OBSTACK_PRINTF): New macros
49782         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49783         * tests/test-obstack-printf.c: New file.
49784         * modules/obstack-printf-tests: Likewise.
49785         * modules/obstack-printf-posix-tests: Likewise.
49786
49787 2008-06-11  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49790         * lib/open.c: Include errno.h.
49791         (open): Fail when attempting to write to a file that has a trailing
49792         slash.
49793         * tests/test-open.c (main): Test against trailing slash bug.
49794         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49795
49796 2008-06-10  Bruno Haible  <bruno@clisp.org>
49797
49798         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49799         for $? to work inside the trap command, with various /bin/sh-s.
49800         * tests/test-vc-list-files-cvs.sh: Likewise.
49801
49802 2008-06-10  Bruno Haible  <bruno@clisp.org>
49803
49804         * lib/acl-internal.h: Don't include gettext.h here.
49805         * lib/set-mode-acl.c: Include gettext.h here.
49806         * lib/copy-acl.c: Likewise.
49807
49808 2008-06-10  Bruno Haible  <bruno@clisp.org>
49809
49810         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49811         * lib/wait-process.c (wait_subprocess): Likewise.
49812         * lib/execute.h (execute): Add termsigp argument.
49813         * lib/execute.c (execute): Likewise.
49814         * lib/csharpcomp.c (compile_csharp_using_pnet,
49815         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49816         * lib/csharpexec.c (execute_csharp_using_pnet,
49817         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49818         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49819         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49820         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49821         is_jikes_present): Update.
49822         * lib/javaexec.c (execute_java_class): Update.
49823         * lib/javaversion.c (execute_and_read_line): Update.
49824         * NEWS: Document the changes.
49825         Reported by Eric Blake.
49826
49827 2008-06-10  Eric Blake  <ebb9@byu.net>
49828
49829         Add missing include.
49830         * tests/test-strstr.c (includes): Add <signal.h>.
49831         * tests/test-strcasestr.c (includes): Likewise.
49832         * tests/test-memmem.c (includes): Likewise.
49833
49834 2008-06-10  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/wait-process.c (wait_subprocess): Add an assertion.
49837
49838 2008-06-10  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49841
49842 2008-06-10  Bruno Haible  <bruno@clisp.org>
49843
49844         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49845         using alarm().
49846         * tests/test-strcasestr.c (main): Likewise.
49847         * tests/test-strstr.c (main): Likewise.
49848
49849 2008-06-09  Bruno Haible  <bruno@clisp.org>
49850
49851         Work around the Solaris 10 ACE ACLs ABI change.
49852         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49853         declare if ACL_NO_TRIVIAL is present.
49854         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49855         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49856         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49857         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49858         define if ACL_NO_TRIVIAL is present.
49859         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49860         and use the current ABI.
49861         (file_has_acl): Use same #if condition as elsewhere.
49862         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49863         in use, and use the current ABI.
49864         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49865         Reported by Jim Meyering.
49866
49867 2008-06-09  Eric Blake  <ebb9@byu.net>
49868
49869         Work around environments that (stupidly) ignore SIGALRM.
49870         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49871         before using alarm().
49872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49874         Reported by Ian Beckwith <ianb@erislabs.net>.
49875
49876         Produce autobuild blurb earlier in log.
49877         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49878
49879 2008-06-09  Jim Meyering  <meyering@redhat.com>
49880         and OndÅ™ej Vašík  <ovasik@redhat.com>
49881
49882         utimens.c: correct kernel bug work-around
49883         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49884         failure, not success, and the kernel bug we're trying to work
49885         around affects not just the utimensat call, but also the fallback
49886         futimens call.
49887         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49888         not success.
49889         [HAVE_FUTIMENS]: Use the same work-around, here.
49890
49891 2008-06-09  Jim Meyering  <meyering@redhat.com>
49892
49893         add more guards around definition of ACE_-related code
49894         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49895         ALLOW and ACE_OWNER are also defined.
49896
49897 2008-06-08  Bruno Haible  <bruno@clisp.org>
49898
49899         * lib/acl-internal.h: Add me as co-author.
49900         * lib/file-has-acl.c: Likewise.
49901         * lib/set-mode-acl.c: Likewise.
49902         * lib/copy-acl.c: Likewise.
49903
49904 2008-06-08  Bruno Haible  <bruno@clisp.org>
49905
49906         Add support for AIX ACLs.
49907         * lib/acl-internal.h (acl_nontrivial): New declaration.
49908         * lib/file-has-acl.c (acl_nontrivial): New function.
49909         (file_has_acl): Add implementation using AIX 4 ACL API.
49910         * lib/set-mode-acl.c (qset_acl): Likewise.
49911         * lib/copy-acl.c (qcopy_acl): Likewise.
49912
49913 2008-06-08  Bruno Haible  <bruno@clisp.org>
49914
49915         Add support for HP-UX ACLs.
49916         * lib/acl-internal.h (acl_nontrivial): New declaration.
49917         * lib/file-has-acl.c (acl_nontrivial): New function.
49918         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49919         * lib/set-mode-acl.c (qset_acl): Likewise.
49920         * lib/copy-acl.c (qcopy_acl): Likewise.
49921
49922 2008-06-08  Bruno Haible  <bruno@clisp.org>
49923
49924         Add support for Cygwin ACLs.
49925         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49926         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49927         the chmod_or_fchmod call.
49928         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49929
49930 2008-06-08  Bruno Haible  <bruno@clisp.org>
49931
49932         Fix bug with setuid modes in Solaris 10+ code.
49933         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49934         succeeded, when the mode contains some special bits.
49935
49936 2008-06-08  Bruno Haible  <bruno@clisp.org>
49937
49938         Add support for Solaris 7..10 ACLs.
49939         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49940         declarations.
49941         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49942         functions.
49943         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49944         * lib/set-mode-acl.c (qset_acl): Likewise.
49945         * lib/copy-acl.c (qcopy_acl): Likewise.
49946
49947 2008-06-08  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49950         declaration.
49951         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49952         (acl_access_nontrivial): Remove MacOS X case.
49953         (file_has_acl): Use acl_extended_nontrivial.
49954         * lib/copy-acl.c (qcopy_acl): Likewise.
49955
49956 2008-06-08  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49959
49960 2008-06-08  Jim Meyering  <meyering@redhat.com>
49961
49962         * modules/acl (Maintainer): Add Bruno Haible.
49963
49964 2008-06-07  Bruno Haible  <bruno@clisp.org>
49965
49966         Improve support for Tru64 ACLs.
49967         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49968         ACL on OSF/1.
49969
49970 2008-06-07  Bruno Haible  <bruno@clisp.org>
49971
49972         Add support for MacOS X ACLs.
49973         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49974         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49975         * lib/set-mode-acl.c (qset_acl): Likewise.
49976         * lib/copy-acl.c (qcopy_acl): Likewise.
49977
49978 2008-06-07  Bruno Haible  <bruno@clisp.org>
49979
49980         Fix memory leak introduced on 2008-05-22.
49981         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49982         use.
49983
49984 2008-06-07  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49987         to construct an empty ACL.
49988
49989 2008-06-07  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49992         precisely.
49993         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49994
49995 2008-06-07  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49998         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49999
50000 2008-06-07  Bruno Haible  <bruno@clisp.org>
50001
50002         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50003         regardless of POSIX.
50004         * doc/posix-functions/_longjmp.texi: Likewise.
50005         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50006         SystemV platform in this case.
50007
50008 2008-06-06  Eric Blake  <ebb9@byu.net>
50009
50010         Document abort() bugs.
50011         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50012
50013         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50014         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50015         sigsetjmp.
50016         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50017         siglongjmp, but only as a macro.
50018         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50019         is obsolete.
50020         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50021
50022         Tweak documentation to cover cygwin argz bugs.
50023         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50024         argz bug fix; no code change needed since no cygwin releases
50025         occurred between the last fix and the bug being tested.
50026         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50027         module and recently fixed cygwin bugs.
50028         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50029         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50030         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50031         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50032         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50033         Likewise.
50034         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50035         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50036         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50037         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50038         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50039         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50040         Likewise.
50041
50042         Avoid gcc warning on cygwin.
50043         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50044         !ACL_NO_TRIVIAL]: Avoid unused variable.
50045
50046 2008-06-05  Eric Blake  <ebb9@byu.net>
50047
50048         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50049         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50050         git-version-gen fails to come up with a version.
50051         Reported by Simon Josefsson.
50052
50053 2008-06-05  Jim Meyering  <meyering@redhat.com>
50054             Paul Eggert  <eggert@cs.ucla.edu>
50055
50056         utimens.c: work around a probable Linux kernel bug
50057         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50058         appears to be a kernel bug that causes utimensat to return 280
50059         instead of 0, indicating success.
50060
50061 2008-06-04  Bruno Haible  <bruno@clisp.org>
50062
50063         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50064         2008-06-01 commit.
50065
50066 2008-06-04  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50069         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50070         (file_has_acl): Use it. Save errno afterwards.
50071         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50072
50073 2008-06-03  Bruno Haible  <bruno@clisp.org>
50074
50075         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50076         draft code. Simplify #ifs.
50077         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50078         Put Solaris code after POSIX-draft code. Fix comments regarding
50079         Solaris 10, HP-UX. Mention Cygwin.
50080         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50081
50082 2008-06-03  Eric Blake  <ebb9@byu.net>
50083
50084         Provide fallback for older kernels.
50085         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50086         Provide runtime fallback if kernel lacks support.
50087         Reported by Mike Frysinger.
50088
50089 2008-06-02  Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50092         it exists.
50093
50094 2008-06-02  Bruno Haible  <bruno@clisp.org>
50095
50096         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50097         * lib/copy-acl.c (qcopy_acl): Update comment.
50098
50099 2008-06-02  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50102         like ACL APIs.
50103
50104 2008-06-02  Bruno Haible  <bruno@clisp.org>
50105
50106         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50107         * tests/test-set-mode-acl.sh: Likewise.
50108         * tests/test-copy-acl.sh: Likewise.
50109         * tests/test-copy-file.sh: Likewise.
50110
50111 2008-06-02  Bruno Haible  <bruno@clisp.org>
50112
50113         * tests/test-file-has-acl.sh: Remove unused code.
50114
50115 2008-06-01  Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50118         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50119         messages.
50120         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50121
50122 2008-06-01  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50125         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50126         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50127         APIs.
50128         * modules/acl-tests (configure.ac): Remove tests now contained in
50129         m4/acl.m4.
50130
50131 2008-06-02  Jim Meyering  <meyering@redhat.com>
50132
50133         announce-gen: use a better key-server host name
50134         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50135         it may be more consistently reliable.  Suggested by Werner Koch
50136         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50137
50138 2008-06-01  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50141         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50142
50143 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50144
50145         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50146
50147 2008-06-01  Bruno Haible  <bruno@clisp.org>
50148
50149         New ACL tests.
50150         * tests/test-file-has-acl.sh: New file.
50151         * tests/test-file-has-acl.c: New file.
50152         * tests/test-set-mode-acl.sh: New file.
50153         * tests/test-set-mode-acl.c: New file.
50154         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50155         * tests/test-copy-acl.c: New file.
50156         * modules/acl-tests: New file, based on modules/copy-file-tests.
50157         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50158         (Depends-on): Add acl-tests.
50159         (configure.ac): Remove checks.
50160         (Makefile.am): Don't create test-sameacls program here any more.
50161
50162 2008-06-01  Bruno Haible  <bruno@clisp.org>
50163
50164         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50165         * tests/test-sameacls.c: Include progname.h.
50166         (main): Invoke set_program_name. Portability fixes for MacOS X,
50167         Solaris, HP-UX.
50168
50169 2008-06-01  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50172         function.
50173         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50174
50175 2008-06-01  Bruno Haible  <bruno@clisp.org>
50176
50177         * modules/rpmatch (Depends-on): Add strdup.
50178
50179 2008-06-01  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/pipe.c: Include unistd-safer.h.
50182         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50183         * modules/pipe (Depends-on): Add unistd-safer.
50184
50185 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50186
50187         * modules/autobuild (configure.ac): Call AB_INIT.
50188
50189 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50190
50191         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50192         Suggested by Bruno Haible <bruno@clisp.org>.
50193
50194 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50195
50196         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50197         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50198         <bruno@clisp.org>.
50199
50200 2008-05-29  Eric Blake  <ebb9@byu.net>
50201
50202         Prefer new POSIX 200x interfaces over futimesat.
50203         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50204         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50205         when available.
50206         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50207
50208 2008-05-28  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/stpcpy (License): Change to LGPLv2+.
50211         Requested by David Lutterkort <dlutter@redhat.com>.
50212
50213 2008-05-27  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50216         current mingw.
50217         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50218
50219 2008-05-27  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/iconv_open (Link): New section, from module 'iconv'.
50222         * modules/striconv (Link): Likewise.
50223         * modules/striconveh (Link): Likewise.
50224         * modules/xstriconv (Link): Likewise.
50225         * modules/unicodeio (Link): Likewise.
50226         * modules/propername (Link): Likewise.
50227         Reported by Jim Meyering.
50228
50229 2008-05-26  Jim Meyering  <meyering@redhat.com>
50230
50231         sha256: do not artificially restrict buffer length to be < 2^32
50232         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50233         uint32_t to size_t.
50234         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50235         to match.
50236
50237         avoid unaligned access errors, e.g., on sparc
50238         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50239         direct access through a possibly-unaligned uint64* pointer.
50240         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50241         direct access through a possibly-unaligned uint32* pointer.
50242         Prompted by this patch from Tom "spot" Callaway:
50243         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50244
50245         sha512.c: fix typo in comment
50246         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50247
50248 2008-05-25  Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50251         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50252         (Makefile.am): Update lib_SOURCES.
50253
50254 2008-05-25  Bruno Haible  <bruno@clisp.org>
50255
50256         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50257
50258 2008-05-25  Jim Meyering  <meyering@redhat.com>
50259
50260         useless-if-before-free: freed expr may have white-space differences
50261         * build-aux/useless-if-before-free: Recognize cases in which the
50262         freed expression differs from the tested one in embedded white
50263         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50264         $1 was used, so we can't make any regexp shy.  Improved tests now
50265         detect this.
50266
50267         useless-if-before-free: accept white space in the expression.
50268         * build-aux/useless-if-before-free: For now, any white space
50269         in the expression must be identical in the free argument.
50270
50271         useless-if-before-free: efficiency tweak
50272         * build-aux/useless-if-before-free: Make the expression-matching
50273         regexp "shy".
50274         Make the *outer* regexp shy, not the expr-matching one.
50275
50276         update code-in-comment to accept cast of free arg
50277         * build-aux/useless-if-before-free: Update regexp.
50278
50279 2008-05-25  Bruno Haible  <bruno@clisp.org>
50280
50281         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50282         * modules/copy-file-tests (Files, Makefile.am): Update.
50283         * tests/test-copy-file.c (func_test_copy): Update.
50284
50285 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50286
50287         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50288
50289 2008-05-23  Bruno Haible  <bruno@clisp.org>
50290
50291         Improve support for ACLs on OSF/1.
50292         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50293         Remove fallback for unknown flavors of ACLs.
50294
50295 2008-05-22  Bruno Haible  <bruno@clisp.org>
50296
50297         Add support for ACLs on OSF/1.
50298         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50299         replacements.
50300         (acl_free_text): New macro fallback.
50301         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50302         acl_free.
50303         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50304         acl_free_text function. Require AC_C_INLINE.
50305
50306 2008-05-22  Bruno Haible  <bruno@clisp.org>
50307
50308         Make copy_acl work on MacOS X 10.5.
50309         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50310         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50311         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50312         If MODE_INSIDE_ACL, don't assume that every system has the same text
50313         representation for ACLs as FreeBSD.
50314         * lib/copy-acl.c (copy_acl): Add support for platforms with
50315         !MODE_INSIDE_ACL.
50316         * lib/file-has-acl.c (file_has_acl): Likewise.
50317         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50318         FreeBSD, MacOS X, or IRIX, respectively.
50319
50320 2008-05-22  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/acl.h: Don't include <sys/acl.h>.
50323         (GETACLCNT): Move fallback to lib/acl-internal.h.
50324         * lib/acl-internal.h: Include <sys/acl.h> here.
50325         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50326
50327 2008-05-22  Bruno Haible  <bruno@clisp.org>
50328
50329         Split off copy_acl function to separate file.
50330         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50331         * lib/acl.c (copy_acl): Moved function to separate file.
50332         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50333         * modules/acl (Files): Add lib/copy-acl.c.
50334         (Makefiles.am): Augment lib_SOURCES.
50335
50336 2008-05-22  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/copy-file-tests: New file.
50339         * tests/test-copy-file.sh: New file.
50340         * tests/test-copy-file.c: New file.
50341         * tests/test-copy-file-sameacls.c: New file.
50342
50343 2008-05-22  Eric Blake  <ebb9@byu.net>
50344
50345         Avoid gcc warning.
50346         * tests/test-memcmp.c (main): Pass NULL indirectly.
50347
50348 2008-05-21  Bruno Haible  <bruno@clisp.org>
50349
50350         Add reference doc about ACLs.
50351         * doc/acl-resources.txt: New file.
50352         * doc/acl-cygwin.txt: New file.
50353
50354 2008-05-21  Bruno Haible  <bruno@clisp.org>
50355
50356         Avoid one more warning from gcc.
50357         * lib/vasnprintf.c (IF_LINT): Update comments.
50358         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50359
50360 2008-05-21  Jim Meyering  <meyering@redhat.com>
50361
50362         avoid a warning from gcc
50363         * lib/vasnprintf.c (IF_LINT): Define.
50364         (scale10_round_decimal_long_double):
50365         Use it to avoid a "may be used uninitialized" warning.
50366         (scale10_round_decimal_double): Likewise.
50367
50368 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50369
50370         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50371         declared.
50372
50373 2008-05-20  Bruno Haible  <bruno@clisp.org>
50374
50375         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50376         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50377
50378 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50379
50380         * modules/memcmp-tests: New file.
50381         * tests/test-memcmp.c: New file.
50382
50383 2008-05-19  Bruno Haible  <bruno@clisp.org>
50384
50385         * modules/propername (Notice, configure.ac): Put quoted "..." into
50386         --keyword option.
50387         * lib/propername.h: Update comments accordingly.
50388         Reported by Eric Blake.
50389
50390 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50391
50392         * modules/getpass-gnu (Depends-on): Add fseeko.
50393
50394 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50395
50396         * modules/base64-tests: New file.
50397
50398 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50399
50400         * lib/base64.c (base64_decode_ctx): If a decode context structure
50401         was passed in use it to ignore newlines.  If a context structure
50402         was _not_ passed in, continue to treat newlines as garbage (this
50403         is the historical behavior).  Formerly base64_decode.
50404         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50405         takes a decode context structure.
50406         * lib/base64.h (base64_decode): Macro for four-argument calls.
50407         (base64_decode_alloc): Likewise.
50408         * lib/base64.c (base64_decode_ctx): If a decode context structure
50409         was passed in use it to ignore newlines.  If a context structure
50410         was _not_ passed in, continue to treat newlines as garbage (this
50411         is the historical behavior).  Formerly base64_decode.
50412         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50413         takes a decode context structure.
50414         * lib/base64.h (base64_decode): Macro for four-argument calls.
50415         (base64_decode_alloc): Likewise.
50416
50417 2008-05-19  Jim Meyering  <meyering@redhat.com>
50418
50419         avoid a warning from gcc
50420         * lib/trim.c (IF_LINT): Define.
50421         (trim2): Use it to avoid a "may be used uninitialized" warning.
50422
50423         Fix doc typo.
50424         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50425
50426 2008-05-19  Bruno Haible  <bruno@clisp.org>
50427
50428         * doc/glibc-functions/getpass.texi: Document limits of other
50429         implementations.
50430
50431 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50432             Bruno Haible <bruno@clisp.org>
50433
50434         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50435
50436 2008-05-18  Bruno Haible  <bruno@clisp.org>
50437
50438         * modules/propername: New file, from GNU gettext.
50439         * lib/propername.h: New file, from GNU gettext.
50440         * lib/propername.c: New file, from GNU gettext.
50441         * MODULES.html.sh (Internationalization functions): Add propername.
50442
50443 2008-05-16  Jim Meyering  <meyering@redhat.com>
50444             Bruno Haible  <bruno@clisp.org>
50445
50446         Avoid some warnings from "gcc -Wshadow".
50447         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50448
50449 2008-05-15  Eric Blake  <ebb9@byu.net>
50450
50451         Extend previous patch to cygwin 1.7.0.
50452         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50453         fast implementation in cygwin >= 1.7.0.
50454         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50456
50457 2008-05-15  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50460         implementation in glibc >= 2.9.
50461         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50463
50464 2008-05-15  Bruno Haible  <bruno@clisp.org>
50465
50466         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50467         (Unicode string functions): Add unilbrk/*.
50468         Reported by Karl Berry.
50469
50470 2008-05-15  Eric Blake  <ebb9@byu.net>
50471
50472         Fix violation of <stdbool.h> replacement in regex.
50473         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50474         * lib/regexec.c (re_search_internal): Likewise.
50475         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50476
50477 2008-05-15  Jim Meyering  <meyering@redhat.com>
50478
50479         avoid distracting test output when git or cvs is not found
50480         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50481         * tests/test-vc-list-files-git.sh: Likewise.
50482
50483 2008-05-15  Eric Blake  <ebb9@byu.net>
50484
50485         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50486         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50487         glibc version.
50488         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50489         * doc/posix-functions/strstr.texi (strstr): Likewise.
50490         * lib/str-two-way.h (MAX): Sychronize with glibc.
50491
50492 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50493
50494         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50495         opr.ctx_type.
50496         (calc_first): Initialize constraint field.
50497         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50498         Fix grammar.
50499         (duplicate_node): Merge constraint field for all node types.
50500         (calc_eclosure_iter): Look at constraint field for all node types.
50501         * lib/regex_internal.c (create_cd_newstate): Don't look at
50502         opr.ctx_type.
50503
50504 2008-05-14  Bruno Haible  <bruno@clisp.org>
50505
50506         Help GCC to do better code generation.
50507         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50508         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50509         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50510         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50511         Declare with attribute 'malloc' if supported.
50512
50513 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50514
50515         use "echo STR|wc -c" rather than unportable "expr length STR"
50516         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50517         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50518
50519 2008-05-14  Jim Meyering  <meyering@redhat.com>
50520
50521         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50522         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50523         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50524         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50525         via Collin Lasse.
50526
50527 2008-05-14  Eric Blake  <ebb9@byu.net>
50528
50529         Avoid quadratic growth in gl_LIBSOURCES.
50530         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50531         Suggested by Bruno Haible.
50532
50533         Test xmemdup0.
50534         * modules/xmemdup0-tests: New file.
50535         * tests/test-xmemdup0.c: Likewise.
50536
50537 2008-05-13  Eric Blake  <ebb9@byu.net>
50538
50539         Split xmemdup0 into its own module.
50540         * modules/xmemdup0: New file.
50541         * lib/xmemdup0.h: Likewise.
50542         * lib/xmemdup0.c: Likewise.
50543         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50544         * lib/xalloc.h (xmemdup0): Remove.
50545         * lib/xmalloc.c (xmemdup0): Likewise.
50546
50547 2008-05-13  Eric Blake  <ebb9@byu.net>
50548             Bruno Haible  <bruno@clisp.org>
50549
50550         Reduce number of forks required during autoconf.
50551         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50552         and gl_LIBSOURCES_DIR.
50553         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50554         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50555         m4_syscmd per file.
50556         <m4_foreach_w>: Move...
50557         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50558
50559 2008-05-13  Eric Blake  <ebb9@byu.net>
50560
50561         * gnulib-tool: Fix various comment typos.
50562
50563 2008-05-12  Bruno Haible  <bruno@clisp.org>
50564
50565         Tailor the linebreaking algorithm.
50566         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50567
50568 2008-05-12  Bruno Haible  <bruno@clisp.org>
50569
50570         Update to Unicode 5.0.0.
50571         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50572         LBP_JV, LBP_JT. Redistribute values.
50573         (unilbrk_table): Change size.
50574         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50575         Unicode TR#14 rev. 22.
50576         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50577         LBP_JV, LBP_JT. Redistribute values.
50578         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50579         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50580         Update.
50581         * lib/unilbrk/lbrkprop1.h: Regenerated.
50582         * lib/unilbrk/lbrkprop2.h: Regenerated.
50583         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50584         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50585         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50586         Likewise.
50587         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50588         Likewise.
50589         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50590         result.
50591         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50592         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50593         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50594         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50595         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50596         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50597
50598 2008-05-11  Bruno Haible  <bruno@clisp.org>
50599
50600         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50601
50602 2008-05-11  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50605         * modules/unilbrk/gen-lbrk: New file.
50606
50607 2008-05-11  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50610         * m4/sha512.m4 (gl_SHA512): Likewise.
50611
50612 2008-05-11  Jim Meyering  <meyering@redhat.com>
50613
50614         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50615         * modules/crypto/sha256: New file.
50616         * modules/crypto/sha512: Likewise.
50617         * lib/sha256.c: Likewise.
50618         * lib/sha256.h: Likewise.
50619         * lib/sha512.c: Likewise.
50620         * lib/sha512.h: Likewise.
50621         * lib/u64.h: Likewise.
50622         * m4/sha256.m4: Likewise.
50623         * m4/sha512.m4: Likewise.
50624         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50625
50626 2008-05-10  Bruno Haible  <bruno@clisp.org>
50627
50628         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50629         (Input/Output <stdio.h>): Add xprintf.
50630         (Signal handling <signal.h>): Add strsignal.
50631         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50632         (Core language properties): Add func.
50633         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50634         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50635         strings.
50636         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50637         (Input/output): New section.
50638         (File system functions): Add openat-die, stat-macros.
50639         (Networking functions): Add sockets.
50640         (Unicode string functions): Add unictype/*.
50641         (Support for building libraries and executables): Add gperf.
50642         (Support for building documentation): Add agpl-3.0.
50643         (Misc): Add nocrash.
50644
50645 2008-05-10  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/unictype/gen-ctype: New file.
50648
50649 2008-05-10  Jim Meyering  <meyering@redhat.com>
50650
50651         Make chdir-safer.c more efficient on a system with no symlinks.
50652         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50653         also if ELOOP is zero.  Suggested by Bruno Haible.
50654
50655         Make chdir-safer.c slightly safer.
50656         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50657         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50658
50659         Avoid compile failure on systems without ELOOP (like mingw).
50660         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50661         Reported by Bruno Haible.
50662
50663 2008-05-10  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50666         (is_utf8_encoding): Use a case-insensitive comparison.
50667         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50668         streq.
50669
50670 2008-05-10  Bruno Haible  <bruno@clisp.org>
50671
50672         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50673         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50674         * lib/unilbrk/ulc-common.h (iconv_string_length,
50675         iconv_string_keeping_offsets): Remove declarations.
50676         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50677         Don't include <iconv.h>, streq.h, xsize.h.
50678         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50679         conversion.
50680         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50681         <iconv.h>, streq.h, xsize.h.
50682         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50683         conversion.
50684         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50685         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50686         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50687         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50688
50689 2008-05-10  Bruno Haible  <bruno@clisp.org>
50690
50691         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50692         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50693
50694         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50695         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50696
50697         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50698         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50699
50700         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50701         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50702
50703         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50704         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50705
50706         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50707         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50708
50709         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50710         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50711
50712         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50713         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50714
50715 2008-05-10  Bruno Haible  <bruno@clisp.org>
50716
50717         Split up 'linebreak' module.
50718         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50719         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50720         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50721         modifications.
50722         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50723         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50724         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50725         lib/linebreak.c.
50726         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50727         lib/linebreak.c.
50728         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50729         lib/linebreak.c.
50730         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50731         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50732         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50733         lib/linebreak.c.
50734         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50735         lib/linebreak.c.
50736         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50737         lib/linebreak.c.
50738         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50739         lib/linebreak.c.
50740         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50741         lib/linebreak.c.
50742         * modules/unilbrk/base: New file.
50743         * modules/unilbrk/tables: New file.
50744         * modules/unilbrk/u8-possible-linebreaks: New file.
50745         * modules/unilbrk/u16-possible-linebreaks: New file.
50746         * modules/unilbrk/u32-possible-linebreaks: New file.
50747         * modules/unilbrk/ulc-common: New file.
50748         * modules/unilbrk/ulc-possible-linebreaks: New file.
50749         * modules/unilbrk/u8-width-linebreaks: New file.
50750         * modules/unilbrk/u16-width-linebreaks: New file.
50751         * modules/unilbrk/u32-width-linebreaks: New file.
50752         * modules/unilbrk/ulc-width-linebreaks: New file.
50753         * lib/linebreak.h: Remove file.
50754         * lib/linebreak.c: Remove file.
50755         * m4/linebreak.m4: Remove file.
50756         * modules/linebreak: Remove file.
50757         * NEWS: Mention the changes.
50758
50759 2008-05-09  Eric Blake  <ebb9@byu.net>
50760
50761         Add xmemdup0.
50762         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50763         implementation.
50764         * lib/xmalloc.c (xmemdup0): New C implementation.
50765
50766 2008-05-08  Bruno Haible  <bruno@clisp.org>
50767
50768         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50769
50770 2008-05-07  Eric Blake  <ebb9@byu.net>
50771
50772         Support cross-compilation of <wctype.h>.
50773         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50774         AC_CACHE_CHECK.
50775
50776 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50777
50778         * build-aux/vc-list-files: Add support for bzr.
50779
50780 2008-05-03  Jim Meyering  <meyering@redhat.com>
50781
50782         avoid failed assertion with tight malloc
50783         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50784
50785 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50786
50787         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50788         are needed from arpa/inet.h.
50789         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50790         Reported by Bruno Haible.
50791
50792 2008-05-02  Jim Meyering  <meyering@redhat.com>
50793
50794         avoid compilation error on FreeBSD 6
50795         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50796
50797 2008-05-01  Jim Meyering  <meyering@redhat.com>
50798
50799         useless-if-before-free: correct --help's exit status description
50800         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50801         for one or more matches, etc.  Reported by Bruno Haible.
50802
50803         vc-list-files: make the stand-alone gnulib test work
50804         * modules/vc-list-files-tests (configure.ac):
50805         Define and AC_SUBST abs_aux_dir.
50806         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50807         $(abs_top_srcdir) to each script and having each of them
50808         duplicate the work of setting PATH, set PATH here, using
50809         the new variable, abs_aux_dir instead.
50810         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50811         * tests/test-vc-list-files-git.sh: Likewise.
50812         Reported by Bruno Haible.
50813
50814 2008-05-01  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50817         reallocation. Rename 'done' to 'found_delimiter'.
50818
50819 2008-05-01  Jim Meyering  <meyering@redhat.com>
50820
50821         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50822         * build-aux/vc-list-files: Use `...`, not $(...).
50823
50824 2008-04-30  Jim Meyering  <meyering@redhat.com>
50825
50826         add tests for vc-list-files
50827         * modules/vc-list-files-tests: New module.
50828         * tests/test-vc-list-files-cvs.sh: New file.
50829         * tests/test-vc-list-files-git.sh: New file.
50830
50831         avoid a warning from gcc
50832         * lib/getndelim2.c (IF_LINT): Define.
50833         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50834
50835         vc-list-files: work properly with build-aux/cvsu, too
50836         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50837         to all cvs-based clauses.
50838
50839         vc-list-files: work properly in the CVS+awk case, too
50840         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50841
50842         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50843         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50844         take more than one file argument, so .  Add quotes, just in case $dir
50845         ever contains a shell meta-character.  Prompted by Soren Hansen in
50846         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50847
50848 2008-04-29  Eric Blake  <ebb9@byu.net>
50849
50850         Optimize getndelim2 to use block operations when possible.
50851         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50852         freadseek, and memchr2.
50853         * lib/getndelim2.c (getndelim2): Use them for block reads.
50854
50855 2008-04-29  Bruno Haible  <bruno@clisp.org>
50856
50857         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50858         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50859         * modules/inet_ntop (Depends-on): Add extensions.
50860         * modules/inet_pton (Depends-on): Likewise.
50861         Reported by Simon Josefsson.
50862
50863 2008-04-29  Jim Meyering  <meyering@redhat.com>
50864
50865         When the is more than one match in a block, match all of them.
50866         * build-aux/useless-if-before-free: Iterate through each block
50867         until there are no more matches.
50868
50869         Fix broken useless-if-before-free script.
50870         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50871         the expression to match cast of argument to free-like function.
50872
50873 2008-04-29  Eric Blake  <ebb9@byu.net>
50874
50875         Use new header.
50876         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50877
50878 2008-04-29  Jim Meyering  <meyering@redhat.com>
50879
50880         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50881         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50882         by gnulib to exist and to declare e.g., inet_ntop.
50883         Don't include "inet_ntop.h", now removed.
50884
50885         * m4/arpa_inet_h.m4: Remove trailing blanks.
50886
50887 2008-04-29  Eric Blake  <ebb9@byu.net>
50888
50889         Silence valgrind on safe reads beyond potential array bounds.
50890         * lib/rawmemchr.valgrind: New file.
50891         * lib/strchrnul.valgrind: Likewise.
50892         * modules/rawmemchr (Files): Distribute new file.
50893         * modules/strchrnul (Files): Likewise.
50894         Suggested by Bruno Haible.
50895
50896 2008-04-29  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50899         (inet_ntop, inet_pton): Change portability warning's wording.
50900         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50901         Invoke gl_CHECK_NEXT_HEADERS.
50902         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50903         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50904         set ARPA_INET_H.
50905         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50906         * modules/arpa_inet (Description): No longer only for systems that
50907         lack it.
50908         (Depends-on): Add include_next.
50909         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50910         HAVE_ARPA_INET_H.
50911
50912 2008-04-29  Jim Meyering  <meyering@redhat.com>
50913
50914         * modules/mkdir (License): Re-license as LGPLv2+.
50915
50916 2008-04-29  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/rawmemchr (Maintainer): Set to Eric.
50919         * modules/strchrnul (Maintainer): Likewise.
50920
50921 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50922
50923         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50924         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50925
50926         * modules/arpa_inet (arpa/inet.h): Use them.
50927
50928 2008-04-28  Eric Blake  <ebb9@byu.net>
50929
50930         Test getndelim2.
50931         * modules/getndelim2-tests: New file.
50932         * tests/test-getndelim2.c: Likewise.
50933         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50934         stream.
50935         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50936
50937         * MODULES.html.sh: Document new module.
50938
50939 2008-04-20  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/c-stack.c (die): Use raise.
50942         * modules/c-stack (Depends-on): Add raise.
50943
50944 2008-04-28  Bruno Haible  <bruno@clisp.org>
50945
50946         Expect rpmatch to be declared.
50947         * lib/yesno.c (rpmatch): Remove declaration.
50948
50949         Declare rpmatch.
50950         * lib/stdlib.in.h (rpmatch): New declaration.
50951         * lib/rpmatch.c: Include <stdlib.h> first.
50952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50953         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50955         HAVE_RPMATCH.
50956         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50958         (Include): Set to <stdlib.h>.
50959         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50960         HAVE_RPMATCH.
50961         * NEWS: Document the change.
50962
50963 2008-04-28  Bruno Haible  <bruno@clisp.org>
50964
50965         Change rpmatch to use nl_langinfo when appropriate.
50966         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50967         (N_): New macro.
50968         (localized_pattern): New function/macro.
50969         (try): Remove match, nomatch arguments. Copy the pattern into safe
50970         memory before caching it.
50971         (rpmatch): Use localized_pattern. Add translator comments.
50972         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50973         Suggested by Eric Blake.
50974         * modules/rpmatch (Depends-on): Add stdbool.
50975
50976 2008-04-28  Eric Blake  <ebb9@byu.net>
50977
50978         Add rawmemchr module, matching glibc.
50979         * modules/string (Makefile.am): New indicator.
50980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50981         * lib/string.in.h (rawmemchr): Declare when appropriate.
50982         * modules/rawmemchr: New file.
50983         * m4/rawmemchr.m4: Likewise.
50984         * lib/rawmemchr.c: Likewise.
50985         * modules/rawmemchr-tests: Likewise.
50986         * tests/test-rawmemchr.c: Likewise.
50987         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50988         module.
50989         * modules/strchrnul (Depends-on): Add rawmemchr.
50990         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50991
50992         Whitespace cleanup.
50993         * tests/test-strchrnul.c: Reindent.
50994         * lib/strchrnul.c: Likewise.
50995
50996         Optimize and test strchrnul.
50997         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50998         * modules/strchrnul-tests: New file.
50999         * tests/test-strchrnul.c: Likewise.
51000
51001         Remove intprops dependency.
51002         * modules/memchr (Depends-on): Remove intprops.
51003         * modules/memrchr (Depends-on): Likewise.
51004         * modules/memchr2 (Depends-on): Likewise.
51005         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51006         * lib/memrchr.c (__memrchr): Likewise.
51007         * lib/memrchr2.c (memchr2): Likewise.
51008         Reported by Simon Josefsson.
51009
51010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51011
51012         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51013         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51014
51015 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51016
51017         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51018
51019         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51020
51021         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51022
51023         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51024         declarations.
51025         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51026
51027         * m4/inet_pton.m4: Don't check for header files.
51028
51029         * m4/inet_ntop.m4: Don't check for header files.
51030
51031 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51032
51033         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51034         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51035         trigger for cygwin).
51036         Reported by Bruno Haible  <bruno@clisp.org>.
51037
51038 2008-04-28  Bruno Haible  <bruno@clisp.org>
51039
51040         * doc/posix-functions/strdup.texi: Mention mingw problem.
51041
51042 2008-04-27  Bruno Haible  <bruno@clisp.org>
51043
51044         * modules/stat-time-tests (Depends-on): Add sleep.
51045         * tests/test-stat-time.c (force_unlink): New function.
51046         (cleanup): Use it.
51047         (test_mtime): Remove the ctime related tests.
51048         (test_ctime): New function, containing the ctime related tests.
51049         (main): Call test_ctime, except on native Windows platforms.
51050
51051 2008-04-27  Bruno Haible  <bruno@clisp.org>
51052
51053         * lib/rpmatch.c (rpmatch): Add some comments.
51054         Reported by James Youngman <jay@gnu.org>.
51055
51056 2008-04-27  Bruno Haible  <bruno@clisp.org>
51057
51058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51059         quiet NaNs.
51060
51061 2008-04-27  Bruno Haible  <bruno@clisp.org>
51062
51063         Make test-yesno.sh work on mingw.
51064         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51065         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51066         (main): Set stdin to binary mode.
51067         * modules/yesno-tests (Depends-on): Add binary-io.
51068
51069 2008-04-27  Bruno Haible  <bruno@clisp.org>
51070
51071         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51072         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51073         argument that lie outside the IEEE 854 domain.
51074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51075         (gl_ISFINITE): Use it.
51076         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51077
51078 2008-04-27  Bruno Haible  <bruno@clisp.org>
51079
51080         Allow local renaming in config.h.
51081         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51082
51083 2008-04-27  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/memchr.c (__memchr): Change type of 'i'.
51086         * lib/memchr2.c (memchr2): Likewise.
51087
51088 2008-04-26  Eric Blake  <ebb9@byu.net>
51089         and Bruno Haible  <bruno@clisp.org>
51090
51091         Optimize and test memrchr.
51092         * modules/memrchr (Depends-on): Add intprops.
51093         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51094         * modules/memrchr-tests: New file.
51095         * tests/test-memrchr.c: New file.
51096
51097 2008-04-26  Bruno Haible  <bruno@clisp.org>
51098
51099         Add tentative support for DragonFly BSD.
51100         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51101         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51102         fp.
51103         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51104         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51105         * lib/fpurge.c (fpurge): Likewise.
51106         * lib/freadable.c (freaadable): Likewise.
51107         * lib/freadahead.c (freadahead): Likewise.
51108         * lib/freading.c (freading): Likewise.
51109         * lib/freadptr.c (freadptr): Likewise.
51110         * lib/freadseek.c (freadptrinc): Likewise.
51111         * lib/fseeko.c (fseeko): Likewise.
51112         * lib/fseterr.c (fseterr): Likewise.
51113         * lib/fwritable.c (fwritable): Likewise.
51114         * lib/fwriting.c (fwriting): Likewise.
51115
51116 2008-04-26  Bruno Haible  <bruno@clisp.org>
51117
51118         * lib/stdio-impl.h: New file.
51119         * lib/fbufmode.c: Include stdio-impl.h.
51120         (fbufmode): Use fp_, remove redundant #defines.
51121         * lib/fflush.c: Include stdio-impl.h.
51122         (clear_ungetc_buffer): Remove redundant #defines.
51123         * lib/fpurge.c: Include stdio-impl.h.
51124         (fpurge): Remove redundant #defines.
51125         * lib/freadable.c: Include stdio-impl.h.
51126         (freadable): Remove redundant #defines.
51127         * lib/freadahead.c: Include stdio-impl.h.
51128         (freadahead): Remove redundant #defines.
51129         * lib/freading.c: Include stdio-impl.h.
51130         (freading): Remove redundant #defines.
51131         * lib/freadptr.c: Include stdio-impl.h.
51132         (freadptr): Remove redundant #defines.
51133         * lib/freadseek.c: Include stdio-impl.h.
51134         (freadptrinc): Remove redundant #defines.
51135         * lib/fseeko.c: Include stdio-impl.h.
51136         (rpl_fseeko): Remove redundant #defines.
51137         * lib/fseterr.c: Include stdio-impl.h.
51138         (fseterr): Remove redundant #defines.
51139         * lib/fwritable.c: Include stdio-impl.h.
51140         (fwritable: Remove redundant #defines.
51141         * lib/fwriting.c: Include stdio-impl.h.
51142         (fwriting): Remove redundant #defines.
51143         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51144         * modules/fflush (Files): Likewise.
51145         * modules/fpurge (Files): Likewise.
51146         * modules/freadable (Files): Likewise.
51147         * modules/freadahead (Files): Likewise.
51148         * modules/freading (Files): Likewise.
51149         * modules/freadptr (Files): Likewise.
51150         * modules/freadseek (Files): Likewise.
51151         * modules/fseeko (Files): Likewise.
51152         * modules/fseterr (Files): Likewise.
51153         * modules/fwritable (Files): Likewise.
51154         * modules/fwriting (Files): Likewise.
51155
51156 2008-04-26  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51159         restore_seek_optimization, update_fpos_cache): New functions, extracted
51160         from rpl_fflush.
51161         (rpl_fflush): Use them.
51162         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51163         (gl_REPLACE_FFLUSH): Use it.
51164
51165 2008-04-26  Bruno Haible  <bruno@clisp.org>
51166
51167         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51168         on Solaris.
51169         * tests/test-xstrtoimax.sh: Likewise.
51170         * tests/test-xstrtoumax.sh: Likewise.
51171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51172
51173 2008-04-26  Bruno Haible  <bruno@clisp.org>
51174
51175         * modules/memchr-tests: New file.
51176         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51177
51178 2008-04-26  Eric Blake  <ebb9@byu.net>
51179             Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/memchr.c: Include intprops.h.
51182         (__memchr): Optimize parallel detection of matching bytes. Rename local
51183         variables. Add explanatory comments.
51184
51185 2008-04-26  Bruno Haible  <bruno@clisp.org>
51186
51187         Fix module 'memchr', broken since 2000-10-28.
51188         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51189
51190 2008-04-26  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51193         comments.
51194
51195 2008-04-25  Eric Blake  <ebb9@byu.net>
51196
51197         Use native fstatat on cygwin 1.7.0.
51198         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51199         first.
51200
51201 2008-04-23  Eric Blake  <ebb9@byu.net>
51202
51203         Improve memchr2 performance.
51204         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51205         NUL bytes.
51206         * modules/memchr2 (Depends-on): Use intprops.h.
51207
51208 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51209
51210         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51211         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51212         <blp@cs.stanford.edu>.
51213
51214 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51215
51216         * lib/arpa_inet.in.h: New file.
51217
51218         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51219         (Makefile.am): Sed in substitute header file.
51220
51221         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51222         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51223
51224         * modules/inet_ntop (configure.ac): Use
51225         gl_ARPA_INET_MODULE_INDICATOR.
51226
51227         * modules/inet_pton (configure.ac): Use
51228         gl_ARPA_INET_MODULE_INDICATOR.
51229
51230 2008-04-22  Jim Meyering  <meyering@redhat.com>
51231
51232         * modules/verify (License): Re-license as LGPLv2+.
51233
51234 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51235
51236         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51237         parameter to void* as per POSIX standard (MinGW uses char*).
51238
51239 2008-04-21  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51242         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51243         Define to replacements if REPLACE_ISWCNTRL is 1.
51244         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51245         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51246         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51247         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51248         what it fixes.
51249         * doc/posix-functions/iswalpha.texi: Likewise.
51250         * doc/posix-functions/iswblank.texi: Likewise.
51251         * doc/posix-functions/iswcntrl.texi: Likewise.
51252         * doc/posix-functions/iswdigit.texi: Likewise.
51253         * doc/posix-functions/iswgraph.texi: Likewise.
51254         * doc/posix-functions/iswlower.texi: Likewise.
51255         * doc/posix-functions/iswprint.texi: Likewise.
51256         * doc/posix-functions/iswpunct.texi: Likewise.
51257         * doc/posix-functions/iswspace.texi: Likewise.
51258         * doc/posix-functions/iswupper.texi: Likewise.
51259         * doc/posix-functions/iswxdigit.texi: Likewise.
51260         Reported by Alain Guibert.
51261
51262 2008-04-21  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51265         Patch by Alain Guibert.
51266
51267 2008-04-21  Bruno Haible  <bruno@clisp.org>
51268
51269         Fix test failures on mingw.
51270         * tests/test-xstrtol.c (print_no_progname): New function.
51271         (main): Install it in error_print_progname hook.
51272         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51273         * tests/test-xstrtoimax.sh: Likewise.
51274         * tests/test-xstrtoumax.sh: Likewise.
51275
51276 2008-04-21  Bruno Haible  <bruno@clisp.org>
51277
51278         Fix test failure on mingw.
51279         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51280
51281 2008-04-21  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51284         Actually assign a value.
51285
51286 2008-04-20  Bruno Haible  <bruno@clisp.org>
51287
51288         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51289         take 2.
51290         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51291         'canonicalize-lgpl' module is also used.
51292         * lib/canonicalize-lgpl.c: Undo last change.
51293         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51294
51295 2008-04-20  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51298         config.h. Provide _mkdir based fallback for mingw.
51299         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51300         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51302         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51303         rather than defining mkdir in config.h.
51304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51305         (gl_SYS_STAT_H_DEFAULTS): New macro.
51306         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51307         HAVE_IO_H any more.
51308         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51309         HAVE_DECL_MKDIR and HAVE_IO_H.
51310
51311 2008-04-20  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/isapipe.c: Port to native Windows platforms.
51314
51315 2008-04-20  Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51318
51319 2008-04-21  Eric Blake  <ebb9@byu.net>
51320
51321         Work around preprocessors that don't handle UINTMAX_MAX.
51322         * lib/memchr2.c (memchr2): Avoid embedded #if.
51323         Reported by Alain Guibert, fix suggested by Bruno Haible.
51324
51325 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51326
51327         * doc/posix-functions/strftime.texi (strftime): Explain better
51328         Windows incompatibility.  Suggested by Micah Cowan
51329         <micah@cowan.name>.
51330
51331 2008-04-20  Bruno Haible  <bruno@clisp.org>
51332
51333         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51334         unistr/u8-mblen.
51335
51336 2008-04-20  Bruno Haible  <bruno@clisp.org>
51337
51338         Fix test failure on platforms with non-GNU iconv.
51339         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51340         (U_TO_U8): Use it, rather than u16_to_u8.
51341         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51342         units at the end of the input string.
51343         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51344
51345 2008-04-20  Bruno Haible  <bruno@clisp.org>
51346
51347         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51348         when the resulting length is 0.
51349         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51350
51351 2008-04-20  Bruno Haible  <bruno@clisp.org>
51352
51353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51354         works.
51355         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51356
51357 2008-04-20  Bruno Haible  <bruno@clisp.org>
51358
51359         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51360         * modules/tsearch-tests (configure.ac): Test for initstate function.
51361
51362 2008-04-20  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51365         for nlink_t if missing.
51366         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51367
51368 2008-04-19  Bruno Haible  <bruno@clisp.org>
51369
51370         Work around snprintf bug on Linux libc5.
51371         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51373         gl_SNPRINTF_SIZE1.
51374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51375         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51376         that test failed.
51377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51378         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51379         * modules/snprintf (Files): Add m4/printf.m4.
51380         * modules/vsnprintf (Files): Likewise.
51381         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51382         * doc/posix-functions/vsnprintf.texi: Likewise.
51383
51384 2008-04-19  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51387         from 0.0058 to less than 10^-7.
51388
51389 2008-04-19  Bruno Haible  <bruno@clisp.org>
51390
51391         Fix rounding when a precision is given.
51392         * lib/vasnprintf.c (is_borderline): New function.
51393         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51394         9...9x.
51395         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51396         %e, %g.
51397         * tests/test-vasprintf-posix.c (test_function): Likewise.
51398         * tests/test-snprintf-posix.h (test_function): Likewise.
51399         * tests/test-sprintf-posix.h (test_function): Likewise.
51400         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51401         * tests/test-printf-posix.h (test_function): Likewise.
51402         * tests/test-printf-posix.output: Update.
51403         Reported by John Darrington <john@darrington.wattle.id.au> via
51404         Ben Pfaff <blp@cs.stanford.edu>.
51405
51406 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51407
51408         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51409         Suggested by Bruno Haible <bruno@clisp.org>.
51410
51411 2008-04-17  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51414         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51415         implementation.
51416         Patch by Bruce Merry <bmerry@gmail.com>.
51417
51418 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51419
51420         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51421         doesn't work under Windows.
51422
51423 2008-04-16  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51426         New macros.
51427         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51428         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51429         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51430         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51431         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51432         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51433         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51434         macros.
51435         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51436         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51437         Northern Sotho, Uighur.
51438
51439 2008-04-16  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51442         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51443         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51444         Reported by Daniel Bergström <daniel@octocode.com>.
51445
51446 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51447             Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51450         function.
51451         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51452         New functions, mostly extracted from gl_locale_name_default.
51453         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51454
51455 2008-04-16  Eric Blake  <ebb9@byu.net>
51456
51457         Adjust strtod detection to catch glibc 2.7 bug.
51458         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51459         Reported by John Gatewood Ham.
51460
51461 2008-04-16  Bruno Haible  <bruno@clisp.org>
51462
51463         Add tentative support for Linux libc5.
51464         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51465         * lib/fpurge.c (fpurge): Likewise.
51466         * lib/freadable.c (freadable): Likewise.
51467         * lib/freadahead.c (freadahead): Likewise.
51468         * lib/freading.c (freading): Likewise.
51469         * lib/freadptr.c (freadptr): Likewise.
51470         * lib/freadseek.c (freadptrinc): Likewise.
51471         * lib/fseeko.c (rpl_fseeko): Likewise.
51472         * lib/fseterr.c (fseterr): Likewise.
51473         * lib/fwritable.c (fwritable): Likewise.
51474         * lib/fwriting.c (fwriting): Likewise.
51475         Reported by Alain Guibert <alguibert+bts@free.fr>.
51476
51477 2008-04-15  Bruno Haible  <bruno@clisp.org>
51478
51479         * modules/mathl (configure.ac): Define module indicator.
51480
51481 2008-04-15  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/logl.c (logl): Remove unused variables.
51484
51485 2008-04-15  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51488         fails.
51489
51490 2008-04-15  Bruno Haible  <bruno@clisp.org>
51491
51492         * lib/trim.c (trim2): Fix argument of isspace() macro.
51493
51494 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51495
51496         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51497         to 0.
51498         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51499
51500 2008-04-14  Bruno Haible  <bruno@clisp.org>
51501
51502         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51503         AC_LANG_PROGRAM argument.
51504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51505         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51507         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51508         * m4/math_h.m4 (gl_MATH_H): Likewise.
51509         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51511         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51513         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51514         * m4/regex.m4 (gl_REGEX): Likewise.
51515         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51516         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51520         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51523
51524 2008-04-14  Jim Meyering  <meyering@redhat.com>
51525
51526         test-strtod: fix typos: s/abs/fabs/
51527         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51528
51529 2008-04-13  Bruno Haible  <bruno@clisp.org>
51530
51531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51532         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51533         module is also used and while not building the reloc-wrapper.
51534
51535 2008-04-13  Bruno Haible  <bruno@clisp.org>
51536
51537         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51538
51539 2008-04-13  Bruno Haible  <bruno@clisp.org>
51540
51541         Fix AIX compilation failure introduced on 2008-04-02.
51542         * tests/test-frexp.c (exp): Undefine before redefining.
51543         * tests/test-frexpl.c (exp): Likewise.
51544
51545 2008-04-13  Bruno Haible  <bruno@clisp.org>
51546
51547         Work around a HP-UX stdio bug.
51548         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51549         * tests/test-ftello.c (main): Likewise.
51550         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51551         * doc/posix-functions/ftello.texi: Likewise.
51552
51553 2008-04-13  Bruno Haible  <bruno@clisp.org>
51554
51555         Make test-signbit pass on HP-UX/hppa.
51556         * tests/test-signbit.c (minus_zerol): New variable.
51557         (test_signbitl): Use it.
51558
51559 2008-04-13  Bruno Haible  <bruno@clisp.org>
51560
51561         Make truncl work on OSF/1 4.0.
51562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51563         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51564         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51566         HAVE_DECL_TRUNCL.
51567         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51568         HAVE_DECL_TRUNCL.
51569         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51570
51571 2008-04-13  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51574
51575 2008-04-13  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51578         expression, so as to avoid HP-UX 11 cc compiler bug.
51579
51580 2008-04-13  Bruno Haible  <bruno@clisp.org>
51581
51582         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51583
51584 2008-04-13  Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/git-merge-changelog.c: Remove empty declaration outside of
51587         functions.
51588
51589 2008-04-13  Bruno Haible  <bruno@clisp.org>
51590
51591         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51592
51593 2008-04-13  Bruno Haible  <bruno@clisp.org>
51594
51595         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51596         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51598         also if it exists but lacks definitions of the SHUT_* macros.
51599         * modules/sys_socket (Description): Update.
51600         Reported by Elbert Pol <e.pol@chello.nl>.
51601
51602 2008-04-13  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/localcharset.c (OS2): Don't redefine if already defined.
51605         Reported by Elbert Pol <e.pol@chello.nl>.
51606
51607 2008-04-13  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/binary-io.h [__EMX__]: Include <io.h>.
51610         Reported by Elbert Pol <e.pol@chello.nl>.
51611
51612 2008-04-12  Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/fpucw.h: Enable the definitions also for x86_64.
51615         Needed for NetBSD/x86_64.
51616         Reported by Thomas Klausner <tk@giga.or.at>.
51617
51618 2008-04-12  Bruno Haible  <bruno@clisp.org>
51619
51620         * tests/test-strtod.c: Include isnand.h.
51621         (main): Use isnand instead of isnan.
51622         Reported by Jim Meyering.
51623
51624 2008-04-12  Bruno Haible  <bruno@clisp.org>
51625
51626         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51628
51629 2008-04-12  Jim Meyering  <meyering@redhat.com>
51630
51631         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51632
51633 2008-04-12  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51636         Reported by Elbert Pol <e.pol@chello.nl>.
51637
51638 2008-04-12  Eric Blake  <ebb9@byu.net>
51639
51640         Work around Solaris 10 math.h bug.
51641         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51642         (gl_MATH_H_DEFAULTS): Set up default.
51643         * modules/math (Makefile.am): Replace new indicators.
51644         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51645         * tests/test-math.c (main): Test this.
51646         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51647         * doc/posix-headers/math.texi (math.h): Mention bug.
51648         Reported by Nelson H. F. Beebe and Jim Meyering.
51649
51650 2008-04-11  Bruno Haible  <bruno@clisp.org>
51651
51652         Adapt to future versions of Apple GCC.
51653         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51654         Reported by Peter O'Gorman <peter@pogma.com>.
51655
51656 2008-04-11  Bruno Haible  <bruno@clisp.org>
51657
51658         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51659
51660 2008-04-11  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51663
51664         * modules/getaddrinfo-tests (Makefile.am): Define
51665         test_getaddrinfo_LDADD.
51666
51667 2008-04-11  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51670         (init): Fix syntax error.
51671         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51672         is declared.
51673
51674 2008-04-11  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51677         * modules/glob (Depends-on): Add stdbool.
51678
51679 2008-04-11  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/trim.c: Include <string.h>.
51682
51683 2008-04-11  Eric Blake  <ebb9@byu.net>
51684
51685         Avoid compile failure on OS/2.
51686         * lib/regex_internal.h (internal_function): Disable optimization
51687         on OS/2 (__EMX__), where it caused compiler error.
51688         Reported by Elbert Pol.
51689
51690 2008-04-11  Bruno Haible  <bruno@clisp.org>
51691
51692         Flush the standard error stream before aborting. Needed on mingw.
51693         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51694         * tests/test-array_list.c (ASSERT): Likewise.
51695         * tests/test-array_oset.c (ASSERT): Likewise.
51696         * tests/test-avltree_list.c (ASSERT): Likewise.
51697         * tests/test-avltree_oset.c (ASSERT): Likewise.
51698         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51699         * tests/test-binary-io.c (ASSERT): Likewise.
51700         * tests/test-byteswap.c (ASSERT): Likewise.
51701         * tests/test-c-ctype.c (ASSERT): Likewise.
51702         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51703         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51704         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51705         * tests/test-c-strstr.c (ASSERT): Likewise.
51706         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51707         * tests/test-canonicalize.c (ASSERT): Likewise.
51708         * tests/test-carray_list.c (ASSERT): Likewise.
51709         * tests/test-ceilf1.c (ASSERT): Likewise.
51710         * tests/test-ceilf2.c (ASSERT): Likewise.
51711         * tests/test-ceill.c (ASSERT): Likewise.
51712         * tests/test-count-one-bits.c (ASSERT): Likewise.
51713         * tests/test-fbufmode.c (ASSERT): Likewise.
51714         * tests/test-fflush2.c (ASSERT): Likewise.
51715         * tests/test-floorf1.c (ASSERT): Likewise.
51716         * tests/test-floorf2.c (ASSERT): Likewise.
51717         * tests/test-floorl.c (ASSERT): Likewise.
51718         * tests/test-fopen.c (ASSERT): Likewise.
51719         * tests/test-fpending.c (ASSERT): Likewise.
51720         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51721         * tests/test-fpurge.c (ASSERT): Likewise.
51722         * tests/test-freadable.c (ASSERT): Likewise.
51723         * tests/test-freadahead.c (ASSERT): Likewise.
51724         * tests/test-freading.c (ASSERT): Likewise.
51725         * tests/test-freadptr.c (ASSERT): Likewise.
51726         * tests/test-freadptr2.c (ASSERT): Likewise.
51727         * tests/test-freadseek.c (ASSERT): Likewise.
51728         * tests/test-freopen.c (ASSERT): Likewise.
51729         * tests/test-frexp.c (ASSERT): Likewise.
51730         * tests/test-frexpl.c (ASSERT): Likewise.
51731         * tests/test-fseek.c (ASSERT): Likewise.
51732         * tests/test-fseeko.c (ASSERT): Likewise.
51733         * tests/test-fstrcmp.c (ASSERT): Likewise.
51734         * tests/test-ftell.c (ASSERT): Likewise.
51735         * tests/test-ftello.c (ASSERT): Likewise.
51736         * tests/test-func.c (ASSERT): Likewise.
51737         * tests/test-fwritable.c (ASSERT): Likewise.
51738         * tests/test-fwriting.c (ASSERT): Likewise.
51739         * tests/test-getdelim.c (ASSERT): Likewise.
51740         * tests/test-getline.c (ASSERT): Likewise.
51741         * tests/test-i-ring.c (ASSERT): Likewise.
51742         * tests/test-iconv-utf.c (ASSERT): Likewise.
51743         * tests/test-iconv.c (ASSERT): Likewise.
51744         * tests/test-isfinite.c (ASSERT): Likewise.
51745         * tests/test-isnand.c (ASSERT): Likewise.
51746         * tests/test-isnanf.c (ASSERT): Likewise.
51747         * tests/test-isnanl.h (ASSERT): Likewise.
51748         * tests/test-ldexpl.c (ASSERT): Likewise.
51749         * tests/test-linked_list.c (ASSERT): Likewise.
51750         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51751         * tests/test-localename.c (ASSERT): Likewise.
51752         * tests/test-lseek.c (ASSERT): Likewise.
51753         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51754         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51755         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51756         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51757         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51758         * tests/test-mbschr.c (ASSERT): Likewise.
51759         * tests/test-mbscspn.c (ASSERT): Likewise.
51760         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51761         * tests/test-mbspbrk.c (ASSERT): Likewise.
51762         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51763         * tests/test-mbsrchr.c (ASSERT): Likewise.
51764         * tests/test-mbsspn.c (ASSERT): Likewise.
51765         * tests/test-mbsstr1.c (ASSERT): Likewise.
51766         * tests/test-mbsstr2.c (ASSERT): Likewise.
51767         * tests/test-mbsstr3.c (ASSERT): Likewise.
51768         * tests/test-memchr2.c (ASSERT): Likewise.
51769         * tests/test-memmem.c (ASSERT): Likewise.
51770         * tests/test-open.c (ASSERT): Likewise.
51771         * tests/test-printf-frexp.c (ASSERT): Likewise.
51772         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51773         * tests/test-printf-posix.c (ASSERT): Likewise.
51774         * tests/test-quotearg.c (ASSERT): Likewise.
51775         * tests/test-rbtree_list.c (ASSERT): Likewise.
51776         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51777         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51778         * tests/test-round1.c (ASSERT): Likewise.
51779         * tests/test-roundf1.c (ASSERT): Likewise.
51780         * tests/test-roundl.c (ASSERT): Likewise.
51781         * tests/test-signbit.c (ASSERT): Likewise.
51782         * tests/test-sleep.c (ASSERT): Likewise.
51783         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51784         * tests/test-snprintf.c (ASSERT): Likewise.
51785         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51786         * tests/test-stat-time.c (ASSERT): Likewise.
51787         * tests/test-strcasestr.c (ASSERT): Likewise.
51788         * tests/test-strerror.c (ASSERT): Likewise.
51789         * tests/test-striconv.c (ASSERT): Likewise.
51790         * tests/test-striconveh.c (ASSERT): Likewise.
51791         * tests/test-striconveha.c (ASSERT): Likewise.
51792         * tests/test-strsignal.c (ASSERT): Likewise.
51793         * tests/test-strstr.c (ASSERT): Likewise.
51794         * tests/test-strtod.c (ASSERT): Likewise.
51795         * tests/test-trunc1.c (ASSERT): Likewise.
51796         * tests/test-trunc2.c (ASSERT): Likewise.
51797         * tests/test-truncf1.c (ASSERT): Likewise.
51798         * tests/test-truncf2.c (ASSERT): Likewise.
51799         * tests/test-truncl.c (ASSERT): Likewise.
51800         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51801         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51802         * tests/test-vasnprintf.c (ASSERT): Likewise.
51803         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51804         * tests/test-vasprintf.c (ASSERT): Likewise.
51805         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51806         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51807         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51808         * tests/test-vsnprintf.c (ASSERT): Likewise.
51809         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51810         * tests/test-wcwidth.c (ASSERT): Likewise.
51811         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51812         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51813         * tests/test-xvasprintf.c (ASSERT): Likewise.
51814         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51815         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51816         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51817         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51818         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51819         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51820         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51821         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51822         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51823         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51824         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51825         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51826         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51827         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51828         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51829         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51830         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51831         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51832         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51833         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51834         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51835         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51836         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51837         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51838         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51839         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51840         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51841         * tests/unictype/test-combining.c (ASSERT): Likewise.
51842         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51843         * tests/unictype/test-digit.c (ASSERT): Likewise.
51844         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51845         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51846         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51847         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51848         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51849         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51850         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51851         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51852         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51853         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51854         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51855         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51856         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51857         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51858         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51859         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51860         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51861         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51862         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51863         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51864         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51865         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51866         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51867         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51868         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51869         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51870         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51871         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51872         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51873         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51874         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51875         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51876         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51877         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51878         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51879         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51880         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51881         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51882         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51883         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51884         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51885         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51886         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51887         Reported by Eric Blake.
51888
51889 2008-04-11  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/wchar.in.h: Tweak comment.
51892
51893 2008-04-11  Bruno Haible  <bruno@clisp.org>
51894
51895         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51896         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51897         gl_COMMON.
51898         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51899
51900 2008-04-11  Bruno Haible  <bruno@clisp.org>
51901
51902         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51903
51904 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51905
51906         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51907         of attempting to use non-existing /dev/*random.  Based on patch
51908         from Adam Strzelecki <ono@java.pl> in
51909         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51910
51911 2008-04-08  Bruno Haible  <bruno@clisp.org>
51912
51913         Add tentative support for emx+gcc.
51914         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51915         * lib/fpurge.c (fpurge): Likewise.
51916         * lib/freadable.c (freadable): Likewise.
51917         * lib/freadahead.c (freadahead): Likewise.
51918         * lib/freading.c (freading): Likewise.
51919         * lib/freadptr.c (freadptr): Likewise.
51920         * lib/freadseek.c (freadptrinc): Likewise.
51921         * lib/fseeko.c (rpl_fseeko): Likewise.
51922         * lib/fseterr.c (fseterr): Likewise.
51923         * lib/fwritable.c (fwritable): Likewise.
51924         * lib/fwriting.c (fwriting): Likewise.
51925         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51926
51927 2008-04-09  Eric Blake  <ebb9@byu.net>
51928
51929         Avoid some autoconf warnings.
51930         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51931         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51932         * m4/afs.m4 (gl_AFS): Likewise.
51933         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51934         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51936         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51937         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51938         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51939         (AC_CHECK_DECLS_ONCE): Likewise.
51940         Rename file...
51941         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51942         gnulib-tool requires autoconf 2.59 or better.
51943         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51944
51945 2008-04-08  Eric Blake  <ebb9@byu.net>
51946
51947         Use 'git describe --match' if present (added in git 1.5.5).
51948         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51949         if possible.
51950
51951 2008-04-08  Bruno Haible  <bruno@clisp.org>
51952
51953         Add tentative support for OpenServer.
51954         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51955         _ptr, _cnt.
51956         * lib/fpurge.c (fpurge): Likewise.
51957         * lib/freadable.c (freadable): Likewise.
51958         * lib/freadahead.c (freadahead): Likewise.
51959         * lib/freading.c (freading): Likewise.
51960         * lib/freadptr.c (freadptr): Likewise.
51961         * lib/freadseek.c (freadptrinc): Likewise.
51962         * lib/fseeko.c (rpl_fseeko): Likewise.
51963         * lib/fseterr.c (fseterr): Likewise.
51964         * lib/fwritable.c (fwritable): Likewise.
51965         * lib/fwriting.c (fwriting): Likewise.
51966         Reported by Roger Cornelius <rac@tenzing.org> and
51967         Brian K. White <brian@aljex.com>.
51968
51969 2008-04-06  Jim Meyering  <meyering@redhat.com>
51970
51971         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51972
51973 2008-04-06  Bruno Haible  <bruno@clisp.org>
51974
51975         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51976         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51977         * tests/test-printf-posix.sh: Likewise.
51978         * tests/test-vfprintf-posix.sh: Likewise.
51979         * tests/test-vprintf-posix.sh: Likewise.
51980         * tests/test-xprintf-posix.sh: Likewise.
51981
51982 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51983
51984         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51985         hide error from 'ls', needed on OS/2.
51986         Report by Elbert Pol <elbert.pol@gmail.com>.
51987
51988 2008-04-04  Eric Blake  <ebb9@byu.net>
51989
51990         Make test-fseeko.c failures meaningful.
51991         * tests/test-fseeko.c: Print line number on failure.
51992         * tests/test-fseek.c: Likewise.
51993         Reported by Nelson H. F. Beebe.
51994
51995         Improve strtod bug detection check.
51996         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51997         required for Solaris 10.
51998         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51999
52000 2008-04-04  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52003         by m4/setenv.m4.
52004
52005 2008-04-03  Eric Blake  <ebb9@byu.net>
52006
52007         Ensure sane .version contents.
52008         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52009         version string.
52010         * build-aux/git-version-gen: Improve documentation.
52011
52012         Make GNU make output nicer.
52013         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52014         MAKECMDGOALS to enforce message for all command line targets.  Set
52015         srcdir for use in maint.mk.
52016
52017         Another maintainer tweak.
52018         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52019         a target that regenerates version.
52020
52021 2008-04-03  Jim Meyering  <meyering@redhat.com>
52022
52023         vc-list-files: don't cause coreutils "make po-check" failure
52024         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52025
52026 2008-04-03  Eric Blake  <ebb9@byu.net>
52027
52028         Allow VPATH usage of vc-list-files.
52029         * build-aux/vc-list-files (scriptversion): Add timestamp.
52030         (options): Add --help, --version, -C.
52031         (CVS): Support installed cvsu.
52032
52033 2008-04-02  Bruno Haible  <bruno@clisp.org>
52034
52035         Avoid some "statement with no effect" warnings from gcc.
52036         * tests/test-wctype.c (main): Explicitly ignore unused values.
52037         Reported by Jim Meyering.
52038
52039 2008-04-02  Jim Meyering  <meyering@redhat.com>
52040
52041         Avoid some warnings from "gcc -Wshadow".
52042         * tests/test-frexp.c (exp): Define to a different identifier.
52043         * tests/test-frexpl.c (exp): Likewise.
52044
52045 2008-04-03  Jim Meyering  <meyering@redhat.com>
52046
52047         bootstrap: remove dangling *.[ch] symlinks from lib
52048         * build-aux/bootstrap [dangling symlink removal]: Move find's
52049         -depth option to precede all others, to avoid a warning.
52050         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52051
52052 2008-04-02  Bruno Haible  <bruno@clisp.org>
52053
52054         Avoid some warnings from "gcc -Wshadow".
52055         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52056         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52057         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52058         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52059         Reported by Jim Meyering.
52060
52061 2008-04-01  Bruno Haible  <bruno@clisp.org>
52062
52063         Fix test to work on IRIX 6.5 with cc.
52064         * tests/test-math.c (numeric_equal): New function.
52065         (main): Use it.
52066
52067 2008-04-01  Bruno Haible  <bruno@clisp.org>
52068
52069         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52070
52071 2008-04-01  Bruno Haible  <bruno@clisp.org>
52072
52073         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52075         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52076         (Depends-on): Remove math.
52077
52078         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52079         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52080         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52081         (Depends-on): Remove math.
52082
52083         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52084         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52085         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52086         (Depends-on): Remove math.
52087         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52088         (Depends-on): Remove math.
52089
52090         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52091         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52092         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52093         (Depends-on): Remove math.
52094         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52095         (Depends-on): Remove math.
52096
52097         * tests/test-round1.c: Include nan.h.
52098         (main): Use NaNd instead of NAN.
52099         * modules/round-tests (Files): Add tests/nan.h.
52100
52101         * tests/test-trunc1.c: Include nan.h.
52102         (main): Use NaNd instead of NAN.
52103         * modules/trunc-tests (Files): Add tests/nan.h.
52104
52105         * tests/test-roundf1.c: Include nan.h.
52106         (main): Use NaNf instead of NAN.
52107         * modules/roundf-tests (Files): Add tests/nan.h.
52108
52109         * tests/test-truncf1.c: Include nan.h.
52110         (main): Use NaNf instead of NAN.
52111         * modules/truncf-tests (Files): Add tests/nan.h.
52112
52113         * tests/test-ceilf1.c: Include nan.h.
52114         (main): Use NaNf instead of NAN.
52115         * modules/ceilf-tests (Files): Add tests/nan.h.
52116
52117         * tests/test-floorf1.c: Include nan.h.
52118         (main): Use NaNf instead of NAN.
52119         * modules/floorf-tests (Files): Add tests/nan.h.
52120
52121         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52122         (main): Use NaNf instead of NAN.
52123         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52124
52125         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52126         (main): Use NaNd instead of NAN.
52127         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52128
52129         * tests/test-frexp.c: Include nan.h.
52130         (main): Use NaNd instead of NAN.
52131         * modules/frexp-tests (Files): Add tests/nan.h.
52132
52133         * lib/isnan.c: Don't include <math.h>.
52134         (FUNC): Don't use NAN macro.
52135         * modules/isnand-nolibm (Depends-on): Remove math.
52136         * modules/isnanf-nolibm (Depends-on): Remove math.
52137         * modules/isnanl (Depends-on): Remove math.
52138         * modules/isnanl-nolibm (Depends-on): Remove math.
52139
52140         * tests/nan.h: New file.
52141
52142 2008-04-01  Eric Blake  <ebb9@byu.net>
52143
52144         Fix typos.
52145         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52146         values to be the right type.
52147
52148         For now, cater to gnulib strtod inaccuracies.
52149         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52150         fractional results.  While not as nice from a QoI perspective, it
52151         is a quicker patch than correctly implementing decimal to binary
52152         rounding.
52153
52154 2008-03-31  Eric Blake  <ebb9@byu.net>
52155
52156         Guarantee a definition of NAN.
52157         * lib/math.in.h (NAN): Define if missing.
52158         * tests/test-math.c (main): Test it.
52159         * doc/posix-headers/math.texi (math.h): Document this.
52160         * lib/isnan.c (rpl_isnand): Use it.
52161         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52162         * tests/test-floorf1.c (NaN): Likewise.
52163         * tests/test-frexp.c (NaN): Likewise.
52164         * tests/test-isnand.c (NaN): Likewise.
52165         * tests/test-isnanf.c (NaN): Likewise.
52166         * tests/test-round1.c (NaN): Likewise.
52167         * tests/test-roundf1.c (NaN): Likewise.
52168         * tests/test-snprintf-posix.h (NaN): Likewise.
52169         * tests/test-sprintf-posix.h (NaN): Likewise.
52170         * tests/test-trunc1.c (NaN): Likewise.
52171         * tests/test-truncf1.c (NaN): Likewise.
52172         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52173         * tests/test-vasprintf-posix.c (NaN): Likewise.
52174         * modules/isnand-nolibm (Depends-on): Add math.
52175         * modules/isnanf-nolibm (Depends-on): Likewise.
52176         * modules/isnanl (Depends-on): Likewise.
52177         * modules/isnanl-nolibm (Depends-on): Likewise.
52178         * modules/snprintf-posix-tests (Depends-on): Likewise.
52179         * modules/sprintf-posix-tests (Depends-on): Likewise.
52180         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52181         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52182         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52183         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52184
52185 2008-03-31  Bruno Haible  <bruno@clisp.org>
52186
52187         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52188         * doc/posix-functions/strtod.texi: Likewise.
52189
52190 2008-03-31  Bruno Haible  <bruno@clisp.org>
52191
52192         * tests/test-strtod.c (main): Don't use C99 syntax.
52193
52194 2008-03-31  Bruno Haible  <bruno@clisp.org>
52195
52196         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52197         Reported by Eric Blake.
52198
52199 2008-03-31  Jim Meyering  <meyering@redhat.com>
52200
52201         Don't compare actual signbit return values.
52202         * tests/test-strtod.c (main): Rather, compare only their
52203         zero/non-zero nature.
52204
52205 2008-03-31  Eric Blake  <ebb9@byu.net>
52206
52207         More strtod documentation.
52208         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52209         failures as distinct bugs.
52210
52211 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52214         Problem reported by Erik Benada in
52215         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52216
52217 2008-03-30  Bruno Haible  <bruno@clisp.org>
52218
52219         * tests/test-strtod.c: Add comments about which assertion fails on which
52220         platform.
52221         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52222
52223 2008-03-30  Eric Blake  <ebb9@byu.net>
52224
52225         Test signbit behavior on zeros.
52226         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52227         (test_signbitd, test_signbitl): Likewise.
52228
52229         More strtod touchups.
52230         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52231         sign of negative underflow, for now.  Use .5, not .1.
52232         * doc/posix-functions/strtod.texi (strtod): Mention these
52233         limitations.
52234         Reported by Jim Meyering.
52235
52236 2008-03-30  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52239         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52240
52241 2008-03-30  Bruno Haible  <bruno@clisp.org>
52242
52243         Avoid failure when attempting to return empty iconv results on some
52244         platforms.
52245         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52246         allocation, don't report ENOMEM when the resulting string is empty.
52247
52248 2008-03-30  Bruno Haible  <bruno@clisp.org>
52249
52250         Fix buffer overrun.
52251         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52252         Don't consider the width for tmp_length. Check count against tmp_length
52253         before doing the padding. Ensure enough allocation during padding.
52254
52255 2008-03-30  Eric Blake  <ebb9@byu.net>
52256
52257         strtod touchups.
52258         * lib/strtod.c (strtod): Avoid compiler warnings.
52259         Reported by Jim Meyering.
52260
52261 2008-03-30  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52264         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52265         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52266         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52267         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52268         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52269         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52270         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52271
52272         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52273         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52274         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52275         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52276         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52277         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52278         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52279         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52280
52281         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52282         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52283         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52284         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52285         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52286         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52287         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52288         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52289
52290         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52291         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52292
52293         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52294         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52295
52296         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52297         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52298
52299         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52301         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52302
52303         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52305         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52306
52307         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52309         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52310
52311         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52313         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52314
52315         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52316         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52318         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52319         (Depends-on): Add EOVERFLOW.
52320         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52321         (Depends-on): Add EOVERFLOW.
52322         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52323         (Depends-on): Add EOVERFLOW.
52324         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52325         (Depends-on): Add EOVERFLOW.
52326         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52327         (Depends-on): Add EOVERFLOW.
52328         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52329         (Depends-on): Add EOVERFLOW.
52330         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52331         (Depends-on): Add EOVERFLOW.
52332         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52333         (Depends-on): Add EOVERFLOW.
52334
52335         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52337         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52338
52339         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52341         * modules/snprintf (Depends-on): Add EOVERFLOW.
52342
52343         * lib/poll.c (EOVERFLOW): Remove fallback.
52344         * modules/poll (Depends-on): Add EOVERFLOW.
52345
52346         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52347         * modules/getugroups (Depends-on): Add EOVERFLOW.
52348
52349         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52350         * modules/getdelim (Depends-on): Add EOVERFLOW.
52351
52352         * lib/ftell.c (EOVERFLOW): Remove fallback.
52353         * modules/ftell (Depends-on): Add EOVERFLOW.
52354
52355         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52357         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52358
52359         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52360
52361         * modules/EOVERFLOW-tests: New file.
52362         * tests/test-EOVERFLOW.c: New file.
52363
52364         * modules/EOVERFLOW: New file.
52365         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52366
52367 2008-03-30  Bruno Haible  <bruno@clisp.org>
52368
52369         Fix bug introduced on 2007-06-10.
52370         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52371         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52372
52373 2008-03-30  Bruno Haible  <bruno@clisp.org>
52374
52375         Improve freadseek's efficiency after ungetc.
52376         * lib/freadseek.c: Include freadahead.h.
52377         (freadptrinc): New function, extracted from freadseek.
52378         (freadseek): Use it in a loop. Use freadahead to determine the number
52379         of loop iterations.
52380         * modules/freadseek (Depends-on): Add freadahead.
52381         (configure.ac): Require AC_C_INLINE.
52382
52383 2008-03-30  Bruno Haible  <bruno@clisp.org>
52384
52385         * lib/freadseek.c (freadseek): Don't ignore the return value of
52386         freadptr.
52387
52388 2008-03-29  Eric Blake  <ebb9@byu.net>
52389
52390         Add hex float support.
52391         * modules/strtod (Depends-on): Add c-ctype.
52392         (Link): Mention POW_LIB.
52393         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52394         whitespace between 'e' and exponent.
52395         * tests/test-strtod.c (main): Enable hex float tests.
52396         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52397         now provides.
52398
52399         Document various strtod bugs, with some fixes.
52400         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52401         "-0x", "inf", "nan", and hex constants.
52402         * doc/posix-functions/atof.texi (atof): Likewise.
52403         * modules/stdlib (Makefile.am): Support strtod.
52404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52405         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52406         detect additional strtod bugs.
52407         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52408         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52409         bool where appropriate.  Parse 'inf' and 'nan'.
52410         * tests/test-strtod.c: New file.
52411         * modules/strtod (Depends-on): Add stdbool, stdlib.
52412         (configure.ac): Turn on module indicator.
52413         * modules/strtod-tests: New module.
52414
52415 2008-03-29  Eric Blake  <ebb9@byu.net>
52416
52417         Fix ftell on mingw.
52418         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52419         * modules/ftell-tests (Depends-on): Add binary-io.
52420         * modules/ftello-tests (Depends-on): Likewise.
52421         * tests/test-ftell.c (main): Enhance test to cover behavior after
52422         ungetc.  Enforce binary mode.
52423         * tests/test-ftello.c (main): Likewise.
52424
52425         Pass test-freadseek on cygwin.
52426         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52427         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52428         ungetc buffer.
52429
52430         * tests/test-fflush2.c (main): Fix typo.
52431
52432 2008-03-29  Bruno Haible  <bruno@clisp.org>
52433
52434         * tests/test-fflush2.c (main): Temporarily disable the contents of
52435         this test.
52436         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52437         Reported by Eric Blake.
52438
52439 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52440
52441         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52442         (GC_SHA224_DIGEST_SIZE): Add.
52443
52444         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52445         (gc_hash_digest_length): Likewise.
52446         (gc_hash_buffer): Likewise.
52447
52448 2008-03-25  Bruno Haible  <bruno@clisp.org>
52449
52450         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52451         detail which gettext release to use.
52452         Reported by Simon Josefsson.
52453
52454 2008-03-26  Jim Meyering  <meyering@redhat.com>
52455
52456         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52457         * modules/gnumakefile (clean-GNUmakefile): Also, use
52458         test ... && ... || : syntax rather than if-then ... fi.
52459
52460         gnumakefile: Don't double-quote-expand $(VPATH) value.
52461         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52462
52463 2008-03-24  Eric Blake  <ebb9@byu.net>
52464
52465         Alter GNUmakefile to install into top directory.
52466         * modules/maintainer-makefile: Split, and add dependency...
52467         * modules/gnumakefile: to this new module.
52468         * build-aux/GNUmakefile: Move...
52469         * top/GNUmakefile: ...here.
52470         * build-aux/maint.mk: Move...
52471         * top/maint.mk: ...here.
52472         * MODULES.html.sh (Support for maintaining...): Document new
52473         module.
52474
52475 2008-03-23  Bruno Haible  <bruno@clisp.org>
52476
52477         * gnulib-tool: New options --vc-files, --no-vc-files.
52478         (func_usage): Document them.
52479         (vc_files): New variable.
52480         (func_import): Consider vc_files.
52481         (func_create_testdir): Set vc_files to empty.
52482         Suggested by Jim Meyering and Karl Berry.
52483
52484 2008-03-23  Bruno Haible  <bruno@clisp.org>
52485
52486         Fix regex compilation error on HP-UX 11.
52487         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52488         * modules/regex (Files): Add m4/mbstate_t.m4.
52489         Reported by Ton Voon <ton.voon@altinity.com>.
52490
52491 2008-03-23  Bruno Haible  <bruno@clisp.org>
52492
52493         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52494
52495 2008-03-23  Eric Blake  <ebb9@byu.net>
52496             Bruno Haible  <bruno@clisp.org>
52497
52498         Install files from top/ in the destination directory.
52499         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52500         augmentation also for the files from top/.
52501         (func_import, func_create_testdir): Rewrite file names:
52502         top/filename -> filename.
52503
52504 2008-03-23  Bruno Haible  <bruno@clisp.org>
52505
52506         Tweak "gnulib --version" output.
52507         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52508
52509 2008-03-23  Bruno Haible  <bruno@clisp.org>
52510
52511         Tweak "gnulib --version" output.
52512         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52513         rather than contents of ChangeLog, when possible.
52514
52515 2008-03-21  Eric Blake  <ebb9@byu.net>
52516
52517         More --version tweaks.
52518         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52519         date of last ChangeLog entry.
52520
52521 2008-03-21  Jim Meyering  <meyering@redhat.com>
52522
52523         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52524
52525 2008-03-20  Eric Blake  <ebb9@byu.net>
52526
52527         VPATH fix.
52528         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52529
52530 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52531
52532         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52533         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52534
52535 2008-03-20  Eric Blake  <ebb9@byu.net>
52536
52537         Sync GNUmakefile with coreutils.
52538         * build-aux/GNUmakefile (have-Makefile): Rename...
52539         (_have-Makefile): ...to this, for namespace consideration.
52540         (GNUmakefile.cfg): Include, if present.
52541         (_autoreconf): Define a default.
52542         (_is-dist-target): New rule for rebuilds to pick up intra-release
52543         version.
52544         (maint-cfg.mk): Rename...
52545         (cfg.mk): ...to this.
52546
52547 2008-03-18  Jim Meyering  <meyering@redhat.com>
52548
52549         New script and module: mktempd
52550         * MODULES.html.sh (maint+release support): Add mktempd.
52551         * build-aux/mktempd: New file.
52552         * modules/mktempd: New file.
52553
52554 2008-03-15  Jim Meyering  <meyering@redhat.com>
52555
52556         Undo last change.
52557         * lib/sha1.c, lib/md5.c: 63 != ~63.
52558         Reported by Andreas Schwab.
52559
52560         sha1.c, md5.c: Hoist a redundant expression.
52561         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52562         "ctx->buflen" only once, before calling *_process_block.
52563         * lib/md5.c (md5_process_bytes): Likewise.
52564
52565 2008-03-14  Eric Blake  <ebb9@byu.net>
52566
52567         Bump copyright year in files generated by gnulib-tool.
52568         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52569         gnulib-tool, rather than hard-coding it.
52570
52571         Fix 'gnulib-tool --version' output to work with git.
52572         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52573         (startup): ...here.
52574         (func_version): Use it to invoke git-version-gen, rather than
52575         relying on CVS keyword expansion.  Modernize wording.
52576         (cvsdatestamp, last_checkin_date, version): Kill unused
52577         variables.
52578
52579 2008-03-12  Jim Meyering  <meyering@redhat.com>
52580
52581         Recognize optional cast of the argument to free.
52582         * build-aux/useless-if-before-free: Update regexps.
52583
52584         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52585
52586 2008-03-11  Bruno Haible  <bruno@clisp.org>
52587
52588         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52589         by a single package.
52590         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52591         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52592         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52593         Reported by Sam Steingold <sds@gnu.org>.
52594
52595 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52596
52597         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52598         repositories.
52599
52600 2008-03-11  Bruno Haible  <bruno@clisp.org>
52601
52602         Avoid conflicts between local macro definitions.
52603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52604         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52605
52606 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52607             Bruno Haible  <bruno@clisp.org>
52608
52609         Make va_copy work with some version of xlc on AIX 5.1.
52610         * lib/stdarg.in.h: New file.
52611         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52612         On AIX, use a <stdarg.h> file substitute.
52613         * modules/stdarg (Files): Add lib/stdarg.in.h.
52614         (Depends-on): Add include_next.
52615         (Makefile.am): Build a stdarg.h substitute if requested.
52616         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52617
52618 2008-03-10  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52622         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52623
52624 2008-03-10  Bruno Haible  <bruno@clisp.org>
52625
52626         * modules/stdlib (Depends-on): Add include_next, remove
52627         absolute-header.
52628
52629 2008-03-09  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/freadahead.h (freadahead): Document more precisely.
52632         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52633         the sum of both buffer sizes.
52634         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52635         * NEWS: Document the change.
52636
52637 2008-03-09  Bruno Haible  <bruno@clisp.org>
52638
52639         Extend freadptr to return also the buffer size.
52640         * lib/freadptr.h (freadptr): Add sizep argument.
52641         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52642         (freadptr): Add sizep argument. Determine buffer size like freadahead
52643         does.
52644         * tests/test-freadptr.c: Don't include freadahead.h.
52645         (main): Adapt for new calling convention of freadptr.
52646         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52647         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52648         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52649         tests/test-freadptr2.sh.
52650         (Depends): Remove freadahead.
52651         (TESTS): Add test-freadptr2.sh.
52652         (check_PROGRAMS): Add test-freadptr2.
52653
52654 2008-03-09  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52657         Report and solution by Simon Josefsson.
52658
52659 2008-03-06  Bruno Haible  <bruno@clisp.org>
52660
52661         Make fflush after ungetc work on BSD platforms.
52662         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52663         * tests/test-fflush2.c: New file.
52664         * tests/test-fflush2.sh: New file.
52665         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52666         tests/test-fflush2.c.
52667         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52668         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52669
52670 2008-03-06  Eric Blake  <ebb9@byu.net>
52671
52672         Likewise for ftello.
52673         * modules/ftello (Dependencies): Add extensions.
52674         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52675
52676 2008-03-06  Bruno Haible  <bruno@clisp.org>
52677
52678         * modules/fseeko (Dependencies): Add extensions.
52679         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52680         Needed on glibc systems.
52681
52682 2008-03-06  Bruno Haible  <bruno@clisp.org>
52683
52684         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52685         email address.
52686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52687
52688 2008-03-06  Bruno Haible  <bruno@clisp.org>
52689
52690         * users.txt: Add libgnupdf.
52691
52692 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52693
52694         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52695         (Header File Substitutes, Function Substitutes,
52696         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52697         (Build robot for gnulib): Fix typo.
52698
52699 2008-03-06  Bruno Haible  <bruno@clisp.org>
52700
52701         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52702         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52703
52704 2008-03-06  Bruno Haible  <bruno@clisp.org>
52705
52706         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52707         * doc/gnulib.texi: Include it.
52708
52709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52710
52711         * modules/func (License): Change license to unlimited; there was
52712         no LGPL parts in the module anyway.
52713
52714 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52715
52716         * modules/__func__: Renamed to modules/func.
52717         * modules/__func__-tests: Renamed to modules/func-tests.
52718         * tests/test-__func__.c: Renamed to tests/test-func.c.
52719         * m4/__func__.m4: Renamed to m4/func.m4.
52720         * doc/gnulib.texi (__func__): Section renamed to func.
52721         Suggested by Eric Blake <ebb9@byu.net>.
52722
52723 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52724
52725         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52726         about __func__.  Make example self-contained.  Suggested by Eric
52727         Blake <ebb9@byu.net>.
52728
52729         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52730         Suggested by Eric Blake <ebb9@byu.net>.
52731
52732 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52733
52734         * modules/__func__: New file.
52735         * modules/__func__-tests: New file.
52736         * tests/test-__func__.c: New file.
52737         * m4/__func__.m4: New file.
52738         * doc/gnulib.texi (__func__): Document __func__ module.
52739
52740 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52741
52742         * modules/byteswap (License): Re-license as LGPLv2+.
52743
52744 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52745
52746         * doc/Makefile: Add pdf target.
52747
52748 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52749
52750         * modules/inline (License): Use 'unlimited', since there are only
52751         *.m4 files in this module.
52752
52753 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52754             Bruno Haible  <bruno@clisp.org>
52755
52756         Add support for HP C 7.1 on OpenVMS 8.3.
52757         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52758
52759 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52760
52761         Update VMS specifics.
52762         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52763
52764 2008-03-02  Jim Meyering  <meyering@redhat.com>
52765
52766         Remove the last dependency on the "free" module.
52767         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52768         Reported by Bob Proulx.
52769
52770         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52771
52772         Remove useless "if" tests before free.  Deprecate "free" module.
52773         * doc/posix-functions/free.texi: Mention that this
52774         module is no longer useful.
52775         * modules/free (Notice): Say this module is obsolete.
52776         * modules/readutmp (Depends-on): Remove free.
52777         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52778         * lib/putenv.c (putenv): Likewise.
52779         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52780         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52781         * tests/test-c-strcasestr.c (main): Likewise.
52782         * tests/test-c-strstr.c (main): Likewise.
52783         * tests/test-mbscasestr1.c (main): Likewise.
52784         * tests/test-mbscasestr2.c (main): Likewise.
52785         * tests/test-mbsstr1.c (main): Likewise.
52786         * tests/test-mbsstr2.c (main): Likewise.
52787         * tests/test-memmem.c (main): Likewise.
52788         * tests/test-strcasestr.c (main): Likewise.
52789         * tests/test-striconv.c (main): Likewise.
52790         * tests/test-striconveh.c (main): Likewise.
52791         * tests/test-striconveha.c (main): Likewise.
52792         * tests/test-strstr.c (main): Likewise.
52793
52794         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52795
52796         bootstrap: sync from coreutils again
52797         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52798
52799 2008-03-01  Jim Meyering  <meyering@redhat.com>
52800
52801         bootstrap: sync from coreutils
52802         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52803         also when the target doesn't exist.
52804
52805 2008-03-01  Eric Blake  <ebb9@byu.net>
52806
52807         Fix bugs in last patch.
52808         * lib/memchr2.c (memchr2): Fix typo.
52809         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52810         extension.
52811         Reported by Bruce Korb.
52812
52813         New module 'memchr2'.
52814         * modules/memchr2: New file.
52815         * modules/memchr2-tests: Likewise.
52816         * lib/memchr2.h: Likewise.
52817         * lib/memchr2.c: Likewise, based on memchr.c.
52818         * tests/test-memchr2.c: New test.
52819         * MODULES.html.sh (String handling): Add memchr2.
52820
52821 2008-02-29  Bruno Haible  <bruno@clisp.org>
52822
52823         * modules/freadseek-tests: New file.
52824         * tests/test-freadseek.sh: New file.
52825         * tests/test-freadseek.c: New file.
52826
52827         New module 'freadseek'.
52828         * modules/freadseek: New file.
52829         * lib/freadseek.h: New file.
52830         * lib/freadseek.c: New file.
52831         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52832
52833 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52834
52835         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52836         wydawca.
52837
52838         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52839         program_invocation_name and program_invocation_short_name are
52840         present.
52841
52842 2008-02-28  Bruno Haible  <bruno@clisp.org>
52843
52844         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52845         * tests/test-freadptr.sh: Also test non-seekable stdin.
52846
52847 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52848
52849         * build-aux/bootstrap (source_base, m4_base)
52850         (doc_base, tests_base): New variables.
52851         (gnulib_tool_options): Do not hardcode base directories, use
52852         the above variables instead.
52853
52854 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52855
52856         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52857
52858 2008-02-28  Bruno Haible  <bruno@clisp.org>
52859
52860         * modules/freadptr-tests: New file.
52861         * tests/test-freadptr.sh: New file.
52862         * tests/test-freadptr.c: New file.
52863
52864         New module 'freadptr'.
52865         * modules/freadptr: New file.
52866         * lib/freadptr.h: New file.
52867         * lib/freadptr.c: New file.
52868         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52869
52870 2008-02-26  Karl Berry  <karl@freefriends.org>
52871
52872         Sync from Libtool:
52873         * libltdl/argz.c (argz_add, argz_count): New functions.
52874         * libltdl/argz.in.h: Declare them.
52875         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52876
52877 2008-02-22  Bruno Haible  <bruno@clisp.org>
52878
52879         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52880         is a pointer type.  Needed for HP-UX 10.
52881         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52882         * doc/posix-functions/gmtime_r.texi: Likewise.
52883         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52884
52885 2008-02-24  Bruno Haible  <bruno@clisp.org>
52886
52887         * modules/environ-tests: New file.
52888         * tests/test-environ.c: New file.
52889
52890         New module 'environ'.
52891         * modules/environ: New file.
52892         * lib/unistd.in.h (environ): New declaration.
52893         * m4/environ.m4: New file.
52894         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52895         after use.
52896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52897         HAVE_DECL_ENVIRON.
52898         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52899         HAVE_DECL_ENVIRON.
52900         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52901         wrong claim that 'environ' is missing on some systems.
52902         * modules/execute (Depends-on): Add environ.
52903         * lib/execute.c (environ): Remove fallback declaration.
52904         * modules/pipe (Depends-on): Add environ.
52905         * lib/pipe.c (environ): Remove fallback declaration.
52906         * modules/setenv (Depends-on): Add environ.
52907         * lib/setenv.c (environ): Remove fallback declaration.
52908         * modules/unsetenv (Depends-on): Add environ.
52909         * lib/unsetenv.c (environ): Remove fallback declaration.
52910         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52911         m4/environ.m4.
52912         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52913         (gl_PREREQ_UNSETENV): Likewise.
52914
52915 2008-02-24  Bruno Haible  <bruno@clisp.org>
52916
52917         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52918
52919 2008-02-20  Bob Proulx  <bob@proulx.com>
52920
52921         Enable use of older two part flavor 'git describe'.
52922         * build-aux/git-version-gen: If using the older two part flavor of
52923         git version then recreate the third part now present in the
52924         newer three part flavor of git describe.
52925
52926 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52927
52928         * lib/fts.c (fts_build): Typo correction to comment.
52929
52930 2008-02-17  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52933         generating no-op conflicts.
52934
52935 2008-02-17  Bruno Haible  <bruno@clisp.org>
52936
52937         Speed up by 10%.
52938         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52939         result_entries, rather than an index-based loop.
52940
52941 2008-02-17  Bruno Haible  <bruno@clisp.org>
52942
52943         Speed up by 25%.
52944         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52945         'hashcode_cached'.
52946         (entry_create): New function.
52947         (entry_hashcode): Use the cached hashcode if possible.
52948         (read_changelog_file, try_split_merged_entry): Use entry_create.
52949
52950 2008-02-17  Bruno Haible  <bruno@clisp.org>
52951
52952         Speed up from O(n^2) to O(n) for long ChangeLog files.
52953         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52954         (read_changelog_file): Change implementation of entries_reversed list
52955         to rbtreehash.
52956         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52957
52958 2008-02-17  Bruno Haible  <bruno@clisp.org>
52959
52960         New option --split-merged-entry.
52961         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52962         (find_paragraph_end, try_split_merged_entry): New functions.
52963         (long_options): Add option --split-merged-entry.
52964         (usage): Document option --split-merged-entry.
52965         (main): Implement option --split-merged-entry.
52966         Reported by Eric Blake.
52967
52968 2008-02-17  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/git-merge-changelog.c: Include c-strstr.h.
52971         (main): Support the "git pull --rebase" situation.
52972         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52973         Reported by Eric Blake.
52974
52975 2008-02-16  Eric Blake  <ebb9@byu.net>
52976
52977         Avoid doubling \ in common case of "c-maybe" quoting style.
52978         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52979         eliding outer quotes.
52980         * lib/quotearg.h: Document this.
52981         * tests/test-quotearg.c (result_strings, inputs, results_g)
52982         (flag_results, locale_results): Test it by adding a new string to
52983         each test group.
52984         (compare_strings): Test new string.
52985
52986 2008-02-13  Eric Blake  <ebb9@byu.net>
52987
52988         Avoid trigraph quoting in default output.
52989         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52990         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52991         unless explicitly requested.
52992         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52993
52994 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52995
52996         Don't rely on signed integer overflowing to negative value.
52997         * lib/getugroups.c (getugroups): Include <limits.h>.
52998         Instead, compare against INT_MAX, and increment only if the test passes.
52999
53000 2008-02-13  Jim Meyering  <meyering@redhat.com>
53001         and Eric Blake  <ebb9@byu.net>
53002
53003         Avoid shadowing warning and compile errors on Linux.
53004         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53005         forwarding macros on Linux.
53006         (dcgettext): Define a stub, for Linux.
53007         (results_g, main): Avoid warnings.
53008
53009 2008-02-12  Eric Blake  <ebb9@byu.net>
53010
53011         Silence warning in last patch.
53012         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53013
53014         Quotearg part 4: add tests, fix c-maybe colon quoting.
53015         * lib/quotearg.h: Improve documentation.
53016         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53017         escapes when adding outer quotes.  When quoting trigraphs, use
53018         valid C notation.  When quoting NUL, omit extra characters if next
53019         character is not digit.  Alter prototype.
53020         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53021         callers.
53022         * modules/quotearg-tests: New module.
53023         * tests/test-quotearg.c: New test.
53024
53025 2008-02-07  Eric Blake  <ebb9@byu.net>
53026
53027         Quotearg part 3: add flag to control outer quote elision.
53028         * lib/quotearg.h (c_maybe_quoting_style): New style.
53029         (enum quoting_flags): Better documentation of flags.
53030         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53031         c-maybe style.
53032         (quotearg_buffer_restyled): Handle new flag to elide outer
53033         quotes.
53034
53035         Quotearg part 2: add flag that can control NUL elision.
53036         * lib/quotearg.h (set_quoting_flags): New prototype.
53037         * lib/quotearg.c (struct quoting_options): Add flag field.
53038         (set_quoting_flags): New function.
53039         (quotearg_buffer_restyled): Add flags parameter.
53040         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53041         (quotearg_n_options): Set the flag, since length cannot be
53042         returned.
53043         (quoting_options_from_style): Default flags correctly.
53044
53045         Quotearg part 1: more wrappers, restore quotearg_char state.
53046         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53047         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53048         (quotearg_colon_mem): New wrappers.
53049         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53050         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53051         functions.
53052         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53053         (quotearg_colon_mem): New functions.
53054
53055 2008-02-11  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53058         library in the current directory: it does not work with parallel make.
53059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53060
53061 2008-02-11  Bruno Haible  <bruno@clisp.org>
53062
53063         * .gitattributes: New file.
53064
53065 2008-02-11  Jim Meyering  <meyering@redhat.com>
53066
53067         useless-if-before-free: Fix reversed exit values.
53068         * build-aux/useless-if-before-free: Use correct values
53069         for EXIT_MATCH and EXIT_NO_MATCH.
53070
53071         * build-aux/useless-if-before-free: Close stdout carefully.
53072
53073 2008-02-10  Bruno Haible  <bruno@clisp.org>
53074
53075         New module 'git-merge-changelog'.
53076         * modules/git-merge-changelog: New file.
53077         * lib/git-merge-changelog.c: New file.
53078
53079 2008-02-10  Jim Meyering  <meyering@redhat.com>
53080
53081         useless-if-before-free: New option: --list (-l).
53082
53083         useless-if-before-free: Don't exit immediately upon open failure.
53084         * build-aux/useless-if-before-free: Exit 2 for errors.
53085         Upon failure to open a file, don't exit immediately.
53086         Rather, just warn and continue with any remaining files.
53087
53088 2008-02-10  Bruno Haible  <bruno@clisp.org>
53089
53090         New abstract list operation 'node_set_value'.
53091         * lib/gl_list.h (gl_list_node_set_value): New function.
53092         (struct gl_list_implementation): New field node_set_value.
53093         * lib/gl_list.c (gl_list_node_set_value): New function.
53094         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53095         (gl_array_list_implementation): Update.
53096         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53097         (gl_carray_list_implementation): Update.
53098         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53099         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53100         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53101         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53102         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53103         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53104         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53105         Update.
53106         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53107         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53108         (gl_sublist_list_implementation): Update.
53109
53110 2008-02-10  Bruno Haible  <bruno@clisp.org>
53111
53112         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53113         Needed when ELEMENT is #defined to 'some_type *'.
53114
53115 2008-02-10  Jim Meyering  <meyering@redhat.com>
53116
53117         New script and module: useless-if-before-free
53118         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53119         * build-aux/useless-if-before-free: New file.
53120         * modules/useless-if-before-free: New file.
53121
53122         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53123
53124         xstrtol_error: Fix typo.
53125         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53126         s/exit_failure/exit_status/.
53127
53128 2008-02-09  Jim Meyering  <meyering@redhat.com>
53129
53130         New script and module: gitlog-to-changelog
53131         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53132         * modules/gitlog-to-changelog: New file.
53133         * build-aux/gitlog-to-changelog: New file.
53134
53135 2008-02-08  Jim Meyering  <meyering@redhat.com>
53136
53137         Avoid two "parameter unused" warnings.
53138         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53139         Mark "st" as used.
53140
53141         Use "git COMMAND", not "git-COMMAND".
53142         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53143         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53144         * build-aux/git-version-gen: Use "git status", not "git-status".
53145
53146 2008-02-07  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53149         Avoids a crash on Windows Vista.
53150         Reported by Adam Strzelecki <ono@java.pl> via
53151         Simon Josefsson <simon@josefsson.org>.
53152
53153 2008-02-06  Bruno Haible  <bruno@clisp.org>
53154
53155         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53156         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53157         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53159         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53161         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53162         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53170         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53171         left-adjust flag.
53172         * tests/test-snprintf-posix.h (test_function): Likewise.
53173         * tests/test-sprintf-posix.h (test_function): Likewise.
53174         * tests/test-vasprintf-posix.c (test_function): Likewise.
53175         * doc/posix-functions/fprintf.texi: Update.
53176         * doc/posix-functions/printf.texi: Update.
53177         * doc/posix-functions/snprintf.texi: Update.
53178         * doc/posix-functions/sprintf.texi: Update.
53179         * doc/posix-functions/vfprintf.texi: Update.
53180         * doc/posix-functions/vprintf.texi: Update.
53181         * doc/posix-functions/vsnprintf.texi: Update.
53182         * doc/posix-functions/vsprintf.texi: Update.
53183         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53184
53185 2008-02-06  Bruno Haible  <bruno@clisp.org>
53186
53187         Fix bug introduced on 2008-01-26.
53188         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53189
53190 2008-02-06  Bruno Haible  <bruno@clisp.org>
53191
53192         Fix bug introduced on 2007-06-10.
53193         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53194         !NEED_PRINTF_FLAG_ZERO.
53195
53196 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53197
53198         getloadavg: use libperfstat on AIX5
53199         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53200
53201 2008-02-03  Bruno Haible  <bruno@clisp.org>
53202
53203         * lib/diffseq.h: Add comments about required #includes.
53204         Reported by Michael Biggs <gnulib@doubleplum.net>.
53205
53206 2008-02-01  Bruno Haible  <bruno@clisp.org>
53207
53208         * users.txt: Add gnuit.
53209
53210 2008-01-31  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/md4.c (set_uint32): Mark as inline.
53213         * lib/md5.c (set_uint32): Likewise.
53214         * lib/sha1.c (set_uint32): Likewise.
53215         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53216         * m4/md5.m4 (gl_MD5): Likewise.
53217         * m4/sha1.m4 (gl_SHA1): Likewise.
53218
53219 2008-01-31  Jim Meyering  <meyering@redhat.com>
53220
53221         Use "sizeof VAR", rather than a literal "4".
53222         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53223         * lib/md4.c (md4_read_ctx): Likewise.
53224         * lib/sha1.c (sha1_read_ctx): Likewise.
53225
53226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53227
53228         * tests/test-sha1.c: New file, based on test-md5.c.
53229
53230         * modules/crypto/sha1-tests: New file.
53231
53232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53233
53234         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53235
53236 2008-01-31  Jim Meyering  <meyering@redhat.com>
53237
53238         Prefer "sizeof v" over the equivalent "4".
53239         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53240         * lib/md5.c (set_uint32): Likewise.
53241         * lib/sha1.c (set_uint32): Likewise.
53242
53243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53244
53245         * lib/sha1.c (set_uint32): Mark function as static.
53246
53247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53248
53249         md2: clarify comments to say that alignment is not required.
53250         * lib/md2.h: Remove warning about alignment in comment.
53251         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53252         never been required.
53253
53254 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53255
53256         md4: adapt alignment constraint fix from sha1.
53257         * lib/md4.c (set_uint32): New function, from sha1.c
53258         (md4_read_ctx): Use it.
53259         (md4_finish_ctx): Doc fix.
53260         * lib/md4.h: Doc fix.
53261
53262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53263
53264         md5: adapt alignment constraint fix from sha1.
53265         * lib/md5.c (set_uint32): New function, from sha1.c
53266         (md5_read_ctx): Use it.
53267         (md5_finish_ctx): Doc fix.
53268         * lib/md5.h: Doc fix.
53269
53270 2008-01-30  Peter Palfrader  <weasel@debian.org>
53271
53272         sha1: remove the result buffer alignment constraint
53273         * lib/sha1.c (set_uint32): New function.
53274         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53275         constraint.
53276         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53277         * lib/sha1.h: Likewise.
53278
53279 2008-01-30  Andreas Schwab  <schwab@suse.de>
53280             Bruno Haible  <bruno@clisp.org>
53281
53282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53283         correct definition of LDBL_MIN_EXP.
53284
53285 2008-01-30  Karl Berry  <karl@gnu.org>
53286
53287         * config/srclist-update: try to preserve x bit on updates.
53288         * config/srclistvars.sh: update for karl.
53289
53290 2008-01-29  Jim Meyering  <meyering@redhat.com>
53291
53292         vasnprintf.c: Avoid warning about unused label
53293         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53294         "overflow" label definition and associated code with the
53295         same cpp condition that guards the sole use of that label.
53296
53297 2008-01-26  Bruno Haible  <bruno@clisp.org>
53298
53299         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53300         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53301         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53302         * lib/isnanl-nolibm.h (isnanl): Likewise.
53303         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53304
53305 2008-01-26  Bruno Haible  <bruno@clisp.org>
53306
53307         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53308         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53309
53310 2008-01-26  Bruno Haible  <bruno@clisp.org>
53311
53312         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53313         GCC >= 4.0 built-in.
53314         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53315
53316 2008-01-26  Bruno Haible  <bruno@clisp.org>
53317
53318         Rename isnan, applicable to 'double' only, to isnand.
53319         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53320         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53321         (configure.ac): Update.
53322         (Include): Replace "isnan.h" with "isnand.h".
53323         * m4/isnand.m4: Renamed from m4/isnan.m4.
53324         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53325         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53326         instead of isnan.c.
53327         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53328         instead of HAVE_ISNAN_IN_LIBC.
53329         (isnand): Renamed from isnan.
53330         * lib/isnand.c: New file.
53331         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53332         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53333         (Makefile.am): Update.
53334         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53335         Include isnand.h instead of isnan.h.
53336         (main): Test isnand instead of isnan.
53337         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53338         isnan-nolibm.
53339         * modules/frexp (Depends-on): Likewise.
53340         * modules/frexp-tests (Depends-on): Likewise.
53341         * modules/frexp-nolibm (Depends-on): Likewise.
53342         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53343         * modules/isfinite (Depends-on): Likewise.
53344         * modules/round-tests (Depends-on): Likewise.
53345         * modules/signbit (Depends-on): Likewise.
53346         * modules/signbit-tests (Depends-on): Likewise.
53347         * modules/snprintf-posix (Depends-on): Likewise.
53348         * modules/sprintf-posix (Depends-on): Likewise.
53349         * modules/trunc-tests (Depends-on): Likewise.
53350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53357         * modules/vasnprintf-posix (Depends-on): Likewise.
53358         * modules/vasprintf-posix (Depends-on): Likewise.
53359         * modules/vfprintf-posix (Depends-on): Likewise.
53360         * modules/vsnprintf-posix (Depends-on): Likewise.
53361         * modules/vsprintf-posix (Depends-on): Likewise.
53362         * lib/frexp.c: Include isnand.h instead of isnan.h.
53363         (ISNAN): Set to isnand instead of isnan.
53364         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53365         (gl_isfinited): Use isnand instead of isnan.
53366         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53367         (gl_signbitd): Use isnand instead of isnan.
53368         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53369         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53370         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53371         (main): Use isnand instead of isnan.
53372         * tests/test-round1.c: Include isnand.h.
53373         (main): Use isnand instead of isnan.
53374         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53375         (ISNAN): Set to isnand instead of isnan.
53376         * tests/test-trunc1.c: Include isnand.h.
53377         (main): Use isnand instead of isnan.
53378         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53379         (equal): Use isnand instead of isnan.
53380         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53381         isnand-nolibm.
53382         * NEWS: Mention the change.
53383
53384 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53385             Bruno Haible  <bruno@clisp.org>
53386
53387         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53388         the GCC builtins for signbits are present and set
53389         REPLACE_SIGNBIT_USING_GCC if so.
53390         * lib/math.in.h (signbit): Define using GCC builtins if
53391         REPLACE_SIGNBIT_USING_GCC is set.
53392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53393         REPLACE_SIGNBIT_USING_GCC.
53394         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53395
53396 2008-01-25  Jim Meyering  <meyering@redhat.com>
53397
53398         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53399         * lib/poll.c: Include <config.h>, not "config.h".
53400         * tests/test-getaddrinfo.c: Likewise.
53401
53402 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53403
53404         * modules/sockets-tests: New file.
53405
53406 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53407
53408         * modules/sockets: New module, can be used to call WSA_Startup and
53409         WSA_Cleanup when needed.
53410
53411         * lib/sockets.h, lib/sockets.c: New files.
53412
53413         * m4/sockets.m4: New file.
53414
53415         * tests/test-sockets.c: New file.
53416
53417 2008-01-19  Bruno Haible  <bruno@clisp.org>
53418
53419         * doc/posix-headers: Renamed from doc/headers.
53420         * doc/posix-functions: Renamed from doc/functions.
53421         * doc/gnulib.texi: Update.
53422
53423 2008-01-19  Bruno Haible  <bruno@clisp.org>
53424
53425         * doc/glibc-functions/strcasestr.texi: Include contents of
53426         doc/functions/strcasestr.texi, fixing the list of platforms.
53427         * doc/functions/strcasestr.texi: Remove file.
53428
53429 2008-01-19  Bruno Haible  <bruno@clisp.org>
53430
53431         * doc/glibc-functions/memmem.texi: Include contents of
53432         doc/functions/memmem.texi.
53433         * doc/functions/memmem.texi: Remove file.
53434
53435 2008-01-18  Bruno Haible  <bruno@clisp.org>
53436
53437         * doc/glibc-functions/*.texi: New files.
53438         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53439         to use the new files.
53440
53441 2008-01-17  Bruno Haible  <bruno@clisp.org>
53442
53443         * tests/test-gethostname.c (main): Fix printf statement.
53444
53445 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53446
53447         * modules/gethostname-tests: New file.
53448
53449         * tests/test-gethostname.c: New file.
53450
53451 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53452
53453         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53454         used by the UNAME case.  Reported by Bruno Haible
53455         <bruno@clisp.org>.
53456
53457 2008-01-17  Eric Blake  <ebb9@byu.net>
53458
53459         Convert c-strcasestr to be more efficient.
53460         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53461         (Depends-on): Add c-strcase, remove malloca, strnlen.
53462         * tests/test-c-strcasestr.c (main): Enhance test.
53463         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53464
53465 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53466
53467         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53468         Use it in creating po/Makevars.
53469
53470 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53471
53472         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53473         Applications that requires it should initialize libgcrypt
53474         manually.
53475
53476 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53477
53478         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53479
53480 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         Fix problem with getdate on mingw32 reported by Simon Josefsson
53483         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53484         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53485         tzname", when deciding whether to declare tzname.
53486         * lib/strftime.c (tzname): Likewise.
53487
53488 2008-01-15  Bruno Haible  <bruno@clisp.org>
53489
53490         Work around a MacOS X 10.5 bug in frexpl().
53491         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53492         * doc/functions/frexpl.texi: Document the bug.
53493         Reported by Elias Pipping <pipping@gentoo.org>.
53494
53495 2008-01-14  Eric Blake  <ebb9@byu.net>
53496
53497         Touch up previous patch.
53498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53499         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53500
53501         Convert strcasestr module to use Two-Way algorithm.
53502         * modules/strcasestr-simple: New module, based on the old
53503         strcasestr, but with Two-Way rather than KMP.
53504         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53505         * lib/string.in.h (rpl_strcasestr): Declare.
53506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53507         performance.
53508         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53509         * modules/string (Makefile.am): Support strcasestr.
53510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53511         * modules/strcasestr-tests (Depends-on): Check for alarm.
53512         * tests/test-strcasestr.c: Augment test.
53513         * lib/str-two-way.h: Clean up stray macro.
53514         * NEWS: Document new module.
53515         * MODULES.html.sh (string handling): Likewise.
53516         * doc/functions/strcasestr.texi: New file.
53517         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53518         here, since it is not a POSIX function.
53519
53520 2008-01-14  Colin Watson  <cjwatson@debian.org>
53521             Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53524         works fine; if not, set REPLACE_STRSIGNAL.
53525         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53527         REPLACE_STRSIGNAL.
53528         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53529         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53530         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53531
53532 2008-01-14  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/strsignal (Include): Change to <string.h>.
53535
53536 2008-01-14  Colin Watson  <cjwatson@debian.org>
53537
53538         * modules/argp (Notice): Add a notice recommending to change
53539         XGETTEXT_OPTIONS.
53540         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53541
53542 2008-01-13  Colin Watson  <cjwatson@debian.org>
53543
53544         * modules/strsignal-tests: New file.
53545         * tests/test-strsignal.c: New file.
53546
53547         * lib/strsignal.c: New file, from glibc with modifications.
53548         * lib/siglist.h: New file, from glibc with modifications.
53549         * lib/string.in.h (strsignal): New declaration.
53550         * m4/strsignal.m4: New file.
53551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53552         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53553         * modules/strsignal: New file.
53554         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53555         HAVE_DECL_STRSIGNAL.
53556
53557 2008-01-13  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53560         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53563
53564 2008-01-13  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53567         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53568         * lib/argp.h (__attribute__): Likewise.
53569         * lib/c-stack.c (__attribute__): Likewise.
53570         * lib/error.h (__attribute__): Likewise.
53571         * lib/fts.c (__attribute__): Likewise.
53572         * lib/openat.h (__attribute__): Likewise.
53573         * lib/stdio.in.h (__attribute__): Likewise.
53574         * lib/string.in.h (__attribute__): Likewise.
53575         * lib/utimens.c (__attribute__): Likewise.
53576         * lib/vasnprintf.h (__attribute__): Likewise.
53577         * lib/xalloc.h (__attribute__): Likewise.
53578         * lib/xprintf.h (__attribute__): Likewise.
53579         * lib/xstrtol.h (__attribute__): Likewise.
53580         * lib/xvasprintf.h (__attribute__): Likewise.
53581
53582 2008-01-12  Bruno Haible  <bruno@clisp.org>
53583
53584         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53585         * doc/glibc-headers/a.out.texi: New file.
53586         * doc/glibc-headers/aliases.texi: New file.
53587         * doc/glibc-headers/alloca.texi: New file.
53588         * doc/glibc-headers/ar.texi: New file.
53589         * doc/glibc-headers/argp.texi: New file.
53590         * doc/glibc-headers/argz.texi: New file.
53591         * doc/glibc-headers/byteswap.texi: New file.
53592         * doc/glibc-headers/crypt.texi: New file.
53593         * doc/glibc-headers/endian.texi: New file.
53594         * doc/glibc-headers/envz.texi: New file.
53595         * doc/glibc-headers/err.texi: New file.
53596         * doc/glibc-headers/error.texi: New file.
53597         * doc/glibc-headers/execinfo.texi: New file.
53598         * doc/glibc-headers/fpu_control.texi: New file.
53599         * doc/glibc-headers/fstab.texi: New file.
53600         * doc/glibc-headers/fts.texi: New file.
53601         * doc/glibc-headers/getopt.texi: New file.
53602         * doc/glibc-headers/ieee754.texi: New file.
53603         * doc/glibc-headers/ifaddrs.texi: New file.
53604         * doc/glibc-headers/libintl.texi: New file.
53605         * doc/glibc-headers/mcheck.texi: New file.
53606         * doc/glibc-headers/mntent.texi: New file.
53607         * doc/glibc-headers/obstack.texi: New file.
53608         * doc/glibc-headers/paths.texi: New file.
53609         * doc/glibc-headers/printf.texi: New file.
53610         * doc/glibc-headers/pty.texi: New file.
53611         * doc/glibc-headers/resolv.texi: New file.
53612         * doc/glibc-headers/shadow.texi: New file.
53613         * doc/glibc-headers/sysexits.texi: New file.
53614         * doc/glibc-headers/ttyent.texi: New file.
53615
53616 2008-01-12  Jim Meyering  <meyering@redhat.com>
53617
53618         announce-gen: emit Gnulib's git-based version string.
53619         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53620         New option --gnulib-version=V, where V is expected to be
53621         the output of running git describe in the gnulib directory.
53622         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53623         not useful, and plan to stop publishing an xdelta file with each
53624         coreutils release.
53625
53626         * build-aux/announce-gen: Also check for lzma-compressed files.
53627
53628 2008-01-11  Bruno Haible  <bruno@clisp.org>
53629
53630         * tests/test-memmem.c (main): Increase maximum allowed time.
53631         * tests/test-strstr.c (main): Likewise.
53632
53633 2008-01-11  Bruno Haible  <bruno@clisp.org>
53634
53635         * doc/functions/memmem.texi: Add more precisions about platforms.
53636         * doc/functions/strstr.texi: Likewise.
53637
53638 2008-01-10  Eric Blake  <ebb9@byu.net>
53639
53640         * m4/strstr.m4: Delete cruft from copy-n-paste.
53641         Reported by Bruno Haible.
53642
53643 2008-01-10  Bruno Haible  <bruno@clisp.org>
53644
53645         Make c-strstr rely on strstr.
53646         * lib/c-strstr.c: Don't include str-kmp.h.
53647         (c_strstr): Define in terms of strstr.
53648         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53649         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53650
53651 2008-01-10  Bruno Haible  <bruno@clisp.org>
53652
53653         * doc/gnulib.texi (String Functions in C Locale): New section.
53654         * doc/c-ctype.texi: New file.
53655         * doc/c-strcase.texi: New file.
53656         * doc/c-strcaseeq.texi: New file.
53657         * doc/c-strcasestr.texi: New file.
53658         * doc/c-strstr.texi: New file.
53659         * doc/c-strtod.texi: New file.
53660         * doc/c-strtold.texi: New file.
53661
53662 2008-01-10  Eric Blake  <ebb9@byu.net>
53663
53664         * lib/relocatable.h: Fix a comment.
53665
53666 2008-01-10  Eric Blake  <ebb9@byu.net>
53667
53668         Share two-way algorithm.
53669         * lib/str-two-way.h: New file, merged from...
53670         * lib/memmem.c: ...here...
53671         * lib/strstr.c: ...and here.
53672         * modules/memmem (Files): Use it.
53673         * modules/strstr (Files): Likewise.
53674
53675         Avoid quadratic strstr implementations.
53676         * lib/strstr.c: New file.
53677         * m4/strstr.m4: Likewise.
53678         * modules/strstr: Likewise.
53679         * modules/strstr-tests: Likewise.
53680         * tests/test-strstr.c: Likewise.
53681         * lib/string.in.h (rpl_strstr): Declare.
53682         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53684         * modules/string (Makefile.am): Likewise.
53685         * MODULES.html.sh (string handling): Mention new module.
53686         * doc/functions/strstr.texi (strstr): Document the bug.
53687
53688 2008-01-10  Bruno Haible  <bruno@clisp.org>
53689
53690         * lib/relocatable.h (relocate): State whether result is freshly
53691         allocated or not.
53692         * lib/relocatable.c (relocate): Return a freshly allocated string
53693         instead of a pointer to a privately held string.
53694         Reported by Sylvain Beucler <beuc@gnu.org>.
53695
53696 2008-01-10  Colin Watson  <cjwatson@debian.org>
53697
53698         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53699         s/S_ISNLK/S_ISLNK/.
53700
53701 2008-01-09  Bruno Haible  <bruno@clisp.org>
53702
53703         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53704         and other files.
53705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53706         if it's only a guess.
53707         * modules/memmem: Simplify by depending on memmem-simple.
53708
53709 2008-01-09  Bruno Haible  <bruno@clisp.org>
53710
53711         Work around OpenBSD 4.0 tdelete() bug.
53712         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53713         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53714         macros and don't redefine the enum values.
53715         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53716         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53717         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53718
53719 2008-01-09  Bruno Haible  <bruno@clisp.org>
53720
53721         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53722         (main): Don't perform the tests if setlocale did not install a UTF-8
53723         locale. Needed on OpenBSD 4.0.
53724         * modules/wcwidth-tests (Depends-on): Add localcharset.
53725
53726 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53727
53728         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53729         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53730         * NEWS: announce this.
53731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53732
53733 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53734         and Eric Blake  <ebb9@byu.net>
53735
53736         Add memmem-simple module.
53737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53738         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53739         * modules/memmem-simple: New file.
53740         * modules/memmem (Description): Tweak.
53741         * MODULES.html.sh (string handling): Mention new module.
53742         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53743         addressed by memmem-simple.
53744         * NEWS: Document the difference.
53745
53746 2008-01-09  Eric Blake  <ebb9@byu.net>
53747
53748         Give gcc some memmem optimization hints.
53749         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53750         (strcasestr): Declare as pure.
53751         * modules/memmem (Maintainer): Claim my implementation.
53752
53753 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53754
53755         Support AIX 6.1 and higher.
53756         * build-aux/config.libpath: Likewise.
53757         * build-aux/config.rpath: Likewise.
53758
53759 2008-01-08  Jim Meyering  <meyering@redhat.com>
53760             Bruno Haible  <bruno@clisp.org>
53761
53762         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53763         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53764         Reported by Peter Fales in
53765         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53766
53767 2008-01-08  Bruno Haible  <bruno@clisp.org>
53768
53769         * modules/unictype/category-of (Depends-on): Add
53770         unictype/category-none.
53771         * modules/unictype/category-and-tests (Depends-on): Add
53772         unictype/category-{L,N,Lu,Nd}.
53773         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53774         * modules/unictype/category-or-tests (Depends-on): Add
53775         unictype/category-{L,N}.
53776         * modules/unictype/category-name-tests (Depends-on): Add
53777         unictype/category-{Z,Nl}.
53778         Reported by Simon Josefsson.
53779
53780 2008-01-08  Bruno Haible  <bruno@clisp.org>
53781
53782         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53783         convention better.
53784         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53785         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53786         Reported by Peter Miller <millerp@canb.auug.org.au>.
53787
53788 2008-01-08  Eric Blake  <ebb9@byu.net>
53789
53790         Rewrite memmem to guarantee linear complexity without malloc.
53791         * lib/memmem.c (memmem): Use Two-Way rather than
53792         Knuth-Morris-Pratt, to allow O(1) space usage.
53793         (critical_factorization, two_way_short_needle)
53794         (two_way_long_needle): New functions.
53795         (knuth_morris_pratt): Delete.
53796         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53797         Add stdint.
53798         * tests/test-memmem.c (main): Add tests for periodic needle and
53799         sublinear performance.
53800         * doc/functions/memmem.texi (memmem): Document other deficiencies
53801         in cygwin and older glibc.
53802
53803 2008-01-08  Bruno Haible  <bruno@clisp.org>
53804
53805         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53806         augmentation.
53807
53808 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53809
53810         Add a configure time option: --disable-acl.
53811         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53812         AC_ARG_ENABLE(acl).
53813
53814 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53815
53816         * tests/test-localename.c: Don't include obsolete "setenv.h".
53817
53818         * modules/localename-tests (Depends-on): Need unsetenv.
53819
53820 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53821
53822         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53823
53824 2008-01-06  Colin Watson  <cjwatson@debian.org>
53825
53826         * users.txt: Add man-db.
53827
53828 2008-01-07  Bruno Haible  <bruno@clisp.org>
53829
53830         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53831         previous section name.
53832
53833 2008-01-07  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/progname.c (set_program_name): Don't strip off a leading
53836         "lt-" prefix outside a .libs directory.
53837         Suggested by Paul Eggert.
53838
53839 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53840             Bruno Haible  <bruno@clisp.org>
53841
53842         Improve memory cleanup in 'relocatable' module.
53843         * lib/relocatable.h (compute_curr_prefix): Change return type to
53844         'char *'.
53845         * lib/relocatable.c (compute_curr_prefix): Change return type to
53846         'char *'. Free curr_installdir after use.
53847         (relocate): Free curr_prefix_better after use.
53848         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53849
53850 2008-01-01  Bruno Haible  <bruno@clisp.org>
53851
53852         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53853         failure on older glibc systems.
53854         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53855
53856 2008-01-05  Eric Blake  <ebb9@byu.net>
53857
53858         Avoid quadratic system memmem.
53859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53860         Reported by Ralf Wildenhues.
53861
53862         Fix memmem test for mingw.
53863         * modules/memmem-tests (configure.ac): Check for alarm.
53864         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53865         it.
53866         * doc/functions/memmem.texi: New file.
53867         * doc/gnulib.texi (Function Substitutes): Add memmem.
53868         Reported by Bruno Haible.
53869
53870 2008-01-04  Bruno Haible  <bruno@clisp.org>
53871
53872         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53873         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53874         gl_HEADER_STRING_H_DEFAULTS.
53875
53876 2008-01-04  Eric Blake  <ebb9@byu.net>
53877
53878         Shorten duration of memmem test.
53879         * tests/test-memmem.c (main): Use alarm to declare failure if test
53880         is taking too long.
53881         Reported by Ralf Wildenhues.
53882
53883 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53884
53885         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53886         string, needed by strerror.
53887
53888 2008-01-03  Colin Watson  <cjwatson@debian.org>
53889             Bruno Haible  <bruno@clisp.org>
53890
53891         * doc/gnulib-tool.texi (Localization): New section.
53892
53893 2008-01-02  Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53896         variables to 'unsigned char *' type.
53897         Reported by Paul Eggert.
53898
53899 2008-01-02  Jim Meyering  <jim@meyering.net>
53900
53901         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53902
53903 2007-12-31  Jim Meyering  <jim@meyering.net>
53904
53905         Avoid use of private FTS type name.
53906         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53907
53908 2007-12-30  Karl Berry  <karl@gnu.org>
53909
53910         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53911         work around defect in Texinfo and/or the standalone Info browser.
53912
53913 2007-12-30  Bruno Haible  <bruno@clisp.org>
53914
53915         Unify 5 copies of the KMP code.
53916         * lib/str-kmp.h: New file.
53917         * lib/c-strcasestr.c: Include str-kmp.h.
53918         (knuth_morris_pratt): Remove function.
53919         (c_strcasestr): Update.
53920         * lib/c-strstr.c: Include str-kmp.h.
53921         (knuth_morris_pratt): Remove function.
53922         (c_strcasestr): Update.
53923         * lib/mbscasestr.c: Include str-kmp.h.
53924         (knuth_morris_pratt_unibyte): Remove function.
53925         * lib/mbsstr.c: Include str-kmp.h.
53926         (knuth_morris_pratt_unibyte): Remove function.
53927         * lib/strcasestr.c: Include str-kmp.h.
53928         (knuth_morris_pratt): Remove function.
53929         (strcasestr): Update.
53930         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53931         * modules/c-strstr (Files): Likewise.
53932         * modules/mbscasestr (Files): Likewise.
53933         * modules/mbsstr (Files): Likewise.
53934         * modules/strcasestr (Files): Likewise.
53935         Suggested by Paul Eggert.
53936
53937 2007-12-30  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53940         defined.
53941
53942 2007-12-30  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/xmalloca.h: Include xalloc.h.
53945         (xnmalloca): New macro.
53946
53947 2007-12-30  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/malloca.h (nmalloca): New macro.
53950         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53951         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53952         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53953         knuth_morris_pratt_multibyte): Likewise.
53954         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53955         knuth_morris_pratt_multibyte): Likewise.
53956         * lib/memmem.c (knuth_morris_pratt): Likewise.
53957         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53958
53959 2007-12-25  Bruno Haible  <bruno@clisp.org>
53960
53961         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53962         * lib/glob.c: Don't include openat.h.
53963         (link_exists2_p): Add back the code that deals with the
53964         !GLOB_ALTDIRFUNC case.
53965         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53966         let it do the filename concatenation.
53967         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53968         * modules/glob (Depends-on): Remove openat.
53969
53970 2007-12-31  Bruno Haible  <bruno@clisp.org>
53971
53972         * modules/dirfd (License): Change to LGPLv2+.
53973         Approved by Jim Meyering.
53974
53975 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53978         when multiplying M by sizeof (size_t).
53979
53980 2007-12-10  Martin Lambers  <marlam@marlam.de>
53981
53982         Override getpagesize on mingw.
53983         * lib/getpagesize.c: New file.
53984         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53985         * modules/getpagesize (Files): Add lib/getpagesize.c.
53986         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53988         REPLACE_GETPAGESIZE.
53989         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53990
53991 2007-12-25  Bruno Haible  <bruno@clisp.org>
53992
53993         * modules/localcharset (Notice): New field.
53994         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53995         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53996
53997 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53998             Bruno Haible  <bruno@clisp.org>
53999
54000         Avoid using the syntax symbol() in formatted documentation.
54001         * MODULES.html.sh (func_module): When replacing symbol() with a
54002         hyperlink, remove the parentheses. Show an error if some remain.
54003         Recognize and render the '...' syntax.
54004         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54005         Rework. Add paragraph about GCC's inlining.
54006         * doc/alloca.texi: Likewise.
54007         * doc/error.texi: Remove parentheses from symbol reference.
54008         * doc/gnulib-intro.texi: Likewise.
54009         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54010         * modules/fnmatch (Description): Reword to say "the ... function".
54011         * modules/full-read (Description): Likewise.
54012         * modules/full-write (Description): Likewise.
54013         * modules/safe-read (Description): Likewise.
54014         * modules/safe-write (Description): Likewise.
54015         * modules/strchrnul (Description): Likewise.
54016         * modules/trim (Description): Likewise.
54017         * modules/error (Description): Remove parentheses from symbol
54018         references.
54019         * modules/verror (Description): Likewise.
54020         Reported by Karl Berry.
54021
54022 2007-12-25  Bruno Haible  <bruno@clisp.org>
54023
54024         Fixup after 2007-10-16 commit.
54025         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54026
54027 2007-12-24  Bruno Haible  <bruno@clisp.org>
54028
54029         Make --enable-relocatable work with DESTDIR.
54030         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54031         to compute installdir from destprog.
54032         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54033         also set the RELOC_DESTDIR variable.
54034         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54035
54036 2007-12-24  Bruno Haible  <bruno@clisp.org>
54037
54038         Fix link error due to xalloc_die().
54039         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54040         of xreadlink.
54041         * lib/relocwrapper.c: Update comments.
54042         * build-aux/install-reloc: Remove xreadlink.c from file list.
54043         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54044         xreadlink.c.
54045         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54046
54047 2007-12-24  Bruno Haible  <bruno@clisp.org>
54048
54049         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54050         * lib/setenv.h: Remove file.
54051         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54052         lib/setenv.h.
54053         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54054         (Depends-on): Add stdlib.
54055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54056         gl_FUNC_UNSETENV.
54057         (Include): Replace setenv.h with <stdlib.h>.
54058         * modules/unsetenv: New file.
54059         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54060         * lib/unsetenv.c: Include <stdlib.h> first.
54061         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54062         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54063         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54064         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54065         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54066         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54068         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54069         * doc/functions/unsetenv.texi: Update.
54070         * modules/xsetenv (Depends-on): Add unsetenv.
54071         * modules/getdate (Depends-on): Likewise.
54072         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54073         * lib/xsetenv.c: Don't include setenv.h.
54074         * lib/getdate.y: Likewise.
54075         * lib/relocwrapper.c: Likewise.
54076         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54077         (Depends-on): Add stdlib.
54078         * NEWS: Mention the changes.
54079         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54080
54081 2007-12-23  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54084         indentation.
54085
54086 2007-12-23  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/c-strcasestr.c: Add more comments.
54089         * lib/c-strstr.c: Likewise.
54090         * lib/mbscasestr.c: Likewise.
54091         * lib/mbsstr.c: Likewise.
54092         * lib/strcasestr.c: Likewise.
54093         * lib/memmem.c: Likewise.
54094
54095 2007-12-23  Bruno Haible  <bruno@clisp.org>
54096
54097         * tests/test-memmem.c: Include <string.h> first.
54098
54099 2007-12-22  Bruno Haible  <bruno@clisp.org>
54100
54101         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54102         the contents of $testsbase.
54103         Reported by Ralf Wildenhues.
54104
54105 2007-12-22  Bruno Haible  <bruno@clisp.org>
54106
54107         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54108         two variables local_ldadd_before, local_ldadd_last.
54109
54110 2007-12-20  Eric Blake  <ebb9@byu.net>
54111
54112         Work around circular library issue when cross-compiling.
54113         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54114         that progname.o does not need to pull in rpl_memcmp.
54115
54116 2007-12-19  Eric Blake  <ebb9@byu.net>
54117
54118         Fix memmem to avoid O(n^2) worst-case complexity.
54119         * lib/memmem.c (knuth_morris_pratt): New function.
54120         (memmem): Use it if first few naive iterations fail.
54121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54122         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54123         * modules/memchr (License): Likewise.
54124         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54125         malloca.
54126         * tests/test-memmem.c: Rewrite, borrowing ideas from
54127         test-mbsstr1.c; the old version wouldn't even compile!
54128         * modules/memmem-tests: New file.
54129         * lib/string.in.h (rpl_memmem): Add declaration.
54130         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54132         REPLACE_MEMMEM.
54133
54134 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54138         before any system include files, and undef after them all.  This
54139         should fix a problem on VMS reported by John E. Malmberg in
54140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54141
54142 2007-12-17  Eric Blake  <ebb9@byu.net>
54143
54144         Revert addition of verify, for BSD/OS.
54145         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54146         can't handle large files, for the sake of obsolete platforms.
54147         * modules/fseeko (Depends-on): Remove verify.
54148         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54149         * doc/functions/ftello.texi (ftello): Likewise.
54150         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54151         Reported by Larry Jones.
54152
54153 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54154
54155         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54156         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54157
54158 2007-12-17  Jim Meyering  <meyering@redhat.com>
54159
54160         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54161         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54162         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54163         * modules/getcwd (Depends-on): Add openat.
54164         Reported by Petr Salinger.
54165
54166 2007-12-17  Bruno Haible  <bruno@clisp.org>
54167
54168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54169         avoid a segmentation fault of the configure test on x86_64 systems.
54170
54171 2007-12-15  Jim Meyering  <meyering@redhat.com>
54172
54173         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54174
54175 2007-12-13  Eric Blake  <ebb9@byu.net>
54176
54177         Another fseek test.
54178         * tests/test-fseek.c (main): Also test ungetc handling.
54179         * tests/test-fseeko.c (main): Likewise.
54180         * modules/fseeko (Depends-on): Add verify.
54181         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54182         large.
54183         Reported by Larry Jones.
54184
54185         Fix fseeko on mingw.
54186         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54187         seek.
54188
54189         Beef up fseek tests.
54190         * tests/test-fseek.c (main): Also test eof handling.
54191         * tests/test-fseeko.c (main): Likewise.
54192         Reported by Larry Jones.
54193
54194 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54195
54196         Fix fseeko on BSD-based platforms.
54197         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54198         successful seek.
54199
54200 2007-12-12  Eric Blake  <ebb9@byu.net>
54201
54202         Allow circular dependency of separate libtests.a
54203         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54204         when use_libtests.
54205
54206 2007-12-11  Eric Blake  <ebb9@byu.net>
54207
54208         Fix bug with -0.0L in previous patch.
54209         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54210         * tests/test-isnan.c (main): Also test on zeroes.
54211         * tests/test-isnanf.c (main): Likewise.
54212         * tests/test-isnanl.h (main): Likewise.
54213
54214         Detect pseudo-denormals on x86 even when cross-compiling.
54215         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54216         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54217         invalid bit patterns that happen to satisfy ==.
54218
54219         Avoid link failures with separate libtests.a.
54220         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54221         last, to satisfy circular dependencies.
54222
54223 2007-12-11  Eric Blake  <ebb9@byu.net>
54224         and Bruno Haible  <bruno@clisp.org>
54225
54226         Fix OpenBSD 4.0 <float.h> handling of long double.
54227         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54228         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54229         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54230
54231 2007-12-11  Jim Meyering  <meyering@redhat.com>
54232
54233         * users.txt: Add libvirt.
54234
54235         Support versions of autoconf prior to 2.59c.
54236         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54237         if it is not already defined.
54238
54239 2007-12-09  Bruno Haible  <bruno@clisp.org>
54240
54241         Let 'gnulib-tool --import' collect sources needed for the tests in
54242         tests/ rather than in lib/.
54243         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54244         argument. If true, add rules to generate libtests.a, and put libtests.a
54245         into $(LDADD). Consider source files in subdirectories and set
54246         uses_subdirs.
54247         (func_emit_initmacro_start, func_emit_initmacro_end,
54248         func_emit_initmacro_done): Pass all arguments explicitly.
54249         (func_import): Determine two module lists main_modules,
54250         testsrelated_modules. Determine use_libtests. Determine two variables
54251         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54252         instead of just sed_transform_lib_file. Determine two variables
54253         main_files and testsrelated_files. Compute 'files' as the union of
54254         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54255         func_add_or_update. In the generated gnulib-comp.m4, collect the
54256         object files for tests/ in different variables than those for lib/.
54257         Substitute LIBTESTS_LIBDEPS.
54258         (func_create_testdir): Combine the uses_subdirs results from
54259         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54260
54261 2007-12-09  Bruno Haible  <bruno@clisp.org>
54262
54263         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54264         the build-aux directory.
54265
54266 2007-12-09  Bruno Haible  <bruno@clisp.org>
54267
54268         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54269         introduced on 2006-09-09.
54270
54271 2007-12-07  Jim Meyering  <meyering@redhat.com>
54272
54273         Let these macros work also with autoconf-2.59.
54274         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54275         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54277
54278 2007-12-06  Jim Meyering  <meyering@redhat.com>
54279
54280         Avoid a configure-time syntax error in gl_FUNC_ACL.
54281         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54282         function in each branch, before testing the cache variable.
54283
54284 2007-12-04  Eric Blake  <ebb9@byu.net>
54285
54286         Make scripts executable.
54287         * build-aux/config.guess: Add execute permissions.
54288         * build-aux/config.sub: Likewise.
54289         * build-aux/gendocs.sh: Likewise.
54290
54291         Fix frexp on mingw.
54292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54293         cross-compiling.
54294         * doc/functions/frexp.texi (frexp): Document the bug.
54295
54296         Make cygwin fseeko check more reliable.
54297         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54298         version numbers, rather than unrelated feature check.
54299         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54300         * doc/functions/ftello.texi (ftello): Likewise.
54301         Reported by Bruno Haible.
54302
54303         * m4/strerror.m4: Bump version number.
54304
54305 2007-12-03  Bruno Haible  <bruno@clisp.org>
54306
54307         * doc/functions/mprotect.texi: Mention the mingw problem.
54308
54309 2007-12-03  Eric Blake  <ebb9@byu.net>
54310
54311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54312         REPLACE_STRERROR is initialized before this macro.
54313
54314 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54317         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54318         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54319         put -lsec in even for programs other than 'ls'.  This fixes a problem
54320         for gettext reported by Bruno Haible in
54321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54322         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54323         Add support for Solaris 10.  This isn't efficient, but should get the
54324         job done for now.
54325
54326 2007-12-03  James Youngman  <jay@gnu.org>
54327
54328         * doc/regexprops-generic.texi: change "an close-group" to "a
54329         close-group" and "illegal" to "not allowed".
54330
54331 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54332
54333         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54334         pr_byname.h. Needed for the rare case when the maintainer has done
54335         "make maintainer-clean" in the source directory and then attempts a
54336         build outside the source directory.
54337         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54338         scripts_byname.h.
54339
54340 2007-12-02  Martin Lambers <marlam@marlam.de>
54341             Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/getpagesize.h: Remove file.
54344         * lib/unistd.in.h: Include declaration of getpagesize here.
54345         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54346         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54347         HAVE_SYS_PARAM_H.
54348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54349         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54350         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54351         (Depends-on): Add unistd.
54352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54353         (Include): Use <unistd.h> instead of getpagesize.h.
54354         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54355         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54356         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54357         gl_GETPAGESIZE invocation, already handled by module dependency.
54358         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54359
54360 2007-12-02  Bruno Haible  <bruno@clisp.org>
54361
54362         * modules/strings-tests: New file.
54363         * tests/test-strings.c: New file.
54364
54365         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54366         * lib/strings.in.h: New file.
54367         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54368         * m4/strings_h.m4: New file.
54369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54370         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54371         * modules/strings: New file.
54372         * modules/string (Makefile.am): Update.
54373         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54374         Reported by Karl Berry.
54375
54376 2007-12-01  Eric Blake  <ebb9@byu.net>
54377
54378         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54379         accomodate fix in cygwin 1.5.25.
54380
54381 2007-12-01  Jim Meyering  <meyering@redhat.com>
54382
54383         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54384         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54385         that would inhibit utf8-optimization of a regexp containing line-
54386         or buffer-anchors, e.g., `^', `$'.
54387
54388 2007-11-30  Bruno Haible  <bruno@clisp.org>
54389
54390         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54391         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54392         glthread_recursive_lock_init.
54393         * lib/lock.c (glthread_recursive_lock_init)
54394         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54396
54397 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         New function qset_acl, like set_acl but with syscall semantics.
54400         * lib/acl.h (qset_acl): New decl.
54401         * lib/acl.c (qset_acl): New function.
54402         (set_acl): Use new function.  Use more-consistent diagnostics.
54403
54404 2007-11-28  Jim Meyering  <meyering@redhat.com>
54405
54406         * modules/physmem (License): Change from GPL to LGPLv2+.
54407
54408 2007-11-26  Bruno Haible  <bruno@clisp.org>
54409
54410         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54411         'long double' type has excess precision.
54412         Reported by Jim Meyering in
54413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54414
54415 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54416
54417         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54418         Sync from <http://gnu.org/licenses>.
54419         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54420         with license text from same location.
54421         * doc/maintain.texi, doc/standards.texi:  Sync from
54422         <http://savannah.gnu.org/projects/gnustandards>.
54423
54424 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54425         and Jim Meyering  <meyering@redhat.com>
54426
54427         Adjust getdate' grammar to accept a slightly more regular language.
54428         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54429         Before, the former was rejected.
54430         * lib/getdate.y (digits_to_date_time): New function, factored
54431         out of ...
54432         (number): ...here.  Just call digits_to_date_time.
54433         (hybrid): New non-terminal to handle an <unsigned number,
54434         signed relative offset> sequence consistently.
54435
54436 2007-11-18  Jim Meyering  <meyering@redhat.com>
54437
54438         Pull my changes from coreutils:
54439         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54440         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54441         use of $gnulib_tool_option_extras, so that it's separated from the
54442         preceding argument.
54443
54444         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54445         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54446         parent destination directories before copying a file into place.
54447
54448 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54449
54450         bootstrap: work also with 4-argument variant of AC_INIT
54451         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54452
54453 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54454
54455         Port test-getaddrinfo to Solaris.
54456         Problem reported by Bruno Haible in
54457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54458         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54459         explanation of setting 'hints'.
54460         Don't reject an implementation merely because it returns EAI_SERVICE.
54461         (EAI_SERVICE): Define to 0 if not defined.
54462
54463 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         The license of gnu-make and posix-shell is now "GPLed build tool".
54466         * modules/gnu-make (License): Likewise.
54467         * modules/posix-shell (License): Likewise.
54468
54469         New module posix-shell, for determining a POSIX shell
54470         or perhaps something that is close enough to a POSIX shell.
54471         * m4/posix-shell.m4: New file.
54472         * modules/posix-shell: New file.
54473
54474         * MODULES.html.sh: Mention new module.
54475
54476         New module gnu-make, for determining whether we're using GNU Make.
54477         * m4/gnu-make.m4: New file.
54478         * modules/gnu-make: New file.
54479         * MODULES.html.sh: Mention new module.
54480
54481 2007-11-14  Jim Meyering  <meyering@redhat.com>
54482
54483         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54484         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54485         use this macro to create a function _definition_.
54486         Remove useless "#undef ARGMATCH_DIE".
54487
54488 2007-11-14  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/config.charset: Update for OpenBSD 4.1.
54491         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54492
54493 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         Document 64-bit #if problems in stdint.texi.
54496         * doc/headers/stdint.texi (stdint.h): Mention problems with
54497         64-bit-#if, and how to work around them.
54498
54499         Don't insist on 'long long int' support in the preprocessor.  It
54500         breaks too many things.  For example, PRIdMAX still uses a 'long
54501         long int' format with the latest Sun compiler, even though
54502         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54503         preprocessor problem.  This causes the latest coreutils to dump
54504         core on Solaris 10 sparc with the Sun C compiler.
54505         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54506         the troublesome expressions at configure-time, not at #if-time.
54507         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54508         preprocessor.
54509         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54510         compile-time C checks, done at 'configure'-time.
54511         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54512         * modules/inttypes (Makefile): Substitute the new symbols that
54513         gl_INTTYPES_H now generates.
54514         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54515
54516 2007-11-12  Bruno Haible  <bruno@clisp.org>
54517
54518         Tests for Unicode character classification functions.
54519
54520         * modules/unictype/bidicategory-byname-tests: New file.
54521         * modules/unictype/bidicategory-name-tests: New file.
54522         * modules/unictype/bidicategory-of-tests: New file.
54523         * modules/unictype/bidicategory-test-tests: New file.
54524         * modules/unictype/block-list-tests: New file.
54525         * modules/unictype/block-of-tests: New file.
54526         * modules/unictype/block-test-tests: New file.
54527         * modules/unictype/category-C-tests: New file.
54528         * modules/unictype/category-Cc-tests: New file.
54529         * modules/unictype/category-Cf-tests: New file.
54530         * modules/unictype/category-Cn-tests: New file.
54531         * modules/unictype/category-Co-tests: New file.
54532         * modules/unictype/category-Cs-tests: New file.
54533         * modules/unictype/category-L-tests: New file.
54534         * modules/unictype/category-Ll-tests: New file.
54535         * modules/unictype/category-Lm-tests: New file.
54536         * modules/unictype/category-Lo-tests: New file.
54537         * modules/unictype/category-Lt-tests: New file.
54538         * modules/unictype/category-Lu-tests: New file.
54539         * modules/unictype/category-M-tests: New file.
54540         * modules/unictype/category-Mc-tests: New file.
54541         * modules/unictype/category-Me-tests: New file.
54542         * modules/unictype/category-Mn-tests: New file.
54543         * modules/unictype/category-N-tests: New file.
54544         * modules/unictype/category-Nd-tests: New file.
54545         * modules/unictype/category-Nl-tests: New file.
54546         * modules/unictype/category-No-tests: New file.
54547         * modules/unictype/category-P-tests: New file.
54548         * modules/unictype/category-Pc-tests: New file.
54549         * modules/unictype/category-Pd-tests: New file.
54550         * modules/unictype/category-Pe-tests: New file.
54551         * modules/unictype/category-Pf-tests: New file.
54552         * modules/unictype/category-Pi-tests: New file.
54553         * modules/unictype/category-Po-tests: New file.
54554         * modules/unictype/category-Ps-tests: New file.
54555         * modules/unictype/category-S-tests: New file.
54556         * modules/unictype/category-Sc-tests: New file.
54557         * modules/unictype/category-Sk-tests: New file.
54558         * modules/unictype/category-Sm-tests: New file.
54559         * modules/unictype/category-So-tests: New file.
54560         * modules/unictype/category-Z-tests: New file.
54561         * modules/unictype/category-Zl-tests: New file.
54562         * modules/unictype/category-Zp-tests: New file.
54563         * modules/unictype/category-Zs-tests: New file.
54564         * modules/unictype/category-and-not-tests: New file.
54565         * modules/unictype/category-and-tests: New file.
54566         * modules/unictype/category-byname-tests: New file.
54567         * modules/unictype/category-name-tests: New file.
54568         * modules/unictype/category-none-tests: New file.
54569         * modules/unictype/category-of-tests: New file.
54570         * modules/unictype/category-or-tests: New file.
54571         * modules/unictype/category-test-withtable-tests: New file.
54572         * modules/unictype/combining-class-tests: New file.
54573         * modules/unictype/ctype-alnum-tests: New file.
54574         * modules/unictype/ctype-alpha-tests: New file.
54575         * modules/unictype/ctype-blank-tests: New file.
54576         * modules/unictype/ctype-cntrl-tests: New file.
54577         * modules/unictype/ctype-digit-tests: New file.
54578         * modules/unictype/ctype-graph-tests: New file.
54579         * modules/unictype/ctype-lower-tests: New file.
54580         * modules/unictype/ctype-print-tests: New file.
54581         * modules/unictype/ctype-punct-tests: New file.
54582         * modules/unictype/ctype-space-tests: New file.
54583         * modules/unictype/ctype-upper-tests: New file.
54584         * modules/unictype/ctype-xdigit-tests: New file.
54585         * modules/unictype/decimal-digit-tests: New file.
54586         * modules/unictype/digit-tests: New file.
54587         * modules/unictype/mirror-tests: New file.
54588         * modules/unictype/numeric-tests: New file.
54589         * modules/unictype/property-alphabetic-tests: New file.
54590         * modules/unictype/property-ascii-hex-digit-tests: New file.
54591         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54592         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54593         * modules/unictype/property-bidi-block-separator-tests: New file.
54594         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54595         * modules/unictype/property-bidi-common-separator-tests: New file.
54596         * modules/unictype/property-bidi-control-tests: New file.
54597         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54598         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54599         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54600         * modules/unictype/property-bidi-european-digit-tests: New file.
54601         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54602         * modules/unictype/property-bidi-left-to-right-tests: New file.
54603         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54604         * modules/unictype/property-bidi-other-neutral-tests: New file.
54605         * modules/unictype/property-bidi-pdf-tests: New file.
54606         * modules/unictype/property-bidi-segment-separator-tests: New file.
54607         * modules/unictype/property-bidi-whitespace-tests: New file.
54608         * modules/unictype/property-byname-tests: New file.
54609         * modules/unictype/property-combining-tests: New file.
54610         * modules/unictype/property-composite-tests: New file.
54611         * modules/unictype/property-currency-symbol-tests: New file.
54612         * modules/unictype/property-dash-tests: New file.
54613         * modules/unictype/property-decimal-digit-tests: New file.
54614         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54615         * modules/unictype/property-deprecated-tests: New file.
54616         * modules/unictype/property-diacritic-tests: New file.
54617         * modules/unictype/property-extender-tests: New file.
54618         * modules/unictype/property-format-control-tests: New file.
54619         * modules/unictype/property-grapheme-base-tests: New file.
54620         * modules/unictype/property-grapheme-extend-tests: New file.
54621         * modules/unictype/property-grapheme-link-tests: New file.
54622         * modules/unictype/property-hex-digit-tests: New file.
54623         * modules/unictype/property-hyphen-tests: New file.
54624         * modules/unictype/property-id-continue-tests: New file.
54625         * modules/unictype/property-id-start-tests: New file.
54626         * modules/unictype/property-ideographic-tests: New file.
54627         * modules/unictype/property-ids-binary-operator-tests: New file.
54628         * modules/unictype/property-ids-trinary-operator-tests: New file.
54629         * modules/unictype/property-ignorable-control-tests: New file.
54630         * modules/unictype/property-iso-control-tests: New file.
54631         * modules/unictype/property-join-control-tests: New file.
54632         * modules/unictype/property-left-of-pair-tests: New file.
54633         * modules/unictype/property-line-separator-tests: New file.
54634         * modules/unictype/property-logical-order-exception-tests: New file.
54635         * modules/unictype/property-lowercase-tests: New file.
54636         * modules/unictype/property-math-tests: New file.
54637         * modules/unictype/property-non-break-tests: New file.
54638         * modules/unictype/property-not-a-character-tests: New file.
54639         * modules/unictype/property-numeric-tests: New file.
54640         * modules/unictype/property-other-alphabetic-tests: New file.
54641         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54642         * modules/unictype/property-other-grapheme-extend-tests: New file.
54643         * modules/unictype/property-other-id-continue-tests: New file.
54644         * modules/unictype/property-other-id-start-tests: New file.
54645         * modules/unictype/property-other-lowercase-tests: New file.
54646         * modules/unictype/property-other-math-tests: New file.
54647         * modules/unictype/property-other-uppercase-tests: New file.
54648         * modules/unictype/property-paired-punctuation-tests: New file.
54649         * modules/unictype/property-paragraph-separator-tests: New file.
54650         * modules/unictype/property-pattern-syntax-tests: New file.
54651         * modules/unictype/property-pattern-white-space-tests: New file.
54652         * modules/unictype/property-private-use-tests: New file.
54653         * modules/unictype/property-punctuation-tests: New file.
54654         * modules/unictype/property-quotation-mark-tests: New file.
54655         * modules/unictype/property-radical-tests: New file.
54656         * modules/unictype/property-sentence-terminal-tests: New file.
54657         * modules/unictype/property-soft-dotted-tests: New file.
54658         * modules/unictype/property-space-tests: New file.
54659         * modules/unictype/property-terminal-punctuation-tests: New file.
54660         * modules/unictype/property-test-tests: New file.
54661         * modules/unictype/property-titlecase-tests: New file.
54662         * modules/unictype/property-unassigned-code-value-tests: New file.
54663         * modules/unictype/property-unified-ideograph-tests: New file.
54664         * modules/unictype/property-uppercase-tests: New file.
54665         * modules/unictype/property-variation-selector-tests: New file.
54666         * modules/unictype/property-white-space-tests: New file.
54667         * modules/unictype/property-xid-continue-tests: New file.
54668         * modules/unictype/property-xid-start-tests: New file.
54669         * modules/unictype/property-zero-width-tests: New file.
54670         * modules/unictype/scripts-tests: New file.
54671         * modules/unictype/syntax-c-ident-tests: New file.
54672         * modules/unictype/syntax-c-whitespace-tests: New file.
54673         * modules/unictype/syntax-java-ident-tests: New file.
54674         * modules/unictype/syntax-java-whitespace-tests: New file.
54675         * tests/unictype/test-bidi_byname.c: New file.
54676         * tests/unictype/test-bidi_name.c: New file.
54677         * tests/unictype/test-bidi_of.c: New file.
54678         * tests/unictype/test-bidi_test.c: New file.
54679         * tests/unictype/test-block_list.c: New file.
54680         * tests/unictype/test-block_of.c: New file.
54681         * tests/unictype/test-block_test.c: New file.
54682         * tests/unictype/test-categ_and.c: New file.
54683         * tests/unictype/test-categ_and_not.c: New file.
54684         * tests/unictype/test-categ_byname.c: New file.
54685         * tests/unictype/test-categ_name.c: New file.
54686         * tests/unictype/test-categ_none.c: New file.
54687         * tests/unictype/test-categ_of.c: New file.
54688         * tests/unictype/test-categ_or.c: New file.
54689         * tests/unictype/test-categ_test_withtable.c: New file.
54690         * tests/unictype/test-combining.c: New file.
54691         * tests/unictype/test-decdigit.c: New file.
54692         * tests/unictype/test-digit.c: New file.
54693         * tests/unictype/test-mirror.c: New file.
54694         * tests/unictype/test-numeric.c: New file.
54695         * tests/unictype/test-pr_byname.c: New file.
54696         * tests/unictype/test-pr_test.c: New file.
54697         * tests/unictype/test-predicate-part1.h: New file.
54698         * tests/unictype/test-predicate-part2.h: New file.
54699         * tests/unictype/test-scripts.c: New file.
54700         * tests/unictype/test-sy_c_ident.c: New file.
54701         * tests/unictype/test-sy_java_ident.c: New file.
54702
54703         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54704         for Unicode 5.0.0.
54705         * tests/unictype/test-categ_Cc.c: Likewise.
54706         * tests/unictype/test-categ_Cf.c: Likewise.
54707         * tests/unictype/test-categ_Cn.c: Likewise.
54708         * tests/unictype/test-categ_Co.c: Likewise.
54709         * tests/unictype/test-categ_Cs.c: Likewise.
54710         * tests/unictype/test-categ_L.c: Likewise.
54711         * tests/unictype/test-categ_Ll.c: Likewise.
54712         * tests/unictype/test-categ_Lm.c: Likewise.
54713         * tests/unictype/test-categ_Lo.c: Likewise.
54714         * tests/unictype/test-categ_Lt.c: Likewise.
54715         * tests/unictype/test-categ_Lu.c: Likewise.
54716         * tests/unictype/test-categ_M.c: Likewise.
54717         * tests/unictype/test-categ_Mc.c: Likewise.
54718         * tests/unictype/test-categ_Me.c: Likewise.
54719         * tests/unictype/test-categ_Mn.c: Likewise.
54720         * tests/unictype/test-categ_N.c: Likewise.
54721         * tests/unictype/test-categ_Nd.c: Likewise.
54722         * tests/unictype/test-categ_Nl.c: Likewise.
54723         * tests/unictype/test-categ_No.c: Likewise.
54724         * tests/unictype/test-categ_P.c: Likewise.
54725         * tests/unictype/test-categ_Pc.c: Likewise.
54726         * tests/unictype/test-categ_Pd.c: Likewise.
54727         * tests/unictype/test-categ_Pe.c: Likewise.
54728         * tests/unictype/test-categ_Pf.c: Likewise.
54729         * tests/unictype/test-categ_Pi.c: Likewise.
54730         * tests/unictype/test-categ_Po.c: Likewise.
54731         * tests/unictype/test-categ_Ps.c: Likewise.
54732         * tests/unictype/test-categ_S.c: Likewise.
54733         * tests/unictype/test-categ_Sc.c: Likewise.
54734         * tests/unictype/test-categ_Sk.c: Likewise.
54735         * tests/unictype/test-categ_Sm.c: Likewise.
54736         * tests/unictype/test-categ_So.c: Likewise.
54737         * tests/unictype/test-categ_Z.c: Likewise.
54738         * tests/unictype/test-categ_Zl.c: Likewise.
54739         * tests/unictype/test-categ_Zp.c: Likewise.
54740         * tests/unictype/test-categ_Zs.c: Likewise.
54741         * tests/unictype/test-ctype_alnum.c: Likewise.
54742         * tests/unictype/test-ctype_alpha.c: Likewise.
54743         * tests/unictype/test-ctype_blank.c: Likewise.
54744         * tests/unictype/test-ctype_cntrl.c: Likewise.
54745         * tests/unictype/test-ctype_digit.c: Likewise.
54746         * tests/unictype/test-ctype_graph.c: Likewise.
54747         * tests/unictype/test-ctype_lower.c: Likewise.
54748         * tests/unictype/test-ctype_print.c: Likewise.
54749         * tests/unictype/test-ctype_punct.c: Likewise.
54750         * tests/unictype/test-ctype_space.c: Likewise.
54751         * tests/unictype/test-ctype_upper.c: Likewise.
54752         * tests/unictype/test-ctype_xdigit.c: Likewise.
54753         * tests/unictype/test-decdigit.h: Likewise.
54754         * tests/unictype/test-digit.h: Likewise.
54755         * tests/unictype/test-numeric.h: Likewise.
54756         * tests/unictype/test-pr_alphabetic.c: Likewise.
54757         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54759         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54760         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54761         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54762         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54763         * tests/unictype/test-pr_bidi_control.c: Likewise.
54764         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54765         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54766         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54767         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54768         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54769         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54770         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54771         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54772         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54773         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54774         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54775         * tests/unictype/test-pr_combining.c: Likewise.
54776         * tests/unictype/test-pr_composite.c: Likewise.
54777         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54778         * tests/unictype/test-pr_dash.c: Likewise.
54779         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54780         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54781         * tests/unictype/test-pr_deprecated.c: Likewise.
54782         * tests/unictype/test-pr_diacritic.c: Likewise.
54783         * tests/unictype/test-pr_extender.c: Likewise.
54784         * tests/unictype/test-pr_format_control.c: Likewise.
54785         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54786         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54787         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54788         * tests/unictype/test-pr_hex_digit.c: Likewise.
54789         * tests/unictype/test-pr_hyphen.c: Likewise.
54790         * tests/unictype/test-pr_id_continue.c: Likewise.
54791         * tests/unictype/test-pr_id_start.c: Likewise.
54792         * tests/unictype/test-pr_ideographic.c: Likewise.
54793         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54794         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54795         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54796         * tests/unictype/test-pr_iso_control.c: Likewise.
54797         * tests/unictype/test-pr_join_control.c: Likewise.
54798         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54799         * tests/unictype/test-pr_line_separator.c: Likewise.
54800         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54801         * tests/unictype/test-pr_lowercase.c: Likewise.
54802         * tests/unictype/test-pr_math.c: Likewise.
54803         * tests/unictype/test-pr_non_break.c: Likewise.
54804         * tests/unictype/test-pr_not_a_character.c: Likewise.
54805         * tests/unictype/test-pr_numeric.c: Likewise.
54806         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54807         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54808         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54809         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54810         * tests/unictype/test-pr_other_id_start.c: Likewise.
54811         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54812         * tests/unictype/test-pr_other_math.c: Likewise.
54813         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54814         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54815         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54816         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54817         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54818         * tests/unictype/test-pr_private_use.c: Likewise.
54819         * tests/unictype/test-pr_punctuation.c: Likewise.
54820         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54821         * tests/unictype/test-pr_radical.c: Likewise.
54822         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54823         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54824         * tests/unictype/test-pr_space.c: Likewise.
54825         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54826         * tests/unictype/test-pr_titlecase.c: Likewise.
54827         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54828         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54829         * tests/unictype/test-pr_uppercase.c: Likewise.
54830         * tests/unictype/test-pr_variation_selector.c: Likewise.
54831         * tests/unictype/test-pr_white_space.c: Likewise.
54832         * tests/unictype/test-pr_xid_continue.c: Likewise.
54833         * tests/unictype/test-pr_xid_start.c: Likewise.
54834         * tests/unictype/test-pr_zero_width.c: Likewise.
54835         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54836         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54837
54838 2007-11-12  Bruno Haible  <bruno@clisp.org>
54839
54840         Unicode character classification functions.
54841         * lib/unictype.h: New file.
54842         * modules/unictype/base: New file.
54843         * modules/unictype/category-L: New file.
54844         * modules/unictype/category-Lu: New file.
54845         * modules/unictype/category-Ll: New file.
54846         * modules/unictype/category-Lt: New file.
54847         * modules/unictype/category-Lm: New file.
54848         * modules/unictype/category-Lo: New file.
54849         * modules/unictype/category-M: New file.
54850         * modules/unictype/category-Mn: New file.
54851         * modules/unictype/category-Mc: New file.
54852         * modules/unictype/category-Me: New file.
54853         * modules/unictype/category-N: New file.
54854         * modules/unictype/category-Nd: New file.
54855         * modules/unictype/category-Nl: New file.
54856         * modules/unictype/category-No: New file.
54857         * modules/unictype/category-P: New file.
54858         * modules/unictype/category-Pc: New file.
54859         * modules/unictype/category-Pd: New file.
54860         * modules/unictype/category-Ps: New file.
54861         * modules/unictype/category-Pe: New file.
54862         * modules/unictype/category-Pi: New file.
54863         * modules/unictype/category-Pf: New file.
54864         * modules/unictype/category-Po: New file.
54865         * modules/unictype/category-S: New file.
54866         * modules/unictype/category-Sm: New file.
54867         * modules/unictype/category-Sc: New file.
54868         * modules/unictype/category-Sk: New file.
54869         * modules/unictype/category-So: New file.
54870         * modules/unictype/category-Z: New file.
54871         * modules/unictype/category-Zs: New file.
54872         * modules/unictype/category-Zl: New file.
54873         * modules/unictype/category-Zp: New file.
54874         * modules/unictype/category-C: New file.
54875         * modules/unictype/category-Cc: New file.
54876         * modules/unictype/category-Cf: New file.
54877         * modules/unictype/category-Cs: New file.
54878         * modules/unictype/category-Co: New file.
54879         * modules/unictype/category-Cn: New file.
54880         * modules/unictype/category-or: New file.
54881         * modules/unictype/category-of: New file.
54882         * modules/unictype/category-test: New file.
54883         * modules/unictype/category-test-withtable: New file.
54884         * modules/unictype/category-byname: New file.
54885         * modules/unictype/category-none: New file.
54886         * modules/unictype/category-and: New file.
54887         * modules/unictype/category-and-not: New file.
54888         * modules/unictype/category-name: New file.
54889         * modules/unictype/combining-class: New file.
54890         * modules/unictype/category-all: New file.
54891         * modules/unictype/bidicategory-all: New file.
54892         * modules/unictype/bidicategory-byname: New file.
54893         * modules/unictype/bidicategory-name: New file.
54894         * modules/unictype/bidicategory-of: New file.
54895         * modules/unictype/bidicategory-test: New file.
54896         * modules/unictype/decimal-digit: New file.
54897         * modules/unictype/digit: New file.
54898         * modules/unictype/numeric: New file.
54899         * modules/unictype/mirror: New file.
54900         * modules/unictype/property-white-space: New file.
54901         * modules/unictype/property-alphabetic: New file.
54902         * modules/unictype/property-other-alphabetic: New file.
54903         * modules/unictype/property-not-a-character: New file.
54904         * modules/unictype/property-default-ignorable-code-point: New file.
54905         * modules/unictype/property-other-default-ignorable-code-point: New
54906         file.
54907         * modules/unictype/property-deprecated: New file.
54908         * modules/unictype/property-logical-order-exception: New file.
54909         * modules/unictype/property-variation-selector: New file.
54910         * modules/unictype/property-private-use: New file.
54911         * modules/unictype/property-unassigned-code-value: New file.
54912         * modules/unictype/property-uppercase: New file.
54913         * modules/unictype/property-other-uppercase: New file.
54914         * modules/unictype/property-lowercase: New file.
54915         * modules/unictype/property-other-lowercase: New file.
54916         * modules/unictype/property-titlecase: New file.
54917         * modules/unictype/property-soft-dotted: New file.
54918         * modules/unictype/property-id-start: New file.
54919         * modules/unictype/property-other-id-start: New file.
54920         * modules/unictype/property-id-continue: New file.
54921         * modules/unictype/property-other-id-continue: New file.
54922         * modules/unictype/property-xid-start: New file.
54923         * modules/unictype/property-xid-continue: New file.
54924         * modules/unictype/property-pattern-white-space: New file.
54925         * modules/unictype/property-pattern-syntax: New file.
54926         * modules/unictype/property-join-control: New file.
54927         * modules/unictype/property-grapheme-base: New file.
54928         * modules/unictype/property-grapheme-extend: New file.
54929         * modules/unictype/property-other-grapheme-extend: New file.
54930         * modules/unictype/property-grapheme-link: New file.
54931         * modules/unictype/property-bidi-control: New file.
54932         * modules/unictype/property-bidi-left-to-right: New file.
54933         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54934         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54935         * modules/unictype/property-bidi-european-digit: New file.
54936         * modules/unictype/property-bidi-eur-num-separator: New file.
54937         * modules/unictype/property-bidi-eur-num-terminator: New file.
54938         * modules/unictype/property-bidi-arabic-digit: New file.
54939         * modules/unictype/property-bidi-common-separator: New file.
54940         * modules/unictype/property-bidi-block-separator: New file.
54941         * modules/unictype/property-bidi-segment-separator: New file.
54942         * modules/unictype/property-bidi-whitespace: New file.
54943         * modules/unictype/property-bidi-non-spacing-mark: New file.
54944         * modules/unictype/property-bidi-boundary-neutral: New file.
54945         * modules/unictype/property-bidi-pdf: New file.
54946         * modules/unictype/property-bidi-embedding-or-override: New file.
54947         * modules/unictype/property-bidi-other-neutral: New file.
54948         * modules/unictype/property-hex-digit: New file.
54949         * modules/unictype/property-ascii-hex-digit: New file.
54950         * modules/unictype/property-ideographic: New file.
54951         * modules/unictype/property-unified-ideograph: New file.
54952         * modules/unictype/property-radical: New file.
54953         * modules/unictype/property-ids-binary-operator: New file.
54954         * modules/unictype/property-ids-trinary-operator: New file.
54955         * modules/unictype/property-zero-width: New file.
54956         * modules/unictype/property-space: New file.
54957         * modules/unictype/property-non-break: New file.
54958         * modules/unictype/property-iso-control: New file.
54959         * modules/unictype/property-format-control: New file.
54960         * modules/unictype/property-dash: New file.
54961         * modules/unictype/property-hyphen: New file.
54962         * modules/unictype/property-punctuation: New file.
54963         * modules/unictype/property-line-separator: New file.
54964         * modules/unictype/property-paragraph-separator: New file.
54965         * modules/unictype/property-quotation-mark: New file.
54966         * modules/unictype/property-sentence-terminal: New file.
54967         * modules/unictype/property-terminal-punctuation: New file.
54968         * modules/unictype/property-currency-symbol: New file.
54969         * modules/unictype/property-math: New file.
54970         * modules/unictype/property-other-math: New file.
54971         * modules/unictype/property-paired-punctuation: New file.
54972         * modules/unictype/property-left-of-pair: New file.
54973         * modules/unictype/property-combining: New file.
54974         * modules/unictype/property-composite: New file.
54975         * modules/unictype/property-decimal-digit: New file.
54976         * modules/unictype/property-numeric: New file.
54977         * modules/unictype/property-diacritic: New file.
54978         * modules/unictype/property-extender: New file.
54979         * modules/unictype/property-ignorable-control: New file.
54980         * modules/unictype/property-test: New file.
54981         * modules/unictype/property-byname: New file.
54982         * modules/unictype/property-all: New file.
54983         * modules/unictype/scripts: New file.
54984         * modules/unictype/scripts-all: New file.
54985         * modules/unictype/block-of: New file.
54986         * modules/unictype/block-test: New file.
54987         * modules/unictype/block-list: New file.
54988         * modules/unictype/block-all: New file.
54989         * modules/unictype/syntax-c-whitespace: New file.
54990         * modules/unictype/syntax-java-whitespace: New file.
54991         * modules/unictype/syntax-c-ident: New file.
54992         * modules/unictype/syntax-java-ident: New file.
54993         * modules/unictype/ctype-alnum: New file.
54994         * modules/unictype/ctype-alpha: New file.
54995         * modules/unictype/ctype-cntrl: New file.
54996         * modules/unictype/ctype-digit: New file.
54997         * modules/unictype/ctype-graph: New file.
54998         * modules/unictype/ctype-lower: New file.
54999         * modules/unictype/ctype-print: New file.
55000         * modules/unictype/ctype-punct: New file.
55001         * modules/unictype/ctype-space: New file.
55002         * modules/unictype/ctype-upper: New file.
55003         * modules/unictype/ctype-xdigit: New file.
55004         * modules/unictype/ctype-blank: New file.
55005         * lib/unictype/bidi_byname.c: New file.
55006         * lib/unictype/bidi_name.c: New file.
55007         * lib/unictype/bidi_of.c: New file.
55008         * lib/unictype/bidi_test.c: New file.
55009         * lib/unictype/bitmap.h: New file.
55010         * lib/unictype/block_test.c: New file.
55011         * lib/unictype/blocks.c: New file.
55012         * lib/unictype/categ_C.c: New file.
55013         * lib/unictype/categ_Cc.c: New file.
55014         * lib/unictype/categ_Cf.c: New file.
55015         * lib/unictype/categ_Cn.c: New file.
55016         * lib/unictype/categ_Co.c: New file.
55017         * lib/unictype/categ_Cs.c: New file.
55018         * lib/unictype/categ_L.c: New file.
55019         * lib/unictype/categ_Ll.c: New file.
55020         * lib/unictype/categ_Lm.c: New file.
55021         * lib/unictype/categ_Lo.c: New file.
55022         * lib/unictype/categ_Lt.c: New file.
55023         * lib/unictype/categ_Lu.c: New file.
55024         * lib/unictype/categ_M.c: New file.
55025         * lib/unictype/categ_Mc.c: New file.
55026         * lib/unictype/categ_Me.c: New file.
55027         * lib/unictype/categ_Mn.c: New file.
55028         * lib/unictype/categ_N.c: New file.
55029         * lib/unictype/categ_Nd.c: New file.
55030         * lib/unictype/categ_Nl.c: New file.
55031         * lib/unictype/categ_No.c: New file.
55032         * lib/unictype/categ_P.c: New file.
55033         * lib/unictype/categ_Pc.c: New file.
55034         * lib/unictype/categ_Pd.c: New file.
55035         * lib/unictype/categ_Pe.c: New file.
55036         * lib/unictype/categ_Pf.c: New file.
55037         * lib/unictype/categ_Pi.c: New file.
55038         * lib/unictype/categ_Po.c: New file.
55039         * lib/unictype/categ_Ps.c: New file.
55040         * lib/unictype/categ_S.c: New file.
55041         * lib/unictype/categ_Sc.c: New file.
55042         * lib/unictype/categ_Sk.c: New file.
55043         * lib/unictype/categ_Sm.c: New file.
55044         * lib/unictype/categ_So.c: New file.
55045         * lib/unictype/categ_Z.c: New file.
55046         * lib/unictype/categ_Zl.c: New file.
55047         * lib/unictype/categ_Zp.c: New file.
55048         * lib/unictype/categ_Zs.c: New file.
55049         * lib/unictype/categ_and.c: New file.
55050         * lib/unictype/categ_and_not.c: New file.
55051         * lib/unictype/categ_byname.c: New file.
55052         * lib/unictype/categ_name.c: New file.
55053         * lib/unictype/categ_none.c: New file.
55054         * lib/unictype/categ_of.c: New file.
55055         * lib/unictype/categ_or.c: New file.
55056         * lib/unictype/categ_test.c: New file.
55057         * lib/unictype/combining.c: New file.
55058         * lib/unictype/ctype_alnum.c: New file.
55059         * lib/unictype/ctype_alpha.c: New file.
55060         * lib/unictype/ctype_blank.c: New file.
55061         * lib/unictype/ctype_cntrl.c: New file.
55062         * lib/unictype/ctype_digit.c: New file.
55063         * lib/unictype/ctype_graph.c: New file.
55064         * lib/unictype/ctype_lower.c: New file.
55065         * lib/unictype/ctype_print.c: New file.
55066         * lib/unictype/ctype_punct.c: New file.
55067         * lib/unictype/ctype_space.c: New file.
55068         * lib/unictype/ctype_upper.c: New file.
55069         * lib/unictype/ctype_xdigit.c: New file.
55070         * lib/unictype/decdigit.c: New file.
55071         * lib/unictype/digit.c: New file.
55072         * lib/unictype/identsyntaxmap.h: New file.
55073         * lib/unictype/mirror.c: New file.
55074         * lib/unictype/numeric.c: New file.
55075         * lib/unictype/pr_alphabetic.c: New file.
55076         * lib/unictype/pr_ascii_hex_digit.c: New file.
55077         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55078         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55079         * lib/unictype/pr_bidi_block_separator.c: New file.
55080         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55081         * lib/unictype/pr_bidi_common_separator.c: New file.
55082         * lib/unictype/pr_bidi_control.c: New file.
55083         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55084         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55085         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55086         * lib/unictype/pr_bidi_european_digit.c: New file.
55087         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55088         * lib/unictype/pr_bidi_left_to_right.c: New file.
55089         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55090         * lib/unictype/pr_bidi_other_neutral.c: New file.
55091         * lib/unictype/pr_bidi_pdf.c: New file.
55092         * lib/unictype/pr_bidi_segment_separator.c: New file.
55093         * lib/unictype/pr_bidi_whitespace.c: New file.
55094         * lib/unictype/pr_byname.c: New file.
55095         * lib/unictype/pr_byname.gperf: New file.
55096         * lib/unictype/pr_combining.c: New file.
55097         * lib/unictype/pr_composite.c: New file.
55098         * lib/unictype/pr_currency_symbol.c: New file.
55099         * lib/unictype/pr_dash.c: New file.
55100         * lib/unictype/pr_decimal_digit.c: New file.
55101         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55102         * lib/unictype/pr_deprecated.c: New file.
55103         * lib/unictype/pr_diacritic.c: New file.
55104         * lib/unictype/pr_extender.c: New file.
55105         * lib/unictype/pr_format_control.c: New file.
55106         * lib/unictype/pr_grapheme_base.c: New file.
55107         * lib/unictype/pr_grapheme_extend.c: New file.
55108         * lib/unictype/pr_grapheme_link.c: New file.
55109         * lib/unictype/pr_hex_digit.c: New file.
55110         * lib/unictype/pr_hyphen.c: New file.
55111         * lib/unictype/pr_id_continue.c: New file.
55112         * lib/unictype/pr_id_start.c: New file.
55113         * lib/unictype/pr_ideographic.c: New file.
55114         * lib/unictype/pr_ids_binary_operator.c: New file.
55115         * lib/unictype/pr_ids_trinary_operator.c: New file.
55116         * lib/unictype/pr_ignorable_control.c: New file.
55117         * lib/unictype/pr_iso_control.c: New file.
55118         * lib/unictype/pr_join_control.c: New file.
55119         * lib/unictype/pr_left_of_pair.c: New file.
55120         * lib/unictype/pr_line_separator.c: New file.
55121         * lib/unictype/pr_logical_order_exception.c: New file.
55122         * lib/unictype/pr_lowercase.c: New file.
55123         * lib/unictype/pr_math.c: New file.
55124         * lib/unictype/pr_non_break.c: New file.
55125         * lib/unictype/pr_not_a_character.c: New file.
55126         * lib/unictype/pr_numeric.c: New file.
55127         * lib/unictype/pr_other_alphabetic.c: New file.
55128         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55129         * lib/unictype/pr_other_grapheme_extend.c: New file.
55130         * lib/unictype/pr_other_id_continue.c: New file.
55131         * lib/unictype/pr_other_id_start.c: New file.
55132         * lib/unictype/pr_other_lowercase.c: New file.
55133         * lib/unictype/pr_other_math.c: New file.
55134         * lib/unictype/pr_other_uppercase.c: New file.
55135         * lib/unictype/pr_paired_punctuation.c: New file.
55136         * lib/unictype/pr_paragraph_separator.c: New file.
55137         * lib/unictype/pr_pattern_syntax.c: New file.
55138         * lib/unictype/pr_pattern_white_space.c: New file.
55139         * lib/unictype/pr_private_use.c: New file.
55140         * lib/unictype/pr_punctuation.c: New file.
55141         * lib/unictype/pr_quotation_mark.c: New file.
55142         * lib/unictype/pr_radical.c: New file.
55143         * lib/unictype/pr_sentence_terminal.c: New file.
55144         * lib/unictype/pr_soft_dotted.c: New file.
55145         * lib/unictype/pr_space.c: New file.
55146         * lib/unictype/pr_terminal_punctuation.c: New file.
55147         * lib/unictype/pr_test.c: New file.
55148         * lib/unictype/pr_titlecase.c: New file.
55149         * lib/unictype/pr_unassigned_code_value.c: New file.
55150         * lib/unictype/pr_unified_ideograph.c: New file.
55151         * lib/unictype/pr_uppercase.c: New file.
55152         * lib/unictype/pr_variation_selector.c: New file.
55153         * lib/unictype/pr_white_space.c: New file.
55154         * lib/unictype/pr_xid_continue.c: New file.
55155         * lib/unictype/pr_xid_start.c: New file.
55156         * lib/unictype/pr_zero_width.c: New file.
55157         * lib/unictype/scripts.c: New file.
55158         * lib/unictype/sy_c_ident.c: New file.
55159         * lib/unictype/sy_c_whitespace.c: New file.
55160         * lib/unictype/sy_java_ident.c: New file.
55161         * lib/unictype/sy_java_whitespace.c: New file.
55162
55163         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55164         Unicode 5.0.0.
55165         * lib/unictype/blocks.h: Likewise.
55166         * lib/unictype/categ_C.h: Likewise.
55167         * lib/unictype/categ_Cc.h: Likewise.
55168         * lib/unictype/categ_Cf.h: Likewise.
55169         * lib/unictype/categ_Cn.h: Likewise.
55170         * lib/unictype/categ_Co.h: Likewise.
55171         * lib/unictype/categ_Cs.h: Likewise.
55172         * lib/unictype/categ_L.h: Likewise.
55173         * lib/unictype/categ_Ll.h: Likewise.
55174         * lib/unictype/categ_Lm.h: Likewise.
55175         * lib/unictype/categ_Lo.h: Likewise.
55176         * lib/unictype/categ_Lt.h: Likewise.
55177         * lib/unictype/categ_Lu.h: Likewise.
55178         * lib/unictype/categ_M.h: Likewise.
55179         * lib/unictype/categ_Mc.h: Likewise.
55180         * lib/unictype/categ_Me.h: Likewise.
55181         * lib/unictype/categ_Mn.h: Likewise.
55182         * lib/unictype/categ_N.h: Likewise.
55183         * lib/unictype/categ_Nd.h: Likewise.
55184         * lib/unictype/categ_Nl.h: Likewise.
55185         * lib/unictype/categ_No.h: Likewise.
55186         * lib/unictype/categ_P.h: Likewise.
55187         * lib/unictype/categ_Pc.h: Likewise.
55188         * lib/unictype/categ_Pd.h: Likewise.
55189         * lib/unictype/categ_Pe.h: Likewise.
55190         * lib/unictype/categ_Pf.h: Likewise.
55191         * lib/unictype/categ_Pi.h: Likewise.
55192         * lib/unictype/categ_Po.h: Likewise.
55193         * lib/unictype/categ_Ps.h: Likewise.
55194         * lib/unictype/categ_S.h: Likewise.
55195         * lib/unictype/categ_Sc.h: Likewise.
55196         * lib/unictype/categ_Sk.h: Likewise.
55197         * lib/unictype/categ_Sm.h: Likewise.
55198         * lib/unictype/categ_So.h: Likewise.
55199         * lib/unictype/categ_Z.h: Likewise.
55200         * lib/unictype/categ_Zl.h: Likewise.
55201         * lib/unictype/categ_Zp.h: Likewise.
55202         * lib/unictype/categ_Zs.h: Likewise.
55203         * lib/unictype/categ_of.h: Likewise.
55204         * lib/unictype/combining.h: Likewise.
55205         * lib/unictype/ctype_alnum.h: Likewise.
55206         * lib/unictype/ctype_alpha.h: Likewise.
55207         * lib/unictype/ctype_blank.h: Likewise.
55208         * lib/unictype/ctype_cntrl.h: Likewise.
55209         * lib/unictype/ctype_digit.h: Likewise.
55210         * lib/unictype/ctype_graph.h: Likewise.
55211         * lib/unictype/ctype_lower.h: Likewise.
55212         * lib/unictype/ctype_print.h: Likewise.
55213         * lib/unictype/ctype_punct.h: Likewise.
55214         * lib/unictype/ctype_space.h: Likewise.
55215         * lib/unictype/ctype_upper.h: Likewise.
55216         * lib/unictype/ctype_xdigit.h: Likewise.
55217         * lib/unictype/decdigit.h: Likewise.
55218         * lib/unictype/digit.h: Likewise.
55219         * lib/unictype/mirror.h: Likewise.
55220         * lib/unictype/numeric.h: Likewise.
55221         * lib/unictype/pr_alphabetic.h: Likewise.
55222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55223         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55224         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55225         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55226         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55227         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55228         * lib/unictype/pr_bidi_control.h: Likewise.
55229         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55230         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55231         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55232         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55233         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55234         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55235         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55236         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55237         * lib/unictype/pr_bidi_pdf.h: Likewise.
55238         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55239         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55240         * lib/unictype/pr_combining.h: Likewise.
55241         * lib/unictype/pr_composite.h: Likewise.
55242         * lib/unictype/pr_currency_symbol.h: Likewise.
55243         * lib/unictype/pr_dash.h: Likewise.
55244         * lib/unictype/pr_decimal_digit.h: Likewise.
55245         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55246         * lib/unictype/pr_deprecated.h: Likewise.
55247         * lib/unictype/pr_diacritic.h: Likewise.
55248         * lib/unictype/pr_extender.h: Likewise.
55249         * lib/unictype/pr_format_control.h: Likewise.
55250         * lib/unictype/pr_grapheme_base.h: Likewise.
55251         * lib/unictype/pr_grapheme_extend.h: Likewise.
55252         * lib/unictype/pr_grapheme_link.h: Likewise.
55253         * lib/unictype/pr_hex_digit.h: Likewise.
55254         * lib/unictype/pr_hyphen.h: Likewise.
55255         * lib/unictype/pr_id_continue.h: Likewise.
55256         * lib/unictype/pr_id_start.h: Likewise.
55257         * lib/unictype/pr_ideographic.h: Likewise.
55258         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55259         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55260         * lib/unictype/pr_ignorable_control.h: Likewise.
55261         * lib/unictype/pr_iso_control.h: Likewise.
55262         * lib/unictype/pr_join_control.h: Likewise.
55263         * lib/unictype/pr_left_of_pair.h: Likewise.
55264         * lib/unictype/pr_line_separator.h: Likewise.
55265         * lib/unictype/pr_logical_order_exception.h: Likewise.
55266         * lib/unictype/pr_lowercase.h: Likewise.
55267         * lib/unictype/pr_math.h: Likewise.
55268         * lib/unictype/pr_non_break.h: Likewise.
55269         * lib/unictype/pr_not_a_character.h: Likewise.
55270         * lib/unictype/pr_numeric.h: Likewise.
55271         * lib/unictype/pr_other_alphabetic.h: Likewise.
55272         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55273         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55274         * lib/unictype/pr_other_id_continue.h: Likewise.
55275         * lib/unictype/pr_other_id_start.h: Likewise.
55276         * lib/unictype/pr_other_lowercase.h: Likewise.
55277         * lib/unictype/pr_other_math.h: Likewise.
55278         * lib/unictype/pr_other_uppercase.h: Likewise.
55279         * lib/unictype/pr_paired_punctuation.h: Likewise.
55280         * lib/unictype/pr_paragraph_separator.h: Likewise.
55281         * lib/unictype/pr_pattern_syntax.h: Likewise.
55282         * lib/unictype/pr_pattern_white_space.h: Likewise.
55283         * lib/unictype/pr_private_use.h: Likewise.
55284         * lib/unictype/pr_punctuation.h: Likewise.
55285         * lib/unictype/pr_quotation_mark.h: Likewise.
55286         * lib/unictype/pr_radical.h: Likewise.
55287         * lib/unictype/pr_sentence_terminal.h: Likewise.
55288         * lib/unictype/pr_soft_dotted.h: Likewise.
55289         * lib/unictype/pr_space.h: Likewise.
55290         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55291         * lib/unictype/pr_titlecase.h: Likewise.
55292         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55293         * lib/unictype/pr_unified_ideograph.h: Likewise.
55294         * lib/unictype/pr_uppercase.h: Likewise.
55295         * lib/unictype/pr_variation_selector.h: Likewise.
55296         * lib/unictype/pr_white_space.h: Likewise.
55297         * lib/unictype/pr_xid_continue.h: Likewise.
55298         * lib/unictype/pr_xid_start.h: Likewise.
55299         * lib/unictype/pr_zero_width.h: Likewise.
55300         * lib/unictype/scripts.h: Likewise.
55301         * lib/unictype/scripts_byname.gperf: Likewise.
55302         * lib/unictype/sy_c_ident.h: Likewise.
55303         * lib/unictype/sy_c_whitespace.h: Likewise.
55304         * lib/unictype/sy_java_ident.h: Likewise.
55305         * lib/unictype/sy_java_whitespace.h: Likewise.
55306
55307         * lib/unictype/Makefile: New file.
55308         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55309         glibc.
55310         * lib/unictype/3level.h: New file, copied from glibc.
55311         * lib/unictype/3levelbit.h: New file.
55312
55313 2007-11-11  Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/gperf: New file.
55316         * modules/iconv_open (Depends-on): Add it.
55317         (Makefile.am): Remove the GPERF definition.
55318
55319 2007-11-11  Bruno Haible  <bruno@clisp.org>
55320
55321         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55322         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55323
55324 2007-11-11  Bruno Haible  <bruno@clisp.org>
55325
55326         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55327         (usage): Remove function.
55328
55329 2007-11-11  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55332         gl_FUNC_CEILF_LIBS.
55333         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55334         gl_FUNC_CEIL_LIBS.
55335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55336         gl_FUNC_CEILL_LIBS.
55337         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55338         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55339         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55340
55341 2007-11-11  Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55344         roundf were declared but do not exist on functions.
55345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55346         roundl were declared but do not exist on functions.
55347         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55348         HAVE_FLOORL_AND_CEILL, respectively.
55349         Needed for Sun C on Solaris 10.
55350
55351 2007-11-11  Bruno Haible  <bruno@clisp.org>
55352
55353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55354         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55355         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55356         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55358         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55359         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55360         HAVE_DECL_ROUNDF.
55361         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55362         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55364         of HAVE_DECL_ROUND*.
55365         * modules/math (Makefile.am): Update.
55366
55367 2007-11-10  Bruno Haible  <bruno@clisp.org>
55368
55369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55370         ptrdiff_t as m4/intl.m4.
55371
55372 2007-11-10  Jim Meyering  <meyering@redhat.com>
55373
55374         Avoid link failure for the argmatch test.
55375         * tests/test-argmatch.c (usage): Define function to avoid a link
55376         failure: argmatch_die requires a usage function.
55377
55378 2007-11-09  Bruno Haible  <bruno@clisp.org>
55379
55380         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55381         * doc/functions/vsnprintf.texi: Likewise.
55382         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55383         with a size argument < 2.
55384
55385 2007-11-09  Bruno Haible  <bruno@clisp.org>
55386
55387         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55388         buffer. Fixes an inefficiency introduced on 2007-11-03.
55389
55390 2007-11-09  Bruno Haible  <bruno@clisp.org>
55391
55392         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55393         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55394
55395 2007-11-08  Jim Meyering  <meyering@redhat.com>
55396
55397         Change cache variable name prefix "jm_" to "gl_" everywhere.
55398         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55399         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55400         * m4/uptime.m4: s/gl_/jm_/
55401
55402 2007-11-07  Bruno Haible  <bruno@clisp.org>
55403
55404         Update to GNU gettext 0.17.
55405         * m4/intl.m4: Update to GNU gettext 0.17.
55406         * m4/po.m4: Likewise.
55407         * modules/gettext (Files): Remove m4/ulonglong.m4.
55408         (configure.ac): Require gettext infrastructure from version 0.17.
55409
55410 2007-11-06  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55413         symbolic values are not defined in a public header.
55414         * lib/freadable.c (freadable) [QNX]: Likewise.
55415         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55416         * lib/freading.c (freading) [QNX]: Likewise.
55417         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55418         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55419         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55420         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55421         Reported by Alain Magloire.
55422
55423         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55424
55425 2007-11-05  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55428         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55429         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55430         Reported by Eric Blake.
55431
55432 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55433             Bruno Haible  <bruno@clisp.org>
55434
55435         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55436         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55437         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55438         (malloc): Undefine also before including <stdlib.h>.
55439         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55440         Needed on OSF/1 4.0.
55441
55442 2007-11-05  Jim Meyering  <meyering@redhat.com>
55443
55444         git-version-gen: sync from coreutils.
55445         * build-aux/git-version-gen: Add comments.
55446         Change the first '-' to '.' in the snapshot version string,
55447         e.g., 6.9-377-08144 -> 6.9.377-08144
55448         Remove first parameter.
55449         Don't declare a version "-dirty" merely because a time
55450         stamp has changed.
55451
55452 2007-11-04  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/lock.h: Protect all macro definitions containing an 'if'
55455         statement through a "do { ... } while (0)".
55456         * lib/tls.h: Likewise.
55457
55458 2007-11-04  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55461
55462 2007-11-04  Bruno Haible  <bruno@clisp.org>
55463
55464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55465         * modules/fprintf-posix (Depends-on): Add nocrash.
55466         * modules/snprintf-posix (Depends-on): Likewise.
55467         * modules/sprintf-posix (Depends-on): Likewise.
55468         * modules/vasnprintf-posix (Depends-on): Likewise.
55469         * modules/vasprintf-posix (Depends-on): Likewise.
55470         * modules/vfprintf-posix (Depends-on): Likewise.
55471         * modules/vsnprintf-posix (Depends-on): Likewise.
55472         * modules/vsprintf-posix (Depends-on): Likewise.
55473         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55480
55481 2007-11-04  Bruno Haible  <bruno@clisp.org>
55482
55483         * modules/nocrash: New file.
55484         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55485         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55486
55487 2007-11-04  Bruno Haible  <bruno@clisp.org>
55488
55489         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55490         precision handling.
55491         * tests/test-vasprintf-posix.c (test_function): Likewise.
55492         * tests/test-snprintf-posix.h (test_function): Likewise.
55493         * tests/test-sprintf-posix.h (test_function): Likewise.
55494
55495         Fix *printf behaviour for large precisions on mingw and BeOS.
55496         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55497         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55499         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55501         gl_PRINTF_PRECISION and test its result. Invoke
55502         gl_PREREQ_VASNPRINTF_PRECISION.
55503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55510         * doc/functions/fprintf.texi: Update.
55511         * doc/functions/printf.texi: Update.
55512         * doc/functions/snprintf.texi: Update.
55513         * doc/functions/sprintf.texi: Update.
55514         * doc/functions/vfprintf.texi: Update.
55515         * doc/functions/vprintf.texi: Update.
55516         * doc/functions/vsnprintf.texi: Update.
55517         * doc/functions/vsprintf.texi: Update.
55518
55519 2007-11-04  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55522
55523 2007-11-04  Bruno Haible  <bruno@clisp.org>
55524
55525         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55526         Reported by Sylvain Beucler <beuc@gnu.org>.
55527
55528 2007-11-03  Bruno Haible  <bruno@clisp.org>
55529
55530         * tests/test-fprintf-posix2.sh: New file.
55531         * tests/test-fprintf-posix2.c: New file.
55532         * modules/fprintf-posix-tests (Files): Add them.
55533         (TESTS): Add test-fprintf-posix2.sh.
55534         (configure.ac): Check for getrlimit and setrlimit.
55535         (check_PROGRAMS): Add test-fprintf-posix2.
55536
55537         * tests/test-printf-posix2.sh: New file.
55538         * tests/test-printf-posix2.c: New file.
55539         * modules/printf-posix-tests (Files): Add them.
55540         (TESTS): Add test-printf-posix2.sh.
55541         (configure.ac): Check for getrlimit and setrlimit.
55542         (check_PROGRAMS): Add test-printf-posix2.
55543
55544         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55545         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55546         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55547         (decode_double): New function, copied from decode_long_double.
55548         (scale10_round_decimal_decoded): New function, extracted from
55549         scale10_round_decimal_long_double.
55550         (scale10_round_decimal_long_double): Use it.
55551         (scale10_round_decimal_double): New function.
55552         (floorlog10): New function.
55553         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55555         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55557         gl_PRINTF_ENOMEM and test its result. Invoke
55558         gl_PREREQ_VASNPRINTF_ENOMEM.
55559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55566         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55567         * modules/snprintf-posix (Depends-on): Likewise.
55568         * modules/sprintf-posix (Depends-on): Likewise.
55569         * modules/vasnprintf-posix (Depends-on): Likewise.
55570         * modules/vasprintf-posix (Depends-on): Likewise.
55571         * modules/vfprintf-posix (Depends-on): Likewise.
55572         * modules/vsnprintf-posix (Depends-on): Likewise.
55573         * modules/vsprintf-posix (Depends-on): Likewise.
55574         * doc/functions/fprintf.texi: Update.
55575         * doc/functions/printf.texi: Update.
55576         * doc/functions/snprintf.texi: Update.
55577         * doc/functions/sprintf.texi: Update.
55578         * doc/functions/vfprintf.texi: Update.
55579         * doc/functions/vprintf.texi: Update.
55580         * doc/functions/vsnprintf.texi: Update.
55581         * doc/functions/vsprintf.texi: Update.
55582
55583 2007-11-03  Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/frexp-nolibm-tests: New file.
55586
55587         * modules/frexp-nolibm: New file.
55588         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55589
55590 2007-11-03  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55593         value is C99 compliant.
55594         Needed for OSF/1 5.1.
55595
55596 2007-11-03  Bruno Haible  <bruno@clisp.org>
55597
55598         Fix out-of-memory handling of vasnprintf.
55599         * lib/printf-parse.c: Include <errno.h>.
55600         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55601         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55602         is already set.
55603
55604 2007-11-02  Eric Blake  <ebb9@byu.net>
55605
55606         Fix tests on cygwin.
55607         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55608
55609 2007-11-01  Bruno Haible  <bruno@clisp.org>
55610
55611         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55612         warning.
55613         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55614         needed for POSIX compatibility.
55615
55616 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55619         for compatibility with GNU.
55620
55621 2007-11-01  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55624         (putenv): Renamed from rpl_putenv. Change argument type from
55625         'const char *' to 'char *'.
55626         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55627         of defining putenv in config.h, just set REPLACE_PUTENV.
55628         * modules/putenv (Depends-on): Add stdlib.
55629         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55630         (Include): Use <stdlib.h>.
55631         * lib/stdlib.in.h (putenv): New declaration.
55632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55633         REPLACE_PUTENV.
55634         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55635         REPLACE_PUTENV.
55636         Needed for MacOS X 10.5.0.
55637         Reported by Peter O'Gorman <peter@pogma.com>.
55638
55639 2007-11-01  Jim Meyering  <meyering@redhat.com>
55640
55641         Treat an empty date string exactly like "0".
55642         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55643         if the remaining date string (to be parsed) is empty, use "0".
55644         Reported by Mischa Molhoek and discussed in this thread:
55645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55646
55647 2007-10-31  Bruno Haible  <bruno@clisp.org>
55648
55649         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55650         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55651         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55652         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55653         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55654         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55655
55656 2007-10-31  Bruno Haible  <bruno@clisp.org>
55657
55658         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55659         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55660         (AC_TYPE_LONG_LONG_INT): Use it.
55661         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55662         it as well.
55663         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55664         to m4/longlong.m4.
55665         * modules/stdint (Files): Remove m4/ulonglong.m4.
55666         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55667         m4/ulonglong.m4.
55668         * modules/strtoumax (Files): Likewise.
55669
55670 2007-10-30  Bruno Haible  <bruno@clisp.org>
55671
55672         * modules/xvasprintf-posix: New file.
55673         Suggested by Eric Blake.
55674
55675 2007-10-30  Bruno Haible  <bruno@clisp.org>
55676
55677         * modules/xprintf-posix-tests: New file.
55678         * tests/test-xprintf-posix.sh: New file.
55679         * tests/test-xprintf-posix.c: New file.
55680         * tests/test-xfprintf-posix.c: New file.
55681
55682         * modules/xprintf-posix: New file.
55683
55684 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55685
55686         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55687         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55688         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55689
55690 2007-10-29  Bruno Haible  <bruno@clisp.org>
55691
55692         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55693         contain the special marker '_cv_'.
55694         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55695         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55696         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55697         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55698         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55699         Reported by Ralf Wildenhues.
55700
55701 2007-10-29  Bruno Haible  <bruno@clisp.org>
55702
55703         * gnulib-tool (func_import): When --lgpl is not specified, set
55704         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55705         GPLv3.
55706         Reported by Simon Josefsson.
55707
55708 2007-10-28  Bruno Haible  <bruno@clisp.org>
55709
55710         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55711         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55712         HAVE_DECL_ISFINITE.
55713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55714         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55715         HAVE_DECL_ISFINITE.
55716
55717 2007-10-28  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55720         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55721
55722 2007-10-28  Bruno Haible  <bruno@clisp.org>
55723
55724         Fix link errors with Sun C 5.0 on Solaris 10.
55725         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55726         function is declared but not present in the compiler's libm.
55727         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55728         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55729         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55730         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55731         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55732         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55733         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55735         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55736         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55737         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55738         HAVE_DECL_FLOORL.
55739
55740 2007-10-28  Bruno Haible  <bruno@clisp.org>
55741
55742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55743         gl_FUNC_FLOORL. Cache the result.
55744         (gl_FUNC_FLOORL): Use it.
55745         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55746         gl_FUNC_CEILL. Cache the result.
55747         (gl_FUNC_CEILL): Use it.
55748
55749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55750         gl_FUNC_FLOOR. Cache the result.
55751         (gl_FUNC_FLOOR): Use it.
55752         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55753         gl_FUNC_CEIL. Cache the result.
55754         (gl_FUNC_CEIL): Use it.
55755
55756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55757         gl_FUNC_FLOORF. Cache the result.
55758         (gl_FUNC_FLOORF): Use it.
55759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55760         gl_FUNC_CEILF. Cache the result.
55761         (gl_FUNC_CEILF): Use it.
55762
55763 2007-10-28  Bruno Haible  <bruno@clisp.org>
55764
55765         * gnulib-tool: Allow specifying the LGPL version number through
55766         --lgpl=2 or --lgpl=3.
55767         (func_usage): Document --lgpl with argument.
55768         Handle --lgpl=... arguments.
55769         (func_import): Recognize also gl_LGPL calls with an argument. When
55770         --lgpl=2 is used and the module's license is just LGPL, report an
55771         error. Set sed_transform_lib_file according to the lgpl variable. In
55772         the generated files, use --lgpl or gl_LGPL invocations with argument,
55773         if necessary.
55774         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55775         an LGPv2+ license.
55776         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55777         gl_LGPL macro.
55778
55779 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55780             Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55783         (u16_uctomb_aux): Likewise.
55784         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55785         !HAVE_INLINE.
55786         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55787
55788 2007-10-28  Bruno Haible  <bruno@clisp.org>
55789
55790         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55791         Invoke AM_GETTEXT_OPTION if it exists.
55792         * modules/vasprintf: Likewise.
55793         * modules/verror: Likewise.
55794         * modules/xprintf: Likewise.
55795         * modules/xvasprintf: Likewise.
55796
55797 2007-10-27  Ben Pfaff  <blp@gnu.org>
55798
55799         * lib/math.in.h: Define isfinite macro and prototypes for
55800         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55801         implementations.
55802         * m4/math_h.m4: New substitutions for isfinite module.
55803         * lib/isfinite.c: New file.
55804         * m4/isfinite.m4: New file.
55805         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55806         * modules/isfinite: New file.
55807         * modules/isfinite-tests: New file.
55808         * tests/tests-isfinite.c: New file.
55809         * doc/functions/isfinite.texi: Mention isfinite module.
55810         * MODULES.html.sh: Mention new module.
55811
55812 2007-10-27  Ben Pfaff  <blp@gnu.org>
55813
55814         Ralf Wildenhues reported that Tru64 4.0D declares the round
55815         functions but does not have definitions.
55816         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55817         cannot be found in any library, set the output variable to
55818         "missing" instead of "".
55819         * m4/round.m4: Also use our substitute if we cannot find round in
55820         any library, even if it is declared.
55821         * m4/roundf.m4: Likewise for roundf.
55822         * m4/roundl.m4: Likewise for roundl.
55823         * lib/math.in.h: Undefine roundf, round, roundl before defining
55824         their replacements, to allow for hypothetical systems where these
55825         may be defined as macros but not available in libraries.
55826
55827 2007-10-27  Bruno Haible  <bruno@clisp.org>
55828
55829         * doc/gnulib.texi: Invoke @firstparagraphindent.
55830         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55831         changes in gnulib.
55832         (Source changes): New section.
55833
55834 2007-10-26  Bruno Haible  <bruno@clisp.org>
55835
55836         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55837         borrowed from autoconf.
55838
55839 2007-10-26  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55842         strerror returned the empty string. Needed on HP-UX 11.00.
55843
55844 2007-10-24  Micah Cowan  <micah@cowan.name>
55845
55846         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55847         * build-aux/bootstrap: Remove support for now-unnecessary option,
55848         --cvs-user, and envvars CVS_USER, CVS_RSH.
55849
55850 2007-10-24  Jim Meyering  <meyering@redhat.com>
55851
55852         Avoid diagnostics from sha1sum when there is no cached checksum.
55853         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55854         if the po.s1 file hasn't been created yet.
55855
55856         * build-aux/bootstrap: Sync from coreutils:
55857         2007-10-24  Jim Meyering  <meyering@redhat.com>
55858         Get gnulib from the git repository, not from an obsolete cvs one.
55859         * build-aux/bootstrap: Suggestion from Micah Cowan.
55860         2007-10-04  Jim Meyering  <jim@meyering.net>
55861         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55862         (update_po_files): Work also when there are no .po files in po/.
55863
55864 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * README: Append ".git" to git and cg examples.
55867         Problem reported by Benoit Sigoure.
55868
55869 2007-10-23  Micah Cowan  <micah@cowan.name>
55870
55871         * users.txt: Add wget.
55872
55873 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55874
55875         Fix linking of some unistdio tests on FreeBSD.
55876         * modules/unistdio/u16-vsnprintf-tests
55877         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55878         * modules/unistdio/u16-vsprintf-tests
55879         (test_u16_vsnprintf1_LDADD): Likewise.
55880         * modules/unistdio/u32-vsnprintf-tests
55881         (test_u32_vsnprintf1_LDADD): Likewise.
55882         * modules/unistdio/u32-vsprintf-tests
55883         (test_u32_vsprintf1_LDADD): Likewise.
55884         * modules/unistdio/u8-vsnprintf-tests
55885         (test_u8_vsnprintf1_LDADD): Likewise.
55886         * modules/unistdio/u8-vsprintf-tests
55887         (test_u8_vsprintf1_LDADD): Likewise.
55888         * modules/unistdio/ulc-vsnprintf-tests
55889         (test_ulc_vsnprintf1_LDADD): Likewise.
55890         * modules/unistdio/ulc-vsprintf-tests
55891         (test_ulc_vsprintf1_LDADD): Likewise.
55892
55893         Fix linking of some uniconv tests on FreeBSD.
55894         * modules/uniconv/u16-conv-from-enc-tests
55895         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55896         * modules/uniconv/u16-conv-to-enc-tests
55897         (test_u16_conv_to_enc_LDADD): Likewise.
55898         * modules/uniconv/u16-strconv-from-enc-tests
55899         (test_u16_strconv_from_enc_LDADD): Likewise.
55900         * modules/uniconv/u16-strconv-to-enc-tests
55901         (test_u16_strconv_to_enc_LDADD): Likewise.
55902         * modules/uniconv/u32-conv-from-enc-tests
55903         (test_u32_conv_from_enc_LDADD): Likewise.
55904         * modules/uniconv/u32-conv-to-enc-tests
55905         (test_u32_conv_to_enc_LDADD): Likewise.
55906         * modules/uniconv/u32-strconv-from-enc-tests
55907         (test_u32_strconv_from_enc_LDADD): Likewise.
55908         * modules/uniconv/u32-strconv-to-enc-tests
55909         (test_u32_strconv_to_enc_LDADD): Likewise.
55910         * modules/uniconv/u8-conv-from-enc-tests
55911         (test_u8_conv_from_enc_LDADD): Likewise.
55912         * modules/uniconv/u8-conv-to-enc-tests
55913         (test_u8_conv_to_enc_LDADD): Likewise.
55914         * modules/uniconv/u8-strconv-from-enc-tests
55915         (test_u8_strconv_from_enc_LDADD): Likewise.
55916         * modules/uniconv/u8-strconv-to-enc-tests
55917         (test_u8_strconv_to_enc_LDADD): Likewise.
55918
55919 2007-10-22  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55922         size.
55923
55924 2007-10-22  Eric Blake  <ebb9@byu.net>
55925
55926         Tweak x*printf documentation.
55927         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55928         variable name and comments.
55929         Suggested by Bruno Haible.
55930
55931 2007-10-22  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/acl.c (copy_acl): Fix file name in comment.
55934
55935 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55936
55937         Fix Tru64 problem with stdbool.h.
55938         * lib/stdbool.in.h (false, true):
55939         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55940         Don't declare as an enum in this situation; it runs afoul of Tru64.
55941         Problem reported by Steven M. Schweda in
55942         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55943
55944 2007-10-22  Eric Blake  <ebb9@byu.net>
55945
55946         Also wrap vf?printf.
55947         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55948         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55949         (xvprintf, xvfprintf): New functions.
55950
55951 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55952
55953         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55954         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55955
55956         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55957         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55958
55959 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55960
55961         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55962         by Bruno Haible.
55963
55964 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55965
55966         * lib/getloadavg.c
55967         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55968         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55969
55970         * tests/test-i-ring.c: Work for C89.
55971
55972 2007-10-22  Bruno Haible  <bruno@clisp.org>
55973
55974         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55975         -1u, in preprocessor expression, so that we don't test for the bug
55976         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55978
55979 2007-10-22  Eric Blake  <ebb9@byu.net>
55980
55981         * tests/test-yesno.sh: Silence stderr during test.
55982
55983 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55984
55985         * modules/crypto/gc-camellia: New file.
55986
55987         * m4/gc-camellia.m4: New file.
55988
55989         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55990
55991         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55992
55993 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55994
55995         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55996         --help to stdout.  Reported by sms@antinode.org (Steven
55997         M. Schweda).
55998
55999 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56000
56001         * users.txt: Fix link to libksba.
56002
56003 2007-10-21  Ben Pfaff  <blp@gnu.org>
56004
56005         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56006         round.c roundf implementation that depends on floorf and ceilf to
56007         be tested unconditionally.
56008
56009 2007-10-21  Ben Pfaff  <blp@gnu.org>
56010
56011         * m4/check-libm-func.m4: Removed.
56012         * m4/check-math-lib.m4: New file.
56013         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56014         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56015         definition and lack of AC_LIBOBJ([roundf]).
56016         * m4/roundl.m4: Ditto, and similarly for roundl.
56017         * modules/round: Reference new m4 file.
56018         * modules/roundf: Ditto.
56019         * modules/roundl: Ditto.
56020         * tests/test-round2.c (main): Use ROUND instead of round.
56021         Bug report from Bruno Haible.
56022
56023 2007-10-21  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56026         context.
56027
56028 2007-10-21  Bruno Haible  <bruno@clisp.org>
56029
56030         * tests/test-wcwidth.c (main): Allow negative result for some control
56031         characters.
56032
56033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56034         Needed on OSF/1 5.1.
56035
56036 2007-10-21  Bruno Haible  <bruno@clisp.org>
56037
56038         * tests/test-floorf1.c: Include isnanf.h.
56039         (main): Use isnanf() instead of isnan().
56040         * tests/test-ceilf1.c: Include isnanf.h.
56041         (main): Use isnanf() instead of isnan().
56042         * tests/test-truncf1.c: Include isnanf.h.
56043         (main): Use isnanf() instead of isnan().
56044         * tests/test-roundf1.c: Include isnanf.h.
56045         (main): Use isnanf() instead of isnan().
56046
56047 2007-10-21  Eric Blake  <ebb9@byu.net>
56048
56049         * users.txt: Update URL for m4.
56050
56051 2007-10-21  Bruno Haible  <bruno@clisp.org>
56052
56053         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56054
56055 2007-10-21  Bruno Haible  <bruno@clisp.org>
56056
56057         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56058         Git's management files if the CVS files are not present.
56059
56060 2007-10-20  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56063         gcc-3.4.x.
56064
56065 2007-10-20  Ben Pfaff  <blp@gnu.org>
56066
56067         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56068         implementations.
56069         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56070         * lib/round.c: New file.
56071         * lib/roundf.c: New file.
56072         * lib/roundl.c: New file.
56073         * m4/round.m4: New file.
56074         * m4/roundf.m4: New file.
56075         * m4/roundl.m4: New file.
56076         * m4/check-libm-func-m4: New file.
56077         * modules/math: Replace round, roundf, roundl related @VARS@ in
56078         math.in.h.
56079         * modules/round: New file.
56080         * modules/round-tests: New file.
56081         * modules/roundf: New file.
56082         * modules/roundf-tests: New file.
56083         * modules/roundl: New file.
56084         * modules/roundl-tests: New file.
56085         * tests/test-round1.c: New file.
56086         * tests/test-round2.c: New file.
56087         * tests/test-roundf1.c: New file.
56088         * tests/test-roundf2.c: New file.
56089         * tests/test-roundl.c: New file.
56090         * doc/functions/round.texi: Mention round module.
56091         * doc/functions/roundf.texi: Mention roundf module.
56092         * doc/functions/roundl.texi: Mention roundl module.
56093         * MODULES.html.sh: Mention new modules.
56094         Thanks to Bruno Haible for suggestions.
56095
56096 2007-10-20  Jim Meyering  <meyering@redhat.com>
56097
56098         * lib/xprintf.c: Include <config.h> unconditionally.
56099
56100         Change xprintf's license to GPL.
56101         * modules/xprintf (License): s/LGPL/GPL/, since this module
56102         depends on modules (exit and exitfail) which are GPL.
56103         Suggestion from Bruno Haible.
56104
56105         xprintf fixes.
56106         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56107         Use a clearer diagnostic.
56108         Patch from Bruno Haible.
56109
56110 2007-10-20  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56113         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56115
56116 2007-10-20  Bruno Haible  <bruno@clisp.org>
56117
56118         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56119         precision in the comparison result > x - 1 or similar.
56120         * tests/test-ceilf2.c (correct_result_p): Likewise.
56121         * tests/test-truncf2.c (correct_result_p): Likewise.
56122         * tests/test-trunc2.c (correct_result_p): Likewise.
56123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56124
56125 2007-10-20  Bruno Haible  <bruno@clisp.org>
56126
56127         * modules/ceil: New file.
56128         * m4/ceil.m4: New file.
56129         * doc/functions/ceil.texi: Mention the 'ceil' module.
56130
56131 2007-10-20  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/floor: New file.
56134         * m4/floor.m4: New file.
56135         * doc/functions/floor.texi: Mention the 'floor' module.
56136
56137 2007-10-20  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56140         of %a.
56141         * modules/floorf-tests (Depends-on): Likewise.
56142         * modules/truncf-tests (Depends-on): Likewise.
56143         * modules/trunc-tests (Depends-on): Likewise.
56144         Reported by Ben Pfaff.
56145
56146 2007-10-19  Jim Meyering  <meyering@redhat.com>
56147
56148         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56149         Don't bother testing specific errno values.  Just test ferror.
56150
56151         New module: xprintf
56152         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56153
56154 2007-10-19  Bruno Haible  <bruno@clisp.org>
56155
56156         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56157         syntax.
56158         * modules/javaexec (Makefile.am): Likewise.
56159         * modules/relocatable-prog (Makefile.am): Likewise.
56160         Suggested by Jim Meyering.
56161
56162 2007-10-18  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56165         Reported by Jim Meyering.
56166
56167 2007-10-18  Eric Blake  <ebb9@byu.net>
56168
56169         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56170
56171 2007-10-18  Bruno Haible  <bruno@clisp.org>
56172
56173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56174         the format string into writable memory. Needed in Fortify conditions.
56175
56176 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56177             Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56180         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56181         * modules/trim (Depends-on): Add mbchar.
56182         (configure.ac): Add gl_FUNC_MBRTOWC.
56183         (Makefile.am): Augment lib_SOURCES.
56184
56185 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56186
56187         Modify glob.c to use fstatat and dirfd, to simplify it.
56188         Suggested by Eric Blake.
56189         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56190         Don't include <stdbool.h>; not used.
56191         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56192         (link_exists_p): Simplify implementation, since we can now assume
56193         dirfd and fstatat.
56194         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56195
56196 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56197
56198         * gnulib-tool (func_get_dependencies): Fix sed script to
56199         match only tests.
56200
56201 2007-10-17  Bruno Haible  <bruno@clisp.org>
56202
56203         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56204         allow locale names without encoding suffix.
56205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56207
56208 2007-10-16  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56211         * lib/getgroups.c (getgroups): Likewise.
56212         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56213
56214 2007-10-16  Bruno Haible  <bruno@clisp.org>
56215
56216         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56217         * modules/malloc-posix (License): Likewise.
56218         * modules/realloc-posix (License): Likewise.
56219         * modules/calloc-posix (License): Likewise.
56220         * modules/intprops (License): Change from GPL to LGPL, with
56221         Paul Eggert's approval.
56222
56223 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         Merge glibc changes into lib/glob.c.
56226
56227         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56228         2007-10-15 04:59:03 UTC.  Here are the changes:
56229
56230         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56231
56232         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56233
56234         * lib/glob.c: Add some branch prediction throughout.
56235
56236         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56237
56238         [BZ #5103]
56239         * lib/glob.c (glob): Recognize patterns starting \/.
56240
56241         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56242
56243         [BZ #3996]
56244         * lib/glob.c (attribute_hidden): Define if not defined.
56245         (glob): Unescape dirname, filename or username when needed and not
56246         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56247         is NULL.  Handle unescaped [ in pattern without closing ].
56248         Don't pass GLOB_CHECK down to recursive glob for directories.
56249         (__glob_pattern_type): New function.
56250         (__glob_pattern_p): Implement using __glob_pattern_type.
56251         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56252         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56253         Remove unreachable code.
56254
56255         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56256
56257         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56258         explain why there are no leaks.
56259
56260         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56261
56262         [BZ #3253]
56263         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56264         time, rather allocate increasingly bigger arrays of pointers, if
56265         possible with alloca, if too large with malloc.
56266
56267 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56268
56269         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56270         Problem reported by H.Merijn Brand in
56271         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56272         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56274
56275 2007-10-15  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56278         with explicit rpl_ prefix.
56279         * lib/fopen.c (fopen): Likewise.
56280         * lib/freopen.c (freopen): Likewise.
56281         * lib/iconv.c (iconv): Likewise.
56282         * lib/iconv_close.c (iconv_close): Likewise.
56283
56284 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56285
56286         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56287
56288 2007-10-15  Bruno Haible  <bruno@clisp.org>
56289
56290         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56291         <stddef.h> instead of <stdlib.h> since we only need NULL.
56292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56293
56294 2007-10-15  Bruno Haible  <bruno@clisp.org>
56295
56296         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56297         Replace paragraph talking about LIBOBJS.
56298         Reported by Colin Watson <cjwatson@debian.org>.
56299
56300 2007-10-15  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56303         <stdlib.h> before using NULL.
56304
56305 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56306
56307         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56308         Reported by Albert Chin <china@thewrittenword.com>.
56309
56310 2007-10-14  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/iconv_open-utf-tests: New file.
56313         * tests/test-iconv-utf.c: New file.
56314
56315         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56316         * modules/iconv_open-utf: New file.
56317         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56318         (iconv, iconv_close): New declarations.
56319         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56320         be defined.
56321         (iconv_open): Add special handling of conversion between UTF-8 and
56322         UTF-{16,32}{BE,LE}.
56323         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56324         * lib/iconv_close.c: New file.
56325         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56326         gl_FUNC_ICONV_OPEN.
56327         (gl_FUNC_ICONV_OPEN): Use it.
56328         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56329         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56330         and REPLACE_ICONV_UTF.
56331         * modules/iconv_open (Depends-on): Add c-strcase.
56332         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56333         ICONV_CONST.
56334         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56335
56336 2007-10-13  Albert Chin  <china@thewrittenword.com>
56337             Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56340         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56341
56342 2007-10-13  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56345         defined, use the ISO C99 inline semantics.
56346         * lib/argp.h (ARGP_EI): Likewise.
56347
56348 2007-10-13  Bruno Haible  <bruno@clisp.org>
56349
56350         Handle 'inline' change in gcc 4.3.0.
56351         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56352         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56353         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56354         argp_fmtstream_point): Disable 'extern' declaration if the function
56355         definition is going to be provided inline.
56356         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56357         semantics, not the ISO C99 inline semantics.
56358         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56359         'extern' declaration if the function definition is going to be provided
56360         inline.
56361         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56362         the GNU C inline semantics, not the ISO C99 inline semantics. With
56363         GCC 4.2, avoid a warning.
56364
56365 2007-10-13  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/freading.h (freading): Enable the use of __freading for
56368         glibc >= 2.7.
56369         * lib/freading.c (freading): Likewise.
56370
56371 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56372
56373         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56374         "warning: C99 inline functions are not supported; using GNU89".
56375
56376 2007-10-12  Bruno Haible  <bruno@clisp.org>
56377
56378         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56379         of 2.
56380         * tests/test-ceilf2.c: New file.
56381         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56382
56383         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56384         * modules/ceilf-tests: Update.
56385
56386 2007-10-12  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56389         of 2.
56390         * tests/test-floorf2.c: New file.
56391         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56392
56393         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56394         * modules/floorf-tests: Update.
56395
56396 2007-10-12  Bruno Haible  <bruno@clisp.org>
56397
56398         * tests/test-trunc2.c: New file.
56399         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56400
56401         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56402         * modules/trunc-tests: Update.
56403
56404 2007-10-12  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56407         of 2.
56408         * tests/test-truncf2.c: New file.
56409         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56410
56411         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56412         * modules/truncf-tests: Update.
56413
56414 2007-10-11  Eric Blake  <ebb9@byu.net>
56415
56416         Don't claim strerror is broken on Interix.
56417         * doc/functions/strerror.texi (strerror): Known broken systems are
56418         now Solaris 8, and not Interix.
56419         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56420         Interix on cross-compile.
56421         Reported by Martin Koeppe in
56422         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56423
56424 2007-10-11  Bruno Haible  <bruno@clisp.org>
56425
56426         * modules/i-ring-tests: New file.
56427         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56428         instead of assert.
56429
56430 2007-10-11  Bruno Haible  <bruno@clisp.org>
56431
56432         * modules/filenamecat-tests: New file.
56433         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56434         * lib/filenamecat.c: Remove test code.
56435
56436 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56439
56440         * lib/strerror.c: Include <string.h> always, to test interface,
56441         and to remove the need for the dummy.
56442         Include intprops.h to compute width instead of doing it ourselves
56443         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56444         (strerror): Define it to return NULL if there's no system strerror.
56445         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56446         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56447         ancient pre-strerror Unix systems well any more.  Saying "unknown
56448         system error" is enough.
56449         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56450         simpler strerror.c implementation.
56451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56452         Simplify the tests to reflect the simpler strerror implementation.
56453         * modules/strerror (Depends-on): Add intprops.
56454
56455 2007-10-09  Eric Blake  <ebb9@byu.net>
56456
56457         Silence test-fpending.
56458         * modules/fpending-tests (Files): Add wrapper script.
56459         * tests/test-fpending.sh: New file.
56460
56461 2007-10-09  Bruno Haible  <bruno@clisp.org>
56462
56463         * MODULES.html.sh (func_module): Don't create a hyperlink for
56464         function names like 'printf_frexp'.
56465         (Misc): Add crc, memxor.
56466         (Characteristics of floating types): New section.
56467         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56468         isnanf-nolibm, signbit, trunc, truncf, truncl.
56469         (Enhancements for ISO C 99 functions): New subsection Input/output.
56470         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56471         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56472         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56473         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56474         (Enhancements for POSIX:2001 functions): Add chdir-long.
56475         (File system functions): Add areadlink, chdir-safer, read-file.
56476         Remove cycle-check.
56477         (File system as inode set): New section.
56478         (Date and time): Add gethrxtime.
56479         (Multithreading): Add openmp.
56480         (Internationalization functions): Add localename.
56481         (Unicode string functions): Add unistr/u*-mbsnlen.
56482         (Support for maintaining and releasing projects): Add git-version-gen.
56483         (Lone files): Remove directories.
56484
56485 2007-10-08  Ben Pfaff  <blp@gnu.org>
56486
56487         * lib/xmalloca.h: Fix typo in comment.
56488
56489 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56492         when avoiding problems with integer overflow.  Use a portable test
56493         instead.
56494
56495 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56496
56497         * modules/dummy (License): Change to LGPLv2+.
56498         * modules/float (License): Likewise
56499         * modules/realloc (License): Likewise
56500         * modules/stdlib (License): Likewise
56501
56502 2007-10-07  Bruno Haible  <bruno@clisp.org>
56503
56504         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56505         * floor.c (TWO_MANT_DIG): Likewise.
56506         * ceil.c (TWO_MANT_DIG): Likewise.
56507         Reported by Ben Pfaff.
56508
56509 2007-10-07  Bruno Haible  <bruno@clisp.org>
56510
56511         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56512         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56513         * lib/frexp.c (FUNC): Likewise.
56514         * lib/printf-frexp.h (printf_frexp): Likewise.
56515         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56516         * lib/printf-frexp.c (FUNC): Likewise.
56517         Suggested by Jim Meyering.
56518
56519 2007-10-07  Jim Meyering  <meyering@redhat.com>
56520
56521         Make xnanosleep's integer overflow test more robust.
56522         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56523         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56524
56525 2007-10-07  Bruno Haible  <bruno@clisp.org>
56526
56527         * NEWS: Mention the license change.
56528
56529         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56530         abbreviations in the modules files.
56531
56532         Change copyright notice from GPLv2+ to GPLv3+.
56533         * README: Change copyright notice.
56534         * MODULES.html.sh: Likewise.
56535         * build-aux/bootstrap.conf: Likewise.
56536         * build-aux/config.libpath: Likewise.
56537         * build-aux/csharpcomp.sh.in: Likewise.
56538         * build-aux/csharpexec.sh.in: Likewise.
56539         * build-aux/install-reloc: Likewise.
56540         * build-aux/javacomp.sh.in: Likewise.
56541         * build-aux/javaexec.sh.in: Likewise.
56542         * build-aux/ldd.sh.in: Likewise.
56543         * build-aux/reloc-ldflags: Likewise.
56544         * build-aux/relocatable.sh.in: Likewise.
56545         * build-aux/x-to-1.in: Likewise.
56546         * check-module: Likewise.
56547         * config/srclistvars.sh: Likewise.
56548         * gnulib-tool: Likewise.
56549         * lib/acl-internal.h: Likewise.
56550         * lib/acl.c: Likewise.
56551         * lib/acl.h: Likewise.
56552         * lib/acl_entries.c: Likewise.
56553         * lib/areadlink-with-size.c: Likewise.
56554         * lib/areadlink.c: Likewise.
56555         * lib/areadlink.h: Likewise.
56556         * lib/argmatch.c: Likewise.
56557         * lib/argmatch.h: Likewise.
56558         * lib/argp-ba.c: Likewise.
56559         * lib/argp-eexst.c: Likewise.
56560         * lib/argp-fmtstream.c: Likewise.
56561         * lib/argp-fmtstream.h: Likewise.
56562         * lib/argp-fs-xinl.c: Likewise.
56563         * lib/argp-help.c: Likewise.
56564         * lib/argp-namefrob.h: Likewise.
56565         * lib/argp-parse.c: Likewise.
56566         * lib/argp-pin.c: Likewise.
56567         * lib/argp-pv.c: Likewise.
56568         * lib/argp-pvh.c: Likewise.
56569         * lib/argp-xinl.c: Likewise.
56570         * lib/argp.h: Likewise.
56571         * lib/at-func.c: Likewise.
56572         * lib/atanl.c: Likewise.
56573         * lib/backupfile.c: Likewise.
56574         * lib/backupfile.h: Likewise.
56575         * lib/basename.c: Likewise.
56576         * lib/binary-io.h: Likewise.
56577         * lib/byteswap.in.h: Likewise.
56578         * lib/c-stack.c: Likewise.
56579         * lib/c-stack.h: Likewise.
56580         * lib/c-strcasestr.c: Likewise.
56581         * lib/c-strcasestr.h: Likewise.
56582         * lib/c-strstr.c: Likewise.
56583         * lib/c-strstr.h: Likewise.
56584         * lib/c-strtod.c: Likewise.
56585         * lib/calloc.c: Likewise.
56586         * lib/canon-host.c: Likewise.
56587         * lib/canon-host.h: Likewise.
56588         * lib/canonicalize-lgpl.c: Likewise.
56589         * lib/canonicalize.c: Likewise.
56590         * lib/canonicalize.h: Likewise.
56591         * lib/ceil.c: Likewise.
56592         * lib/ceilf.c: Likewise.
56593         * lib/ceill.c: Likewise.
56594         * lib/chdir-long.c: Likewise.
56595         * lib/chdir-long.h: Likewise.
56596         * lib/chdir-safer.c: Likewise.
56597         * lib/chdir-safer.h: Likewise.
56598         * lib/chown.c: Likewise.
56599         * lib/classpath.c: Likewise.
56600         * lib/classpath.h: Likewise.
56601         * lib/clean-temp.c: Likewise.
56602         * lib/clean-temp.h: Likewise.
56603         * lib/cloexec.c: Likewise.
56604         * lib/close-stream.c: Likewise.
56605         * lib/closein.c: Likewise.
56606         * lib/closein.h: Likewise.
56607         * lib/closeout.c: Likewise.
56608         * lib/closeout.h: Likewise.
56609         * lib/concat-filename.c: Likewise.
56610         * lib/copy-file.c: Likewise.
56611         * lib/copy-file.h: Likewise.
56612         * lib/count-one-bits.h: Likewise.
56613         * lib/crc.c: Likewise.
56614         * lib/crc.h: Likewise.
56615         * lib/creat-safer.c: Likewise.
56616         * lib/csharpcomp.c: Likewise.
56617         * lib/csharpcomp.h: Likewise.
56618         * lib/csharpexec.c: Likewise.
56619         * lib/csharpexec.h: Likewise.
56620         * lib/cycle-check.c: Likewise.
56621         * lib/cycle-check.h: Likewise.
56622         * lib/diacrit.c: Likewise.
56623         * lib/diacrit.h: Likewise.
56624         * lib/diffseq.h: Likewise.
56625         * lib/dirchownmod.c: Likewise.
56626         * lib/dirent.in.h: Likewise.
56627         * lib/dirfd.c: Likewise.
56628         * lib/dirfd.h: Likewise.
56629         * lib/dirname.c: Likewise.
56630         * lib/dirname.h: Likewise.
56631         * lib/dummy.c: Likewise.
56632         * lib/dup-safer.c: Likewise.
56633         * lib/dup2.c: Likewise.
56634         * lib/eealloc.h: Likewise.
56635         * lib/error.c: Likewise.
56636         * lib/error.h: Likewise.
56637         * lib/euidaccess.c: Likewise.
56638         * lib/exclude.c: Likewise.
56639         * lib/exclude.h: Likewise.
56640         * lib/execute.c: Likewise.
56641         * lib/execute.h: Likewise.
56642         * lib/exitfail.c: Likewise.
56643         * lib/exitfail.h: Likewise.
56644         * lib/expl.c: Likewise.
56645         * lib/fatal-signal.c: Likewise.
56646         * lib/fatal-signal.h: Likewise.
56647         * lib/fbufmode.c: Likewise.
56648         * lib/fbufmode.h: Likewise.
56649         * lib/fchdir.c: Likewise.
56650         * lib/fchmodat.c: Likewise.
56651         * lib/fchownat.c: Likewise.
56652         * lib/fcntl--.h: Likewise.
56653         * lib/fcntl-safer.h: Likewise.
56654         * lib/fcntl.in.h: Likewise.
56655         * lib/fd-safer.c: Likewise.
56656         * lib/fflush.c: Likewise.
56657         * lib/file-has-acl.c: Likewise.
56658         * lib/file-set.c: Likewise.
56659         * lib/file-type.c: Likewise.
56660         * lib/file-type.h: Likewise.
56661         * lib/fileblocks.c: Likewise.
56662         * lib/filemode.c: Likewise.
56663         * lib/filemode.h: Likewise.
56664         * lib/filename.h: Likewise.
56665         * lib/filenamecat.c: Likewise.
56666         * lib/filenamecat.h: Likewise.
56667         * lib/findprog.c: Likewise.
56668         * lib/findprog.h: Likewise.
56669         * lib/float.in.h: Likewise.
56670         * lib/floor.c: Likewise.
56671         * lib/floorf.c: Likewise.
56672         * lib/floorl.c: Likewise.
56673         * lib/fopen-safer.c: Likewise.
56674         * lib/fopen.c: Likewise.
56675         * lib/fpending.c: Likewise.
56676         * lib/fpending.h: Likewise.
56677         * lib/fprintf.c: Likewise.
56678         * lib/fprintftime.h: Likewise.
56679         * lib/fpucw.h: Likewise.
56680         * lib/fpurge.c: Likewise.
56681         * lib/fpurge.h: Likewise.
56682         * lib/freadable.c: Likewise.
56683         * lib/freadable.h: Likewise.
56684         * lib/freadahead.c: Likewise.
56685         * lib/freadahead.h: Likewise.
56686         * lib/freading.c: Likewise.
56687         * lib/freading.h: Likewise.
56688         * lib/free.c: Likewise.
56689         * lib/freopen.c: Likewise.
56690         * lib/frexp.c: Likewise.
56691         * lib/frexpl.c: Likewise.
56692         * lib/fseek.c: Likewise.
56693         * lib/fseterr.c: Likewise.
56694         * lib/fseterr.h: Likewise.
56695         * lib/fstatat.c: Likewise.
56696         * lib/fstrcmp.c: Likewise.
56697         * lib/fstrcmp.h: Likewise.
56698         * lib/fsusage.c: Likewise.
56699         * lib/fsusage.h: Likewise.
56700         * lib/ftell.c: Likewise.
56701         * lib/ftello.c: Likewise.
56702         * lib/fts-cycle.c: Likewise.
56703         * lib/fts.c: Likewise.
56704         * lib/fts_.h: Likewise.
56705         * lib/full-read.c: Likewise.
56706         * lib/full-read.h: Likewise.
56707         * lib/full-write.c: Likewise.
56708         * lib/full-write.h: Likewise.
56709         * lib/fwritable.c: Likewise.
56710         * lib/fwritable.h: Likewise.
56711         * lib/fwriteerror.c: Likewise.
56712         * lib/fwriteerror.h: Likewise.
56713         * lib/fwriting.c: Likewise.
56714         * lib/fwriting.h: Likewise.
56715         * lib/gcd.c: Likewise.
56716         * lib/gcd.h: Likewise.
56717         * lib/getcwd.c: Likewise.
56718         * lib/getdate.h: Likewise.
56719         * lib/getdate.y: Likewise.
56720         * lib/getdomainname.c: Likewise.
56721         * lib/getdomainname.h: Likewise.
56722         * lib/getgroups.c: Likewise.
56723         * lib/gethostname.c: Likewise.
56724         * lib/gethrxtime.c: Likewise.
56725         * lib/gethrxtime.h: Likewise.
56726         * lib/getloadavg.c: Likewise.
56727         * lib/getndelim2.c: Likewise.
56728         * lib/getndelim2.h: Likewise.
56729         * lib/getnline.c: Likewise.
56730         * lib/getnline.h: Likewise.
56731         * lib/getopt.c: Likewise.
56732         * lib/getopt.in.h: Likewise.
56733         * lib/getopt1.c: Likewise.
56734         * lib/getopt_int.h: Likewise.
56735         * lib/getpagesize.h: Likewise.
56736         * lib/getsubopt.c: Likewise.
56737         * lib/gettime.c: Likewise.
56738         * lib/getugroups.c: Likewise.
56739         * lib/getugroups.h: Likewise.
56740         * lib/getusershell.c: Likewise.
56741         * lib/gl_anyavltree_list1.h: Likewise.
56742         * lib/gl_anyavltree_list2.h: Likewise.
56743         * lib/gl_anyhash_list1.h: Likewise.
56744         * lib/gl_anyhash_list2.h: Likewise.
56745         * lib/gl_anylinked_list1.h: Likewise.
56746         * lib/gl_anylinked_list2.h: Likewise.
56747         * lib/gl_anyrbtree_list1.h: Likewise.
56748         * lib/gl_anyrbtree_list2.h: Likewise.
56749         * lib/gl_anytree_list1.h: Likewise.
56750         * lib/gl_anytree_list2.h: Likewise.
56751         * lib/gl_anytree_oset.h: Likewise.
56752         * lib/gl_anytreehash_list1.h: Likewise.
56753         * lib/gl_anytreehash_list2.h: Likewise.
56754         * lib/gl_array_list.c: Likewise.
56755         * lib/gl_array_list.h: Likewise.
56756         * lib/gl_array_oset.c: Likewise.
56757         * lib/gl_array_oset.h: Likewise.
56758         * lib/gl_avltree_list.c: Likewise.
56759         * lib/gl_avltree_list.h: Likewise.
56760         * lib/gl_avltree_oset.c: Likewise.
56761         * lib/gl_avltree_oset.h: Likewise.
56762         * lib/gl_avltreehash_list.c: Likewise.
56763         * lib/gl_avltreehash_list.h: Likewise.
56764         * lib/gl_carray_list.c: Likewise.
56765         * lib/gl_carray_list.h: Likewise.
56766         * lib/gl_linked_list.c: Likewise.
56767         * lib/gl_linked_list.h: Likewise.
56768         * lib/gl_linkedhash_list.c: Likewise.
56769         * lib/gl_linkedhash_list.h: Likewise.
56770         * lib/gl_list.c: Likewise.
56771         * lib/gl_list.h: Likewise.
56772         * lib/gl_oset.c: Likewise.
56773         * lib/gl_oset.h: Likewise.
56774         * lib/gl_rbtree_list.c: Likewise.
56775         * lib/gl_rbtree_list.h: Likewise.
56776         * lib/gl_rbtree_oset.c: Likewise.
56777         * lib/gl_rbtree_oset.h: Likewise.
56778         * lib/gl_rbtreehash_list.c: Likewise.
56779         * lib/gl_rbtreehash_list.h: Likewise.
56780         * lib/gl_sublist.c: Likewise.
56781         * lib/gl_sublist.h: Likewise.
56782         * lib/group-member.c: Likewise.
56783         * lib/group-member.h: Likewise.
56784         * lib/hard-locale.c: Likewise.
56785         * lib/hard-locale.h: Likewise.
56786         * lib/hash-pjw.c: Likewise.
56787         * lib/hash-pjw.h: Likewise.
56788         * lib/hash-triple.c: Likewise.
56789         * lib/hash.c: Likewise.
56790         * lib/hash.h: Likewise.
56791         * lib/human.c: Likewise.
56792         * lib/human.h: Likewise.
56793         * lib/i-ring.c: Likewise.
56794         * lib/i-ring.h: Likewise.
56795         * lib/idcache.c: Likewise.
56796         * lib/imaxabs.c: Likewise.
56797         * lib/imaxdiv.c: Likewise.
56798         * lib/inet_pton.c: Likewise.
56799         * lib/inet_pton.h: Likewise.
56800         * lib/intprops.h: Likewise.
56801         * lib/inttostr.c: Likewise.
56802         * lib/inttostr.h: Likewise.
56803         * lib/inttypes.in.h: Likewise.
56804         * lib/isapipe.c: Likewise.
56805         * lib/isdir.c: Likewise.
56806         * lib/isnan.c: Likewise.
56807         * lib/isnan.h: Likewise.
56808         * lib/isnanf.c: Likewise.
56809         * lib/isnanf.h: Likewise.
56810         * lib/isnanl-nolibm.h: Likewise.
56811         * lib/isnanl.c: Likewise.
56812         * lib/isnanl.h: Likewise.
56813         * lib/javacomp.c: Likewise.
56814         * lib/javacomp.h: Likewise.
56815         * lib/javaexec.c: Likewise.
56816         * lib/javaexec.h: Likewise.
56817         * lib/javaversion.c: Likewise.
56818         * lib/javaversion.h: Likewise.
56819         * lib/javaversion.java: Likewise.
56820         * lib/lbrkprop.h: Likewise.
56821         * lib/lchmod.h: Likewise.
56822         * lib/lchown.c: Likewise.
56823         * lib/ldexpl.c: Likewise.
56824         * lib/linebreak.c: Likewise.
56825         * lib/linebreak.h: Likewise.
56826         * lib/linebuffer.c: Likewise.
56827         * lib/linebuffer.h: Likewise.
56828         * lib/locale.in.h: Likewise.
56829         * lib/logl.c: Likewise.
56830         * lib/long-options.c: Likewise.
56831         * lib/long-options.h: Likewise.
56832         * lib/lstat.c: Likewise.
56833         * lib/lstat.h: Likewise.
56834         * lib/math.in.h: Likewise.
56835         * lib/mbchar.c: Likewise.
56836         * lib/mbchar.h: Likewise.
56837         * lib/mbfile.h: Likewise.
56838         * lib/mbiter.h: Likewise.
56839         * lib/mbscasecmp.c: Likewise.
56840         * lib/mbscasestr.c: Likewise.
56841         * lib/mbschr.c: Likewise.
56842         * lib/mbscspn.c: Likewise.
56843         * lib/mbslen.c: Likewise.
56844         * lib/mbsncasecmp.c: Likewise.
56845         * lib/mbsnlen.c: Likewise.
56846         * lib/mbspbrk.c: Likewise.
56847         * lib/mbspcasecmp.c: Likewise.
56848         * lib/mbsrchr.c: Likewise.
56849         * lib/mbssep.c: Likewise.
56850         * lib/mbsspn.c: Likewise.
56851         * lib/mbsstr.c: Likewise.
56852         * lib/mbstok_r.c: Likewise.
56853         * lib/mbswidth.c: Likewise.
56854         * lib/mbswidth.h: Likewise.
56855         * lib/mbuiter.h: Likewise.
56856         * lib/memcasecmp.c: Likewise.
56857         * lib/memcasecmp.h: Likewise.
56858         * lib/memchr.c: Likewise.
56859         * lib/memcmp.c: Likewise.
56860         * lib/memcoll.c: Likewise.
56861         * lib/memcoll.h: Likewise.
56862         * lib/memcpy.c: Likewise.
56863         * lib/memrchr.c: Likewise.
56864         * lib/mkancesdirs.c: Likewise.
56865         * lib/mkdir-p.c: Likewise.
56866         * lib/mkdir-p.h: Likewise.
56867         * lib/mkdir.c: Likewise.
56868         * lib/mkdirat.c: Likewise.
56869         * lib/mkdtemp.c: Likewise.
56870         * lib/mkstemp-safer.c: Likewise.
56871         * lib/mkstemp.c: Likewise.
56872         * lib/modechange.c: Likewise.
56873         * lib/modechange.h: Likewise.
56874         * lib/mountlist.c: Likewise.
56875         * lib/mountlist.h: Likewise.
56876         * lib/mpsort.c: Likewise.
56877         * lib/nanosleep.c: Likewise.
56878         * lib/obstack.c: Likewise.
56879         * lib/obstack.h: Likewise.
56880         * lib/open-safer.c: Likewise.
56881         * lib/open.c: Likewise.
56882         * lib/openat-die.c: Likewise.
56883         * lib/openat-priv.h: Likewise.
56884         * lib/openat-proc.c: Likewise.
56885         * lib/openat.c: Likewise.
56886         * lib/openat.h: Likewise.
56887         * lib/pagealign_alloc.c: Likewise.
56888         * lib/pagealign_alloc.h: Likewise.
56889         * lib/physmem.c: Likewise.
56890         * lib/physmem.h: Likewise.
56891         * lib/pipe-safer.c: Likewise.
56892         * lib/pipe.c: Likewise.
56893         * lib/pipe.h: Likewise.
56894         * lib/posixtm.c: Likewise.
56895         * lib/posixtm.h: Likewise.
56896         * lib/posixver.c: Likewise.
56897         * lib/printf-frexp.c: Likewise.
56898         * lib/printf-frexp.h: Likewise.
56899         * lib/printf-frexpl.c: Likewise.
56900         * lib/printf-frexpl.h: Likewise.
56901         * lib/printf.c: Likewise.
56902         * lib/progname.c: Likewise.
56903         * lib/progname.h: Likewise.
56904         * lib/progreloc.c: Likewise.
56905         * lib/putenv.c: Likewise.
56906         * lib/quote.c: Likewise.
56907         * lib/quote.h: Likewise.
56908         * lib/quotearg.c: Likewise.
56909         * lib/quotearg.h: Likewise.
56910         * lib/raise.c: Likewise.
56911         * lib/readline.c: Likewise.
56912         * lib/readline.h: Likewise.
56913         * lib/readlink.c: Likewise.
56914         * lib/readtokens.c: Likewise.
56915         * lib/readtokens.h: Likewise.
56916         * lib/readtokens0.c: Likewise.
56917         * lib/readtokens0.h: Likewise.
56918         * lib/readutmp.c: Likewise.
56919         * lib/readutmp.h: Likewise.
56920         * lib/realloc.c: Likewise.
56921         * lib/relocwrapper.c: Likewise.
56922         * lib/rename-dest-slash.c: Likewise.
56923         * lib/rename.c: Likewise.
56924         * lib/rmdir.c: Likewise.
56925         * lib/rpmatch.c: Likewise.
56926         * lib/safe-read.c: Likewise.
56927         * lib/safe-read.h: Likewise.
56928         * lib/safe-write.c: Likewise.
56929         * lib/safe-write.h: Likewise.
56930         * lib/same-inode.h: Likewise.
56931         * lib/same.c: Likewise.
56932         * lib/same.h: Likewise.
56933         * lib/save-cwd.c: Likewise.
56934         * lib/save-cwd.h: Likewise.
56935         * lib/savedir.c: Likewise.
56936         * lib/savedir.h: Likewise.
56937         * lib/savewd.c: Likewise.
56938         * lib/savewd.h: Likewise.
56939         * lib/search.in.h: Likewise.
56940         * lib/setenv.c: Likewise.
56941         * lib/setenv.h: Likewise.
56942         * lib/settime.c: Likewise.
56943         * lib/sh-quote.c: Likewise.
56944         * lib/sh-quote.h: Likewise.
56945         * lib/sig2str.c: Likewise.
56946         * lib/sig2str.h: Likewise.
56947         * lib/signal.in.h: Likewise.
56948         * lib/signbitd.c: Likewise.
56949         * lib/signbitf.c: Likewise.
56950         * lib/signbitl.c: Likewise.
56951         * lib/sigprocmask.c: Likewise.
56952         * lib/sincosl.c: Likewise.
56953         * lib/sleep.c: Likewise.
56954         * lib/sprintf.c: Likewise.
56955         * lib/sqrtl.c: Likewise.
56956         * lib/stat-time.h: Likewise.
56957         * lib/stdio--.h: Likewise.
56958         * lib/stdio-safer.h: Likewise.
56959         * lib/stdlib--.h: Likewise.
56960         * lib/stdlib-safer.h: Likewise.
56961         * lib/stdlib.in.h: Likewise.
56962         * lib/stpcpy.c: Likewise.
56963         * lib/stpncpy.c: Likewise.
56964         * lib/strchrnul.c: Likewise.
56965         * lib/strcspn.c: Likewise.
56966         * lib/strerror.c: Likewise.
56967         * lib/strftime.c: Likewise.
56968         * lib/strftime.h: Likewise.
56969         * lib/striconveh.c: Likewise.
56970         * lib/striconveh.h: Likewise.
56971         * lib/striconveha.c: Likewise.
56972         * lib/striconveha.h: Likewise.
56973         * lib/stripslash.c: Likewise.
56974         * lib/strnlen1.c: Likewise.
56975         * lib/strnlen1.h: Likewise.
56976         * lib/strtod.c: Likewise.
56977         * lib/strtoimax.c: Likewise.
56978         * lib/strtok_r.c: Likewise.
56979         * lib/strtol.c: Likewise.
56980         * lib/strtoll.c: Likewise.
56981         * lib/strtoul.c: Likewise.
56982         * lib/strtoull.c: Likewise.
56983         * lib/sysexits.in.h: Likewise.
56984         * lib/tempname.c: Likewise.
56985         * lib/tempname.h: Likewise.
56986         * lib/timespec.h: Likewise.
56987         * lib/tls.c: Likewise.
56988         * lib/tls.h: Likewise.
56989         * lib/tmpdir.c: Likewise.
56990         * lib/tmpdir.h: Likewise.
56991         * lib/tmpfile-safer.c: Likewise.
56992         * lib/tmpfile.c: Likewise.
56993         * lib/trigl.c: Likewise.
56994         * lib/trigl.h: Likewise.
56995         * lib/trim.c: Likewise.
56996         * lib/trim.h: Likewise.
56997         * lib/trunc.c: Likewise.
56998         * lib/truncf.c: Likewise.
56999         * lib/truncl.c: Likewise.
57000         * lib/tsearch.c: Likewise.
57001         * lib/unicodeio.c: Likewise.
57002         * lib/unicodeio.h: Likewise.
57003         * lib/unistd--.h: Likewise.
57004         * lib/unistd-safer.h: Likewise.
57005         * lib/unistdio/ulc-fprintf.c: Likewise.
57006         * lib/unistdio/ulc-vfprintf.c: Likewise.
57007         * lib/unlinkdir.c: Likewise.
57008         * lib/unlinkdir.h: Likewise.
57009         * lib/unlocked-io.h: Likewise.
57010         * lib/unsetenv.c: Likewise.
57011         * lib/userspec.c: Likewise.
57012         * lib/utime.c: Likewise.
57013         * lib/utimecmp.c: Likewise.
57014         * lib/utimecmp.h: Likewise.
57015         * lib/utimens.c: Likewise.
57016         * lib/verify.h: Likewise.
57017         * lib/verror.c: Likewise.
57018         * lib/verror.h: Likewise.
57019         * lib/version-etc-fsf.c: Likewise.
57020         * lib/version-etc.c: Likewise.
57021         * lib/version-etc.h: Likewise.
57022         * lib/vfprintf.c: Likewise.
57023         * lib/vprintf.c: Likewise.
57024         * lib/vsprintf.c: Likewise.
57025         * lib/w32spawn.h: Likewise.
57026         * lib/wait-process.c: Likewise.
57027         * lib/wait-process.h: Likewise.
57028         * lib/wcwidth.c: Likewise.
57029         * lib/write-any-file.c: Likewise.
57030         * lib/xalloc-die.c: Likewise.
57031         * lib/xalloc.h: Likewise.
57032         * lib/xasprintf.c: Likewise.
57033         * lib/xgetcwd.c: Likewise.
57034         * lib/xgetcwd.h: Likewise.
57035         * lib/xgetdomainname.c: Likewise.
57036         * lib/xgetdomainname.h: Likewise.
57037         * lib/xgethostname.c: Likewise.
57038         * lib/xmalloc.c: Likewise.
57039         * lib/xmalloca.c: Likewise.
57040         * lib/xmalloca.h: Likewise.
57041         * lib/xmemcoll.c: Likewise.
57042         * lib/xnanosleep.c: Likewise.
57043         * lib/xreadlink.c: Likewise.
57044         * lib/xreadlink.h: Likewise.
57045         * lib/xsetenv.c: Likewise.
57046         * lib/xsetenv.h: Likewise.
57047         * lib/xstriconv.c: Likewise.
57048         * lib/xstriconv.h: Likewise.
57049         * lib/xstrndup.c: Likewise.
57050         * lib/xstrndup.h: Likewise.
57051         * lib/xstrtod.c: Likewise.
57052         * lib/xstrtod.h: Likewise.
57053         * lib/xstrtol-error.c: Likewise.
57054         * lib/xstrtol.c: Likewise.
57055         * lib/xstrtol.h: Likewise.
57056         * lib/xtime.h: Likewise.
57057         * lib/xvasprintf.c: Likewise.
57058         * lib/xvasprintf.h: Likewise.
57059         * lib/yesno.c: Likewise.
57060         * lib/yesno.h: Likewise.
57061         * posix-modules: Likewise.
57062         * tests/test-alloca-opt.c: Likewise.
57063         * tests/test-arcfour.c: Likewise.
57064         * tests/test-arctwo.c: Likewise.
57065         * tests/test-argmatch.c: Likewise.
57066         * tests/test-argp-2.sh: Likewise.
57067         * tests/test-argp.c: Likewise.
57068         * tests/test-arpa_inet.c: Likewise.
57069         * tests/test-array_list.c: Likewise.
57070         * tests/test-array_oset.c: Likewise.
57071         * tests/test-atexit.c: Likewise.
57072         * tests/test-avltree_list.c: Likewise.
57073         * tests/test-avltree_oset.c: Likewise.
57074         * tests/test-avltreehash_list.c: Likewise.
57075         * tests/test-base64.c: Likewise.
57076         * tests/test-binary-io.c: Likewise.
57077         * tests/test-byteswap.c: Likewise.
57078         * tests/test-c-ctype.c: Likewise.
57079         * tests/test-c-strcasecmp.c: Likewise.
57080         * tests/test-c-strcasestr.c: Likewise.
57081         * tests/test-c-strncasecmp.c: Likewise.
57082         * tests/test-c-strstr.c: Likewise.
57083         * tests/test-canonicalize-lgpl.c: Likewise.
57084         * tests/test-canonicalize.c: Likewise.
57085         * tests/test-carray_list.c: Likewise.
57086         * tests/test-ceilf.c: Likewise.
57087         * tests/test-ceill.c: Likewise.
57088         * tests/test-count-one-bits.c: Likewise.
57089         * tests/test-crc.c: Likewise.
57090         * tests/test-dirname.c: Likewise.
57091         * tests/test-fbufmode.c: Likewise.
57092         * tests/test-fcntl.c: Likewise.
57093         * tests/test-fflush.c: Likewise.
57094         * tests/test-floorf.c: Likewise.
57095         * tests/test-floorl.c: Likewise.
57096         * tests/test-fopen.c: Likewise.
57097         * tests/test-fprintf-posix.c: Likewise.
57098         * tests/test-fprintf-posix.h: Likewise.
57099         * tests/test-fpurge.c: Likewise.
57100         * tests/test-freadable.c: Likewise.
57101         * tests/test-freadahead.c: Likewise.
57102         * tests/test-freading.c: Likewise.
57103         * tests/test-freopen.c: Likewise.
57104         * tests/test-frexp.c: Likewise.
57105         * tests/test-frexpl.c: Likewise.
57106         * tests/test-fseek.c: Likewise.
57107         * tests/test-fseeko.c: Likewise.
57108         * tests/test-fseterr.c: Likewise.
57109         * tests/test-fstrcmp.c: Likewise.
57110         * tests/test-ftell.c: Likewise.
57111         * tests/test-ftello.c: Likewise.
57112         * tests/test-fwritable.c: Likewise.
57113         * tests/test-fwriting.c: Likewise.
57114         * tests/test-getaddrinfo.c: Likewise.
57115         * tests/test-getpass.c: Likewise.
57116         * tests/test-gettimeofday.c: Likewise.
57117         * tests/test-hmac-md5.c: Likewise.
57118         * tests/test-hmac-sha1.c: Likewise.
57119         * tests/test-iconv.c: Likewise.
57120         * tests/test-iconvme.c: Likewise.
57121         * tests/test-inttypes.c: Likewise.
57122         * tests/test-isnan.c: Likewise.
57123         * tests/test-isnanf.c: Likewise.
57124         * tests/test-isnanl-nolibm.c: Likewise.
57125         * tests/test-isnanl.c: Likewise.
57126         * tests/test-isnanl.h: Likewise.
57127         * tests/test-ldexpl.c: Likewise.
57128         * tests/test-linked_list.c: Likewise.
57129         * tests/test-linkedhash_list.c: Likewise.
57130         * tests/test-locale.c: Likewise.
57131         * tests/test-localename.c: Likewise.
57132         * tests/test-lock.c: Likewise.
57133         * tests/test-lseek.c: Likewise.
57134         * tests/test-malloca.c: Likewise.
57135         * tests/test-math.c: Likewise.
57136         * tests/test-mbscasecmp.c: Likewise.
57137         * tests/test-mbscasestr1.c: Likewise.
57138         * tests/test-mbscasestr2.c: Likewise.
57139         * tests/test-mbscasestr3.c: Likewise.
57140         * tests/test-mbscasestr4.c: Likewise.
57141         * tests/test-mbschr.c: Likewise.
57142         * tests/test-mbscspn.c: Likewise.
57143         * tests/test-mbsncasecmp.c: Likewise.
57144         * tests/test-mbspbrk.c: Likewise.
57145         * tests/test-mbspcasecmp.c: Likewise.
57146         * tests/test-mbsrchr.c: Likewise.
57147         * tests/test-mbsspn.c: Likewise.
57148         * tests/test-mbsstr1.c: Likewise.
57149         * tests/test-mbsstr2.c: Likewise.
57150         * tests/test-mbsstr3.c: Likewise.
57151         * tests/test-md5.c: Likewise.
57152         * tests/test-memmem.c: Likewise.
57153         * tests/test-netinet_in.c: Likewise.
57154         * tests/test-open.c: Likewise.
57155         * tests/test-printf-frexp.c: Likewise.
57156         * tests/test-printf-frexpl.c: Likewise.
57157         * tests/test-printf-posix.c: Likewise.
57158         * tests/test-printf-posix.h: Likewise.
57159         * tests/test-rbtree_list.c: Likewise.
57160         * tests/test-rbtree_oset.c: Likewise.
57161         * tests/test-rbtreehash_list.c: Likewise.
57162         * tests/test-read-file.c: Likewise.
57163         * tests/test-rijndael.c: Likewise.
57164         * tests/test-search.c: Likewise.
57165         * tests/test-signbit.c: Likewise.
57166         * tests/test-sleep.c: Likewise.
57167         * tests/test-snprintf-posix.c: Likewise.
57168         * tests/test-snprintf-posix.h: Likewise.
57169         * tests/test-snprintf.c: Likewise.
57170         * tests/test-sprintf-posix.c: Likewise.
57171         * tests/test-sprintf-posix.h: Likewise.
57172         * tests/test-stat-time.c: Likewise.
57173         * tests/test-stdbool.c: Likewise.
57174         * tests/test-stdint.c: Likewise.
57175         * tests/test-stdio.c: Likewise.
57176         * tests/test-stdlib.c: Likewise.
57177         * tests/test-stpncpy.c: Likewise.
57178         * tests/test-strcasestr.c: Likewise.
57179         * tests/test-striconv.c: Likewise.
57180         * tests/test-striconveh.c: Likewise.
57181         * tests/test-striconveha.c: Likewise.
57182         * tests/test-string.c: Likewise.
57183         * tests/test-sys_select.c: Likewise.
57184         * tests/test-sys_socket.c: Likewise.
57185         * tests/test-sys_stat.c: Likewise.
57186         * tests/test-sys_time.c: Likewise.
57187         * tests/test-sysexits.c: Likewise.
57188         * tests/test-time.c: Likewise.
57189         * tests/test-tls.c: Likewise.
57190         * tests/test-trunc.c: Likewise.
57191         * tests/test-truncf.c: Likewise.
57192         * tests/test-truncl.c: Likewise.
57193         * tests/test-unistd.c: Likewise.
57194         * tests/test-vasnprintf-posix.c: Likewise.
57195         * tests/test-vasnprintf-posix2.c: Likewise.
57196         * tests/test-vasnprintf.c: Likewise.
57197         * tests/test-vasprintf-posix.c: Likewise.
57198         * tests/test-vasprintf.c: Likewise.
57199         * tests/test-verify.c: Likewise.
57200         * tests/test-vfprintf-posix.c: Likewise.
57201         * tests/test-vprintf-posix.c: Likewise.
57202         * tests/test-vsnprintf-posix.c: Likewise.
57203         * tests/test-vsnprintf.c: Likewise.
57204         * tests/test-vsprintf-posix.c: Likewise.
57205         * tests/test-wchar.c: Likewise.
57206         * tests/test-wctype.c: Likewise.
57207         * tests/test-wcwidth.c: Likewise.
57208         * tests/test-xstrtol.c: Likewise.
57209         * tests/test-xvasprintf.c: Likewise.
57210         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57211         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57212         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57213         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57214         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57215         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57216         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57217         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57218         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57219         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57220         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57221         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57222         * tests/uniname/test-uninames.c: Likewise.
57223         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57224         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57225         * tests/unistdio/test-u16-printf1.h: Likewise.
57226         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57227         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57228         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57229         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57230         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57231         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57232         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57233         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57234         * tests/unistdio/test-u32-printf1.h: Likewise.
57235         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57236         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57237         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57238         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57239         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57240         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57241         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57242         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57243         * tests/unistdio/test-u8-printf1.h: Likewise.
57244         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57245         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57246         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57247         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57248         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57249         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57250         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57251         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57252         * tests/unistdio/test-ulc-printf1.h: Likewise.
57253         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57254         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57255         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57256         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57257         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57258         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57259         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57260         * tests/uniwidth/test-u16-width.c: Likewise.
57261         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57262         * tests/uniwidth/test-u32-width.c: Likewise.
57263         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57264         * tests/uniwidth/test-u8-width.c: Likewise.
57265         * tests/uniwidth/test-uc_width.c: Likewise.
57266         * config/srclist-update: Likewise.
57267         (fixlicense): Update to GPLv3+.
57268
57269         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57270         * tests/test-tsearch.c: Change copyright notice.
57271
57272         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57273         * lib/c-strcaseeq.h: Change copyright notice.
57274         * lib/streq.h: Likewise.
57275         * lib/uniconv.h: Likewise.
57276         * lib/uniconv/u-conv-from-enc.h: Likewise.
57277         * lib/uniconv/u-conv-to-enc.h: Likewise.
57278         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57279         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57280         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57281         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57282         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57283         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57284         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57285         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57286         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57287         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57288         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57289         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57290         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57291         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57292         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57293         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57294         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57295         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57296         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57297         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57298         * lib/uniname.h: Likewise.
57299         * lib/uniname/uniname.c: Likewise.
57300         * lib/unistdio.h: Likewise.
57301         * lib/unistdio/u-asnprintf.h: Likewise.
57302         * lib/unistdio/u-asprintf.h: Likewise.
57303         * lib/unistdio/u-printf-args.c: Likewise.
57304         * lib/unistdio/u-printf-args.h: Likewise.
57305         * lib/unistdio/u-printf-parse.h: Likewise.
57306         * lib/unistdio/u-snprintf.h: Likewise.
57307         * lib/unistdio/u-sprintf.h: Likewise.
57308         * lib/unistdio/u-vasprintf.h: Likewise.
57309         * lib/unistdio/u-vsnprintf.h: Likewise.
57310         * lib/unistdio/u-vsprintf.h: Likewise.
57311         * lib/unistdio/u16-asnprintf.c: Likewise.
57312         * lib/unistdio/u16-asprintf.c: Likewise.
57313         * lib/unistdio/u16-printf-parse.c: Likewise.
57314         * lib/unistdio/u16-snprintf.c: Likewise.
57315         * lib/unistdio/u16-sprintf.c: Likewise.
57316         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57317         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57318         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57319         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57320         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57321         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57322         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57323         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57324         * lib/unistdio/u16-vasnprintf.c: Likewise.
57325         * lib/unistdio/u16-vasprintf.c: Likewise.
57326         * lib/unistdio/u16-vsnprintf.c: Likewise.
57327         * lib/unistdio/u16-vsprintf.c: Likewise.
57328         * lib/unistdio/u32-asnprintf.c: Likewise.
57329         * lib/unistdio/u32-asprintf.c: Likewise.
57330         * lib/unistdio/u32-printf-parse.c: Likewise.
57331         * lib/unistdio/u32-snprintf.c: Likewise.
57332         * lib/unistdio/u32-sprintf.c: Likewise.
57333         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57334         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57335         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57336         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57337         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57338         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57339         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57340         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57341         * lib/unistdio/u32-vasnprintf.c: Likewise.
57342         * lib/unistdio/u32-vasprintf.c: Likewise.
57343         * lib/unistdio/u32-vsnprintf.c: Likewise.
57344         * lib/unistdio/u32-vsprintf.c: Likewise.
57345         * lib/unistdio/u8-asnprintf.c: Likewise.
57346         * lib/unistdio/u8-asprintf.c: Likewise.
57347         * lib/unistdio/u8-printf-parse.c: Likewise.
57348         * lib/unistdio/u8-snprintf.c: Likewise.
57349         * lib/unistdio/u8-sprintf.c: Likewise.
57350         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57351         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57352         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57353         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57354         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57355         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57356         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57357         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57358         * lib/unistdio/u8-vasnprintf.c: Likewise.
57359         * lib/unistdio/u8-vasprintf.c: Likewise.
57360         * lib/unistdio/u8-vsnprintf.c: Likewise.
57361         * lib/unistdio/u8-vsprintf.c: Likewise.
57362         * lib/unistdio/ulc-asnprintf.c: Likewise.
57363         * lib/unistdio/ulc-asprintf.c: Likewise.
57364         * lib/unistdio/ulc-printf-parse.c: Likewise.
57365         * lib/unistdio/ulc-snprintf.c: Likewise.
57366         * lib/unistdio/ulc-sprintf.c: Likewise.
57367         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57368         * lib/unistdio/ulc-vasprintf.c: Likewise.
57369         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57370         * lib/unistdio/ulc-vsprintf.c: Likewise.
57371         * lib/unistr.h: Likewise.
57372         * lib/unistr/u-cpy-alloc.h: Likewise.
57373         * lib/unistr/u-cpy.h: Likewise.
57374         * lib/unistr/u-endswith.h: Likewise.
57375         * lib/unistr/u-move.h: Likewise.
57376         * lib/unistr/u-set.h: Likewise.
57377         * lib/unistr/u-startswith.h: Likewise.
57378         * lib/unistr/u-stpcpy.h: Likewise.
57379         * lib/unistr/u-stpncpy.h: Likewise.
57380         * lib/unistr/u-strcat.h: Likewise.
57381         * lib/unistr/u-strcpy.h: Likewise.
57382         * lib/unistr/u-strcspn.h: Likewise.
57383         * lib/unistr/u-strdup.h: Likewise.
57384         * lib/unistr/u-strlen.h: Likewise.
57385         * lib/unistr/u-strncat.h: Likewise.
57386         * lib/unistr/u-strncpy.h: Likewise.
57387         * lib/unistr/u-strnlen.h: Likewise.
57388         * lib/unistr/u-strpbrk.h: Likewise.
57389         * lib/unistr/u-strspn.h: Likewise.
57390         * lib/unistr/u-strstr.h: Likewise.
57391         * lib/unistr/u-strtok.h: Likewise.
57392         * lib/unistr/u16-check.c: Likewise.
57393         * lib/unistr/u16-chr.c: Likewise.
57394         * lib/unistr/u16-cmp.c: Likewise.
57395         * lib/unistr/u16-cpy-alloc.c: Likewise.
57396         * lib/unistr/u16-cpy.c: Likewise.
57397         * lib/unistr/u16-endswith.c: Likewise.
57398         * lib/unistr/u16-mblen.c: Likewise.
57399         * lib/unistr/u16-mbsnlen.c: Likewise.
57400         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57402         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57403         * lib/unistr/u16-mbtouc.c: Likewise.
57404         * lib/unistr/u16-mbtoucr.c: Likewise.
57405         * lib/unistr/u16-move.c: Likewise.
57406         * lib/unistr/u16-next.c: Likewise.
57407         * lib/unistr/u16-prev.c: Likewise.
57408         * lib/unistr/u16-set.c: Likewise.
57409         * lib/unistr/u16-startswith.c: Likewise.
57410         * lib/unistr/u16-stpcpy.c: Likewise.
57411         * lib/unistr/u16-stpncpy.c: Likewise.
57412         * lib/unistr/u16-strcat.c: Likewise.
57413         * lib/unistr/u16-strchr.c: Likewise.
57414         * lib/unistr/u16-strcmp.c: Likewise.
57415         * lib/unistr/u16-strcpy.c: Likewise.
57416         * lib/unistr/u16-strcspn.c: Likewise.
57417         * lib/unistr/u16-strdup.c: Likewise.
57418         * lib/unistr/u16-strlen.c: Likewise.
57419         * lib/unistr/u16-strmblen.c: Likewise.
57420         * lib/unistr/u16-strmbtouc.c: Likewise.
57421         * lib/unistr/u16-strncat.c: Likewise.
57422         * lib/unistr/u16-strncmp.c: Likewise.
57423         * lib/unistr/u16-strncpy.c: Likewise.
57424         * lib/unistr/u16-strnlen.c: Likewise.
57425         * lib/unistr/u16-strpbrk.c: Likewise.
57426         * lib/unistr/u16-strrchr.c: Likewise.
57427         * lib/unistr/u16-strspn.c: Likewise.
57428         * lib/unistr/u16-strstr.c: Likewise.
57429         * lib/unistr/u16-strtok.c: Likewise.
57430         * lib/unistr/u16-to-u32.c: Likewise.
57431         * lib/unistr/u16-to-u8.c: Likewise.
57432         * lib/unistr/u16-uctomb-aux.c: Likewise.
57433         * lib/unistr/u16-uctomb.c: Likewise.
57434         * lib/unistr/u32-check.c: Likewise.
57435         * lib/unistr/u32-chr.c: Likewise.
57436         * lib/unistr/u32-cmp.c: Likewise.
57437         * lib/unistr/u32-cpy-alloc.c: Likewise.
57438         * lib/unistr/u32-cpy.c: Likewise.
57439         * lib/unistr/u32-endswith.c: Likewise.
57440         * lib/unistr/u32-mblen.c: Likewise.
57441         * lib/unistr/u32-mbsnlen.c: Likewise.
57442         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57443         * lib/unistr/u32-mbtouc.c: Likewise.
57444         * lib/unistr/u32-mbtoucr.c: Likewise.
57445         * lib/unistr/u32-move.c: Likewise.
57446         * lib/unistr/u32-next.c: Likewise.
57447         * lib/unistr/u32-prev.c: Likewise.
57448         * lib/unistr/u32-set.c: Likewise.
57449         * lib/unistr/u32-startswith.c: Likewise.
57450         * lib/unistr/u32-stpcpy.c: Likewise.
57451         * lib/unistr/u32-stpncpy.c: Likewise.
57452         * lib/unistr/u32-strcat.c: Likewise.
57453         * lib/unistr/u32-strchr.c: Likewise.
57454         * lib/unistr/u32-strcmp.c: Likewise.
57455         * lib/unistr/u32-strcpy.c: Likewise.
57456         * lib/unistr/u32-strcspn.c: Likewise.
57457         * lib/unistr/u32-strdup.c: Likewise.
57458         * lib/unistr/u32-strlen.c: Likewise.
57459         * lib/unistr/u32-strmblen.c: Likewise.
57460         * lib/unistr/u32-strmbtouc.c: Likewise.
57461         * lib/unistr/u32-strncat.c: Likewise.
57462         * lib/unistr/u32-strncmp.c: Likewise.
57463         * lib/unistr/u32-strncpy.c: Likewise.
57464         * lib/unistr/u32-strnlen.c: Likewise.
57465         * lib/unistr/u32-strpbrk.c: Likewise.
57466         * lib/unistr/u32-strrchr.c: Likewise.
57467         * lib/unistr/u32-strspn.c: Likewise.
57468         * lib/unistr/u32-strstr.c: Likewise.
57469         * lib/unistr/u32-strtok.c: Likewise.
57470         * lib/unistr/u32-to-u16.c: Likewise.
57471         * lib/unistr/u32-to-u8.c: Likewise.
57472         * lib/unistr/u32-uctomb.c: Likewise.
57473         * lib/unistr/u8-check.c: Likewise.
57474         * lib/unistr/u8-chr.c: Likewise.
57475         * lib/unistr/u8-cmp.c: Likewise.
57476         * lib/unistr/u8-cpy-alloc.c: Likewise.
57477         * lib/unistr/u8-cpy.c: Likewise.
57478         * lib/unistr/u8-endswith.c: Likewise.
57479         * lib/unistr/u8-mblen.c: Likewise.
57480         * lib/unistr/u8-mbsnlen.c: Likewise.
57481         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57483         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57484         * lib/unistr/u8-mbtouc.c: Likewise.
57485         * lib/unistr/u8-mbtoucr.c: Likewise.
57486         * lib/unistr/u8-move.c: Likewise.
57487         * lib/unistr/u8-next.c: Likewise.
57488         * lib/unistr/u8-prev.c: Likewise.
57489         * lib/unistr/u8-set.c: Likewise.
57490         * lib/unistr/u8-startswith.c: Likewise.
57491         * lib/unistr/u8-stpcpy.c: Likewise.
57492         * lib/unistr/u8-stpncpy.c: Likewise.
57493         * lib/unistr/u8-strcat.c: Likewise.
57494         * lib/unistr/u8-strchr.c: Likewise.
57495         * lib/unistr/u8-strcmp.c: Likewise.
57496         * lib/unistr/u8-strcpy.c: Likewise.
57497         * lib/unistr/u8-strcspn.c: Likewise.
57498         * lib/unistr/u8-strdup.c: Likewise.
57499         * lib/unistr/u8-strlen.c: Likewise.
57500         * lib/unistr/u8-strmblen.c: Likewise.
57501         * lib/unistr/u8-strmbtouc.c: Likewise.
57502         * lib/unistr/u8-strncat.c: Likewise.
57503         * lib/unistr/u8-strncmp.c: Likewise.
57504         * lib/unistr/u8-strncpy.c: Likewise.
57505         * lib/unistr/u8-strnlen.c: Likewise.
57506         * lib/unistr/u8-strpbrk.c: Likewise.
57507         * lib/unistr/u8-strrchr.c: Likewise.
57508         * lib/unistr/u8-strspn.c: Likewise.
57509         * lib/unistr/u8-strstr.c: Likewise.
57510         * lib/unistr/u8-strtok.c: Likewise.
57511         * lib/unistr/u8-to-u16.c: Likewise.
57512         * lib/unistr/u8-to-u32.c: Likewise.
57513         * lib/unistr/u8-uctomb-aux.c: Likewise.
57514         * lib/unistr/u8-uctomb.c: Likewise.
57515         * lib/unitypes.h: Likewise.
57516         * lib/uniwidth.h: Likewise.
57517         * lib/uniwidth/cjk.h: Likewise.
57518         * lib/uniwidth/u16-strwidth.c: Likewise.
57519         * lib/uniwidth/u16-width.c: Likewise.
57520         * lib/uniwidth/u32-strwidth.c: Likewise.
57521         * lib/uniwidth/u32-width.c: Likewise.
57522         * lib/uniwidth/u8-strwidth.c: Likewise.
57523         * lib/uniwidth/u8-width.c: Likewise.
57524         * lib/uniwidth/width.c: Likewise.
57525
57526 2007-10-07  Bruno Haible  <bruno@clisp.org>
57527
57528         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57529         The file is still under LGPL (see modules/inttypes).
57530
57531 2007-10-06  Bruno Haible  <bruno@clisp.org>
57532
57533         * modules/trunc (Dependencies): Add 'extensions'.
57534         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57535         Reported by Ben Pfaff <blp@gnu.org>.
57536
57537 2007-10-06  Bruno Haible  <bruno@clisp.org>
57538
57539         * modules/freopen-tests: New file.
57540         * tests/test-freopen.c: New file.
57541
57542         * modules/fopen-tests: New file.
57543         * tests/test-fopen.c: New file.
57544
57545         * modules/fopen: New file.
57546         * lib/fopen.c: New file.
57547         * m4/fopen.m4: New file.
57548         * modules/freopen: New file.
57549         * lib/freopen.c: New file.
57550         * m4/freopen.m4: New file.
57551         * lib/stdio.in.h (fopen, freopen): New declarations.
57552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57553         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57554         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57555         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57556         * doc/functions/fopen.texi: Mention the 'fopen' module.
57557         * doc/functions/freopen.texi: Mention the 'freopen' module.
57558
57559 2007-10-06  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/open-tests: New file.
57562         * tests/test-open.c: New file.
57563
57564         * modules/open: New file.
57565         * lib/open.c: New file.
57566         * m4/open.m4: New file.
57567         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57568         lib/open.c does.
57569         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57570         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57571         macros.
57572         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57573         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57574         REPLACE_OPEN.
57575         * doc/functions/open.texi: Mention the 'open' module.
57576
57577 2007-10-04  Bruno Haible  <bruno@clisp.org>
57578
57579         * modules/ceill-tests: New file.
57580         * tests/test-ceill.c: New file.
57581
57582         * modules/ceill: New file.
57583         * lib/ceill.c: Replace entire file.
57584         * m4/ceill.m4: New file.
57585         * lib/math.in.h (ceill): Replace declaration.
57586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57587         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57588         * doc/functions/ceill.texi: Mention the 'ceill' module.
57589         * modules/mathl (Files): Remove lib/ceill.c.
57590         (Depends-on): Add ceill.
57591
57592 2007-10-04  Bruno Haible  <bruno@clisp.org>
57593
57594         * modules/ceilf-tests: New file.
57595         * tests/test-ceilf.c: New file.
57596
57597         * modules/ceilf: New file.
57598         * lib/ceil.c: New file.
57599         * lib/ceilf.c: New file.
57600         * m4/ceilf.m4: New file.
57601         * lib/math.in.h (ceilf): New declaration.
57602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57603         HAVE_DECL_CEILF.
57604         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57605         HAVE_DECL_CEILF.
57606         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57607
57608 2007-10-04  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/floorl-tests: New file.
57611         * tests/test-floorl.c: New file.
57612
57613         * modules/floorl: New file.
57614         * lib/floorl.c: Replace entire file.
57615         * m4/floorl.m4: New file.
57616         * lib/math.in.h (floorl): Replace declaration.
57617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57618         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57619         * doc/functions/floorl.texi: Mention the 'floorl' module.
57620         * modules/mathl (Files): Remove lib/floorl.c.
57621         (Depends-on): Add floorl.
57622
57623 2007-10-04  Bruno Haible  <bruno@clisp.org>
57624
57625         * modules/floorf-tests: New file.
57626         * tests/test-floorf.c: New file.
57627
57628         * modules/floorf: New file.
57629         * lib/floor.c: New file.
57630         * lib/floorf.c: New file.
57631         * m4/floorf.m4: New file.
57632         * lib/math.in.h (floorf): New declaration.
57633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57634         HAVE_DECL_FLOORF.
57635         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57636         HAVE_DECL_FLOORF.
57637         * doc/functions/floorf.texi: Mention the 'floorf' module.
57638
57639 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57640             Bruno Haible  <bruno@clisp.org>
57641
57642         Advertise for the Git server instead of the CVS server.
57643         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57644         repository instead of the CVS one.
57645         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57646         about all VCS systems generically.
57647         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57648
57649 2007-10-04  Bruno Haible  <bruno@clisp.org>
57650
57651         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57652         means.
57653         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57654
57655 2007-10-04  Bruno Haible  <bruno@clisp.org>
57656
57657         * modules/truncl-tests: New file.
57658         * tests/test-truncl.c: New file.
57659
57660         * modules/truncl: New file.
57661         * lib/truncl.c: New file.
57662         * m4/truncl.m4: New file.
57663         * lib/math.in.h (truncl): New declaration.
57664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57665         HAVE_DECL_TRUNCL.
57666         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57667         HAVE_DECL_TRUNCL.
57668         * doc/functions/truncl.texi: Mention the 'truncl' module.
57669
57670 2007-10-04  Bruno Haible  <bruno@clisp.org>
57671
57672         * modules/truncf-tests: New file.
57673         * tests/test-truncf.c: New file.
57674
57675         * modules/truncf: New file.
57676         * lib/trunc.c: Make paramerizable through USE_* macros.
57677         * lib/truncf.c: New file.
57678         * m4/truncf.m4: New file.
57679         * lib/math.in.h (truncf): New declaration.
57680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57681         HAVE_DECL_TRUNCF.
57682         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57683         HAVE_DECL_TRUNCF.
57684         * doc/functions/truncf.texi: Mention the 'truncf' module.
57685
57686 2007-10-03  Bruno Haible  <bruno@clisp.org>
57687
57688         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57689         augmentation also for tests modules.
57690         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57691         * modules/atexit-tests (Makefile.am): Likewise.
57692         * modules/binary-io-tests (Makefile.am): Likewise.
57693         * modules/c-strcase-tests (Makefile.am): Likewise.
57694         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57695         * modules/canonicalize-tests (Makefile.am): Likewise.
57696         * modules/closein-tests (Makefile.am): Likewise.
57697         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57698         * modules/freadahead-tests (Makefile.am): Likewise.
57699         * modules/fseek-tests (Makefile.am): Likewise.
57700         * modules/fseeko-tests (Makefile.am): Likewise.
57701         * modules/ftell-tests (Makefile.am): Likewise.
57702         * modules/ftello-tests (Makefile.am): Likewise.
57703         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57704         * modules/isnanl-tests (Makefile.am): Likewise.
57705         * modules/lseek-tests (Makefile.am): Likewise.
57706         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57707         * modules/mbscasestr-tests (Makefile.am): Likewise.
57708         * modules/mbschr-tests (Makefile.am): Likewise.
57709         * modules/mbscspn-tests (Makefile.am): Likewise.
57710         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57711         * modules/mbspbrk-tests (Makefile.am): Likewise.
57712         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57713         * modules/mbsrchr-tests (Makefile.am): Likewise.
57714         * modules/mbsspn-tests (Makefile.am): Likewise.
57715         * modules/mbsstr-tests (Makefile.am): Likewise.
57716         * modules/printf-posix-tests (Makefile.am): Likewise.
57717         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57718         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57719         * modules/tsearch-tests (Makefile.am): Likewise.
57720         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57721         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57722         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57723         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57724         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57725         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57726         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57727         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57728         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57729         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57730         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57731         * modules/xstrtol-tests (Makefile.am): Likewise.
57732         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57733         * modules/yesno-tests (Makefile.am): Likewise.
57734
57735 2007-10-03  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/trunc-tests: New file.
57738         * tests/test-trunc.c: New file.
57739
57740         * modules/trunc: New file.
57741         * lib/trunc.c: New file.
57742         * m4/trunc.m4: New file.
57743         * lib/math.in.h (trunc): New declaration.
57744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57745         HAVE_DECL_TRUNC.
57746         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57747         HAVE_DECL_TRUNC.
57748         * doc/functions/trunc.texi: Mention the 'trunc' module.
57749
57750 2007-10-03  Bruno Haible  <bruno@clisp.org>
57751
57752         * tests/test-fpending.c: New file, mostly copied
57753         from coreutils/lib/t-fpending.c.
57754         * modules/fpending-tests: New file.
57755
57756 2007-10-03  Bruno Haible  <bruno@clisp.org>
57757
57758         Port the stdio extensions to QNX (untested).
57759         * lib/fseterr.c (fseterr): Add support for QNX.
57760         * lib/fbufmode.c (fbufmode): Likewise.
57761         * lib/freadable.c (freadable): Likewise.
57762         * lib/fwritable.c (fwritable): Likewise.
57763         * lib/freading.c (freading): Likewise.
57764         * lib/fwriting.c (fwriting): Likewise.
57765         * lib/freadahead.c (freadahed): Likewise.
57766         * lib/fpurge.c (fpurge): Likewise.
57767         * lib/fseeko.c (rpl_fseeko): Likewise.
57768
57769 2007-10-03  Bruno Haible  <bruno@clisp.org>
57770             Jim Meyering  <jim@meyering.net>
57771             Eric Blake  <ebb9@byu.net>
57772
57773         * doc/relocatable.texi: Use @command instead of @program.
57774
57775 2007-10-02  Jim Meyering  <jim@meyering.net>
57776
57777         Perform one more "_.h" -> ".in.h" substitution.
57778         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57779         instead of unistd_.h here, too.
57780
57781 2007-10-01  Bruno Haible  <bruno@clisp.org>
57782
57783         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57784         Needed for the alloca-opt module.
57785
57786 2007-09-30  Bruno Haible  <bruno@clisp.org>
57787
57788         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57789         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57790         alloca_.h.
57791         * lib/argz.in.h: Renamed from lib/argz_.h.
57792         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57793         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57794         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57795         byteswap_.h.
57796         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57797         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57798         dirent_.h.
57799         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57800         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57801         fcntl_.h.
57802         * lib/float.in.h: Renamed from lib/float_.h.
57803         * modules/float (Files, Makefile.am): Use float.in.h instead of
57804         float_.h.
57805         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57806         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57807         fnmatch_.h.
57808         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57809         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57810         getopt_.h.
57811         * lib/glob.in.h: Renamed from lib/glob_.h.
57812         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57813         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57814         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57815         iconv_.h.
57816         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57817         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57818         inttypes_.h.
57819         * lib/locale.in.h: Renamed from lib/locale_.h.
57820         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57821         locale_.h.
57822         * lib/math.in.h: Renamed from lib/math_.h.
57823         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57824         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57825         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57826         of netinet_in_.h. Add dependency.
57827         * lib/poll.in.h: Renamed from lib/poll_.h.
57828         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57829         * lib/search.in.h: Renamed from lib/search_.h.
57830         * modules/search (Files, Makefile.am): Use search.in.h instead of
57831         search_.h.
57832         * lib/signal.in.h: Renamed from lib/signal_.h.
57833         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57834         _signal.h.
57835         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57836         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57837         stdbool_.h.
57838         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57839         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57840         stdint_.h.
57841         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57842         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57843         stdio_.h.
57844         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57845         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57846         stdlib_.h.
57847         * lib/string.in.h: Renamed from lib/string_.h.
57848         * modules/string (Files, Makefile.am): Use string.in.h instead of
57849         string_.h.
57850         * doc/gnulib-tool.texi (Initial import): Update.
57851         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57852         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57853         of sys_select_.h. Add dependency.
57854         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57855         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57856         of sys_socket_.h.
57857         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57858         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57859         sys_stat_.h.
57860         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57861         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57862         sys_time_.h.
57863         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57864         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57865         sysexits_.h.
57866         * lib/time.in.h: Renamed from lib/time_.h.
57867         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57868         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57869         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57870         unistd_.h.
57871         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57872         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57873         wchar_.h.
57874         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57875         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57876         wctype_.h.
57877         * build-aux/bootstrap (slurp): Update.
57878         * lib/.cppi-disable: Update.
57879
57880 2007-09-30  Bruno Haible  <bruno@clisp.org>
57881
57882         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57883         Needed on BeOS.
57884
57885 2007-09-30  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57888
57889 2007-09-29  Bruno Haible  <bruno@clisp.org>
57890
57891         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57892
57893 2007-09-29  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57896         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57897         * build-aux/install-reloc: Compile also areadlink.c.
57898         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57899
57900 2007-09-29  Bruno Haible  <bruno@clisp.org>
57901
57902         * gnulib-tool (func_emit_initmacro_done): Indentation.
57903
57904 2007-09-29  Bruno Haible  <bruno@clisp.org>
57905
57906         * README: Add CVS checkout update instructions.
57907         Info from Bob Proulx <bob@proulx.com>.
57908
57909 2007-09-28  Eric Blake  <ebb9@byu.net>
57910
57911         Provide move-if-change.
57912         * build-aux/move-if-change: New file, based on best practice
57913         rather than any canonical upstream location.
57914
57915 2007-09-28  Jim Meyering  <jim@meyering.net>
57916
57917         Fix canonicalize loop-detection corner case.
57918         Do not attempt to stat the symlink values stored via seen_triple.
57919         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57920         on linux-2.6.18, (but not 2.6.22).
57921         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57922         triple_compare.  The former compares dev,ino,filename, while the latter
57923         would actually stat dirname(filename) when dev and ino were equal.
57924         * lib/hash-triple.c: Install <string.h>.
57925         (STREQ): Define.
57926         (triple_compare_ino_str): New function.
57927         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57928
57929 2007-09-28  Eric Blake  <ebb9@byu.net>
57930
57931         Enforce that AC_REPLACE_FUNCS files exist.
57932         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57933         override check for typos.
57934
57935         Fix test-closein on Solaris 10.
57936         * tests/test-closein.c (main): Don't assume stdin can be inherited
57937         closed on all systems.
57938         * tests/test-closein.sh: Likewise.
57939         Reported by Piotr Tarnowski.
57940
57941 2007-09-28  Jim Meyering  <jim@meyering.net>
57942
57943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57944
57945 2007-09-27  Jim Meyering  <jim@meyering.net>
57946
57947         canonicalize: Avoid a false-positive cycle failure.
57948         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57949         Sort.  Remove cycle-check.
57950         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57951         not cycle-check.h.
57952         (seen_triple): New function.
57953         (canonicalize_filename_mode): Use it instead of cycle-check.
57954         * tests/test-canonicalize.c: Add a test for this bug.
57955         * tests/test-canonicalize.sh: Set up and run the test.
57956
57957         New module, file-set, from coreutils.
57958         * modules/file-set: Define it.
57959         * lib/file-set.c, lib/file-set.h: Implement.
57960
57961         New module, hash-triple, from coreutils.
57962         * modules/hash-triple: Define it.
57963         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57964
57965 2007-09-25  Eric Blake  <ebb9@byu.net>
57966
57967         Fix strerror on Interix.
57968         * lib/string_.h (strerror): Declare replacement.
57969         * doc/functions/strerror.texi (strerror): Document the Interix
57970         shortcoming.
57971         * modules/string (Makefile.am): Support new hooks.
57972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57973         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57974         gl_FUNC_STRERROR_SEPARATE.
57975         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57976         * lib/strerror.c (rpl_strerror): Provide replacement.
57977         * modules/strerror (Depends-on): Add string.
57978         (configure.ac): Detect use of module.
57979         * tests/test-strerror.c: New file.
57980         * modules/strerror-tests: New test module.
57981         * modules/argp (Depends-on): Add strerror.
57982         * modules/error (Depends-on): Likewise.
57983         Reported by Martin Koeppe.
57984
57985 2007-09-24  Bruno Haible  <bruno@clisp.org>
57986
57987         * README: Update git instructions.
57988
57989 2007-09-24  Eric Blake  <ebb9@byu.net>
57990
57991         Revert fpending breakage from 2007-09-08.
57992         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57993         __fpending.c.
57994
57995 2007-09-24  Jim Meyering  <jim@meyering.net>
57996
57997         filenamecat.c: Add a test.
57998         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57999         showing how the function works when DIR is the empty string.
58000
58001 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58002
58003         * tests/test-canonicalize.sh: Turn on executable bit.
58004
58005 2007-09-19  Eric Blake  <ebb9@byu.net>
58006
58007         * README: Update CVS instructions.
58008
58009 2007-09-18  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/areadlink: New file.
58012         * lib/areadlink.h (areadlink): New declaration.
58013         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58014
58015 2007-09-17  Jim Meyering  <jim@meyering.net>
58016
58017         * lib/savewd.c (ESTALE) [!defined]: Define.
58018         Reported to be required on Interix by Martin Koeppe.
58019
58020 2007-09-17  Bruno Haible  <bruno@clisp.org>
58021
58022         * gnulib-tool (func_version): Use $version.
58023
58024 2007-09-16  Bruno Haible  <bruno@clisp.org>
58025
58026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58027         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58028         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58029         Reported by Greg Schafer <gschafer@zip.com.au>.
58030
58031 2007-09-15  Bruno Haible  <bruno@clisp.org>
58032
58033         * gnulib-tool (sed): Try a little harder to make bash understand the
58034         alias.
58035         Reported by Bruce Korb <bruce.korb@gmail.com>.
58036
58037 2007-09-13  Eric Blake  <ebb9@byu.net>
58038
58039         * ChangeLog: Remove conflict markers.
58040
58041 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58042
58043         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58044         Reported by Bruno Haible <bruno@clisp.org>.
58045
58046 2007-09-12  Bruno Haible  <bruno@clisp.org>
58047
58048         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58049         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58050         is not defined.
58051
58052 2007-09-12  Eric Blake  <ebb9@byu.net>
58053
58054         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58056         Autoconf definition.
58057         * modules/euidaccess (Depends-on): Add extensions, for
58058         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58059         * modules/fnmatch (Depends-on): Likewise.
58060         * modules/getaddrinfo (Depends-on): Likewise.
58061         * modules/getdelim (Depends-on): Likewise.
58062         * modules/getline (Depends-on): Likewise.
58063         * modules/getsubopt (Depends-on): Likewise.
58064         * modules/gettext (Depends-on): Likewise.
58065         * modules/group-member (Depends-on): Likewise.
58066         * modules/mbchar (Depends-on): Likewise.
58067         * modules/memmem (Depends-on): Likewise.
58068         * modules/mempcpy (Depends-on): Likewise.
58069         * modules/memrchr (Depends-on): Likewise.
58070         * modules/pagealign_alloc (Depends-on): Likewise.
58071         * modules/readutmp (Depends-on): Likewise.
58072         * modules/stpcpy (Depends-on): Likewise.
58073         * modules/stpncpy (Depends-on): Likewise.
58074         * modules/strchrnul (Depends-on): Likewise.
58075         * modules/strndup (Depends-on): Likewise.
58076         * modules/strsep (Depends-on): Likewise.
58077         * modules/strverscmp (Depends-on): Likewise.
58078         * modules/vasprintf (Depends-on): Likewise.
58079         * modules/wcwidth (Depends-on): Likewise.
58080         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58081         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58085         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58086         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58087         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58088         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58089         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58091         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58094         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58095         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58096         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58097         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58101         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58102         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58103         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58104         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58106         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58107         so that lock.m4 can be used in gettext without extensions module.
58108
58109 2007-09-11  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/isc-posix.m4: Remove file.
58112         Suggested by Eric Blake.
58113
58114 2007-09-11  Eric Blake  <ebb9@byu.net>
58115
58116         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58117
58118 2007-09-10  Bruno Haible  <bruno@clisp.org>
58119
58120         * posix-modules: Fix typo in error message.
58121         Reported by Matt <mkraai@beckman.com>.
58122
58123 2007-09-09  Bruno Haible  <bruno@clisp.org>
58124
58125         * doc/functions/getdelim.texi: Update list of platforms lacking the
58126         function.
58127         * doc/functions/getline.texi: Likewise.
58128
58129 2007-09-09  Jim Meyering  <jim@meyering.net>
58130
58131         * lib/hash.c (hash_initialize): Detect calloc failure.
58132         Reported by Bruno Haible.
58133
58134 2007-09-09  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58137         malloc or realloc fails.
58138
58139 2007-09-09  Bruno Haible  <bruno@clisp.org>
58140
58141         * modules/getcwd (Depends-on): Add malloc-posix.
58142         * modules/glob (Depends-on): Likewise.
58143         * modules/putenv (Depends-on): Likewise.
58144         * modules/strdup (Depends-on): Likewise.
58145         * modules/getdelim (Depends-on): Add realloc-posix.
58146         * modules/read-file (Depends-on): Likewise.
58147
58148 2007-09-09  Bruno Haible  <bruno@clisp.org>
58149
58150         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58151         (gl_FUNC_MALLOC_POSIX): Require it.
58152         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58153         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58154         * modules/realloc (Files): Add m4/malloc.m4.
58155         * modules/calloc (Files): Likewise.
58156
58157 2007-09-09  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/malloc-posix: New file.
58160         * modules/malloc (Depends-on): Add malloc-posix.
58161         * lib/malloc.c: Include errno.h.
58162         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58163         and a POSIX-compatible malloc into a single function. Set ENOMEM
58164         when returning NULL.
58165         * m4/malloc.m4: New file.
58166         * doc/functions/malloc.texi: Mention the malloc-posix module.
58167         * lib/stdlib_.h (malloc): New declaration.
58168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58169         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58170         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58171         and HAVE_MALLOC_POSIX.
58172
58173 2007-09-09  Bruno Haible  <bruno@clisp.org>
58174
58175         * modules/realloc-posix: New file.
58176         * modules/realloc (Depends-on): Add realloc-posix.
58177         * lib/realloc.c: Include errno.h.
58178         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58179         and a POSIX-compatible realloc into a single function. Set ENOMEM
58180         when returning NULL.
58181         * m4/realloc.m4: New file.
58182         * doc/functions/realloc.texi: Mention the realloc-posix module.
58183         * lib/stdlib_.h (realloc): New declaration.
58184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58185         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58186         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58187         and HAVE_REALLOC_POSIX.
58188
58189 2007-09-09  Bruno Haible  <bruno@clisp.org>
58190
58191         * modules/calloc-posix: New file.
58192         * modules/calloc (Depends-on): Add calloc-posix.
58193         * lib/calloc.c: Include errno.h.
58194         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58195         and a POSIX-compatible calloc into a single function. Set ENOMEM
58196         when returning NULL.
58197         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58198         * doc/functions/calloc.texi: Mention the calloc-posix module.
58199         * lib/stdlib_.h (calloc): New declaration.
58200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58201         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58202         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58203         and HAVE_CALLOC_POSIX.
58204
58205 2007-09-09  Bruno Haible  <bruno@clisp.org>
58206
58207         Allow for modules to show an arbitrary notice.
58208         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58209         * gnulib-tool: New option --extract-notice.
58210         (func_usage): Document it.
58211         (sed_extract_prog): Update.
58212         (func_get_notice): New function.
58213         (func_modules_notice): New function.
58214         (func_import, func_create_testdir): Invoke it.
58215         Suggested by Jim Meyering.
58216
58217 2007-09-09  Bruno Haible  <bruno@clisp.org>
58218
58219         * gnulib-tool: New options --verbose, --quiet.
58220         (func_usage): Document them.
58221         (verbose): New variable.
58222         (func_execute_command): New function.
58223         (func_import): Don't show the module list and the file list if
58224         $verbose < 0.
58225         (func_create_testdir): Likewise. Use func_execute_command.
58226         (func_create_megatestdir): Use func_execute_command.
58227
58228 2007-09-08  Bruno Haible  <bruno@clisp.org>
58229
58230         * gnulib-tool (func_import): Prefer rsync over wget when available,
58231         for fetching the PO files.
58232
58233 2007-09-08  Bruno Haible  <bruno@clisp.org>
58234
58235         * posix-modules: New file. Portions copied from gnulib-tool.
58236         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58237
58238 2007-09-08  Jim Meyering  <jim@meyering.net>
58239
58240         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58241         * lib/fpending.h: Rename from __fpending.h.
58242         * lib/fpending.c: Rename from __fpending.c.
58243         Include "fpending.h", not "__fpending.h".
58244         * lib/__fpending.h, lib/__fpending.c: Remove files.
58245         * modules/fpending (Files): Reflect new file names.
58246         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58247
58248 2007-09-08  Bruno Haible  <bruno@clisp.org>
58249
58250         * m4/inttypes-h.m4: Remove stub file.
58251
58252 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58253
58254         * doc/headers/stdint.texi: Discuss #include_next issue.
58255
58256 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58259
58260 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58261
58262         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58263         in variable name.
58264
58265 2007-09-03  Jim Meyering  <jim@meyering.net>
58266
58267         New module: git-version-gen.
58268         * modules/git-version-gen: New file.
58269
58270         Import changes from coreutils for bootstrap script.
58271
58272         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58273
58274         bootstrap: uses rsync to download the .po files
58275         * build-aux/bootstrap (po_download_command_format): New global.
58276         (download_po_files): Use rsync.
58277         (update_po_files): Don't remove .po files after download,
58278         so future rsync runs can take advantage of the copies.
58279
58280         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58281
58282         Solve the unnecessary-.po-file-regeneration problem once and for all.
58283         * build-aux/bootstrap (download_po_files): New function, renamed from
58284         get_translations.  Now, downloads, but doesn't update LINGUAS.
58285         (update_po_files): New function.
58286
58287         bootstrap: Ignore more.
58288         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58289         uniwidth to e.g., lib/.gitignore.
58290         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58291
58292         * build-aux/bootstrap: New setting: vc_ignore.
58293         (insert_sorted_if_absent): Create $file if absent.
58294         Adapt to new, possibly empty, list: $vc_ignore.
58295
58296         bootstrap: generate more ignorable names
58297         * build-aux/bootstrap (slurp): When generating ignorable names,
58298         also map .sin to .sed, .gperf to .c, and .y to .c.
58299
58300 2007-09-03  Jim Meyering  <jim@meyering.net>
58301
58302         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58303         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58304
58305 2007-09-02  Bruno Haible  <bruno@clisp.org>
58306
58307         Fix mis-recognition of 'mcs' on QNX 6.
58308         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58309         output contains the string "Mono".
58310         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58311         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58312
58313 2007-09-01  Bruno Haible  <bruno@clisp.org>
58314
58315         Fix collision between uniwidth/* and linebreak modules.
58316         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58317         u32_width): Remove declarations.
58318         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58319         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58320         streq3, streq2, streq1, streq0): Remove functions.
58321         (STREQ): Remove macro.
58322         (is_cjk_encoding): Remove function.
58323         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58324         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58325         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58326         * NEWS: Document the change.
58327
58328 2007-09-01  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/streq.h: Add double-inclusion guard.
58331
58332 2007-09-01  Karl Berry  <karl@gnu.org>
58333
58334         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58335
58336 2007-08-28  Jim Meyering  <jim@meyering.net>
58337
58338         Rename mreadlink_with_size to areadlink_with_size.
58339         * NEWS: Document the change.
58340         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58341         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58342         * lib/mreadlink.h: Rename this to...
58343         * lib/areadlink.h: ...this.
58344         * modules/mreadlink-with-size: Rename this to...
58345         * modules/areadlink-with-size: ...this.
58346         * lib/canonicalize.c: Reflect the renaming.
58347         * modules/canonicalize: Likewise.
58348
58349 2007-08-26  Bruno Haible  <bruno@clisp.org>
58350
58351         * gnulib-tool (func_import): When deciding which files to remove,
58352         consider also dangling symbolic links.
58353         Reported by Eric Blake.
58354
58355 2007-08-26  Bruno Haible  <bruno@clisp.org>
58356
58357         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58358
58359 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58360
58361         * lib/readline.c: Don't include getline.h, the prototype is now
58362         found in stdio.h.
58363
58364 2007-08-23  Jim Meyering  <jim@meyering.net>
58365
58366         Getdelim touchup.
58367         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58368         around the funlockfile call, since funlockfile never sets errno.
58369         Don't set errno upon failed realloc.
58370
58371 2007-08-22  Eric Blake  <ebb9@byu.net>
58372
58373         Getline touchups.
58374         * lib/getdelim.c (getdelim): Revert regression that required *n to
58375         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58377         getdelim, rather than whether implementation is missing.
58378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58379         * lib/stdio_.h (getline): Also declare if replacement is
58380         required.
58381         * doc/functions/getdelim.texi: New file.
58382         * doc/functions/getline.texi: Likewise.
58383         * doc/gnulib.texi (Function Substitutes): Add new files.
58384         Reported by Bruno Haible.
58385
58386 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58387
58388         * users.txt: Add Guile.
58389
58390 2007-08-22  Eric Blake  <ebb9@byu.net>
58391
58392         * tests/test-getdelim.c (main): Use remove, not unlink.
58393         * tests/test-getline.c (main): Likewise.
58394
58395         Move getline and getdelim into stdio.h, per POSIX 200x.
58396         * modules/getline (Files): Remove getline.h.
58397         (Depends-on): Add stdio.
58398         (configure.ac): Add module indicator.
58399         * modules/getdelim (Files): Remove getdelim.h.
58400         (Depends-on): Add stdio.
58401         (configure.ac): Add module indicator.
58402         * modules/stdio (Makefile.am): Work with new indicators.
58403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58406         * lib/getdelim.h: Delete.
58407         * lib/getline.h: Delete.
58408         * lib/stdio_.h (getdelim, getline): Declare.
58409         * modules/getdelim-tests: New module.
58410         * modules/getline-tests: Likewise.
58411         * tests/test-getdelim.c: New file.
58412         * tests/test-getline.c: Likewise.
58413         * NEWS: Document the change.
58414         * lib/getline.c: Update choice of header.
58415         * lib/csharpcomp.c: Likewise.
58416         * lib/getpass.c: Likewise.
58417         * lib/javacomp.c: Likewise.
58418         * lib/javaversion.c: Likewise.
58419         * lib/yesno.c: Likewise.
58420         * lib/getdelim.c: Likewise.
58421         (getdelim): Set errno on failure, and avoid memory leak.
58422
58423 2007-08-19  Bruno Haible  <bruno@clisp.org>
58424
58425         * modules/closein (Depends-on): Add freadahead.
58426         * lib/closein.c: Include freadahead.h.
58427         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58428         is zero.
58429
58430 2007-08-19  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/freadahead-tests: New file.
58433         * tests/test-freadahead.sh: New file.
58434         * tests/test-freadahead.c: New file.
58435
58436         * modules/freadahead: New file.
58437         * lib/freadahead.h: New file.
58438         * lib/freadahead.c: New file.
58439         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58440         fbufmode, fpurge, freadable, fwritable.
58441
58442 2007-08-19  Eric Blake  <ebb9@byu.net>
58443
58444         Test yesno in combination with closein.
58445         * lib/yesno.c (yesno): Document use of stdin.
58446         * modules/yesno-tests (Files): New module.
58447         * tests/test-yesno.c (main): New file.
58448         * tests/test-yesno.sh: Likewise.
58449
58450 2007-08-19  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58453         * lib/fseeko.c (rpl_fseeko): Likewise.
58454         * lib/fseterr.c (fseterr): Likewise.
58455
58456 2007-08-19  Bruno Haible  <bruno@clisp.org>
58457
58458         * tests/test-lseek.c (main): Disable a test for BeOS.
58459         * doc/functions/lseek.texi: Document the BeOS bug.
58460
58461 2007-08-19  Bruno Haible  <bruno@clisp.org>
58462             Eric Blake  <ebb9@byu.net>
58463
58464         * lib/lseek.c: Include <sys/stat.h>.
58465         (rpl_lseek): Add workaround code also for Unix platforms.
58466         Needed for BeOS.
58467         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58468         * doc/functions/lseek.texi: Document BeOS definiency.
58469
58470 2007-08-18  Bruno Haible  <bruno@clisp.org>
58471
58472         * modules/fstrcmp-tests: New file.
58473         * tests/test-fstrcmp.c: New file.
58474
58475 2007-08-18  Bruno Haible  <bruno@clisp.org>
58476
58477         * modules/fstrcmp: New file, from GNU gettext with modifications.
58478         * lib/fstrcmp.h: New file, from GNU gettext.
58479         * lib/fstrcmp.c: New file, from GNU gettext.
58480         * MODULES.html.sh (String handling): Add fstrcmp.
58481
58482 2007-08-18  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58485         'bool'.
58486         (diag, compareseq): Remove const from the ctxt argument.
58487         (USE_HEURISTIC): Undefine at the end.
58488
58489 2007-08-18  Jim Meyering  <jim@meyering.net>
58490
58491         New file: lib/idcache.h
58492         * NEWS: Mention the addition.
58493         * modules/idcache (Files): Add lib/idcache.h
58494         * lib/idcache.c: Include "idcache.h".
58495         Don't include <sys/types.h>.
58496         Add a FIXME comment.
58497         Move file-scoped "static" declarations to the top.
58498         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58499
58500 2007-08-17  Bruno Haible  <bruno@clisp.org>
58501         and Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * MODULES.html.sh: Add diffseq.
58504         * modules/diffseq: New file.
58505         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58506         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58507
58508 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         Import changes from coreutils for bootstrap script.
58511
58512         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * build-aux/bootstrap (slurp): Work even in environments where
58515         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58516         current code does not slurp files whose names start with ".", and
58517         this looks like it might be a troublesome area.
58518
58519         2007-07-11  Jim Meyering  <jim@meyering.net>
58520
58521         If there's a GPL vN copyright comment, require that N == 3.
58522
58523         2007-07-08  Jim Meyering  <jim@meyering.net>
58524
58525         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58526         * build-aux/bootstrap (mam_template): Move definition out of loop.
58527
58528         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58529
58530         * build-aux/bootstrap (symlink_to_dir): Rename function from
58531         symlink_to_gnulib.  Add a directory parameter.  Update all
58532         callers.
58533         (cp_mark_as_generated): Also check for -- and link to -- files in
58534         gl/.
58535
58536         2007-07-08  Jim Meyering  <jim@meyering.net>
58537
58538         Adapt to deeper hierarchy in gnulib.
58539         * build-aux/bootstrap (symlink_to_dir): If the destination
58540         directory doesn't exist, create it. This is required at least for
58541         "lib/uniwidth/cjk.h".
58542
58543         2007-05-15  Jim Meyering  <jim@meyering.net>
58544
58545         * build-aux/bootstrap: Now that generated Makefile.am files
58546         are no longer under version control, they must be created at
58547         bootstrap time.
58548
58549 2007-08-14  Ben Pfaff  <blp@gnu.org>
58550
58551         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58552
58553 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58554
58555         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58556         given the changes below.
58557         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58558         even on hosts that have padding bits beyond the supported 64.
58559
58560 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58561
58562         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58563         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58564         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58565         depends on it.
58566         (xstrtol_error): Remove.
58567         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58568         but with a different signature.
58569         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58570         * lib/xstrtol-error.c: Include exitfail.h.
58571         (xstrtol_fatal): New function, with a different signature from the
58572         old xstrtol_error, so that the caller need not worry about passing
58573         in an exit status, or about storage management of the option argument.
58574         (xstrtol_error): Now a static function.  Redo signature to
58575         implement xstrtol_fatal.  Output the correct number of hyphens in
58576         front of the option so that the caller need not worry about
58577         storage management.
58578         (N_): New macro.
58579         (_): Remove; not used now.
58580         * modules/xstrtol: Depend on getopt.
58581         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58582         of old STRTOL_FATAL_ERROR macro.
58583         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58584         of test program.
58585         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58586         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58587
58588 2007-08-08  Eric Blake  <ebb9@byu.net>
58589
58590         * lib/xstrtol-error.c: Add missing include.
58591
58592         Move xstrtol messages into gnulib domain, when --pobase is used.
58593         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58594         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58595         * modules/xstrtol (Files): Distribute new file.
58596         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58597         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58598         * tests/test-xstrtol.c: ...into new file.
58599         * tests/test-xstrtoul.c: Also test xstrtoul.
58600         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58601         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58602         * tests/test-xstrtol.sh: Drive the tests.
58603         * tests/test-xstrtoimax.sh: Likewise.
58604         * tests/test-xstrtoumax.sh: Likewise.
58605         * modules/xstrtol-tests: New module.
58606         * modules/xstrtoimax-tests: Likewise.
58607         * modules/xstrtoumax-tests: Likewise.
58608
58609 2007-08-08  Jim Meyering  <jim@meyering.net>
58610
58611         New function: mfile_name_concat.
58612         * lib/filenamecat.c (mfile_name_concat): New function, just like
58613         file_name_concat, but return NULL upon failure rather than exiting
58614         with a diagnostic.
58615         * lib/filenamecat.h: Declare it.
58616
58617 2007-08-07  Bruno Haible  <bruno@clisp.org>
58618
58619         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58620         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58621         warning from gcc.
58622         Reported by Eric Blake.
58623
58624 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58625
58626         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58627         * modules/crypto/arcfour (License): Likewise.
58628         * modules/crypto/des-tests (License): Likewise.
58629         * modules/crypto/gc-arctwo-tests (License): Likewise.
58630         * modules/crypto/gc-des-tests (License): Likewise.
58631         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58632         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58633         * modules/crypto/gc-md2-tests (License): Likewise.
58634         * modules/crypto/gc-md4-tests (License): Likewise.
58635         * modules/crypto/gc-md5-tests (License): Likewise.
58636         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58637         * modules/crypto/gc-rijndael-tests (License): Likewise.
58638         * modules/crypto/gc-sha1-tests (License): Likewise.
58639         * modules/crypto/gc-tests (License): Likewise.
58640         * modules/crypto/hmac-md5 (License): Likewise.
58641         * modules/crypto/hmac-sha1 (License): Likewise.
58642         * modules/crypto/md2-tests (License): Likewise.
58643         * modules/crypto/md4-tests (License): Likewise.
58644         * modules/crypto/md5 (License): Likewise.
58645         * modules/crypto/rijndael (License): Likewise.
58646         * modules/crypto/sha1 (License): Likewise.
58647         * modules/memxor (License): Likewise.
58648
58649 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58650         and Bruno Haible  <bruno@clisp.org>
58651
58652         * NEWS: Describe interface changes to human, xstrtol.
58653         * lib/human.h: Include <xstrtol.h>.
58654         (human_options): Return enum strtol_error, not int.  Remove
58655         bool arg; take int * instead.
58656         * lib/human.c: Don't include "gettext.h".
58657         (_): Remove; no longer used.
58658         Don't include <xstrtol.h>, since human.h does it.
58659         (human_options): Adjust to abovementioned interface changes.
58660         Do not report error to stderr; that's now the caller's
58661         responsibility.
58662         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58663         interface change.
58664         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58665         Str, Argument_type_string.  All uses changed.  Put " argument"
58666         in diagnostics to make them clearer.  Change wording of suffix
58667         message for clarity.
58668         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58669         Argument_type_string.
58670         (STRTOL_FATAL_WARN): Remove; no longer used.
58671         * modules/human (Depends-on): Remove gettext-h.
58672
58673 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58674
58675         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58676
58677 2007-07-31  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58680         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58681         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58682
58683 2007-07-31  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58686         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58687
58688 2007-07-30  Bruno Haible  <bruno@clisp.org>
58689
58690         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58691         * modules/c-ctype (License): Likewise.
58692         * modules/c-strcase (License): Likewise.
58693         * modules/check-version (License): Likewise.
58694         * modules/iconv (License): Likewise.
58695         * modules/iconv_open (License): Likewise.
58696         * modules/read-file (License): Likewise.
58697         * modules/striconv (License): Likewise.
58698         * modules/strverscmp (License): Likewise.
58699         * modules/vasprintf (License): Likewise.
58700         * modules/crypto/des (License): Likewise.
58701         * modules/crypto/gc (License): Likewise.
58702         * modules/crypto/gc-arcfour (License): Likewise.
58703         * modules/crypto/gc-arctwo (License): Likewise.
58704         * modules/crypto/gc-des (License): Likewise.
58705         * modules/crypto/gc-hmac-md5 (License): Likewise.
58706         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58707         * modules/crypto/gc-md2 (License): Likewise.
58708         * modules/crypto/gc-md4 (License): Likewise.
58709         * modules/crypto/gc-md5 (License): Likewise.
58710         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58711         * modules/crypto/gc-random (License): Likewise.
58712         * modules/crypto/gc-rijndael (License): Likewise.
58713         * modules/crypto/gc-sha1 (License): Likewise.
58714         * modules/crypto/md2 (License): Likewise.
58715         * modules/crypto/md4 (License): Likewise.
58716
58717 2007-07-30  Jim Meyering  <jim@meyering.net>
58718
58719         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58720         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58721         it has valid stat data.  This bug would cause du not to count the
58722         sizes of inaccessible directories.
58723         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58724         in <http://bugzilla.redhat.com/250077>.
58725
58726 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58727             Bruno Haible  <bruno@clisp.org>
58728
58729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58730         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58731         #include_next, gives a diagnostic about it, but reports no error in
58732         the exit code.
58733         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58734
58735 2007-07-24  Ben Pfaff  <blp@gnu.org>
58736
58737         Improve name: "count-one-bits" is better than "popcount".
58738         * MODULES.html.sh: Update name.
58739         * lib/popcount.h: Renamed lib/count-one-bits.h.
58740         (popcount): Renamed count_one_bits.
58741         (popcountl): Renamed count_one_bits_l.
58742         (popcountll): Renamed count_one_bits_ll.
58743         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58744         * modules/popcount: Renamed module/count-one-bits.
58745         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58746         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58747
58748 2007-07-23  Ben Pfaff  <blp@gnu.org>
58749
58750         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58751         better code generation, and add U to large constants to avoid
58752         warnings, in non-GCC case.
58753         Suggested by Bruno Haible.
58754
58755 2007-07-23  Ben Pfaff  <blp@gnu.org>
58756
58757         * lib/popcount.h: Use verify_true instead of if...abort.
58758         * modules/popcount: Depend on verify module.
58759         Suggested by Jim Meyering.
58760
58761 2007-07-23  Bruno Haible  <bruno@clisp.org>
58762
58763         * gnulib-tool (func_import): Create a .cvsignore file also when the
58764         directory is not yet in CVS but the toplevel directory is. When
58765         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58766         Reported by Karl Berry.
58767
58768 2007-07-22  Ben Pfaff  <blp@gnu.org>
58769
58770         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58771         case.
58772         Suggested by Eric Blake.
58773
58774 2007-07-22  Ben Pfaff  <blp@gnu.org>
58775
58776         New module: popcount.
58777         * MODULES.html.sh: Add popcount.
58778         * modules/popcount: New file.
58779         * modules/popcount-tests: New file.
58780         * tests/test-popcount.c: New file.
58781         * lib/popcount.h: New file.
58782         * m4/popcount.m4: New file.
58783
58784 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58785
58786         * build-aux/announce-gen: Update to GPLv3.
58787
58788         * build-aux/config.guess: Update from config.
58789
58790 2007-07-21  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58793         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58794
58795 2007-07-20  Jim Meyering  <jim@meyering.net>
58796
58797         * check-module: Diagnose a self-dependency.
58798
58799 2007-07-19  Bruno Haible  <bruno@clisp.org>
58800
58801         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58802         empty.
58803         Reported by Eric Blake.
58804
58805 2007-07-18  Bruno Haible  <bruno@clisp.org>
58806
58807         * gnulib-tool: New options --po-base, --po-domain.
58808         (func_usage): Document them.
58809         (pobase, po_domain): New variables.
58810         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58811         DEFAULT_TEXT_DOMAIN.
58812         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58813         (func_import): Consider pobase and po_domain. Create a po/ directory.
58814         (func_create_testdir): Set pobase and po_domain to empty.
58815         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58816         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58817
58818 2007-07-18  Bruno Haible  <bruno@clisp.org>
58819
58820         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58821         EXTRA_DIST augmentation for files in build-aux/.
58822
58823 2007-07-16  Bruno Haible  <bruno@clisp.org>
58824
58825         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58826         * modules/getdelim (License): Likewise.
58827
58828 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58829
58830         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58831         * modules/d-type (License): Likewise.
58832         * modules/extensions (License): Likewise.
58833         * modules/fnmatch (License): Likewise.
58834         * modules/fseeko (License): Likewise.
58835         * modules/getaddrinfo (License): Likewise.
58836         * modules/getline (License): Likewise.
58837         * modules/getlogin_r (License): Likewise.
58838         * modules/getpass (License): Likewise.
58839         * modules/gettimeofday (License): Likewise.
58840         * modules/glob (License): Likewise.
58841         * modules/inet_ntop (License): Likewise.
58842         * modules/malloc (License): Likewise.
58843         * modules/malloca (License): Likewise.
58844         * modules/memmem (License): Likewise.
58845         * modules/mempcpy (License): Likewise.
58846         * modules/memset (License): Likewise.
58847         * modules/minmax (License): Likewise.
58848         * modules/mktime (License): Likewise.
58849         * modules/netinet_in (License): Likewise.
58850         * modules/pathmax (License): Likewise.
58851         * modules/poll (License): Likewise.
58852         * modules/regex (License): Likewise.
58853         * modules/snprintf (License): Likewise.
58854         * modules/stdbool (License): Likewise.
58855         * modules/stdint (License): Likewise.
58856         * modules/stdio (License): Likewise.
58857         * modules/strcase (License): Likewise.
58858         * modules/strcasestr (License): Likewise.
58859         * modules/strdup (License): Likewise.
58860         * modules/string (License): Likewise.
58861         * modules/strndup (License): Likewise.
58862         * modules/strnlen (License): Likewise.
58863         * modules/strpbrk (License): Likewise.
58864         * modules/strptime (License): Likewise.
58865         * modules/strsep (License): Likewise.
58866         * modules/sys_select (License): Likewise.
58867         * modules/sys_socket (License): Likewise.
58868         * modules/sys_stat (License): Likewise.
58869         * modules/sys_time (License): Likewise.
58870         * modules/time (License): Likewise.
58871         * modules/time_r (License): Likewise.
58872         * modules/timegm (License): Likewise.
58873         * modules/unistd (License): Likewise.
58874         * modules/vsnprintf (License): Likewise.
58875         * modules/wctype (License): Likewise.
58876
58877 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58878
58879         * modules/argz (License): LGPLv2+.
58880
58881 2007-07-15  Karl Berry  <karl@gnu.org>
58882
58883         * doc/gnulib.texi: revise node structure per new fdl.texi.
58884
58885 2007-07-14  Bruno Haible  <bruno@clisp.org>
58886
58887         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58888         the output file.
58889         * lib/uniname/uninames.h: Regenerated.
58890
58891 2007-07-14  Karl Berry  <karl@gnu.org>
58892
58893         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58894         omitting sectioning and index commands.
58895
58896 2007-07-13  Bruno Haible  <bruno@clisp.org>
58897
58898         New gnulib-tool option --more-symlinks.
58899         * gnulib-tool (func_usage): Document --more-symlinks.
58900         (do_copyrights): New variable.
58901         Recognize option --more-symlinks.
58902         (func_import): Don't add a copyright notice transform to
58903         sed_transform_lib_file if do_copyrights is empty.
58904
58905 2007-07-13  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/vasnprintf.c (decimal_point_char): Define also if
58908         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58909         && !NEED_PRINTF_DIRECTIVE_A.
58910         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58911         Gary V. Vaughan <gary@gnu.org>.
58912
58913 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * lib/inttypes_.h: Undo previous change, since it was fixed
58916         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58917
58918 2007-07-13  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58921         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58922
58923 2007-07-13  Jim Meyering  <jim@meyering.net>
58924
58925         df: Don't fail for Tru64's "file-on-file mount".
58926         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58927         so we fall through and use statfs instead.  Details here:
58928         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58929         Reported by Albert Chin.
58930
58931 2007-07-13  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58934         * modules/configmake (License): Likewise.
58935         * modules/gettext (License): Likewise.
58936         * modules/gettext-h (License): Likewise.
58937         * modules/include_next (License): Likewise.
58938         * modules/link-warning (License): Likewise.
58939         * modules/localcharset (License): Likewise.
58940         * modules/localename (License): Likewise.
58941         * modules/lock (License): Likewise.
58942         * modules/relocatable-lib-lgpl (License): Likewise.
58943         * modules/size_max (License): Likewise.
58944         * modules/vasnprintf (License): Likewise.
58945         * modules/wchar (License): Likewise.
58946         * modules/xsize (License): Likewise.
58947
58948 2007-07-13  Bruno Haible  <bruno@clisp.org>
58949
58950         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58951         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58952
58953 2007-07-12  Bruno Haible  <bruno@clisp.org>
58954
58955         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58956         in the modules files.
58957
58958 2007-07-11  Karl Berry  <karl@gnu.org>
58959
58960         * MODULES.html.sh (func_module): use
58961          sed -e '\|^'"${includefile}"'$|d'
58962          instead of /.../d, to avoid errors on $includefile's containing /.
58963
58964 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58965
58966         * gnulib-tool (func_import): Avoid duplication of --avoid
58967         statements
58968         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58969         names to `_' in variable names.
58970
58971 2007-07-10  Eric Blake  <ebb9@byu.net>
58972
58973         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58974         * NEWS: Document this change.
58975
58976 2007-07-08  Bruno Haible  <bruno@clisp.org>
58977
58978         Update to Unicode 5.0.
58979         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58980         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58981         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58982         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58983         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58984         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58985         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58986         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58987         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58988         U+10A3F, U+1D242..U+1D244.
58989         (nonspacing_table_ind): Update.
58990         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58991         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58992
58993 2007-07-08  Bruno Haible  <bruno@clisp.org>
58994
58995         Update to Unicode 5.0.
58996         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58997         code transform. Extend the name index field of unicode_name_to_code and
58998         unicode_code_to_name from 16 to 24 bits.
58999         * lib/uniname/uniname.c (unicode_character_name,
59000         unicode_name_character): Add the range 0x12xxx to the code transform.
59001         * lib/uniname/uninames.h: Regenerated.
59002         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59003
59004 2007-07-07  Bruno Haible  <bruno@clisp.org>
59005
59006         * modules/wcwidth-tests: New file.
59007         * tests/test-wcwidth.c: New file.
59008
59009         Work around MacOS X wcwidth() bug.
59010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59011         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59012         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59013         original wcwidth in non-UTF-8 locales.
59014         * modules/wcwidth (Depends-on): Add localcharset, streq,
59015         uniwidth/width.
59016         * doc/functions/wcwidth.texi: Update.
59017
59018 2007-07-07  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59021         (wcwidth): New declaration.
59022         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59023         macros.
59024         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59025         here. Prepare for creating <wchar.h> unconditionally.
59026         * modules/wchar (Depends-on): Add link-warning.
59027         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59028         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59029         * lib/wcwidth.h: Remove file.
59030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59031         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59032         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59033         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59034         (Include): Replace wcwidth.h with <wchar.h>.
59035         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59036         * lib/mbchar.h: Don't include wcwidth.h.
59037         * lib/mbswidth.c: Likewise.
59038         * NEWS: Mention the change.
59039
59040 2007-07-07  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59043         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59044         definition with an external declaration.
59045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59046         defined as a function. Remove AC_C_INLINE requirement.
59047         * modules/wcwidth (Files): Add lib/wcwidth.c.
59048         (Makefile.am): Remove redundant statement.
59049
59050 2007-07-07  Bruno Haible  <bruno@clisp.org>
59051
59052         * MODULES.html.sh (Unicode string functions): Add the new modules.
59053
59054         * tests/uniwidth/test-u32-strwidth.c: New file.
59055         * modules/uniwidth/u32-strwidth-tests: New file.
59056
59057         * lib/uniwidth/u32-strwidth.c: New file.
59058         * modules/uniwidth/u32-strwidth: New file.
59059
59060         * tests/uniwidth/test-u16-strwidth.c: New file.
59061         * modules/uniwidth/u16-strwidth-tests: New file.
59062
59063         * lib/uniwidth/u16-strwidth.c: New file.
59064         * modules/uniwidth/u16-strwidth: New file.
59065
59066         * tests/uniwidth/test-u8-strwidth.c: New file.
59067         * modules/uniwidth/u8-strwidth-tests: New file.
59068
59069         * lib/uniwidth/u8-strwidth.c: New file.
59070         * modules/uniwidth/u8-strwidth: New file.
59071
59072         * tests/uniwidth/test-u32-width.c: New file.
59073         * modules/uniwidth/u32-width-tests: New file.
59074
59075         * lib/uniwidth/u32-width.c: New file.
59076         * modules/uniwidth/u32-width: New file.
59077
59078         * tests/uniwidth/test-u16-width.c: New file.
59079         * modules/uniwidth/u16-width-tests: New file.
59080
59081         * lib/uniwidth/u16-width.c: New file.
59082         * modules/uniwidth/u16-width: New file.
59083
59084         * tests/uniwidth/test-u8-width.c: New file.
59085         * modules/uniwidth/u8-width-tests: New file.
59086
59087         * lib/uniwidth/u8-width.c: New file.
59088         * modules/uniwidth/u8-width: New file.
59089
59090         * tests/uniwidth/test-uc_width.c: New file.
59091         * modules/uniwidth/width-tests: New file.
59092
59093         * lib/uniwidth/width.c: New file, from GNU libiconv.
59094         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59095         * modules/uniwidth/width: New file.
59096
59097         * lib/uniwidth.h: New file, from GNU libiconv.
59098         * modules/uniwidth/base: New file.
59099
59100 2007-07-07  Bruno Haible  <bruno@clisp.org>
59101
59102         * lib/uniname.h: New file, from GNU gettext.
59103         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59104         * lib/uniname/uninames.h: New file, from GNU gettext.
59105         * lib/uniname/uniname.c: New file, from GNU gettext.
59106         * tests/uniname/test-uninames.sh: New file.
59107         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59108         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59109         * modules/uniname/base: New file.
59110         * modules/uniname/uniname: New file.
59111         * modules/uniname/uniname-tests: New file.
59112         * MODULES.html.sh (Unicode string functions): Add the new modules.
59113
59114 2007-07-06  Bruno Haible  <bruno@clisp.org>
59115
59116         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59117
59118 2007-07-06  Bruno Haible  <bruno@clisp.org>
59119
59120         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59121         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59122         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59123         include <sys/time.h>.
59124         Reported by Eric Blake.
59125
59126 2007-07-06  Eric Blake  <ebb9@byu.net>
59127
59128         Fix testing canonicalize on cygwin.
59129         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59130         Revert patch from 2007-06-19.
59131         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59132         canonicalize module is also in use.
59133         * tests/test-canonicalize.c: New file.
59134         * tests/test-canonicalize.sh: Likewise.
59135         * modules/canonicalize-tests: Likewise.
59136
59137 2007-07-06  Jim Meyering  <jim@meyering.net>
59138
59139         * lib/getugroups.c (getugroups): Detect getgrent failure.
59140         Adjust comment to reflect reality: this function may return -1.
59141
59142 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59143
59144         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59145         the new TP address.
59146         (usage): Fix typo
59147         (gnulib_mk): New variable.
59148
59149 2007-07-05  Jim Meyering  <jim@meyering.net>
59150
59151         Don't let endgrent clobber errno, no matter how improbable.
59152         * lib/getugroups.c (getugroups): Save and restore errno around
59153         endgrent call.
59154
59155         Close the group DB even when failing with 2^31 or more members.
59156         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59157
59158 2007-07-04  Jim Meyering  <jim@meyering.net>
59159
59160         * lib/getugroups.h: New file.
59161         * lib/getugroups.c: Include "getugroups.h".
59162         Remove uses of "register" keyword.
59163         Move local variable, "cp", down into scope where used.
59164         Give "username" parameter the "const" attribute.
59165         * modules/getugroups (Files): Add lib/getugroups.h
59166
59167 2007-07-04  Karl Berry  <karl@gnu.org>
59168
59169         * MODULES.html.sh (func_all_modules): Complete rename of
59170         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59171
59172 2007-07-02  Bruno Haible  <bruno@clisp.org>
59173
59174         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59175         mode, when inttypes.h comes from gnulib.
59176         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59177
59178 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59179
59180         * NEWS: Mention lgpl module name change.
59181
59182         * modules/lgpl-2.1: Renamed from lgpl.
59183
59184         * NEWS: Mention gpl module name change.
59185
59186         * modules/gpl-3.0: New file, based on gpl-2.0.
59187
59188         * modules/gpl-2.0: Renamed from gpl.
59189
59190         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59191         doc/gpl-2.0.texi.
59192
59193 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59196         #define __STDC_LIMIT_MACROS temporarily while including
59197         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59198         Problem reported by Joel E. Denny in
59199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59200
59201 2007-07-01  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/unistdio.h: New file.
59204         * lib/unistdio/u-asnprintf.h: New file.
59205         * lib/unistdio/u-asprintf.h: New file.
59206         * lib/unistdio/u-printf-args.c: New file.
59207         * lib/unistdio/u-printf-args.h: New file.
59208         * lib/unistdio/u-printf-parse.h: New file.
59209         * lib/unistdio/u-snprintf.h: New file.
59210         * lib/unistdio/u-sprintf.h: New file.
59211         * lib/unistdio/u-vasprintf.h: New file.
59212         * lib/unistdio/u-vsnprintf.h: New file.
59213         * lib/unistdio/u-vsprintf.h: New file.
59214         * lib/unistdio/ulc-asnprintf.c: New file.
59215         * lib/unistdio/ulc-asprintf.c: New file.
59216         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59217         * lib/unistdio/ulc-printf-parse.c: New file.
59218         * lib/unistdio/ulc-snprintf.c: New file.
59219         * lib/unistdio/ulc-sprintf.c: New file.
59220         * lib/unistdio/ulc-vasnprintf.c: New file.
59221         * lib/unistdio/ulc-vasprintf.c: New file.
59222         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59223         * lib/unistdio/ulc-vsnprintf.c: New file.
59224         * lib/unistdio/ulc-vsprintf.c: New file.
59225         * lib/unistdio/u8-asnprintf.c: New file.
59226         * lib/unistdio/u8-asprintf.c: New file.
59227         * lib/unistdio/u8-printf-parse.c: New file.
59228         * lib/unistdio/u8-snprintf.c: New file.
59229         * lib/unistdio/u8-sprintf.c: New file.
59230         * lib/unistdio/u8-vasnprintf.c: New file.
59231         * lib/unistdio/u8-vasprintf.c: New file.
59232         * lib/unistdio/u8-vsnprintf.c: New file.
59233         * lib/unistdio/u8-vsprintf.c: New file.
59234         * lib/unistdio/u8-u8-asnprintf.c: New file.
59235         * lib/unistdio/u8-u8-asprintf.c: New file.
59236         * lib/unistdio/u8-u8-snprintf.c: New file.
59237         * lib/unistdio/u8-u8-sprintf.c: New file.
59238         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59239         * lib/unistdio/u8-u8-vasprintf.c: New file.
59240         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59241         * lib/unistdio/u8-u8-vsprintf.c: New file.
59242         * lib/unistdio/u16-asnprintf.c: New file.
59243         * lib/unistdio/u16-asprintf.c: New file.
59244         * lib/unistdio/u16-printf-parse.c: New file.
59245         * lib/unistdio/u16-snprintf.c: New file.
59246         * lib/unistdio/u16-sprintf.c: New file.
59247         * lib/unistdio/u16-vasnprintf.c: New file.
59248         * lib/unistdio/u16-vasprintf.c: New file.
59249         * lib/unistdio/u16-vsnprintf.c: New file.
59250         * lib/unistdio/u16-vsprintf.c: New file.
59251         * lib/unistdio/u16-u16-asnprintf.c: New file.
59252         * lib/unistdio/u16-u16-asprintf.c: New file.
59253         * lib/unistdio/u16-u16-snprintf.c: New file.
59254         * lib/unistdio/u16-u16-sprintf.c: New file.
59255         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59256         * lib/unistdio/u16-u16-vasprintf.c: New file.
59257         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59258         * lib/unistdio/u16-u16-vsprintf.c: New file.
59259         * lib/unistdio/u32-asnprintf.c: New file.
59260         * lib/unistdio/u32-asprintf.c: New file.
59261         * lib/unistdio/u32-printf-parse.c: New file.
59262         * lib/unistdio/u32-snprintf.c: New file.
59263         * lib/unistdio/u32-sprintf.c: New file.
59264         * lib/unistdio/u32-vasnprintf.c: New file.
59265         * lib/unistdio/u32-vasprintf.c: New file.
59266         * lib/unistdio/u32-vsnprintf.c: New file.
59267         * lib/unistdio/u32-vsprintf.c: New file.
59268         * lib/unistdio/u32-u32-asnprintf.c: New file.
59269         * lib/unistdio/u32-u32-asprintf.c: New file.
59270         * lib/unistdio/u32-u32-snprintf.c: New file.
59271         * lib/unistdio/u32-u32-sprintf.c: New file.
59272         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59273         * lib/unistdio/u32-u32-vasprintf.c: New file.
59274         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59275         * lib/unistdio/u32-u32-vsprintf.c: New file.
59276         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59277         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59278         * tests/unistdio/test-ulc-printf1.h: New file.
59279         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59280         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59281         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59282         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59283         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59284         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59285         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59286         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59287         * tests/unistdio/test-u8-asnprintf1.c: New file.
59288         * tests/unistdio/test-u8-asnprintf1.h: New file.
59289         * tests/unistdio/test-u8-printf1.h: New file.
59290         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59291         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59292         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59293         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59294         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59295         * tests/unistdio/test-u8-vasprintf1.c: New file.
59296         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59297         * tests/unistdio/test-u8-vsprintf1.c: New file.
59298         * tests/unistdio/test-u16-asnprintf1.c: New file.
59299         * tests/unistdio/test-u16-asnprintf1.h: New file.
59300         * tests/unistdio/test-u16-printf1.h: New file.
59301         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59302         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59303         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59304         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59305         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59306         * tests/unistdio/test-u16-vasprintf1.c: New file.
59307         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59308         * tests/unistdio/test-u16-vsprintf1.c: New file.
59309         * tests/unistdio/test-u32-asnprintf1.c: New file.
59310         * tests/unistdio/test-u32-asnprintf1.h: New file.
59311         * tests/unistdio/test-u32-printf1.h: New file.
59312         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59313         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59314         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59315         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59316         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59317         * tests/unistdio/test-u32-vasprintf1.c: New file.
59318         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59319         * tests/unistdio/test-u32-vsprintf1.c: New file.
59320         * modules/unistdio/base: New file.
59321         * modules/unistdio/u-printf-args: New file.
59322         * modules/unistdio/ulc-asnprintf: New file.
59323         * modules/unistdio/ulc-asprintf: New file.
59324         * modules/unistdio/ulc-fprintf: New file.
59325         * modules/unistdio/ulc-printf-parse: New file.
59326         * modules/unistdio/ulc-snprintf: New file.
59327         * modules/unistdio/ulc-sprintf: New file.
59328         * modules/unistdio/ulc-vasnprintf: New file.
59329         * modules/unistdio/ulc-vasprintf: New file.
59330         * modules/unistdio/ulc-vfprintf: New file.
59331         * modules/unistdio/ulc-vsnprintf: New file.
59332         * modules/unistdio/ulc-vsprintf: New file.
59333         * modules/unistdio/u8-asnprintf: New file.
59334         * modules/unistdio/u8-asprintf: New file.
59335         * modules/unistdio/u8-printf-parse: New file.
59336         * modules/unistdio/u8-snprintf: New file.
59337         * modules/unistdio/u8-sprintf: New file.
59338         * modules/unistdio/u8-vasnprintf: New file.
59339         * modules/unistdio/u8-vasprintf: New file.
59340         * modules/unistdio/u8-vsnprintf: New file.
59341         * modules/unistdio/u8-vsprintf: New file.
59342         * modules/unistdio/u8-u8-asnprintf: New file.
59343         * modules/unistdio/u8-u8-asprintf: New file.
59344         * modules/unistdio/u8-u8-snprintf: New file.
59345         * modules/unistdio/u8-u8-sprintf: New file.
59346         * modules/unistdio/u8-u8-vasnprintf: New file.
59347         * modules/unistdio/u8-u8-vasprintf: New file.
59348         * modules/unistdio/u8-u8-vsnprintf: New file.
59349         * modules/unistdio/u8-u8-vsprintf: New file.
59350         * modules/unistdio/u16-asnprintf: New file.
59351         * modules/unistdio/u16-asprintf: New file.
59352         * modules/unistdio/u16-printf-parse: New file.
59353         * modules/unistdio/u16-snprintf: New file.
59354         * modules/unistdio/u16-sprintf: New file.
59355         * modules/unistdio/u16-vasnprintf: New file.
59356         * modules/unistdio/u16-vasprintf: New file.
59357         * modules/unistdio/u16-vsnprintf: New file.
59358         * modules/unistdio/u16-vsprintf: New file.
59359         * modules/unistdio/u16-u16-asnprintf: New file.
59360         * modules/unistdio/u16-u16-asprintf: New file.
59361         * modules/unistdio/u16-u16-snprintf: New file.
59362         * modules/unistdio/u16-u16-sprintf: New file.
59363         * modules/unistdio/u16-u16-vasnprintf: New file.
59364         * modules/unistdio/u16-u16-vasprintf: New file.
59365         * modules/unistdio/u16-u16-vsnprintf: New file.
59366         * modules/unistdio/u16-u16-vsprintf: New file.
59367         * modules/unistdio/u32-asnprintf: New file.
59368         * modules/unistdio/u32-asprintf: New file.
59369         * modules/unistdio/u32-printf-parse: New file.
59370         * modules/unistdio/u32-snprintf: New file.
59371         * modules/unistdio/u32-sprintf: New file.
59372         * modules/unistdio/u32-vasnprintf: New file.
59373         * modules/unistdio/u32-vasprintf: New file.
59374         * modules/unistdio/u32-vsnprintf: New file.
59375         * modules/unistdio/u32-vsprintf: New file.
59376         * modules/unistdio/u32-u32-asnprintf: New file.
59377         * modules/unistdio/u32-u32-asprintf: New file.
59378         * modules/unistdio/u32-u32-snprintf: New file.
59379         * modules/unistdio/u32-u32-sprintf: New file.
59380         * modules/unistdio/u32-u32-vasnprintf: New file.
59381         * modules/unistdio/u32-u32-vasprintf: New file.
59382         * modules/unistdio/u32-u32-vsnprintf: New file.
59383         * modules/unistdio/u32-u32-vsprintf: New file.
59384         * modules/unistdio/ulc-asnprintf-tests: New file.
59385         * modules/unistdio/ulc-vasnprintf-tests: New file.
59386         * modules/unistdio/ulc-vasprintf-tests: New file.
59387         * modules/unistdio/ulc-vsnprintf-tests: New file.
59388         * modules/unistdio/ulc-vsprintf-tests: New file.
59389         * modules/unistdio/u8-asnprintf-tests: New file.
59390         * modules/unistdio/u8-vasnprintf-tests: New file.
59391         * modules/unistdio/u8-vasprintf-tests: New file.
59392         * modules/unistdio/u8-vsnprintf-tests: New file.
59393         * modules/unistdio/u8-vsprintf-tests: New file.
59394         * modules/unistdio/u16-asnprintf-tests: New file.
59395         * modules/unistdio/u16-vasnprintf-tests: New file.
59396         * modules/unistdio/u16-vasprintf-tests: New file.
59397         * modules/unistdio/u16-vsnprintf-tests: New file.
59398         * modules/unistdio/u16-vsprintf-tests: New file.
59399         * modules/unistdio/u32-asnprintf-tests: New file.
59400         * modules/unistdio/u32-vasnprintf-tests: New file.
59401         * modules/unistdio/u32-vasprintf-tests: New file.
59402         * modules/unistdio/u32-vsnprintf-tests: New file.
59403         * modules/unistdio/u32-vsprintf-tests: New file.
59404         * MODULES.html.sh (Unicode string functions): Add the new modules.
59405
59406 2007-07-01  Bruno Haible  <bruno@clisp.org>
59407
59408         * lib/sprintf.c (sprintf): Limit the available length estimation,
59409         to avoid address wraparound.
59410         * lib/vsprintf.c (vsprintf): Likewise.
59411         * modules/sprintf-posix (Dependencies): Add stdint.
59412         * modules/vsprintf-posix (Dependencies): Likewise.
59413
59414 2007-07-01  Bruno Haible  <bruno@clisp.org>
59415
59416         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59417         Windows PATH as well. Conservative double-quoting. Comments.
59418
59419 2007-07-01  Bruno Haible  <bruno@clisp.org>
59420             Eric Blake  <ebb9@byu.net>
59421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59422
59423         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59424         empty components in $PATH, denoting '.'.
59425
59426 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59427
59428         * gnulib-tool: Fix indentation.
59429         (func_create_megatestdir): Likewise.
59430         Report by Bruno Haible.
59431
59432 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59433
59434         Sync from Automake.
59435         * build-aux/gnupload: Fix shell portability issues with for loops.
59436         Report by Karl Berry.
59437
59438 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59439
59440         * build-aux/maint.mk (POURL): Use translationproject.org.
59441
59442 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59443             Bruno Haible  <bruno@clisp.org>
59444
59445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59446         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59447         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59448         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59449         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59450
59451 2007-06-27  Bruno Haible  <bruno@clisp.org>
59452
59453         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59454         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59455
59456 2007-06-26  Karl Berry  <karl@gnu.org>
59457
59458         * MODULES.html.sh: remove xreadlink-with-size.
59459
59460 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59463         method that I hope also handles the double-include problem noted
59464         by Bruno Haible in
59465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59466
59467 2007-06-23  Bruno Haible  <bruno@clisp.org>
59468
59469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59470         Don't let the 'mostlyclean' target fail if the last subdirectory could
59471         not be removed.
59472         Reported by Karl Berry.
59473
59474 2007-06-23  Bruno Haible  <bruno@clisp.org>
59475
59476         * gnulib-tool (echo): Add a speedier workaround for ksh.
59477         * tests/test-echo.sh: Likewise.
59478
59479 2007-06-23  Bruno Haible  <bruno@clisp.org>
59480
59481         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59482         * tests/test-echo.sh: Likewise.
59483
59484 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59485
59486         * gnulib-tool (IFS): Initialize early, so we don't set it to
59487         empty later.
59488         (self_abspathname): Rewrite algorithm to set it, reindent.
59489         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59490         (func_create_megatestdir): Merge some sed scripts.
59491
59492 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59495         exposed by Sun Studio 11 cc on Solaris 8.
59496
59497 2007-06-22  Bruno Haible  <bruno@clisp.org>
59498
59499         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59500         backslashes.
59501         * tests/test-echo.sh: New file.
59502
59503 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59504
59505         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59506         simplify `sed_replace_build_aux' scripts, they are portable but
59507         echoing them with `echo' is not.
59508         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59509
59510 2007-06-21  Karl Berry  <karl@gnu.org>
59511
59512         * config/srclist.txt: guess we can't handle the licenses via
59513         srclist at the moment.
59514
59515 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59516
59517         * MODULES.html.sh: Add include_next.
59518         * modules/include_next: New file.
59519
59520 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59523         INCLUDE_NEXT.
59524         (gl_CHECK_NEXT_HEADERS): New macro.
59525         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59526         the obsolescent gl_ABSOLUTE_HEADER.
59527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59528         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59529         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59530         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59531         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59532         * m4/math_h.m4 (gl_MATH_H): Likewise.
59533         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59534         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59535         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59536         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59537         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59538         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59543         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59544         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59545         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59546         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59547         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59549         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59550         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59551         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59552         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59553         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59554         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59555         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59556         * lib/float_.h: Likewise.
59557         * lib/inttypes_.h: Likewise.
59558         * lib/math_.h: Likewise.
59559         * lib/search_.h: Likewise.
59560         * lib/signal_.h: Likewise.
59561         * lib/stdint_.h: Likewise.
59562         * lib/stdio_.h: Likewise.
59563         * lib/stdlib_.h: Likewise.
59564         * lib/string_.h: Likewise.
59565         * lib/sys_stat_.h: Likewise.
59566         * lib/sys_time_.h: Likewise.
59567         * lib/time_.h: Likewise.
59568         * lib/unistd_.h: Likewise.
59569         * lib/wchar_.h: Likewise.
59570         * lib/wctype_.h: Likewise.
59571         * lib/dirent_.h: Likewise.
59572         * lib/iconv_.h: Likewise.
59573         * lib/locale_.h: Likewise.
59574         * lib/netinet_in_.h: Likewise.
59575         * lib/sys_select_.h: Likewise.
59576         * lib/sys_socket_.h: Likewise.
59577         * lib/sysexits_.h: Likewise.
59578         * modules/fcntl (Depends-on): Depend on include_next, not
59579         absolute_header.
59580         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59581         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59582         * modules/fchdir: Likewise.
59583         * modules/float: Likewise.
59584         * modules/iconv_open: Likewise.
59585         * modules/inttypes: Likewise.
59586         * modules/locale: Likewise.
59587         * modules/math: Likewise.
59588         * modules/netinet_in: Likewise.
59589         * modules/search: Likewise.
59590         * modules/signal: Likewise.
59591         * modules/stdint: Likewise.
59592         * modules/stdio: Likewise.
59593         * modules/stdlib: Likewise.
59594         * modules/string: Likewise.
59595         * modules/sys_select: Likewise.
59596         * modules/sys_socket: Likewise.
59597         * modules/sys_stat: Likewise.
59598         * modules/sys_time: Likewise.
59599         * modules/sysexits: Likewise.
59600         * modules/time: Likewise.
59601         * modules/unistd: Likewise.
59602         * modules/wchar: Likewise.
59603         * modules/wctype: Likewise.
59604         * modules/sys_stat: Change maintainer to "all".
59605         * modules/unistd: Likewise.
59606
59607 2007-06-20  Karl Berry  <karl@gnu.org>
59608
59609         * config/srclist.txt: track www changes in license files.
59610
59611 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59612
59613         * build-aux/bootstrap: Remove stray dot.
59614         Make sure build_aux settings are honored when linking
59615         gnulib_extra_files.
59616
59617 2007-06-19  Eric Blake  <ebb9@byu.net>
59618
59619         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59620         Allow compilation on cygwin.
59621
59622 2007-06-19  Jim Meyering  <jim@meyering.net>
59623
59624         xreadlink-with-size: Remove module.  No longer used.
59625         Ex-callers now use xreadlink or mreadlink-with-size.
59626         * modules/xreadlink-with-size: Remove module.
59627         * lib/xreadlink-with-size.c: Remove file.
59628         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59629         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59630         just before the function definition *is* accurate.
59631
59632         Eliminate one way canonicalize_filename_mode could exit.
59633         * lib/canonicalize.c (canonicalize_filename_mode):
59634         Use mreadlink_with_size, not xreadlink_with_size.
59635
59636 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59637
59638         Detect porting problems to FreeBSD/arm, which has time_t wider than
59639         long int.  Original problem reported for GNU diff by Xin Li in
59640         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59641         * modules/getdate (Depends-on): Add intprops, verify.
59642         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59643         is an integer type no wider than long int.
59644
59645 2007-06-18  Jim Meyering  <jim@meyering.net>
59646
59647         New module: mreadlink-with-size.
59648         * MODULES.html.sh: Add mreadlink-with-size.
59649         * modules/mreadlink-with-size: New module
59650         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59651         not xreadlink-with-size.
59652         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59653
59654 2007-06-16  Bruno Haible  <bruno@clisp.org>
59655
59656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59657         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59658         Reported by Gary V. Vaughan <gary@gnu.org>.
59659
59660 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59661
59662         Revamp lchown so that it lives in unistd.h where it belongs.
59663         * lib/lchown.h: Remove.
59664         * lib/dirchownmod.c: Don't include lib/lchown.h.
59665         * lib/fchownat.c: Likewise.
59666         * lib/openat.c: Likewise.
59667         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59668         does not follow symlinks.
59669         (EOPNOTSUPP): Define if not defined.
59670         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59671         is defined to 0.
59672         (lchown): New decl.
59673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59674         Do not check for lchown decl.
59675         Set REPLACE_LCHOWN.
59676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59677         REPLACE_LCHOWN.
59678         * modules/chown: Make it clear it follows symlinks.
59679         * modules/lchown: Make it clear it doesn't follow symlinks.
59680         (Files): Remove lib/lchown.h
59681         (Depends-on): Add unistd.
59682         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59683         (Include): Include <unistd.h>, not "lchown.h".
59684         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59685         REPLACE_LCHOWN.
59686
59687 2007-06-15  Jim Meyering  <jim@meyering.net>
59688
59689         Change license (GPL to LGPL) of fsusage and dependents.
59690         * modules/fsusage (License): Change to LGPL.
59691         * modules/full-read (License): Likewise.
59692         * modules/full-write (License): Likewise.
59693         * modules/safe-read (License): Likewise.
59694         * modules/safe-write (License): Likewise.
59695
59696 2007-06-14  Ben Pfaff  <blp@gnu.org>
59697
59698         Missing part of allocsa -> malloca transition.
59699         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59700         gl_MALLOCA.
59701
59702 2007-06-12  Bruno Haible  <bruno@clisp.org>
59703
59704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59705         to ia64, x86_64, i386.
59706         Reported by Eric Blake.
59707
59708 2007-06-12  Bruno Haible  <bruno@clisp.org>
59709
59710         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59711         cross-compiling to x86_64.
59712
59713 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59716         glitch reported by Ralf Wildenhues in
59717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59718
59719         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59720         Vin Shelton.
59721
59722 2007-06-11  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59725         replacement string.
59726         Reported by Eric Blake.
59727
59728 2007-06-10  Bruno Haible  <bruno@clisp.org>
59729
59730         Prepare vasnprintf code for use with Unicode strings.
59731         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59732         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59733         TYPE_U32_STRING.
59734         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59735         a_u32_string variants.
59736         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59737         * lib/printf-args.c: Don't include config.h and the specification
59738         header if PRINTF_FETCHARGS is already defined.
59739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59740         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59741         TYPE_U16_STRING, TYPE_U32_STRING.
59742         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59743         u16_directive, u16_directives, u32_directive, u32_directives): New
59744         types.
59745         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59746         New declarations.
59747         * lib/printf-parse.c: Don't include config.h and the specification
59748         header if PRINTF_PARSE is already defined. Eliminate the set of
59749         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59750         them now. Include c-ctype.h.
59751         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59752         directive and CHAR_T_ONLY_ASCII.
59753         * lib/vasnprintf.c: Don't include config.h and the specification header
59754         if VASNPRINTF is already defined.
59755         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59756         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59757         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59758         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59759         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59760         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59761         code accordingly.
59762         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59763         pad_ourselves also in this case, with the 'c' and 's' directives, and
59764         with a different notion of "width".
59765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59766
59767 2007-06-10  Bruno Haible  <bruno@clisp.org>
59768
59769         * modules/unistr/u32-mbsnlen: New file.
59770         * lib/unistr/u32-mbsnlen.c: New file.
59771
59772         * modules/unistr/u16-mbsnlen: New file.
59773         * lib/unistr/u16-mbsnlen.c: New file.
59774
59775         * modules/unistr/u8-mbsnlen: New file.
59776         * lib/unistr/u8-mbsnlen.c: New file.
59777
59778         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59779         declarations.
59780
59781 2007-06-10  Bruno Haible  <bruno@clisp.org>
59782
59783         * lib/string_.h (mbsnlen): New declaration.
59784         * lib/mbsnlen.c: New file.
59785         * m4/mbsnlen.m4: New file.
59786         * modules/mbsnlen: New file.
59787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59788         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59789         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59790
59791 2007-06-10  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59794
59795 2007-06-10  Bruno Haible  <bruno@clisp.org>
59796
59797         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59798         * lib/mbuiter.h: Likewise.
59799
59800 2007-06-10  Bruno Haible  <bruno@clisp.org>
59801
59802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59803         declaration.
59804
59805 2007-06-10  Karl Berry  <karl@gnu.org>
59806
59807         * config/srclist.txt: remove gettext entries, Bruno prefers
59808         to update individually.
59809
59810 2007-06-10  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59813         'maxlen'. Ensure only length + width bytes are allocated, not
59814         length + 1 + width.
59815
59816 2007-06-09  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59819         (CHAR_T): Remove macro.
59820         (VASNPRINTF): Update.
59821
59822 2007-06-09  Bruno Haible  <bruno@clisp.org>
59823
59824         * MODULES.html.sh (Unicode string functions): Add the new modules.
59825
59826         * modules/uniconv/u32-conv-to-enc: New file.
59827         * lib/uniconv/u32-conv-to-enc.c: New file.
59828         * modules/uniconv/u32-conv-to-enc-tests: New file.
59829         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59830
59831         * modules/uniconv/u16-conv-to-enc: New file.
59832         * lib/uniconv/u16-conv-to-enc.c: New file.
59833         * lib/uniconv/u-conv-to-enc.h: New file.
59834         * modules/uniconv/u16-conv-to-enc-tests: New file.
59835         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59836
59837         * modules/uniconv/u8-conv-to-enc: New file.
59838         * lib/uniconv/u8-conv-to-enc.c: New file.
59839         * modules/uniconv/u8-conv-to-enc-tests: New file.
59840         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59841
59842         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59843         u32_conv_to_encoding): New declarations.
59844
59845 2007-06-09  Bruno Haible  <bruno@clisp.org>
59846
59847         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59848
59849 2007-06-09  Bruno Haible  <bruno@clisp.org>
59850
59851         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59852         * modules/malloca: Renamed from modules/allocsa, updated.
59853         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59854         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59855         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59856         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59857         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59858         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59859         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59860         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59861         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59862         * modules/c-strcasestr (Depends-on): Update.
59863         * lib/c-strcasestr.c: Update.
59864         * modules/c-strstr (Depends-on): Update.
59865         * lib/c-strstr.c: Update.
59866         * modules/canonicalize-lgpl (Depends-on): Update.
59867         * lib/canonicalize-lgpl.c: Update.
59868         * modules/clean-temp (Depends-on): Update.
59869         * lib/clean-temp.c: Update.
59870         * modules/csharpcomp (Depends-on): Update.
59871         * lib/csharpcomp.c: Update.
59872         * modules/csharpexec (Depends-on): Update.
59873         * lib/csharpexec.c: Update.
59874         * modules/javacomp (Depends-on): Update.
59875         * lib/javacomp.c: Update.
59876         * modules/javaexec (Depends-on): Update.
59877         * lib/javaexec.c: Update.
59878         * modules/mbscasestr (Depends-on): Update.
59879         * lib/mbscasestr.c: Update.
59880         * modules/mbsstr (Depends-on): Update.
59881         * lib/mbsstr.c: Update.
59882         * modules/setenv (Depends-on): Update.
59883         * lib/setenv.c: Update.
59884         * modules/strcasestr (Depends-on): Update.
59885         * lib/strcasestr.c: Update.
59886         * modules/striconveha (Depends-on): Update.
59887         * lib/striconveha.c: Update.
59888         * modules/relocatable-prog-wrapper (Files): Update.
59889         * lib/relocwrapper.c: Update.
59890         * build-aux/install-reloc: Update.
59891         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59892
59893 2007-06-08  Bruno Haible  <bruno@clisp.org>
59894
59895         Port to uClibc.
59896         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59897         * lib/fpurge.c (fpurge): Likewise.
59898         * lib/freading.c (freading): Likewise.
59899         * lib/fseeko.c (rpl_fseeko): Likewise.
59900         * lib/fseterr.c (fseterr): Likewise.
59901         * lib/fwriting.c (fwriting): Likewise.
59902         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59903
59904 2007-06-08  Bruno Haible  <bruno@clisp.org>
59905
59906         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59907         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59908         * modules/gettext (Files): Add m4/intlmacosx.m4.
59909
59910 2007-06-07  Bruno Haible  <bruno@clisp.org>
59911
59912         * modules/localename-tests: New file.
59913         * tests/test-localename.c: New file.
59914
59915         New module 'localename'.
59916         * lib/localename.h: New file.
59917         * lib/localename.c: New file, from GNU gettext.
59918         * m4/localename.m4: New file.
59919         * modules/localename: New file.
59920
59921 2007-06-07  Bruno Haible  <bruno@clisp.org>
59922
59923         Work around the lack of <wchar.h> on some builds of uClibc.
59924         * doc/headers/wchar.texi: Update.
59925         * lib/wchar_.h: Include <wchar.h> only if it exists.
59926         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59927         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59928         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59929         doesn't exist.
59930         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59931         * modules/mbfile (Depends-on): Add wchar.
59932         * modules/mbiter (Depends-on): Likewise.
59933         * modules/mbuiter (Depends-on): Likewise.
59934         Reported by Simon Josefsson.
59935
59936 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         Work around problem reported by Steven M. Schweda in
59939         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59940         Tru64 5.1B with the Compaq compiler environment installed declares
59941         an 'isblank' function but does not define it in the C library.
59942         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59943         * lib/regex_internal.h (isblank): Likewise.
59944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59946
59947 2007-06-05  Bruno Haible  <bruno@clisp.org>
59948
59949         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59950         ia64.
59951         * modules/printf-safe: New file.
59952         * modules/fprintf-posix (Depends-on): Add printf-safe.
59953         * modules/printf-posix (Depends-on): Likewise.
59954         * modules/snprintf-posix (Depends-on): Likewise.
59955         * modules/sprintf-posix (Depends-on): Likewise.
59956         * modules/vasnprintf-posix (Depends-on): Likewise.
59957         * modules/vasprintf-posix (Depends-on): Likewise.
59958         * modules/vfprintf-posix (Depends-on): Likewise.
59959         * modules/vprintf-posix (Depends-on): Likewise.
59960         * modules/vsnprintf-posix (Depends-on): Likewise.
59961         * modules/vsprintf-posix (Depends-on): Likewise.
59962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59963         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59964         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59965         "no" on i386, x86_64, ia64.
59966         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59967         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59968         on i386, x86_64, ia64.
59969         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59971         on i386, x86_64, ia64.
59972         * tests/test-vasnprintf-posix.c: Include float.h.
59973         (LDBL80_WORDS): New macro.
59974         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59975         on i386, x86_64, ia64.
59976         * tests/test-vasprintf-posix.c: Include float.h.
59977         (LDBL80_WORDS): New macro.
59978         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59979         on i386, x86_64, ia64.
59980         * tests/test-snprintf-posix.c: Include float.h.
59981         * tests/test-sprintf-posix.c: Likewise.
59982         * tests/test-vsnprintf-posix.c: Likewise.
59983         * tests/test-vsprintf-posix.c: Likewise.
59984
59985 2007-06-05  Bruno Haible  <bruno@clisp.org>
59986
59987         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59989         non-IEEE numbers on i386, x86_64, ia64.
59990         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59991         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59992         * tests/test-isnanl.h: Include float.h.
59993         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59994
59995 2007-06-05  Bruno Haible  <bruno@clisp.org>
59996
59997         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59998         also the %a / %A. Handle the %a / %A code before this extra handling.
59999
60000 2007-06-05  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60003         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60004
60005 2007-06-05  Bruno Haible  <bruno@clisp.org>
60006
60007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60008         typo in variable name.
60009
60010 2007-06-05  Eric Blake  <ebb9@byu.net>
60011
60012         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60013         Reported by Simon Josefsson.
60014
60015 2007-06-04  Bruno Haible  <bruno@clisp.org>
60016
60017         Avoid test failures on some PowerPC platforms.
60018         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60019         Define differently for PowerPC.
60020         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60021         Reported by Gary V. Vaughan <gary@gnu.org>.
60022
60023 2007-06-02  Bruno Haible  <bruno@clisp.org>
60024
60025         Fix test-stdint failure on FreeBSD/ia64.
60026         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60027         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60028         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60029         * doc/headers/stdint.texi: Update.
60030
60031 2007-06-01  Bruno Haible  <bruno@clisp.org>
60032
60033         * tests/test-binary-io.c (main): Pass a third argument to open().
60034         Reported by Gary V. Vaughan <gary@gnu.org>.
60035
60036 2007-06-01  Bruno Haible  <bruno@clisp.org>
60037
60038         * doc/functions/frexpl.texi: Update for mingw.
60039
60040 2007-06-01  Bruno Haible  <bruno@clisp.org>
60041
60042         * tests/test-lseek.c (main): Disable test of errno for invalid third
60043         argument.
60044         * doc/functions/lseek.texi: Update.
60045         Reported by Gary V. Vaughan <gary@gnu.org>.
60046
60047 2007-05-28  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60050
60051 2007-05-31  Eric Blake  <ebb9@byu.net>
60052
60053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60054         cross compiling.
60055
60056 2007-05-30  Eric Blake  <ebb9@byu.net>
60057         and Bruno Haible  <bruno@clisp.org>
60058
60059         Work around mingw test failures exposed by m4-1.4.9b.
60060         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60061         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60062         moment.
60063
60064 2007-05-30  Bruno Haible  <bruno@clisp.org>
60065
60066         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60067         assuming that they are closed. Needed on HP-UX 11.
60068
60069 2007-05-29  Bruno Haible  <bruno@clisp.org>
60070
60071         Fix a problem with #include_next.
60072         * lib/dirent_.h: Split the double-inclusion guard.
60073         * lib/fcntl_.h: Likewise.
60074         * lib/float_.h: Likewise.
60075         * lib/iconv_.h: Likewise.
60076         * lib/inttypes_.h: Likewise.
60077         * lib/locale_.h: Likewise.
60078         * lib/math_.h: Likewise.
60079         * lib/netinet_in_.h: Likewise.
60080         * lib/search_.h: Likewise.
60081         * lib/signal_.h: Likewise.
60082         * lib/stdint_.h: Likewise.
60083         * lib/stdio_.h: Likewise.
60084         * lib/stdlib_.h: Likewise.
60085         * lib/string_.h: Likewise.
60086         * lib/sys_select_.h: Likewise.
60087         * lib/sys_socket_.h: Likewise.
60088         * lib/sys_stat_.h: Likewise.
60089         * lib/sys_time_.h: Likewise.
60090         * lib/sysexits_.h: Likewise.
60091         * lib/time_.h: Likewise.
60092         * lib/unistd_.h: Likewise.
60093         * lib/wchar_.h: Likewise.
60094         * lib/wctype_.h: Likewise.
60095
60096 2007-05-29  Bruno Haible  <bruno@clisp.org>
60097
60098         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60099         for the moment.
60100
60101 2007-05-29  Bruno Haible  <bruno@clisp.org>
60102
60103         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60104         invocation.
60105         Reported by Eric Blake.
60106
60107 2007-05-29  Bruno Haible  <bruno@clisp.org>
60108
60109         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60110         compiling case.
60111
60112 2007-05-29  Eric Blake  <ebb9@byu.net>
60113             Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60116         cross compiles.
60117
60118 2007-05-28  Eric Blake  <ebb9@byu.net>
60119
60120         * modules/closein-tests (test_closein_LDADD): Support test on
60121         cygwin with libtool.
60122
60123 2007-05-28  Bruno Haible  <bruno@clisp.org>
60124
60125         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60126         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60127         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60128         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60129         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60130         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60132         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60133         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60134
60135 2007-05-28  Eric Blake  <ebb9@byu.net>
60136
60137         Unconditionally include <config.h> in unit tests.
60138         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60139         * tests/test-allocsa.c, tests/test-arcfour.c,
60140         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60141         tests/test-array_list.c, tests/test-array_oset.c,
60142         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60143         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60144         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60145         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60146         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60147         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60148         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60149         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60150         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60151         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60152         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60153         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60154         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60155         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60156         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60157         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60158         test-md5.c, test-memmem.c, test-printf-posix.c,
60159         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60160         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60161         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60162         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60163         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60164         test-vasnprintf-posix2.c, test-vasnprintf.c,
60165         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60166         test-vfprintf-posix.c, test-vprintf-posix.c,
60167         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60168         test-xvasprintf.c: Likewise.
60169
60170 2007-05-28  Bruno Haible  <bruno@clisp.org>
60171
60172         * gnulib-tool (func_import): Remember the --with-tests command-line
60173         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60174         Reported by Eric Blake.
60175
60176 2007-05-28  Bruno Haible  <bruno@clisp.org>
60177
60178         * modules/ftell-tests: New file.
60179         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60180         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60181
60182         * lib/ftell.c: New file.
60183         * modules/ftell: New file.
60184         * m4/ftell.m4: New file.
60185         * doc/functions/ftell.texi: Update.
60186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60187         REPLACE_FTELL.
60188         * lib/stdio_.h (rpl_ftell): New declaration.
60189         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60190         REPLACE_FTELL.
60191
60192 2007-05-28  Eric Blake  <ebb9@byu.net>
60193
60194         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60195
60196 2007-05-28  Bruno Haible  <bruno@clisp.org>
60197
60198         * modules/fseek-tests: New file.
60199         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60200         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60201
60202         * lib/fseek.c: New file.
60203         * modules/fseek: New file.
60204         * m4/fseek.m4: New file.
60205         * doc/functions/fseek.texi: Update.
60206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60207         REPLACE_FSEEK.
60208         * lib/stdio_.h (rpl_fseek): New declaration.
60209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60210         REPLACE_FSEEK.
60211
60212 2007-05-28  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/stdio_.h (fflush): More comments.
60215
60216 2007-05-28  Bruno Haible  <bruno@clisp.org>
60217
60218         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60219         runtime test.
60220
60221 2007-05-28  Eric Blake  <ebb9@byu.net>
60222
60223         Improve lseek module.
60224         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60225         * lib/unistd_.h (lseek): Scale back link warning message.
60226         * tests/test-lseek.c: Beef up test.
60227         * tests/test-lseek.sh: Exercise more facets of lseek.
60228         Reported by Bruno Haible.
60229
60230 2007-05-28  Bruno Haible  <bruno@clisp.org>
60231
60232         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60233         to define.
60234
60235 2007-05-27  Bruno Haible  <bruno@clisp.org>
60236
60237         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60238
60239 2007-05-27  Bruno Haible  <bruno@clisp.org>
60240
60241         * modules/openmp: New file.
60242         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60243         Noah Misch.
60244
60245 2007-05-26  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/chdir-long (Depends-on): Add fchdir.
60248         * modules/chdir-safer (Depends-on): Likewise.
60249         * modules/fts (Depends-on): Likewise.
60250         * modules/fts-lgpl (Depends-on): Likewise.
60251         * modules/openat (Depends-on): Likewise.
60252         * modules/savewd (Depends-on): Likewise.
60253
60254 2007-05-24  Eric Blake  <ebb9@byu.net>
60255
60256         Fix lseek on mingw.
60257         * modules/lseek: New module.
60258         * m4/lseek.m4: New file.
60259         * lib/lseek.c: New file.
60260         * modules/lseek-tests: New file.
60261         * tests/test-lseek.c: New file.
60262         * tests/test-lseek.sh: New file.
60263         * MODULES.html.sh: Document lseek module.
60264         * modules/fflush (Depends-on): Add lseek, fseeko.
60265         * modules/fseeko (Depends-on): Likewise.
60266         * modules/ftello (Depends-on): Likewise.
60267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60268         broken.
60269         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60270         broken.
60271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60272         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60273         * lib/ftello.c (rpl_ftello): Likewise.
60274         * tests/test-fseeko.c (main): Test this.
60275         * tests/test-fseeko.sh: Likewise.
60276         * tests/test-ftello.c (main): Likewise.
60277         * tests/test-ftello.sh: Likewise.
60278         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60279         implies replacing fseek.
60280         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60281         HAVE_FTELLO.
60282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60283         * modules/unistd (Makefile.am): Likewise.
60284         * lib/unistd_.h (lseek): Declare a replacement.
60285         * doc/functions/lseek.texi (lseek): Document this fix.
60286         * doc/functions/fseek.texi (fseek): Likewise.
60287         * doc/functions/ftell.texi (ftell): Likewise.
60288
60289 2007-05-24  Bruno Haible  <bruno@clisp.org>
60290
60291         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60292         in the printed representation of a NaN.
60293         * tests/test-vasprintf-posix.c (test_function): Likewise.
60294         * tests/test-snprintf-posix.h (test_function): Likewise.
60295         * tests/test-sprintf-posix.h (test_function): Likewise.
60296         Reported by Eric Blake.
60297
60298 2007-05-23  Eric Blake  <ebb9@byu.net>
60299
60300         Fix fseeko/ftello on cygwin 1.5.24.
60301         * doc/functions/fseeko.texi (fseeko): Document the fix.
60302         * doc/functions/ftello.texi (ftello): Document the fix.
60303         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60304         * doc/functions/stdout.text (stdout): New file.
60305         * doc/functions/stderr.text (stderr): New file.
60306         * doc/gnulib.texi (Function Substitutes): Use new files.
60307         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60308         prior to 1.7.0.
60309         * tests/test-ftello.c (main): Likewise for ftello.
60310         * tests/test-fseeko.sh: New file.
60311         * tests/test-ftello.sh: New file.
60312         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60313         with seekable stdin.
60314         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60316         (gl_REPLACE_FSEEKO): New macro.
60317         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60318         * modules/fseeko (Files): Distribute fseeko.c.
60319         * modules/ftello (Files): Distribute ftello.c.
60320         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60321         mode.
60322         * lib/ftello.c (rpl_ftello): New file.
60323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60324         fseeko, ftello.
60325         (gl_STDIN_LARGE_OFFSET): New macro.
60326         * modules/stdio (Makefile.am): Perform the replacement.
60327         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60328
60329 2007-05-23  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60332         GNULIB_POSIXCHECK is defined.
60333
60334 2007-05-21  Bruno Haible  <bruno@clisp.org>
60335
60336         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60337         Check also the output for NaN arguments. When cross-compiling, guess
60338         no on IRIX.
60339         * lib/vasnprintf.c: Update comments.
60340         * tests/test-vasnprintf-posix.c (strisnan): New function.
60341         (test_function): Use it.
60342         * tests/test-vasprintf-posix.c (strisnan): New function.
60343         (test_function): Use it.
60344         * tests/test-snprintf-posix.h (strisnan): New function.
60345         (test_function): Use it.
60346         * tests/test-sprintf-posix.h (strisnan): New function.
60347         (test_function): Use it.
60348         Reported by Eric Blake.
60349
60350 2007-05-20  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60353         numbers that fails on BeOS.
60354         * doc/functions/frexpl.texi: Update.
60355
60356 2007-05-20  Jim Meyering  <jim@meyering.net>
60357
60358         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60359         forced upon us by glibc-2.6.
60360
60361 2007-05-20  Bruno Haible  <bruno@clisp.org>
60362
60363         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60364         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60365         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60366         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60367         NEED_PRINTF_INFINITE.
60368         (is_infinitel): New function.
60369         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60371         gl_PREREQ_VASNPRINTF_INFINITE.
60372         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60374         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60375         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60376         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60377         gl_PREREQ_VASNPRINTF_INFINITE.
60378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60385         * doc/functions/fprintf.texi: Update.
60386         * doc/functions/printf.texi: Update.
60387         * doc/functions/snprintf.texi: Update.
60388         * doc/functions/sprintf.texi: Update.
60389         * doc/functions/vfprintf.texi: Update.
60390         * doc/functions/vprintf.texi: Update.
60391         * doc/functions/vsnprintf.texi: Update.
60392         * doc/functions/vsprintf.texi: Update.
60393
60394 2007-05-20  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60397         was not found in libc.
60398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60399
60400 2007-05-20  Bruno Haible  <bruno@clisp.org>
60401
60402         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60403         printed as "-nan" instead of "nan".
60404         * tests/test-vasprintf-posix.c (test_function): Likewise.
60405         * tests/test-snprintf-posix.h (test_function): Likewise.
60406         * tests/test-sprintf-posix.h (test_function): Likewise.
60407         Needed for HP-UX 11.
60408
60409 2007-05-20  Jim Meyering  <jim@meyering.net>
60410
60411         Fix buggy test for the fchownat-deref bug.
60412         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60413         symlink required for the run-test.  Without it, this test would
60414         always declare that fchownat doesn't work, and client code would
60415         unnecessarily use the replacement function with fixed libc.
60416         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60417         Reported by Greg Schafer.
60418
60419 2007-05-19  Bruno Haible  <bruno@clisp.org>
60420
60421         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60422         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60423         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60424         Needed for IRIX 6.5 and Solaris 2.5.1.
60425
60426 2007-05-19  Bruno Haible  <bruno@clisp.org>
60427
60428         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60429         (test_function): Skip tests involving -0.0 on platforms where
60430         -0.0 = 0.0.
60431         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60432         (test_function): Skip tests involving -0.0 on platforms where
60433         -0.0 = 0.0.
60434         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60435         (test_function): Skip tests involving -0.0 on platforms where
60436         -0.0 = 0.0.
60437         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60438         (test_function): Skip tests involving -0.0 on platforms where
60439         -0.0 = 0.0.
60440         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60441         tests.
60442         * tests/test-printf-posix.h (test_function): Likewise.
60443         * tests/test-printf-posix.output: Remove all -0.0 related results.
60444         Needed for IRIX 6.5.
60445
60446 2007-05-19  Bruno Haible  <bruno@clisp.org>
60447
60448         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60449         printed as "nan0x7fffffff" instead of "nan".
60450         * tests/test-vasprintf-posix.c (test_function): Likewise.
60451         * tests/test-snprintf-posix.h (test_function): Likewise.
60452         * tests/test-sprintf-posix.h (test_function): Likewise.
60453         * tests/test-fprintf-posix.h (NaN): Remove macro.
60454         (test_function): Remove all NaN related tests.
60455         * tests/test-printf-posix.h (NaN): Remove macro.
60456         (test_function): Remove all NaN related tests.
60457         * tests/test-printf-posix.output: Remove all NaN related results.
60458         Needed for IRIX 6.5.
60459
60460 2007-05-19  Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60464
60465 2007-05-19  Bruno Haible  <bruno@clisp.org>
60466
60467         * lib/float_.h: New file.
60468         * m4/float_h.m4: New file.
60469         * modules/float: New file.
60470         * modules/isnanl (Dependencies): Add float.
60471         * modules/isnanl-nolibm (Dependencies): Likewise.
60472         * modules/mathl (Dependencies): Likewise.
60473         * modules/printf-frexpl (Dependencies): Likewise.
60474         * modules/signbit (Dependencies): Likewise.
60475         * modules/vasnprintf (Dependencies): Likewise.
60476         * doc/headers/float.texi: Update.
60477
60478 2007-05-19  Jim Meyering  <jim@meyering.net>
60479
60480         * lib/utimens.c (gl_futimens): Rename from futimens,
60481         now that glibc-2.6 declares futimens.
60482         * lib/utimens.h: Likewise.
60483
60484 2007-05-19  Bruno Haible  <bruno@clisp.org>
60485
60486         Avoid test failures on mingw.
60487         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60488         * tests/test-printf-posix.sh: Likewise.
60489         * tests/test-vfprintf-posix.sh: Likewise.
60490         * tests/test-vprintf-posix.sh: Likewise.
60491
60492 2007-05-19  Bruno Haible  <bruno@clisp.org>
60493
60494         Fix *printf result for NaN, Inf, -0.0 on mingw.
60495         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60496         * lib/vasnprintf.c: Include math.h and isnan.h.
60497         (is_infinite_or_zero): New function.
60498         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60499         values in the %f, %F, %e, %E, %g, %G directives.
60500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60502         gl_PRINTF_INFINITE and test its result. Invoke
60503         gl_PREREQ_VASNPRINTF_INFINITE.
60504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60511         * doc/functions/fprintf.texi: Update.
60512         * doc/functions/printf.texi: Update.
60513         * doc/functions/snprintf.texi: Update.
60514         * doc/functions/sprintf.texi: Update.
60515         * doc/functions/vfprintf.texi: Update.
60516         * doc/functions/vprintf.texi: Update.
60517         * doc/functions/vsnprintf.texi: Update.
60518         * doc/functions/vsprintf.texi: Update.
60519
60520 2007-05-19  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60523         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60524         Instead of multiplying with 10^k, set extra_zeroes to k.
60525         (scale10_round_long_double): Remove function.
60526
60527 2007-05-18  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60530         introduced on 2007-05-06.
60531
60532 2007-05-18  Bruno Haible  <bruno@clisp.org>
60533
60534         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60535         %g directives.
60536         * tests/test-vasprintf-posix.c (test_function): Likewise.
60537         * tests/test-snprintf-posix.h (test_function): Likewise.
60538         * tests/test-sprintf-posix.h (test_function): Likewise.
60539
60540 2007-05-18  Bruno Haible  <bruno@clisp.org>
60541
60542         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60543         (strmatch): New function.
60544         (test_function): Test the %f directive on numbers of various exponents.
60545         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60546         (strmatch): New function.
60547         (test_function): Test the %f directive on numbers of various exponents.
60548         * tests/test-snprintf-posix.h (strmatch): New function.
60549         (test_function): Test the %f directive on numbers of various exponents.
60550         * tests/test-sprintf-posix.h (strmatch): New function.
60551         (test_function): Test the %f directive on numbers of various exponents.
60552         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60553         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60554         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60555         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60556
60557 2007-05-18  Bruno Haible  <bruno@clisp.org>
60558
60559         Add support for 'long double' number output.
60560         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60561         * lib/vasnprintf.c: Include math.h and float+.h.
60562         (mp_limb_t): New type.
60563         (GMP_LIMB_BITS): New macro.
60564         (mp_twolimb_t): New type.
60565         (GMP_TWOLIMB_BITS): New macro.
60566         (mpn_t): New type.
60567         (multiply, divide, convert_to_decimal, decode_long_double,
60568         scale10_round_long_double, scale10_round_decimal_long_double,
60569         floorlog10l): New functions.
60570         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60571         for the %f, %F, %e, %E, %g, %G directives.
60572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60574         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60575         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60583         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60584         * modules/snprintf-posix (Depends-on): Likewise.
60585         * modules/sprintf-posix (Depends-on): Likewise.
60586         * modules/vasnprintf-posix (Depends-on): Likewise.
60587         * modules/vasprintf-posix (Depends-on): Likewise.
60588         * modules/vfprintf-posix (Depends-on): Likewise.
60589         * modules/vsnprintf-posix (Depends-on): Likewise.
60590         * modules/vsprintf-posix (Depends-on): Likewise.
60591         * modules/vasnprintf (Files): Add lib/float+.h.
60592         * doc/functions/fprintf.texi: Update.
60593         * doc/functions/printf.texi: Update.
60594         * doc/functions/snprintf.texi: Update.
60595         * doc/functions/sprintf.texi: Update.
60596         * doc/functions/vfprintf.texi: Update.
60597         * doc/functions/vprintf.texi: Update.
60598         * doc/functions/vsnprintf.texi: Update.
60599         * doc/functions/vsprintf.texi: Update.
60600
60601 2007-05-18  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60604
60605 2007-05-18  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60608         for printing 64-bit integers. Needed for mingw.
60609
60610 2007-05-18  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60613         gl_FUNC_FREXPL_WORKS.
60614         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60615
60616 2007-05-18  Bruno Haible  <bruno@clisp.org>
60617
60618         * modules/frexpl-nolibm-tests: New file.
60619
60620         * modules/frexpl-nolibm: New file.
60621         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60622
60623 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60626         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60627         GCC 4.2, which otherwise issues a lot of warnings.
60628         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60629         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60630         Likewise.
60631         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60632         * modules/iconv_open (iconv.h): Likewise.
60633         * modules/locale (locale.h): Likewise.
60634         * modules/netinet_in (netinet/in.h): Likewise.
60635         * modules/sys_select (sys_select.h): Likewise.
60636         * modules/sys_socket (sys/socket.h): Likewise.
60637         * modules/sys_stat (sys/stat.h): Likewise.
60638         * modules/sysexits (sysexits.h): Likewise.
60639         * modules/unistd (unistd.h): Likewise.
60640
60641 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60642
60643         * modules/closein-tests (Makefile.am): Distribute
60644         `test-closein.sh'.
60645
60646 2007-05-17  Bruno Haible  <bruno@clisp.org>
60647
60648         * tests/test-printf-posix.output: Renamed from
60649         tests/test-fprintf-posix.out.
60650         * modules/fprintf-posix-tests: Update.
60651         * modules/printf-posix-tests: Update.
60652         * modules/vfprintf-posix-tests: Update.
60653         * modules/vprintf-posix-tests: Update.
60654         * tests/test-fprintf-posix.sh: Update.
60655         * tests/test-printf-posix.sh: Update.
60656         * tests/test-vfprintf-posix.sh: Update.
60657         * tests/test-vprintf-posix.sh: Update.
60658         Reported by Ralf Wildenhues.
60659
60660 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60663         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60664         GCC 4.2, which otherwise issues a lot of warnings.
60665         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60666         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60667         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60668         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60669         it should no longer be needed.
60670         * lib/string_.h: Likewise.
60671         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60672         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60673         * modules/inttypes (inttypes.h): Likewise.
60674         * modules/math (math.h): Likewise.
60675         * modules/search (search.h): Likewise.
60676         * modules/signal (signal.h): Likewise.
60677         * modules/stdint (stdint.h): Likewise.
60678         * modules/stdio (stdio.h): Likewise.
60679         * modules/stdlib (stdlib.h): Likewise.
60680         * modules/string (string.h): Likewise.
60681         * modules/sys_time (sys/time.h): Likewise.
60682         * modules/time (time.h): Likewise.
60683         * modules/wchar (wchar.h): Likewise.
60684         * modules/wctype (wtype.h): Likewise.
60685
60686 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60687
60688         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60689
60690 2007-05-13  Bruno Haible  <bruno@clisp.org>
60691
60692         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60693         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60694         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60695         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60696         (gl_PREREQ_STRTOK_R): Don't require it here.
60697
60698 2007-05-13  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60701         when used in C++ mode.
60702
60703 2007-05-12  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/linebuffer.h: Tweak doc.
60706         * lib/linebuffer.c: Likewise.
60707
60708 2007-05-12  James Youngman  <jay@gnu.org>
60709
60710         * lib/linebuffer.c (readlinebuffer_delim): New function,
60711         like readlinebuffer, but use a caller-specified delimiter.
60712         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60713         as the delimiter.
60714         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60715
60716 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60717
60718         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60719         * modules/openat (Files): Remove openat-die.c.
60720         (Depends-on): Add openat-die.
60721         * modules/openat-die: New module.
60722
60723 2007-05-06  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60726         Update with info about Cygwin.
60727         * doc/functions/fprintf.texi: Update.
60728         * doc/functions/printf.texi: Update.
60729         * doc/functions/snprintf.texi: Update.
60730         * doc/functions/sprintf.texi: Update.
60731         * doc/functions/vfprintf.texi: Update.
60732         * doc/functions/vprintf.texi: Update.
60733         * doc/functions/vsnprintf.texi: Update.
60734         * doc/functions/vsprintf.texi: Update.
60735         Reported by Eric Blake.
60736
60737 2007-05-06  Bruno Haible  <bruno@clisp.org>
60738
60739         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60740         padding ourselves for the floating-point directives.
60741         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60744         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60745         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60753         * tests/test-snprintf-posix.h (test_function): Also check the width
60754         and some flags in the %f directive.
60755         * tests/test-sprintf-posix.h (test_function): Likewise.
60756         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60757         * tests/test-vasprintf-posix.c (test_function): Likewise.
60758         * doc/functions/fprintf.texi: Update.
60759         * doc/functions/printf.texi: Update.
60760         * doc/functions/snprintf.texi: Update.
60761         * doc/functions/sprintf.texi: Update.
60762         * doc/functions/vfprintf.texi: Update.
60763         * doc/functions/vprintf.texi: Update.
60764         * doc/functions/vsnprintf.texi: Update.
60765         * doc/functions/vsprintf.texi: Update.
60766
60767 2007-05-06  Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60770         pass the ' flag character to sprintf or snprintf.
60771         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60774         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60775         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60783         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60784         flag.
60785         * tests/test-sprintf-posix.h (test_function): Likewise.
60786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60787         * tests/test-vasprintf-posix.c (test_function): Likewise.
60788         * doc/functions/fprintf.texi: Update.
60789         * doc/functions/printf.texi: Update.
60790         * doc/functions/snprintf.texi: Update.
60791         * doc/functions/sprintf.texi: Update.
60792         * doc/functions/vfprintf.texi: Update.
60793         * doc/functions/vprintf.texi: Update.
60794         * doc/functions/vsnprintf.texi: Update.
60795         * doc/functions/vsprintf.texi: Update.
60796
60797 2007-05-01  Bruno Haible  <bruno@clisp.org>
60798
60799         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60800
60801 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60802
60803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60804         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60805
60806 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60807
60808         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60809         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60811
60812 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60813
60814         * lib/argp-help.c (struct hol_entry): New member `ord'.
60815         (HOL_ENTRY_PTRCMP): Use ord for comparison
60816         (hol_sort): Initialize ord.
60817
60818 2007-05-01  Bruno Haible  <bruno@clisp.org>
60819
60820         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60821         Reported by Eric Blake.
60822         * doc/gnulib.texi (Function Substitutes): Update.
60823
60824 2007-05-01  Bruno Haible  <bruno@clisp.org>
60825
60826         * doc/functions.texi: Remove file, now redundant through
60827         doc/functions/*.texi.
60828
60829 2007-05-01  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/argp (Depends-on): Add sleep.
60832
60833 2007-05-01  Bruno Haible  <bruno@clisp.org>
60834
60835         * modules/sleep-tests: New file.
60836         * tests/test-sleep.c: New file.
60837
60838         * modules/sleep: New file.
60839         * lib/sleep.c: New file.
60840         * m4/sleep.m4: New file.
60841         * lib/unistd_.h (sleep): New declaration.
60842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60843         HAVE_SLEEP.
60844         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60845         * doc/functions/sleep.texi: Document the sleep module.
60846
60847 2007-05-01  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/sigprocmask.h: Remove file.
60850         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60851         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60852         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60853         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60855         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60856         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60857         HAVE_SIGSET_T as a shell variable.
60858         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60859         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60860         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60861         (Depends-on): Add signal. Remove verify.
60862         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60863         (Include): Mention <signal.h> instead of sigprocmask.h.
60864         * NEWS: Mention the change.
60865         * lib/fatal-signal.c: Don't include sigprocmask.h.
60866
60867 2007-05-01  Bruno Haible  <bruno@clisp.org>
60868
60869         * modules/signal: New file.
60870         * lib/signal_.h: New file.
60871         * m4/signal_h.m4: New file.
60872
60873 2007-05-01  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60876         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60877         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60878         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60879
60880 2007-05-01  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60883         configure time.
60884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60885         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60886         * modules/sys_stat (Makefile.am): Substitute their values into
60887         sys/stat.h.
60888
60889 2007-05-01  Bruno Haible  <bruno@clisp.org>
60890
60891         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60892         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60893         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60894
60895 2007-05-01  Bruno Haible  <bruno@clisp.org>
60896
60897         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60898         'assert' module here.
60899
60900 2007-05-01  Bruno Haible  <bruno@clisp.org>
60901
60902         * doc/functions/*.texi: New files.
60903         * doc/functions/google-ranking.txt: New file.
60904         * doc/gnulib.texi (Function Substitutes): New chapter.
60905         (ctime, inet_ntoa): Remove sections.
60906         * doc/ctime.texi: Remove file.
60907         * doc/inet_ntoa.texi: Remove file.
60908         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60909         dependencies.
60910         (%.info): New rule, specifying a --reference-limit.
60911
60912 2007-05-01  Bruno Haible  <bruno@clisp.org>
60913
60914         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60915
60916 2007-05-01  Bruno Haible  <bruno@clisp.org>
60917
60918         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60919         the portability of 'mkdir' to mingw systems.
60920
60921 2007-05-01  Bruno Haible  <bruno@clisp.org>
60922
60923         * doc/headers/google-ranking.txt: New file.
60924
60925 2007-04-30  Eric Blake  <ebb9@byu.net>
60926
60927         Prefer fseeko to fseek.
60928         * modules/getpass (Depends-on): Add fseeko.
60929         * lib/getpass.c (getpass): Use fseeko, not fseek.
60930
60931 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60932
60933         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60934         assumes the sorting is stable, while most qsort implementations
60935         are not.  Use argument addresses to ensure they never compare as
60936         equal.
60937
60938         * tests/test-argp-2.sh (usage-indent test): Fix output
60939         (func_compare): Restore diff options
60940         * tests/test-argp.c: Restore #include "progname.h"
60941
60942 2007-04-29  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60946         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60948         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60949         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60950         (TESTS, check_PROGRAMS): Add test-snprintf.
60951         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60952         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60953         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60954         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60955         assertions that fail on HP-UX, OSF/1, or IRIX.
60956         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60957
60958 2007-04-29  Bruno Haible  <bruno@clisp.org>
60959
60960         * MODULES.html.sh (posix_functions): Remove 'contents'.
60961
60962 2007-04-29  Karl Berry  <karl@gnu.org>
60963
60964         * config/srclist.txt (gendocs_template_min): new entry.
60965
60966 2007-04-29  Bruno Haible  <bruno@clisp.org>
60967
60968         Work around fpurge bug on BSD systems.
60969         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60971         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60972         fpurge to rpl_fpurge if the system already has this function.
60973         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60974         the case where the system already has this function. Correct invariants
60975         on BSD systems.
60976         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60977         BSD systems.
60978
60979 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60980
60981         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60982         proposed by Sven Verdoolaege.
60983
60984         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60985         options.
60986         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60987         (usage and help tests): Update
60988
60989 2007-04-29  Bruno Haible  <bruno@clisp.org>
60990
60991         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60992         Print more information in case of failure. Disable a test on BeOS.
60993
60994 2007-04-29  Bruno Haible  <bruno@clisp.org>
60995
60996         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60997         This helps debugging on systems on which no gdb is available.
60998
60999 2007-04-29  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/freading.h: Improve comments.
61002         * lib/fwriting.h: Likewise.
61003         * tests/test-freading.c (main): Don't check freading immediately after
61004         repositioning. Needed for glibc.
61005
61006 2007-04-29  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/freading.c (freading): Trivial simplification.
61009
61010 2007-04-28  Bruno Haible  <bruno@clisp.org>
61011
61012         * tests/test-fwriting.c (main): Also test the interaction between
61013         fflush and fwriting.
61014         * modules/fwriting-tests (Depends-on): Add fflush.
61015
61016         * tests/test-freading.c (main): Also test the interaction between
61017         fflush and freading.
61018         * modules/freading-tests (Depends-on): Add fflush.
61019
61020 2007-04-28  Bruno Haible  <bruno@clisp.org>
61021
61022         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61023         fseeko and ftello.
61024         Suggested by Eric Blake.
61025
61026 2007-04-28  Jim Meyering  <jim@meyering.net>
61027
61028         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61029         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61030         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61031
61032 2007-04-27  Eric Blake  <ebb9@byu.net>
61033
61034         * doc/headers/assert.texi (assert.h): Document assert module use.
61035
61036 2007-04-27  Bruno Haible  <bruno@clisp.org>
61037
61038         * doc/headers/*.texi: New files.
61039         * doc/gnulib.texi (Header File Substitutes): New chapter.
61040         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61041         dependencies.
61042         (standards.info ,standards.html, standards.dvi): Update dependencies.
61043         (mostlyclean, clean): New targets.
61044
61045 2007-04-27  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61048         * modules/sysexits (Files, Makefile.am): Update.
61049
61050         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61051         * modules/sys_socket (Files, Makefile.am): Update.
61052
61053         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61054         * modules/sys_stat (Files, Makefile.am): Update.
61055
61056 2007-04-27  Eric Blake  <ebb9@byu.net>
61057
61058         * lib/freading.h: Improve comments.
61059         * lib/fwriting.h: Likewise.
61060         * lib/fflush.c: Likewise.
61061
61062         Fix closein for mingw.
61063         * modules/closein-tests: Add tests for closein.
61064         * tests/test-closein.c: New file.
61065         * tests/test-closein.sh: Likewise.
61066         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61067         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61068
61069 2007-04-27  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61072         version is < 6.
61073         * lib/math_.h [__DECC]: Likewise.
61074         * lib/stdio_.h [__DECC]: Likewise.
61075         * lib/stdlib_.h [__DECC]: Likewise.
61076         * lib/string_.h [__DECC]: Likewise.
61077         * lib/time_.h [__DECC]: Likewise.
61078         * lib/wchar_.h [__DECC]: Likewise.
61079         * lib/wctype_.h [__DECC]: Likewise.
61080
61081 2007-04-27  Bruno Haible  <bruno@clisp.org>
61082
61083         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61084
61085 2007-04-27  Bruno Haible  <bruno@clisp.org>
61086
61087         * lib/fflush.c: Add comments.
61088         * modules/fpurge-tests (Depends-on): Add fflush.
61089         * modules/freadable-tests (Depends-on): Likewise.
61090         * modules/fwritable-tests (Depends-on): Likewise.
61091
61092 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61093
61094         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61095         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61096         Report by Bruno Haible <bruno@clisp.org>.
61097
61098 2007-04-26  Eric Blake  <ebb9@byu.net>
61099
61100         Fix fflush on mingw.
61101         * modules/fflush (Depends-on): Add freading.
61102         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61103         but unread data.
61104
61105 2007-04-26  Eric Blake  <ebb9@byu.net>
61106         and Bruno Haible  <bruno@clisp.org>
61107
61108         Implement freading and fwriting.
61109         * lib/freading.c: New file.
61110         * lib/freading.h: Likewise.
61111         * m4/freading.m4: Likewise.
61112         * modules/freading: Likewise.
61113         * modules/freading-tests: Likewise.
61114         * tests/test-freading.c: Likewise.
61115         * lib/fwriting.c: New file.
61116         * lib/fwriting.h: Likewise.
61117         * m4/fwriting.m4: Likewise.
61118         * modules/fwriting: Likewise.
61119         * modules/fwriting-tests: Likewise.
61120         * tests/test-fwriting.c: Likewise.
61121         * MODULES.html.sh (File stream based Input/Output): Mention them.
61122
61123 2007-04-26  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61126         'long' when we assume it.
61127         Suggested by Eric Blake.
61128
61129 2007-04-26  Bruno Haible  <bruno@clisp.org>
61130
61131         Ensure fseeko, ftello are declared on glibc systems.
61132         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61133         * modules/fseeko (configure.ac-early): Likewise.
61134         * modules/ftello (configure.ac-early): Likewise.
61135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61136         AC_FUNC_FSEEKO for this.
61137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61138         (gl_CHECK_FSEEKO): Remove macro.
61139
61140 2007-04-26  Bruno Haible  <bruno@clisp.org>
61141
61142         * tests/test-fflush.c (main): Also check the ftell result after
61143         fflush and fseek/fseeko.
61144         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61145         file descriptor position cache in the stream.
61146         * lib/fseeko.c (rpl_fseeko): Likewise.
61147
61148 2007-04-26  Bruno Haible  <bruno@clisp.org>
61149
61150         * modules/fflush-tests (Depends-on): Add fseeko.
61151
61152 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61153             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61154
61155         * lib/argz_.h: ensure error_t definition is obtained in same
61156         mechanism system argz.h would have.
61157         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61158         argz facilities are known bad.  Err on the side of caution if
61159         cross-compiling.
61160
61161 2007-04-25  Eric Blake  <ebb9@byu.net>
61162
61163         * lib/fpurge.c (includes): Use stdlib.h for free.
61164         * tests/test-fflush.c (main): Also test fflush-fseeko.
61165
61166 2007-04-25  Bruno Haible  <bruno@clisp.org>
61167
61168         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61169         * lib/fseeko.c: New file.
61170         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61171         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61172         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61173         gl_FUNC_FSEEKO.
61174         (gl_FUNC_FSEEKO): Invoke it.
61175         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61176         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61177         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61178
61179 2007-04-25  Bruno Haible  <bruno@clisp.org>
61180
61181         * modules/fflush (Depends-on): Add ftello.
61182
61183 2007-04-25  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/ftello-tests: New file.
61186         * tests/test-ftello.c: New file.
61187
61188         * modules/ftello: New file.
61189         * m4/ftello.m4: New file.
61190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61191         HAVE_FTELLO.
61192         * lib/stdio_.h (ftello): New declaration.
61193         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61194         HAVE_FTELLO.
61195
61196 2007-04-25  Bruno Haible  <bruno@clisp.org>
61197
61198         * modules/fseeko-tests: New file.
61199         * tests/test-fseeko.c: New file.
61200
61201         * modules/fseeko: New file.
61202         * m4/fseeko.m4: New file.
61203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61204         HAVE_FSEEKO.
61205         * lib/stdio_.h (fseeko): New declaration.
61206         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61207         HAVE_FSEEKO.
61208
61209 2007-04-25  Bruno Haible  <bruno@clisp.org>
61210
61211         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61212
61213 2007-04-25  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61216         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61217         * tests/test-unistd.c: Likewise.
61218         * tests/test-fcntl.c: Likewise.
61219
61220 2007-04-23  Eric Blake  <ebb9@byu.net>
61221
61222         * lib/fflush.c: Fix missing include.
61223         Reported by Bruno Haible.
61224
61225 2007-04-23  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61228         Reported by Eric Blake.
61229
61230 2007-04-23  Bruno Haible  <bruno@clisp.org>
61231
61232         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61233
61234 2007-04-23  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61237
61238 2007-04-23  Bruno Haible  <bruno@clisp.org>
61239
61240         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61241         Needed on HP-UX 11.
61242
61243 2007-04-16  Eric Blake  <ebb9@byu.net>
61244
61245         Make fflush rely on fpurge.
61246         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61247         open coding all variants.
61248         * modules/fflush (Depends-on): Add fpurge and unistd.
61249         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61251
61252         Fix --with-tests compilation on cygwin.
61253         * modules/argmatch-tests (Makefile.am): List gnulib library first
61254         in LDADD.
61255         * modules/argp-tests (Makefile.am): Likewise.
61256         * modules/array-list-tests (Makefile.am): Likewise.
61257         * modules/array-oset-tests (Makefile.am): Likewise.
61258         * modules/avltree-list-tests (Makefile.am): Likewise.
61259         * modules/avltree-oset-tests (Makefile.am): Likewise.
61260         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61261         * modules/carray-list-tests (Makefile.am): Likewise.
61262         * modules/dirname-tests (Makefile.am): Likewise.
61263         * modules/frexp-tests (Makefile.am): Likewise.
61264         * modules/isnanl-tests (Makefile.am): Likewise.
61265         * modules/linked-list-tests (Makefile.am): Likewise.
61266         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61267         * modules/lock-tests (Makefile.am): Likewise.
61268         * modules/rbtree-list-tests (Makefile.am): Likewise.
61269         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61270         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61271         * modules/tls-tests (Makefile.am): Likewise.
61272         * modules/tsearch-tests (Makefile.am): Likewise.
61273         * modules/xvasprintf-tests (Makefile.am): Likewise.
61274
61275         Fix fpurge for cygwin.
61276         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61277         value.
61278         * modules/fpurge-tests (Depends-on): Clean up trash.
61279
61280 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61281
61282         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61283
61284         * m4/autobuild.m4: Re-indent.
61285
61286 2007-04-13  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/fpurge-tests: New file.
61289         * tests/test-fpurge.c: New file.
61290
61291         * modules/fpurge: New file.
61292         * lib/fpurge.h: New file.
61293         * lib/fpurge.c: New file.
61294         * m4/fpurge.m4: New file.
61295
61296 2007-04-13  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/fbufmode-tests: New file.
61299         * tests/test-fbufmode.c: New file.
61300
61301         * modules/fbufmode: New file.
61302         * lib/fbufmode.h: New file.
61303         * lib/fbufmode.c: New file.
61304         * m4/fbufmode.m4: New file.
61305
61306 2007-04-13  Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/fwritable-tests: New file.
61309         * tests/test-fwritable.c: New file.
61310
61311         * modules/fwritable: New file.
61312         * lib/fwritable.h: New file.
61313         * lib/fwritable.c: New file.
61314         * m4/fwritable.m4: New file.
61315
61316 2007-04-13  Bruno Haible  <bruno@clisp.org>
61317
61318         * modules/freadable-tests: New file.
61319         * tests/test-freadable.c: New file.
61320
61321         * modules/freadable: New file.
61322         * lib/freadable.h: New file.
61323         * lib/freadable.c: New file.
61324         * m4/freadable.m4: New file.
61325
61326 2007-04-13  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61329         MOSTLYCLEANFILES.
61330
61331 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61332
61333         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61334         gzip bootstrap.conf to avoid dragging in i18n machinery.
61335         (gnulib_tool_option): Use it.
61336
61337 2007-04-13  Bruno Haible  <bruno@clisp.org>
61338
61339         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61340         %F directives.
61341         * tests/test-vasprintf-posix.c (test_function): Likewise.
61342         * tests/test-snprintf-posix.h (test_function): Likewise.
61343         * tests/test-sprintf-posix.h (test_function): Likewise.
61344         * tests/test-fprintf-posix.h (test_function): Likewise.
61345         * tests/test-printf-posix.h (test_function): Likewise.
61346         * tests/test-fprintf-posix.out: Likewise.
61347
61348 2007-04-13  Bruno Haible  <bruno@clisp.org>
61349
61350         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61351         * modules/tls-tests (configure.ac): Likewise.
61352         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61353
61354 2007-04-13  Bruno Haible  <bruno@clisp.org>
61355
61356         * lib/tls.c (glthread_tls_get): Fix return type.
61357         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61358
61359 2007-04-12  Eric Blake  <ebb9@byu.net>
61360
61361         * modules/gettime (Depends-on): Remove gettime.
61362         Reported by Dmitry V. Levin.
61363
61364 2007-04-12  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/fflush (Include): Mention <stdio.h>.
61367         * modules/strtoimax (Include): Mention <inttypes.h>.
61368         * modules/strtoumax (Include): Likewise.
61369
61370 2007-04-12  Eric Blake  <ebb9@byu.net>
61371
61372         * .cvsignore: New file.
61373         * .gitignore: Likewise.
61374
61375 2007-04-12  Bruno Haible  <bruno@clisp.org>
61376
61377         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61378         not before, since $(LDADD) often contains libgnu.a.
61379         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61380         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61381         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61382         Needed on Cygwin.
61383
61384 2007-04-12  Eric Blake  <ebb9@byu.net>
61385
61386         Work around glibc's failure to flush stdin on fclose.
61387         * lib/closein.c (close_stdin): Flush stdin before closing.
61388
61389         Work around glibc's failure to reset seekable stdin on exit.
61390         * modules/closein: New module.
61391         * lib/closein.c: New file.
61392         * lib/closein.h: Likewise.
61393         * m4/closein.m4: Likewise.
61394         * MODULES.html.sh (File stream based Input/Output): Document it.
61395
61396 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61397
61398         * gnulib-tool: Rename generated 'autobuild' script to
61399         'do-autobuild' in --create-megatestdir output.
61400
61401         * doc/gnulib.texi (Build robot for gnulib): Fix.
61402
61403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61404
61405         * modules/sysexits (Depends-on): Add absolute-header.
61406
61407 2007-04-12  Eric Blake  <ebb9@byu.net>
61408
61409         No need to preserve errno on success.
61410         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61411         Reported by Bruno Haible.
61412
61413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61414
61415         * MODULES.html.sh (Support for maintaining and releasing
61416         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61417
61418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61419
61420         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61421
61422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61423
61424         * modules/autobuild: New module.
61425
61426         * m4/autobuild.m4: New file.
61427
61428 2007-04-11  Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61431         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61458         Reported by Eric Blake.
61459
61460 2007-04-11  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61463
61464 2007-04-10  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61467         for NaN and Infinity. Needed on FreeBSD 6.1.
61468         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61469         regarding results for "%010a" of Infinity and NaN.
61470         * tests/test-vasprintf-posix.c (test_function): Likewise.
61471         * tests/test-snprintf-posix.h (test_function): Likewise.
61472         * tests/test-sprintf-posix.h (test_function): Likewise.
61473         * tests/test-fprintf-posix.h (test_function): Likewise.
61474         * tests/test-printf-posix.h (test_function): Likewise.
61475         * tests/test-fprintf-posix.out: Likewise.
61476
61477 2007-04-10  Bruno Haible  <bruno@clisp.org>
61478
61479         * modules/locale-tests: New file.
61480         * tests/test-locale.c: New file.
61481
61482         * modules/locale: New file.
61483         * lib/locale_.h: New file.
61484         * m4/locale_h.m4: New file.
61485
61486 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61487             Bruno Haible  <bruno@clisp.org>
61488
61489         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61490         be determined, test for availability of the copysignf, copysign,
61491         copysignl functions.
61492         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61493         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61494         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61495
61496 2007-04-09  Eric Blake  <ebb9@byu.net>
61497
61498         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61499         * modules/stdio (Makefile.am): Support fflush.
61500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61501         * modules/fflush: New file.
61502         * lib/fflush.c: Likewise.
61503         * m4/fflush.m4: Likewise.
61504         * modules/fflush-tests: New test.
61505         * tests/test-fflush.c: Likewise.
61506         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61507
61508 2007-04-06  Bruno Haible  <bruno@clisp.org>
61509
61510         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61511         (VASNPRINTF): Use signbit for faster determination whether to print a
61512         minus sign.
61513         * modules/vasnprintf (Files): Remove lib/float+.h.
61514         * modules/fprintf-posix (Depends-on): Add signbit.
61515         * modules/snprintf-posix (Depends-on): Likewise.
61516         * modules/sprintf-posix (Depends-on): Likewise.
61517         * modules/vasnprintf-posix (Depends-on): Likewise.
61518         * modules/vasprintf-posix (Depends-on): Likewise.
61519         * modules/vfprintf-posix (Depends-on): Likewise.
61520         * modules/vsnprintf-posix (Depends-on): Likewise.
61521         * modules/vsprintf-posix (Depends-on): Likewise.
61522
61523 2007-04-06  Bruno Haible  <bruno@clisp.org>
61524
61525         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61526         * tests/test-frexpl.c (main): Likewise.
61527         * tests/test-ldexpl.c (main): Likewise.
61528         * modules/frexp-tests (Depends-on): Add signbit.
61529         * modules/frexpl-tests (Depdends-on): Likewise.
61530         * modules/ldexpl-tests (Depdends-on): Likewise.
61531
61532 2007-04-06  Bruno Haible  <bruno@clisp.org>
61533
61534         * modules/signbit-tests: New file.
61535         * tests/test-signbit.c: New file.
61536
61537         * modules/signbit: New file.
61538         * lib/signbitf.c: New file.
61539         * lib/signbitd.c: New file.
61540         * lib/signbitl.c: New file.
61541         * m4/signbit.m4: New file.
61542         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61543         (signbit): New macro.
61544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61545         REPLACE_SIGNBIT.
61546         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61547         REPLACE_FREXPL into math.h.
61548
61549 2007-04-06  Bruno Haible  <bruno@clisp.org>
61550
61551         * modules/isnanf-nolibm-tests: New file.
61552         * tests/test-isnanf.c: New file.
61553
61554         * modules/isnanf-nolibm: New file.
61555         * lib/isnanf.h: New file.
61556         * lib/isnanf.c: New file.
61557         * lib/isnan.c: Consider the USE_FLOAT macro.
61558         * m4/isnanf.m4: New file.
61559
61560 2007-04-06  Bruno Haible  <bruno@clisp.org>
61561
61562         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61563         (Link): New section.
61564
61565         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61566
61567 2007-04-06  Bruno Haible  <bruno@clisp.org>
61568
61569         Assume the 'long double' type.
61570         * m4/longdouble.m4: Remove file.
61571         * config/srclist.txt: Don't mention longdouble.m4.
61572         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61573         * lib/float+.h: Likewise.
61574         * lib/frexp.c: Likewise.
61575         * lib/printf-args.h: Likewise.
61576         * lib/printf-args.c: Likewise.
61577         * lib/printf-frexp.c: Likewise.
61578         * lib/printf-parse.c: Likewise.
61579         * lib/vasnprintf.c: Likewise.
61580         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61581         * m4/intl.m4: Likewise.
61582         * m4/isnanl.m4: Likewise.
61583         * m4/printf.m4: Likewise.
61584         * m4/printf-frexpl.m4: Likewise.
61585         * m4/vasnprintf.m4: Likewise.
61586         * modules/allocsa (Files): Remove m4/longdouble.m4.
61587         * modules/gettext (Files): Likewise.
61588         * modules/relocatable-prog-wrapper (Files): Likewise.
61589         * modules/vasnprintf (Files): Likewise.
61590         * modules/isnanl (Files): Likewise.
61591         (Include): Simplify.
61592         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61593         (Include): Simplify.
61594         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61595         (Include): Simplify.
61596         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61597         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61598         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61599         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61600         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61601         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61602         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61603         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61604         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61605         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61606         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61607         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61608         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61609         * tests/test-isnanl.c: Likewise.
61610         * tests/test-snprintf-posix.h: Likewise.
61611         * tests/test-sprintf-posix.h: Likewise.
61612         * tests/test-vasnprintf-posix.c: Likewise.
61613         * tests/test-vasnprintf-posix2.c: Likewise.
61614         * tests/test-vasprintf-posix.c: Likewise.
61615
61616 2007-04-06  Bruno Haible  <bruno@clisp.org>
61617
61618         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61619         * lib/math_.h [__DECC]: Include the overridden include file through
61620         #include_next, outside the double-inclusion guard.
61621         * lib/stdio_.h [__DECC]: Likewise.
61622         * lib/stdlib_.h [__DECC]: Likewise.
61623         * lib/string_.h [__DECC]: Likewise.
61624         * lib/time_.h [__DECC]: Likewise.
61625         * lib/wchar_.h [__DECC]: Likewise.
61626         * lib/wctype_.h [__DECC]: Likewise.
61627         * lib/inttypes_.h [__DECC]: Likewise.
61628         Reported by Albert Chin <china@thewrittenword.com> in
61629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61630
61631 2007-04-04  Eric Blake  <ebb9@byu.net>
61632
61633         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61634         1.5.x.
61635
61636 2007-04-04  Bruno Haible  <bruno@clisp.org>
61637
61638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61639         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61640
61641 2007-04-04  Bruno Haible  <bruno@clisp.org>
61642
61643         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61644         results for "%010a" of Infinity and NaN.
61645         * tests/test-vasprintf-posix.c (test_function): Likewise.
61646         * tests/test-snprintf-posix.h (test_function): Likewise.
61647         * tests/test-sprintf-posix.h (test_function): Likewise.
61648         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61649         * tests/test-printf-posix.h (test_function): Likewise.
61650         * tests/test-fprintf-posix.out: Update.
61651         Needed for FreeBSD 6.1.
61652
61653 2007-04-04  Bruno Haible  <bruno@clisp.org>
61654
61655         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61656         directly used by the gnulib modules nor by gnulib-tool.
61657
61658 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         * DEPENDENCIES: Give overall description of version dependency
61661         desirability.  Use more-typical names for apps.
61662         Add shell, coreutils, diffutils, grep, tar, gzip.
61663
61664 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61665
61666         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61667
61668 2007-04-04  Karl Berry  <karl@gnu.org>
61669
61670         * MODULES.html.sh (func_module): missing '.
61671
61672 2007-04-03  Bruno Haible  <bruno@clisp.org>
61673
61674         * modules/argmatch-tests (Makefile.am): New variable
61675         test_argmatch_LDADD.
61676         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61677         * modules/array-list-tests (Makefile.am): New variable
61678         test_array_list_LDADD.
61679         * modules/array-oset-tests (Makefile.am): New variable
61680         test_array_oset_LDADD.
61681         * modules/avltree-list-tests (Makefile.am): New variable
61682         test_avltree_list_LDADD.
61683         * modules/avltree-oset-tests (Makefile.am): New variable
61684         test_avltree_oset_LDADD.
61685         * modules/avltreehash-list-tests (Makefile.am): New variable
61686         test_avltreehash_list_LDADD.
61687         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61688         test_canonicalize_lgpl_LDADD.
61689         * modules/carray-list-tests (Makefile.am): New variable
61690         test_carray_list_LDADD.
61691         * modules/dirname-tests (Makefile.am): New variable
61692         test_dirname_LDADD.
61693         * modules/linked-list-tests (Makefile.am): New variable
61694         test_linked_list_LDADD.
61695         * modules/linkedhash-list-tests (Makefile.am): New variable
61696         test_linkedhash_list_LDADD.
61697         * modules/rbtree-list-tests (Makefile.am): New variable
61698         test_rbtree_list_LDADD.
61699         * modules/rbtree-oset-tests (Makefile.am): New variable
61700         test_rbtree_oset_LDADD.
61701         * modules/rbtreehash-list-tests (Makefile.am): New variable
61702         test_rbtreehash_list_LDADD.
61703         * modules/xvasprintf-tests (Makefile.am): New variable
61704         test_xvasprintf_LDADD.
61705         Reported by Eric Blake.
61706
61707 2007-04-03  Eric Blake  <ebb9@byu.net>
61708
61709         * DEPENDENCIES: Weaken m4 requirements.
61710
61711 2007-04-03  Bruno Haible  <bruno@clisp.org>
61712
61713         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61714         * modules/isnanl-tests (configure.ac): Likewise.
61715
61716 2007-04-03  Ben Pfaff  <blp@gnu.org>
61717
61718         * modules/iconv_open: Add $(srcdir)/ to source directory
61719         references in Makefile fragments that call gperf, to fix VPATH
61720         builds.
61721
61722 2007-04-03  Bruno Haible  <bruno@clisp.org>
61723
61724         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61725         * lib/ldexpl.c: Undo last change.
61726
61727 2007-04-03  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/printf-frexpl (Depends-on): Undo last change.
61730         (Files): Add m4/ldexpl.m4.
61731
61732 2007-04-03  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61735         * modules/isnanl (Link): New section.
61736
61737         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61738         * modules/frexp (Link): New section.
61739
61740         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61741         * modules/frexpl (Link): New section.
61742
61743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61744         * modules/ldexpl (Link): New section.
61745
61746 2007-04-03  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/TEMPLATE-EXTENDED: New file.
61749         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61750
61751 2007-04-03  Bruno Haible  <bruno@clisp.org>
61752
61753         * DEPENDENCIES: New file.
61754         Suggested by Simon Josefsson.
61755
61756 2007-04-03  Bruno Haible  <bruno@clisp.org>
61757
61758         * doc/gnulib.texi: Escape @.
61759
61760 2007-04-03  James Youngman  <jay@gnu.org>
61761         and Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61764         birthtime on all systems that have birthtime, not just those which
61765         use st_birthtimensec rather than st_birthtim.  Putting zero in
61766         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61767         that the birth time is not available for files on an NFS mount.
61768
61769 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61770
61771         * modules/memxor: Move back from crypto/, suggested by Bruno.
61772         * modules/crypto/hmac-sha1: Fix memxor dependency.
61773
61774         * modules/crypto/gc: Moved from ../.
61775
61776 2007-04-02  Eric Blake  <ebb9@byu.net>
61777
61778         * lib/ldexpl.c (includes): Avoid libm.
61779
61780         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61781
61782 2007-04-02  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61785         on IRIX.
61786
61787 2007-04-02  Bruno Haible  <bruno@clisp.org>
61788
61789         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61790         x86 or x86_64 platforms running MacOS X.
61791         Reported by Ryan Schmidt <@ryandesign.com>.
61792
61793 2007-04-02  Bruno Haible  <bruno@clisp.org>
61794
61795         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61796         i386.
61797
61798 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61799
61800         * modules/crypto/arcfour: Moved from ../.
61801         * modules/crypto/arcfour-tests: Moved from ../.
61802         * modules/crypto/arctwo: Moved from ../.
61803         * modules/crypto/arctwo-tests: Moved from ../.
61804         * modules/crypto/des: Moved from ../.
61805         * modules/crypto/des-tests: Moved from ../.
61806         * modules/crypto/gc-arcfour: Moved from ../.
61807         * modules/crypto/gc-arcfour-tests: Moved from ../.
61808         * modules/crypto/gc-arctwo: Moved from ../.
61809         * modules/crypto/gc-arctwo-tests: Moved from ../.
61810         * modules/crypto/gc-des: Moved from ../.
61811         * modules/crypto/gc-des-tests: Moved from ../.
61812         * modules/crypto/gc-hmac-md5: Moved from ../.
61813         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61814         * modules/crypto/gc-hmac-sha1: Moved from ../.
61815         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61816         * modules/crypto/gc-md2: Moved from ../.
61817         * modules/crypto/gc-md2-tests: Moved from ../.
61818         * modules/crypto/gc-md4: Moved from ../.
61819         * modules/crypto/gc-md4-tests: Moved from ../.
61820         * modules/crypto/gc-md5: Moved from ../.
61821         * modules/crypto/gc-md5-tests: Moved from ../.
61822         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61823         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61824         * modules/crypto/gc-random: Moved from ../.
61825         * modules/crypto/gc-rijndael: Moved from ../.
61826         * modules/crypto/gc-rijndael-tests: Moved from ../.
61827         * modules/crypto/gc-sha1: Moved from ../.
61828         * modules/crypto/gc-sha1-tests: Moved from ../.
61829         * modules/crypto/gc-tests: Moved from ../.
61830         * modules/crypto/hmac-md5: Moved from ../.
61831         * modules/crypto/hmac-md5-tests: Moved from ../.
61832         * modules/crypto/hmac-sha1: Moved from ../.
61833         * modules/crypto/hmac-sha1-tests: Moved from ../.
61834         * modules/crypto/md2: Moved from ../.
61835         * modules/crypto/md2-tests: Moved from ../.
61836         * modules/crypto/md4: Moved from ../.
61837         * modules/crypto/md4-tests: Moved from ../.
61838         * modules/crypto/md5: Moved from ../.
61839         * modules/crypto/md5-tests: Moved from ../.
61840         * modules/crypto/memxor: Moved from ../.
61841         * modules/crypto/rijndael: Moved from ../.
61842         * modules/crypto/rijndael-tests: Moved from ../.
61843         * modules/crypto/sha1: Moved from ../.
61844
61845 2007-03-30  James Youngman  <jay@gnu.org>
61846
61847         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61848         rename() to change the ctime of a file (because ctime is unaffected
61849         by rename on jfs2 on AIX 5.1).
61850         (main): Start by doing cleanup, in case a previous run failed leaving
61851         test files behind.
61852
61853 2007-03-31  Bruno Haible  <bruno@clisp.org>
61854
61855         Support old proprietary implementations of iconv.
61856         * modules/iconv_open: New file.
61857         * lib/iconv_.h: New file.
61858         * m4/iconv_h.m4: New file.
61859         * lib/iconv_open.c: New file.
61860         * lib/iconv_open-aix.gperf: New file.
61861         * lib/iconv_open-hpux.gperf: New file.
61862         * lib/iconv_open-irix.gperf: New file.
61863         * lib/iconv_open-osf.gperf: New file.
61864         * m4/iconv_open.m4: New file.
61865         * modules/linebreak (Depends-on): Add iconv_open.
61866         * modules/striconv (Depends-on): Likewise.
61867         * modules/striconveh (Depends-on): Likewise.
61868         * modules/unicodeio (Depends-on): Likewise.
61869         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61870         (iconv_t)(-1).
61871         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61872         conversion if cd is (iconv_t)(-1).
61873         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61874         is not possible.
61875
61876 2007-03-31  Bruno Haible  <bruno@clisp.org>
61877
61878         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61879         work on Solaris either. Protect also second use of "autodetect_jp".
61880
61881 2007-03-31  Bruno Haible  <bruno@clisp.org>
61882
61883         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61884         the function is not present.
61885
61886 2007-03-31  Bruno Haible  <bruno@clisp.org>
61887
61888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61889         the function is not present.
61890
61891 2007-03-31  Bruno Haible  <bruno@clisp.org>
61892
61893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61894         a bug in HP-UX iconv_open().
61895
61896 2007-03-31  Bruno Haible  <bruno@clisp.org>
61897
61898         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61899         (Mathematics <math.h>): New section, add fpieee.
61900         (Input/output <stdio.h>): Add fseterr.
61901         (Mathematics <math.h>): New section, add printf-frexp.
61902         (Container data structures): Add sublist.
61903         (Core language properties): Add fpucw, inline.
61904         (Functions for greatest-width integer types <inttypes.h>): Add
61905         imaxabs, imaxdiv, inttypes.
61906         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61907         isnanl-nolibm, ldexp.
61908         (Mathematics <math.h>): New section, add printf-frexpl.
61909         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61910         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61911         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61912         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61913         (Unicode string functions): Add unistr/u*-mbtoucr.
61914         (Java): Add javacomp-script, javaexec-script.
61915         (C#): Add csharpcomp-script, csharpexec-script.
61916         (Support for building libraries and executables): Add havelib,
61917         relocatable-*.
61918         (Support for maintaining and releasing projects): Renamed from
61919         'Support for maintaining and release projects'. Add announce-gen.
61920
61921 2007-03-31  Bruno Haible  <bruno@clisp.org>
61922
61923         * README: Talk primarily about git.
61924         (git and CVS): Renamed from CVS.
61925         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61926         gnulib is available through git.
61927         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61928
61929 2007-03-30  Bruno Haible  <bruno@clisp.org>
61930
61931         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61932         * lib/poll_.h: Likewise.
61933         * lib/stat_.h: Likewise.
61934         * lib/sys_time_.h: Likewise.
61935         * lib/sysexit_.h: Likewise.
61936         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61937         * lib/stdbool_.h: Likewise.
61938         * lib/byteswap_.h: Add double-inclusion guard.
61939
61940 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61941
61942         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61943
61944 2007-03-30  Karl Berry  <karl@gnu.org>
61945
61946         * config/srclist-update: double space after USA in the license
61947         substitution, since that's how it's usually (?) written.
61948
61949 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61952         reported by Bruno Haible.
61953
61954 2007-03-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61957         a bug in AIX iconv().
61958
61959 2007-03-29  Bruno Haible  <bruno@clisp.org>
61960
61961         * modules/ldexpl-tests: New file.
61962         * tests/test-ldexpl.c: New file.
61963
61964 2007-03-29  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/ldexpl.c: Include fpucw.h.
61967         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61968         multiplication.
61969         * modules/ldexpl (Depends-on): Add fpucw.
61970
61971 2007-03-29  Bruno Haible  <bruno@clisp.org>
61972
61973         * modules/ldexpl: New file.
61974         * m4/ldexpl.m4: New file.
61975         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61976         set.
61977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61978         REPLACE_LDEXPL.
61979         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61980         REPLACE_LDEXPL.
61981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61982         gl_FUNC_LDEXPL_WORKS.
61983         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61984         * modules/mathl (Files): Remove lib/ldexpl.c.
61985         (Depends-on): Add ldexpl.
61986
61987 2007-03-29  Bruno Haible  <bruno@clisp.org>
61988
61989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61990
61991 2007-03-29  Bruno Haible  <bruno@clisp.org>
61992
61993         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61994         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61995         and possibly also HP-UX.
61996         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61997         work on AIX, IRIX, HP-UX, OSF/1.
61998         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61999         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62000         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62001         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62002         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62003         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62004
62005 2007-03-29  Bruno Haible  <bruno@clisp.org>
62006
62007         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62008
62009 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62012         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62013
62014 2007-03-29  Eric Blake  <ebb9@byu.net>
62015
62016         * lib/acl-internal.h: Remove redundant include.
62017         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62018         Cygwin when a file is locked.
62019
62020 2007-03-29  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62023         file.
62024         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62025
62026 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62029         try to remove a parent directory if the child couldn't be removed
62030         (except for the first rmdir, which could fail because the child
62031         doesn't exist).  Problem reported by Jeff Blaine in
62032         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62033
62034 2007-03-28  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/striconveh.c (utf8conv_carefully): New function.
62037         (mem_cd_iconveh_internal): Invoke it.
62038
62039 2007-03-28  Bruno Haible  <bruno@clisp.org>
62040
62041         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62042         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62043         input.
62044         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62045         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62046         unistr/u8-uctomb.
62047
62048 2007-03-28  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/unistr/u8-mbtoucr: New file.
62051         * lib/unistr/u8-mbtoucr.c: New file.
62052         * modules/unistr/u16-mbtoucr: New file.
62053         * lib/unistr/u16-mbtoucr.c: New file.
62054         * modules/unistr/u16-mbtoucr: New file.
62055         * lib/unistr/u16-mbtoucr.c: New file.
62056         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62057
62058 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62059             Bruno Haible  <bruno@clisp.org>
62060
62061         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62062         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62063         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62064
62065         * m4/stdio_h.m4: Add stubs for vasprintf too.
62066
62067         * modules/stdio: Support vasprintf in sed command.
62068
62069         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62070         vasprintf.h.  Add stdio module indicator.
62071
62072         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62073         vasprintf.h.
62074
62075         * lib/vasprintf.h: File removed.
62076
62077         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62078         * lib/vasprintf.c: Ditto.
62079         * lib/xvasprintf.c: Ditto.
62080         * tests/test-vasprintf-posix.c: Ditto.
62081         * tests/test-vasprintf.c: Ditto.
62082
62083 2007-03-27  Bruno Haible  <bruno@clisp.org>
62084
62085         Make vasnprintf multithread-safe.
62086         * lib/vasnprintf.c (decimal_point_char): New function.
62087         (VASNPRINTF): Use it.
62088         Suggested by Simon Josefsson.
62089
62090 2007-03-27  Eric Blake  <ebb9@byu.net>
62091
62092         Support sub-second birthtime on cygwin.
62093         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62094         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62095         (get_stat_birthtime): Also work with st_birthtim.
62096
62097 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62100         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62101         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62102         (get_stat_birthtime_ns): Simplify compile-time tests.
62103         (get_stat_birthtime): Change the API to look like
62104         get_stat_mtime etc., except return a negative tv_nsec on error.
62105         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62106         Don't check for "spare" fields.
62107         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62108         or for struct stat.st_birthtime, as these tests aren't used.
62109         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62110
62111 2007-03-27  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/stat-time.h: Include <sys/stat.h>.
62114
62115 2007-03-27  James Youngman  <jay@gnu.org>
62116
62117         * lib/stat-time.h (get_stat_birthtime): New function for
62118           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62119         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62120           and its variants.
62121         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62122         * modules/stat-time-test: New file.
62123         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62124
62125 2007-03-26  Bruno Haible  <bruno@clisp.org>
62126
62127         Better support of signalling NaNs.
62128         * lib/atanl.c: Include isnanl.h.
62129         (atanl): Perform test for NaN at the beginning of the function and
62130         through a call to isnanl.
62131         * lib/cosl.c: Include isnanl.h.
62132         (cosl): Perform test for NaN at the beginning of the function and
62133         through a call to isnanl.
62134         * lib/ldexpl.c: Include isnanl.h.
62135         (ldexpl): Perform test for NaN through a call to isnanl.
62136         * lib/logl.c: Include isnanl.h.
62137         (logl): Perform test for NaN at the beginning of the function and
62138         through a call to isnanl.
62139         * lib/sinl.c: Include isnanl.h.
62140         (sinl): Perform test for NaN at the beginning of the function and
62141         through a call to isnanl.
62142         * lib/sqrtl.c: Include isnanl.h.
62143         (sqrtl): Perform test for NaN at the beginning of the function and
62144         through a call to isnanl.
62145         * lib/tanl.c: Include isnanl.h.
62146         (tanl): Perform test for NaN at the beginning of the function and
62147         through a call to isnanl.
62148         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62149         * modules/mathl (Depends-on): Add isnanl.
62150
62151 2007-03-26  Eric Blake  <ebb9@byu.net>
62152
62153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62154         regression in logic sense of previous patch.
62155
62156 2007-03-26  Bruno Haible  <bruno@clisp.org>
62157
62158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62159         unportable shell command "if ! ...".
62160         Reported by Ralf Wildenhues.
62161
62162 2007-03-25  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62165         <sysexits.h> file, and only add EX_CONFIG.
62166         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62167         absolute file name and whether it is sufficient. Substitute also
62168         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62169         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62170         ABSOLUTE_SYSEXITS_H into sysexits.h.
62171
62172 2007-03-25  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62175         hints is NULL.
62176
62177 2007-03-25  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62180         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62181
62182 2007-03-25  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/vasnprintf.c: Include langinfo.h.
62185         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62186         multithread-safe.
62187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62196         Reported by Simon Josefsson.
62197
62198 2007-03-25  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62201         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62202         * modules/vasnprintf (Depends-on): Add stdint.
62203
62204 2007-03-25  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/fpieee: New file.
62207         * m4/fpieee.m4: New file.
62208         * modules/isnan-nolibm (Depends-on): Add fpieee.
62209         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62210         * modules/isnanl (Depends-on): Add fpieee.
62211
62212 2007-03-25  Bruno Haible  <bruno@clisp.org>
62213
62214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62215
62216 2007-03-25  Bruno Haible  <bruno@clisp.org>
62217
62218         Avoid test failures on IRIX 6.5.
62219         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62220         (main): Use it.
62221         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62222         macros.
62223         (main): Use them.
62224
62225 2007-03-25  Bruno Haible  <bruno@clisp.org>
62226
62227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62228         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62229         exists but doesn't work.
62230         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62231         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62233         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62234         math.h.
62235
62236 2007-03-25  Bruno Haible  <bruno@clisp.org>
62237
62238         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62239         returns inf. Needed on IRIX 6.5.
62240
62241 2007-03-25  Bruno Haible  <bruno@clisp.org>
62242
62243         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62244         (main): Use isnanl instead of x != x idiom.
62245         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62246
62247         * tests/test-frexp.c: Include isnan.h.
62248         (main): Use isnan instead of x != x idiom.
62249         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62250
62251 2007-03-25  Bruno Haible  <bruno@clisp.org>
62252
62253         * tests/test-frexp.c (NaN): New function/macro.
62254         (main): Use it instead of 0.0 / 0.0.
62255         * tests/test-isnan.c (NaN): New function/macro.
62256         (main): Use it instead of 0.0 / 0.0.
62257         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62258         (test_function): Use it instead of 0.0 / 0.0.
62259         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62260         (test_function): Use it instead of 0.0 / 0.0.
62261         * tests/test-snprintf-posix.h (NaN): New function/macro.
62262         (test_function): Use it instead of 0.0 / 0.0.
62263         * tests/test-sprintf-posix.h (NaN): New function/macro.
62264         (test_function): Use it instead of 0.0 / 0.0.
62265         * tests/test-fprintf-posix.h (NaN): New function/macro.
62266         (test_function): Use it instead of 0.0 / 0.0.
62267         * tests/test-printf-posix.h (NaN): New function/macro.
62268         (test_function): Use it instead of 0.0 / 0.0.
62269
62270         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62271
62272 2007-03-25  Bruno Haible  <bruno@clisp.org>
62273
62274         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62275
62276 2007-03-25  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/regexec.c (merge_state_with_log): Make static.
62279
62280 2007-03-25  Bruno Haible  <bruno@clisp.org>
62281
62282         * lib/trigl.c (kernel_rem_pio2): Make static.
62283
62284 2007-03-25  Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/sincosl.c (sincosl_table): Make static.
62287
62288 2007-03-25  Bruno Haible  <bruno@clisp.org>
62289
62290         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62291         if the compiler does not support C99.
62292
62293 2007-03-25  Bruno Haible  <bruno@clisp.org>
62294
62295         * modules/time (Makefile.am): Ensure all rule action lines start with a
62296         tab.
62297
62298 2007-03-24  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/tsearch-tests: New file.
62301         * tests/test-tsearch.sh: New file.
62302         * tests/test-tsearch.c: New file, mostly copied from glibc.
62303
62304         * modules/search-tests: New file.
62305         * tests/test-search.c: New file.
62306
62307         * modules/search: New file.
62308         * lib/search_.h: New file, incorporating lib/tsearch.h.
62309         * m4/search_h.m4: New file.
62310         * lib/tsearch.h: Remove file.
62311         * lib/tsearch.c: Include search.h instead of tsearch.h.
62312         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62313         HAVE_TSEARCH.
62314         * modules/tsearch (Files): Remove lib/tsearch.h.
62315         (Depends-on): Add search.
62316         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62317         (Include): Change tsearch.h into search.h.
62318
62319 2007-03-24  Bruno Haible  <bruno@clisp.org>
62320
62321         * modules/fpucw: New file.
62322         * lib/fpucw.h: New file.
62323         * lib/frexp.c: Include fpucw.h.
62324         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62325         (FUNC): Use them.
62326         * lib/printf-frexp.c: Include fpucw.h.
62327         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62328         (FUNC): Use them.
62329         * lib/vasnprintf.c: Include fpucw.h.
62330         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62331         'long double' calculations.
62332         * tests/test-frexpl.c: Include fpucw.h.
62333         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62334         * tests/test-printf-frexpl.c: Include fpucw.h.
62335         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62336         * modules/frexpl (Depends-on): Add fpucw.
62337         * modules/printf-frexpl (Depends-on): Likewise.
62338         * modules/fprintf-posix (Depends-on): Likewise.
62339         * modules/snprintf-posix (Depends-on): Likewise.
62340         * modules/sprintf-posix (Depends-on): Likewise.
62341         * modules/vasnprintf-posix (Depends-on): Likewise.
62342         * modules/vasprintf-posix (Depends-on): Likewise.
62343         * modules/vfprintf-posix (Depends-on): Likewise.
62344         * modules/vsnprintf-posix (Depends-on): Likewise.
62345         * modules/vsprintf-posix (Depends-on): Likewise.
62346         * modules/frexpl-tests (Depends-on): Likewise.
62347         * modules/printf-frexpl-tests (Depends-on): Likewise.
62348
62349 2007-03-24  Bruno Haible  <bruno@clisp.org>
62350
62351         * lib/float+.h: New file.
62352         * lib/isnan.c: Include float+.h.
62353         (SIZE): New macro.
62354         (FUNC): Compare only SIZE bytes of the value.
62355         * lib/vasnprintf.c: Include float+.h.
62356         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62357         SIZEOF_LDBL or SIZEOF_DBL bytes.
62358         * modules/isnan-nolibm (Files): Add lib/float+.h.
62359         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62360         * modules/isnanl (Files): Add lib/float+.h.
62361         * modules/vasnprintf (Files): Add lib/float+.h.
62362
62363 2007-03-24  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62366         include isnanl-nolibm.h.
62367
62368 2007-03-24  Bruno Haible  <bruno@clisp.org>
62369
62370         * tests/test-read-file.c (main): Don't produce spurious output for
62371         expected situations. Make the test fail if it encountered unexpected
62372         results.
62373
62374 2007-03-24  Bruno Haible  <bruno@clisp.org>
62375
62376         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62377         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62378
62379 2007-03-24  Bruno Haible  <bruno@clisp.org>
62380
62381         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62382
62383 2007-03-24  Bruno Haible  <bruno@clisp.org>
62384
62385         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62386         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62387
62388         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62389         * modules/utf8-ucs4: Turn into a symbolic link to module
62390         unistr/u8-mbtouc.
62391
62392         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62393         utf8-ucs4-unsafe.
62394         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62395         unistr/u8-mbtouc-unsafe.
62396
62397         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62398         * modules/utf16-ucs4: Turn into a symbolic link to module
62399         unistr/u16-mbtouc.
62400
62401         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62402         utf16-ucs4-unsafe.
62403         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62404         unistr/u16-mbtouc-unsafe.
62405
62406         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62407         * modules/ucs4-utf8: Turn into a symbolic link to module
62408         unistr/u8-ubtomb.
62409
62410         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62411         * modules/ucs4-utf16: Turn into a symbolic link to module
62412         unistr/u16-ubtomb.
62413
62414 2007-03-24  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62417         Enable the function only if HAVE_INLINE.
62418         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62419         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62420         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62421         Enable the function only if HAVE_INLINE.
62422         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62423         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62424         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62425         Enable the function only if HAVE_INLINE.
62426         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62427         Enable the function only if HAVE_INLINE.
62428         * modules/utf8-ucs4: Update.
62429         * modules/utf8-ucs4-unsafe: Update.
62430         * modules/utf16-ucs4: Update.
62431         * modules/utf16-ucs4-unsafe: Update.
62432         * modules/ucs4-utf8: Update.
62433         * modules/ucs4-utf16: Update.
62434
62435 2007-03-24  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/utf8-ucs4.h: Remove file.
62438         * lib/utf8-ucs4-unsafe.h: Remove file.
62439         * lib/utf16-ucs4.h: Remove file.
62440         * lib/utf16-ucs4-unsafe.h: Remove file.
62441         * lib/ucs4-utf8.h: Remove file.
62442         * lib/ucs4-utf16.h: Remove file.
62443         * lib/unistr.h: Include their previous contents.
62444         * m4/utf-ucs4.m4: Remove file.
62445         * m4/ucs4-utf.m4: Remove file.
62446         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62447         (Depends-on): Add unistr/base.
62448         (configure.ac): Remove gl_UTF_UCS4.
62449         (Makefile.am): Update.
62450         (Include): Change to unistr.h.
62451         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62452         (Depends-on): Add unistr/base.
62453         (configure.ac): Remove gl_UTF_UCS4.
62454         (Makefile.am): Update.
62455         (Include): Change to unistr.h.
62456         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62457         (Depends-on): Add unistr/base.
62458         (configure.ac): Remove gl_UTF_UCS4.
62459         (Makefile.am): Update.
62460         (Include): Change to unistr.h.
62461         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62462         (Depends-on): Add unistr/base.
62463         (configure.ac): Remove gl_UTF_UCS4.
62464         (Makefile.am): Update.
62465         (Include): Change to unistr.h.
62466         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62467         (Depends-on): Add unistr/base.
62468         (configure.ac): Remove gl_UCS4_UTF.
62469         (Makefile.am): Update.
62470         (Include): Change to unistr.h.
62471         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62472         (Depends-on): Add unistr/base.
62473         (configure.ac): Remove gl_UCS4_UTF.
62474         (Makefile.am): Update.
62475         (Include): Change to unistr.h.
62476         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62477         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62478         utf8-ucs4-unsafe.h.
62479         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62480         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62481         utf16-ucs4-unsafe.h.
62482         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62483         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62484         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62485         * lib/unistr/u8-strchr.c: Likewise.
62486         * lib/unistr/u8-strrchr.c: Likewise.
62487         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62488         * lib/unistr/u16-strchr.c: Likewise.
62489         * lib/unistr/u16-strrchr.c: Likewise.
62490         * lib/striconveh.c: Update.
62491         * lib/linebreak.c: Update.
62492
62493 2007-03-24  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62496         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62497
62498 2007-03-22  Bruno Haible  <bruno@clisp.org>
62499
62500         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62501
62502 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62503
62504         * MODULES.html.sh (File system functions): New module write-any-file.
62505         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62506         * m4/write-any-file.m4: New files.
62507
62508 2007-03-23  Eric Blake  <ebb9@byu.net>
62509
62510         * gnulib-tool: Rearrange space-tab sequences, since some editors
62511         like to eat them.
62512
62513 2007-03-23  Eric Blake  <ebb9@byu.net>
62514
62515         * lib/version-etc.c (version_etc_va): Update license wording to
62516         be more concise.  Recommended by Richard Stallman.
62517
62518 2007-03-22  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/poll.c (MSG_PEEK): New fallback definition.
62521
62522 2007-03-22  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62525         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62526         (main): Update.
62527         Fixes a compilation error on BeOS.
62528
62529 2007-03-22  Bruno Haible  <bruno@clisp.org>
62530
62531         * modules/frexpl-tests: New file.
62532         * tests/test-frexpl.c: New file.
62533
62534         * modules/frexpl: New file.
62535         * m4/frexpl.m4: New file.
62536         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62537         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62539         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62540         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62541         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62542
62543 2007-03-22  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/frexpl.c: Share code with lib/frexp.c.
62546         * modules/mathl (Files): Add lib/frexp.c.
62547         (Depends-on): Add isnanl-nolibm.
62548
62549 2007-03-22  Bruno Haible  <bruno@clisp.org>
62550
62551         * modules/printf-frexp (Files): Add m4/frexp.m4.
62552         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62553         only if the found frexp function actually works.
62554
62555 2007-03-22  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/frexp.c: Remove older implementation that uses divisions.
62558
62559 2007-03-21  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/frexp-tests: New file.
62562         * tests/test-frexp.c: New file.
62563
62564         * modules/frexp: New file.
62565         * lib/frexp.c: New file.
62566         * m4/frexp.m4: New file.
62567         * lib/math_.h (frexp): New declaration.
62568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62569         REPLACE_FREXP.
62570         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62571
62572 2007-03-21  Bruno Haible  <bruno@clisp.org>
62573
62574         * modules/isnanl-tests: New file.
62575         * tests/test-isnanl.c: New file.
62576
62577         * modules/isnanl: New file.
62578         * lib/isnanl.h: New file.
62579         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62580         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62581         gl_FUNC_ISNANL_WORKS.
62582         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62583         New macros.
62584
62585 2007-03-21  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62588         lib/isnanl.h.
62589         (Include): Update.
62590         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62591         * lib/vasnprintf.c: Update.
62592         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62593         tests/test-isnanl.h, remove tests/test-isnanl.c.
62594         (Makefile.am): Update.
62595         * tests/test-isnanl-nolibm.c: New file.
62596         * tests/test-isnanl.h: New file.
62597         * tests/test-isnanl.c: Remove file.
62598
62599 2007-03-21  Jim Meyering  <jim@meyering.net>
62600
62601         When trying to open ".", treat ESTALE like EACCES.
62602         * lib/savewd.c (savewd_save): Resort to forking not just upon
62603         failure with EACCES, but also when errno is ESTALE.
62604
62605 2007-03-20  Bruno Haible  <bruno@clisp.org>
62606
62607         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62608         Needed on AIX 5.1. Reported by Matthew Woehlke.
62609
62610 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62611
62612         Suggestions by Bruno Haible:
62613         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62614         our own.
62615         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62616         * modules/acl (Depends-on): Add gettext.
62617
62618 2007-03-19  Bruno Haible  <bruno@clisp.org>
62619
62620         * modules/iconvme: Remove file.
62621         * lib/iconvme.h: Remove file.
62622         * lib/iconvme.c: Remove file.
62623         * m4/iconvme.m4: Remove file.
62624
62625 2007-03-19  Bruno Haible  <bruno@clisp.org>
62626
62627         * doc/relocatable-maint.texi: Break long shell script line.
62628         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62629
62630 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62633         handle file_has_acl.
62634         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62635         * lib/acl.c: Move header inclusions and related macro defns into
62636         lib/acl-internal.h.
62637         (S_ISLNK): Remove defn, since that's now done for us.
62638         (file_has_acl): Move to lib/file-has-acl.c.
62639         Call acl_trivial if available.  This is the crucial part of the fix.
62640         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62641         shared within the library.  Rewrite a bit, partly to make it compatible
62642         with the GNU coding style.
62643         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62644         Remove unnecessary double-quotes.
62645         Don't test for acl_to_text; the build will catch that.
62646         Replace acl_entries if it doesn't exist and it is needed.
62647         Check for -lsec and acl_trivial (as used on Solaris 10).
62648         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62649         lib/file-has-acl.c.
62650         (Depends-on): Add sys_stat, for S_ISLNK.
62651
62652 2007-03-19  Ben Pfaff  <blp@gnu.org>
62653
62654         * doc/gnulib.texi: Fix typos.
62655         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62656
62657 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62660         If size is zero here, buf must be zero.
62661
62662 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62663
62664         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62665         <bruno@clisp.org>.
62666
62667 2007-03-18  Bruno Haible  <bruno@clisp.org>
62668
62669         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62670         Suggested by Eric Blake.
62671
62672 2007-03-18  Ben Pfaff  <blp@gnu.org>
62673
62674         * doc/relocatable.texi: Recommend using as prefix a directory
62675         that does not exist and will never be created.  Based on
62676         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62677         and others.
62678
62679 2007-03-17  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/fchownat.c: Include lchown.h.
62682
62683 2007-03-17  Bruno Haible  <bruno@clisp.org>
62684
62685         Fix endless loop when the given allocated size was > INT_MAX.
62686         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62687         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62688         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62689         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62690         * lib/sprintf.c (sprintf): Likewise.
62691
62692 2007-03-17  Bruno Haible  <bruno@clisp.org>
62693
62694         * tests/test-argp-2.sh (func_compare): Output a context diff.
62695
62696 2007-03-17  Bruno Haible  <bruno@clisp.org>
62697
62698         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62699         locale's decimal-point character.
62700
62701 2007-03-17  Bruno Haible  <bruno@clisp.org>
62702
62703         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62704         before comparing it. Needed because on some platforms (e.g. x86) a
62705         'long double' occupies less bytes than sizeof (long double).
62706
62707 2007-03-17  Bruno Haible  <bruno@clisp.org>
62708
62709         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62710         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62711         * tests/test-getaddrinfo.c (simple): Likewise.
62712         * tests/test-read-file.c (main): Likewise.
62713
62714 2007-03-17  Bruno Haible  <bruno@clisp.org>
62715
62716         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62717
62718 2007-03-17  Bruno Haible  <bruno@clisp.org>
62719
62720         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62721         unused variable.
62722
62723 2007-03-17  Bruno Haible  <bruno@clisp.org>
62724
62725         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62726         * tests/test-c-strncasecmp.c: Likewise.
62727
62728 2007-03-17  Bruno Haible  <bruno@clisp.org>
62729
62730         * modules/stdlib (Depends-on): Add unistd.
62731         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62732         Needed for MacOS X 10.3.
62733
62734 2007-03-17  Bruno Haible  <bruno@clisp.org>
62735
62736         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62737
62738 2007-03-17  Bruno Haible  <bruno@clisp.org>
62739
62740         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62741
62742 2007-03-17  Bruno Haible  <bruno@clisp.org>
62743
62744         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62745         to reflect files copied from gnulib (with or without modifications).
62746         Suggested by Jim Meyering.
62747
62748 2007-03-17  Eric Blake  <ebb9@byu.net>
62749
62750         * NEWS: Document stdlib change from 2007-02-18.
62751
62752 2007-03-17  Jim Meyering  <jim@meyering.net>
62753
62754         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62755         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62756         someone uses a name containing shell meta-characters.
62757         Reported by Alfred M. Szmidt.
62758
62759         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62760
62761 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62762
62763         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62764         and copy gettext configuration files only if configure.ac contains
62765         a use of AM_GNU_GETTEXT_VERSION.
62766
62767 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62768
62769         * build-aux/bootstrap (gnulib_name): New variable.
62770         (gnulib_tool_options): Use it.
62771
62772 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62773
62774         * tests/test-des.c: Use new namespace.
62775
62776 2007-03-15  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62779         Reported by James Youngman <jay@gnu.org>.
62780
62781 2007-03-15  Bruno Haible  <bruno@clisp.org>
62782
62783         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62784         declared prototype. Needed with cc on OSF/1 5.1.
62785
62786 2007-03-15  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62789         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62790         (struct gl_list_implementation): Add dispose_fn argument to the
62791         'create_empty', 'create' methods.
62792         (struct gl_list_impl_base): Add field 'dispose_fn'.
62793         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62794         argument.
62795         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62796         dispose_fn argument.
62797         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62798         dispose_fn on the dropped values.
62799         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62800         dispose_fn argument.
62801         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62802         dropped values.
62803         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62804         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62805         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62806         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62807         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62808         argument.
62809         (gl_tree_list_free): Call dispose_fn on the dropped values.
62810         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62811         the dropped values.
62812         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62813         Add dispose_fn argument.
62814         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62815         Call dispose_fn on the dropped values.
62816         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62817         Add dispose_fn argument.
62818         (gl_sublist_create): Initialize the 'dispose_fn' field.
62819         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62820         * tests/test-array_list.c (main): Update.
62821         * tests/test-carray_list.c (main): Update.
62822         * tests/test-avltree_list.c (main): Update.
62823         * tests/test-rbtree_list.c (main): Update.
62824         * tests/test-avltreehash_list.c (main): Update.
62825         * tests/test-rbtreehash_list.c (main): Update.
62826         * tests/test-linked_list.c (main): Update.
62827         * tests/test-linkedhash_list.c (main): Update.
62828         * tests/test-array_oset.c (main): Update.
62829
62830 2007-03-15  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62833         (gl_oset_create_empty): Add dispose_fn argument.
62834         (struct gl_oset_implementation): Add dispose_fn argument to
62835         'create_empty' method.
62836         (struct gl_oset_impl_base): Add dispose_fn field.
62837         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62838         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62839         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62840         values.
62841         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62842         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62843         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62844         dropped value.
62845         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62846         dropped value.
62847         * tests/test-array_oset.c (main): Update.
62848         * tests/test-avltree_oset.c (main): Update.
62849         * tests/test-rbtree_oset.c (main): Update.
62850         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62851
62852 2007-03-13  Bruno Haible  <bruno@clisp.org>
62853
62854         * tests/test-stdbool.c (i): Update after last patch.
62855
62856 2007-03-12  Bruno Haible  <bruno@clisp.org>
62857
62858         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62859         the iswprint macro. Needed on Solaris 2.5.1.
62860
62861 2007-03-12  Bruno Haible  <bruno@clisp.org>
62862
62863         * tests/test-printf-frexp.c (main): Declare x as volatile.
62864
62865 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62866
62867         * doc/gnulib.texi (Build robot for gnulib): New section.
62868
62869 2007-03-12  Jim Meyering  <jim@meyering.net>
62870
62871         * build-aux/bootstrap: New file.
62872         * build-aux/bootstrap.conf: New file, from coreutils.
62873
62874 2007-03-11  Bruno Haible  <bruno@clisp.org>
62875
62876         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62877
62878 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62879
62880         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62881         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62882         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62883
62884 2007-03-11  Bruno Haible  <bruno@clisp.org>
62885
62886         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62887         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62888
62889 2007-03-11  Bruno Haible  <bruno@clisp.org>
62890
62891         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62892         formula. Needed for SunPRO C 5.0.
62893
62894 2007-03-11  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/long-options (Depends-on): Add getopt.
62897
62898 2007-03-11  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/modechange (Depends-on): Add stdbool.
62901
62902 2007-03-11  Bruno Haible  <bruno@clisp.org>
62903
62904         * modules/i-ring (Depends-on): Add stdbool.
62905
62906 2007-03-11  Bruno Haible  <bruno@clisp.org>
62907
62908         * modules/gc-des (Depends-on): Add stdbool.
62909
62910 2007-03-11  Bruno Haible  <bruno@clisp.org>
62911
62912         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62913
62914 2007-03-11  Bruno Haible  <bruno@clisp.org>
62915
62916         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62917
62918 2007-03-11  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62921
62922 2007-03-11  Bruno Haible  <bruno@clisp.org>
62923
62924         * lib/vasnprintf.c (sprintf): Undefine.
62925
62926 2007-03-11  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62929         initializers in SunPRO C and Compaq C compilers.
62930
62931 2007-03-11  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62934         decrementing code ANSI C compliant.
62935
62936 2007-03-11  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62939         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62940
62941 2007-03-11  Bruno Haible  <bruno@clisp.org>
62942
62943         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62944         <stdbool.h> substitute doesn't pass.
62945
62946 2007-03-11  Bruno Haible  <bruno@clisp.org>
62947
62948         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62949
62950 2007-03-11  Bruno Haible  <bruno@clisp.org>
62951
62952         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62953         script, for submission to autobuild.josefsson.org.
62954
62955 2007-03-10  Bruno Haible  <bruno@clisp.org>
62956
62957         * modules/canonicalize-lgpl-tests: New file.
62958         * tests/test-canonicalize-lgpl.sh: New file.
62959         * tests/test-canonicalize-lgpl.c: New file.
62960
62961         * modules/c-strcase-tests: New file.
62962         * tests/test-c-strcase.sh: New file.
62963         * tests/test-c-strcasecmp.c: New file.
62964         * tests/test-c-strncasecmp.c: New file.
62965
62966         * modules/atexit-tests: New file.
62967         * tests/test-atexit.sh: New file.
62968         * tests/test-atexit.c: New file.
62969
62970 2007-03-10  Bruno Haible  <bruno@clisp.org>
62971
62972         * tests/test-binary-io.sh: Use temporary filenames that are not so
62973         likely to clash with those of other tests (in a parallel make).
62974         * tests/test-binary-io.c: Likewise.
62975
62976 2007-03-10  Bruno Haible  <bruno@clisp.org>
62977
62978         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62979         fallback; use #error instead.
62980         Suggested by Simon Josefsson.
62981
62982 2007-03-10  Bruno Haible  <bruno@clisp.org>
62983
62984         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62985         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62986         first and the last.
62987
62988 2007-03-10  Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62991
62992 2007-03-10  Bruno Haible  <bruno@clisp.org>
62993
62994         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62995         "make distcheck".
62996         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62997         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62998         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62999
63000 2007-03-10  Bruno Haible  <bruno@clisp.org>
63001
63002         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63003         variable.
63004         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63005         variable.
63006
63007 2007-03-09  Eric Blake  <ebb9@byu.net>
63008         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63009
63010         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63011         types are not being provided by gnulib.
63012         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63013         types are supported.
63014
63015 2007-03-10  Bruno Haible  <bruno@clisp.org>
63016
63017         * lib/stdio_.h (__attribute__): New macro.
63018         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63019         vsprintf): Specify __attribute__ __format__ for GCC.
63020         Suggested by Eric Blake.
63021
63022 2007-03-09  Bruno Haible  <bruno@clisp.org>
63023
63024         * modules/printf-posix-tests: New file.
63025         * tests/test-printf-posix.sh: New file.
63026         * tests/test-printf-posix.c: New file.
63027
63028         * modules/printf-posix: New file.
63029         * lib/printf.c: New file.
63030         * m4/printf-posix-rpl.m4: New file.
63031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63032         REPLACE_PRINTF.
63033         * lib/stdio_.h (printf): New declaration.
63034         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63035         ____strfmon____): New macros.
63036         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63037         REPLACE_PRINTF.
63038
63039 2007-03-09  Bruno Haible  <bruno@clisp.org>
63040
63041         * tests/test-vasnprintf-posix2.sh: New file.
63042         * tests/test-vasnprintf-posix2.c: New file.
63043         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63044         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63045         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63046
63047         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63048         a locale dependent decimal point, rather than always '.'.
63049
63050 2007-03-09  Eric Blake  <ebb9@byu.net>
63051
63052         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63053         spite of platforms like Tandem/NSK that define it to -1.
63054
63055 2007-03-08  Bruno Haible  <bruno@clisp.org>
63056
63057         * modules/vprintf-posix-tests: New file.
63058         * tests/test-vprintf-posix.sh: New file.
63059         * tests/test-vprintf-posix.c: New file.
63060         * tests/test-printf-posix.h: New file.
63061
63062         * modules/vprintf-posix: New file.
63063         * lib/vprintf.c: New file.
63064         * m4/vprintf-posix.m4: New file.
63065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63066         REPLACE_VPRINTF.
63067         * lib/stdio_.h (vprintf): New declaration.
63068         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63069         REPLACE_VPRINTF.
63070
63071 2007-03-08  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/fprintf-posix-tests: New file.
63074         * tests/test-fprintf-posix.sh: New file.
63075         * tests/test-fprintf-posix.c: New file.
63076
63077         * modules/fprintf-posix: New file.
63078         * lib/fprintf.c: New file.
63079         * m4/fprintf-posix.m4: New file.
63080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63081         REPLACE_FPRINTF.
63082         * lib/stdio_.h (fprintf): New declaration.
63083         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63084         REPLACE_FPRINTF.
63085
63086 2007-03-08  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/vfprintf-posix-tests: New file.
63089         * tests/test-vfprintf-posix.sh: New file.
63090         * tests/test-vfprintf-posix.c: New file.
63091         * tests/test-fprintf-posix.h: New file.
63092         * tests/test-fprintf-posix.out: New file.
63093
63094         * modules/vfprintf-posix: New file.
63095         * lib/vfprintf.c: New file.
63096         * m4/vfprintf-posix.m4: New file.
63097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63098         REPLACE_VFPRINTF.
63099         * lib/stdio_.h (vfprintf): New declaration.
63100         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63101         REPLACE_VFPRINTF.
63102
63103 2007-03-08  Bruno Haible  <bruno@clisp.org>
63104
63105         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63106
63107 2007-03-08  Bruno Haible  <bruno@clisp.org>
63108
63109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63110         instead of 'expr' invocations.
63111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63116         Suggested by Paul Eggert.
63117
63118 2007-03-08  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/fseterr-tests: New file.
63121         * tests/test-fseterr.c: New file.
63122
63123         * modules/fseterr: New file.
63124         * lib/fseterr.h: New file.
63125         * lib/fseterr.c: New file.
63126
63127 2007-03-08  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63130         * lib/getopt_.h: Likewise.
63131         * lib/mbswidth.h: Likewise.
63132         * lib/setenv.h: Likewise.
63133         * lib/vasnprintf.h: Likewise.
63134         * lib/vasprintf.h: Likewise.
63135         * lib/verror.h: Likewise.
63136         * lib/xsetenv.h: Likewise.
63137         * lib/xvasprintf.h: Likewise.
63138
63139 2007-03-08  Jim Meyering  <jim@meyering.net>
63140
63141         * users.txt: Add parted.
63142
63143         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63144
63145 2007-03-07  Bruno Haible  <bruno@clisp.org>
63146
63147         * m4/printf.m4: Make the shell script snippets copy&pastable.
63148
63149 2007-03-02  Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/netinet_in_.h: New file.
63152         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63153         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63154         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63155         (Depends-on): Add absolute-header.
63156         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63157         into netinet/in.h.
63158
63159 2007-03-03  Bruno Haible  <bruno@clisp.org>
63160
63161         * lib/sys_select_.h: New file.
63162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63163         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63164         * modules/sys_select (Files): Add lib/sys_select_.h.
63165         (Depends-on): Add absolute-header.
63166         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63167         into sys/select.h.
63168
63169 2007-03-02  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63172         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63173         values.
63174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63175         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63176         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63177         * modules/sys_socket (Depends-on): Add absolute-header.
63178         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63179         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63180         (Include): Remove requirement of inclusion of <sys/types.h>.
63181
63182 2007-03-02  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/byteswap_.h (bswap_32): Fix formula.
63185
63186 2007-03-06  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/sprintf-posix-tests: New file.
63189         * tests/test-sprintf-posix.c: New file.
63190
63191         * modules/sprintf-posix: New file.
63192         * lib/sprintf.c: New file.
63193         * m4/sprintf-posix.m4: New file.
63194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63195         REPLACE_SPRINTF.
63196         * lib/stdio_.h (sprintf): New declaration.
63197         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63198         REPLACE_SPRINTF.
63199
63200 2007-03-06  Bruno Haible  <bruno@clisp.org>
63201
63202         * modules/vsprintf-posix-tests: New file.
63203         * tests/test-vsprintf-posix.c: New file.
63204         * tests/test-sprintf-posix.h: New file.
63205
63206         * modules/vsprintf-posix: New file.
63207         * lib/vsprintf.c: New file.
63208         * m4/vsprintf-posix.m4: New file.
63209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63210         REPLACE_VSPRINTF.
63211         * lib/stdio_.h (vsprintf): New declaration.
63212         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63213         REPLACE_VSPRINTF.
63214
63215 2007-03-06  Bruno Haible  <bruno@clisp.org>
63216
63217         * modules/vsnprintf (Depend-on): Remove minmax.
63218
63219 2007-03-06  Bruno Haible  <bruno@clisp.org>
63220
63221         * modules/snprintf-posix-tests: New file.
63222         * tests/test-snprintf-posix.c: New file.
63223
63224         * modules/snprintf-posix: New file.
63225         * m4/snprintf-posix.m4: New file.
63226         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63227         gl_FUNC_SNPRINTF.
63228         (gl_FUNC_SNPRINTF): Invoke it.
63229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63230         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63231         is set.
63232         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63233
63234 2007-03-06  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/vsnprintf-posix-tests: New file.
63237         * tests/test-vsnprintf-posix.c: New file.
63238         * tests/test-snprintf-posix.h: New file.
63239
63240         * modules/vsnprintf-posix: New file.
63241         * m4/vsnprintf-posix.m4: New file.
63242         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63243         gl_FUNC_VSNPRINTF.
63244         (gl_FUNC_VSNPRINTF): Invoke it.
63245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63246         * lib/stdio_.h (vsnprintf): Define as a replacement if
63247         REPLACE_VSNPRINTF is set.
63248         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63249
63250 2007-03-06  Bruno Haible  <bruno@clisp.org>
63251
63252         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63254
63255 2007-03-06  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63258         (asinl): Declare also if HAVE_DECL_ASINL is set.
63259         (atanl): Declare also if HAVE_DECL_ATANL is set.
63260         (ceill): Declare also if HAVE_DECL_CEILL is set.
63261         (cosl): Declare also if HAVE_DECL_COSL is set.
63262         (expl): Declare also if HAVE_DECL_EXPL is set.
63263         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63264         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63265         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63266         (logl): Declare also if HAVE_DECL_LOGL is set.
63267         (sinl): Declare also if HAVE_DECL_SINL is set.
63268         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63269         (tanl): Declare also if HAVE_DECL_TANL is set.
63270         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63272         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63273         declaration of frexpl, ldexpl.
63274         * modules/printf-frexpl (Depends-on): Add math.
63275         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63276
63277 2007-03-05  Bruno Haible  <bruno@clisp.org>
63278
63279         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63280         frexpl and ldexpl are declared.
63281         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63282
63283 2007-03-05  Bruno Haible  <bruno@clisp.org>
63284
63285         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63286         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63287
63288 2007-03-05  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/stdio_.h: Include <stddef.h>.
63291
63292 2007-03-05  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63295
63296 2007-03-05  Bruno Haible  <bruno@clisp.org>
63297
63298         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63299         NetBSD 4, from Ralf Wildenhues.
63300
63301 2007-03-04  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/vasprintf.h: Update #if logic for the case when the functions
63304         exist but are overridden.
63305
63306 2007-03-04  Bruno Haible  <bruno@clisp.org>
63307
63308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63309         implementations: glibc-2.4 and MacOS X 10.3.
63310         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63311         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63312         * tests/test-vasprintf-posix.c (test_function): Likewise.
63313
63314 2007-03-04  Bruno Haible  <bruno@clisp.org>
63315
63316         * modules/vasprintf-posix-tests: New file.
63317         * tests/test-vasprintf-posix.c: New file.
63318
63319         * modules/vasprintf-posix: New file.
63320         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63321         defined.
63322         * m4/vasprintf-posix.m4: New file.
63323         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63324         gl_FUNC_VASPRINTF.
63325         (gl_FUNC_VASPRINTF): Invoke it.
63326         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63327         here.
63328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63329
63330 2007-03-04  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63333         REPLACE_GETTIMEOFDAY.
63334         * modules/sys_time (Makefile.am): Likewise.
63335         * m4/sys_time_h.m4: Likewise.
63336         * m4/gettimeofday.m4: Likewise.
63337
63338 2007-03-04  Bruno Haible  <bruno@clisp.org>
63339
63340         * modules/vasnprintf-posix-tests: New file.
63341         * tests/test-vasnprintf-posix.c: New file.
63342
63343         * modules/vasnprintf-posix: New file.
63344         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63345         printf-frexpl.h.
63346         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63347         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63348         REPLACE_VASNPRINTF is defined.
63349         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63350         gl_FUNC_VASNPRINTF.
63351         (gl_FUNC_VASNPRINTF): Invoke it.
63352         * m4/vasnprintf-posix.m4: New file.
63353         * m4/printf.m4: New file.
63354
63355 2007-03-04  Bruno Haible  <bruno@clisp.org>
63356
63357         Compile progreloc.c only if --enable-relocatable is specified.
63358         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63359         if --enable-relocatable was specified.
63360         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63361         lib_SOURCES.
63362
63363 2007-03-04  Jim Meyering  <jim@meyering.net>
63364
63365         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63366         Use it consistently, rather than enumerating errno constants.
63367
63368 2007-03-04  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/xvasprintf-tests: New file.
63371         * tests/test-xvasprintf.c: New file.
63372
63373         * modules/vasprintf-tests: New file.
63374         * tests/test-vasprintf.c: New file.
63375
63376         * modules/vasnprintf-tests: New file.
63377         * tests/test-vasnprintf.c: New file.
63378
63379         * modules/vsnprintf-tests: New file.
63380         * tests/test-vsnprintf.c: New file.
63381
63382         * modules/snprintf-tests: New file.
63383         * tests/test-snprintf.c: New file.
63384
63385 2007-03-04  Bruno Haible  <bruno@clisp.org>
63386
63387         Compile relocatable.c only if --enable-relocatable is specified.
63388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63389         gl_RELOCATABLE_LIBRARY.
63390         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63391         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63392         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63393         gl_RELOCATABLE_LIBRARY.
63394         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63395         (Makefile.am): Remove lib_SOURCES.
63396         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63397         gl_RELOCATABLE_LIBRARY.
63398         (Makefile.am): Remove lib_SOURCES.
63399         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63400         always.
63401         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63402         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63403
63404 2007-03-04  Bruno Haible  <bruno@clisp.org>
63405
63406         * modules/argmatch-tests: New file.
63407         * tests/test-argmatch.c: New file.
63408
63409         * tests/test-allocsa.c (main): Halve the number of loop runs.
63410
63411         * modules/alloca-opt-tests: New file.
63412         * tests/test-alloca-opt.c: New file.
63413
63414 2007-03-04  Jim Meyering  <jim@meyering.net>
63415
63416         Work around difference between Linux ACLs and Solaris 10 ZFS.
63417         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63418         for EINVAL.
63419
63420 2007-03-03  Bruno Haible  <bruno@clisp.org>
63421
63422         * modules/relocatable-prog (Depends-on): Add back progreloc's
63423         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63424
63425 2007-03-03  Bruno Haible  <bruno@clisp.org>
63426
63427         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63428         * modules/relocatable-lib: New file.
63429
63430 2007-03-03  Bruno Haible  <bruno@clisp.org>
63431
63432         * modules/relocatable-prog: Renamed from modules/relocatable.
63433         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63434
63435 2007-03-03  Bruno Haible  <bruno@clisp.org>
63436
63437         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63438         m4/relocatable-lib.m4.
63439         (Depends-on): Remove 'relocatable'.
63440         (configure.ac): Add gl_RELOCATABLE_NOP.
63441
63442 2007-03-03  Bruno Haible  <bruno@clisp.org>
63443
63444         * modules/relocatable-prog-wrapper: New file.
63445         * modules/relocatable (Depends-on): Add it. Remove all other
63446         dependencies except progname.
63447         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63448
63449         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63450         (gl_FUNC_STRERROR): Nop.
63451         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63452
63453         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63454         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63455
63456         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63457         (gl_FUNC_READLINK): Update.
63458
63459         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63460
63461 2007-03-03  Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63464         * modules/xreadlink (Depends-on): Add unistd.
63465         * modules/xreadlink-with-size (Depends-on): Likewise.
63466
63467 2007-03-03  Bruno Haible  <bruno@clisp.org>
63468
63469         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63470         extracted from gt_FUNC_SETENV.
63471         (gt_FUNC_SETENV): Remove macro.
63472         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63473         remove gt_FUNC_SETENV.
63474
63475 2007-03-03  Bruno Haible  <bruno@clisp.org>
63476
63477         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63478         ENABLE_RELOCATABLE here.
63479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63480
63481 2007-03-03  Bruno Haible  <bruno@clisp.org>
63482
63483         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63484         * tests/test-rbtreehash_list.c: Include progname.h.
63485         (main): Call set_program_name.
63486
63487         * modules/rbtree-oset-tests (Depends-on): Add progname.
63488         * tests/test-rbtree_oset.c: Include progname.h.
63489         (main): Call set_program_name.
63490
63491         * modules/rbtree-list-tests (Depends-on): Add progname.
63492         * tests/test-rbtree_list.c: Include progname.h.
63493         (main): Call set_program_name.
63494
63495         * modules/linked-list-tests (Depends-on): Add progname.
63496         * tests/test-linked_list.c: Include progname.h.
63497         (main): Call set_program_name.
63498
63499 2007-03-03  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63502         All uses of __restrict changed to _Restrict_.
63503         * lib/glob_.h (__restrict): Remove macro.
63504
63505 2007-03-02  Bruno Haible  <bruno@clisp.org>
63506
63507         * modules/gettext (configure.ac): Require gettext infrastructure
63508         from version 0.16.1.
63509
63510 2007-03-02  Bruno Haible  <bruno@clisp.org>
63511
63512         * modules/linkedhash-list-tests (Depends-on): Add progname.
63513         * tests/test-linkedhash_list.c: Include progname.h.
63514         (main): Call set_program_name.
63515
63516         * modules/carray-list-tests (Depends-on): Add progname.
63517         * tests/test-carray_list.c: Include progname.h.
63518         (main): Call set_program_name.
63519
63520         * modules/avltreehash-list-tests (Depends-on): Add progname.
63521         * tests/test-avltreehash_list.c: Include progname.h.
63522         (main): Call set_program_name.
63523
63524         * modules/avltree-oset-tests (Depends-on): Add progname.
63525         * tests/test-avltree_oset.c: Include progname.h.
63526         (main): Call set_program_name.
63527
63528         * modules/avltree-list-tests (Depends-on): Add progname.
63529         * tests/test-avltree_list.c: Include progname.h.
63530         (main): Call set_program_name.
63531
63532         * modules/array-oset-tests (Depends-on): Add progname.
63533         * tests/test-array_oset.c: Include progname.h.
63534         (main): Call set_program_name.
63535
63536         * modules/array-list-tests (Depends-on): Add progname.
63537         * tests/test-array_list.c: Include progname.h.
63538         (main): Call set_program_name.
63539
63540         * modules/argp-tests (Depends-on): Add progname.
63541         * tests/test-argp.c: Include argp.h first. Include progname.h.
63542         (main): Call set_program_name.
63543
63544 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * doc/gnulib-tool.texi (Initial import): Reword description of
63547         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63548         limited effect even if defined after the first system include.
63549
63550 2007-03-01  Bruno Haible  <bruno@clisp.org>
63551
63552         * build-aux/config.libpath: Update to libtool-1.5.22.
63553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63554
63555 2007-03-01  Bruno Haible  <bruno@clisp.org>
63556
63557         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63558         foo_CFLAGS.
63559         Reported by Ralf Wildenhues.
63560
63561 2007-03-01  Bruno Haible  <bruno@clisp.org>
63562
63563         * build-aux/install-reloc: Remove object files left over by some
63564         compilers.
63565         Reported by Ralf Wildenhues.
63566
63567 2007-03-01  Bruno Haible  <bruno@clisp.org>
63568
63569         * build-aux/install-reloc: Break long lines.
63570
63571 2007-03-01  Bruno Haible  <bruno@clisp.org>
63572
63573         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63574         Reported by Ralf Wildenhues.
63575
63576 2007-03-01  Bruno Haible  <bruno@clisp.org>
63577
63578         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63579         include ordering constraints.
63580
63581 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63585         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63586         as another example.
63587         * lib/time_.h: Fix misspelling.
63588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63589         Require gl_HEADER_TIME_H_DEFAULTS.
63590         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63591         * m4/time_r.m4 (gl_TIME_R): Likewise.
63592         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63593
63594 2007-03-01  Bruno Haible  <bruno@clisp.org>
63595
63596         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63597         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63598
63599 2007-03-01  Jim Meyering  <jim@meyering.net>
63600
63601         * modules/xreadlink (Maintainer): Add my name.
63602         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63603
63604 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63605             Bruno Haible  <bruno@clisp.org>
63606
63607         * build-aux/install-reloc: Compile also c-ctype.c.
63608         * build-aux/relocatable.sh.in: New file.
63609         * doc/relocatable.texi: New file.
63610         * doc/relocatable-maint.texi: New file.
63611         * doc/gnulib.texi: Include relocatable-maint.texi.
63612         * lib/progreloc.c: Include unistd.h unconditionally.
63613         * lib/relocwrapper.c: Include unistd.h unconditionally.
63614         Include c-ctype.h.
63615         (add_dotbin): Use c_tolower.
63616         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63617         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63618         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63619         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63620         to m4/relocatable-lib.m4.
63621         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63622         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63623         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63624         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63625         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63626         * modules/relocatable: New file.
63627         * modules/relocatable-lib: New file.
63628         * modules/relocatable-script: New file.
63629
63630 2007-02-28  Bruno Haible  <bruno@clisp.org>
63631
63632         Import --enable-relocatable infrastructure.
63633         * build-aux/config.libpath: New file, from GNU gettext.
63634         * build-aux/install-reloc: New file, from GNU gettext.
63635         * build-aux/reloc-ldflags: New file, from GNU gettext.
63636         * lib/relocatable.h: New file, from GNU gettext.
63637         * lib/relocatable.c: New file, from GNU gettext.
63638         * lib/relocwrapper.c: New file, from GNU gettext.
63639         * m4/relocatable.m4: New file, from GNU gettext.
63640
63641 2007-02-28  Bruno Haible  <bruno@clisp.org>
63642
63643         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63644
63645         * modules/xreadlink: New file, from GNU gettext with modifications.
63646         * lib/xreadlink.c: New file, from GNU gettext.
63647         * lib/xreadlink.h: Add comments.
63648         (xreadlink): New declaration.
63649
63650         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63651         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63652         lib/xreadlink-with-size.c.
63653         (configure.ac): Remove gl_XREADLINK invocation.
63654         (Makefile.am): Augment lib_SOURCES.
63655         * m4/xreadlink.m4: Remove file.
63656         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63657         (xreadlink_with_size): Renamed from xreadink.
63658         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63659         * modules/canonicalize (Depends-on): Replace xreadlink with
63660         xreadlink-with-size.
63661         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63662
63663 2007-02-25  Jim Meyering  <jim@meyering.net>
63664
63665         * build-aux/announce-gen: When complaining about excess arguments,
63666         list them.
63667
63668 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * README: Document signed integer overflow situation more
63671         accurately.
63672
63673 2007-02-25  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63676         'a' or 'A' conversion.
63677
63678 2007-02-25  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/filename: Renamed from modules/pathname.
63681         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63682         lib/concatpath.c with lib/concat-filename.c.
63683         (Makefile.am): Update.
63684         (Include): Replace pathname.h with filename.h.
63685         * lib/filename.h: Renamed from lib/pathname.h.
63686         (concatenated_filename): Renamed from concatenated_pathname.
63687         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63688         (concatenated_filename): Renamed from concatenated_pathname.
63689         * lib/findprog.c: Include filename.h instead of pathname.h.
63690         (find_in_path): Update.
63691         * lib/javacomp.c: Include filename.h instead of pathname.h.
63692         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63693         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63694         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63695         is_oldgcj_14_13_usable, is_javac_usable): Update.
63696         * lib/javaexec.c: Include filename.h instead of pathname.h.
63697         (execute_java_class): Update.
63698         * modules/findprog: Update.
63699         * modules/javacomp: Update.
63700         * modules/javaexec: Update.
63701         * MODULES.html.sh (File system functions): Add 'filename', remove
63702         'pathname'.
63703
63704 2007-02-25  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/printf-frexpl-tests: New file.
63707         * tests/test-printf-frexpl.c: New file.
63708
63709         * modules/printf-frexpl: New file.
63710         * lib/printf-frexpl.h: New file.
63711         * lib/printf-frexpl.c: New file.
63712         * m4/printf-frexpl.m4: New file.
63713
63714 2007-02-25  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/printf-frexp-tests: New file.
63717         * tests/test-printf-frexp.c: New file.
63718
63719         * modules/printf-frexp: New file.
63720         * lib/printf-frexp.h: New file.
63721         * lib/printf-frexp.c: New file.
63722         * m4/printf-frexp.m4: New file.
63723
63724 2007-02-25  Bruno Haible  <bruno@clisp.org>
63725
63726         Assume automake >= 1.10 for the tests.
63727         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63728         * modules/arctwo-tests: Likewise.
63729         * modules/argp-tests: Likewise.
63730         * modules/avltree-list-tests: Likewise.
63731         * modules/avltree-oset-tests: Likewise.
63732         * modules/avltreehash-list-tests: Likewise.
63733         * modules/carray-list-tests: Likewise.
63734         * modules/crc-tests: Likewise.
63735         * modules/des-tests: Likewise.
63736         * modules/gc-arcfour-tests: Likewise.
63737         * modules/gc-arctwo-tests: Likewise.
63738         * modules/gc-des-tests: Likewise.
63739         * modules/gc-hmac-md5-tests: Likewise.
63740         * modules/gc-hmac-sha1-tests: Likewise.
63741         * modules/gc-md2-tests: Likewise.
63742         * modules/gc-md4-tests: Likewise.
63743         * modules/gc-md5-tests: Likewise.
63744         * modules/gc-pbkdf2-sha1-tests: Likewise.
63745         * modules/gc-rijndael-tests: Likewise.
63746         * modules/gc-sha1-tests: Likewise.
63747         * modules/gc-tests: Likewise.
63748         * modules/getaddrinfo-tests: Likewise.
63749         * modules/hmac-md5-tests: Likewise.
63750         * modules/hmac-sha1-tests: Likewise.
63751         * modules/linked-list-tests: Likewise.
63752         * modules/linkedhash-list-tests: Likewise.
63753         * modules/lock-tests: Likewise.
63754         * modules/md2-tests: Likewise.
63755         * modules/md4-tests: Likewise.
63756         * modules/md5-tests: Likewise.
63757         * modules/rbtree-list-tests: Likewise.
63758         * modules/rbtree-oset-tests: Likewise.
63759         * modules/rbtreehash-list-tests: Likewise.
63760         * modules/read-file-tests: Likewise.
63761         * modules/rijndael-tests: Likewise.
63762         * modules/stdint-tests: Likewise.
63763         * modules/tls-tests: Likewise.
63764
63765 2007-02-24  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63768         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63769         function; instead check whether isnan with a double argument links.
63770         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63771         function; instead check whether isnan with a 'long double' argument
63772         links.
63773         Reported by Eric Blake <ebb9@byu.net>.
63774
63775 2007-02-24  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63778         defined.
63779         * lib/isnanl.c: Remove all code. Just include isnan.c.
63780         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63781
63782 2007-02-25  Jim Meyering  <jim@meyering.net>
63783
63784         Avoid conflicting types for 'unsetenv' on FreeBSD.
63785         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63786         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63787         in stdlib.h.
63788
63789 2007-02-24  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/isnanl-nolibm-tests: New file.
63792         * tests/test-isnanl.c: New file.
63793
63794         * modules/isnanl-nolibm: New file.
63795         * lib/isnanl.h: New file.
63796         * lib/isnanl.c: New file.
63797         * m4/isnanl.m4: New file.
63798
63799 2007-02-24  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/isnan-nolibm-tests: New file.
63802         * tests/test-isnan.c: New file.
63803
63804         * modules/isnan-nolibm: New file.
63805         * lib/isnan.h: New file.
63806         * lib/isnan.c: New file.
63807         * m4/isnan.m4: New file.
63808
63809 2007-02-24  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63812         assume that an exponent fits in 20 bits.
63813
63814 2007-02-24  Jim Meyering  <jim@meyering.net>
63815
63816         * m4/regex.m4: Update the description of the configure-time option,
63817         --without-included-regex, to state accurately what the defaults are,
63818         and perhaps to give people an idea why using this option is risky.
63819
63820 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63821
63822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63823         loops on small arguments.  This attempts to avoid the problem
63824         Bruno Haible reported for AIX 4.3.2 in
63825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63826
63827 2007-02-23  Bruno Haible  <bruno@clisp.org>
63828
63829         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63830         Needed for help2man.
63831
63832 2007-02-23  Karl Berry  <karl@gnu.org>
63833
63834         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63835         exists, foo.h should be cvs-ignored, not committed.
63836
63837 2007-02-23  Eric Blake  <ebb9@byu.net>
63838
63839         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63840         * lib/stat-time.h (includes): Likewise.
63841         * lib/utimecmp.c (includes): Likewise.
63842         * lib/utimens.h (includes): Likewise.
63843         * lib/getdate.y (includes): Also include "timespec.h" for use
63844         internal to the module.
63845         * modules/utimens (Depends-on): Revert yesterday's patch.
63846         * modules/nanosleep (Depends-on): Add missing dependency.
63847
63848 2007-02-22  Bruno Haible  <bruno@clisp.org>
63849
63850         * lib/glob.c: Don't include getlogin_r.h.
63851
63852 2007-02-22  Jim Meyering  <jim@meyering.net>
63853
63854         * modules/utimens (Depends-on): Add timespec, required for
63855         utimens.h's inclusion of timespec.h.
63856
63857 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63860         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63861         Schwab in
63862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63863         I'll try to think of a better way to fix the Solaris problem.
63864
63865         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63866         like glibc; on Solaris 10, it fails with errno == EINVAL.
63867         POSIX says the behavior is unspecified if the first argument is NULL,
63868         so play it safe and never pass NULL to the system getcwd.
63869
63870 2007-02-21  Jim Meyering  <jim@meyering.net>
63871
63872         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63873         of gettimeofday.  It would conflict with the one now always
63874         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63875         an IRIX 6.5 build failure.
63876
63877 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         Minor fixups to port to Solaris 10 with Sun C 5.8.
63880         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63881         * modules/getcwd (Depends-on): Add dirfd.
63882         * lib/putenv.c (putenv): #undef it.
63883         (rpl_putenv): New decl.
63884         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63885
63886 2007-02-20  Bruno Haible  <bruno@clisp.org>
63887
63888         * modules/stdio-tests: New file.
63889         * tests/test-stdio.c: New file.
63890
63891         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63892         (Depends-on): Add stdio.
63893         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63894         (Include): Use <stdio.h> instead of vsnprintf.h.
63895         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63896         HAVE_DECL_VSNPRINTF.
63897         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63898
63899         * modules/snprintf (Files): Remove lib/snprintf.h.
63900         (Depends-on): Add stdio.
63901         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63902         (Include): Use <stdio.h> instead of snprintf.h.
63903         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63904         HAVE_DECL_SNPRINTF.
63905         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63906         * lib/getaddrinfo.c: Likewise.
63907
63908         * modules/stdio: New file.
63909         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63910         * lib/snprintf.h: Remove file.
63911         * lib/vsnprintf.h: Remove file.
63912         * lib/.cppi-disable: Remove snprintf.h.
63913         * m4/stdio_h.m4: New file.
63914         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63915
63916 2007-02-20  Jim Meyering  <jim@meyering.net>
63917
63918         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63919         used by e.g., mingw.  From Bruno Haible.
63920
63921 2007-02-19  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63924         warnings.
63925         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63926
63927 2007-02-19  Bruno Haible  <bruno@clisp.org>
63928
63929         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63930         from mingw users.
63931
63932 2007-02-19  Bruno Haible  <bruno@clisp.org>
63933
63934         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63935         warnings.
63936         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63937
63938 2007-02-19  Jim Meyering  <jim@meyering.net>
63939
63940         Don't use FD after a successful "fdopendir (fd)".
63941         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63942         Reset it by calling dirfd on the just-obtained DIR*.
63943
63944         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63945         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63946
63947 2007-02-18  Bruno Haible  <bruno@clisp.org>
63948
63949         * lib/readlink.c: Include <unistd.h>.
63950         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63951         HAVE_READLINK.
63952         * modules/readlink (Depends-on): Add unistd.
63953         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63954         (Include): Add <unistd.h>.
63955
63956         * lib/getlogin_r.h: Remove file.
63957         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63959         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63960         HAVE_DECL_GETLOGIN_R.
63961         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63963         (Include): Use <unistd.h> instead of getlogin_r.h.
63964
63965         * lib/getcwd.h: Remove file.
63966         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63967         * lib/xgetcwd.c: Likewise.
63968         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63969         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63970         * modules/getcwd (Files): Remove lib/getcwd.h.
63971         (Depends-on): Add unistd.
63972         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63973         (Include): Use <unistd.h> instad of getcwd.h.
63974
63975         * lib/ftruncate.c: Include <unistd.h> first.
63976         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63977         Set HAVE_FTRUNCATE.
63978         * modules/ftruncate (Depends-on): Add unistd.
63979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63980
63981         * lib/fchdir.c: Include <unistd.h> first.
63982         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63984         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63985         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63986         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63987
63988         * lib/dup2.c: Include <unistd.h> first.
63989         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63990         HAVE_DUP2.
63991         * modules/dup2 (Depends-on): Add unistd.
63992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63993
63994         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63995         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63996         REPLACE_CHOWN. Don't define chown as a macro here.
63997         * modules/chown (Depends-on): Add unistd.
63998         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63999
64000         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64001         Add definition for GL_LINK_WARNING.
64002         (chown, dup2): New declarations.
64003         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64004         link warning.
64005         (ftruncate): New declaration.
64006         (getcwd): New declaration, taken from old getcwd.h.
64007         (getlogin_r): New declaration, taken from old getlogin_r.h.
64008         (readlink): New declaration.
64009         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64010         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64011         (gl_PREREQ_UNISTD): Remove macro.
64012         (gl_UNISTD_MODULE_INDICATOR): New macro.
64013         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64014         many new variables. Don't set UNISTD_H.
64015         * modules/unistd (Description): Change.
64016         (Depends-on): Add link-warning.
64017         (configure.ac): Update.
64018         (Makefile.am): Create unistd.h always. Substitute many new variables
64019         into it.
64020
64021 2007-02-18  Bruno Haible  <bruno@clisp.org>
64022
64023         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64024         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64025         HAVE_GETSUBOPT.
64026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64027         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64028         * lib/getsubopt.h: Remove file.
64029         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64030         (Depends-on): Add stdlib.
64031         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64032         (Includes): Use <stdlib.h> instead of getsubopt.h.
64033         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64034         Set HAVE_GETSUBOPT.
64035         * lib/getsubopt.c: Don't include getsubopt.h.
64036
64037 2007-02-18  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/fchdir (Depends-on): Add dup2.
64040
64041 2007-02-18  Bruno Haible  <bruno@clisp.org>
64042
64043         * lib/stdlib_.h: Handle glibc's special invocation convention
64044         specially.
64045
64046 2007-02-18  Bruno Haible  <bruno@clisp.org>
64047
64048         * modules/stdlib-tests: New file.
64049         * tests/test-stdlib.c: New file.
64050
64051         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64052         (Depends-on): Add stdlib.
64053         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64054         (Includes): Use <stdlib.h> instead of mkstemp.h.
64055         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64056         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64057         * lib/mkstemp.c: Don't include mkstemp.h.
64058         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64059         * lib/stdlib--.h: Don't include mkstemp.h.
64060
64061         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64062         (Depends-on): Add stdlib.
64063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64064         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64065         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64066         HAVE_MKDTEMP.
64067         * lib/mkdtemp.c: Don't include mkdtemp.h.
64068         * lib/clean-temp.c: Don't include mkdtemp.h.
64069
64070         * modules/exit (Files): Remove lib/exit.h.
64071         (Depends-on): Add stdlib.
64072         (Makefile.am): Remove lib_SOURCES.
64073         (Include): Use <stdlib.h> instead of exit.h.
64074         * lib/argmatch.c: Don't include exit.h.
64075         * lib/execute.c: Likewise.
64076         * lib/pagealign_alloc.c: Likewise.
64077         * lib/pipe.c: Likewise.
64078         * lib/wait-process.c: Likewise.
64079         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64080         * lib/exitfail.c: Likewise.
64081         * lib/savewd.c: Likewise.
64082         * lib/xsetenv.c: Likewise.
64083
64084         * modules/stdlib: New file.
64085         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64086         and extra comments about mkstemp().
64087         * lib/exit.h: Remove file.
64088         * lib/mkdtemp.h: Remove file.
64089         * lib/mkstemp.h: Remove file.
64090         * m4/stdlib_h.m4: New file.
64091         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64092
64093 2007-02-18  Bruno Haible  <bruno@clisp.org>
64094
64095         * modules/math-tests: New file.
64096         * tests/test-math.c: New file.
64097
64098         * modules/math: New file.
64099         * modules/mathl (Files): Remove lib/mathl.h.
64100         (Depends-on): Add math.
64101         (Makefile.am): Don't mention mathl.h.
64102         (Include): Use <math.h> instead of mathl.h.
64103         * lib/math_.h: New file.
64104         * lib/mathl.h: Remove file.
64105         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64106         mathl.h.
64107         * lib/asinl.c: Likewise.
64108         * lib/atanl.c: Likewise.
64109         * lib/ceill.c: Likewise.
64110         * lib/cosl.c: Likewise.
64111         * lib/expl.c: Likewise.
64112         * lib/floorl.c: Likewise.
64113         * lib/frexpl.c: Likewise.
64114         * lib/ldexpl.c: Likewise.
64115         * lib/logl.c: Likewise.
64116         * lib/sincosl.c: Likewise.
64117         * lib/sinl.c: Likewise.
64118         * lib/sqrtl.c: Likewise.
64119         * lib/tanl.c: Likewise.
64120         * lib/trigl.c: Likewise.
64121         * m4/math_h.m4: New file.
64122         * MODULES.html.sh (Mathematics): Add math.
64123
64124 2007-02-17  Bruno Haible  <bruno@clisp.org>
64125
64126         * modules/wctype-tests: New file.
64127         * tests/test-wctype.c: New file.
64128
64129         * modules/wchar-tests: New file.
64130         * tests/test-wchar.c: New file.
64131
64132         * modules/unistd-tests: New file.
64133         * tests/test-unistd.c: New file.
64134
64135         * modules/time-tests: New file.
64136         * tests/test-time.c: New file.
64137
64138         * modules/sysexits-tests: New file.
64139         * tests/test-sysexits.c: New file.
64140
64141         * modules/sys_time-tests: New file.
64142         * tests/test-sys_time.c: New file.
64143
64144         * modules/sys_stat-tests: New file.
64145         * tests/test-sys_stat.c: New file.
64146
64147         * modules/sys_socket-tests: New file.
64148         * tests/test-sys_socket.c: New file.
64149
64150         * modules/sys_select-tests: New file.
64151         * tests/test-sys_select.c: New file.
64152
64153         * modules/string-tests: New file.
64154         * tests/test-string.c: New file.
64155
64156         * modules/stdbool-tests: New file.
64157         * tests/test-stdbool.c: New file.
64158
64159         * modules/netinet_in-tests: New file.
64160         * tests/test-netinet_in.c: New file.
64161
64162         * modules/inttypes-tests: New file.
64163         * tests/test-inttypes.c: New file.
64164
64165         * modules/fcntl-tests: New file.
64166         * tests/test-fcntl.c: New file.
64167
64168         * modules/byteswap-tests: New file.
64169         * tests/test-byteswap.c: New file.
64170
64171         * modules/arpa_inet-tests: New file.
64172         * tests/test-arpa_inet.c: New file.
64173
64174 2007-02-17  Bruno Haible  <bruno@clisp.org>
64175
64176         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64177         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64178         if the corresponding module is not enabled. Emit link warnings if
64179         the function is used nevertheless.
64180         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64181         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64182         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64183         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64184         * modules/inttypes (Depends-on): Add link-warning.
64185         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64186         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64187         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64188         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64189         * modules/imaxdiv (configure.ac): Likewise.
64190         * modules/strtoimax (configure.ac): Likewise.
64191         * modules/strtoumax (configure.ac): Likewise.
64192
64193 2007-02-17  Bruno Haible  <bruno@clisp.org>
64194
64195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64196         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64197         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64198         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64199
64200 2007-02-17  Bruno Haible  <bruno@clisp.org>
64201
64202         * modules/link-warning: New file.
64203         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64204         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64205         * modules/string (Depends-on): Add link-warning.
64206         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64207         string.h.
64208         * MODULES.html.sh (Support for building libraries and executables): Add
64209         link-warning.
64210
64211 2007-02-17  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64214         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64215         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64216         long lines.
64217
64218 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64219             Bruno Haible  <bruno@clisp.org>
64220
64221         * modules/tmpfile: New file.
64222         * lib/tmpfile.c: New file.
64223         * m4/tmpfile.m4: New file.
64224         * MODULES.html.sh (func_all_modules): New section "Input/output".
64225
64226 2007-02-15  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64229         (supports_delete_on_close): New function.
64230         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64231
64232 2007-02-14  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/mbspcasecmp-tests: New file.
64235         * tests/test-mbspcasecmp.sh: New file.
64236         * tests/test-mbspcasecmp.c: New file.
64237
64238         New module mbspcasecmp.
64239         * modules/mbspcasecmp: New file.
64240         * lib/mbspcasecmp.c: New file.
64241         * lib/string_.h (strncasecmp): Change warning message.
64242         (mbspcasecmp): New declaration.
64243         * m4/mbspcasecmp.m4: New file.
64244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64245         GNULIB_MBSPCASECMP.
64246         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64247         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64248
64249 2007-02-14  Bruno Haible  <bruno@clisp.org>
64250
64251         * modules/mbsncasecmp-tests: New file.
64252         * tests/test-mbsncasecmp.sh: New file.
64253         * tests/test-mbsncasecmp.c: New file.
64254
64255         New module mbsncasecmp.
64256         * modules/mbsncasecmp: New file.
64257         * lib/mbsncasecmp.c: New file.
64258         * lib/string_.h (mbsncasecmp): New declaration.
64259         * m4/mbsncasecmp.m4: New file.
64260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64261         GNULIB_MBSNCASECMP.
64262         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64263         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64264
64265 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64268         Verify that it doesn't overlap with our flags.
64269         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64270         do not have the desired effect in multibyte locales; instead, use
64271         mbscasecmp.
64272         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64273         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64274         we don't require GNU fnmatch ourselves (if our users require it, they
64275         should do so explicitly).
64276
64277         Fix regex code so it doesn't rely on strcasecmp.
64278         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64279         Otherwise, include gnulib's langinfo.h.
64280         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64281         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64282         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64283         * modules/regex (FILES): Remove m4/codeset.m4.
64284         (Depends-on): Add localcharset.  Remove strcase.
64285
64286 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64287
64288         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64289         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64290
64291 2007-02-13  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64295
64296 2007-02-12  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64299         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64300         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64301         time warning rather than a link error.
64302
64303 2007-02-12  Bruno Haible  <bruno@clisp.org>
64304
64305         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64306         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64308
64309 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64312         args, not 2.
64313
64314 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64315
64316         New module 'time', so that apps can include <time.h> as per
64317         POSIX and GNU instead of separate include files like time_r.h
64318         and timegm.h.  This implementation tries out a simpler approach
64319         for replacing decls in standard include files (as compared to
64320         the string module), somewhat as an experiment.
64321
64322         * config/srclist.txt: Comment out mktime.c for now.
64323         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64324         since it doesn't apply any more.  Use generic wording instead.
64325         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64326         'time'.
64327         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64328         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64329         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64330         Don't include <sys/types.h>; no longer needed since we assume C89.
64331         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64332         * lib/strftime.c: Likewise.
64333         * lib/time_r.c: Likewise.
64334         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64335         * lib/nanosleep.c: Include <time.h> first, to check interface.
64336         * lib/strptime.c: Likewise.
64337         * lib/time_r.c: Likewise.
64338         * lib/timegm.c: Likewise.
64339         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64340         needed.
64341         * lib/timegm.c: Don't include timegm.h; no longer needed.
64342         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64343         time.h now handles any problems in that area.
64344         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64345         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64346         that time.h defines struct timespec.
64347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64348         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64349         handles that.
64350         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64351         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64352         needed.  Set REPLACE_LOCALTIME.
64353         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64354         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64355         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64356         nanosleep; time_h.m4 now does that.  Don't require
64357         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64358         module handles this now.
64359         * modules/getdate (Depends-on): Remove timespec.  Add time.
64360         * modules/nanosleep (Depends-on): Likewise.
64361         * modules/stat-time (Depends-on): Likewise.
64362         * modules/nanosleep (Include): Include time.h, not timespec.h.
64363         * modules/strptime (Files): Remove lib/strptime.h.
64364         (Depends-on): Add extensions, time.
64365         (Include): Include time.h, not strptime.h.
64366         * modules/time_r (Files): Remove lib/time_r.h.
64367         (Depends-on): Add time.
64368         (Include): Include time.h, not time_r.h.
64369         * modules/timegm: Likewise.
64370         * modules/timespec (Description): Now does timespec-related decls
64371         of our own, instead of struct timespec itself.
64372         (Depends-on): Add time; remove extensions.
64373         (Maintainer): Add self.
64374         * modules/utimecmp (Depends-on): Add time; remove timespec.
64375         * modules/utimens (Depends-on): Likewise.
64376         * modules/xnanosleep (Depends-on): Likewise.
64377
64378 2007-02-11  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/c-strstr.c: Include allocsa.h.
64381         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64382         * lib/c-strcasestr.c: Include allocsa.h.
64383         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64384         * lib/strcasestr.c: Include allocsa.h.
64385         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64386         * lib/mbsstr.c: Include allocsa.h.
64387         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64388         allocsa/freesa instead of malloc/free.
64389         * lib/mbscasestr.c: Include allocsa.h.
64390         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64391         allocsa/freesa instead of malloc/free.
64392         * modules/c-strstr (Depends-on): Add allocsa.
64393         * modules/c-strcasestr (Depends-on): Likewise.
64394         * modules/strcasestr (Depends-on): Likewise.
64395         * modules/mbsstr (Depends-on): Likewise.
64396         * modules/mbscasestr (Depends-on): Likewise.
64397
64398 2007-02-11  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64401
64402         * modules/mbsspn-tests: New file.
64403         * tests/test-mbsspn.sh: New file.
64404         * tests/test-mbsspn.c: New file.
64405
64406 2007-02-11  Bruno Haible  <bruno@clisp.org>
64407
64408         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64409
64410         * modules/mbspbrk-tests: New file.
64411         * tests/test-mbspbrk.sh: New file.
64412         * tests/test-mbspbrk.c: New file.
64413
64414 2007-02-11  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64417         unneeded cast.
64418
64419         * modules/mbscspn-tests: New file.
64420         * tests/test-mbscspn.sh: New file.
64421         * tests/test-mbscspn.c: New file.
64422
64423 2007-02-11  Bruno Haible  <bruno@clisp.org>
64424
64425         * modules/mbscasecmp-tests: New file.
64426         * tests/test-mbscasecmp.sh: New file.
64427         * tests/test-mbscasecmp.c: New file.
64428
64429 2007-02-11  Bruno Haible  <bruno@clisp.org>
64430
64431         Ensure O(n) worst-case complexity of mbscasestr.
64432         * lib/mbscasestr.c: Include stdbool.h.
64433         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64434         functions.
64435         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64436         the bookkeeping indicates that it's worth it.
64437         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64438
64439         * modules/mbscasestr-tests: New file.
64440         * tests/test-mbscasestr1.c: New file.
64441         * tests/test-mbscasestr2.sh: New file.
64442         * tests/test-mbscasestr2.c: New file.
64443         * tests/test-mbscasestr3.sh: New file.
64444         * tests/test-mbscasestr3.c: New file.
64445         * tests/test-mbscasestr4.sh: New file.
64446         * tests/test-mbscasestr4.c: New file.
64447         * m4/locale-tr.m4: New file.
64448
64449 2007-02-11  Bruno Haible  <bruno@clisp.org>
64450
64451         Ensure O(n) worst-case complexity of mbsstr.
64452         * lib/mbsstr.c: Include stdbool.h.
64453         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64454         functions.
64455         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64456         bookkeeping indicates that it's worth it.
64457         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64458
64459         * modules/mbsstr-tests: New file.
64460         * tests/test-mbsstr1.c: New file.
64461         * tests/test-mbsstr2.sh: New file.
64462         * tests/test-mbsstr2.c: New file.
64463         * tests/test-mbsstr3.sh: New file.
64464         * tests/test-mbsstr3.c: New file.
64465         * m4/locale-fr.m4: New file.
64466
64467 2007-02-11  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/mbsrchr.c (mbsrchr): Fix bug.
64470
64471         * modules/mbsrchr-tests: New file.
64472         * tests/test-mbsrchr.sh: New file.
64473         * tests/test-mbsrchr.c: New file.
64474
64475 2007-02-11  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/mbschr.c (mbschr): Fix bug.
64478
64479         * modules/mbschr-tests: New file.
64480         * tests/test-mbschr.sh: New file.
64481         * tests/test-mbschr.c: New file.
64482         * m4/locale-zh.m4: New file.
64483
64484 2007-02-11  Bruno Haible  <bruno@clisp.org>
64485
64486         Support for copying multibyte string iterators.
64487         * lib/mbiter.h: Include <string.h>.
64488         (mbiter_multi_copy): New function.
64489         (mbi_copy): New macro.
64490         * lib/mbuiter.h: Include <string.h>.
64491         (mbuiter_multi_copy): New function.
64492         (mbui_copy): New macro.
64493
64494 2007-02-11  Bruno Haible  <bruno@clisp.org>
64495
64496         New module mbslen.
64497         * modules/mbslen: New file.
64498         * lib/mbslen.c: New file.
64499         * lib/string_.h (mbslen): New declaration.
64500         * m4/mbslen.m4: New file.
64501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64502         GNULIB_MBSLEN.
64503         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64504         * MODULES.html.sh (Internationalization functions): Add mbslen.
64505
64506 2007-02-11  Bruno Haible  <bruno@clisp.org>
64507
64508         Ensure O(n) worst-case complexity of strcasestr substitute.
64509         * lib/strcasestr.c: Include stdbool.h.
64510         (knuth_morris_pratt): New function.
64511         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64512         bookkeeping indicates that it's worth it.
64513         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64514
64515         * modules/strcasestr-tests: New file.
64516         * tests/test-strcasestr.c: New file.
64517
64518 2007-02-11  Bruno Haible  <bruno@clisp.org>
64519
64520         Ensure O(n) worst-case complexity of c_strcasestr.
64521         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64522         (knuth_morris_pratt): New function.
64523         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64524         the bookkeeping indicates that it's worth it.
64525         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64526
64527         * modules/c-strcasestr-tests: New file.
64528         * tests/test-c-strcasestr.c: New file.
64529
64530 2007-02-11  Bruno Haible  <bruno@clisp.org>
64531
64532         Ensure O(n) worst-case complexity of c_strstr.
64533         * lib/c-strstr.c: Include stdbool.h, string.h.
64534         (knuth_morris_pratt): New function.
64535         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64536         bookkeeping indicates that it's worth it.
64537         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64538
64539         * lib/c-strstr.c: Complete rewrite for maintainability.
64540
64541         * modules/c-strstr-tests: New file.
64542         * tests/test-c-strstr.c: New file.
64543
64544 2007-02-11  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64547         5.2.1 and earlier, whereby \055 was treated just like the range
64548         delimiter '-'.
64549         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64550
64551 2007-02-08  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/regex (Depends-on): Add stdbool.
64554         Reported by Dalibor Topic <robilad@kaffe.org>.
64555
64556 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64559         Prefer returning from main to exiting from it.
64560         Remove unnecessary parens after sizeof.
64561
64562 2007-02-05  Bruno Haible  <bruno@clisp.org>
64563
64564         New module mbssep.
64565         * modules/mbssep: New file.
64566         * lib/mbssep.c: New file.
64567         * lib/string_.h (strsep): Add a conditional link warning.
64568         (mbssep): New declaration.
64569         * m4/mbssep.m4: New file.
64570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64571         GNULIB_MBSSEP.
64572         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64573         * MODULES.html.sh (Internationalization functions): Add mbssep.
64574
64575 2007-02-05  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64578         Optimize search in case of 1 delimiter.
64579
64580 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64581
64582         * lib/acl.h: Include sys/types.h before sys/acl.h.
64583
64584 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64585
64586         Merge upstream fix for glibc bugzilla #3957:
64587
64588         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64589
64590         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64591         bit for RE_HAT_LISTS_NOT_NEWLINE.
64592         (build_charclass_op): Remove bogus comment.
64593
64594 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64595
64596         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64597
64598 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64601         * lib/memmem.c [!defined _LIBC]: Include config.h.
64602
64603 2007-02-04  Bruno Haible  <bruno@clisp.org>
64604
64605         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64606         warning message.
64607
64608 2007-02-04  Bruno Haible  <bruno@clisp.org>
64609
64610         New module mbstok_r.
64611         * modules/mbstok_r: New file.
64612         * lib/mbstok_r.c: New file.
64613         * lib/string_.h (strtok_r): Change argument names to match the
64614         comments. Add a conditional link warning.
64615         (mbstok_r): New declaration.
64616         * m4/mbstok_r.m4: New file.
64617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64618         GNULIB_MBSTOK_R.
64619         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64620         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64621
64622 2007-02-04  Bruno Haible  <bruno@clisp.org>
64623
64624         New module mbsspn.
64625         * modules/mbsspn: New file.
64626         * lib/mbsspn.c: New file.
64627         * lib/string_.h (strspn): Add a conditional link warning.
64628         (mbsspn): New declaration.
64629         * m4/mbsspn.m4: New file.
64630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64631         GNULIB_MBSSPN.
64632         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64633         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64634
64635 2007-02-04  Bruno Haible  <bruno@clisp.org>
64636
64637         New module mbspbrk.
64638         * modules/mbspbrk: New file.
64639         * lib/mbspbrk.c: New file.
64640         * lib/string_.h (strpbrk): Add a conditional link warning.
64641         (mbspbrk): New declaration.
64642         * m4/mbspbrk.m4: New file.
64643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64644         GNULIB_MBSPBRK.
64645         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64646         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64647
64648 2007-02-04  Bruno Haible  <bruno@clisp.org>
64649
64650         New module mbscspn.
64651         * modules/mbscspn: New file.
64652         * lib/mbscspn.c: New file.
64653         * lib/string_.h (strcspn): Add a conditional link warning.
64654         (mbscspn): New declaration.
64655         * m4/mbscspn.m4: New file.
64656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64657         GNULIB_MBSCSPN.
64658         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64659         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64660
64661 2007-02-04  Bruno Haible  <bruno@clisp.org>
64662
64663         New module mbscasestr, reduced goal of strcasestr.
64664         * modules/mbscasestr: New file.
64665         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64666         (mbscasestr): Renamed from strcasestr.
64667         * lib/strcasestr.c: Don't include mbuiter.h.
64668         (strcasestr): Remove support for multibyte locales.
64669         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64670         Change the conditional link warning.
64671         (mbscasestr): New declaration.
64672         * m4/mbscasestr.m4: New file.
64673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64674         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64675         REPLACE_STRCASESTR.
64676         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64678         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64679         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64680         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64681         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64682         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64683         (Depends-on): Remove mbuiter.
64684         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64685
64686 2007-02-04  Bruno Haible  <bruno@clisp.org>
64687
64688         Simplify handling of strncasecmp.
64689         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64690         the conditional link warning.
64691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64692         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64693         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64694         * modules/strcase (configure.ac): Don't invoke
64695         gl_STRING_MODULE_INDICATOR.
64696         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64697
64698 2007-02-04  Bruno Haible  <bruno@clisp.org>
64699
64700         New module mbscasecmp, reduced goal of strcasecmp.
64701         * modules/mbscasecmp: New file.
64702         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64703         (mbscasecmp): Renamed from strcasecmp.
64704         * lib/strcasecmp.c: Don't include mbuiter.h.
64705         (strcasecmp): Remove support for multibyte locales.
64706         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64707         Change the conditional link warning.
64708         (mbscasecmp): New declaration.
64709         * m4/mbscasecmp.m4: New file.
64710         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64711         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64712         REPLACE_STRCASECMP.
64713         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64715         GNULIB_MBSCASECMP.
64716         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64717         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64718         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64719         (Depends-on): Remove mbuiter.
64720         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64721
64722 2007-02-04  Bruno Haible  <bruno@clisp.org>
64723
64724         New module mbsstr. Remove module strstr.
64725         * modules/mbsstr: New file.
64726         * modules/strstr: Remove file.
64727         * lib/mbsstr.c: Renamed from lib/strstr.c.
64728         (mbsstr): Renamed from strstr.
64729         * lib/string_.h (strstr): Remove declaration. Change the conditional
64730         link warning.
64731         (mbsstr): New declaration.
64732         * m4/mbsstr.m4: New file.
64733         * m4/strstr.m4: Remove file.
64734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64735         REPLACE_STRSTR.
64736         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64737         Don't initialize GNULIB_STRSTR.
64738         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64739         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64740         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64741         (Support for systems lacking ANSI C 89): Remove strstr.
64742
64743 2007-02-04  Bruno Haible  <bruno@clisp.org>
64744
64745         New module mbsrchr.
64746         * modules/mbsrchr: New file.
64747         * lib/mbsrchr.c: New file.
64748         * lib/string_.h (strrchr): Add a conditional link warning.
64749         (mbsrchr): New declaration.
64750         * m4/mbsrchr.m4: New file.
64751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64752         GNULIB_MBSRCHR.
64753         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64754         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64755
64756 2007-02-04  Bruno Haible  <bruno@clisp.org>
64757
64758         New module mbschr.
64759         * modules/mbschr: New file.
64760         * lib/mbschr.c: New file.
64761         * lib/string_.h (strchr): Add a conditional link warning.
64762         (mbschr): New declaration.
64763         * m4/mbschr.m4: New file.
64764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64765         GNULIB_MBSCHR.
64766         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64767         * MODULES.html.sh (Internationalization functions): Add mbschr.
64768
64769 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64772
64773         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64774
64775 2007-02-04  Bruno Haible  <bruno@clisp.org>
64776
64777         New module description section 'configure.ac-early'.
64778         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64779         (func_get_autoconf_early_snippet): New function.
64780         (func_import, func_create_testdir): Use it. Remove special cases for
64781         modules 'extensions' and 'lock'.
64782         * modules/extensions (configure.ac-early): Require
64783         gl_USE_SYSTEM_EXTENSIONS.
64784         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64785
64786 2007-02-04  Bruno Haible  <bruno@clisp.org>
64787
64788         Make use of gcj-4.3's -fsource and -ftarget option.
64789         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64790         and if so try the options -fsource and -ftarget.
64791         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64792         source_version, ftarget_option, target_version arguments.
64793         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64794         (is_envjavac_oldgcj_14_14_usable): Renamed from
64795         is_envjavac_gcj_14_14_usable.
64796         (is_envjavac_oldgcj_14_13_usable): Renamed from
64797         is_envjavac_gcj_14_13_usable.
64798         (is_gcj_present): Update.
64799         (is_gcj_43, is_gcj43_usable): New functions.
64800         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64801         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64802         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64803         try the options -fsource and -ftarget.
64804
64805 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64806
64807         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64808         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64809         larger value.
64810
64811 2007-02-03  Jim Meyering  <jim@meyering.net>
64812
64813         Give tools a better chance to allocate space for very large buffers.
64814         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64815
64816         Make pwd and readlink work also when run with an unreadable parent dir
64817         on systems with openat support.
64818         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64819         provided getcwd function, even when we have openat support.
64820         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64821
64822 2007-02-02  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64825         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64826         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64827         portability problems if one of these functions is only used on specific
64828         platforms.
64829         Reported by Paul Eggert.
64830
64831 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64834         is causing more trouble than it's curing.
64835         * lib/regex_internal.h (__mempcpy): Remove.
64836         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64837         (and make the code a tad smaller to boot).
64838         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64839
64840 2007-02-02  Jim Meyering  <jim@meyering.net>
64841
64842         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64843         section, not in the Makefile.am: one.
64844
64845 2007-02-02  Eric Blake  <ebb9@byu.net>
64846
64847         * lib/strchrnul.c: Always include config.h first.
64848
64849         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64850         gnulib strstr is not necessary here.
64851
64852 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64853
64854         * m4/socklen.m4: Fix typo.
64855
64856 2007-02-02  Eric Blake  <ebb9@byu.net>
64857
64858         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64859         * modules/netinet_in (Makefile.am): Likewise.
64860
64861 2007-02-01  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/string_.h (GL_LINK_WARNING): New macro.
64864         (strcasecmp, strstr, strcasestr): If provided by the system,
64865         conditionally define as a macro that leads to a warning instead of to
64866         an error.
64867         (strncasecmp): Conditionally define as a macro that leads to a warning.
64868
64869 2007-02-01  Karl Berry  <karl@gnu.org>
64870
64871         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64872
64873 2007-02-01  Bruno Haible  <bruno@clisp.org>
64874
64875         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64876         renamings.
64877
64878 2007-02-01  Eric Blake  <ebb9@byu.net>
64879
64880         * modules/regex (Depends-on): Revert dependence on mempcpy.
64881         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64882         module's definition of mempcpy.
64883         Reported by Paul Eggert.
64884
64885 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64888         the symbol XYZ before redefining it.  This fixes a problem with
64889         programs that don't use XYZ, when compiled on systems that define
64890         XYZ to something else.
64891
64892 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64895         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64896         writeable to group or other and (2) is intended to have a special
64897         mode bit that is set or cleared.  In such a case, the directory
64898         should be neither group- nor other-writeable until the special
64899         mode bits are right.
64900
64901 2007-01-31  Eric Blake  <ebb9@byu.net>
64902
64903         * modules/mountlist (Depends-on): Add strstr.
64904
64905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64906         bug.
64907         * modules/string (Makefile.am): Remove redundant replacement.
64908         * modules/regex (Depends-on): Add mempcpy.
64909
64910 2007-01-31  Bruno Haible  <bruno@clisp.org>
64911
64912         New module description field 'Link'.
64913         * gnulib-tool (func_usage): Document --extract-link-directive.
64914         (sed_extract_prog): Recognize 'Link' directive.
64915         (func_get_link_directive): New function.
64916         (func_import): Show summary of link directives.
64917         Handle --extract-link-directive option.
64918         * modules/acl (Link): New section.
64919         * modules/clock-time (Link): New section.
64920         * modules/euidaccess (Link): New section.
64921         * modules/gettext (Link): New section.
64922         * modules/iconv (Link): New section.
64923         * modules/lock (Link): New section.
64924         * modules/nanosleep (Link): New section.
64925         * modules/readline (Link): New section.
64926
64927 2007-01-27  Bruno Haible  <bruno@clisp.org>
64928
64929         Enforce the use of gnulib modules for unportable <string.h> functions.
64930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64932         (gl_HEADER_STRING_H_BODY): Require it.
64933         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64934         the symbol XYZ to one that gives a link error.
64935         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64936         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64937         * modules/mempcpy (configure.ac): Likewise.
64938         * modules/memrchr (configure.ac): Likewise.
64939         * modules/stpcpy (configure.ac): Likewise.
64940         * modules/stpncpy (configure.ac): Likewise.
64941         * modules/strcase (configure.ac): Likewise.
64942         * modules/strcasestr (configure.ac): Likewise.
64943         * modules/strchrnul (configure.ac): Likewise.
64944         * modules/strdup (configure.ac): Likewise.
64945         * modules/strndup (configure.ac): Likewise.
64946         * modules/strnlen (configure.ac): Likewise.
64947         * modules/strpbrk (configure.ac): Likewise.
64948         * modules/strsep (configure.ac): Likewise.
64949         * modules/strstr (configure.ac): Likewise.
64950         * modules/strtok_r (configure.ac): Likewise.
64951
64952 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64953
64954         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64955
64956 2007-01-30  Jim Meyering  <jim@meyering.net>
64957
64958         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64959
64960 2007-01-29  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64963         * lib/execute.c: Likewise.
64964         * lib/pipe.c: Likewise.
64965         * lib/printf-args.h: Likewise.
64966         * lib/printf-args.c: Likewise.
64967         * lib/printf-parse.c: Likewise.
64968         * lib/vasnprintf.c: Likewise.
64969
64970 2007-01-29  Eric Blake  <ebb9@byu.net>
64971
64972         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64973         declaration.
64974
64975 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * lib/strptime.h (strptime): Use 'restrict' for args where
64978         POSIX requires this.
64979         * lib/strptime.c (strptime): Likewise.
64980         Change license notice from LGPL to GPL, since gnulib-tool will
64981         change this as needed.
64982         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64983         defined.
64984         Include "strptime.h" first, to check interface.
64985         Do not #undef _LIBC and _NL_CURRENT.
64986         Do not include <stdlib.h>; no longer needed.
64987         Include "time_r.h" and declare ptime_locale_status
64988         only if _LIBC is not defined.
64989         (__P): Remove unused macro.
64990         (match_string): Bring back glibc version, but use it only if _LIBC
64991         is defined.
64992         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64993         Remove unnecessary assertion and abort() call.
64994         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64995         * m4/strptime.m4: Fix serial number comment.
64996         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64997         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64998         (Depends-on): Add time_r.
64999
65000 2007-01-29  Bruno Haible  <bruno@clisp.org>
65001
65002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65003         strptime.
65004         * modules/strptime (Depends-on): Add stdbool.
65005         * lib/strptime.h: Include <time.h> always. Add comments.
65006
65007 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65008
65009         * modules/strptime: New file.
65010         * lib/strptime.h: New file.
65011         * lib/strptime.c: New file.
65012         * m4/strptime.m4: New file.
65013
65014 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * MODULES.html.sh: New module mpsort.
65017         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65018
65019         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65020         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65021         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65022         All uses changed.
65023         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65024         All uses changed.
65025         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65026         to _Restrict_.
65027         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65028         the parameter matches the prototype.
65029
65030 2007-01-28  Jim Meyering  <jim@meyering.net>
65031
65032         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65033         sys/time.h here, reverting that part of the previous patch:
65034         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65035
65036 2007-01-28  Bruno Haible  <bruno@clisp.org>
65037
65038         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65039         value of $(SYS_TIME_H).
65040         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65041         remove it conditionally, too. [added by Jim Meyering]
65042         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65044         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65045         GETTIMEOFDAY_REPLACEMENT to 1.
65046
65047 2007-01-28  Bruno Haible  <bruno@clisp.org>
65048
65049         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65050         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65051         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65052         Set UNISTD_H instead of UNISTD_H2.
65053         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65054
65055 2007-01-28  Bruno Haible  <bruno@clisp.org>
65056
65057         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65058         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65059
65060 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65061
65062         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65063         (func_create_testdir): Ensure C locale for `grep' and `tr'
65064         character ranges.
65065         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65066         ACLOCAL_AMFLAGS parsing state machine.
65067
65068 2007-01-27  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/unistr/base: Update.
65071
65072 2007-01-27  Bruno Haible  <bruno@clisp.org>
65073
65074         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65075         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65076         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65077         modules/unistr/u32-mbtouc.
65078         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65079         * lib/unistr.h: Update.
65080         * lib/linebreak.c: Update.
65081         * modules/unistr/u32-mbtouc: Renamed from
65082         modules/unistr/u32-mbtouc-safe.
65083         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65084         * lib/unistr.h: Update.
65085         * lib/unistr/u32-to-u8.c: Update.
65086         * lib/unistr/u32-to-u16.c: Update.
65087
65088 2007-01-27  Bruno Haible  <bruno@clisp.org>
65089
65090         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65091         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65092         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65093         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65094         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65095         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65096         modules/unistr/u16-mbtouc.
65097         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65098         * lib/unistr.h: Update.
65099         * lib/linebreak.c: Update.
65100         * modules/linebreak: Update.
65101         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65102         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65103         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65104         * modules/unistr/u16-mbtouc: Renamed from
65105         modules/unistr/u16-mbtouc-safe.
65106         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65107         * lib/unistr.h: Update.
65108         * lib/unistr/u16-to-u8.c: Update.
65109         * modules/unistr/u16-to-u8: Update.
65110         * lib/unistr/u16-to-u32.c: Update.
65111         * modules/unistr/u16-to-u32: Update.
65112
65113 2007-01-27  Bruno Haible  <bruno@clisp.org>
65114
65115         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65116         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65117         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65118         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65119         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65120         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65121         modules/unistr/u8-mbtouc.
65122         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65123         * lib/unistr.h: Update.
65124         * lib/striconveh.c: Update.
65125         * modules/striconveh: Update.
65126         * lib/linebreak.c: Update.
65127         * modules/linebreak: Update.
65128         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65129         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65130         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65131         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65132         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65133         * lib/unistr.h: Update.
65134         * lib/striconveh.c: Update.
65135         * modules/striconveh: Update.
65136         * lib/unistr/u8-to-u16.c: Update.
65137         * modules/unistr/u8-to-u16: Update.
65138         * lib/unistr/u8-to-u32.c: Update.
65139         * modules/unistr/u8-to-u32: Update.
65140
65141 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65142
65143         Sync from Libtool.
65144         * lib/argz.c: Do not include strings.h nor memory.h, include
65145         string.h unconditionally.  Patch by Simon Josefsson.
65146
65147 2007-01-27  Bruno Haible  <bruno@clisp.org>
65148
65149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65150         from gl_HEADER_STRING_H_BODY.
65151         (gl_HEADER_STRING_H_BODY): Require it.
65152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65153         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65154         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65155         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65157         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65160         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65162         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65163         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65164         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65167
65168 2007-01-27  Bruno Haible  <bruno@clisp.org>
65169
65170         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65171         check_PROGRAMS into noinst_PROGRAMS.
65172         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65173         check_PROGRAMS in this case.
65174         (func_import): Set for_test to false.
65175         (func_create_testdir): Set for_test to true.
65176
65177 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65178             Bruno Haible  <bruno@clisp.org>
65179
65180         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65181         (Depends-on): Add string.
65182         (Includes): Use <string.h> instead of strcasestr.h.
65183         * modules/string (Makefile.am): Also substitute the value of
65184         REPLACE_STRCASESTR.
65185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65186         assume strcasestr is declared in <string.h> not <strings.h>. Also
65187         set REPLACE_STRCASESTR.
65188         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65189         REPLACE_STRCASESTR.
65190         * lib/strcasestr.h: Remove file.
65191         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65192         * lib/string_.h (strcasestr): New declaration.
65193
65194 2007-01-27  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/string_.h: Use 'extern'.
65197
65198 2007-01-27  Jim Meyering  <jim@meyering.net>
65199
65200         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65201         of set-but-not-used local, "q".
65202
65203         * lib/mempcpy.c: Include <config.h> before <string.h>.
65204         This fixes a compilation error on HP-UX, due to the system's
65205         "restrict"-using mempcpy prototype.
65206
65207 2007-01-26  Bruno Haible  <bruno@clisp.org>
65208
65209         Small optimization.
65210         * lib/javacomp.c: Include c-strstr.h.
65211          (is_envjavac_gcj): Use c_strstr instead of strstr.
65212         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65213
65214 2007-01-26  Bruno Haible  <bruno@clisp.org>
65215
65216         * MODULES.html.sh (Unicode string functions): Add the new modules.
65217
65218         * modules/uniconv/u32-strconv-to-locale: New file.
65219         * lib/uniconv/u32-strconv-to-locale.c: New file.
65220
65221         * modules/uniconv/u16-strconv-to-locale: New file.
65222         * lib/uniconv/u16-strconv-to-locale.c: New file.
65223
65224         * modules/uniconv/u8-strconv-to-locale: New file.
65225         * lib/uniconv/u8-strconv-to-locale.c: New file.
65226
65227         * modules/uniconv/u32-strconv-from-locale: New file.
65228         * lib/uniconv/u32-strconv-from-locale.c: New file.
65229
65230         * modules/uniconv/u16-strconv-from-locale: New file.
65231         * lib/uniconv/u16-strconv-from-locale.c: New file.
65232
65233         * modules/uniconv/u8-strconv-from-locale: New file.
65234         * lib/uniconv/u8-strconv-from-locale.c: New file.
65235
65236         * modules/uniconv/u32-strconv-to-enc: New file.
65237         * lib/uniconv/u32-strconv-to-enc.c: New file.
65238         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65239         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65240
65241         * modules/uniconv/u16-strconv-to-enc: New file.
65242         * lib/uniconv/u16-strconv-to-enc.c: New file.
65243         * lib/uniconv/u-strconv-to-enc.h: New file.
65244         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65245         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65246
65247         * modules/uniconv/u8-strconv-to-enc: New file.
65248         * lib/uniconv/u8-strconv-to-enc.c: New file.
65249         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65250         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65251
65252         * modules/uniconv/u32-strconv-from-enc: New file.
65253         * lib/uniconv/u32-strconv-from-enc.c: New file.
65254         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65255         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65256
65257         * modules/uniconv/u16-strconv-from-enc: New file.
65258         * lib/uniconv/u16-strconv-from-enc.c: New file.
65259         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65260         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65261
65262         * modules/uniconv/u8-strconv-from-enc: New file.
65263         * lib/uniconv/u8-strconv-from-enc.c: New file.
65264         * lib/uniconv/u-strconv-from-enc.h: New file.
65265         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65266         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65267
65268         * modules/uniconv/u32-conv-from-enc: New file.
65269         * lib/uniconv/u32-conv-from-enc.c: New file.
65270         * modules/uniconv/u32-conv-from-enc-tests: New file.
65271         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65272
65273         * modules/uniconv/u16-conv-from-enc: New file.
65274         * lib/uniconv/u16-conv-from-enc.c: New file.
65275         * lib/uniconv/u-conv-from-enc.h: New file.
65276         * modules/uniconv/u16-conv-from-enc-tests: New file.
65277         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65278
65279         * modules/uniconv/u8-conv-from-enc: New file.
65280         * lib/uniconv/u8-conv-from-enc.c: New file.
65281         * modules/uniconv/u8-conv-from-enc-tests: New file.
65282         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65283
65284         * modules/uniconv/base: New file.
65285         * lib/uniconv.h: New file.
65286
65287 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * doc/gnulib-tool.texi (Initial import): Update to match current
65290         behavior with strdup module.
65291         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65292         * lib/memmem.h: Remove; all uses removed.  This is now done
65293         by <string.h>.
65294         * lib/mempcpy.h: Likewise.
65295         * lib/memrchr.h: Likewise.
65296         * lib/stpcpy.h: Likewise.
65297         * lib/stpncpy.h: Likewise.
65298         * lib/strcase.h: Likewise.
65299         * lib/strchrnul.h: Likewise.
65300         * lib/strdup.h: Likewise.
65301         * lib/strndup.h: Likewise.
65302         * lib/strnlen.h: Likewise.
65303         * lib/strpbrk.h: Likewise.
65304         * lib/strsep.h: Likewise.
65305         * lib/strstr.h: Likewise.
65306         * lib/strtok_r.h: Likewise.
65307         * lib/string_.h: New file.
65308         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65309         Rely on <string.h> instead.
65310         * lib/canon-host.c: Likewise.
65311         * lib/chdir-long.c: Likewise.
65312         * lib/concatpath.c: Likewise.
65313         * lib/exclude.c: Likewise.
65314         * lib/fchdir.c: Likewise.
65315         * lib/getaddrinfo.c: Likewise.
65316         * lib/getcwd.c: Likewise.
65317         * lib/getsubopt.c: Likewise.
65318         * lib/glob.c: Likewise.
65319         * lib/hard-locale.c: Likewise.
65320         * lib/iconvme.c: Likewise.
65321         * lib/javacomp.c: Likewise.
65322         * lib/mempcpy.c: Likewise.
65323         * lib/memrchr.c: Likewise.
65324         * lib/regex_internal.h: Likewise.
65325         * lib/stpncpy.c: Likewise.
65326         * lib/strcasecmp.c: Likewise.
65327         * lib/strchrnul.c: Likewise.
65328         * lib/strdup.c: Likewise.
65329         * lib/striconv.c: Likewise.
65330         * lib/striconveh.c: Likewise.
65331         * lib/striconveha.c: Likewise.
65332         * lib/strncasecmp.c: Likewise.
65333         * lib/strndup.c: Likewise.
65334         * lib/strnlen.c: Likewise.
65335         * lib/strsep.c: Likewise.
65336         * lib/strstr.c: Likewise.
65337         * lib/strtok_r.c: Likewise.
65338         * lib/userspec.c: Likewise.
65339         * lib/w32spawn.h: Likewise.
65340         * lib/xstrndup.c: Likewise.
65341         * lib/mountlist.c (strstr): Remove decl.
65342         * m4/string_h.m4: New file.
65343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65345         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65346         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65347         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65348         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65349         Set REPLACE_STRCASECMP if necessary.
65350         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65352         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65353         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65354         HAVE_DECL_STRDUP if necessary.
65355         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65356         since gl_FUNC_STRNDUP does that now.
65357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65358         Check for decl here...
65359         (gl_PREREQ_STRNLEN): ... not here.
65360         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65361         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65362         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65363         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65364         necessary.
65365         * modules/string: New file.
65366         * modules/memmem (Files): Remove special-purpose include file.
65367         (Depends-on): Add string.
65368         (Include): Include <string.h>, not the removed file.
65369         * modules/mempcpy: Likewise.
65370         * modules/memrchr: Likewise.
65371         * modules/stpcpy: Likewise.
65372         * modules/stpncpy: Likewise.
65373         * modules/strcase: Likewise.
65374         * modules/strchrnul: Likewise.
65375         * modules/strdup: Likewise.
65376         * modules/strndup: Likewise.
65377         * modules/strnlen: Likewise.
65378         * modules/strpbrk: Likewise.
65379         * modules/strsep: Likewise.
65380         * modules/strstr: Likewise.
65381         * modules/strtok_r: Likewise.
65382         * tests/test-dirname.c: Don't include "strdup.h", since
65383         <string.h> now suffices.
65384         * tests/test-memmem.c: Don't include "memmem.h", since
65385         <string.h> now suffices.
65386
65387 2007-01-25  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65390         *resultp is 0.
65391
65392         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65393         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65394         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65395         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65396
65397         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65398         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65399         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65400         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65401         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65402         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65403
65404 2007-01-24  Bruno Haible  <bruno@clisp.org>
65405
65406         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65408         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65409         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65410         gl_FUNC_FTS_CORE.
65411         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65412         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65414         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65415         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65416         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65417         gl_FUNC_FCHOWNAT.
65418         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65419         gl_FUNC_STRFTIME.
65420         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65421         Reported by Ralf Wildenhues.
65422
65423 2007-01-24  Bruno Haible  <bruno@clisp.org>
65424
65425         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65426         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65427         gl_GETADDRINFO.
65428         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65429         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65430         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65431
65432 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65435         Don't use 'exit'; just return from 'main'.
65436         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65437
65438         * lib/fnmatch_.h: Readjust white space and comments to match
65439         glibc, to avoid spurious diffs.
65440
65441 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65444         2004-12-01 change by Jakub Jelinek, since this code won't compile
65445         if !LIBC.  Problem reported by Bob Proulx.
65446
65447 2007-01-23  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/striconveh.c: Include c-strcaseeq.h.
65450         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65451         * modules/striconveh (Depends-on): Add c-strcaseeq.
65452
65453 2007-01-23  Bruno Haible  <bruno@clisp.org>
65454
65455         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65456
65457         * modules/c-strcaseeq: New file.
65458         * lib/c-strcaseeq.h: New file.
65459
65460         * modules/streq: New file.
65461         * lib/streq.h: New file.
65462
65463 2007-01-23  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/striconveha-tests: New file.
65466         * tests/test-striconveha.c: New file.
65467
65468         * lib/striconveha.h: Include <stdbool.h>.
65469         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65470         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65471         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65472         (mem_iconveha): New function.
65473         (str_iconveha_notranslit): Renamed from str_iconveha.
65474         (str_iconveha): New function.
65475         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65476         c-strcase.
65477
65478 2007-01-23  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65481         encodings without forgiving before trying any encoding with handler.
65482         (str_iconveha): Try all encodings without forgiving before trying any
65483         encoding with handler.
65484
65485 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         Import the following changes from libc.
65488
65489         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65490
65491         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65492
65493         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65494
65495         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65496         normal_bracket label.
65497
65498         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65499
65500         [BZ #361]
65501         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65502         to normal_bracket after fetching the next character.
65503
65504 2007-01-22  Bruno Haible  <bruno@clisp.org>
65505
65506         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65507         argument.
65508         * lib/striconveh.c (iconv_carefully_1): New function.
65509         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65510         argument.
65511         (str_cd_iconveh): Update.
65512         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65513         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65514         * tests/test-striconveh.c (MAGIC): New macro.
65515         (new_offsets): New function.
65516         (main): Test call with and without offsets.
65517
65518 2007-01-22  Bruno Haible  <bruno@clisp.org>
65519
65520         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65521         * modules/sys_select (Makefile.am): Likewise.
65522         * modules/sys_socket (Makefile.am): Likewise.
65523         * modules/sys_time (Makefile.am): Likewise.
65524
65525 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65526
65527         * modules/gettimeofday (License): Change from GPL to LGPL, since
65528         gettimeofday is a library function.
65529
65530 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65531
65532         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65533
65534 2007-01-21  Bruno Haible  <bruno@clisp.org>
65535
65536         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65537
65538 2007-01-21  Bruno Haible  <bruno@clisp.org>
65539
65540         * modules/striconveha: New file.
65541         * lib/striconveha.h: New file.
65542         * lib/striconveha.c: New file.
65543         * MODULES.html.sh (Internationalization functions): Add striconveha.
65544         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65545         string.
65546         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65547
65548 2007-01-21  Bruno Haible  <bruno@clisp.org>
65549
65550         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65551         * lib/striconveh.c (str_iconveh): Likewise.
65552
65553 2007-01-21  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/striconveh.h (mem_iconveh): New declaration.
65556         * lib/striconveh.c (mem_iconveh): New function.
65557         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65558
65559 2007-01-21  Bruno Haible  <bruno@clisp.org>
65560
65561         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65562
65563         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65564         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65565         original result buffer.
65566         (str_cd_iconveh): Update.
65567         * tests/test-striconveh.c (main): Update.
65568
65569         * lib/striconv.h (mem_cd_iconv): Change specification.
65570         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65571         result buffer.
65572         (str_cd_iconv): Update.
65573         * tests/test-striconv.c (main): Update.
65574
65575 2007-01-21  Bruno Haible  <bruno@clisp.org>
65576
65577         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65578
65579 2007-01-20  Jim Meyering  <jim@meyering.net>
65580
65581         * lib/userspec.c (parse_with_separator): If a user or group string
65582         starts with "+", skip the corresponding name-to-ID look-up, since
65583         such a look-up must fail: user and group names may not include "+".
65584
65585 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65588         since we now assume the sys_time module.
65589         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65590         check for sys/time.h; no longer needed.
65591         * modules/poll (Depends-on): Depend on sys_time.
65592
65593 2007-01-18  Bruno Haible  <bruno@clisp.org>
65594
65595         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65596         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65597
65598         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65599         gettimeofday.
65600
65601         * tests/test-gettimeofday.c: Include <time.h>.
65602         (dummy): Remove variable.
65603
65604         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65605         gl_HEADER_SYS_TIME_H.
65606         (gl_HEADER_SYS_TIME_H): New macro.
65607
65608         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65609         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65611         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65612         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65614         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65615         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65616         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65617         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65618         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65619
65620         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65621         last change; it caused a compilation error when cross-compiling to
65622         Cygwin.
65623
65624 2007-01-18  Jim Meyering  <jim@meyering.net>
65625
65626         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65627         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65628         than the race-prone "test -d sys || mkdir sys".
65629         (configure.ac): Use AC_PROG_MKDIR_P.
65630         * modules/sys_select: Likewise.
65631         * modules/sys_socket: Likewise.
65632         * modules/sys_time: Likewise.
65633
65634 2007-01-18  Eric Blake  <ebb9@byu.net>
65635
65636         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65637         replace gettimeofday.
65638         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65639         name, to avoid infinite recursion.
65640
65641 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65642
65643         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65644         module sys_time.
65645         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65646         assume timespec.h defines struct timeval.
65647         * lib/settime.c: Likewise.
65648         * lib/utimens.c: Likewise.
65649         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65650         since we now assume the gettimeofday module.
65651         * lib/tempname.c (__gen_tempname): Likewise.
65652         * lib/gettimeofday.h: Remove.
65653         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65654         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65655         Include <time.h>, for 'time()'.
65656         (localtime_buffer_addr): Also use this workaround if
65657         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65658         to simplify the uses.  All uses changed.
65659         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65660         that #undef is inside {}, and 'const' follows type name consistently.
65661         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65662         (gettimeofday): Do not use the maximum possible value for
65663         tv->tv_usec, since that might break usages other than ls.c.
65664         Instead, we'll leave ls.c alone.  This undoes today's patch
65665         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65666         we've never observed the problem but might as well keep the
65667         canary.
65668         * lib/nanosleep.c: Include timespec.h first, for interface check.
65669         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65670         now assume the sys_time module.
65671         * lib/tempname.c: Likewise.
65672         * lib/timespec.h: Likewise.
65673         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65674         needed.
65675         * lib/strftime.c: Likewise.
65676         * lib/timespec.h: Likewise.
65677         * lib/posixtm.c: Include posixtm.h first, for interface check.
65678         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65679         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65680         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65681         * lib/sys_time_.h: New file.
65682         * lib/timespec.h (struct timespec): Use long int, not long.
65683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65684         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65685         Remove obsolescent call to AC_HEADER_TIME.
65686         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65688         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65689         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65690         Likewise.
65691         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65692         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65694         into the sys_time module.  Check for gettimeofday just once.
65695         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65696         for gettimeofday signature to just check the signature.  Merely
65697         compile it, since linking doesn't test signature.  Improve test for
65698         whether gettimeofday.o is actually needed.
65699         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65700         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65701         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65702         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65703         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65704         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65705         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65706         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65707         than worrying about sys/time.h.
65708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65709         Don't bother worrying about TIME_WITH_SYS_TIME.
65710         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65711         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65712         * m4/sys_time_h.m4: New file.
65713         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65714         Don't include sys/time.h.  Return from main rather than exiting.
65715         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65716         all uses changed.
65717         * modules/gethrxtime (Depends-on): Add sys_time.
65718         * modules/gettime (Depends-on): Likewise.
65719         * modules/gettimeofday (Depends-on): Likewise.
65720         * modules/nanosleep (Depends-on): Likewise.
65721         * modules/settime (Depends-on): Likewise.
65722         * modules/tempname (Depends-on): Likewise.
65723         * modules/utimens (Depends-on): Likewise.
65724         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65725         (Include): Change back to <sys/time.h>.
65726         (Maintainer): Add self.
65727         * modules/sys_time: New file.
65728         * modules/tempname (Depends-on): Add gettimeofday.
65729         * tests/test-gettimeofday.c: Include <sys/time.h>
65730         rather than gettimeofday.h.
65731
65732 2007-01-17  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65735         the license default to GPL.
65736         (func_create_testdir): Don't complain if a module is LGPL and its
65737         tests module depends on GPLed modules.
65738
65739 2007-01-17  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/gettimeofday.c (gettimeofday): Add code for the case
65742         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65743         maximum possible value for tv->tv_usec, rather than the minimum one.
65744
65745 2005-10-08  Martin Lambers  <marlam@marlam.de>
65746 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65747 2007-01-16  Bruno Haible  <bruno@clisp.org>
65748
65749         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65750         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65751         gl_FUNC_GETTIMEOFDAY.
65752         (Include): Add gettimeofday.h.
65753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65755         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65756         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65757         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65758         * lib/gettimeofday.h: New file.
65759         * lib/gettimeofday.c: Include <sys/timeb.h>.
65760         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65761         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65762         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65763         fall back on time().
65764
65765         * tests/test-gettimeofday.c: New file.
65766         * modules/gettimeofday-tests: New file.
65767
65768 2007-01-16  Eric Blake  <ebb9@byu.net>
65769
65770         * modules/fnmatch (Depends-on): Depend on wchar.
65771         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65772         * m4/fnmatch.m4: Likewise.
65773         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65774         * m4/mbchar.m4: Likewise.
65775         * modules/mbswidth (Depends-on): Depend on wchar.
65776         * lib/mbswidth.c: Assume <wchar.h>.
65777         * m4/mbswidth.m4: Likewise.
65778         * modules/quotearg (Depends-on): Depend on wchar.
65779         * lib/quotearg.c: Assume <wchar.h>.
65780         * m4/quotearg.m4: Likewise.
65781         * modules/regex (Depends-on): Depend on wchar.
65782         * lib/regex_internal.h: Assume <wchar.h>.
65783         * m4/regex.m4: Likewise.
65784         * modules/stdint (Depends-on): Depend on wchar.
65785         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65786         * m4/stdint.m4: Likewise.
65787         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65788         * modules/strftime (Depends-on): Depend on wchar.
65789         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65790         * modules/strtol (Depends-on): Depend on wchar.
65791         * lib/strtol.c: Assume <wchar.h>.
65792         * modules/wcwidth (Depends-on): Depend on wchar.
65793         * lib/wcwidth.h: Assume <wchar.h>.
65794         * m4/wcwidth.m4: Likewise.
65795
65796 2007-01-16  Bruno Haible  <bruno@clisp.org>
65797
65798         * modules/csharpexec-script: New, created from...
65799         * modules/csharpexec: ... this.
65800
65801 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65802
65803         * modules/javaexec-script: New, created from...
65804         * modules/javaexec: ... this.
65805
65806 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65807
65808         * modules/poll (Dependencies): Add sys_select.
65809
65810 2007-01-15  Jim Meyering  <jim@meyering.net>
65811
65812         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65813         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65814         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65815         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65816
65817 2007-01-15  Bruno Haible  <bruno@clisp.org>
65818
65819         * modules/striconveh: New file.
65820         * lib/striconveh.h: New file.
65821         * lib/striconveh.c: New file.
65822         * MODULES.html.sh (Internationalization functions): Add striconveh.
65823
65824         * modules/striconveh-tests: New file.
65825         * tests/test-striconveh.c: New file.
65826
65827 2007-01-15  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65830         not from GNU libiconv or GNU libc.
65831
65832 2007-01-15  Bruno Haible  <bruno@clisp.org>
65833
65834         * doc/gnulib-intro.texi (Copyright): Explain the different license
65835         terms for module descriptions, autoconf macros, tests, documentation.
65836
65837 2007-01-14  Bruno Haible  <bruno@clisp.org>
65838
65839         * modules/striconv-tests: New file.
65840         * tests/test-striconv.c: New file.
65841
65842 2007-01-14  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/iconv-tests: New file.
65845         * tests/test-iconv.c: New file.
65846
65847 2007-01-14  Bruno Haible  <bruno@clisp.org>
65848
65849         * gnulib-tool (func_get_license): For test modules, use the license of
65850         the main module.
65851
65852 2007-01-14  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65855         if iconv is found to exist.
65856
65857 2007-01-14  Bruno Haible  <bruno@clisp.org>
65858
65859         * modules/c-ctype-tests: New file.
65860         * tests/test-c-ctype.c: New file.
65861
65862 2007-01-14  Bruno Haible  <bruno@clisp.org>
65863
65864         * modules/binary-io-tests: New file.
65865         * tests/test-binary-io.sh: New file.
65866         * tests/test-binary-io.c: New file.
65867
65868 2007-01-14  Bruno Haible  <bruno@clisp.org>
65869
65870         * modules/array-oset-tests: New file.
65871         * tests/test-array_oset.c: New file.
65872
65873 2007-01-14  Bruno Haible  <bruno@clisp.org>
65874
65875         * modules/array-list-tests: New file.
65876         * tests/test-array_list.c: New file.
65877
65878 2007-01-14  Bruno Haible  <bruno@clisp.org>
65879
65880         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65881         and make.
65882         Reported by Simon Josefsson in
65883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65884
65885 2007-01-14  Bruno Haible  <bruno@clisp.org>
65886
65887         * modules/allocsa-tests: New file.
65888         * tests/test-allocsa.c: New file.
65889
65890 2007-01-14  Bruno Haible  <bruno@clisp.org>
65891
65892         * modules/fchdir (Depends-on): Add absolute-header.
65893         * modules/unistd (Depends-on): Likewise.
65894
65895 2006-12-30  Bruno Haible  <bruno@clisp.org>
65896
65897         * modules/fchdir: New file.
65898         * modules/unistd (Files): Add lib/unistd_.h.
65899         (Makefile.am): Generate unistd.h from unistd_.h.
65900         * lib/fchdir.c: New file.
65901         * lib/dirent_.h: New file.
65902         * lib/unistd_.h: New file.
65903         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65904         * m4/fchdir.m4: New file.
65905         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65906         (gl_HEADER_UNISTD): Invoke it.
65907         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65908         function.
65909         * lib/backupfile.c (opendir, closedir): Undefine.
65910         * lib/chown.c (open, close): Undefine.
65911         * lib/clean-temp.c (open, close): Undefine.
65912         * lib/copy-file.c (open, close): Undefine.
65913         * lib/execute.c (open, close): Undefine.
65914         * lib/fsusage.c (open, close): Undefine.
65915         * lib/gc-gnulib.c (open, close): Undefine.
65916         * lib/getcwd.c (opendir, closedir): Undefine.
65917         * lib/glob.c (opendir, closedir): Undefine.
65918         * lib/javacomp.c (open, close): Undefine.
65919         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65920         * lib/openat-proc.c (open, close): Undefine.
65921         * lib/pagealign_alloc.c (open, close): Undefine.
65922         * lib/pipe.c (open, close): Undefine.
65923         * lib/progreloc.c (open, close): Undefine.
65924         * lib/savedir.c (opendir, closedir): Undefine.
65925         * lib/utime.c (open, close): Undefine.
65926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65927
65928 2007-01-10  Bruno Haible  <bruno@clisp.org>
65929
65930         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65931
65932 2007-01-12  Eric Blake  <ebb9@byu.net>
65933
65934         Provide a robust <wchar.h>.  Further simplifications are now
65935         possible in other modules, but not included here.
65936         * modules/wchar: New module.
65937         * m4/wchar.m4: New file.
65938         * lib/wchar_.h: Likewise.
65939         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65940         of the new module.
65941         * MODULES.html.sh (Extended multibyte and wide character utilities):
65942         New section.
65943
65944 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65947         to a reasonable default for memory allocation.
65948         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65949         file system that reports garbage st_size values for symlinks.
65950         Problem reported by Liyang Hu.
65951
65952 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65953
65954         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65955         Emacs .#* auto-save files).
65956
65957 2007-01-11  Bruno Haible  <bruno@clisp.org>
65958
65959         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65960         directory.
65961
65962 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65963
65964         Use @...@ consistently in lib/wctype_.h.
65965         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65966         on it being set to 1 or 0.
65967         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65968         go back to AC_SUBSTing it.
65969         * modules/wctype (Makefile.am): Undo previous change.
65970
65971 2007-01-10  Eric Blake  <ebb9@byu.net>
65972
65973         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65974         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65975         * modules/wctype (Makefile.am): Likewise.
65976         Reported by Chris McGuire.
65977
65978 2007-01-10  Jim Meyering  <jim@meyering.net>
65979
65980         fts.c: a small readability/maintainability improvement
65981         * lib/fts.c (fts_read): Make this code slightly more readable and
65982         maintainable by hoisting the "sp->fts_cur = p" assignments to
65983         immediately follow the statements that set P.  Derived from
65984         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65985
65986 2007-01-10  Eric Blake  <ebb9@byu.net>
65987
65988         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65989         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65991         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65992         Reported by Chris McGuire.
65993
65994 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65995
65996         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65997         in sed script.
65998
65999 2007-01-09  Bruno Haible  <bruno@clisp.org>
66000
66001         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66002         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66003         variables.
66004         (func_module): Use them.
66005
66006 2007-01-09  Bruno Haible  <bruno@clisp.org>
66007
66008         * modules/unistr/base: New file.
66009         * lib/unistr.h: New file.
66010
66011         * modules/unistr/u8-to-u16: New file.
66012         * lib/unistr/u8-to-u16.c: New file.
66013
66014         * modules/unistr/u8-to-u32: New file.
66015         * lib/unistr/u8-to-u32.c: New file.
66016
66017         * modules/unistr/u16-to-u8: New file.
66018         * lib/unistr/u16-to-u8.c: New file.
66019
66020         * modules/unistr/u16-to-u32: New file.
66021         * lib/unistr/u16-to-u32.c: New file.
66022
66023         * modules/unistr/u32-to-u8: New file.
66024         * lib/unistr/u32-to-u8.c: New file.
66025
66026         * modules/unistr/u32-to-u16: New file.
66027         * lib/unistr/u32-to-u16.c: New file.
66028
66029         * modules/unistr/u8-check: New file.
66030         * modules/unistr/u16-check: New file.
66031         * modules/unistr/u32-check: New file.
66032         * lib/unistr/u8-check.c: New file.
66033         * lib/unistr/u16-check.c: New file.
66034         * lib/unistr/u32-check.c: New file.
66035
66036         * modules/unistr/u8-chr: New file.
66037         * modules/unistr/u16-chr: New file.
66038         * modules/unistr/u32-chr: New file.
66039         * lib/unistr/u8-chr.c: New file.
66040         * lib/unistr/u16-chr.c: New file.
66041         * lib/unistr/u32-chr.c: New file.
66042
66043         * modules/unistr/u8-cmp: New file.
66044         * modules/unistr/u16-cmp: New file.
66045         * modules/unistr/u32-cmp: New file.
66046         * lib/unistr/u8-cmp.c: New file.
66047         * lib/unistr/u16-cmp.c: New file.
66048         * lib/unistr/u32-cmp.c: New file.
66049
66050         * modules/unistr/u8-cpy: New file.
66051         * modules/unistr/u16-cpy: New file.
66052         * modules/unistr/u32-cpy: New file.
66053         * lib/unistr/u8-cpy.c: New file.
66054         * lib/unistr/u16-cpy.c: New file.
66055         * lib/unistr/u32-cpy.c: New file.
66056         * lib/unistr/u-cpy.h: New file.
66057
66058         * modules/unistr/u8-cpy-alloc: New file.
66059         * modules/unistr/u16-cpy-alloc: New file.
66060         * modules/unistr/u32-cpy-alloc: New file.
66061         * lib/unistr/u8-cpy-alloc.c: New file.
66062         * lib/unistr/u16-cpy-alloc.c: New file.
66063         * lib/unistr/u32-cpy-alloc.c: New file.
66064         * lib/unistr/u-cpy-alloc.h: New file.
66065
66066         * modules/unistr/u8-endswith: New file.
66067         * modules/unistr/u16-endswith: New file.
66068         * modules/unistr/u32-endswith: New file.
66069         * lib/unistr/u8-endswith.c: New file.
66070         * lib/unistr/u16-endswith.c: New file.
66071         * lib/unistr/u32-endswith.c: New file.
66072         * lib/unistr/u-endswith.h: New file.
66073
66074         * modules/unistr/u8-mblen: New file.
66075         * modules/unistr/u16-mblen: New file.
66076         * modules/unistr/u32-mblen: New file.
66077         * lib/unistr/u8-mblen.c: New file.
66078         * lib/unistr/u16-mblen.c: New file.
66079         * lib/unistr/u32-mblen.c: New file.
66080
66081         * modules/unistr/u8-mbtouc: New file.
66082         * modules/unistr/u16-mbtouc: New file.
66083         * modules/unistr/u32-mbtouc: New file.
66084         * lib/unistr/u8-mbtouc.c: New file.
66085         * lib/unistr/u16-mbtouc.c: New file.
66086         * lib/unistr/u32-mbtouc.c: New file.
66087
66088         * modules/unistr/u8-mbtouc-safe: New file.
66089         * modules/unistr/u16-mbtouc-safe: New file.
66090         * modules/unistr/u32-mbtouc-safe: New file.
66091         * lib/unistr/u8-mbtouc-safe.c: New file.
66092         * lib/unistr/u16-mbtouc-safe.c: New file.
66093         * lib/unistr/u32-mbtouc-safe.c: New file.
66094
66095         * modules/unistr/u8-move: New file.
66096         * modules/unistr/u16-move: New file.
66097         * modules/unistr/u32-move: New file.
66098         * lib/unistr/u8-move.c: New file.
66099         * lib/unistr/u16-move.c: New file.
66100         * lib/unistr/u32-move.c: New file.
66101         * lib/unistr/u-move.h: New file.
66102
66103         * modules/unistr/u8-next: New file.
66104         * modules/unistr/u16-next: New file.
66105         * modules/unistr/u32-next: New file.
66106         * lib/unistr/u8-next.c: New file.
66107         * lib/unistr/u16-next.c: New file.
66108         * lib/unistr/u32-next.c: New file.
66109
66110         * modules/unistr/u8-prev: New file.
66111         * modules/unistr/u16-prev: New file.
66112         * modules/unistr/u32-prev: New file.
66113         * lib/unistr/u8-prev.c: New file.
66114         * lib/unistr/u16-prev.c: New file.
66115         * lib/unistr/u32-prev.c: New file.
66116
66117         * modules/unistr/u8-set: New file.
66118         * modules/unistr/u16-set: New file.
66119         * modules/unistr/u32-set: New file.
66120         * lib/unistr/u8-set.c: New file.
66121         * lib/unistr/u16-set.c: New file.
66122         * lib/unistr/u32-set.c: New file.
66123         * lib/unistr/u-set.h: New file.
66124
66125         * modules/unistr/u8-startswith: New file.
66126         * modules/unistr/u16-startswith: New file.
66127         * modules/unistr/u32-startswith: New file.
66128         * lib/unistr/u8-startswith.c: New file.
66129         * lib/unistr/u16-startswith.c: New file.
66130         * lib/unistr/u32-startswith.c: New file.
66131         * lib/unistr/u-startswith.h: New file.
66132
66133         * modules/unistr/u8-stpcpy: New file.
66134         * modules/unistr/u16-stpcpy: New file.
66135         * modules/unistr/u32-stpcpy: New file.
66136         * lib/unistr/u8-stpcpy.c: New file.
66137         * lib/unistr/u16-stpcpy.c: New file.
66138         * lib/unistr/u32-stpcpy.c: New file.
66139         * lib/unistr/u-stpcpy.h: New file.
66140
66141         * modules/unistr/u8-stpncpy: New file.
66142         * modules/unistr/u16-stpncpy: New file.
66143         * modules/unistr/u32-stpncpy: New file.
66144         * lib/unistr/u8-stpncpy.c: New file.
66145         * lib/unistr/u16-stpncpy.c: New file.
66146         * lib/unistr/u32-stpncpy.c: New file.
66147         * lib/unistr/u-stpncpy.h: New file.
66148
66149         * modules/unistr/u8-strcat: New file.
66150         * modules/unistr/u16-strcat: New file.
66151         * modules/unistr/u32-strcat: New file.
66152         * lib/unistr/u8-strcat.c: New file.
66153         * lib/unistr/u16-strcat.c: New file.
66154         * lib/unistr/u32-strcat.c: New file.
66155         * lib/unistr/u-strcat.h: New file.
66156
66157         * modules/unistr/u8-strchr: New file.
66158         * modules/unistr/u16-strchr: New file.
66159         * modules/unistr/u32-strchr: New file.
66160         * lib/unistr/u8-strchr.c: New file.
66161         * lib/unistr/u16-strchr.c: New file.
66162         * lib/unistr/u32-strchr.c: New file.
66163
66164         * modules/unistr/u8-strcmp: New file.
66165         * modules/unistr/u16-strcmp: New file.
66166         * modules/unistr/u32-strcmp: New file.
66167         * lib/unistr/u8-strcmp.c: New file.
66168         * lib/unistr/u16-strcmp.c: New file.
66169         * lib/unistr/u32-strcmp.c: New file.
66170
66171         * modules/unistr/u8-strcpy: New file.
66172         * modules/unistr/u16-strcpy: New file.
66173         * modules/unistr/u32-strcpy: New file.
66174         * lib/unistr/u8-strcpy.c: New file.
66175         * lib/unistr/u16-strcpy.c: New file.
66176         * lib/unistr/u32-strcpy.c: New file.
66177         * lib/unistr/u-strcpy.h: New file.
66178
66179         * modules/unistr/u8-strcspn: New file.
66180         * modules/unistr/u16-strcspn: New file.
66181         * modules/unistr/u32-strcspn: New file.
66182         * lib/unistr/u8-strcspn.c: New file.
66183         * lib/unistr/u16-strcspn.c: New file.
66184         * lib/unistr/u32-strcspn.c: New file.
66185         * lib/unistr/u-strcspn.h: New file.
66186
66187         * modules/unistr/u8-strdup: New file.
66188         * modules/unistr/u16-strdup: New file.
66189         * modules/unistr/u32-strdup: New file.
66190         * lib/unistr/u8-strdup.c: New file.
66191         * lib/unistr/u16-strdup.c: New file.
66192         * lib/unistr/u32-strdup.c: New file.
66193         * lib/unistr/u-strdup.h: New file.
66194
66195         * modules/unistr/u8-strlen: New file.
66196         * modules/unistr/u16-strlen: New file.
66197         * modules/unistr/u32-strlen: New file.
66198         * lib/unistr/u8-strlen.c: New file.
66199         * lib/unistr/u16-strlen.c: New file.
66200         * lib/unistr/u32-strlen.c: New file.
66201         * lib/unistr/u-strlen.h: New file.
66202
66203         * modules/unistr/u8-strmblen: New file.
66204         * modules/unistr/u16-strmblen: New file.
66205         * modules/unistr/u32-strmblen: New file.
66206         * lib/unistr/u8-strmblen.c: New file.
66207         * lib/unistr/u16-strmblen.c: New file.
66208         * lib/unistr/u32-strmblen.c: New file.
66209
66210         * modules/unistr/u8-strmbtouc: New file.
66211         * modules/unistr/u16-strmbtouc: New file.
66212         * modules/unistr/u32-strmbtouc: New file.
66213         * lib/unistr/u8-strmbtouc.c: New file.
66214         * lib/unistr/u16-strmbtouc.c: New file.
66215         * lib/unistr/u32-strmbtouc.c: New file.
66216
66217         * modules/unistr/u8-strncat: New file.
66218         * modules/unistr/u16-strncat: New file.
66219         * modules/unistr/u32-strncat: New file.
66220         * lib/unistr/u8-strncat.c: New file.
66221         * lib/unistr/u16-strncat.c: New file.
66222         * lib/unistr/u32-strncat.c: New file.
66223         * lib/unistr/u-strncat.h: New file.
66224
66225         * modules/unistr/u8-strncmp: New file.
66226         * modules/unistr/u16-strncmp: New file.
66227         * modules/unistr/u32-strncmp: New file.
66228         * lib/unistr/u8-strncmp.c: New file.
66229         * lib/unistr/u16-strncmp.c: New file.
66230         * lib/unistr/u32-strncmp.c: New file.
66231
66232         * modules/unistr/u8-strncpy: New file.
66233         * modules/unistr/u16-strncpy: New file.
66234         * modules/unistr/u32-strncpy: New file.
66235         * lib/unistr/u8-strncpy.c: New file.
66236         * lib/unistr/u16-strncpy.c: New file.
66237         * lib/unistr/u32-strncpy.c: New file.
66238         * lib/unistr/u-strncpy.h: New file.
66239
66240         * modules/unistr/u8-strnlen: New file.
66241         * modules/unistr/u16-strnlen: New file.
66242         * modules/unistr/u32-strnlen: New file.
66243         * lib/unistr/u8-strnlen.c: New file.
66244         * lib/unistr/u16-strnlen.c: New file.
66245         * lib/unistr/u32-strnlen.c: New file.
66246         * lib/unistr/u-strnlen.h: New file.
66247
66248         * modules/unistr/u8-strpbrk: New file.
66249         * modules/unistr/u16-strpbrk: New file.
66250         * modules/unistr/u32-strpbrk: New file.
66251         * lib/unistr/u8-strpbrk.c: New file.
66252         * lib/unistr/u16-strpbrk.c: New file.
66253         * lib/unistr/u32-strpbrk.c: New file.
66254         * lib/unistr/u-strpbrk.h: New file.
66255
66256         * modules/unistr/u8-strrchr: New file.
66257         * modules/unistr/u16-strrchr: New file.
66258         * modules/unistr/u32-strrchr: New file.
66259         * lib/unistr/u8-strrchr.c: New file.
66260         * lib/unistr/u16-strrchr.c: New file.
66261         * lib/unistr/u32-strrchr.c: New file.
66262
66263         * modules/unistr/u8-strspn: New file.
66264         * modules/unistr/u16-strspn: New file.
66265         * modules/unistr/u32-strspn: New file.
66266         * lib/unistr/u8-strspn.c: New file.
66267         * lib/unistr/u16-strspn.c: New file.
66268         * lib/unistr/u32-strspn.c: New file.
66269         * lib/unistr/u-strspn.h: New file.
66270
66271         * modules/unistr/u8-strstr: New file.
66272         * modules/unistr/u16-strstr: New file.
66273         * modules/unistr/u32-strstr: New file.
66274         * lib/unistr/u8-strstr.c: New file.
66275         * lib/unistr/u16-strstr.c: New file.
66276         * lib/unistr/u32-strstr.c: New file.
66277         * lib/unistr/u-strstr.h: New file.
66278
66279         * modules/unistr/u8-strtok: New file.
66280         * modules/unistr/u16-strtok: New file.
66281         * modules/unistr/u32-strtok: New file.
66282         * lib/unistr/u8-strtok.c: New file.
66283         * lib/unistr/u16-strtok.c: New file.
66284         * lib/unistr/u32-strtok.c: New file.
66285         * lib/unistr/u-strtok.h: New file.
66286
66287         * modules/unistr/u8-uctomb: New file.
66288         * modules/unistr/u16-uctomb: New file.
66289         * modules/unistr/u32-uctomb: New file.
66290         * lib/unistr/u8-uctomb.c: New file.
66291         * lib/unistr/u16-uctomb.c: New file.
66292         * lib/unistr/u32-uctomb.c: New file.
66293
66294         * MODULES.html.sh (Unicode string functions): Add the new modules.
66295
66296 2007-01-08  Bruno Haible  <bruno@clisp.org>
66297
66298         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66299         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66300         subdirectories.
66301
66302 2007-01-08  Karl Berry  <karl@gnu.org>
66303
66304         * doc/error.texi: mention that main() fns must set program_name
66305         when progname is used.
66306
66307 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66310         WCTYPE_H is empty, for the benefit of builds from non-distclean
66311         directories.  Problem reported by Eric Blake in
66312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66313
66314 2007-01-08  Bruno Haible  <bruno@clisp.org>
66315
66316         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66317         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66318         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66319         PROVIDE_CANONICALIZE_FILENAME_MODE.
66320         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66321
66322 2007-01-08  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66325         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66326         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66327         * lib/fts.c: Likewise.
66328         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66329
66330 2006-12-25  Bruno Haible  <bruno@clisp.org>
66331
66332         * modules/utf8-ucs4-safe: New file.
66333         * lib/utf8-ucs4-safe.h: New file.
66334         * lib/unistr/utf8-ucs4-safe.c: New file.
66335
66336         * modules/utf16-ucs4-safe: New file.
66337         * lib/utf16-ucs4-safe.h: New file.
66338         * lib/unistr/utf16-ucs4-safe.c: New file.
66339
66340         * MODULES.html.sh (Unicode string functions): Add the new modules.
66341
66342 2007-01-08  Bruno Haible  <bruno@clisp.org>
66343
66344         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66345         (Depends-on): Add unitypes.
66346         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66347         (u8_mbtouc_aux): Move out to separate file.
66348         (u8_mbtouc): Use ucs4_t, uint8_t types.
66349         * lib/unistr/utf8-ucs4.c: New file.
66350
66351         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66352         (Depends-on): Add unitypes.
66353         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66354         (u16_mbtouc_aux): Move out to separate file.
66355         (u16_mbtouc): Use ucs4_t, uint16_t types.
66356         * lib/unistr/utf16-ucs4.c: New file.
66357
66358         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66359         (Depends-on): Add unitypes.
66360         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66361         (u8_uctomb_aux): Move out to separate file.
66362         (u8_uctomb): Use ucs4_t, uint8_t types.
66363         * lib/unistr/ucs4-utf8.c: New file.
66364
66365         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66366         (Depends-on): Add unitypes.
66367         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66368         (u16_uctomb_aux): Move out to separate file.
66369         (u16_uctomb): Use ucs4_t, uint16_t types.
66370         * lib/unistr/ucs4-utf16.c: New file.
66371
66372 2006-12-25  Bruno Haible  <bruno@clisp.org>
66373
66374         * modules/unitypes: New file.
66375         * lib/unitypes.h: New file.
66376         * MODULES.html.sh (func_all_modules): New section "Unicode string
66377         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66378         this section. Add unitypes.
66379
66380 2007-01-08  Bruno Haible  <bruno@clisp.org>
66381
66382         Avoid variable names that conflict with those from libtool.
66383         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66384         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66385         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66386         library_names_spec to acl_library_names_spec, hardcode_* to
66387         acl_hardcode_*.
66388         Reported by Ralf Wildenhues.
66389
66390 2007-01-08  Bruno Haible  <bruno@clisp.org>
66391
66392         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66393         definition.
66394         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66395         definition.
66396         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66397         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66398         definition.
66399         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66400         definition.
66401         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66402         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66403         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66404         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66405         definition.
66406         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66407         definition.
66408         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66409         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66410         GC_USE_<algorithm>.
66411         * lib/gc-libgcrypt.c: Likewise.
66412         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66413         * modules/gc-arctwo (configure.ac): Likewise.
66414         * modules/gc-des (configure.ac): Likewise.
66415         * modules/gc-hmac-md5 (configure.ac): Likewise.
66416         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66417         * modules/gc-md2 (configure.ac): Likewise.
66418         * modules/gc-md4 (configure.ac): Likewise.
66419         * modules/gc-md5 (configure.ac): Likewise.
66420         * modules/gc-random (configure.ac): Likewise.
66421         * modules/gc-rijndael (configure.ac): Likewise.
66422         * modules/gc-sha1 (configure.ac): Likewise.
66423
66424 2007-01-08  Bruno Haible  <bruno@clisp.org>
66425
66426         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66427         macro definition.
66428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66429         definition.
66430         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66431         definition.
66432         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66433         * modules/fcntl-safer (configure.ac): Likewise.
66434         * modules/fopen-safer (configure.ac): Likewise.
66435         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66436         GNULIB_FWRITEERROR macro definition.
66437
66438 2007-01-08  Bruno Haible  <bruno@clisp.org>
66439
66440         * m4/gnulib-common.m4: New file.
66441         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66442         (func_get_filelist): Add m4/gnulib-common.m4.
66443
66444 2007-01-08  Bruno Haible  <bruno@clisp.org>
66445
66446         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66447         command.
66448
66449 2007-01-08  Jim Meyering  <jim@meyering.net>
66450
66451         Use a more robust test for a "can't happen" condition.
66452         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66453         narrowed the st_size value.  Presuming the "can't happen" condition
66454         is true, that narrowing could conceivably convert an invalid st_size
66455         value into a valid one.  Instead, use a change based on Matthew
66456         Woehlke's original patch.
66457
66458         Slight readability improvement: use an assert-like macro
66459         in place of literal "abort ()" uses.
66460         * lib/fts.c (fts_assert): Define.
66461         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66462         Use this macro instead of a bare 'abort'.
66463
66464 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66467         simply work around them.
66468         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66469         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66470         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66471         declaring.
66472         Don't bother to define as macros, since the standard doesn't require it.
66473         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66474         longer worry about IRIX 5.3.
66475         (HAVE_WCTYPE_CTMP_BUG): Remove.
66476
66477 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66480         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66481         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66482         Problems reported by Georg Schwarz for IRIX 5.3.
66483
66484         * gnulib-tool (autoconf_minversion): Take the maximum version number
66485         found, not the minimum.  Problem reported by James Youngman.
66486
66487 2007-01-03  Karl Berry  <karl@gnu.org>
66488
66489         * doc/error.texi: new file, explaining interaction with progname.
66490         * doc/gnulib.texi: include it.  Update copyright.
66491
66492 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66493
66494         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66495         AC_CANONICAL_HOST, to improve autobuild outputs.
66496
66497 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66498             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66499
66500         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66501         sockets, server sockets, and other file descriptors.  Count errors
66502         to compute the return value.  Reorder the code a bit to be easier
66503         to follow.  Don't set event bits that were not requested (except
66504         POLLERR and POLLHUP).
66505
66506 2007-01-01  Bruno Haible  <bruno@clisp.org>
66507
66508         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66509
66510 2007-01-03  Jim Meyering  <jim@meyering.net>
66511
66512         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66513
66514 2007-01-02  Bruno Haible  <bruno@clisp.org>
66515
66516         * modules/settime (Include): Require timespec.h.
66517         * modules/nanosleep (Include): Likewise.
66518
66519 2007-01-01  Bruno Haible  <bruno@clisp.org>
66520
66521         * gnulib-tool (func_emit_copyright_notice): Bump year.
66522         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66523
66524 2007-01-01  Bruno Haible  <bruno@clisp.org>
66525
66526         Improve support for OpenBSD.
66527         * build-aux/config.rpath (libname_spec): Export.
66528         (library_names_spec): New variable. Export.
66529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66530         library_names_spec from the config.rpath output. Locate shared library
66531         through the name pattern in library_names_spec.
66532
66533 2007-01-01  Eric Blake  <ebb9@byu.net>
66534
66535         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66536
66537 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66540         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66541         assume the C locale, and avoid an "eval" that could cause trouble.
66542         Problem with SORT reported by Bob Proulx.
66543
66544         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66545         Define.  Trivial patch from Henning Nielsen Lund, originally
66546         sent to bug-grep@gnu.org today.
66547
66548 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66551         struct stat.  Problem reported by Henning Nielsen Lund.
66552         * lib/acl.c: Include acl.h first, to check interface.  Don't
66553         bother to include sys/types.h and sys/stat.h again.
66554
66555 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         Import the following change from libc; problem reported by
66558         Sven Verdoolaege.
66559
66560         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66561
66562         [BZ #1373]
66563         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66564
66565 2006-12-28  Jim Meyering  <jim@meyering.net>
66566
66567         * build-aux/announce-gen: Do not assume that the package
66568         builds any of tar.gz, tar.bz2, and .xdelta files.
66569         Suggestion from Simon Josefsson.
66570
66571 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66572
66573         * modules/announce-gen: New file.
66574
66575 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66578         handles its gotchas now.
66579         * lib/mbswidth.c: Likewise.
66580         * lib/wcwidth.h: Likewise.
66581         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66582         and iswcntrl; the wctype module does this stuff now.
66583         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66585         * modules/mbchar (Depends-on): Add wctype.
66586         * modules/mbswidth (Depends-on): Likewise.
66587         * modules/wcwidth (Depends-on): Likewise.
66588
66589 2006-12-27  Eric Blake  <ebb9@byu.net>
66590
66591         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66592         module uses more than what <wctype.h> is required to provide.
66593
66594 2006-12-26  Eric Blake  <ebb9@byu.net>
66595
66596         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66597
66598 2006-12-26  Eric Blake  <ebb9@byu.net>
66599
66600         * modules/absolute-header: New module.
66601         * modules/fcntl (Depends-on): Depend on it.
66602         * modules/inttypes (Depends-on): Likewise.
66603         * modules/stdint (Depends-on): Likewise.
66604         * modules/sys_stat (Depends-on): Likewise.
66605         * modules/wctype (Depends-on): Likewise.
66606         * MODULES.html.sh (Support for building libraries and
66607         executables): Document it.
66608
66609 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * gnulib-tool (SED): Remove, undoing previous change.
66612         The problem was that it broke coreutils on Solaris, because
66613         "sed --posix" leaked into a makefile.
66614         (sed): New alias, if 'alias' and GNU sed.
66615
66616 2006-12-24  Jim Meyering  <jim@meyering.net>
66617
66618         Work around an fchownat bug in glibc-2.4:
66619         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66620         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66621         in spite of the -P option.
66622         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66623         New macros.
66624         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66625         * modules/openat (Files): Add lib/fchownat.c.
66626         * lib/openat.c (fchownat): Don't define here.  Move to...
66627         * lib/fchownat.c: ...this new file.
66628
66629 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         Fix bug reported by Bruno Haible in
66632         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66633         where quotearg.c didn't compile on Mac OS X 10.2 because it
66634         lacks <wchar.h> and wint_t.
66635         * lib/wctype_.h (__wctype_wint_t): New type.
66636         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66637         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66638         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66639         Arg is now of type __wctype_wint_t, not wint_t.
66640         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66641         substitute HAVE_WINT_T.
66642         * modules/wctype (Files): Add m4/wint_t.m4.
66643         (wctype.h): Substitute HAVE_WINT_T.
66644
66645 2006-12-23  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66648
66649 2006-12-23  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66652         S_ISLNK.
66653         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66654         mingw.
66655
66656 2006-12-22  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/copy-file.c: Include acl.h.
66659         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66660         Close the file descriptors only after being done with copy_acl.
66661         * modules/copy-file (Depends-on): Add acl.
66662
66663 2006-12-22  Bruno Haible  <bruno@clisp.org>
66664
66665         * gnulib-tool (SED): New variable.
66666         Use $SED instead of sed everywhere.
66667
66668 2006-12-22  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/no-c++: New file.
66671         * m4/no-c++.m4: New file.
66672         * MODULES.html.sh (Support for building libraries and executables):
66673         Add no-c++.
66674
66675 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66678         Include <limits.h>, and use its INT_MAX to rewrite the
66679         j loop so that it does not overflow 'int'.  Problem reported by
66680         Ralf Wildenhues in
66681         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66682         Play it safe by shifting left by 1 rather than multiplying by 2,
66683         as GCC is less likely to optimize this away when the value
66684         is signed (when it assumes overflow leads to undefined behavior).
66685         Also, don't assume time_t uses two's complement.
66686
66687 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * MODULES.html.sh: New module wctype.
66690         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66691         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66692         <wctype.h>, since the new wctype module should fix this.
66693         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66694         the wctype module should arrange for it.
66695         * lib/regex_internal.h: Likewise.
66696         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66697         since the wctype module should handle this now.
66698         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66699         * modules/fnmatch (Depends-on): Add wctype.
66700         * modules/quotearg (Depends-on): Likewise.
66701         * modules/regex (Depends-on): Likewise.
66702
66703 2006-12-19  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66706         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66707
66708 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66709
66710         * modules/savewd (Depends-on): Fix dependency on fcntl.
66711
66712 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66715         conforms to C99, rather than relying on the user's environment
66716         setting of STDINT_H.
66717
66718 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66719         and Eric Blake  <ebb9@byu.net>
66720
66721         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66722         This is more consistent with the other defines here.
66723         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66724         Port to z/OS.  Problem reported by Paul Gilmartin.
66725         Change local vars to use gl_ prefix rather than ac_.
66726         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66727         with other defines.
66728         * modules/double-slash-root: New module.
66729         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66730         (Depends-on): Add double-slash-root.
66731         * MODULES.html.sh (File system functions): Mention new module.
66732
66733 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66736         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66737         This is for the benefit of gzip, which doesn't do i18n.
66738
66739 2006-12-12  Jim Meyering  <jim@meyering.net>
66740
66741         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66742         Reported by Andreas Schwab <schwab@suse.de>.
66743
66744 2006-12-12  Bruno Haible  <bruno@clisp.org>
66745
66746         Merge these changes.
66747         2006-09-05  Bruno Haible  <bruno@clisp.org>
66748         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66749         iconv_alloc succeeded.
66750         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66751         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66752         test for " && dest " at the end - dest is always != NULL there. Call
66753         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66754         with 2xNULL arguments, also to flush the state storage. Handle the
66755         IRIX iconv behaviour. Realloc the final result, to throw away unused
66756         memory.
66757
66758 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66761         and fchmodat unconditionally, since glibc 2.4 has them.
66762         Problem reported by Arkadiusz Miskiewicz.
66763
66764 2006-12-10  Bruno Haible  <bruno@clisp.org>
66765
66766         * gnulib-tool (func_import): Show the include files only for those
66767         modules that are copied and specified.
66768         Reported by Karl Berry.
66769
66770 2006-12-08  Jim Meyering  <jim@meyering.net>
66771
66772         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66773         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66774
66775         * build-aux/announce-gen: Add two new options, both optional:
66776         --bootstrap-tools=TOOL_LIST
66777               a comma-separated list of tools, e.g.,
66778               autoconf,automake,bison,gnulib
66779         --gnulib-snapshot-date=DATE
66780               if gnulib is in the bootstrap tool list,
66781               then report this as the snapshot date.
66782               If not specified, use the current date/time.
66783               If you specify a date here, be sure it's UTC.
66784
66785 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66786
66787         * tests/test-argp-2.sh: Fix test to match actual output.
66788         (func_compare): Fix sed script to be portable.
66789
66790 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66793         workaround for this case.  It is not autoconfigured now; offhand
66794         it's hard to see how to autoconfigure it.
66795
66796 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66799         a directory that is about to be chowned.  Such a directory's
66800         initial file permissions should permit the owner only and this
66801         should not be changed until after the chown, since the group and
66802         other bits would be incorrect if they granted permission before
66803         the chown.
66804
66805         Fix porting problem for iswctype reported by Georg Schwarz in:
66806         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66808         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66809         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66810         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66811
66812 2006-12-03  Jim Meyering  <jim@meyering.net>
66813
66814         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66815         p->fts_statp may not yet be defined.
66816         (fts_read): Instead, set it in the caller, once p->fts_statp is
66817         sure to be defined, and corresponds to a top-level directory.
66818         This bug made du -x fail.  Here's the coreutils test case:
66819         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66820         Reported by Mike Frysinger.
66821
66822 2006-12-01  Jim Meyering  <jim@meyering.net>
66823
66824         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66825         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66826         Reported by Simon Josefsson.
66827
66828 2006-11-30  Jim Meyering  <jim@meyering.net>
66829
66830         * m4/warning.m4: Use the all-permissive copyright notice
66831         recommended by RMS (rather than LGPL).
66832         * m4/vararrays.m4: Likewise.
66833         * m4/flexmember.m4: Likewise.
66834
66835 2006-11-29  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66838         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66839         using +=.
66840         Reported by Simon Josefsson <simon@josefsson.org>.
66841
66842 2006-11-28  James Youngman <jay@gnu.org>
66843
66844         * README: Advise users that they might find the bug-gnulib@gnu.org
66845         and autotools-announce@gnu.org mailing lists useful.
66846
66847 2006-11-28  Bruno Haible  <bruno@clisp.org>
66848
66849         * m4/ptrdiff_max.m4: Remove file.
66850
66851 2006-11-21  Bruno Haible  <bruno@clisp.org>
66852
66853         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66854         _AC_COMPUTE_INT.
66855         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66856         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66857         _AC_COMPUTE_INT.
66858         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66859         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66860         _AC_COMPUTE_INT.
66861         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66862
66863 2006-11-28  Jim Meyering  <jim@meyering.net>
66864
66865         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66866         warning from "gcc -Wshadow" about shadowing the builtin.
66867
66868 2006-11-27  Bruno Haible  <bruno@clisp.org>
66869
66870         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66871         _AC_COMPUTE_INT.
66872         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66873
66874 2006-11-27  Bruno Haible  <bruno@clisp.org>
66875             Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66878
66879 2006-11-26  Bruno Haible  <bruno@clisp.org>
66880
66881         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66882         noinst_LTLIBRARIES.
66883
66884 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66885             Bruno Haible  <bruno@clisp.org>
66886
66887         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66888         if compiling with "gcc -ansi".
66889
66890 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         Fix some incompatibilities with gcc -ansi -pedantic.
66893         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66894         if compiling pedantically with GCC, unless it's C99 or later.
66895         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66896         it mishandles gcc -ansi -pedantic as well.
66897         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66898         if gcc -pedantic.
66899         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66900         initializers for struct if -pedantic, unless it's C99 or later.
66901
66902 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66903
66904         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66905         Don't close an fd more than once. Identical atimes indicate
66906         success, not failure.
66907
66908 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66909
66910         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66911
66912 2006-11-23  Jim Meyering  <jim@meyering.net>
66913
66914         * build-aux/announce-gen: New file.  From coreutils.
66915
66916 2006-11-22  Jim Meyering  <jim@meyering.net>
66917
66918         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66919         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66920         (fts_read): Use a temporary to narrow the overused st_size member
66921         before using it in a switch statement.  Reported by Matthew Woehlke.
66922
66923         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66924         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66925
66926 2006-11-20  Bruno Haible  <bruno@clisp.org>
66927
66928         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66929         changequote instead of pairs of brackets.
66930         Reported by Andreas Schwab <schwab@suse.de>.
66931
66932 2006-11-21  Jim Meyering  <jim@meyering.net>
66933
66934         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66935         so as to remain compatible with older compilers.
66936         Patch from Michael Deutschmann.
66937
66938 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * MODULES.html.sh (File system functions): Add openat.
66941
66942         * lib/openat.h (rpl_fstatat): New macro, if
66943         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66944         (fstatat): Define to rpl_fstatat under the same conditions,
66945         unless COMPILING_FSTATAT.
66946         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66947         seems to have the bug.
66948         * lib/fstatat.c: New file.
66949         * modules/openat (Files): Add it.
66950
66951 2006-11-20  Bruno Haible  <bruno@clisp.org>
66952
66953         * Makefile: New file.
66954
66955 2006-11-20  Jim Meyering  <jim@meyering.net>
66956
66957         The beginnings of syntax-related checks for gnulib.
66958         * lib/Makefile: New file.
66959         * lib/t-idcache: New script.  Ensure that the two halves of
66960         idcache.c stay in sync.
66961
66962         * lib/idcache.c: Adjust comments in user- and group- portions to
66963         be more accurate, and to be consistent with one another.
66964
66965 2006-11-20  Jim Meyering  <jim@meyering.net>
66966
66967         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66968         continue using the flexible array member (thus, this module performs
66969         half as many malloc calls), with the addition that...
66970         (getgroup, getuser): Consistently record a non-match via an empty
66971         "name" string, and map an empty string match to a NULL return value.
66972         * modules/idcache (Depends-on): Re-add flexmember.
66973
66974         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66975         (getuidbyname, getgroup, getgidbyname): Likewise.
66976
66977         Use cleaner syntax: NULL rather than 0.
66978         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66979
66980 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66981
66982         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66983         It mishandled the case where the group was missing.
66984         Problem reported by Greg Schafer.
66985         * modules/idcache: Likewise.
66986
66987 2006-11-18  Jim Meyering  <jim@meyering.net>
66988
66989         * check-module (%exempt_header): Add exception for some
66990         conditionally-included headers.
66991
66992         * modules/i-ring (Depends-on): Add verify.
66993         (License): Change to LGPL.
66994
66995 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66996
66997         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66998         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66999         and inttostr.h.  Use snprintf rather than uinttostr, so that
67000         LGPLed code doesn't depend on GPLed.
67001
67002 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * modules/inline (License): Change from GPL to LGPL.
67005
67006 2006-11-17  Jim Meyering  <jim@meyering.net>
67007
67008         * modules/d-type (License): Switch to LGPL.
67009
67010 2006-11-15  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67013
67014 2006-11-15  Eric Blake  <ebb9@byu.net>
67015
67016         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67017         the module dependency.
67018
67019 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67020             Bruno Haible  <bruno@clisp.org>
67021
67022         * gnulib-tool (func_create_testdir): Add license consistency check.
67023
67024 2006-11-15  Eric Blake  <ebb9@byu.net>
67025
67026         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67027         random "(cached)" in configure output.
67028
67029 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67030
67031         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67032         test for conforming inttypes.h is both announced and cached.
67033
67034         * MODULES.html.sh (seen_modules, seen_files): New variables.
67035         (func_module): Rewrite to use a few less gnulib-tool and sed
67036         invocations.  Avoid a couple of quadratic algorithms for ...
67037         (missed_modules, missed_files): ... these, with ...
67038         (func_append, func_tmpdir): ... these new functions, from
67039         gnulib-tool.  Analogously, install traps for cleanup.
67040
67041         * tests/test-gc.c (main): Remove unused variables.
67042         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67043
67044 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67045
67046         * modules/inttostr (License): Change to LGPL.
67047
67048 2006-11-14  Eric Blake  <ebb9@byu.net>
67049
67050         * modules/tempname (License): Change to LGPL.
67051
67052 2006-11-14  Eric Blake  <ebb9@byu.net>
67053
67054         * doc/functions.texi (Function Portability): *printf functions on
67055         Cygwin now understand all POSIX size specifiers.
67056
67057 2006-11-14  Bruno Haible  <bruno@clisp.org>
67058
67059         * modules/c-ctype (License): Change to LGPL.
67060
67061 2006-11-12  Bruno Haible  <bruno@clisp.org>
67062
67063         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67064         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67065         for GNOME libraries, for which the include files are installed in
67066         subdirectories of $prefix/include.
67067
67068 2006-11-12  Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/lib-link.m4: Require at least autoconf-2.54.
67071         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67072         name to underscores for the --with option.
67073
67074 2006-11-13  Bruno Haible  <bruno@clisp.org>
67075
67076         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67077         the tests directory.
67078         Reported by Ralf Wildenhues.
67079
67080 2006-11-13  Bruno Haible  <bruno@clisp.org>
67081
67082         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67083         (func_emit_initmacro_end): Undo the override here.
67084         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67085         Works around the famous automake error in coreutils.
67086
67087 2006-11-13  Eric Blake  <ebb9@byu.net>
67088
67089         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67090         element, not its node.
67091
67092 2006-11-12  Bruno Haible  <bruno@clisp.org>
67093
67094         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67095         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67096
67097 2006-11-12  Bruno Haible  <bruno@clisp.org>
67098
67099         * gnulib-tool: New option --local-symlink.
67100         (func_usage): Document it.
67101         (lsymbolic): New variable.
67102         (func_import, func_create_testdir): If --symlink was not specified,
67103         test whether --local-symlink was specified and the file comes from
67104         the local_gnulib_dir.
67105
67106 2006-11-12  Bruno Haible  <bruno@clisp.org>
67107
67108         * gnulib-tool (func_ln): New function.
67109         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67110
67111 2006-11-12  Bruno Haible  <bruno@clisp.org>
67112
67113         Finish support for source files in subdirectories.
67114         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67115         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67116         AUTOMAKE_OPTIONS.
67117         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67118
67119 2006-11-12  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67122         EXTRA_lib_SOURCES augmentation.
67123         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67124
67125 2006-11-12  Jim Meyering  <jim@meyering.net>
67126
67127         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67128         file descriptors.  This also averts a failure on systems with
67129         native openat support when a traversed directory lacks "x" access.
67130         * lib/fts_.h: Include "i-ring.h"
67131         (struct FTS) [fts_fd_ring]: New member.
67132         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67133         (FCHDIR): Add parentheses.
67134         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67135         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67136         When descending, rather than simply closing the previous
67137         fts_cwd_fd value, push that file descriptor onto the ring.
67138         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67139         (fts_open): Initialize the new fd_ring member.
67140         (fts_close): Clear the ring.
67141         (fts_safe_changedir): When possible, use our new fd_ring to skip
67142         the diropen and fstat and dev/ino comparison that would normally
67143         accompany a virtual `chdir ("..")'.
67144
67145         * modules/fts (Depends-on): Add i-ring.
67146         * modules/i-ring: New module.
67147         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67148         * m4/i-ring.m4: New file.
67149
67150 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67151
67152         * gnulib-tool (func_create_testdir): Fix replacement of
67153         `build-aux' in configure.ac.  Run autotools in gltests
67154         subdirectory.
67155         (func_create_testdir, func_create_megatestdir, test): There is
67156         no need for '--force' in most autotool invocations in a new
67157         tree.  Actually fail the whole test if any of the tools, or the
67158         configure or make stages fail.
67159
67160         Sync from Automake.
67161         * build-aux/gnupload: Revert last change.  Add pointer to upload
67162         instructions of the GNU Maintenance Instructions.
67163         Suggestion by Karl Berry.
67164
67165 2006-11-10  Jim Meyering  <jim@meyering.net>
67166
67167         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67168
67169 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67172         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67173         (bind_textdomain_codeset) [! ENABLE_NLS]:
67174         Evaluate all the arguments.  That way, callers get compatible behavior
67175         if the arguments have side effects.  Also, it avoids some GCC
67176         diagnostics in some cases; Joel E. Denny reported problems when Bison
67177         was configured with --enable-gcc-warnigs.
67178
67179 2006-11-10  Jim Meyering  <jim@meyering.net>
67180
67181         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67182         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67183         account.
67184
67185 2006-11-10  Jim Meyering  <jim@meyering.net>
67186
67187         * modules/inline: New file/module.
67188         * modules/xalloc (Files): Remove m4/inline.m4.
67189         (Depends-on): Add inline, instead.
67190         * modules/oset: Likewise.
67191         * modules/list: Likewise.
67192
67193 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67196         Problem reported by Matthew Woehlke.
67197
67198 2006-11-09  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/tempname.c (gen_tempname): Remove variant that invokes
67201         __gen_tempname.
67202         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67203         __gen_tempname.
67204
67205 2006-11-08  Bruno Haible  <bruno@clisp.org>
67206
67207         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67208         to 'yes' instead of 'cross-compiling'.
67209
67210 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * lib/quotearg.h (quotearg_free): New decl.
67213         * lib/quotearg.c (quotearg_free): New function.
67214         (slot0, nslots, slotvec0, slotvec):
67215         Now file-scope so that quotearg_free can get at them.
67216
67217 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67218
67219         Sync from Automake.
67220         * build-aux/gnupload: Add missing 'gnu' to example URL.
67221         Report by Karl Berry.
67222
67223 2006-11-08  Bruno Haible  <bruno@clisp.org>
67224
67225         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67226         Suggested by Paul Eggert.
67227
67228 2006-11-08  Jim Meyering  <jim@meyering.net>
67229
67230         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67231         It's already included if !_LIBC.
67232         (fts_safe_changedir): Add a comment.
67233
67234 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67237         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67238         Matthew Woehlke.
67239
67240         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67241         definitions up, to avoid colliding with change below.
67242         (static_inline) [HAVE_INLINE]: New macro.
67243         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67244         Provide extern decls when !HAVE_INLINE.  Do not define unless
67245         static_inline is defined, either by us or by xmalloc.c.  Use
67246         static_inline rather than static inline.
67247         (XCALLOC): Optimize sizeof(T) = 1 case.
67248         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67249
67250 2006-11-07  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67253         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67254         AC_C_INLINE.
67255         * modules/xalloc (Files): Add m4/inline.m4.
67256
67257 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67258
67259         * README: Fix typo.
67260         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67261         (Miscellanous Notes): ...from this.
67262
67263 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67266         Mention that offsetof should be used instead of sizeof.
67267         From Bruno Haible.
67268
67269 2006-11-07  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67272
67273 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67276         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67277         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67278         (gl_tree_add_before, gl_tree_add_after):
67279         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67280         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67281         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67282         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67283         (gl_linked_add_after, gl_linked_add_at): Likewise.
67284         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67285         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67286         (gl_tree_add_before, gl_tree_add_after): Likewise.
67287         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67288         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67289         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67290
67291 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67292
67293         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67294
67295 2006-11-06  Bruno Haible  <bruno@clisp.org>
67296
67297         * m4/inline.m4: New file.
67298         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67299         * modules/list (Files): Add m4/inline.m4.
67300         * modules/oset (Files): Likewise.
67301
67302 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * lib/idcache.c: Include <stddef.h>, for offsetof.
67305         (struct userid.name): Change from char * to a flexible array member.
67306         All uses changed.
67307         * modules/idcache (Depends-on): Add flexmember.
67308
67309         * MODULES.html.sh (Core language properties): New module flexmember.
67310         * modules/flexmember, m4/flexmember.m4: New files.
67311
67312         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67313         inline functions that are identical with the old xnmalloc_inline,
67314         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67315         that we can avoid some unnecessary integer multiplications and
67316         divisions in the common case where the element size is known at
67317         compile time.
67318         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67319         needed.
67320         (xnboundedmalloc): Remove.
67321         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67322         arguments, for consistency with rest of this header.
67323         (xcharalloc): Rewrite using XNMALLOC.
67324         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67325         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67326         versions have been moved to lib/xalloc.h and renamed to be the
67327         non-*_inline versions.
67328         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67329         and xnrealloc functions, since those functions are now inline and
67330         now call us.
67331         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67332         renaming described above.
67333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67334         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67335         captures the dependency in AC_C_INLINE.
67336
67337         New module canonicalize-lgpl, proposed by Charles Wilson in
67338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67339         with a few small changes afterwards.
67340         * MODULES.html.sh (File system functions): New module
67341         canonicalize-lgpl.
67342         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67343         and canonicalize_file_name.
67344         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67345         * modules/canonicalize-lgpl: New files.
67346
67347 2006-11-05  Bruno Haible  <bruno@clisp.org>
67348
67349         * gnulib-tool (func_import, func_create_testdir): Create directories
67350         also for files in subdirectories of lib/.
67351
67352 2006-11-05  Bruno Haible  <bruno@clisp.org>
67353
67354         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67355         ANSI C compliant.
67356
67357 2006-11-03  Bruno Haible  <bruno@clisp.org>
67358
67359         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67360         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67361         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67362         (xnboundedmalloc): New inline function.
67363         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67364         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67365         xmalloc.
67366         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67367         xmalloc.
67368         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67369         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67370         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67371         xmalloc.
67372         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67373         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67374         xmalloc.
67375         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67376         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67377         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67378         xmalloc.
67379         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67380         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67381         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67382         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67383         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67384         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67385         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67386
67387 2006-11-03  Bruno Haible  <bruno@clisp.org>
67388
67389         * lib/c-ctype.h [C++]: Define functions without name mangling.
67390         * lib/fwriteerror.h [C++]: Likewise.
67391         * lib/gcd.h [C++]: Likewise.
67392         * lib/linebreak.h [C++]: Likewise.
67393
67394 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67397         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67398         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67399         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67400         Check for functions and headers just once.
67401         Check for declaration of canonicalize_file_name.
67402         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67403
67404 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67405
67406         * gnulib-tool (func_import): Fix typo in actioncmd.
67407
67408 2006-11-02  Bruno Haible  <bruno@clisp.org>
67409
67410         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67411         newline sequence in the Makefile.am snippet as a space, like "make"
67412         does.
67413         Reported by Roger Persson <perrog@gmail.com>.
67414
67415 2006-11-01  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67418         already declared in <string.h>.
67419         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67420
67421 2006-11-01  Bruno Haible  <bruno@clisp.org>
67422
67423         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67424         * lib/strcase.h: Include <string.h>.
67425         (strcasecmp): Define to rpl_strcasecmp here.
67426
67427 2006-11-01  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67430
67431 2006-11-01  Eric Blake  <ebb9@byu.net>
67432
67433         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67434
67435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67436
67437 2006-10-29  Bruno Haible  <bruno@clisp.org>
67438
67439         Make it compile in C++ mode.
67440         * lib/full-write.c (full_rw): Add a cast.
67441
67442 2006-11-01  Bruno Haible  <bruno@clisp.org>
67443
67444         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67445         be POSIX compliant.
67446         Reported by Roger Persson <perrog@gmail.com>.
67447
67448 2006-11-01  Eric Blake  <ebb9@byu.net>
67449
67450         * lib/getopt_.h: Fix comments.
67451
67452 2006-10-31  Eric Blake  <ebb9@byu.net>
67453
67454         * modules/tmpdir (Depends-on): Add sys_stat.
67455         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67456         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67457         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67458         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67459         tempname.
67460
67461 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         Avoid some C++ diagnostics reported by Bruno Haible.
67464         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67465         xmalloc.
67466         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67467         (struct slotvec): Move to top level.
67468         (quotearg_n_options): Rewrite to avoid xmalloc.
67469         * lib/xalloc.h (xcharalloc): New function.
67470         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67471         [defined __cplusplus]: Add function template that provides result
67472         type propagation.  This part of the change is from Bruno Haible.
67473
67474 2006-10-29  Bruno Haible  <bruno@clisp.org>
67475
67476         Make it compile in C++ mode.
67477         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67478         * lib/strnlen1.c (strnlen1): Cast memchr result.
67479         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67480         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67481         (create_temp_dir): Rename local variable 'template'.
67482         (compile_csharp_using_sscli): Add cast.
67483         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67484         * lib/findprog.c (find_in_path): Likewise.
67485         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67486         * lib/wait-process.c (register_slave_subprocess): Likewise.
67487
67488 2006-10-22  Bruno Haible  <bruno@clisp.org>
67489
67490         * modules/tsearch: New file.
67491         * lib/tsearch.h: New file.
67492         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67493         * m4/tsearch.m4: New file.
67494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67495
67496 2006-10-29  Eric Blake  <ebb9@byu.net>
67497
67498         * lib/arcfour.c: Assume config.h.
67499         * lib/arctwo.c: Likewise.
67500         * lib/base64.c: Likewise.
67501         * lib/check-version.c: Likewise.
67502         * lib/crc.c: Likewise.
67503         * lib/des.c: Likewise.
67504         * lib/gc-gnulib.c: Likewise.
67505         * lib/gc-libgcrypt.c: Likewise.
67506         * lib/gc-pbkdf2-sha1.c: Likewise.
67507         * lib/getaddrinfo.c: Likewise.
67508         * lib/getdelim.c: Likewise.
67509         * lib/getline.c: Likewise.
67510         * lib/hmac-md5.c: Likewise.
67511         * lib/hmac-sha1.c: Likewise.
67512         * lib/iconvme.c: Likewise.
67513         * lib/md2.c: Likewise.
67514         * lib/md4.c: Likewise.
67515         * lib/memxor.c: Likewise.
67516         * lib/read-file.c: Likewise.
67517         * lib/readline.c: Likewise.
67518         * lib/rijndael-alg-fst.c: Likewise.
67519         * lib/rijndael-api-fst.c: Likewise.
67520         * lib/xgetdomainname.c: Likewise.
67521
67522 2006-10-28  Eric Blake  <ebb9@byu.net>
67523
67524         * lib/xstrndup.c: Assume config.h.
67525
67526 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67529         stat-macros.h is now for our own macros, whereas stat_h is for
67530         macros in the <sys/stat.h> name space.
67531         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67532         (STAT_MACROS_H): Remove.
67533         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67534         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67535         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67536         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67537         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67538         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67539         Move these macros to ...
67540         * lib/stat_.h: here.  Don't include stat-macros.h.
67541         * lib/canonicalize.c: Don't include stat-macros.h.
67542         * lib/chown.c: Likewise.
67543         * lib/euidaccess.c: Likewise.
67544         * lib/file-type.c: Likewise.
67545         * lib/filemode.c: Likewise.
67546         * lib/glob.c: Likewise.
67547         * lib/isapipe.c: Likewise.
67548         * lib/lchown.c: Likewise.
67549         * lib/lstat.c: Likewise.
67550         * lib/mkdir-p.c: Likewise.
67551         * lib/rmdir.c: Likewise.
67552         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67554         unless mkdir isn't declared, to speed up 'configure'.
67555         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67556         would define all the S_* symbols.
67557         * modules/canonicalize (Depends-on):
67558         Depend on sys_stat, not stat-macros.
67559         * modules/chown: Likewise.
67560         * modules/euidaccess: Likewise.
67561         * modules/filemode: Likewise.
67562         * modules/file-type: Likewise.
67563         * modules/glob: Likewise.
67564         * modules/isapipe: Likewise.
67565         * modules/lchown: Likewise.
67566         * modules/lstat: Likewise.
67567         * modules/mkancesdirs: Likewise.
67568         * modules/rmdir: Likewise.
67569         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67570         * modules/modechange: Likewise.
67571         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67572         (configure.ac): Remove gl_STAT_MACROS.
67573         * modules/sys_stat (Depends-on): Remove stat-macros.
67574
67575 2006-10-27  Bruno Haible  <bruno@clisp.org>
67576
67577         * m4/signed.m4: Remove file.
67578         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67579         invocation.
67580         * modules/vasnprintf (Files): Remove m4/signed.m4.
67581
67582 2006-10-27  Bruno Haible  <bruno@clisp.org>
67583
67584         Update to GNU gettext 0.16.
67585         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67586         m4/inttypes-h.m4, m4/signed.m4.
67587         * m4/gettext.m4: Update to GNU gettext 0.16.
67588         * m4/intl.m4: New file, from GNU gettext.
67589         * m4/intldir.m4: New file, from GNU gettext.
67590         * config/srclist.txt: Update
67591
67592 2006-10-27  Eric Blake  <ebb9@byu.net>
67593
67594         * MODULES.html.sh: Document tempname.
67595         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67596         dependencies.
67597         (Files): Move lib/tempname.c...
67598         * modules/tempname: ...to this new module.
67599         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67600         (gl_PREREQ_TEMPNAME): Move...
67601         * m4/tempname.m4: ...to this new file.
67602         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67603         * modules/sys_stat (Depends-on): Add stat-macros.
67604         * lib/stat_.h (includes): Pick up stat macros.
67605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67606         if stat macros are broken.
67607         * lib/tempname.c (includes): No need to include "stat-macros.h".
67608         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67609         (direxists, __path_search) [!_LIBC]: Don't compile these in
67610         gnulib; the tmpdir module covers that.
67611         * lib/tempname.h: New file.
67612
67613 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         * COPYING: Explain how gnulib-tool converts licence headers.
67616         Almost all wording by Eric Blake.
67617
67618 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         * lib/mbchar.h (is_basic_table): Make read-only.
67621         * lib/mbchar.c (is_basic_table): Likewise.
67622         Reported by John Darrington.
67623
67624 2006-10-25  Bruno Haible  <bruno@clisp.org>
67625
67626         * lib/progname.h (set_program_name): Undefine before defining.
67627
67628 2006-10-25  Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67631         false for non-gcc C++ compilers.
67632         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67633
67634 2006-10-24  Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67637         iconv implementations like Irix iconv.
67638
67639 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * modules/vararrays: New file.
67642         * m4/vararrays.m4: New file, taken from diffutils.
67643         * MODULES.html.sh: New module vararrays.
67644
67645 2006-10-24  Karl Berry  <karl@gnu.org>
67646
67647         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67648         Don't call GNU Unix.
67649
67650 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67651
67652         * users.txt: Add Libtool.
67653
67654         Sync from Libtool:
67655
67656         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67659         to gnulib's policy of including config.h unconditionally.
67660
67661 2006-10-24  Bruno Haible  <bruno@clisp.org>
67662
67663         * modules/wcwidth (Files): Add m4/wint_t.m4.
67664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67665         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67666
67667 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67670         to pacify GCC with some -W flags enabled.  Problem reported by
67671         Bruno Haible.
67672
67673 2006-10-24  Jim Meyering  <jim@meyering.net>
67674
67675         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67676         Reported by Karl Berry.
67677
67678 2006-10-23  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67681
67682 2006-10-24  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/gl_list.h: Use C comment style, not C++ comment style.
67685
67686 2006-10-23  Eric Blake  <ebb9@byu.net>
67687
67688         * lib/getaddrinfo.c (includes): Add missing include.
67689
67690 2006-10-23  Bruno Haible  <bruno@clisp.org>
67691             Paul Eggert  <eggert@cs.ucla.edu>
67692
67693         Ability to rename obstack_free.
67694         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67695         obstack_free.
67696         (obstack_free): Invoke the __obstack_free macro.
67697         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67698
67699 2006-10-23  Bruno Haible  <bruno@clisp.org>
67700             Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67703         __argc, __argv from the declaration. (They are defined as macros on
67704         mingw.)
67705
67706 2006-10-22  Bruno Haible  <bruno@clisp.org>
67707
67708         * doc/gnulib-intro.texi: New file.
67709         * doc/gnulib.texi: Include it.
67710
67711 2006-10-21  Bruno Haible  <bruno@clisp.org>
67712
67713         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67714         "Introduction", "Miscellanous Notes", "Particular Modules".
67715
67716 2006-10-21  Bruno Haible  <bruno@clisp.org>
67717
67718         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67719         Change mostlyclean-local rule to avoid sh syntax error from bash
67720         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67721
67722 2006-10-23  Jim Meyering  <jim@meyering.net>
67723
67724         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67725         in place of snprintf.
67726
67727         * modules/inttostr (Files): Add lib/uinttostr.c.
67728         * lib/uinttostr.c (inttostr): New file/function.
67729         * lib/inttostr.h (uinttostr): Declare.
67730         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67731         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67732         Add uinttostr.
67733         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67734
67735 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * lib/canonicalize.c (ELOOP): Define if not already defined.
67738         Problem reported by Bruno Haible in
67739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67740
67741 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67744         Problem reported by Perry Smith and Ville Laurikari.
67745
67746         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67747         uses.
67748
67749 2006-10-19  Bruno Haible  <bruno@clisp.org>
67750
67751         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67752         for mingw.
67753
67754 2006-10-19  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67757         Needed for mingw.
67758
67759 2006-10-19  Bruno Haible  <bruno@clisp.org>
67760
67761         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67762
67763 2006-10-19  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67766         it.
67767
67768 2006-10-19  Bruno Haible  <bruno@clisp.org>
67769
67770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67771         invocation.
67772
67773 2006-10-19  Bruno Haible  <bruno@clisp.org>
67774
67775         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67776         mountlist by default.
67777
67778 2006-10-16  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/c-strstr.c: Include c-strstr.h.
67781
67782 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67783
67784         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67785         in a slash.
67786
67787 2006-10-18  Bruno Haible  <bruno@clisp.org>
67788
67789         * lib/lock.h [C++]: Wrap definitions in extern "C".
67790
67791 2006-10-18  Bruno Haible  <bruno@clisp.org>
67792
67793         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67794         gl_LIBOBJS list.
67795
67796 2006-10-18  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67799
67800 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * lib/xstrtol.h: Include gettext.h.
67803         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67804         Problem reported by Eric Blake.
67805         * modules/xstrtol (Depends-on): Add gettext-h.
67806
67807 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67808
67809         * lib/strftime.c (advance): New macro.
67810         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67811         incomplete type, so you can't add 0 to it.  Problem and patch
67812         reported by Eelco Dolstra for dietlibc.
67813
67814 2006-10-18  Jim Meyering  <jim@meyering.net>
67815
67816         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67817         type for a local, and rename it: s/up/user_proc/.
67818
67819 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67820
67821         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67822         READ_UTMP_USER_PROCESS.
67823         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67824
67825 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67828         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67829
67830 2006-10-17  Eric Blake  <ebb9@byu.net>
67831
67832         * lib/sigprocmask.c (sigprocmask): Fix typo.
67833
67834         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67835
67836         * modules/clean-temp (Makefile.am): Don't add to make output...
67837         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67838         config.h.
67839
67840 2006-10-17  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67843         differently if DEFAULT_TEXT_DOMAIN is set.
67844
67845 2006-10-16  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/clean-temp.c: Include fwriteerror.h.
67848
67849 2006-10-16  Bruno Haible  <bruno@clisp.org>
67850
67851         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67852
67853 2006-10-16  Bruno Haible  <bruno@clisp.org>
67854
67855         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67856         * lib/sigprocmask.h: Include <sys/types.h>.
67857         (sigset_t): Use the system's definition if present.
67858
67859 2006-10-17  Eric Blake  <ebb9@byu.net>
67860
67861         * lib/xvasprintf.c (includes): Assume config.h.
67862         * lib/xasprintf.c (includes): Likewise.
67863
67864 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67867         at least as wide as intmax_t.
67868
67869 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67870
67871         (Imported from Automake.)
67872         * build-aux/gnupload: Update to version 1.1 of directive file.
67873
67874 2006-10-16  Eric Blake  <ebb9@byu.net>
67875
67876         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67877         match Automake 1.10a.
67878
67879 2006-10-14  Bruno Haible  <bruno@clisp.org>
67880
67881         * modules/sigprocmask: New file.
67882         * lib/sigprocmask.h: New file.
67883         * lib/sigprocmask.c: New file.
67884         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67885         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67886         request sigprocmask.o.
67887         (gl_PREREQ_SIGPROCMASK): New macro.
67888         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67889         (Depends-on): Add sigprocmask.
67890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67891         gt_SIGNALBLOCKING. Test for 'raise' only once.
67892         * lib/fatal-signal.c: Include sigprocmask.h.
67893         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67894         unblock_fatal_signals): Define always.
67895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67896         sigprocmask.
67897
67898 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Sync from Automake.
67901         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67902         which incorrectly sets the mode of an existing destination
67903         directory.  In some cases the unpatched install-sh could do the
67904         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67905         system.  We hope this is rare in practice, but it's clearly worth
67906         fixing.  Problem reported by Alex Unleashed in
67907         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67908         Also, don't bother to check for -m bugs unless we're using -m;
67909         suggested by Stepan Kasal.
67910
67911 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67912
67913         Sync from Automake.
67914         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67915         `-c' flag, so they appear at the same position as in %FASTDEP%
67916         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67917         which ignores unknown options only after the first non-option.
67918         Bug report against M4 by Nelson H. F. Beebe.
67919
67920 2006-10-13  Jim Meyering  <jim@meyering.net>
67921
67922         Fix a bug in yesterday's change.
67923         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67924         p->fts_statp->st_dev would be used uninitialized.
67925         Ensures that we always call fts_stat on the very first entry.
67926         Miklos Szeredi reported that find -xdev stopped working.
67927
67928 2006-10-12  Bruno Haible  <bruno@clisp.org>
67929
67930         * gnulib-tool (func_get_automake_snippet): Append an automatically
67931         computed EXTRA_DIST augmentation.
67932         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67933         * modules/alloca-opt (Makefile.am): Likewise.
67934         * modules/allocsa (Makefile.am): Likewise.
67935         * modules/arcfour (Makefile.am): Likewise.
67936         * modules/arctwo (Makefile.am): Likewise.
67937         * modules/argmatch (Makefile.am): Likewise.
67938         * modules/argz (Makefile.am): Likewise.
67939         * modules/atexit (Makefile.am): Likewise.
67940         * modules/backupfile (Makefile.am): Likewise.
67941         * modules/byteswap (Makefile.am): Likewise.
67942         * modules/c-strtod (Makefile.am): Likewise.
67943         * modules/c-strtold (Makefile.am): Likewise.
67944         * modules/calloc (Makefile.am): Likewise.
67945         * modules/canon-host (Makefile.am): Likewise.
67946         * modules/canonicalize (Makefile.am): Likewise.
67947         * modules/chdir-long (Makefile.am): Likewise.
67948         * modules/chdir-safer (Makefile.am): Likewise.
67949         * modules/check-version (Makefile.am): Likewise.
67950         * modules/chown (Makefile.am): Likewise.
67951         * modules/cloexec (Makefile.am): Likewise.
67952         * modules/close-stream (Makefile.am): Likewise.
67953         * modules/closeout (Makefile.am): Likewise.
67954         * modules/crc (Makefile.am): Likewise.
67955         * modules/csharpexec (Makefile.am): Likewise.
67956         * modules/cycle-check (Makefile.am): Likewise.
67957         * modules/des (Makefile.am): Likewise.
67958         * modules/dev-ino (Makefile.am): Likewise.
67959         * modules/dirfd (Makefile.am): Likewise.
67960         * modules/dirname (Makefile.am): Likewise.
67961         * modules/dup2 (Makefile.am): Likewise.
67962         * modules/eealloc (Makefile.am): Likewise.
67963         * modules/error (Makefile.am): Likewise.
67964         * modules/euidaccess (Makefile.am): Likewise.
67965         * modules/exclude (Makefile.am): Likewise.
67966         * modules/exitfail (Makefile.am): Likewise.
67967         * modules/fcntl-safer (Makefile.am): Likewise.
67968         * modules/fcntl (Makefile.am): Likewise.
67969         * modules/file-type (Makefile.am): Likewise.
67970         * modules/fileblocks (Makefile.am): Likewise.
67971         * modules/filemode (Makefile.am): Likewise.
67972         * modules/filenamecat (Makefile.am): Likewise.
67973         * modules/fnmatch (Makefile.am): Likewise.
67974         * modules/fopen-safer (Makefile.am): Likewise.
67975         * modules/fpending (Makefile.am): Likewise.
67976         * modules/fprintftime (Makefile.am): Likewise.
67977         * modules/free (Makefile.am): Likewise.
67978         * modules/fsusage (Makefile.am): Likewise.
67979         * modules/ftruncate (Makefile.am): Likewise.
67980         * modules/fts (Makefile.am): Likewise.
67981         * modules/gc-arcfour (Makefile.am): Likewise.
67982         * modules/gc-des (Makefile.am): Likewise.
67983         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67984         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67985         * modules/gc-md4 (Makefile.am): Likewise.
67986         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67987         * modules/gc-sha1 (Makefile.am): Likewise.
67988         * modules/gc (Makefile.am): Likewise.
67989         * modules/getaddrinfo (Makefile.am): Likewise.
67990         * modules/getcwd (Makefile.am): Likewise.
67991         * modules/getdelim (Makefile.am): Likewise.
67992         * modules/getdomainname (Makefile.am): Likewise.
67993         * modules/getgroups (Makefile.am): Likewise.
67994         * modules/gethostname (Makefile.am): Likewise.
67995         * modules/gethrxtime (Makefile.am): Likewise.
67996         * modules/getline (Makefile.am): Likewise.
67997         * modules/getloadavg (Makefile.am): Likewise.
67998         * modules/getlogin_r (Makefile.am): Likewise.
67999         * modules/getndelim2 (Makefile.am): Likewise.
68000         * modules/getopt (Makefile.am): Likewise.
68001         * modules/getpagesize (Makefile.am): Likewise.
68002         * modules/getpass-gnu (Makefile.am): Likewise.
68003         * modules/getpass (Makefile.am): Likewise.
68004         * modules/getsubopt (Makefile.am): Likewise.
68005         * modules/gettime (Makefile.am): Likewise.
68006         * modules/gettimeofday (Makefile.am): Likewise.
68007         * modules/getugroups (Makefile.am): Likewise.
68008         * modules/getusershell (Makefile.am): Likewise.
68009         * modules/glob (Makefile.am): Likewise.
68010         * modules/group-member (Makefile.am): Likewise.
68011         * modules/hard-locale (Makefile.am): Likewise.
68012         * modules/hash (Makefile.am): Likewise.
68013         * modules/hmac-md5 (Makefile.am): Likewise.
68014         * modules/hmac-sha1 (Makefile.am): Likewise.
68015         * modules/human (Makefile.am): Likewise.
68016         * modules/idcache (Makefile.am): Likewise.
68017         * modules/imaxabs (Makefile.am): Likewise.
68018         * modules/imaxdiv (Makefile.am): Likewise.
68019         * modules/inet_ntop (Makefile.am): Likewise.
68020         * modules/inet_pton (Makefile.am): Likewise.
68021         * modules/intprops (Makefile.am): Likewise.
68022         * modules/inttostr (Makefile.am): Likewise.
68023         * modules/inttypes (Makefile.am): Likewise.
68024         * modules/isapipe (Makefile.am): Likewise.
68025         * modules/javaversion (Makefile.am): Likewise.
68026         * modules/lchmod (Makefile.am): Likewise.
68027         * modules/lchown (Makefile.am): Likewise.
68028         * modules/localcharset (Makefile.am): Likewise.
68029         * modules/long-options (Makefile.am): Likewise.
68030         * modules/lstat (Makefile.am): Likewise.
68031         * modules/malloc (Makefile.am): Likewise.
68032         * modules/mathl (Makefile.am): Likewise.
68033         * modules/mbchar (Makefile.am): Likewise.
68034         * modules/md2 (Makefile.am): Likewise.
68035         * modules/md4 (Makefile.am): Likewise.
68036         * modules/md5 (Makefile.am): Likewise.
68037         * modules/memcasecmp (Makefile.am): Likewise.
68038         * modules/memchr (Makefile.am): Likewise.
68039         * modules/memcmp (Makefile.am): Likewise.
68040         * modules/memcoll (Makefile.am): Likewise.
68041         * modules/memcpy (Makefile.am): Likewise.
68042         * modules/memmem (Makefile.am): Likewise.
68043         * modules/memmove (Makefile.am): Likewise.
68044         * modules/mempcpy (Makefile.am): Likewise.
68045         * modules/memrchr (Makefile.am): Likewise.
68046         * modules/memset (Makefile.am): Likewise.
68047         * modules/memxor (Makefile.am): Likewise.
68048         * modules/mkancesdirs (Makefile.am): Likewise.
68049         * modules/mkdir-p (Makefile.am): Likewise.
68050         * modules/mkdir (Makefile.am): Likewise.
68051         * modules/mkdtemp (Makefile.am): Likewise.
68052         * modules/mkstemp (Makefile.am): Likewise.
68053         * modules/mktime (Makefile.am): Likewise.
68054         * modules/modechange (Makefile.am): Likewise.
68055         * modules/mountlist (Makefile.am): Likewise.
68056         * modules/nanosleep (Makefile.am): Likewise.
68057         * modules/obstack (Makefile.am): Likewise.
68058         * modules/openat (Makefile.am): Likewise.
68059         * modules/pagealign_alloc (Makefile.am): Likewise.
68060         * modules/pathmax (Makefile.am): Likewise.
68061         * modules/physmem (Makefile.am): Likewise.
68062         * modules/poll (Makefile.am): Likewise.
68063         * modules/posixtm (Makefile.am): Likewise.
68064         * modules/posixver (Makefile.am): Likewise.
68065         * modules/putenv (Makefile.am): Likewise.
68066         * modules/quote (Makefile.am): Likewise.
68067         * modules/quotearg (Makefile.am): Likewise.
68068         * modules/raise (Makefile.am): Likewise.
68069         * modules/read-file (Makefile.am): Likewise.
68070         * modules/readline (Makefile.am): Likewise.
68071         * modules/readlink (Makefile.am): Likewise.
68072         * modules/readtokens (Makefile.am): Likewise.
68073         * modules/readutmp (Makefile.am): Likewise.
68074         * modules/realloc (Makefile.am): Likewise.
68075         * modules/regex (Makefile.am): Likewise.
68076         * modules/rename-dest-slash (Makefile.am): Likewise.
68077         * modules/rename (Makefile.am): Likewise.
68078         * modules/rijndael (Makefile.am): Likewise.
68079         * modules/rmdir (Makefile.am): Likewise.
68080         * modules/rpmatch (Makefile.am): Likewise.
68081         * modules/safe-read (Makefile.am): Likewise.
68082         * modules/safe-write (Makefile.am): Likewise.
68083         * modules/same-inode (Makefile.am): Likewise.
68084         * modules/same (Makefile.am): Likewise.
68085         * modules/save-cwd (Makefile.am): Likewise.
68086         * modules/savedir (Makefile.am): Likewise.
68087         * modules/setenv (Makefile.am): Likewise.
68088         * modules/settime (Makefile.am): Likewise.
68089         * modules/sha1 (Makefile.am): Likewise.
68090         * modules/sig2str (Makefile.am): Likewise.
68091         * modules/snprintf (Makefile.am): Likewise.
68092         * modules/stat-macros (Makefile.am): Likewise.
68093         * modules/stat-time (Makefile.am): Likewise.
68094         * modules/stdbool (Makefile.am): Likewise.
68095         * modules/stdint (Makefile.am): Likewise.
68096         * modules/stdlib-safer (Makefile.am): Likewise.
68097         * modules/stpcpy (Makefile.am): Likewise.
68098         * modules/stpncpy (Makefile.am): Likewise.
68099         * modules/strcase (Makefile.am): Likewise.
68100         * modules/strcasestr (Makefile.am): Likewise.
68101         * modules/strchrnul (Makefile.am): Likewise.
68102         * modules/strcspn (Makefile.am): Likewise.
68103         * modules/strdup (Makefile.am): Likewise.
68104         * modules/strerror (Makefile.am): Likewise.
68105         * modules/strftime (Makefile.am): Likewise.
68106         * modules/strndup (Makefile.am): Likewise.
68107         * modules/strnlen (Makefile.am): Likewise.
68108         * modules/strpbrk (Makefile.am): Likewise.
68109         * modules/strsep (Makefile.am): Likewise.
68110         * modules/strstr (Makefile.am): Likewise.
68111         * modules/strtod (Makefile.am): Likewise.
68112         * modules/strtoimax (Makefile.am): Likewise.
68113         * modules/strtok_r (Makefile.am): Likewise.
68114         * modules/strtol (Makefile.am): Likewise.
68115         * modules/strtoll (Makefile.am): Likewise.
68116         * modules/strtoul (Makefile.am): Likewise.
68117         * modules/strtoull (Makefile.am): Likewise.
68118         * modules/strtoumax (Makefile.am): Likewise.
68119         * modules/strverscmp (Makefile.am): Likewise.
68120         * modules/sys_socket (Makefile.am): Likewise.
68121         * modules/sys_stat (Makefile.am): Likewise.
68122         * modules/sysexits (Makefile.am): Likewise.
68123         * modules/time_r (Makefile.am): Likewise.
68124         * modules/timegm (Makefile.am): Likewise.
68125         * modules/timespec (Makefile.am): Likewise.
68126         * modules/tmpfile-safer (Makefile.am): Likewise.
68127         * modules/trim (Makefile.am): Likewise.
68128         * modules/unistd-safer (Makefile.am): Likewise.
68129         * modules/unlinkdir (Makefile.am): Likewise.
68130         * modules/unlocked-io (Makefile.am): Likewise.
68131         * modules/userspec (Makefile.am): Likewise.
68132         * modules/utime (Makefile.am): Likewise.
68133         * modules/utimecmp (Makefile.am): Likewise.
68134         * modules/utimens (Makefile.am): Likewise.
68135         * modules/vasnprintf (Makefile.am): Likewise.
68136         * modules/vasprintf (Makefile.am): Likewise.
68137         * modules/vsnprintf (Makefile.am): Likewise.
68138         * modules/xalloc (Makefile.am): Likewise.
68139         * modules/xgetcwd (Makefile.am): Likewise.
68140         * modules/xnanosleep (Makefile.am): Likewise.
68141         * modules/xreadlink (Makefile.am): Likewise.
68142         * modules/xstrtod (Makefile.am): Likewise.
68143         * modules/xstrtol (Makefile.am): Likewise.
68144         * modules/xstrtold (Makefile.am): Likewise.
68145         * modules/yesno (Makefile.am): Likewise.
68146         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68147
68148 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * modules/error (Makefile.am): Distribute files through
68151         EXTRA_DIST, not lib_SOURCES.
68152
68153 2006-10-12  Eric Blake  <ebb9@byu.net>
68154
68155         * modules/error (Makefile.am): Distribute files in /lib.
68156         * modules/obstack (Makefile.am): Likewise.
68157
68158 2006-10-12  Bruno Haible  <bruno@clisp.org>
68159
68160         * modules/acl (Makefile.am): Distribute all files in lib/ through
68161         EXTRA_DIST.
68162         * modules/arcfour (Makefile.am): Likewise.
68163         * modules/arctwo (Makefile.am): Likewise.
68164         * modules/argmatch (Makefile.am): Likewise.
68165         * modules/argz (Makefile.am): Likewise.
68166         * modules/atexit (Makefile.am): Likewise.
68167         * modules/backupfile (Makefile.am): Likewise.
68168         * modules/c-strtod (Makefile.am): Likewise.
68169         * modules/c-strtold (Makefile.am): Likewise.
68170         * modules/calloc (Makefile.am): Likewise.
68171         * modules/canon-host (Makefile.am): Likewise.
68172         * modules/canonicalize (Makefile.am): Likewise.
68173         * modules/chdir-long (Makefile.am): Likewise.
68174         * modules/chdir-safer (Makefile.am): Likewise.
68175         * modules/check-version (Makefile.am): Likewise.
68176         * modules/chown (Makefile.am): Likewise.
68177         * modules/cloexec (Makefile.am): Likewise.
68178         * modules/close-stream (Makefile.am): Likewise.
68179         * modules/closeout (Makefile.am): Likewise.
68180         * modules/crc (Makefile.am): Likewise.
68181         * modules/cycle-check (Makefile.am): Likewise.
68182         * modules/des (Makefile.am): Likewise.
68183         * modules/dirfd (Makefile.am): Likewise.
68184         * modules/dirname (Makefile.am): Likewise.
68185         * modules/dup2 (Makefile.am): Likewise.
68186         * modules/euidaccess (Makefile.am): Likewise.
68187         * modules/exclude (Makefile.am): Likewise.
68188         * modules/exitfail (Makefile.am): Likewise.
68189         * modules/fcntl-safer (Makefile.am): Likewise.
68190         * modules/file-type (Makefile.am): Likewise.
68191         * modules/fileblocks (Makefile.am): Likewise.
68192         * modules/filemode (Makefile.am): Likewise.
68193         * modules/filenamecat (Makefile.am): Likewise.
68194         * modules/fnmatch (Makefile.am): Likewise.
68195         * modules/fopen-safer (Makefile.am): Likewise.
68196         * modules/fpending (Makefile.am): Likewise.
68197         * modules/fprintftime (Makefile.am): Likewise.
68198         * modules/free (Makefile.am): Likewise.
68199         * modules/fsusage (Makefile.am): Likewise.
68200         * modules/ftruncate (Makefile.am): Likewise.
68201         * modules/fts (Makefile.am): Likewise.
68202         * modules/gc (Makefile.am): Likewise.
68203         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68204         * modules/getaddrinfo (Makefile.am): Likewise.
68205         * modules/getcwd (Makefile.am): Likewise.
68206         * modules/getdelim (Makefile.am): Likewise.
68207         * modules/getdomainname (Makefile.am): Likewise.
68208         * modules/getgroups (Makefile.am): Likewise.
68209         * modules/gethostname (Makefile.am): Likewise.
68210         * modules/gethrxtime (Makefile.am): Likewise.
68211         * modules/getline (Makefile.am): Likewise.
68212         * modules/getloadavg (Makefile.am): Likewise.
68213         * modules/getlogin_r (Makefile.am): Likewise.
68214         * modules/getopt (Makefile.am): Likewise.
68215         * modules/getpass (Makefile.am): Likewise.
68216         * modules/getpass-gnu (Makefile.am): Likewise.
68217         * modules/getsubopt (Makefile.am): Likewise.
68218         * modules/gettime (Makefile.am): Likewise.
68219         * modules/gettimeofday (Makefile.am): Likewise.
68220         * modules/getugroups (Makefile.am): Likewise.
68221         * modules/getusershell (Makefile.am): Likewise.
68222         * modules/glob (Makefile.am): Likewise.
68223         * modules/group-member (Makefile.am): Likewise.
68224         * modules/hard-locale (Makefile.am): Likewise.
68225         * modules/hash (Makefile.am): Likewise.
68226         * modules/hmac-md5 (Makefile.am): Likewise.
68227         * modules/hmac-sha1 (Makefile.am): Likewise.
68228         * modules/human (Makefile.am): Likewise.
68229         * modules/idcache (Makefile.am): Likewise.
68230         * modules/imaxabs (Makefile.am): Likewise.
68231         * modules/imaxdiv (Makefile.am): Likewise.
68232         * modules/inet_ntop (Makefile.am): Likewise.
68233         * modules/inet_pton (Makefile.am): Likewise.
68234         * modules/inttostr (Makefile.am): Likewise.
68235         * modules/isapipe (Makefile.am): Likewise.
68236         * modules/lchown (Makefile.am): Likewise.
68237         * modules/long-options (Makefile.am): Likewise.
68238         * modules/lstat (Makefile.am): Likewise.
68239         * modules/malloc (Makefile.am): Likewise.
68240         * modules/mathl (Makefile.am): Likewise.
68241         * modules/mbchar (Makefile.am): Likewise.
68242         * modules/md2 (Makefile.am): Likewise.
68243         * modules/md4 (Makefile.am): Likewise.
68244         * modules/md5 (Makefile.am): Likewise.
68245         * modules/memcasecmp (Makefile.am): Likewise.
68246         * modules/memchr (Makefile.am): Likewise.
68247         * modules/memcmp (Makefile.am): Likewise.
68248         * modules/memcoll (Makefile.am): Likewise.
68249         * modules/memcpy (Makefile.am): Likewise.
68250         * modules/memmem (Makefile.am): Likewise.
68251         * modules/memmove (Makefile.am): Likewise.
68252         * modules/mempcpy (Makefile.am): Likewise.
68253         * modules/memrchr (Makefile.am): Likewise.
68254         * modules/memset (Makefile.am): Likewise.
68255         * modules/memxor (Makefile.am): Likewise.
68256         * modules/mkancesdirs (Makefile.am): Likewise.
68257         * modules/mkdir (Makefile.am): Likewise.
68258         * modules/mkdir-p (Makefile.am): Likewise.
68259         * modules/mkdtemp (Makefile.am): Likewise.
68260         * modules/mkstemp (Makefile.am): Likewise.
68261         * modules/mktime (Makefile.am): Likewise.
68262         * modules/modechange (Makefile.am): Likewise.
68263         * modules/mountlist (Makefile.am): Likewise.
68264         * modules/nanosleep (Makefile.am): Likewise.
68265         * modules/openat (Makefile.am): Likewise.
68266         * modules/pagealign_alloc (Makefile.am): Likewise.
68267         * modules/physmem (Makefile.am): Likewise.
68268         * modules/poll (Makefile.am): Likewise.
68269         * modules/posixtm (Makefile.am): Likewise.
68270         * modules/posixver (Makefile.am): Likewise.
68271         * modules/putenv (Makefile.am): Likewise.
68272         * modules/quote (Makefile.am): Likewise.
68273         * modules/quotearg (Makefile.am): Likewise.
68274         * modules/raise (Makefile.am): Likewise.
68275         * modules/read-file (Makefile.am): Likewise.
68276         * modules/readline (Makefile.am): Likewise.
68277         * modules/readlink (Makefile.am): Likewise.
68278         * modules/readtokens (Makefile.am): Likewise.
68279         * modules/readutmp (Makefile.am): Likewise.
68280         * modules/realloc (Makefile.am): Likewise.
68281         * modules/regex (Makefile.am): Likewise.
68282         * modules/rename (Makefile.am): Likewise.
68283         * modules/rename-dest-slash (Makefile.am): Likewise.
68284         * modules/rijndael (Makefile.am): Likewise.
68285         * modules/rmdir (Makefile.am): Likewise.
68286         * modules/rpmatch (Makefile.am): Likewise.
68287         * modules/safe-read (Makefile.am): Likewise.
68288         * modules/safe-write (Makefile.am): Likewise.
68289         * modules/same (Makefile.am): Likewise.
68290         * modules/save-cwd (Makefile.am): Likewise.
68291         * modules/savedir (Makefile.am): Likewise.
68292         * modules/setenv (Makefile.am): Likewise.
68293         * modules/settime (Makefile.am): Likewise.
68294         * modules/sha1 (Makefile.am): Likewise.
68295         * modules/sig2str (Makefile.am): Likewise.
68296         * modules/snprintf (Makefile.am): Likewise.
68297         * modules/stdlib-safer (Makefile.am): Likewise.
68298         * modules/stpcpy (Makefile.am): Likewise.
68299         * modules/stpncpy (Makefile.am): Likewise.
68300         * modules/strcase (Makefile.am): Likewise.
68301         * modules/strcasestr (Makefile.am): Likewise.
68302         * modules/strchrnul (Makefile.am): Likewise.
68303         * modules/strcspn (Makefile.am): Likewise.
68304         * modules/strdup (Makefile.am): Likewise.
68305         * modules/strerror (Makefile.am): Likewise.
68306         * modules/strftime (Makefile.am): Likewise.
68307         * modules/strndup (Makefile.am): Likewise.
68308         * modules/strnlen (Makefile.am): Likewise.
68309         * modules/strpbrk (Makefile.am): Likewise.
68310         * modules/strsep (Makefile.am): Likewise.
68311         * modules/strstr (Makefile.am): Likewise.
68312         * modules/strtod (Makefile.am): Likewise.
68313         * modules/strtoimax (Makefile.am): Likewise.
68314         * modules/strtok_r (Makefile.am): Likewise.
68315         * modules/strtol (Makefile.am): Likewise.
68316         * modules/strtoll (Makefile.am): Likewise.
68317         * modules/strtoul (Makefile.am): Likewise.
68318         * modules/strtoull (Makefile.am): Likewise.
68319         * modules/strtoumax (Makefile.am): Likewise.
68320         * modules/strverscmp (Makefile.am): Likewise.
68321         * modules/time_r (Makefile.am): Likewise.
68322         * modules/timegm (Makefile.am): Likewise.
68323         * modules/tmpfile-safer (Makefile.am): Likewise.
68324         * modules/unistd-safer (Makefile.am): Likewise.
68325         * modules/unlinkdir (Makefile.am): Likewise.
68326         * modules/userspec (Makefile.am): Likewise.
68327         * modules/utime (Makefile.am): Likewise.
68328         * modules/utimecmp (Makefile.am): Likewise.
68329         * modules/utimens (Makefile.am): Likewise.
68330         * modules/vasnprintf (Makefile.am): Likewise.
68331         * modules/vasprintf (Makefile.am): Likewise.
68332         * modules/vsnprintf (Makefile.am): Likewise.
68333         * modules/xalloc (Makefile.am): Likewise.
68334         * modules/xgetcwd (Makefile.am): Likewise.
68335         * modules/xnanosleep (Makefile.am): Likewise.
68336         * modules/xreadlink (Makefile.am): Likewise.
68337         * modules/xstrtod (Makefile.am): Likewise.
68338         * modules/xstrtol (Makefile.am): Likewise.
68339         * modules/xstrtold (Makefile.am): Likewise.
68340         * modules/yesno (Makefile.am): Likewise.
68341
68342 2006-10-12  Jim Meyering  <jim@meyering.net>
68343
68344         * m4/getloadavg.m4: Revert the change below.
68345
68346         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68347         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68348         fail with a symlink, which is what coreutils' ./bootstrap now
68349         creates by default.
68350
68351 2006-10-12  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68354         mingw.
68355         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68356         MSVC and mingw explicitly.
68357
68358 2006-10-11  Simon Josefsson  <jas@extundo.com>
68359             Bruno Haible  <bruno@clisp.org>
68360
68361         Add support for multiple gnulib-tool invocations in the scope of a
68362         single configure.ac file.
68363         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68364         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68365         with the same contents as the _LIBADD variable.
68366         (func_emit_initmacro_start, func_emit_initmacro_end,
68367         func_emit_initmacro_done): New functions.
68368         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68369         gl_LIBOBJS and gl_LTLIBOBJS.
68370
68371 2006-10-11  Bruno Haible  <bruno@clisp.org>
68372
68373         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68374         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68375         autoreconf. Instead, invoke autopoint explicitly but move back the
68376         *.m4 files from gnulib.
68377
68378 2006-10-11  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_usage): Make module names after --create-testdir
68381         optional.
68382         (func_create_testdir): If no module was specified, use nearly all
68383         modules.
68384
68385 2006-10-12  Jim Meyering  <jim@meyering.net>
68386
68387         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68388         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68389         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68390         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68391         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68392         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68393         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68394         (fts_set_stat_required): New function.
68395         (fts_open): Defer the calls to fts_stat, if possible or requested.
68396         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68397         into fts_stat itself.
68398         (fts_read): Perform any required (deferred) fts_stat call.
68399         (fts_build): Likewise, for the directory we're about to open and read.
68400         In the readdir loop, carefully decide whether each entry will require
68401         an eventual call to fts_stat, using dirent.d_type info if available.
68402         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68403         a command line argument into this function.  Update all callers.
68404         Map a return value of FTS_DOT to FTS_D for a command line argument.
68405         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68406         Thanks to Miklos Szeredi for his tenacity and for the initial
68407         bug report about "find" failing on a FUSE-based file system.
68408
68409         * lib/fts.c (fts_open): Use consistent indentation.
68410
68411 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68414         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68415         reported by Jim Meyering.  All uses of cache variables renamed
68416         to match Autoconf's.
68417         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68418         the other one.
68419
68420         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68421         Fix misspelling in diagnostic.
68422
68423 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68426         defined.  Problem reported by Matthew Woehlke.
68427
68428         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68429         Add support for Tandem NonStop R series.
68430         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68431         Use new macro.
68432
68433         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68434         (has_trailing_slash): Omit size arg; all callers changed.
68435         Omit 'inline', since it doesn't help performance and we'd
68436         need to configure it.
68437         Don't count //, ///, etc. as having a trailing slash.
68438         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68439         (rpl_rename_dest_slash): On failure, use rename's errno rather
68440         than (in some cases) an incorrect or junk errno.
68441         Simplify code by removing need to compute length; this does
68442         cause it to make two passes instead of one over the file name,
68443         but it's worth it.
68444
68445         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68446         change, since Autoconf's version may no longer be appropriate now
68447         that we are using CVS Autoconf's version.  Add support for Tandem.
68448
68449 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68450             Bruno Haible  <bruno@clisp.org>
68451
68452         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68453         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68454         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68455         gl_AC_TYPE_LONG_LONG.
68456
68457         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68458         instead of HAVE_LONG_LONG.
68459         * lib/printf-args.c (printf_fetchargs): Likewise.
68460         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68461         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68462         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68463         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68464         gl_AC_TYPE_LONG_LONG.
68465
68466 2006-10-11  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/longlong.m4: Add comments.
68469         * m4/ulonglong.m4: Likewise.
68470
68471 2006-10-10  Bruno Haible  <bruno@clisp.org>
68472
68473         Make it possible to #define stpcpy, strdup to aliases.
68474         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68475         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68476
68477 2006-10-10  Bruno Haible  <bruno@clisp.org>
68478
68479         Make it possible to #define gcd to an alias.
68480         * lib/gcd.c: Include config.h.
68481
68482 2006-10-10  Bruno Haible  <bruno@clisp.org>
68483
68484         Make it possible to #define c_isascii to an alias.
68485         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68486         defined. Undefine the macros before defining them, to avoid gcc
68487         warnings.
68488         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68489         define NO_C_CTYPE_MACROS early.
68490
68491 2006-10-10  Bruno Haible  <bruno@clisp.org>
68492
68493         Make it possible to #define set_program_name to an alias.
68494         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68495         ENABLE_RELOCATABLE early.
68496
68497 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68500         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68501         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68502         More generally, don't assume that 64-bit signed int is available
68503         if unsigned int is, and vice versa.
68504         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68505         unsigned symbols, not on their signed counterparts.
68506         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68507         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68508         (UINT64_C, UINTMAX_C):
68509         Likewise.
68510         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68511         unsigned counterparts.
68512         (Have_long_long, Unsigned): New macros.
68513         (Int): Renamed from INT.
68514         (strtoimax): Use the new macros.
68515         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68516         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68517         * modules/inttypes (inttypes.h): Substitute
68518         HAVE_UNSIGNED_LONG_LONG_INT.
68519         * modules/stdint (stdint.h): Likewise.
68520         (Files): Add m4/ulonglong.m4.
68521
68522 2006-10-10  Bruno Haible  <bruno@clisp.org>
68523
68524         Fix a gcc -Wshadow warning.
68525         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68526         to 'bucket'.
68527         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68528         gl_linked_indexof_from_to): Likewise.
68529         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68530         Likewise.
68531         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68532         Likewise.
68533         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68534         Reported by Eric Blake.
68535
68536 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68537
68538         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68539         for NetBSD.  Problem reported by Bruno Haible.
68540
68541 2006-10-09  Jim Meyering  <jim@meyering.net>
68542
68543         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68544         Patch from Bruno Haible.
68545
68546 2006-10-09  Jim Meyering  <jim@meyering.net>
68547
68548         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68549         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68550         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68551
68552 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         Don't include <config.h> twice; this doesn't work in some cases,
68555         e.g., when config.h has "#define intmax_t long long int" and
68556         we include <config.h>, <inttypes.h>, <config.h> in that order.
68557         Problem reported by Matthew Woehlke in:
68558         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68559         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68560         * lib/fts-cycle.c: Don't include config.h.
68561         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68562         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68563         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68564         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68565         inttypes.h.
68566         * lib/xstrtoumax.c: Likewise.
68567         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68568         __strtol and the like, so that this module is more like its siblings.
68569         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68570         Remove; no longer needed now that we assume gnulib inttypes.h.
68571
68572 2006-10-08  Bruno Haible  <bruno@clisp.org>
68573
68574         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68575         option.
68576
68577 2006-10-07  Jim Meyering  <jim@meyering.net>
68578
68579         * modules/inttypes (inttypes.h): Revert what seems to have been
68580         an inadvertent part of today's change: use "|", not "/" in the
68581         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68582
68583 2006-10-07  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/sublist: New file.
68586
68587 2006-10-07  Bruno Haible  <bruno@clisp.org>
68588
68589         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68590         * modules/argz (argz.h): Likewise.
68591         * modules/arpa_inet (arpa/inet.h): Likewise.
68592         * modules/byteswap (byteswap.h): Likewise.
68593         * modules/configmake (configmake.h): Likewise.
68594         * modules/fcntl (fcntl.h): Likewise.
68595         * modules/fnmatch (fnmatch.h): Likewise.
68596         * modules/getopt (getopt.h): Likewise.
68597         * modules/glob (glob.h): Likewise.
68598         * modules/inttypes (inttypes.h): Likewise.
68599         * modules/netinet_in (netinet/in.h): Likewise.
68600         * modules/poll (poll.h): Likewise.
68601         * modules/stdbool (stdbool.h): Likewise.
68602         * modules/stdint (stdint.h): Likewise.
68603         * modules/sys_select (sys/select.h): Likewise.
68604         * modules/sys_socket (sys/socket.h): Likewise.
68605         * modules/sys_stat (sys/stat.h): Likewise.
68606         * modules/sysexits (sysexits.h): Likewise.
68607         * modules/unistd (unistd.h): Likewise.
68608         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68609         Add a "DO NOT EDIT" comment to the generated file.
68610         (func_import): Likewise for gnulib-comp.m4.
68611
68612 2006-10-07  Bruno Haible  <bruno@clisp.org>
68613
68614         * lib/gl_sublist.h: New file.
68615         * lib/gl_sublist.c: New file.
68616
68617 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68620         name (relative to the original working directory) and the file
68621         name component (relative to the temporary working directory).  All
68622         callers changed.
68623         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68624         * lib/mkdir-p.c (make_dir_parents): Likewise.
68625         * lib/mkdir-p.h (make_dir_parents): Likewise.
68626
68627 2006-10-06  Eric Blake  <ebb9@byu.net>
68628
68629         Define several macros for use by the clean-temp module.
68630         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68631         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68632         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68633
68634         * lib/clean-temp.h (close_stream_temp): New declaration.
68635         * lib/clean-temp.c (includes): Pull in headers according to what
68636         other modules are in use.
68637         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68638
68639 2006-10-06  Bruno Haible  <bruno@clisp.org>
68640
68641         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68642         instead of fopen, fwriteerror.
68643
68644 2006-10-06  Bruno Haible  <bruno@clisp.org>
68645
68646         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68647         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68648         int.
68649         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68650         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68651         Return an error indicator.
68652         Suggested by Eric Blake.
68653
68654 2006-10-06  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68657         Reported by Eric Blake.
68658
68659 2006-10-06  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/closeout (Description): Mention stderr too.
68662
68663 2006-10-06  Bruno Haible  <bruno@clisp.org>
68664         and Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/closeout.c (close_stdout): Also close stderr.
68667         * lib/closeout.h: Update comment.
68668
68669 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68672         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68673         * lib/dirchownmod.c: Include lchown.h.
68674         * lib/lchown.c: Don't include files that lchown.h now includes.
68675         Don't declare chown, since lchown.h now does that.
68676         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68677         (lchown): Define to rpl_chown if lchown is declared but
68678         does not exist.  Declare using a prototype if lchown is not
68679         declared.  Add a copyright notice.
68680         * lib/mkstemp.h: Include <unistd.h>.
68681         * lib/openat.c: Include lchown.h.
68682
68683         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68684         we now test for that separately.
68685         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68686         rather than O_NOFOLLOW, when testing whether it's possible to
68687         avoid a race condition reliably.
68688         * lib/savewd.c (savewd_chdir): Likewise.
68689
68690         Remove macros that are no longer needed now that stdint.h is
68691         reliable.
68692         * lib/fsusage.c (UINTMAX_MAX): Remove.
68693         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68694         * lib/utimecmp.c (SIZE_MAX): Remove.
68695
68696         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68697
68698         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68699         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68700         O_NOATIME works.
68701
68702 2006-10-05  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/gl_list.h (gl_sortedlist_search_from_to,
68705         gl_sortedlist_indexof_from_to): New declarations.
68706         (gl_list_implementation): New fields sortedlist_search_from_to,
68707         sortedlist_indexof_from_to.
68708         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68709         inline functions.
68710         * lib/gl_list.c (gl_sortedlist_search_from_to,
68711         gl_sortedlist_indexof_from_to): New functions.
68712         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68713         function.
68714         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68715         (gl_array_sortedlist_search_from_to): New function.
68716         (gl_array_list_implementation): Update.
68717         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68718         function.
68719         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68720         (gl_carray_sortedlist_search_from_to): New function.
68721         (gl_carray_list_implementation): Update.
68722         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68723         gl_linked_sortedlist_indexof_from_to): New functions.
68724         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68725         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68726         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68727         gl_tree_sortedlist_indexof_from_to): New functions.
68728         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68729         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68730         Update.
68731         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68732         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68733         Update.
68734
68735 2006-10-05  Bruno Haible  <bruno@clisp.org>
68736
68737         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68738         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68739         (struct gl_list_implementation): Add fields search_from_to,
68740         indexof_from_to. Remove fields search, indexof.
68741         (gl_list_search): Use the search_from_to method.
68742         (gl_list_search_from, gl_list_search_from_to): New functions.
68743         (gl_list_indexof): Use the indexof_from_to method.
68744         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68745         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68746         (gl_list_search_from, gl_list_search_from_to): New functions.
68747         (gl_list_indexof): Use the indexof_from_to method.
68748         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68749         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68750         gl_array_indexof. Add start_index, end_index arguments.
68751         (gl_array_search_from_to): Renamed from gl_array_search. Add
68752         start_index, end_index arguments.
68753         (gl_array_remove, gl_array_list_implementation): Update.
68754         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68755         gl_carray_indexof. Add start_index, end_index arguments.
68756         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68757         start_index, end_index arguments.
68758         (gl_carray_remove, gl_carray_list_implementation): Update.
68759         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68760         gl_linked_search. Add start_index, end_index arguments.
68761         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68762         start_index, end_index arguments.
68763         (gl_linked_remove): Update.
68764         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68765         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68766         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68767         field to 'size_t'.
68768         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68769         gl_tree_search. Add start_index, end_index arguments.
68770         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68771         start_index, end_index arguments.
68772         (gl_tree_remove): Update.
68773         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68774         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68775         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68776         function.
68777         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68778         gl_tree_search. Add start_index, end_index arguments.
68779         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68780         start_index, end_index arguments.
68781         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68782         Update.
68783         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68784
68785 2006-10-05  Bruno Haible  <bruno@clisp.org>
68786
68787         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68788
68789         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68790         fwriteerror_temp): New declarations.
68791         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68792         (descriptors): New variable.
68793         (cleanup): First, close the descriptors.
68794         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68795         fclose_temp, fwriteerror_temp): New functions.
68796
68797 2006-10-04  Jim Meyering  <jim@meyering.net>
68798
68799         * lib/fts.c (fts_open): Tiny comment change.
68800
68801 2006-10-04  Bruno Haible  <bruno@clisp.org>
68802
68803         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68804         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68805         gl_LOCK_BODY.
68806         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68807         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68808         gl_LOCK_EARLY_BODY.
68809         (gl_LOCK): Require gl_LOCK_BODY.
68810
68811 2006-10-04  Bruno Haible  <bruno@clisp.org>
68812
68813         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68814         (gl_oset_search_atleast): New declaration.
68815         (struct gl_oset_implementation): Add field 'search_atleast'.
68816         (gl_oset_search_atleast): New inline function.
68817         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68818         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68819         (gl_array_oset_implementation): Update.
68820         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68821         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68822         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68823
68824 2006-10-04  Bruno Haible  <bruno@clisp.org>
68825
68826         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68827
68828 2006-10-03  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68831         from gl_avltreehash_list_implementation.
68832
68833 2006-10-03  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/gl_oset.c (gl_oset_add): Fix return type.
68836
68837 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68838
68839         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68840
68841 2006-10-02  Eric Blake  <ebb9@byu.net>
68842
68843         * modules/strnlen (Depends-on): Add extensions.
68844
68845 2006-10-02  Eric Blake  <ebb9@byu.net>
68846
68847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68848         definition in 2.60+.
68849
68850 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68851
68852         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68853         checks.
68854
68855 2006-10-02  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68858         to the AUTOMAKE_OPTIONS.
68859         Reported by Jim Meyering.
68860
68861 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         Work around bug in Solaris 10 /proc file system:
68864         /proc/self/fd/NNN/.. isn't the parent directory of
68865         the directory whose file descriptor is NNN.  This needs to
68866         be worked around at run time, not compile time, since a
68867         program might be built on Solaris 8, where things work, and
68868         run on Solaris 10.
68869         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68870         to use the following interface instead:
68871         (OPENAT_BUFFER_SIZE): New macro.
68872         (openat_proc_name): New function.
68873         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68874         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68875         Likewise.
68876         * lib/openat-proc.c: New file.
68877         * modules/openat (Files): Add lib/openat-proc.c.
68878         (Depends-on): Add same-inode, stdbool.
68879         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68880
68881 2006-09-29  Bruno Haible  <bruno@clisp.org>
68882
68883         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68884         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68885         argument. Set stdout_closed before testing for ferror, not after.
68886         (fwriteerror, fwriteerror_no_ebadf): New functions.
68887
68888 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68889
68890         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68891
68892 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68893
68894         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68895         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68896
68897 2006-09-28  Jim Meyering  <jim@meyering.net>
68898
68899         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68900         Include <unistd.h>.
68901
68902 2006-09-28  Bruno Haible  <bruno@clisp.org>
68903
68904         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68905         * modules/linkedhash-list (Depends-on): Likewise.
68906         * modules/rbtreehash-list (Depends-on): Likewise.
68907
68908 2006-09-28  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/strndup.h: Simplify the redefinition of strndup.
68911         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68913
68914 2006-09-28  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68917         * lib/gl_linkedhash_list.c: Likewise.
68918         * lib/gl_rbtreehash_list.c: Likewise.
68919
68920 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68923         getaddrinfo.
68924
68925         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68926         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68927         it causes <stdio_ext.h> to cause a compile-time error.
68928         Problem reported by Nelson H. F. Beebe.
68929         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68930         of HAVE_DECL___PENDING.
68931
68932         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68933         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68934         declaration.
68935
68936 2006-09-27  Jim Meyering  <jim@meyering.net>
68937
68938         This file could end up with a definition for a function
68939         named __strndup, rather than rpl_strndup on a system with
68940         incomplete weak_alias support.
68941         * lib/strndup.c (strndup): Rename from __strndup.
68942         Remove #defines that used to map __strndup to strndup.
68943         Don't use K&R prototypes.
68944         Remove LIBC-related code, since this file is not sync'd with glibc.
68945         * lib/strndup.h: Revamp, accordingly.
68946         * m4/strndup.m4: Modernize.
68947
68948 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         * modules/savewd (Depends-on): Add 'raise'.
68951         * lib/savewd.c: Include <signal.h>, for 'raise'.
68952
68953 2006-09-26  Jim Meyering  <jim@meyering.net>
68954
68955         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68956         when we detect Darwin 8.7.0's acl_get_file bug.
68957         Rearrange to perform the new (below) run-test while $LIBS
68958         contains any acl-related library.  Set USE_ACL at the end.
68959         (gl_ACL_GET_FILE): New function.
68960
68961 2006-09-26  Eric Blake  <ebb9@byu.net>
68962
68963         * lib/verror.c: Include <config.h> unconditionally.
68964
68965 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * modules/clock-time (Maintainer): Add self.
68968         * modules/getlogin_r (Depends-on): Add extensions.
68969
68970 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68971
68972         * modules/clock-time: New module.
68973         * modules/nanosleep (Depends-on): Add clock-time.
68974         * modules/gethrxtime (Depends-on): Likewise.
68975         * modules/gettime (Depends-on): Likewise.
68976         * modules/settime (Depends-on): Likewise.
68977
68978         * modules/fts-lgpl: Depend on openat.
68979         * modules/mkancesdirs: Depend on savewd.
68980         * modules/mkdir-p: Likewise.
68981
68982 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68983
68984         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68985
68986         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68987         `gl_have_arbitrary_file_name_length_limit' to
68988         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68989         actually works between configure runs.
68990
68991 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68992             Bruno Haible  <bruno@clisp.org>
68993
68994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68995
68996 2006-09-25  Jim Meyering  <jim@meyering.net>
68997
68998         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68999         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69000
69001 2006-09-25  Eric Blake  <ebb9@byu.net>
69002
69003         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69004         exec's in 2006-09-18 patch when shuffling fds.
69005
69006 2006-09-25  Bruno Haible  <bruno@clisp.org>
69007
69008         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69009         Reported by Jim Meyering.
69010
69011 2006-09-24  Jim Meyering  <jim@meyering.net>
69012
69013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69014         compare a pointer against a literal "0".  That caused failures with
69015         at least HP-UX's hpcc.
69016
69017 2006-09-22  Simon Josefsson  <jas@extundo.com>
69018
69019         * modules/gc-sha1:
69020         * modules/gc-md4:
69021         * modules/gc-hmac-sha1:
69022         * modules/gc-hmac-md5:
69023         * modules/gc-des:
69024         * modules/gc-arcfour: Distribute more files.
69025
69026 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69027
69028         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69029         (gl_linked_iterator_from_to): Initialize struct completely.
69030         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69031         (gl_tree_iterator_from_to): Likewise
69032         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69033         * lib/gl_array_list.c [lint] (gl_array_iterator)
69034         (gl_array_iterator_from_to): Likewise.
69035         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69036         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69037         (gl_carray_iterator_from_to): Likewise.
69038
69039         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69040         * lib/md4.c (md4_process_block): Remove unused variable.
69041         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69042         parentheses for clarity.
69043
69044 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69045
69046         * modules/bison-i18n (Depends-on): Add gettext.
69047
69048 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69049
69050         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69051         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69052         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69053         also add missing comma that caused broken test.
69054         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69055         stdlib.h, for `abort'.
69056         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69057         variables.
69058         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69059         include unistd.h if present, for `rmdir'.
69060         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69061         variables.
69062         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69063         in the process include standard headers for prototypes.
69064         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69065         gets declared on GNU/Linux.
69066         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69067         unistd.h, for `rmdir'.
69068         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69069
69070         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69071         always true.
69072         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69073
69074         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69075
69076 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69077
69078         * gnulib-tool (func_version): Create output all at once.  This
69079         may help avoid triggering unnecessary SIGPIPEs, and at any
69080         rate it doesn't hurt.
69081
69082 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69083             Bruno Haible  <bruno@clisp.org>
69084
69085         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69086         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69087         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69088
69089         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69090         (gl_FUNC_VASPRINTF): Invoke it.
69091
69092 2006-09-22  Bruno Haible  <bruno@clisp.org>
69093
69094         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69095         getloadavg.c as first argument.
69096
69097 2006-09-22  Bruno Haible  <bruno@clisp.org>
69098
69099         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69100         at the beginning of the gl_INIT macro.
69101         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69102         gl_GETLOADAVG.
69103
69104 2006-09-22  Bruno Haible  <bruno@clisp.org>
69105
69106         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69107         module.
69108         Suggested by Ralf Wildenhues.
69109
69110 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         Import this patch from libc:
69113
69114         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69115
69116         * lib/regex_internal.c (re_string_reconstruct): Handle
69117         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69118         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69119         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69120         re_string_context_at.
69121
69122         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69123         now requires it.
69124         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69125         gl_REGEX now does it for us.
69126         (gl_REGEX): Add test taken from
69127         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69128
69129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69130         Check that large offsets work.  Modernize Autoconf usages.
69131         Prefer "yes" to mean a good thing rather than a bad.
69132         Don't put "#define mkstemp" in config.h, as this might interfere
69133         with standard system headers that "#define mkstemp mkstemp64".
69134
69135         * modules/mkstemp (Depends-on): Add extensions, so that
69136         mkstemp is visible on some platforms.
69137         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69138         (Include): Change to "mkstemp.h" from <stdlib.h>.
69139         (Files): Add mkstemp.h.
69140
69141         * lib/mkstemp.h: New file, since some standard headers
69142         #define mkstemp.
69143         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69144         Include "mkstemp.h".
69145         Make the _LIBC code resemble glibc original more,
69146         e.g., use K&R style.
69147         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69148         (mkstemp): Remove, since mkstemp.h does this for us.
69149         * lib/stdlib--.h: Include mkstemp.h.
69150
69151         Import this patch from libc:
69152
69153         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69154
69155         * lib/tempname.c (__gen_tempname): Change attempts_min
69156         into a macro.  Use preprocessor to decide how to initialize
69157         attempts [Coverity CID 67].
69158
69159 2006-09-20  Bruno Haible  <bruno@clisp.org>
69160
69161         * lib/mkdtemp.c: Import from libc.
69162         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69163                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69164                 attempts_min into a macro.  Use preprocessor to decide how to
69165                 initialize attempts [Coverity CID 67].
69166         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69167                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69168                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69169
69170 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69171
69172         * gnulib-tool (func_exit): New function, to allow to pass the
69173         exit status portably through the trap.  Use everywhere.
69174         (--help, --version): Signal a write error.
69175         (trap): catch SIGPIPE, for write errors.
69176         Exit at the end of the trap, with the correct exit status.
69177
69178 2006-09-19  Karl Berry  <karl@gnu.org>
69179
69180         * doc/gnulib.texi: note about the license texinfo files.
69181
69182 2006-09-19  Eric Blake  <ebb9@byu.net>
69183
69184         * gnulib-tool: Avoid space-tab.
69185
69186 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69187
69188         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69189         that prevented coreutils 6.1 from building.  Problem reported
69190         by Petter Reinholdtsen.
69191
69192 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * gnulib-tool (avoidlist): Fix typo that broke options like
69195         --avoid=lock that are used by coreutils bootstrap.
69196
69197 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69198
69199         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69200         more systematically.
69201
69202 2006-09-18  Jim Meyering  <jim@meyering.net>
69203
69204         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69205
69206 2006-09-18  Bruno Haible  <bruno@clisp.org>
69207
69208         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69209
69210 2006-09-18  Bruno Haible  <bruno@clisp.org>
69211
69212         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69213         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69214         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69215         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69216         * m4/gettext.m4: Require autoconf >= 2.52.
69217         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69218         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69219         of gl_cv_header_inttypes_h.
69220
69221 2006-09-18  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/javaversion.c: Include configmake.h.
69224
69225 2006-09-18  Bruno Haible  <bruno@clisp.org>
69226
69227         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69228         avoid that the while loops be executed in a subshell.
69229
69230 2006-09-18  Bruno Haible  <bruno@clisp.org>
69231
69232         * MODULES.html.sh (func_module): Break long lines.
69233         Suggested by Bruce Korb <bkorb@gnu.org>.
69234
69235 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69236
69237         Speed up by a factor of 1.12.
69238         * gnulib-tool (nl): New variable.
69239         (func_import): Rewrite include directive extraction to only read each
69240         directive once.
69241
69242 2006-09-17  Bruno Haible  <bruno@clisp.org>
69243
69244         * modules/javaversion (Makefile.am): Remove DEFS setting.
69245         (Depends-on): Add configmake, for PKGDATADIR definition.
69246
69247 2006-09-17  Bruno Haible  <bruno@clisp.org>
69248
69249         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69250
69251 2006-09-17  Bruno Haible  <bruno@clisp.org>
69252
69253         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69254         (func_modules_transitive_closure, func_modules_add_dummy,
69255         func_modules_to_filelist, func_import, func_create_testdir,
69256         func_create_megatestdir, ...): Use it wherever possible.
69257         Suggested by Ralf Wildenhues.
69258
69259 2006-09-16  Karl Berry  <karl@gnu.org>
69260
69261         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69262         to avoid sectioning errors.
69263         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69264         [ifinfo]: blank line after @center-ed titles.
69265         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69266         Spell FSF address consistently with others.
69267         (These changes approved by rms.)
69268
69269 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69270
69271         Speed up by a factor of 1.61.
69272         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69273         already checked module names again.
69274
69275 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69276
69277         Speed up by a factor of 1.13.
69278         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69279         for new_files, and the input to func_add_or_update.
69280
69281 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69282
69283         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69284         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69285
69286 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * modules/mkancesdirs (Depends-on): Add fcntl.
69289         * modules/savewd: New file.
69290         * MODULES.html.sh (File system functions): Add savewd.
69291
69292         * modules/configmake (Makefile.am): Add support for the
69293         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69294
69295 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * m4/savewd.m4: New file.
69298
69299 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69302         (dirchownmod): New arg FD.  All callers changed.
69303         Use FD rather than opening the directory ourself, as opening is
69304         now the caller's responsibility.
69305         * lib/dirchownmod.h: Likewise.
69306         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69307         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69308         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69309         (test_dir): Remove.
69310         (mkancesdirs): Return length of prefix of FILE that has already
69311         been made, or -2 if there is a child doing the work.  Redo
69312         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69313         ".", and treat ".." specially since it might stray back into
69314         already-created areas.  Use a subprocess if necessary.  New arg
69315         WD; all users changed.  MAKE_DIR function should now return 1
69316         if it creates a directory that is not readable.  Return -2 if
69317         a child process is spun off.
69318         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69319         Adjust signature to match code.
69320         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69321         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69322         all users changed.
69323         * lib/savewd.c, lib/savewd.h: New files.
69324
69325 2006-09-15  Jim Meyering  <jim@meyering.net>
69326
69327         * modules/rename-dest-slash: New module.
69328         * MODULES.html.sh (posix_compat): Add it here.
69329
69330         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69331
69332 2006-09-15  Jim Meyering  <jim@meyering.net>
69333
69334         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69335         file.
69336
69337         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69338
69339 2006-09-15  Jim Meyering  <jim@meyering.net>
69340
69341         * lib/rename-dest-slash.c (has_trailing_slash): Use
69342         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69343         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69344         test before testing whether SRC is a directory.
69345         Suggestions from Bruno Haible.
69346
69347         Avoid a warning about an unused variable.
69348         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69349         into the #ifdef block where it's used.
69350
69351         * lib/rename-dest-slash.c: New file.
69352
69353 2006-09-14  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/allocsa.c: Include <config.h> unconditionally.
69356         * lib/asnprintf.c: Likewise.
69357         * lib/asprintf.c: Likewise.
69358         * lib/c-strcasecmp.c: Likewise.
69359         * lib/c-strcasestr.c: Likewise.
69360         * lib/c-strncasecmp.c: Likewise.
69361         * lib/c-strstr.c: Likewise.
69362         * lib/classpath.c: Likewise.
69363         * lib/clean-temp.c: Likewise.
69364         * lib/concatpath.c: Likewise.
69365         * lib/copy-file.c: Likewise.
69366         * lib/csharpcomp.c: Likewise.
69367         * lib/csharpexec.c: Likewise.
69368         * lib/execute.c: Likewise.
69369         * lib/fatal-signal.c: Likewise.
69370         * lib/findprog.c: Likewise.
69371         * lib/fwriteerror.c: Likewise.
69372         * lib/gl_array_list.c: Likewise.
69373         * lib/gl_array_oset.c: Likewise.
69374         * lib/gl_avltree_list.c: Likewise.
69375         * lib/gl_avltree_oset.c: Likewise.
69376         * lib/gl_avltreehash_list.c: Likewise.
69377         * lib/gl_carray_list.c: Likewise.
69378         * lib/gl_linked_list.c: Likewise.
69379         * lib/gl_linkedhash_list.c: Likewise.
69380         * lib/gl_list.c: Likewise.
69381         * lib/gl_oset.c: Likewise.
69382         * lib/gl_rbtree_list.c: Likewise.
69383         * lib/gl_rbtree_oset.c: Likewise.
69384         * lib/gl_rbtreehash_list.c: Likewise.
69385         * lib/imaxabs.c: Likewise.
69386         * lib/imaxdiv.c: Likewise.
69387         * lib/javacomp.c: Likewise.
69388         * lib/javaexec.c: Likewise.
69389         * lib/javaversion.c: Likewise.
69390         * lib/linebreak.c: Likewise.
69391         * lib/localcharset.c: Likewise.
69392         * lib/lock.c: Likewise.
69393         * lib/mbchar.c: Likewise.
69394         * lib/mbswidth.c: Likewise.
69395         * lib/mkdtemp.c: Likewise.
69396         * lib/pipe.c: Likewise.
69397         * lib/printf-args.c: Likewise.
69398         * lib/printf-parse.c: Likewise.
69399         * lib/progname.c: Likewise.
69400         * lib/progreloc.c: Likewise.
69401         * lib/readlink.c: Likewise.
69402         * lib/sh-quote.c: Likewise.
69403         * lib/stpcpy.c: Likewise.
69404         * lib/stpncpy.c: Likewise.
69405         * lib/strcasecmp.c: Likewise.
69406         * lib/strcasestr.c: Likewise.
69407         * lib/strcspn.c: Likewise.
69408         * lib/striconv.c: Likewise.
69409         * lib/strncasecmp.c: Likewise.
69410         * lib/strnlen1.c: Likewise.
69411         * lib/strstr.c: Likewise.
69412         * lib/strtok_r.c: Likewise.
69413         * lib/tls.c: Likewise.
69414         * lib/tmpdir.c: Likewise.
69415         * lib/unicodeio.c: Likewise.
69416         * lib/unsetenv.c: Likewise.
69417         * lib/vasnprintf.c: Likewise.
69418         * lib/vasprintf.c: Likewise.
69419         * lib/wait-process.c: Likewise.
69420         * lib/xallocsa.c: Likewise.
69421         * lib/xsetenv.c: Likewise.
69422         * lib/xstriconv.c: Likewise.
69423
69424 2006-09-13  Simon Josefsson  <jas@extundo.com>
69425
69426         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69427         that internally, suggested by Ralf Wildenhues
69428         <Ralf.Wildenhues@gmx.de>.
69429
69430 2006-09-13  Simon Josefsson  <jas@extundo.com>
69431
69432         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69433         @LIBOBJS@.
69434         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69435
69436 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69439         longer worry about uses that don't define HAVE_CONFIG_H.
69440         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69441         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69442         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69443         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69444         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69445         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69446         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69447         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69448         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69449         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69450         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69451         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69452         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69453         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69454         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69455         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69456         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69457         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69458         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69459         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69460         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69461         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69462         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69463         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69464         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69465         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69466         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69467         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69468         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69469         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69470         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69471         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69472         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69473         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69474         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69475         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69476         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69477         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69478         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69479         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69480         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69481         Likewise.
69482
69483 2006-09-13  Eric Blake  <ebb9@byu.net>
69484
69485         * lib/getopt.c: Fix typo in last commit.
69486
69487 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69488
69489         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69490         dgettext.
69491
69492 2006-09-12  Jim Meyering  <jim@meyering.net>
69493
69494         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69495         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69496         Reported by Nelson H. F. Beebe.
69497
69498 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69499
69500         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69501         program_invocation_name and program_invocation_short_name are
69502         initialized.
69503         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69504         and program_invocation_short_name to argp.h, so they are visible
69505         to user programs.
69506         * lib/argp.h: Likewise
69507
69508 2006-09-10  Bruno Haible  <bruno@clisp.org>
69509
69510         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69511         m4/inttypes_h.m4, m4/uintmax_t.m4.
69512
69513 2006-09-10  Bruno Haible  <bruno@clisp.org>
69514
69515         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69516         gl_AC_TYPE_UINTMAX_T.
69517
69518 2006-09-10  Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69521
69522 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69523
69524         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69525         convention.  Text proposed by Bruno Haible.
69526         (struct argp_option): Document the use of N_() wrappers.
69527
69528         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69529         '\v', and translate the two parts separately, instead of feeding
69530         the whole string to gettext.  This allows to exclude
69531         '\v' from the strings visible to the translator by writing doc
69532         strings as N_("..") "\v" N_("..").
69533
69534 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * config/srclist.txt: Undo latest change; the bug was fixed.
69537
69538 2006-09-09  Bruno Haible  <bruno@clisp.org>
69539
69540         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69541         assignments if building a library without libtool.
69542         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69543         in func_emit_lib_Makefile_am.
69544         (func_import): When building a static library libfoo.a, arrange to
69545         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69546         (func_create_testdir): Likewise.
69547         * modules/gc (configure.ac, Makefile.am): If building statically,
69548         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69549         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69550         * modules/striconv (configure.ac, Makefile.am): Likewise.
69551         Based on a suggestion by Ralf Wildenhues.
69552
69553 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69556         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69557         Also:
69558
69559         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69560         Add year_2050_test to catch glibc bug 2821
69561         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69562
69563         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69564         Prefer #ifdef to #if.
69565
69566         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69567         Return from 'main' instead of calling 'exit'.
69568
69569 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69572         returned the maximum time_t value rather than (time_t) -1.
69573         Problem originally reported by William Bardwell
69574         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69575
69576         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69577         Moved to here ...
69578         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69579         ... from here.
69580
69581 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69584         2821 is fixed.
69585
69586 2006-09-08  Jim Meyering  <jim@meyering.net>
69587
69588         Don't make generated files read-only.  That would bother too many
69589         people.  However, do retain the ability to work when targets are
69590         read-only: remove the destination and temporary files before writing
69591         them (when generated via sed or echo), or by using the -f option for
69592         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69593         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69594         * modules/byteswap, modules/configmake, modules/fcntl:
69595         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69596         * modules/localcharset, modules/netinet_in, modules/poll:
69597         * modules/stdbool, modules/stdint, modules/sys_select:
69598         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69599
69600 2006-09-08  Jim Meyering  <jim@meyering.net>
69601
69602         Avoid new build failure on FreeBSD 6.0.
69603         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69604         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69605         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69606
69607 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69608
69609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69610
69611 2006-09-07  Jim Meyering  <jim@meyering.net>
69612
69613         Fix global typo in last change: use chmod u-w, not chmod u-x.
69614         Spotted by Paul Eggert and Bruce Korb.
69615         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69616         * modules/byteswap, modules/configmake, modules/fcntl:
69617         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69618         * modules/localcharset, modules/netinet_in, modules/poll:
69619         * modules/stdbool, modules/stdint, modules/sys_select:
69620         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69621
69622 2006-09-06  Jim Meyering  <jim@meyering.net>
69623
69624         Make generated files be read-only.
69625         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69626         Ensure that each generated file is now read-only.
69627         * modules/argz: Likewise.
69628         * modules/arpa_inet: Likewise.
69629         * modules/byteswap: Likewise.
69630         * modules/configmake: Likewise.
69631         * modules/fcntl: Likewise.
69632         * modules/fnmatch: Likewise.
69633         * modules/getopt: Likewise.
69634         * modules/glob: Likewise.
69635         * modules/inttypes: Likewise.
69636         * modules/netinet_in: Likewise.
69637         * modules/poll: Likewise.
69638         * modules/stdbool: Likewise.
69639         * modules/stdint: Likewise.
69640         * modules/sys_select: Likewise.
69641         * modules/sys_socket: Likewise.
69642         * modules/sys_stat: Likewise.
69643         * modules/sysexits: Likewise.
69644         * modules/localcharset: Same as above, but continue using temporary
69645         file named "t-$@" (why different?) rather than the "$@-t" used
69646         everywhere else.
69647
69648         * modules/sysexits (Makefile.am): Replace literal occurrences
69649         of "sysexit.h" more readable, and more consistent, "$@".
69650
69651 2006-09-06  Bruno Haible  <bruno@clisp.org>
69652
69653         * modules/striconv: New file.
69654         * modules/xstriconv: New file.
69655         * MODULES.html.sh (Internationalization functions): Add striconv,
69656         xstriconv.
69657
69658 2006-09-06  Bruno Haible  <bruno@clisp.org>
69659
69660         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69661         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69662         not using libtool correctly.
69663
69664 2006-09-06  Bruno Haible  <bruno@clisp.org>
69665
69666         * lib/striconv.h: New file.
69667         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69668         iconvstring.c.
69669         * lib/xstriconv.h: New file.
69670         * lib/xstriconv.c: New file.
69671
69672 2006-09-06  Bruno Haible  <bruno@clisp.org>
69673
69674         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69675         lib_..._LDFLAGS.
69676
69677 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69678
69679         * lib/argz_.h: Sync from Libtool.
69680
69681         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69682                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69683
69684         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69685
69686 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69687
69688         * modules/trim: New file.
69689
69690 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69691
69692         * lib/trim.h: New file.
69693         * lib/trim.c: New file.
69694
69695 2006-09-05  Bruno Haible  <bruno@clisp.org>
69696
69697         * MODULES.html.sh (String handling): Add trim.
69698
69699 2006-09-04  Karl Berry  <karl@gnu.org>
69700
69701         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69702         until next release.
69703
69704 2006-09-03  Bruno Haible  <bruno@clisp.org>
69705
69706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69707         correctly.
69708
69709 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69712         not gl_GETLOADAVG.  Omit unneeded semicolons.
69713         Problems reported by Ralf Wildenhues in
69714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69715         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69716         at the end, which is the usual gnulib style.
69717
69718         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69719         of doing all the work ourselves.
69720         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69721         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69722
69723 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69726         Problem reported by Ralf Wildenhues in
69727         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69728
69729         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69730         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69731
69732 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69735         yesterday's patch by changing test -n to test -z.
69736
69737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69738
69739         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69740         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69741         the former is now obsolescent.
69742
69743         * modules/chdir-long (Depends-on): Add fcntl.
69744
69745 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69748         obsolescent, and programs should use gnulib instead.
69749         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69750         but with prefixes changed.
69751
69752 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69755         or stdbool.h, because they might not exist while configuring.
69756
69757         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69758         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69759         does that for us.
69760         (O_DIRECTORY): Remove.
69761
69762 2006-08-31  Eric Blake  <ebb9@byu.net>
69763
69764         * gnulib-tool: Don't let emacs change spaces to TAB.
69765
69766 2006-08-31  Bruno Haible  <bruno@clisp.org>
69767
69768         * gnulib-tool: When calling func_import more than once, do it in a
69769         subshell.
69770         Reported by Eric Blake <ebb9@byu.net>.
69771
69772 2006-08-31  Bruno Haible  <bruno@clisp.org>
69773
69774         * gnulib-tool (nl): Remove variable.
69775         (sed_transform_lib_file): Use more robust test for config-h module.
69776         (func_import): Fix typo in 2006-08-25 patch.
69777
69778 2006-08-31  Bruno Haible  <bruno@clisp.org>
69779
69780         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69781         specified, augment Makefile.am variables instead of assigning them.
69782
69783 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         Work around a bug in both the Linux and SunOS 64-bit kernels:
69786         nanosleep mishandles sleeps for longer than 2**31 seconds.
69787         Problem reported by Frank v Waveren in
69788         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69790         Check for nanosleep bug.
69791         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69792
69793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         Work around a bug in both the Linux and SunOS 64-bit kernels:
69796         nanosleep mishandles sleeps for longer than 2**31 seconds.
69797         Problem reported by Frank v Waveren in
69798         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69799         * lib/nanosleep.c (BILLION): New constant.
69800         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69801         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69802         implementation.
69803
69804 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * modules/nanosleep (Depends-on): Add gettime.
69807
69808 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69809         and Simon Josefsson  <jas@extundo.com>
69810         and Oskar Liljeblad  <oskar@osk.mine.nu>
69811
69812         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69813         * gnulib-tool (func_import): New license type 'unmodifiable license
69814         text'.
69815         * modules/fdl: Use it.  Longer description.
69816         * module/gpl, module/lgpl: New files.
69817
69818 2006-08-30  Jim Meyering  <jim@meyering.net>
69819
69820         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69821         shadowing the parameter.
69822
69823 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69824
69825         Sync from Libtool:
69826
69827         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69828
69829         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69830         sharing with gnulib.  Report by Eric Blake.
69831
69832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * modules/isapipe: New file.
69835         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69836
69837 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * modules/configmake (Makefile.am): Add a comment, and omit
69840         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69841         by Bruno Haible.
69842
69843 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * m4/isapipe.m4: New file.
69846
69847 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * lib/isapipe.c, lib/isapipe.h: New files.
69850
69851 2006-08-29  Jim Meyering  <jim@meyering.net>
69852
69853         * modules/configmake (Makefile.am): Make configmake.h depend on
69854         Makefile.  Otherwise, a stale configmake.h could hang around.
69855
69856 2006-08-29  Eric Blake  <ebb9@byu.net>
69857
69858         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69859         resolution of upstream bug 3044.
69860
69861 2006-08-29  Bruno Haible  <bruno@clisp.org>
69862
69863         * modules/localcharset (Depends-on): Add configmake.
69864         (Makefile.am): Remove setting of LIBDIR through DEFS.
69865
69866 2006-08-29  Bruno Haible  <bruno@clisp.org>
69867
69868         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69869         defined.
69870
69871 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * modules/fcntl: New file.
69874         * modules/chdir-safer (Depends-on): Add fcntl.
69875         * modules/fts: Likewise.
69876         * modules/mkdir-p: Likewise.
69877
69878         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69879         This undoes the most recent change, since we're now addressing the
69880         problem in a different way.
69881
69882         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69883         into output, since the output might be called Makefile.am even
69884         if $makefile_name is something different.
69885         (func_import): Use $makefile_am rather than
69886         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69887         empty.
69888
69889         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69890
69891 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69894         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69895         recent change to stdint.m4, since we're now addressing the problem in a
69896         different way.
69897
69898 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69899
69900         * m4/fcntl_h.m4: New file.
69901
69902 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * lib/fcntl_.h: New file.
69905         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69906         the fcntl module.
69907         * lib/dirchownmod.c: Likewise.
69908         * lib/fts.c: Likewise.
69909
69910         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69911         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69912         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69913         just before including <inttypes.h>, to avoid circular inclusion.
69914
69915 2006-08-28  Jim Meyering  <jim@meyering.net>
69916
69917         * doc/visibility.texi: Actually read and correct the grammar of the
69918         sentence affected by yesterday's change.
69919
69920 2006-08-28  Eric Blake  <ebb9@byu.net>
69921
69922         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69923         needs wrapper.
69924
69925 2006-08-28  Eric Blake  <ebb9@byu.net>
69926
69927         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69928
69929 2006-08-28  Eric Blake  <ebb9@byu.net>
69930
69931         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69932
69933 2006-08-28  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/c-strstr: New file, from GNU gettext.
69936         * MODULES.html.sh (String handling): Add c-strstr.
69937
69938 2006-08-28  Bruno Haible  <bruno@clisp.org>
69939
69940         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69941         macros.
69942         Reported by Eric Blake.
69943
69944 2006-08-28  Bruno Haible  <bruno@clisp.org>
69945
69946         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69947         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69948         * lib/vasprintf.c: Include errno.h, limits.h.
69949         (EOVERFLOW): New fallback definition.
69950         (vasprintf): Test here whether the string length is > INT_MAX.
69951         * lib/vsnprintf.c: Include errno.h, limits.h.
69952         (EOVERFLOW): New fallback definition.
69953         (vsnprintf): Fix bug when generated string was too long for the buffer.
69954         Test here whether the string length is > INT_MAX.
69955
69956 2006-08-28  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/inttypes_.h (SCNX*): Remove definitions.
69959         Reported by Eric Blake.
69960
69961 2006-08-28  Bruno Haible  <bruno@clisp.org>
69962
69963         * lib/c-strstr.h: New file, from GNU gettext.
69964         * lib/c-strstr.c: New file, from GNU gettext.
69965
69966 2006-08-28  Bruno Haible  <bruno@clisp.org>
69967
69968         * gnulib-tool: Reorder some statements.
69969
69970 2006-08-28  Bruno Haible  <bruno@clisp.org>
69971
69972         * gnulib-tool: New option --makefile-name.
69973         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69974         $makefile_name.
69975         (func_import): Write $makefile_name to the cache file, and read it from
69976         there unless explicitly specified. Use $makefile_name as file name
69977         instead of Makefile.am. Adjust the recommendations accordingly.
69978
69979 2006-08-28  Bruno Haible  <bruno@clisp.org>
69980
69981         * gnulib-tool (func_verify_module): Check against misapplying patch.
69982
69983 2006-08-28  Bruno Haible  <bruno@clisp.org>
69984
69985         * gnulib-tool (func_relativize, func_relconcat): New functions.
69986         Give an error if --local-dir is given with --update.
69987         Remove trailing slashes from $local_gnulib_dir.
69988         (func_import): Store the relativized $local_gnulib_dir in
69989         gnulib-cache.m4, and read it from there if not specified explicitly.
69990
69991 2006-08-28  Bruno Haible  <bruno@clisp.org>
69992
69993         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69994         is the current directory. Respect also $local_gnulib_dir.
69995
69996 2006-08-28  Bruno Haible  <bruno@clisp.org>
69997             Simon Josefsson  <jas@extundo.com>
69998
69999         BeOS portability.
70000         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70001
70002 2006-08-27  Jim Meyering  <jim@meyering.net>
70003
70004         * doc/visibility.texi: Remove duplicate word: "pointer".
70005
70006 2006-08-26  Bruno Haible  <bruno@clisp.org>
70007
70008         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70009         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70010         (Makefile.am): Create inttypes.h from inttypes_.h.
70011         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70012
70013         * modules/imaxabs: New file.
70014
70015         * modules/imaxdiv: New file.
70016
70017 2006-08-26  Bruno Haible  <bruno@clisp.org>
70018
70019         * m4/inttypes.m4: New file.
70020         * m4/_inttypes_h.m4: Remove file.
70021         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70022         PRI_MACROS_BROKEN.
70023         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70024
70025         * m4/imaxabs.m4: New file.
70026
70027         * m4/imaxdiv.m4: New file.
70028
70029 2006-08-26  Bruno Haible  <bruno@clisp.org>
70030
70031         * lib/inttypes_.h: New file.
70032         * lib/inttypes.h: Remove file.
70033         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70034
70035         * lib/imaxabs.c: New file.
70036
70037         * lib/imaxdiv.c: New file.
70038
70039 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         New config-h module, so that "make" output needn't be cluttered
70042         by -DHAVE_CONFIG_H.
70043         * MODULES.html.sh (Support for building libraries and executables):
70044         Add config-h.
70045         * modules/config-h: New file.
70046         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70047         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70048         the config-h module is used.
70049
70050         New configmake module, so that "make" output needn't be cluttered
70051         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70052         * MODULES.html.sh (Support for building libraries and executables):
70053         Add configmake.
70054         * modules/configmake: New file.
70055
70056 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * m4/config-h.m4: New file.
70059
70060 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * config/srclist.txt: Add elisp-comp.
70063
70064 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         * MODULES.html.sh (Support for building libraries and executables):
70067         Add elisp-comp.
70068         * build-aux/elisp-comp: New file.
70069         * modules/elisp-comp: New file.
70070
70071 2006-08-24  Bruno Haible  <bruno@clisp.org>
70072
70073         * gnulib-tool (func_create_testdir): Use non-default values of
70074         sourcebase and m4base.
70075
70076 2006-08-24  Bruno Haible  <bruno@clisp.org>
70077
70078         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70079         HTML structure.
70080
70081 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70082
70083         * modules/openat (Depends-on): Add lchown.
70084
70085 2006-08-23  Bruno Haible  <bruno@clisp.org>
70086
70087         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70088         of gl_LOCK_EARLY instead of gl_LOCK.
70089
70090 2006-08-23  Bruno Haible  <bruno@clisp.org>
70091
70092         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70093         on OSF/1 to no.
70094         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70095
70096 2006-08-23  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70099         as unusable.
70100
70101         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70102         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70103         (gl_LOCK): New macro.
70104
70105 2006-08-22  Simon Josefsson  <jas@extundo.com>
70106
70107         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70108         to md5 module.
70109
70110 2006-08-22  Simon Josefsson  <jas@extundo.com>
70111
70112         * MODULES.html.sh: Add "Support for maintaining and release
70113         projects".
70114
70115         * build-aux/gnupload: New file, from coreutils.
70116
70117 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         Avoid the need for AC_LIBSOURCES in m4 macros.
70120         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70121         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70122         * modules/check-version (EXTRA_DIST): Add check-version.h.
70123         * modules/crc (EXTRA_DIST): Add crc.h.
70124         * modules/des (EXTRA_DIST): Add des.h.
70125         * modules/gc (EXTRA_DIST): Add gc.h.
70126         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70127         * modules/getline (EXTRA_DIST): Add getline.h.
70128         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70129         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70130         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70131         * modules/md2 (EXTRA_DIST): Add md2.h.
70132         * modules/md4 (EXTRA_DIST): Add md4.h.
70133         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70134         * modules/read-file (EXTRA_DIST): Add read-file.h.
70135         * modules/readline (EXTRA_DIST): Add readline.h.
70136         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70137         rijndael-api-fst.h.
70138
70139 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * m4/rijndael.m4 (gl_ARCFOUR):
70142         * m4/arctwo.m4 (gl_ARCTWO):
70143         * m4/check-version.m4 (gl_CHECK_VERSION):
70144         * m4/crc.m4 (gl_CRC):
70145         * m4/des.m4 (gl_DES):
70146         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70147         * m4/gc.m4 (gl_GC):
70148         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70149         * m4/getline.m4 (gl_FUNC_GETLINE):
70150         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70151         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70152         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70153         * m4/md2.m4 (gl_MD2):
70154         * m4/md4.m4 (gl_MD4):
70155         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70156         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70157         * m4/readline.m4 (gl_FUNC_READLINE):
70158         * m4/rijndael.m4 (gl_RIJNDAEL):
70159         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70160         to get the necessary .h files and whatnot.
70161
70162 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70163
70164         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70165         gnulib rather than the other way around.
70166         * config/srclistvars.sh (COREUTILS): Remove.
70167
70168 2006-08-22  Jim Meyering  <jim@meyering.net>
70169
70170         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70171
70172         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70173
70174 2006-08-22  Eric Blake  <ebb9@byu.net>
70175
70176         * modules/regexprops-generic: New file.
70177         * MODULES.html.sh (Support for building documentation): List it.
70178
70179 2006-08-22  Eric Blake  <ebb9@byu.net>
70180
70181         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70182         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70184         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70185
70186 2006-08-22  Bruno Haible  <bruno@clisp.org>
70187
70188         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70189         and lib_LTLIBRARIES like the other lib_* variables.
70190
70191 2006-08-22  Bruno Haible  <bruno@clisp.org>
70192
70193         * build-aux/x-to-1.in: New file, from GNU gettext.
70194
70195 2006-08-22  Bruno Haible  <bruno@clisp.org>
70196
70197         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70198         <utmpx.h> exists.
70199
70200 2006-08-22  Bruno Haible  <bruno@clisp.org>
70201
70202         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70203         <utmpx.h> exists.
70204
70205 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         BeOS portability.
70208         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70209         exist.
70210         Problem reported by Bruno Haible.
70211
70212 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         Avoid the need for AC_LIBSOURCES in m4 macros.
70215         * modules/acl (EXTRA_DIST): Add acl.h.
70216         * modules/argmatch (Files): Add m4/argmatch.m4.
70217         (configure.ac): Add gl_ARGMATCH.
70218         (EXTRA_DIST): Renamed from lib_SOURCES, for
70219         consistency with the other modules.  Remove argmatch.c.
70220         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70221         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70222         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70223         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70224         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70225         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70226         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70227         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70228         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70229         * modules/closeout (EXTRA_DIST): Add closeout.h.
70230         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70231         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70232         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70233         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70234         dirname.h; remove basename.c and stripslash.c.
70235         * modules/exclude (EXTRA_DIST): Add exclude.h.
70236         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70237         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70238         * modules/file-type (EXTRA_DIST): Add file-type.h.
70239         * modules/filemode (EXTRA_DIST): Add filemode.h.
70240         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70241         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70242         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70243         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70244         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70245         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70246         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70247         * modules/getdate (EXTRA_DIST): Add getdate.c.
70248         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70249         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70250         * modules/getpass (EXTRA_DIST): Add getpass.h.
70251         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70252         * modules/group-member (EXTRA_DIST): Add group-member.h.
70253         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70254         * modules/hash (EXTRA_DIST): Add hash.h.
70255         * modules/human (EXTRA_DIST): Add human.h.
70256         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70257         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70258         * modules/lchown (EXTRA_DIST): Add lchown.h.
70259         * modules/long-options (EXTRA_DIST): Add long-options.h.
70260         * modules/lstat (EXTRA_DIST): Add lstat.h.
70261         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70262         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70263         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70264         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70265         * modules/memxor (EXTRA_DIST): Add memxor.h.
70266         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70267         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70268         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70269         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70270         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70271         * modules/physmem (EXTRA_DIST): Add physmem.h.
70272         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70273         * modules/posixver (EXTRA_DIST): Add posixver.h.
70274         * modules/quote (EXTRA_DIST): Add quote.h.
70275         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70276         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70277         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70278         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70279         regex_internal.h regexec.c.
70280         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70281         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70282         * modules/same (EXTRA_DIST): Add same.h.
70283         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70284         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70285         * modules/savedir (EXTRA_DIST): Add savedir.h.
70286         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70287         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70288         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70289         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70290         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70291         * modules/strdup (EXTRA_DIST): Add strdup.h.
70292         * modules/strftime (EXTRA_DIST): Add strftime.h.
70293         * modules/strndup (EXTRA_DIST): Add strndup.h.
70294         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70295         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70296         * modules/time_r (EXTRA_DIST): Add time_r.h.
70297         * modules/timespec (EXTRA_DIST): Add timespec.h.
70298         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70299         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70300         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70301         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70302         * modules/userspec (EXTRA_DIST): Add userspec.h.
70303         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70304         * modules/utimens (EXTRA_DIST): Add utimens.h.
70305         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70306         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70307         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70308         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70309         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70310         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70311         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70312         * modules/yesno (EXTRA_DIST): Add yesno.h.
70313
70314 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70317
70318         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70319         * m4/dev-ino.m4, same-inode.m4: Remove.
70320
70321         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70322         * m4/acl.m4 (AC_FUNC_ACL):
70323         * m4/backupfile.m4 (gl_BACKUPFILE):
70324         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70325         * m4/canon-host.m4 (gl_CANON_HOST):
70326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70328         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70329         * m4/cloexec.m4 (gl_CLOEXEC):
70330         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70331         * m4/closeout.m4 (gl_CLOSEOUT):
70332         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70333         * m4/dirname.m4 (gl_DIRNAME):
70334         * m4/exclude.m4 (gl_EXCLUDE):
70335         * m4/exitfail.m4 (gl_EXITFAIL):
70336         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70337         * m4/file-type.m4 (gl_FILE_TYPE):
70338         * m4/filemode.m4 (gl_FILEMODE):
70339         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70340         * m4/fpending.m4 (gl_FUNC_FPENDING):
70341         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70342         * m4/fts.m4 (gl_FUNC_FTS):
70343         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70344         * m4/getdate.m4 (gl_GETDATE):
70345         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70346         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70347         * m4/getpass.m4 (gl_FUNC_GETPASS):
70348         * m4/gettime.m4 (gl_GETTIME):
70349         * m4/getugroups.m4 (gl_GETUGROUPS):
70350         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70351         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70352         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70353         * m4/hash.m4 (gl_HASH):
70354         * m4/idcache.m4 (gl_IDCACHE):
70355         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70356         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70357         * m4/long-options.m4 (gl_LONG_OPTIONS):
70358         * m4/lstat.m4 (gl_FUNC_LSTAT):
70359         * m4/md5.m4 (gl_MD5):
70360         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70361         * m4/memcoll.m4 (gl_MEMCOLL):
70362         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70363         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70364         * m4/memxor.m4 (gl_MEMXOR):
70365         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70367         * m4/modechange.m4 (gl_MODECHANGE):
70368         * m4/mountlist.m4 (gl_MOUNTLIST):
70369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70370         * m4/openat.m4 (gl_FUNC_OPENAT):
70371         * m4/pathmax.m4 (gl_PATHMAX):
70372         * m4/physmem.m4 (gl_PHYSMEM):
70373         * m4/posixtm.m4 (gl_POSIXTM):
70374         * m4/posixver.m4 (gl_POSIXVER):
70375         * m4/quote.m4 (gl_QUOTE):
70376         * m4/quotearg.m4 (gl_QUOTEARG):
70377         * m4/readtokens.m4 (gl_READTOKENS):
70378         * m4/readutmp.m4 (gl_READUTMP):
70379         * m4/regex.m4 (gl_REGEX):
70380         * m4/safe-read.m4 (gl_SAFE_READ):
70381         * m4/safe-write.m4 (gl_SAFE_WRITE):
70382         * m4/same.m4 (gl_SAME):
70383         * m4/save-cwd.m4 (gl_SAVE_CWD):
70384         * m4/savedir.m4 (gl_SAVEDIR):
70385         * m4/settime.m4 (gl_SETTIME):
70386         * m4/sha1.m4 (gl_SHA1):
70387         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70388         * m4/stat-macros.m4 (gl_STAT_MACROS):
70389         * m4/stat-time.m4 (gl_STAT_TIME):
70390         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70391         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70392         * m4/strdup.m4 (gl_FUNC_STRDUP):
70393         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70394         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70395         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70396         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70397         * m4/time_r.m4 (gl_TIME_R):
70398         * m4/timespec.m4 (gl_TIMESPEC):
70399         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70400         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70401         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70402         * m4/userspec.m4 (gl_USERSPEC):
70403         * m4/utimecmp.m4 (gl_UTIMECMP):
70404         * m4/utimens.m4 (gl_UTIMENS):
70405         * m4/xalloc.m4 (gl_XALLOC):
70406         * m4/xgetcwd.m4 (gl_XGETCWD):
70407         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70408         * m4/xreadlink.m4 (gl_XREADLINK):
70409         * m4/xstrtod.m4 (gl_XSTRTOD):
70410         * m4/yesno.m4 (gl_YESNO):
70411         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70412         to get the necessary .h files and whatnot.
70413
70414 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70415             Bruno Haible  <bruno@clisp.org>
70416
70417         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70418         /bin/sh understanding of '!' conditional negation.
70419
70420 2006-08-21  Jim Meyering  <jim@meyering.net>
70421
70422         * modules/openat (Depends-on): Really alphabetize.
70423
70424         * modules/acl (Depends-on): Add error and quote.
70425
70426         * check-module (find_included_lib_files): Add at-func.c to the
70427         ok-to-include-more-than-once white list.
70428
70429         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70430
70431 2006-08-21  Bruno Haible  <bruno@clisp.org>
70432
70433         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70434         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70435         Reported by Martin Lambers <marlam@marlam.de>.
70436
70437 2006-08-21  Bruno Haible  <bruno@clisp.org>
70438
70439         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70440         specify an installation location, don't emit a noinst_LIBRARIES or
70441         noinst_LTLIBRARIES assignment.
70442
70443 2006-08-21  Bruno Haible  <bruno@clisp.org>
70444
70445         BeOS portability.
70446         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70447         BeOS has mbrtowc() but no <wctype.h>.
70448
70449 2006-08-21  Bruno Haible  <bruno@clisp.org>
70450
70451         BeOS portability.
70452         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70453         exist.
70454
70455 2006-08-21  Bruno Haible  <bruno@clisp.org>
70456
70457         BeOS portability.
70458         * lib/mbchar.h: Include <wctype.h> only if it exists.
70459
70460 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70461
70462         Remove files that are no longer needed by their respective modules.
70463         * m4/obstack.m4: Remove.
70464         * m4/strerror_r.m4: Remove.
70465         * m4/uint32_t.m4: Remove.
70466         * m4/uintptr_t.m4: Remove.
70467         * m4/ullong_max.m4: Remove.
70468         * m4/xstrtoimax.m4: Remove.
70469         * m4/xstrtoumax.m4: Remove.
70470
70471         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70472         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70473         dependencies now capture this.
70474
70475         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70476         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70477         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70478         * m4/human.m4 (gl_HUMAN): Likewise.
70479         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70480         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70481
70482         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70483
70484         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70485         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70486         stdint.
70487         * m4/human.m4 (gl_HUMAN): Likewise.
70488         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70489         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70490         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70491         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70492         * m4/xstrtol (gl_XSTRTOL): Likewise.
70493
70494         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70495         AC_TYPE_LONG_LONG_INT.
70496         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70497         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70498         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70499         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70500
70501         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70502         on stdbool.
70503
70504         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70505         (gl_PREREQ_XSTRTOUL): Remove.
70506
70507         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70508
70509         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70510         mode.
70511
70512 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         Add and change modules to make it easier for coreutils to use
70515         gnulib-tool.
70516         * modules/backupfile (Files): Remove m4/d-ino.m4.
70517         (Depends-on): Add d-ino.
70518         * modules/cycle-check (Depends-on): Add stdint.
70519         (lib_SOURCES): Add cycle-check.h.
70520         * modules/d-ino: New module.
70521         * modules/d-type: New module.
70522         * modules/error (Files): Remove m4/strerror_r.m4.
70523         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70524         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70525         m4/inttypes_h.m4, m4/uintmax_t.m4.
70526         (Depends-on): Add stdint.
70527         (lib_SOURCES): Add fsusage.h.
70528         * modules/getcwd (Files): Remove d-ino.m4.
70529         (Depends-on): Add d-ino.
70530         * modules/getndelim2 (Depends-on): Add stdint.
70531         * modules/glob (Files): Remove m4/d-type.m4.
70532         (Depends-on): Add d-type.
70533         * modules/host-os: New module.
70534         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70535         m4/inttypes_h.m4, m4/uintmax_t.m4.
70536         * Depends-on: Add stdint.
70537         (lib_SOURCES): Add human.h.
70538         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70539         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70540         m4/uintmax_t.m4, m4/ulonglong.m4.
70541         (Depends-on): Add stdint.
70542         (EXTRA_DIST): Add inttostr.h.
70543         * modules/lchmod: New module.
70544         * modules/link-follow: New module.
70545         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70546         (Depends-on): Add lchmod.
70547         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70548         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70549         (Depends-on): Add stdint.
70550         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70551         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70552         (Depends-on): Add stdint.
70553         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70554         * modules/perl: New module.
70555         * modules/regex (Depends-on): Add stdint.
70556         * modules/rmdir-errno: New module.
70557         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70558         m4/intmax_t.m4.
70559         (Depends-on): Add stdint.
70560         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70561         m4/uintmax_t.m4.
70562         (Depends-on): Add stdint.
70563         * modules/unlink-busy: New module.
70564         * modules/utimecmp (Depends-on): Add stdint.
70565         * modules/uptime: New module.
70566         * modules/winsz-ioctl: New module.
70567         * modules/winsz-termios: New module.
70568         * modules/xnanosleep (Depends-on): Add nanosleep.
70569         * modules/ullong_max: Remove.
70570         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70571         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70572         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70573         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70574         (Depends-on): Add inttypes.
70575         (lib_SOURCES): Add xstrtol.h.
70576         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70577         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70578         * MODULES.html.sh: Move 'assert' into the assert section.
70579         Move 'dummy' into the linking section.
70580         Remove ullong_max.
70581         Add section for compatibility checks for POSIX:2001 functions,
70582         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70583         winsz-ioctl, and winsz-termios into it.
70584         Add lchmod.
70585         Add top-level Misc section and put host-os, perl, and uptime
70586         into it.
70587
70588 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70589
70590         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70591         now assume the stdint module.  Do not include inttypes.h.
70592         * lib/fsusage.h: Likewise.
70593         * lib/getndelim2.c: Likewise.
70594         * lib/human.h: Likewise.
70595         * lib/inttostr.h: Likewise.
70596         * lib/obstack.c: Likewise.
70597         * lib/regex_internal.h: Likewise.
70598         * lib/tempname.c: Likewise.
70599         * lib/utimecmp.c: Likewise.
70600         * lib/xstrtol.h: Likewise.
70601
70602         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70603
70604         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70605         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70606         * lib/xtime.h: Likewise.
70607
70608 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * modules/openat (Files): Add lib/fchmodat.c.
70611         Fixes problem reported by Jay Youngman.
70612
70613 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70616         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70617
70618 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70619             Bruno Haible  <bruno@clisp.org>
70620
70621         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70622         and is a script that invokes bison. Tighten the code. Add comments.
70623
70624 2006-08-18  Jim Meyering  <jim@meyering.net>
70625
70626         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70627         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70628         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70629         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70630
70631 2006-08-18  Bruno Haible  <bruno@clisp.org>
70632
70633         * modules/bison-i18n: New file.
70634         * MODULES.html.sh (Internationalization functions): Add it.
70635
70636 2006-08-18  Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70639         sys/statvfs.h. When getmntinfo was found, check its declaration and
70640         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70641
70642 2006-08-18  Bruno Haible  <bruno@clisp.org>
70643
70644         * m4/bison-i18n.m4: New file, from bison.
70645
70646 2006-08-18  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70649         (ME_DUMMY): Treat "kernfs" as a dummy.
70650         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70651
70652 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         Update from coreutils.
70655
70656         2006-08-15  Jim Meyering  <jim@meyering.net>
70657
70658         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70659
70660         2006-01-17  Jim Meyering  <jim@meyering.net>
70661
70662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70663
70664         2006-01-11  Jim Meyering  <jim@meyering.net>
70665
70666         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70667         Check for the lchmod function.
70668
70669 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         Update from coreutils.
70672
70673         * lib/__fpending.h: Add copyright notice.
70674         * lib/fprintftime.h: Likewise.
70675         * lib/savedir.c: Use (C) in copyright notice.
70676         * lib/savedir.h: Likewise.
70677
70678         2006-08-15  Jim Meyering  <jim@meyering.net>
70679
70680         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70681         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70682         in support of the EXPECTED_ERRNO macro.
70683         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70684         definitions.  Instead, define the appropriate symbols and include
70685         "at-func.c".
70686         * lib/mkdirat.c (mkdirat): Likewise.
70687         * lib/fchmodat.c (fchmodat): Likewise.
70688         (ENOSYS): Remove definition.
70689         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70690         it.  Don't include "unistd--.h" -- it wasn't ever used.
70691
70692         2006-01-17  Jim Meyering  <jim@meyering.net>
70693
70694         Rewrite fts.c not to change the current working directory,
70695         by using openat, fstatat, fdopendir, etc..
70696
70697         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70698         (HAVE_OPENAT_SUPPORT): Define.
70699         [_LIBC] (fchdir): Don't undef or define; no longer used.
70700         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70701         Now, this `function' always succeeds, and consumes its file descriptor
70702         parameter -- so callers must not close such FDs.  Update callers.
70703         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70704         (diropen): Add parameter, SP.  Adjust all callers.
70705         Implement using diropen_fd, rather than open.
70706         (fts_open): Initialize new member, fts_cwd_fd.
70707         Remove fts_rft-setting code.
70708         (fts_close): Close fts_cwd_fd, if necessary.
70709         (__opendir2): Define in terms of opendir or opendirat,
70710         depending on whether the FST_NOCHDIR flag is set.
70711         (fts_build): Since fts_safe_changedir consumes its FD, and since
70712         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70713         and close the dup'd file descriptor upon failure.
70714         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70715         (fts_safe_changedir): Tweak semantics to reflect that this function
70716         now calls cwd_advance_fd and hence consumes its FD argument.
70717         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70718         [struct FTS] (fts_rft): Remove now-unused member.
70719         [struct FTS] (fts_cycle.state): Improve comment.
70720
70721         * lib/openat.c (openat_needs_fchdir): New function.
70722         * lib/openat.h (openat_needs_fchdir): Declare it.
70723
70724 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70727         Problem and fix reported by Pádraig Brady in
70728         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70729
70730 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70733
70734 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70735
70736         * lib/memcoll.c (memcoll): Optimize for the common case where the
70737         arguments are bytewise equal.
70738
70739 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * doc/regexprops-generic.texi: Add a copyright notice.
70742
70743 2006-08-15  Bruno Haible  <bruno@clisp.org>
70744
70745         * modules/tmpdir (License): Change to LGPL.
70746
70747 2006-08-15  Bruno Haible  <bruno@clisp.org>
70748
70749         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70750         module.
70751
70752 2006-08-14  Simon Josefsson  <jas@extundo.com>
70753
70754         * config/srclist.txt: Add gnupload.
70755
70756 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70757
70758         Change copyright notice from LGPL 2 to GPL 2, since that's the
70759         standard form used in the gnulib repository.
70760         * tests/test-lock.c: Likewise.
70761         * tests/test-stdint.c: Likewise.
70762         * tests/test-tls.c: Likewise.
70763
70764         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70765         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70766         Add copyright notice.
70767
70768         * check-module: Add copyright notice.  Output a copyright
70769         notice if "--version" is specified.
70770         * modules/COPYING: New file.
70771         * tests/test-getaddrinfo.c: Add copyright notice.
70772         * tests/test-verify.c: Likewise.
70773
70774 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         Change copyright notice from LGPL 2 to GPL 2, since that's the
70777         standard form used in the gnulib repository.
70778         * lib/lock.c: LGPL -> GPL.
70779         * lib/lock.h: Likewise.
70780         * lib/strnlen1.c: Likewise.
70781         * lib/strnlen1.h: Likewise.
70782         * lib/tls.c: Likewise.
70783         * lib/tls.h: Likewise.
70784         * lib/tmpdir.c: Likewise.
70785
70786         * lib/TODO: Remove; this belongs only in coreutils.
70787
70788 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         Add copyright notices to long-enough files that lack them, since
70791         otherwise the files aren't clearly free.  Use the same notice that
70792         getdate.texi already uses.
70793         * doc/alloca-opt.texi: Add copyright notice.
70794         * doc/alloca.texi: Likewise.
70795         * doc/ctime.texi: Likewise.
70796         * doc/functions.texi: Likewise.
70797         * doc/gcd.texi: Likewise.
70798         * doc/gnulib-tool.texi: Likewise.
70799         * doc/inet_ntoa.texi: Likewise.
70800         * doc/visibility.texi: Likewise.
70801
70802         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70803         * doc/quote.texi: Add copyright notice.
70804
70805         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70806         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70807         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70808         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70809         is now obsolete, and give a pointer to the Sun list.
70810         Add copyright notice.
70811
70812 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * config/srclistvars.sh: Add copyright notice.
70815
70816 2006-08-14  Eric Blake  <ebb9@byu.net>
70817
70818         Import the following change from libc:
70819
70820         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70821
70822         Upstream bug 2997.
70823         * lib/misc/error.c: Add space between program name and message if file
70824         name is missing.
70825
70826 2006-08-12  Karl Berry  <karl@gnu.org>
70827
70828         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70829         remove, these originate in gnulib now.
70830
70831 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70832
70833         * doc/Makefile (standards.info standards.html standards.dvi):
70834         Also depend on make-stds.texi.
70835
70836 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70839         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70840
70841         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70842         in wchar_t.  Problem reported by Eric Blake.
70843
70844         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70845         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70846         Also, help the compiler to keep LEN in a register.
70847
70848 2006-08-11  Eric Blake  <ebb9@byu.net>
70849
70850         * users.txt: Sort.  Add tar.
70851
70852 2006-08-11  Bruno Haible  <bruno@clisp.org>
70853
70854         * users.txt: New file.
70855
70856 2006-08-11  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70859         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70860
70861 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * modules/snprintf (Depends-on): Remove minmax.
70864         (Maintainer): Add self and Bruno.
70865
70866 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70869         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70870         (EOVERFLOW): Define if the system does not.
70871         Do not include "minmax.h"; it wasn't used.
70872         (snprintf): Don't assume size_t promotes to an unsigned type.
70873         Fix bug when generated string was too long for the buffer: the
70874         buffer's contents are supposed to be the initial prefix of the
70875         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70876         exceeds INT_MAX; do the check ourselves.
70877
70878         Import the following changes from libc:
70879
70880         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70881
70882         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70883         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70884         set wc to the byte which couldn't be converted.
70885         (re_string_reconstruct): Don't clear valid_raw_len before calling
70886         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70887         tip_context using re_string_context_at.
70888
70889         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70890
70891         * lib/posix/regex.h: g++ still cannot handled [restrict].
70892
70893         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70894
70895         * lib/posix/regex.h: Remove special handling for VMS.
70896
70897 2006-08-10  Jim Meyering  <jim@meyering.net>
70898
70899         * modules/same-inode: New module.
70900         * modules/dev-ino: New module.
70901         * modules/cycle-check: Depend on these modules, rather than simply
70902         including their .h files.
70903         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70904         required via m4/cycle-check.m4.
70905         * modules/same: Depend on new same-inode module, rather than
70906         including same-inode.h.
70907         * modules/chdir-safer: New file.
70908
70909         * modules/chown (Depends-on): Add stat-macros.
70910
70911 2006-08-10  Jim Meyering  <jim@meyering.net>
70912
70913         * m4/cycle-check.m4: New file.
70914         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70915         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70916
70917 2006-08-10  Eric Blake  <ebb9@byu.net>
70918
70919         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70920         in from original proposal.
70921
70922 2006-08-10  Eric Blake  <ebb9@byu.net>
70923         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70924
70925         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70926         namespace.
70927
70928 2006-08-10  Bruno Haible  <bruno@clisp.org>
70929
70930         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70931         as well.
70932
70933 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         Sync from coreutils.
70936
70937         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70938
70939         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70940         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70941
70942 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * modules/restrict: Remove; no longer needed now that we assume
70945         Autoconf 2.59 or later.
70946         * MODULES.html.sh: Remove 'restrict'.
70947         * modules/argp (Depends-on): Remove 'restrict'.
70948         * modules/base64 (Depends-on): Likewise.
70949         * modules/gc (Depends-on): Likewise.
70950         * modules/getaddrinfo (Depends-on): Likewise.
70951         * modules/glob (Depends-on): Likewise.
70952         * modules/inet_ntop (Depends-on): Likewise.
70953         * modules/inet_pton (Depends-on): Likewise.
70954         * modules/memxor (Depends-on): Likewise.
70955         * modules/regex (Depends-on): Likewise.
70956         * modules/strtok_r (Depends-on): Likewise.
70957         * modules/time_r (Depends-on): Likewise.
70958
70959 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70962         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70963         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70964         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70965         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70966         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70967         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70968         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70969
70970         Merge from coreutils.
70971         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70972         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70973         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70974         * m4/time_r.m4 (gl_TIME_R): Likewise.
70975
70976 2006-08-09  Karl Berry  <karl@gnu.org>
70977
70978         * config/srclist.txt: no more gettext-tools, per Bruno.
70979
70980 2006-08-08  Eric Blake  <ebb9@byu.net>
70981
70982         * modules/verror: New module.
70983         * MODULES.html.sh: Document it.
70984
70985 2006-08-08  Eric Blake  <ebb9@byu.net>
70986
70987         * lib/verror.h, lib/verror.c: New files.
70988
70989 2006-08-08  Eric Blake  <ebb9@byu.net>
70990
70991         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70992         verror_at_line output complies with GNU Coding Standards even when
70993         file is NULL.
70994
70995 2006-08-07  Bruno Haible  <bruno@clisp.org>
70996
70997         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70998         versions of AIX.
70999         Reported by Ralf Wildenhues.
71000
71001 2006-08-07  Bruno Haible  <bruno@clisp.org>
71002
71003         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71004         in an AC_DEFUN. Needed so that the autoconf snippets can use
71005         AC_REQUIRE.
71006
71007 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71008
71009         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71010         Initialize pkgdata_DATA.
71011         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71012         overriding it.
71013
71014 2006-08-06  Eric Blake  <ebb9@byu.net>
71015
71016         * lib/error.h: Fold in some upstream changes from glibc.
71017         * lib/error.c: Likewise.
71018
71019 2006-08-04  Bruno Haible  <bruno@clisp.org>
71020
71021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71022         Make the mostlyclean-local rule depend on mostlyclean-generic.
71023         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71024
71025 2006-07-31  Bruno Haible  <bruno@clisp.org>
71026
71027         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71028         <stdlib.h>, <string.h>.
71029
71030 2006-07-30  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/readlink (License): Change to LGPL.
71033
71034 2006-07-30  Bruno Haible  <bruno@clisp.org>
71035
71036         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71037         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71038         set PKGDATADIR to point to it.
71039
71040 2006-07-30  Bruno Haible  <bruno@clisp.org>
71041
71042         * modules/csharpexec (configure.ac): Comment out macro invocation.
71043         * modules/javaexec (configure.ac): Likewise.
71044         * modules/javacomp-script (configure.ac): Likewise.
71045
71046         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71047
71048 2006-07-30  Bruno Haible  <bruno@clisp.org>
71049
71050         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71051         linked-list.
71052
71053 2006-07-30  Bruno Haible  <bruno@clisp.org>
71054
71055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71056
71057 2006-07-30  Bruno Haible  <bruno@clisp.org>
71058
71059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71060         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71061         get removed.
71062
71063 2006-07-29  Bruno Haible  <bruno@clisp.org>
71064
71065         Make it possible for gnulib-tool to work with locally modified or
71066         augmented gnulib repositories.
71067         * gnulib-tool (func_usage): Document --local-dir option.
71068         (local_gnulib_dir): New variable.
71069         Handle --local-dir option.
71070         (func_lookup_file): New function.
71071         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71072         (func_get_description, func_get_filelist, func_get_description,
71073         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71074         func_get_automake_snippet, func_get_include_directive,
71075         func_get_license, func_get_maintainer): Use func_lookup_file.
71076         (func_import, func_create_testdir): Use func_lookup_file.
71077
71078 2006-07-29  Bruno Haible  <bruno@clisp.org>
71079
71080         * modules/setenv (Depends-on): Add unistd.
71081
71082 2006-07-29  Bruno Haible  <bruno@clisp.org>
71083
71084         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71085
71086 2006-07-29  Bruno Haible  <bruno@clisp.org>
71087
71088         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71089
71090 2006-07-29  Bruno Haible  <bruno@clisp.org>
71091
71092         * gnulib-tool (import, update): If there is no Makefile.am, look at
71093         aclocal.m4, instead of bailing out.
71094
71095 2006-07-29  Bruno Haible  <bruno@clisp.org>
71096
71097         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71098         Categorize the options by when they are useful.
71099
71100 2006-07-29  Bruno Haible  <bruno@clisp.org>
71101
71102         * gnulib-tool (func_usage): Document option --no-libtool.
71103         Handle option --no-libtool.
71104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71105         for changed semantics of $libtool variable.
71106         (func_import): Likewise. If libtool is not used, show this through
71107         an option --no-libtool.
71108         (func_create_testdir): Update.
71109
71110 2006-07-29  Bruno Haible  <bruno@clisp.org>
71111
71112         * gnulib-tool (func_import): Extend error message about missing
71113         --doc-base.
71114
71115 2006-07-29  Bruno Haible  <bruno@clisp.org>
71116
71117         * gnulib-tool (func_import): Don't create the $docbase directory if
71118         there is no file to store there.
71119
71120 2006-07-29  Bruno Haible  <bruno@clisp.org>
71121
71122         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71123         relevant, look for configure.ac there, not in the current directory.
71124         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71125
71126 2006-07-29  Bruno Haible  <bruno@clisp.org>
71127
71128         * gnulib-tool (SORT): New variable.
71129         (func_usage): Undocument --assume-autoconf option.
71130         Remove --assume-autoconf option handling.
71131         (autoconf_minversion): Determine from the contents of configure.ac.
71132         (func_import): Remove autoconf_minversion handling.
71133         Suggested by Eric Blake.
71134
71135 2006-07-29  Bruno Haible  <bruno@clisp.org>
71136
71137         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71138
71139 2006-07-29  Bruno Haible  <bruno@clisp.org>
71140
71141         * config/srclist.txt (*setenv.[ch]): Remove rules.
71142
71143 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71144
71145         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71146
71147 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71148
71149         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71150         arpa/inet.h.
71151
71152 2006-07-28  Simon Josefsson  <jas@extundo.com>
71153
71154         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71155         * modules/inet_pton (Depends-on): Likewise.
71156
71157 2006-07-28  Simon Josefsson  <jas@extundo.com>
71158
71159         * m4/netinet_in_h.m4: New file.
71160
71161 2006-07-28  Simon Josefsson  <jas@extundo.com>
71162
71163         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71164         #include's.
71165
71166 2006-07-28  Simon Josefsson  <jas@extundo.com>
71167
71168         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71169         #include's.
71170
71171 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71174         setgid on directories only if they set these bits.
71175         * lib/modechange.h: Remove obsolete comment about masks.
71176
71177 2006-07-28  Eric Blake  <ebb9@byu.net>
71178
71179         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71180         macro expansion.
71181
71182 2006-07-28  Bruno Haible  <bruno@clisp.org>
71183
71184         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71185
71186 2006-07-28  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71189
71190 2006-07-28  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71193         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71194         Define fallbacks.
71195         Avoids link error on FreeBSD 4.x.
71196         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71197
71198         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71199         encoding.
71200         * lib/mbswidth.c (iswcntrl): Likewise.
71201
71202 2006-07-27  Bruno Haible  <bruno@clisp.org>
71203
71204         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71205         test.
71206
71207 2006-07-27  Bruno Haible  <bruno@clisp.org>
71208
71209         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71210         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71211         defined.
71212
71213 2006-07-26  Eric Blake  <ebb9@byu.net>
71214
71215         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71216
71217 2006-07-26  Eric Blake  <ebb9@byu.net>
71218
71219         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71220         like mingw that lack mkstemp.
71221         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71222         avoid compilation warning on mingw.
71223
71224 2006-07-26  Bruno Haible  <bruno@clisp.org>
71225
71226         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71227         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71228         INT_FAST*_MIN, INTPTR_MIN.
71229
71230 2006-07-25  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/version-etc (Depends-on): Add stdarg.
71233
71234 2006-07-25  Bruno Haible  <bruno@clisp.org>
71235
71236         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71237         complex commands.
71238
71239 2006-07-25  Bruno Haible  <bruno@clisp.org>
71240
71241         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71242         defined in <stdarg.h> or config.h.
71243
71244 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71247         (gl_STDIO_SAFER): Remove.
71248
71249 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * MODULES.html.sh (File stream based Input/Output):
71252         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71253         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71254         * modules/fopen-safer, modules/tmpfile-safer: New files.
71255         * modules/stdio-safer: Remove.
71256
71257 2006-07-24  Bruno Haible  <bruno@clisp.org>
71258
71259         * modules/tmpdir: New file.
71260         * MODULES.html.sh (File system functions): Add it.
71261
71262 2006-07-24  Bruno Haible  <bruno@clisp.org>
71263
71264         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71265         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71266
71267 2006-07-24  Bruno Haible  <bruno@clisp.org>
71268
71269         * modules/clean-temp: New file.
71270
71271 2006-07-24  Bruno Haible  <bruno@clisp.org>
71272
71273         * m4/tmpdir.m4: New file, from GNU gettext.
71274
71275 2006-07-24  Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/tmpdir.h: New file, from GNU gettext.
71278         * lib/tmpdir.c: New file, from GNU gettext.
71279
71280 2006-07-24  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/clean-temp.h: New file, from GNU gettext.
71283         * lib/clean-temp.c: New file, from GNU gettext.
71284
71285 2006-07-23  Eric Blake  <ebb9@byu.net>
71286
71287         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71288         (Depends-on): Add binary-io.
71289
71290 2006-07-23  Eric Blake  <ebb9@byu.net>
71291
71292         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71293
71294 2006-07-23  Eric Blake  <ebb9@byu.net>
71295
71296         * lib/tmpfile-safer.c: New file.
71297         * lib/stdio-safer.h (fopen_safer): Add prototype.
71298         * lib/stdio--.h (tmpfile): Make safer.
71299
71300 2006-07-23  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71303         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71304         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71305         gl_linked_remove_at): Use it.
71306
71307 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71308         and Simon Josefsson <jas@extundo.com>
71309
71310         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71311
71312         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71313
71314 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         * modules/close-stream: New file.
71317         * modules/closeout (Description): Make it clear that it exits
71318         with a diagnostic on error.
71319         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71320         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71321
71322 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * m4/close-stream.m4: New file.
71325
71326 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * lib/close-stream.c, lib/close-stream.h: New files.
71329
71330 2006-07-22  Bruno Haible  <bruno@clisp.org>
71331
71332         Merge from GNU gettext 0.15.
71333
71334         2006-05-01  Bruno Haible  <bruno@clisp.org>
71335
71336                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71337
71338         2006-07-22  Bruno Haible  <bruno@clisp.org>
71339
71340                 * modules/javaversion: New file.
71341                 * MODULES.html.sh (Java): Add javaversion.
71342
71343         2006-03-12  Bruno Haible  <bruno@clisp.org>
71344
71345                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71346
71347         2005-12-04  Bruno Haible  <bruno@clisp.org>
71348
71349                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71350                 (untested).
71351
71352         2006-06-21  Bruno Haible  <bruno@clisp.org>
71353
71354                 Avoid warnings from recent versions of mcs.
71355                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71356                 -o, -L, -r any more. Use options documented since mcs-1.0
71357                 instead. Similarly for -g.
71358
71359         2005-12-04  Bruno Haible  <bruno@clisp.org>
71360
71361                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71362                 .resources, not .resource.
71363
71364         2005-07-09  Bruno Haible  <bruno@clisp.org>
71365
71366                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71367                 add a .dll suffix.
71368                 Reported by Mark Junker <mjscod@gmx.de>.
71369
71370         2006-07-22  Bruno Haible  <bruno@clisp.org>
71371
71372                 * modules/gettext: Upgrade to gettext-0.15.
71373                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71374                 m4/visibility.m4.
71375                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71376
71377 2006-07-22  Bruno Haible  <bruno@clisp.org>
71378
71379         Merge from GNU gettext 0.15.
71380
71381         2006-03-25  Bruno Haible  <bruno@clisp.org>
71382
71383                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71384
71385         2006-07-21  Bruno Haible  <bruno@clisp.org>
71386
71387                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71388                 "1.1".
71389
71390         2006-05-09  Bruno Haible  <bruno@clisp.org>
71391
71392                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71393                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71394                 for the conftestver execution.
71395
71396         2006-05-01  Bruno Haible  <bruno@clisp.org>
71397
71398                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71399                 optional target-version argument. Verify that the compiler
71400                 groks source of the specified source-version, or add -source
71401                 option as necessary. Verify that the compiler produces
71402                 bytecode in the specified target-version, or add -target and
71403                 -source options as necessary. Make the result of the test
71404                 available as variable CONF_JAVAC. Also log error output in
71405                 config.log.
71406
71407         2006-03-11  Bruno Haible  <bruno@clisp.org>
71408
71409                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71410
71411         2006-05-09  Bruno Haible  <bruno@clisp.org>
71412
71413                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71414                 CLASSPATH_SEPARATOR to a semicolon.
71415
71416         2006-03-12  Bruno Haible  <bruno@clisp.org>
71417
71418                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71419                 available as variable CONF_JAVA, for subsequent autoconf
71420                 tests. Also log error output in config.log.
71421
71422         2006-07-19  Bruno Haible  <bruno@clisp.org>
71423
71424                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71425                 that getline works on glibc2 systems. Needed to avoid trouble
71426                 in relocatable.c.
71427                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71428
71429         2005-12-04  Bruno Haible  <bruno@clisp.org>
71430
71431                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71432                 launcher (untested).
71433
71434         2005-12-04  Bruno Haible  <bruno@clisp.org>
71435
71436                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71437
71438         2006-07-22  Bruno Haible  <bruno@clisp.org>
71439
71440                 * gettext.m4: Update from GNU gettext-0.15.
71441                 * nls.m4: Likewise.
71442                 * po.m4: Likewise.
71443                 * inttypes-pri.m4: Likewise.
71444                 * inttypes-h.m4: Renamed from inttypes.m4.
71445                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71446
71447 2006-07-22  Bruno Haible  <bruno@clisp.org>
71448
71449         Merge from GNU gettext 0.15.
71450
71451         2005-07-05  Bruno Haible  <bruno@clisp.org>
71452
71453                 * printf-args.c (printf_fetchargs): Work around broken
71454                 definition of wint_t on mingw.
71455
71456         2005-02-12  Bruno Haible  <bruno@clisp.org>
71457
71458                 * xallocsa.h: Add extern "C" for C++.
71459
71460         2006-05-17  Bruno Haible  <bruno@clisp.org>
71461
71462                 Cygwin portability.
71463                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71464
71465         2006-04-30  Bruno Haible  <bruno@clisp.org>
71466
71467                 * progreloc.c: Include <mach-o/dyld.h> if available.
71468                 (find_executable): Use _NSGetExecutablePath when possible.
71469
71470         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71471
71472                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71473                 function.
71474
71475         2005-12-29  Bruno Haible  <bruno@clisp.org>
71476
71477                 * progreloc.c (set_program_name_and_installdir): Fix
71478                 compilation error.
71479
71480         2005-12-04  Bruno Haible  <bruno@clisp.org>
71481
71482                 Cygwin portability.
71483                 * progreloc.c: Include <windows.h> also on Cygwin.
71484                 (find_executable): Add support for Cygwin.
71485                 (set_program_name_and_installdir): Handle also platforms with
71486                 nonempty EXEEXT.
71487
71488         2006-07-11  Bruno Haible  <bruno@clisp.org>
71489
71490                 * javacomp.c: Fix a comment.
71491                 Reported by Jim Meyering.
71492
71493         2006-04-30  Bruno Haible  <bruno@clisp.org>
71494
71495                 * javacomp.h (compile_java_class): Add source_version,
71496                 target_version arguments.
71497                 * javacomp.c: Rewritten to choose only a compiler that
71498                 respects the specified source_version and target_version.
71499
71500         2006-06-27  Bruno Haible  <bruno@clisp.org>
71501
71502                 Assume correct S_ISDIR macro.
71503                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71504
71505         2006-07-22  Bruno Haible  <bruno@clisp.org>
71506
71507                 * javaversion.h: New file, from GNU gettext.
71508                 * javaversion.c: New file, from GNU gettext.
71509                 * javaversion.java: New file, from GNU gettext.
71510                 * javaversion.class: New file, from GNU gettext.
71511
71512         2006-05-17  Bruno Haible  <bruno@clisp.org>
71513
71514                 Cygwin portability.
71515                 * javaexec.c (execute_java_class): Test for jview program
71516                 also on Cygwin.
71517
71518         2006-04-09  Bruno Haible  <bruno@clisp.org>
71519
71520                 * fatal-signal.c: Don't include string.h.
71521                 (at_fatal_signal): Use a copying loop instead of memcpy.
71522
71523         2005-12-04  Bruno Haible  <bruno@clisp.org>
71524
71525                 * csharpexec.c: Add support for 'clix' launcher (untested).
71526                 (execute_csharp_using_sscli): New function.
71527                 (execute_csharp_program): Call it.
71528
71529         2006-06-21  Bruno Haible  <bruno@clisp.org>
71530
71531                 Avoid warnings from recent versions of mcs.
71532                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71533                 -o, -L, -r any more. Use options documented since mcs-1.0
71534                 instead. Similarly for -g.
71535
71536         2005-07-09  Bruno Haible  <bruno@clisp.org>
71537
71538                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71539                 add a .dll suffix.
71540                 Reported by Mark Junker <mjscod@gmx.de>.
71541
71542         2006-06-17  Bruno Haible  <bruno@clisp.org>
71543
71544                 * config.charset: Update for NetBSD 3.0.
71545
71546         2006-05-17  Bruno Haible  <bruno@clisp.org>
71547
71548                 Cygwin portability.
71549                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71550
71551         2006-05-16  Bruno Haible  <bruno@clisp.org>
71552
71553                 * localcharset.c [CYGWIN]: Include <windows.h>.
71554                 (get_charset_aliases): For Cygwin, return the same CPxxx
71555                 aliases list as under WIN32.
71556                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71557                 the environment variables. Fall back to GetACP().
71558
71559         2006-04-05  Bruno Haible  <bruno@clisp.org>
71560
71561                 * config.charset: Update Juan Manuel Guerrero's address.
71562
71563         2005-02-12  Bruno Haible  <bruno@clisp.org>
71564
71565                 * allocsa.h: Add extern "C" for C++.
71566
71567         2005-02-10  Bruno Haible  <bruno@clisp.org>
71568
71569                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71570                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71571
71572         2006-07-22  Bruno Haible  <bruno@clisp.org>
71573
71574                 * gettext.h: Update to GNU gettext-0.15.
71575
71576 2006-07-22  Bruno Haible  <bruno@clisp.org>
71577
71578         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71579         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71580         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71581
71582 2006-07-21  Eric Blake  <ebb9@byu.net>
71583
71584         * modules/stdlib-safer: New file.
71585         * MODULES.html.sh (File stream based Input/Output): Add
71586         stdlib-safer.
71587
71588 2006-07-21  Eric Blake  <ebb9@byu.net>
71589
71590         * lib/stdlib-safer.h: New file from coreutils, required by
71591         stdlib--.h.
71592
71593 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71596
71597 2006-07-20  Bruno Haible  <bruno@clisp.org>
71598
71599         * gnulib-tool: Recognize new option --assume-autoconf.
71600         (autoconf_minversion): New variable.
71601         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71602
71603 2006-07-20  Bruno Haible  <bruno@clisp.org>
71604
71605         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71606
71607 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71608
71609         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71610         Reindent and repaginate.
71611
71612 2006-07-19  Derek Price  <derek@ximbiot.com>
71613
71614         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71615         Correct grammar.
71616
71617 2006-07-17  Bruno Haible  <bruno@clisp.org>
71618
71619         * modules/list: New file.
71620         * modules/array-list: New file.
71621         * modules/carray-list, modules/carray-list-tests: New files.
71622         * modules/linked-list, modules/linked-list-tests: New files.
71623         * modules/avltree-list, modules/avltree-list-tests: New files.
71624         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71625         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71626         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71627         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71628         * modules/oset: New file.
71629         * modules/array-oset: New file.
71630         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71631         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71632         * tests/test-carray_list.c: New file.
71633         * tests/test-linked_list.c: New file.
71634         * tests/test-avltree_list.c: New file.
71635         * tests/test-rbtree_list.c: New file.
71636         * tests/test-linkedhash_list.c: New file.
71637         * tests/test-avltreehash_list.c: New file.
71638         * tests/test-rbtreehash_list.c: New file.
71639         * tests/test-avltree_oset.c: New file.
71640         * tests/test-rbtree_oset.c: New file.
71641         * MODULES.html.sh (Container data structures): New section.
71642
71643 2006-07-17  Bruno Haible  <bruno@clisp.org>
71644
71645         * m4/gl_list.m4: New file.
71646
71647 2006-07-17  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/gl_list.h: New file.
71650         * lib/gl_list.c: New file.
71651         * lib/gl_array_list.h: New file.
71652         * lib/gl_array_list.c: New file.
71653         * lib/gl_carray_list.h: New file.
71654         * lib/gl_carray_list.c: New file.
71655         * lib/gl_linked_list.h: New file.
71656         * lib/gl_linked_list.c: New file.
71657         * lib/gl_anylinked_list1.h: New file.
71658         * lib/gl_anylinked_list2.h: New file.
71659         * lib/gl_avltree_list.h: New file.
71660         * lib/gl_avltree_list.c: New file.
71661         * lib/gl_anyavltree_list1.h: New file.
71662         * lib/gl_anyavltree_list2.h: New file.
71663         * lib/gl_rbtree_list.h: New file.
71664         * lib/gl_rbtree_list.c: New file.
71665         * lib/gl_anyrbtree_list1.h: New file.
71666         * lib/gl_anyrbtree_list2.h: New file.
71667         * lib/gl_anytree_list1.h: New file.
71668         * lib/gl_anytree_list2.h: New file.
71669         * lib/gl_linkedhash_list.h: New file.
71670         * lib/gl_linkedhash_list.c: New file.
71671         * lib/gl_anyhash_list1.h: New file.
71672         * lib/gl_anyhash_list2.h: New file.
71673         * lib/gl_avltreehash_list.h: New file.
71674         * lib/gl_avltreehash_list.c: New file.
71675         * lib/gl_rbtreehash_list.h: New file.
71676         * lib/gl_rbtreehash_list.c: New file.
71677         * lib/gl_anytreehash_list1.h: New file.
71678         * lib/gl_anytreehash_list2.h: New file.
71679
71680         * lib/gl_oset.h: New file.
71681         * lib/gl_oset.c: New file.
71682         * lib/gl_array_oset.h: New file.
71683         * lib/gl_array_oset.c: New file.
71684         * lib/gl_avltree_oset.h: New file.
71685         * lib/gl_avltree_oset.c: New file.
71686         * lib/gl_rbtree_oset.h: New file.
71687         * lib/gl_rbtree_oset.c: New file.
71688         * lib/gl_anytree_oset.h: New file.
71689
71690 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * m4/mkancesdirs.m4: New file.
71693         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71694         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71695         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71696         it.
71697
71698 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71701         * lib/mkancesdirs.h: New files.
71702         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71703         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71704         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71705         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71706         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71707         callers changed.  Revamp internals significantly, by not
71708         attempting to create directories that are temporarily more
71709         permissive than the final results.  Do not attempt to use
71710         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71711         This removes some race conditions, fixes some bugs, and simplifies
71712         things.  Use new dirchownmod function to do owner and mode changes.
71713         * lib/mkdir-p.h: Likewise.
71714         * lib/modechange.c (octal_to_mode): New function.
71715         (struct mode_change): New member mentioned.
71716         (make_node_op_equals): New arg mentioned.  All callers changed.
71717         (mode_compile): Keep track of which mode bits the user has explicitly
71718         mentioned.
71719         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71720         New arg PMODE_BITS, to keep track of which mode bits the user
71721         mentioned; it treats S_ISUID and S_ISGID speciall.
71722         All callers changed.
71723         * lib/modechange.h: Likewise.
71724
71725 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * MODULES.html.sh: Add mkancestors.
71728         * modules/mkancesdirs: New module.
71729         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71730         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71731         The chdir-safer and afs files are now orphans; I'll remove them
71732         unless someone speaks up.
71733         Add lib/dirchownmod.c, lib/dirchownmod.h.
71734         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71735         Add lchown, mkancesdirs.
71736         (Maintainer): Add self.
71737
71738 2006-07-15  Karl Berry  <karl@gnu.org>
71739
71740         * gnulib-tool: help message wording/arrangement.
71741
71742 2006-07-14  Simon Josefsson  <jas@extundo.com>
71743
71744         * doc/gnulib.texi (Libtool and Windows): New section.
71745
71746 2006-07-12  Simon Josefsson  <jas@extundo.com>
71747
71748         * modules/gendocs (License): Fix license, approved by Karl.
71749
71750 2006-07-12  Eric Blake  <ebb9@byu.net>
71751
71752         * MODULES.html.sh: Add gendocs.
71753
71754 2006-07-11  Eric Blake  <ebb9@byu.net>
71755
71756         * modules/fdl: New module, to install doc/fdl.texi.
71757         * MODULES.html.sh: Add new section for documentation modules.
71758         * gnulib-tool: Avoid space-tab.
71759         (--doc-base): New option, to manage files from doc.
71760
71761 2006-07-11  Eric Blake  <ebb9@byu.net>
71762
71763         * m4/absolute-header.m4: Fix comments to match recent change.
71764
71765 2006-07-11  Eric Blake  <ebb9@byu.net>
71766
71767         * gnulib-tool: List --doc-base before --tests-base.
71768
71769 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71770
71771         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71772
71773 2006-07-11  Bruno Haible  <bruno@clisp.org>
71774
71775         * README: Mention where to put documentation.
71776
71777 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71778
71779         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71780
71781 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71784         to stdint.m4.
71785
71786 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71789         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71790         "no/such/file/stdint.h" when there is no such file, so that
71791         the resulting C code can be parsed by dodgy compilers.
71792         Problems reported by Bob Proulx.
71793
71794 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71795
71796         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71797         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71798         macros into the GNU _D_EXACT_NAMLEN.
71799         * lib/savedir.c:  Likewise.
71800         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71801
71802 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71803         and Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71806         * m4/savedir.m4:
71807         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71808         macros into the GNU _D_EXACT_NAMLEN.
71809
71810 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71813         around the absolute name, to work around a problem with the HP-UX
71814         11.23 native C compiler, reported by Bob Proulx.
71815
71816 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * doc/maintain.texi, make-stds.texi: Sync from
71819         <http://savannah.gnu.org/projects/gnustandards>.
71820
71821 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71822
71823         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71824
71825 2006-07-09  Jim Meyering  <jim@meyering.net>
71826
71827         * m4/glob.m4: Remove a doubled word in a comment.
71828
71829 2006-07-09  Jim Meyering  <jim@meyering.net>
71830
71831         * lib/argp-pv.c: Remove a doubled word in a comment.
71832         * lib/check-version.c (check_version): Likewise.
71833         * lib/javacomp.c (compile_java_class): Likewise.
71834
71835 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71838         for the benefit of people using Autoconf 2.60.  If you want to
71839         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71840         (or m4/onceonly.m4, if pre-2.57) manually.
71841
71842 2006-07-08  Jim Meyering  <jim@meyering.net>
71843
71844         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71845         comment.
71846         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71847         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71848         comment.
71849
71850 2006-07-08  Jim Meyering  <jim@meyering.net>
71851
71852         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71853
71854 2006-07-07  Simon Josefsson  <jas@extundo.com>
71855
71856         * tests/test-crc.c: Change expected crc value, the test vector
71857         were probably computed using the old broken crc.c?
71858
71859 2006-07-06  Simon Josefsson  <jas@extundo.com>
71860
71861         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71862         now the canonical place for the M4 file).
71863
71864         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71865         from the sys_socket dependency now.
71866
71867         * modules/inet_pton (Files): Ditto.
71868
71869         * modules/inet_ntop (Files): Ditto.
71870
71871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71872
71873         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71874         not gl_PREREQ_GETUSERSHELL.
71875
71876 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71877
71878         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71879         with only one argument, for Autoconf 2.60.
71880         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71881         expand to nothing, so add a shell command to avoid syntax error.
71882         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71883
71884 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71885
71886         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71887
71888 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71889
71890         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71891         no longer needed.  Check for isblank decl.
71892         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71893         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71894         of existence.
71895
71896 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/getloadavg.c: Use __VMS, not VMS.
71899         * lib/getopt.c: Likewise.
71900         * lib/getpagesize.h: Likewise.
71901         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71902         and probably does not work.
71903
71904 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71905
71906         * lib/.cppi-disable: Add wcwidth.
71907         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71908         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71909         (ISGRAPH): Remove.  All uses changed to isgraph.
71910         (FOLD) [!defined _LIBC]: Remove special case.
71911         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71912         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71913         HAVE_ISBLANK.
71914         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71915         case.
71916
71917 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71918
71919         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71920         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71921         brackets.  Other minor changes to suppress some compiler
71922         warnings.
71923
71924 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71925         and Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71928         of invoking obsolescent AC_HEADER_DIRENT macro.
71929         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71930         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71932         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71933         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71934         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71935         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71936         * m4/readdir.m4: Remove; no longer needed.
71937
71938 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71939         and Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71942         Don't worry about this obsolete case any more.
71943         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71944         directories.
71945         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71946         worry about this obsolete case any more.
71947         * lib/fts.c: Likewise.
71948         * lib/getcwd.c: Likewise.
71949         * lib/glob.h: Likewise.
71950         * lib/savedir.c: Likewise.
71951
71952 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71955         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71956         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71957         needed.
71958         All uses removed.
71959         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71960         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71961         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71962         needed.
71963         * m4/getdate.m4 (gl_GETDATE): Likewise.
71964         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71965         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71966         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71967         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71968         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71970         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71971         needed.
71972
71973 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/memcasecmp.c: Include <limits.h>.
71976         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71977         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71978         Don't assume isdigit succeeds only on '0' through '9'.
71979
71980 2006-07-05  Eric Blake  <ebb9@byu.net>
71981
71982         * modules/getaddrinfo (Depends-on): Add snprintf.
71983
71984 2006-07-05  Eric Blake  <ebb9@byu.net>
71985
71986         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71987         to avoid 'header present but could not be compiled' on cygwin.
71988
71989 2006-07-05  Eric Blake  <ebb9@byu.net>
71990
71991         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71992         missing from netdb.h.
71993         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71994
71995 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71996
71997         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71998         no longer needed.
71999         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72000         * m4/getdate.m4 (gl_GETDATE): Likewise.
72001         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72002         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72003         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72004         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72005         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72006
72007 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72008
72009         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72010         All uses of is_space replaced by isspace.
72011         * lib/exit.h: Don't talk about STDC_HEADERS.
72012         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72013         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72014         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72015         replaced by isprint etc.
72016         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72017         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72018         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72019         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72020         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72021         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72022
72023 2006-07-05  Bruno Haible  <bruno@clisp.org>
72024
72025         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72026         the function exists, before testing against AIX.
72027         Reported by Martin Lambers <marlam@marlam.de>.
72028
72029 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72032         From Mark D. Baushke.
72033
72034 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72037         to the absolute name, not just one, to bypass Sun C 5.8's
72038         "warning: #include of /usr/include/... may be non-portable".
72039
72040 2006-07-04  Eric Blake  <ebb9@byu.net>
72041
72042         * modules/dirname-tests: New test module.
72043         * tests/test-dirname.c: New file, replacing dirname.c
72044         TEST_DIRNAME section that was recently deleted.
72045
72046 2006-07-04  Bruno Haible  <bruno@clisp.org>
72047
72048         Assume ANSI C header files and <ctype.h> functions.
72049         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72050         (mbsnwidth): Use isprint, iscntrl instead.
72051
72052 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         Merge from coreutils.
72055         * MODULES.html.sh: Add xstrtold.
72056         * modules/xstrtold: New file.
72057         * modules/cycle-check (Files): Add lib/same-inode.h.
72058         * modules/dirname (Files): Add m4/double-slash-root.m4.
72059         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72060         * modules/mkdir-p (Files): Add lib/same-inode.h.
72061         * modules/same (Files): Add lib/same-inode.h.
72062
72063 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72066         This is to keep the terminology clean; POSIX talks about
72067         "absolute pathnames", not "full pathnames", but the GNU
72068         Coding Standards say to use "path" for something else;
72069         so use "absolute" to keep both sides happy.
72070         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72071         Set gl_absolute_header, not gl_full_header_path.
72072         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72073         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72074         All uses changed.
72075
72076         Merge from coreutils.
72077
72078         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72081         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72082         want to require the building of c-strtod.o.
72083         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72084         needs -lm directly.
72085         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72086
72087         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72090         --as-needed option if available.  Problem reported by Albert Chin in
72091         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72092         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72093         cc merely issues a bunch of annoying warnings for --as-needed
72094         (this problem was reported by Bob Proulx).  Also, try linking with
72095         -lm to detect a bug in binutils 2.16 (this problem was reported
72096         by Ralf Wildenhues).
72097
72098         2006-06-18  Jim Meyering  <jim@meyering.net>
72099
72100         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72101         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72102         macro.
72103         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72104         also check for glibc-2.4's abort-inducing bug.
72105
72106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72107         Low-probability clean-up should be to use rmdir to get rid of
72108         the just-created directory, not unlink.
72109
72110         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72111         configure fail, and request a bug report to inform us about it.
72112         Add a comment that, barring reports to the contrary, in 2007 we'll
72113         assume ftruncate is universally available.
72114
72115         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72118
72119         2006-03-12  Jim Meyering  <jim@meyering.net>
72120
72121         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72123         * m4/same.m4 (gl_SAME): Likewise.
72124         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72125
72126         2006-03-11  Eric Blake  <ebb9@byu.net>
72127
72128         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72129         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72130         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72131         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72132
72133 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72136         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72137         reported by Mark D. Baushke, one in
72138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72139
72140         Merge from coreutils.
72141
72142         * lib/.cppi-disable: Add stdint_.h.
72143         * lib/.cvsignore: Add stdint.h.
72144
72145         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72148         both double and long double versions.
72149         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72150         * lib/xstrtold.c: New file.
72151         * lib/xstrtod.h (xstrtold): New decl.
72152
72153         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72154
72155         * lib/filemode.c (setst): Remove.
72156         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72157         (arguably) clearer, and the generated code is a bit smaller on my
72158         Debian GNU/Linux stable x86 host.
72159
72160         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72163         Assume that filemode.h includes sys/types.h and sys/stat.h.
72164         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72165         (ftypelet): Reorder to put common cases first, for efficiency.
72166         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72167         to do 'M'.
72168         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72169         of 10, for compatibility with FreeBSD.  All callers changed.
72170         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72171         types that can't be deduced solely from st_mode.  First arg is now a
72172         const pointer.
72173         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72174         (strmode): Renamed from mode_string.
72175         (filemodestring): New decl.
72176         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72177         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72178         needed.
72179         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72180
72181         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72184         fsusage.h now does that.  Include fsusage.h first, to test interface.
72185         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72186         at most one method (the old code could have generated decls that
72187         didn't conform to C89, not that this was ever exercised).
72188         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72189
72190         2006-03-19  Jim Meyering  <jim@meyering.net>
72191
72192         Work even in a chroot where d_ino values for entries in "/"
72193         don't match the stat.st_ino values for the same names.
72194         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72195         number, iterate through all entries again, using lstat instead.
72196         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72197         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72198
72199         * lib/getcwd.c (__getcwd): Clarify a comment.
72200         Use memcpy in place of a call to strcpy.
72201
72202         2006-03-12  Jim Meyering  <jim@meyering.net>
72203
72204         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72205         matches that of the current directory (which we're about to chdir ".."
72206         out of), then save the dev-ino of the parent, instead.
72207
72208         * lib/same-inode.h (SAME_INODE): New file/macro.
72209         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72210         Include "same-inode.h", instead.
72211         * lib/same.c: Likewise.
72212         * lib/cycle-check.h: Include "same-inode.h".
72213         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72214         * lib/cycle-check.c (SAME_INODE): Remove definition.
72215         * lib/root-dev-ino.h: Include "same-inode.h".
72216
72217         2006-03-11  Eric Blake  <ebb9@byu.net>
72218
72219         * lib/same.c (same_name): s/base_name/last_component/
72220         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72221         * lib/filenamecat.c (file_name_concat): Likewise.
72222
72223         2006-03-11  Eric Blake  <ebb9@byu.net>,
72224                     Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72227         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72228         drive prefix.
72229         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72230         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72231         (last_component): New method.
72232         * lib/dirname.c (dir_len): Determine when drive letters need a
72233         subsequent slash.  Preserve // when it is special.
72234         (dir_name): Don't append dot when drive letter is absolute.
72235         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72236         * lib/basename.c (base_name): New semantics - malloc the result.
72237         Preserve // when it is special.  Preserve relative files that look
72238         like drive letters.
72239         (base_len): Preserve // when it is special.
72240         (last_component): New method, similar to old base_name semantics.
72241         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72242         base_name.  Strip redundant slashes from ///.
72243
72244 2006-07-03  Jim Meyering  <jim@meyering.net>
72245
72246         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72247         macro is used before the first cycle_check call.
72248
72249 2006-07-03  Eric Blake  <ebb9@byu.net>
72250
72251         * modules/dirname (Depends-on): Add xstrndup.
72252
72253 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72256         test cases, so that config.log is a bit easier to follow.
72257
72258 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72261         both are 64 bits, since this seems to be the tradition, and this
72262         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72263         we ever run into a host that prefers long long to long in this
72264         case, we'll need another configure-time test.  Problem reported by
72265         Jim Meyering.
72266
72267 2006-07-02  Eric Blake  <ebb9@byu.net>
72268
72269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72270
72271 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * modules/inttypes (Depends-on): No longer depends on stdint.
72274         * modules/stdint (Description): Say more about assumptions.
72275         Say that the fast types might differ.  Say macros are used.
72276         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72277         (Makefile.am): Revise list of substituted symbols to match
72278         new stdint.m4.
72279         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72280         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72281         * tests/test-stdint.c (verify_same_types)
72282         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72283         the code conforms to C99/C89.
72284         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72285         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72286
72287 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72290         but fix a bug, by requiring at least 64 bits.
72291         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72292         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72293         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72294         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72295
72296         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72297         changes.  Make 2.59 a prerequisite.  Check and substitute for
72298         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72299         inttypes.h.  Do not use special include files; just use the
72300         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72301         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72302         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72303         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72304         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72305         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72306         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72307         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72308         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72309         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72310         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72311         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72312         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72313         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72314         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72315         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72316         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72317         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72318         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72319         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72320         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72321         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72322         not check for things that C99 does not require, e.g., int8_t.  If
72323         a test isn't needed unless <stdint.h> isn't working, and is
72324         unlikely to be needed for any other reason, then don't do it
72325         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72326         size_t, since we assume C89 freestanding at least.  Do not check
72327         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72328         the right thing even if the types are not defined.  Instead use:
72329         (gl_STDINT_TYPE_PROPERTIES): New macro.
72330         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72331         testing whether <sys/types.h> clashes, as Autoconf does this for
72332         us now.  All uses removed.
72333         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72334         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72335         (gl_CHECK_TYPE_SAME):
72336         Remove; no longer needed.
72337         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72338         exists, since we'll return 0 anyway in that case.
72339         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72340
72341 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72342
72343         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72344         possible collision with system files.
72345         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72346         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72347         WCHAR_MIN and WCHAR_MAX in this case.
72348         (<stddef.h>): Do not include; no longer needed.
72349         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72350         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72351         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72352         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72353         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72354         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72355         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72356         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72357         !defined(__c99))]: Include in this case too, since it's harmless
72358         now.
72359         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72360         dangerous to do so.
72361         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72362         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72363         (_STDINT_MIN, _STDINT_MAX): New macros.
72364         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72365         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72366         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72367         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72368         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72369         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72370         macros, not typedefs; this simplifies things quite a bit.
72371         Use long int for all types narrower than int64_t.
72372         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72373         Define in terms of long long int or int64_t or long int,
72374         not int64_t or int32_t.  This saves some compile-time testing.
72375         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72376         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72377         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72378         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72379         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72380         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72381         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72382         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72383         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72384         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72385         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72386         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72387         undef any previous version and define our own version, for
72388         simplicity and consistency with the new macros for types.
72389         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72390         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72391         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72392         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72393         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72394         @WINT_T_SUFFIX@ to keep things simple here.
72395         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72396         Simplify by assuming typical 8/16/32/64 host, since we're
72397         already doing that elsewhere anyway.
72398         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72399         and assume long long int is 64 bits if available.  This
72400         speeds up 'configure'.
72401
72402 2006-07-01  Eric Blake  <ebb9@byu.net>
72403
72404         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72405         Reported by Andreas Buening.
72406
72407 2006-07-01  Eric Blake  <ebb9@byu.net>
72408
72409         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72410
72411 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72412
72413         * lib/getaddrinfo.c: fixed typo
72414
72415 2006-06-29  Jim Meyering  <jim@meyering.net>
72416
72417         * modules/strftime (Maintainer): Add my name, since with the
72418         FPRINTFTIME changes strftime.c has forked from glibc.
72419
72420 2006-06-29  Eric Blake  <ebb9@byu.net>
72421
72422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72423
72424 2006-06-29  Eric Blake  <ebb9@byu.net>
72425
72426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72427
72428 2006-06-29  Eric Blake  <ebb9@byu.net>
72429
72430         * lib/stat_.h: New file.
72431
72432 2006-06-29  Eric Blake  <ebb9@byu.net>
72433
72434         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72435         unused static function.
72436
72437 2006-06-29  Eric Blake  <ebb9@byu.net>
72438
72439         * doc/functions.texi (Function Portability): Document missing lstat
72440         on mingw.
72441
72442 2006-06-29  Eric Blake  <ebb9@byu.net>
72443
72444         * MODULES.html.sh: Add sys_stat.
72445         * modules/sys_stat: New module.
72446         * modules/mkstemp (Depends-on): Add sys_stat.
72447
72448 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72449
72450         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72451
72452 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72453
72454         * m4/c-bs-a.m4: Removed.
72455
72456 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72457
72458         * lib/strftime.c: Assume strftime() exists.
72459
72460 2006-06-29  Derek Price  <derek@ximbiot.com>
72461
72462         * modules/c-bs-a: Removed - \a is C89.
72463         * MODULES.html.sh: Remove c-bs-a.
72464
72465 2006-06-29  Bruno Haible  <bruno@clisp.org>
72466
72467         * modules/wcwidth (License): Change to LGPL.
72468
72469 2006-06-28  Simon Josefsson  <jas@extundo.com>
72470
72471         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72472         on _WIN32.
72473
72474         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72475         getnameinfo.
72476
72477 2006-06-28  Simon Josefsson  <jas@extundo.com>
72478
72479         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72480
72481 2006-06-28  Simon Josefsson  <jas@extundo.com>
72482
72483         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72484         functions there.  It will succeed on Windows XP, but on Windows
72485         2000 and (presumably) earlier, it will fail, and use the internal
72486         re-implementation.
72487         (use_win32_p): New function.
72488         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72489         Support AI_NUMERICSERV to disable getservbyname.
72490         (getnameinfo): New function, only supports
72491         NI_NUMERICHOST|NI_NUMERICSERV for now.
72492
72493         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72494         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72495         getnameinfo.
72496
72497 2006-06-28  Eric Blake  <ebb9@byu.net>
72498
72499         * modules/wcwidth: New file.
72500         * modules/mbchar (Depends-on): Add wcwidth.
72501         * modules/mbswidth (Depends-on): Add wcwidth.
72502         * MODULES.html.sh: Add wcwidth.
72503
72504 2006-06-28  Eric Blake  <ebb9@byu.net>
72505
72506         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72508
72509 2006-06-28  Eric Blake  <ebb9@byu.net>
72510
72511         * lib/xvasprintf.h: Fix comments.
72512
72513 2006-06-28  Eric Blake  <ebb9@byu.net>
72514
72515         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72516         * lib/mbswidth.c (wcwidth): Move from here...
72517         * lib/wcwidth.h: ...to this new file.
72518
72519 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72520
72521         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72522
72523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72524         it's obsolete.
72525         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72526
72527 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72528
72529         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72530         Autoconf 2.60 says this stuff was obsolete.
72531
72532 2006-06-28  Bruno Haible  <bruno@clisp.org>
72533
72534         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72535
72536 2006-06-28  Bruno Haible  <bruno@clisp.org>
72537
72538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72539         gt_TYPE_WCHAR_T.
72540
72541 2006-06-28  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72544         declaration for wcwidth.
72545         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72546
72547 2006-06-28  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72550         (mkdir): Define using _mkdir.
72551
72552 2006-06-28  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/getaddrinfo.h: Fix POSIX URL.
72555         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72556         _WIN32.
72557         (use_win32_p): Make static.
72558         (getaddrinfo): Reject service name if it is empty or does not consist
72559         solely of decimal digits, or if its value is > 65535.
72560         (getnameinfo): Remove useless casts.
72561
72562 2006-06-27  Simon Josefsson  <jas@extundo.com>
72563
72564         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72565         Eggert and Martin Lambers.
72566
72567 2006-06-27  Simon Josefsson  <jas@extundo.com>
72568
72569         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72570         Eggert and Martin Lambers.
72571
72572 2006-06-27  Bruno Haible  <bruno@clisp.org>
72573
72574         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72575         result to 0, not to empty.
72576         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72577
72578 2006-06-27  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72581
72582 2006-06-26  Simon Josefsson  <jas@extundo.com>
72583
72584         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72585         present.
72586
72587 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72590         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72591         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72592
72593 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72594
72595         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72596
72597 2006-06-26  Bruno Haible  <bruno@clisp.org>
72598
72599         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72600
72601 2006-06-26  Bruno Haible  <bruno@clisp.org>
72602
72603         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72604
72605 2006-06-26  Bruno Haible  <bruno@clisp.org>
72606
72607         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72608         SGI C compiler in pre-C99 mode.
72609         Suggested by Mark D. Baushke and Larry Jones.
72610
72611 2006-06-26  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72614         WCHAR_MAX.
72615         Reported by Mark D. Baushke and Larry Jones.
72616
72617 2006-06-26  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72620         in pre-C99 mode.
72621         Suggested by Mark D. Baushke and Larry Jones.
72622
72623 2006-06-23  Simon Josefsson  <jas@extundo.com>
72624             Bruno Haible  <bruno@clisp.org>
72625
72626         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72627         Emit mostlyclean-local rule.
72628         (func_emit_tests_Makefile_am): Likewise.
72629         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72630
72631 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72632
72633         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72634
72635 2006-06-23  Bruno Haible  <bruno@clisp.org>
72636
72637         * tests/test-stdint.c: Update to match ISO C 99 Technical
72638         Corrigendum 1.
72639
72640 2006-06-23  Bruno Haible  <bruno@clisp.org>
72641
72642         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72643
72644 2006-06-23  Bruno Haible  <bruno@clisp.org>
72645
72646         * lib/stdint_.h: Treat IRIX like OpenBSD.
72647
72648 2006-06-23  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72651         ISO C 99 Technical Corrigendum 1.
72652
72653 2006-06-22  Simon Josefsson  <jas@extundo.com>
72654
72655         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72656         MinGW.
72657
72658 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72659
72660         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72661         needed.  Some compiler complained about some of them.  Problem reported
72662         by Larry Jones in
72663         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72664
72665 2006-06-21  Simon Josefsson  <jas@extundo.com>
72666
72667         * tests/test-getaddrinfo.c: New file.
72668
72669         * modules/getaddrinfo-tests: New file.
72670
72671         * MODULES.html.sh: Add inet_pton.
72672
72673         * modules/inet_pton: New file.
72674
72675 2006-06-21  Simon Josefsson  <jas@extundo.com>
72676
72677         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72678         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72679         of using the (limited) gnulib implementation on Windows XP.
72680
72681         * m4/inet_pton.m4: New file.
72682
72683 2006-06-21  Simon Josefsson  <jas@extundo.com>
72684
72685         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72686         variable.
72687
72688         * lib/socket_.h: Don't define WINVER.
72689
72690         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72691         slightly modified to work in gnulib.
72692
72693 2006-06-21  Simon Josefsson  <jas@extundo.com>
72694
72695         * doc/gnulib.texi (Windows sockets): Add.
72696
72697 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         * lib/read-file.c (fread_file): Start with buffer allocation of
72700         0 bytes rather than 1 byte; this simplifies the code.
72701         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72702         code to free buffer and save/restore errno.
72703         (internal_read_file): Remove unused local.
72704
72705 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72708         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72709         Problem reported by Denis Excoffier in
72710         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72711
72712 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72713
72714         * modules/sys_socket, modules/socklen: Include sys/types since
72715         FreeBSD 4.x's sys/socket.h needs it.
72716
72717 2006-06-19  Simon Josefsson  <jas@extundo.com>
72718
72719         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72720
72721 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72724
72725 2006-06-19  Bruno Haible  <bruno@clisp.org>
72726
72727         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72728         and FULL_PATH_INTTYPES_H in angle brackets.
72729         Reported by Mark D. Baushke <mdb@gnu.org>.
72730
72731 2006-06-17  Eric Blake  <ebb9@byu.net>
72732
72733         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72734         errno.
72735
72736 2006-06-17  Bruno Haible  <bruno@clisp.org>
72737
72738         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72739         <sys/inttypes.h>.
72740
72741 2006-06-17  Bruno Haible  <bruno@clisp.org>
72742
72743         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72744         whether errno is declared. Assume <errno.h> declares errno.
72745
72746 2006-06-17  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72749
72750 2006-06-17  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72753         problem on Solaris 2.5.1.
72754
72755 2006-06-16  Eric Blake  <ebb9@byu.net>
72756
72757         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72758         * lib/unicodeio.c [!defined errno]: Likewise.
72759         * lib/strtol.c [!defined errno]: Likewise.
72760         * lib/strtod.c [!defined errno]: Likewise.
72761
72762 2006-06-15  Eric Blake  <ebb9@byu.net>
72763
72764         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72765
72766 2006-06-15  Eric Blake  <ebb9@byu.net>
72767
72768         * config/srclist.txt (ssize_t.m4): Lose sync.
72769
72770 2006-06-15  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/stdint (Files): Include m4/full-header-path.m4,
72773         m4/size_max.m4, m4/wchar_t.m4.
72774         (Makefile.am): Many more substitutions.
72775         * modules/stdint-tests: New file.
72776         * tests/test-stdint.c: New file.
72777
72778 2006-06-15  Bruno Haible  <bruno@clisp.org>
72779
72780         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72781         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72782         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72783         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72784         gl_CHECK_TYPE_SAME): New macros.
72785
72786 2006-06-15  Bruno Haible  <bruno@clisp.org>
72787
72788         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72789
72790 2006-06-15  Bruno Haible  <bruno@clisp.org>
72791
72792         * lib/stdint_.h: Rewritten to be fully auto-configured.
72793         Fixes bug on HP-UX/IA64.
72794
72795 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * lib/getdate.y (__attribute__): Don't define if already defined.
72798         Problem reported by Larry Jones.
72799         * lib/utimens.c (__attribute__): Likewise.
72800
72801 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72804         reported by Andreas Schwab.
72805
72806 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72807             Bruno Haible  <bruno@clisp.org>
72808
72809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72810         check for the declaration of strnlen and a run test that exposes the
72811         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72812         rpl_strndup.
72813
72814 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72815             Bruno Haible  <bruno@clisp.org>
72816
72817         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72818
72819 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72820
72821         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72822         compile test, for Tru64 4.0D.
72823
72824 2006-05-28  Karl Berry  <karl@gnu.org>
72825
72826         * config/srclist.txt (printf-args.c): lose sync.
72827
72828 2006-05-26  Martin Lambers  <marlam@marlam.de>
72829
72830         * lib/getpass.c: Updates the test for the native W32 API, and adds
72831         missing includes, thus fixing compilation warnings.
72832
72833 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72834
72835         * lib/exclude.c (exclude_fnmatch): New function.
72836         (excluded_file_name): Call exclude_fnmatch.
72837         * lib/exclude.h (excluded_file_name): New prototype
72838
72839 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * lib/tempname.c (small_open, large_open): New macros.
72842         (__open, __open64) [!_LIBC]: Remove.
72843         (__gen_tempname): Use small_open and large_open instead of __open
72844         and __open64.  This fixes a portability bug on HP-UX 11.11i
72845         reported by Simon Wing-Tang in
72846         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72847
72848 2006-05-24  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72851         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72852         Reported by Thorsten Maerz <torte@netztorte.de> via
72853         Aaron Stone <aaron@serendipity.cx>.
72854
72855 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72858         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72859         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72860         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72861         not really conditional on the cache.
72862         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72863
72864 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72867         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72868         (my_usleep): Don't mishandle maximum value.
72869
72870 2006-05-19  Jim Meyering  <jim@meyering.net>
72871
72872         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72873
72874 2006-05-17  Bruno Haible  <bruno@clisp.org>
72875
72876         Cygwin portability.
72877         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72878
72879 2006-05-17  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/stdint_.h: Fix recognition of Cygwin.
72882
72883 2006-05-15  Bruno Haible  <bruno@clisp.org>
72884
72885         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72886         on libtool patch by Ralf Wildenhues.
72887
72888 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72891         test for C99 conformance; (bool) 0.5 is an integer constant
72892         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72893         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72894
72895 2006-05-11  Simon Josefsson  <jas@extundo.com>
72896
72897         * m4/xvasprintf.m4: Fix obvious typo.
72898
72899 2006-05-11  Jim Meyering  <jim@meyering.net>
72900
72901         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72902         James Lemley.
72903
72904 2006-05-10  Simon Josefsson  <jas@extundo.com>
72905
72906         * lib/md4.c: Typo fix, update copyright years.
72907         (K1, K2): Don't use L because it turn computations into 64-bit on
72908         64-bit platforms.
72909
72910 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72913         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72914         unwanted sign propagation, e.g., on hosts with 64-bit int.
72915         There still are some problems with reeelly weird theoretical hosts
72916         (e.g., 33-bit int) but it's not worth worrying about now.
72917         * lib/sha1.c (rol): Likewise.
72918         (K1, K2, K3, K4): Remove unnecessary L suffix.
72919
72920 2006-05-10  Bruno Haible  <bruno@clisp.org>
72921
72922         * lib/des.c: Cast to avoid warnings.
72923
72924 2006-05-09  Bruno Haible  <bruno@clisp.org>
72925
72926         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72927         (Depends-on): Depend also on xsize, stdarg.
72928         (configure.ac): Add gl_XVASPRINTF.
72929
72930 2006-05-09  Bruno Haible  <bruno@clisp.org>
72931
72932         * m4/xvasprintf.m4: New file.
72933
72934 2006-05-09  Bruno Haible  <bruno@clisp.org>
72935
72936         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72937         (EOVERFLOW): Define fallback value.
72938         (xstrcat): New function.
72939         (xvasprintf): Recognize the special case of a string concatenation.
72940
72941 2006-05-08  Eric Blake  <ebb9@byu.net>
72942
72943         * gnulib-tool (func_version): Base copyright year on CVS date.
72944         (func_emit_copyright_notice): New function.
72945         (func_emit_lib_Makefile_am): Use it.
72946         (func_emit_tests_Makefile_am): Likewise.
72947         (func_import): Likewise.
72948
72949 2006-05-08  Bruno Haible  <bruno@clisp.org>
72950
72951         * modules/stdarg: New file.
72952         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72953
72954 2006-05-08  Bruno Haible  <bruno@clisp.org>
72955
72956         * m4/stdarg.m4: New file, from GNU gettext.
72957
72958 2006-05-08  Bruno Haible  <bruno@clisp.org>
72959
72960         * config/srclist.txt (build-aux/config.rpath): different from latest
72961         release.
72962
72963 2006-05-08  Bruno Haible  <bruno@clisp.org>
72964
72965         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72966
72967 2006-05-05  Jim Meyering  <jim@meyering.net>
72968
72969         * m4/warning.m4: New file, derived from bison's file by the same name.
72970
72971 2006-05-03  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/stdint_.h: Shorter URL.
72974         * lib/inttypes.h: Likewise.
72975
72976 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72977
72978         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72979
72980 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * lib/verify.h: Document the internals better.  Most of this change
72983         was written by Bruno Haible.
72984
72985 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         * doc/verify.texi: New file, partly based on a proposal by
72988         Bruno Haible.
72989
72990 2006-05-02  Bruno Haible  <bruno@clisp.org>
72991
72992         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72993         test from here...
72994         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72995
72996 2006-04-29  Bruno Haible  <bruno@clisp.org>
72997
72998         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72999         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73000
73001 2006-04-29  Bruno Haible  <bruno@clisp.org>
73002
73003         * gnulib-tool: Make --update option actually work.
73004
73005 2006-04-29  Bruno Haible  <bruno@clisp.org>
73006
73007         * doc/gcd.texi: New file.
73008         * doc/gnulib.texi: Include it.
73009
73010 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/getdate.y (get_date): When adding relative date, start with the
73013         initial time, not with the result of the first mktime call.
73014
73015 2006-04-25  Bruno Haible  <bruno@clisp.org>
73016
73017         * gnulib-tool (func_import): Output the include directives in three
73018         blocks, sorted separately.
73019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73020
73021 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73024         to define main with arguments, for C++.  Reported by Eric Blake.
73025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73026         Prefer 'int main ()' to 'int main (void)', for C++.
73027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73029         for 'main', for C99 and C++.
73030
73031 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73034         Don't assume that exit status -1 is valid.
73035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73036         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73037         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73038         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73039         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73040         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73041         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73042         functions can be used without declaring them, or that you can
73043         exit with status -1.
73044         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73045
73046 2006-04-24  Karl Berry  <karl@gnu.org>
73047
73048         * config/srclist.txt (longdouble.m4): sync lost.
73049
73050 2006-04-24  Eric Blake  <ebb9@byu.net>
73051
73052         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73053
73054 2006-04-24  Bruno Haible  <bruno@clisp.org>
73055
73056         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73057         poll() implementation in AIX.
73058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73059
73060 2006-04-24  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73063         assigned exactly once.
73064
73065 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73066             Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73069         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73070         for AM_CPPFLAGS.
73071
73072 2006-04-23  Bruno Haible  <bruno@clisp.org>
73073
73074         * modules/copy-file: Depend on unistd.
73075         * modules/execute: Likewise.
73076         * modules/fatal-signal: Likewise.
73077         * modules/findprog: Likewise.
73078         * modules/mkdtemp : Likewise.
73079         * modules/pipe: Likewise.
73080         * modules/wait-process: Likewise.
73081
73082 2006-04-23  Bruno Haible  <bruno@clisp.org>
73083
73084         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73085         condition was already detected.
73086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73087
73088 2006-04-23  Bruno Haible  <bruno@clisp.org>
73089
73090         * lib/copy-file.c: Include <unistd.h> unconditionally.
73091         * lib/execute.c: Likewise.
73092         * lib/fatal-signal.c: Likewise.
73093         * lib/findprog.c: Likewise.
73094         * lib/mkdtemp.c: Likewise.
73095         * lib/pipe.h: Likewise.
73096         * lib/pipe.c: Likewise.
73097         * lib/wait-process.h: Likewise.
73098
73099 2006-04-23  Bruno Haible  <bruno@clisp.org>
73100
73101         * gnulib-tool (func_usage): Fix --import description. Document
73102         --update.
73103         (func_import): Create temporary file in a temporary directory, if
73104         --dry-run is specified. Silence errors from 'grep' when there are no
73105         m4 files in $m4dir.
73106         (func_create_testdir): Silence errors from 'grep' when there are no
73107         m4 files in $m4dir.
73108         Reported by Karl Berry <karl@freefriends.org>.
73109
73110 2006-04-20  Bruno Haible  <bruno@clisp.org>
73111
73112         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73113         one argument, so that the code will be portable to Autoconf 2.60.
73114         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73116         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73117
73118 2006-04-19  Derek Price  <derek@ximbiot.com>
73119             Eric Blake  <ebb9@byu.net>
73120
73121         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73122         rather than "/full/path.h".  Update comment to match.  Shorten &
73123         generalize m4_translit call via AS_TR_CPP.
73124
73125 2006-04-19  Derek Price  <derek@ximbiot.com>
73126             Eric Blake  <ebb9@byu.net>
73127
73128         * lib/inttypes.h: Correct grammar in comment.
73129
73130 2006-04-18  Derek Price  <derek@ximbiot.com>
73131             Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         * modules/inttypes: New file.
73134         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73135
73136 2006-04-18  Derek Price  <derek@ximbiot.com>
73137             Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73140         New files.
73141
73142 2006-04-18  Derek Price  <derek@ximbiot.com>
73143             Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * lib/inttypes.h: New file.
73146         * lib/strtoimax.c: Assume <inttypes.h>.
73147
73148 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73151         isn't mounted.  Problem reported by Kir Kolyshkin.
73152
73153 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73156         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73157         Derek R. Price.
73158         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73159         implementation.
73160
73161 2006-04-12  Eric Blake  <ebb9@byu.net>
73162
73163         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73164         is now done automatically by the corresponding Autoconf macro.
73165
73166 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73169         time_r.h.
73170
73171 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         Merge regex changes from libc, removing some of our
73174         POSIX-conformance changes that were rejected and redoing them in a
73175         less-intrusive way.
73176
73177         * lib/regcomp.c (re_compile_internal, init_dfa):
73178         Length arg is now size_t, not Idx.  All uses changed.
73179         (peek_token): Forward decl now says internal_function.
73180         (__re_error_msgid, __re_error_msgid_idx):
73181         Now static rather than extern with attribute_hidden.
73182         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73183         For some reason libc prefers K&R style defns for external functions.
73184         (regerror) [!defined _LIBC]: Likewise.
73185         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73186         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73187         (build_range_exp, build_collating_symbol):
73188         Use K&R-style defn.
73189         (re_compile_fastmap): Use '\0' to memset, not 0.
73190         (utf8_sb_map): Make the calculations more obvious.
73191         (init_dfa, parse_bracket_exp, build_charclass_op):
73192         Call calloc and cast result, as glibc does.
73193         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73194         (build_range_exp, build_collating_symbol):
73195         Now internal functions.
73196
73197         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73198
73199         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73200         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73201         Don't depend on VMS; depend on __VMS instead, for POSIX
73202         namespace cleanness.
73203         (regoff_t): Define to ssize_t, not long int.
73204
73205         Remove the REG_ macros named below.  Instead, make the old names
73206         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73207         __USE_GNU_REGEX.
73208         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73209         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73210         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73211         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73212         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73213         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73214         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73215         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73216         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73217         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73218         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73219         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73220         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73221         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73222         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73223         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73224         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73225         (REG_NREGS):
73226         Remove.  All uses replaced by the old RE_* names.
73227         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73228         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73229         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73230         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73231         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73232         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73233         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73234         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73235         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73236         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73237         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73238         Don't bother having these macros be independent of each others'
73239         values, since they no longer exist in the POSIX name space.
73240
73241         Rename the following member names back to their old names,
73242         unless !__USE_GNU_REGEX.  All uses changed back.
73243         (buffer): Renamed from re_buffer.
73244         (allocated): Renamed from re_allocated.
73245         (used): Renamed from re_used.
73246         (syntax): Renamed from re_syntax.
73247         (fastmap): Renamed from re_fastmap.
73248         (translate): Renamed from re_translate.
73249         (can_be_null): Renamed from re_can_be_null.
73250         (regs_allocated): Renamed from re_regs_allocated.
73251         (fastmap_accurate): Renamed from re_fastmap_accurate.
73252         (no_sub): Renamed from re_no_sub.
73253         (not_bol): Renamed from re_not_bol.
73254         (not_eol): Renamed from re_not_eol.
73255         (newline_anchor): Renamed from re_newline_anchor.
73256         (num_regs): Renamed from rm_num_regs.
73257         (start): Renamed from rm_start.
73258         (end): Renamed from rm_end.
73259
73260         (free_state): Move up a bit.
73261
73262         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73263         #define to be empty.
73264         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73265         when that is what is intended.
73266         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73267         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73268         (MAX): New macro.
73269         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73270         All uses changed back to re_malloc, etc.  It's now the caller's
73271         responsibility to check for overflow; all callers changed.
73272         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73273         (re_x2nrealloc): Remove.
73274         (free_state): Remove decl.
73275
73276         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73277         (re_set_registers, re_exec):
73278         Use K&R-style defn.
73279
73280         2006-01-31  Roland McGrath  <roland@redhat.com>
73281
73282         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73283         Reported by Mike Frysinger <vapier@gentoo.org>.
73284
73285         2006-01-15  Andreas Jaeger  <aj@suse.de>
73286
73287         [BZ #1950]
73288         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73289         build_wcs_upper_buffer change.
73290         (build_wcs_upper_buffer): Change return type.
73291
73292         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73293
73294         * lib/regex_internal.h: Include <stdint.h> if available.
73295
73296         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73297
73298         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73299
73300         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73301
73302         * lib/regcomp.c: Adjust for changed secondary hash function.
73303
73304         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73305
73306         * lib/regex.h: Pretty printing.
73307         Clean up namespace a bit.
73308
73309         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73310
73311         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73312         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73313
73314         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73315                     Ulrich Drepper  <drepper@redhat.com>
73316
73317         [BZ #1302]
73318         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73319         changed.
73320         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73321
73322         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73323
73324         [BZ #281]
73325         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73326         * lib/regcomp.c: Remove unnecessary uses of
73327         unsigned RE_TRANSLATE_TYPE.
73328         * lib/regex_internal.h: Likewise.
73329         * lib/regex_internal.c: Likewise.
73330         * lib/regexec.c: Likewise.
73331         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73332
73333         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73334
73335         * lib/regexec.c (find_recover_state): Remove unnecessary
73336         initialization.
73337         (transit_state_bkref): Make DFA a const pointer.
73338         (get_subexp): Likewise.
73339         (check_arrival): Likewise.
73340         (update_cur_sifted_state): Likewise.
73341         (re_search_internal): Likewise.
73342         (prune_impossible_nodes): Likewise.
73343         (acquire_init_state_context): Likewise.
73344         (proceed_next_node): Likewise.
73345         (set_regs): Likewise.
73346         (free_fail_stack_return): Likewise.
73347         (check_arrival_expand_ecl): Mark DFA parameter as const.
73348         (check_arrival_expand_ecl_sub): Likewise.
73349         (check_subexp_limits): Likewise.
73350         (sub_epsilon_src_nodes):  Likewise.
73351         (add_epsilon_src_nodes):  Likewise.
73352         (merge_state_array): Likewise.
73353         (update_regs): Likewise.
73354         (build_trtable): Likewise.
73355         (sift_states_backward): Mark MCTX parameter as const.
73356         (build_sifted_states): Likewise.
73357         (update_cur_sifted_state): Likewise.
73358         (sift_states_mkref): Likewise.
73359         (check_arrival_expand_ecl): Mark eclosure as const.
73360         (check_dst_limits_calc_pos_1): Likewise.
73361         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73362         pointer.
73363
73364         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73365
73366         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73367         (transit_state_sb): Likewise.
73368         (transit_state_mb): Likewise.
73369         (sift_states_iter_mb): Likewise.
73370         (check_arrival_add_next_nodes): Likewise.
73371         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73372         [_LIBC] (re_search_2_stub): Use mempcpy.
73373
73374         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73375         mbrtowc for very simple UTF-8 case.
73376
73377         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73378         a pointer-to-const.
73379         (re_acquire_state_context): Likewise.
73380         * lib/regex_internal.h: Adjust prototypes.
73381
73382         * lib/regex.c: Prevent using C++ compilers.
73383
73384         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73385         (re_acquire_state_context): Likewise.
73386
73387 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73388
73389         * modules/regex (Depends-on): Add ssize_t.
73390
73391 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73394         translation table.
73395
73396 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73399
73400 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73401             Bruno Haible  <bruno@clisp.org>
73402
73403         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73404         <sys/types.h> and <inttypes.h>.
73405
73406 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73407
73408         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73409         `__error_t_defined', so argp.h will not typedef the former.
73410
73411 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73414         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73415         glibc names.  Even if glibc is changed to conform to POSIX, the
73416         traditional names will be available anyway, since regex depends on
73417         the extensions module.  Also, fix a longstanding typo in the
73418         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73419         reported by Emanuele Giaquinta.  Also, change sense of cached
73420         variable, so that the message makes sense.
73421
73422 2006-03-24  Simon Josefsson  <jas@extundo.com>
73423
73424         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73425         including some doc fixes.
73426         (base64_encode_alloc): Fix +1 bug on allocation failures.
73427
73428 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73429
73430         * lib/base64.c (base64_encode): Do not read past end of array with
73431         unsanitized input on systems with CHAR_BIT > 8.
73432
73433 2006-03-24  Eric Blake  <ebb9@byu.net>
73434
73435         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73436
73437 2006-03-22  Karl Berry  <karl@gnu.org>
73438
73439         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73440         * config/srclistvars.sh (COREUTILS): new var.
73441
73442 2006-03-17  Jim Meyering  <jim@meyering.net>
73443
73444         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73445         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73446
73447 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73450         no longer needs it.  Instead, check that regoff_t is as least
73451         as wide as ptrdiff_t.
73452
73453         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73454         so that our regex.h stays compatible with the installed regex.
73455         This is helpful for installers who configure --without-included-regex.
73456         Problem reported by Emanuele Giaquinta.
73457
73458 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73461         Typedef to long int, not to off_, as POSIX will likely change
73462         in that direction.
73463
73464 2006-03-15  Eric Blake  <ebb9@byu.net>
73465
73466         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73467
73468 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73469
73470         * lib/argp-help.c (validate_uparams): Fix typo
73471         * lib/argp-parse.c (argp_default_options): Consistently begin help
73472         messages with a lowercase letter.
73473
73474 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73477         overrun buffers and shouldn't be used (much as gets shouldn't be
73478         used).
73479         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73480
73481 2006-03-08  Simon Josefsson  <jas@extundo.com>
73482
73483         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73484         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73485
73486 2006-03-08  Simon Josefsson  <jas@extundo.com>
73487
73488         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73489         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73490
73491 2006-03-08  Simon Josefsson  <jas@extundo.com>
73492
73493         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73494         signal that configure disabled the device.
73495
73496 2006-03-08  Simon Josefsson  <jas@extundo.com>
73497
73498         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73499         languages.
73500
73501 2006-03-07  Simon Josefsson  <jas@extundo.com>
73502
73503         * modules/getopt (Depends-on): Add unistd.
73504
73505         * modules/unistd: New file.
73506
73507 2006-03-07  Simon Josefsson  <jas@extundo.com>
73508
73509         * modules/gc-random: New file.
73510
73511 2006-03-07  Simon Josefsson  <jas@extundo.com>
73512
73513         * m4/unistd_h.m4: New file.
73514
73515 2006-03-07  Simon Josefsson  <jas@extundo.com>
73516
73517         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73518         test to be side-effect free by storing the result in the cache
73519         variable gl_cv_lib_readline, and moving the assignment of
73520         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73521         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73522
73523 2006-03-07  Simon Josefsson  <jas@extundo.com>
73524
73525         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73526         error on missing devices (the functions will return an error).
73527
73528         * m4/gc.m4: Move random stuff to gc-random.m4
73529
73530 2006-03-07  Simon Josefsson  <jas@extundo.com>
73531
73532         * lib/unistd_.h: New file.
73533
73534 2006-03-07  Simon Josefsson  <jas@extundo.com>
73535
73536         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73537
73538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73541         Problem reported by Juan Manuel Guerrero.
73542
73543 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73546         the unistd module.
73547         * lib/getlogin_r.c: Likewise.
73548         * lib/getlogin_r.h: Likewise.
73549         * lib/glob.c: Likewise.
73550         * lib/pagealign_alloc.c: Likewise.
73551         * lib/unistd_.h: Remove; no longer needed.
73552
73553 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73554
73555         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73556         Add unistd.
73557         * modules/c-stack (Depends-on): Add unistd.
73558         * modules/getlogin_r: Likewise.
73559         * modules/glob: Likewise.
73560         * modules/pagealign_alloc: Likewise.
73561         * modules/unistd (Files): Remove lib/unistd_.h.
73562         (EXTRA_DIST): Remove.
73563         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73564         need unistd_.h.
73565         (MOSTLYCLEANFILES): Remove unistd.h-t.
73566
73567 2006-03-03  Simon Josefsson  <jas@extundo.com>
73568
73569         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73570
73571 2006-03-03  Simon Josefsson  <jas@extundo.com>
73572
73573         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73574         libidn and bison.
73575
73576 2006-03-03  Simon Josefsson  <jas@extundo.com>
73577
73578         * build-aux/maint.mk: Add indent target.
73579
73580 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73581
73582         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73583         our replacement poll.h in any case, to avoid a differing
73584         declaration from a system header.  Seen on AIX.
73585
73586 2006-03-01  Simon Josefsson  <jas@extundo.com>
73587
73588         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73589         <kasal@ucw.cz>.
73590
73591 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * modules/gettime (Depends-on): Add extensions module.
73594         * modules/nanosleep (Depends-on): Likewise.
73595         * modules/settime (Depends-on): Likewise.
73596
73597 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73600         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73601         pedantically.
73602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73603         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73604
73605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73606         not "==".  Reported by Ralf Wildenhues.
73607
73608 2006-03-01  Karl Berry  <karl@gnu.org>
73609
73610         * doc/Copyright/request-*: new files, synced from gnuorg.
73611
73612 2006-03-01  Karl Berry  <karl@gnu.org>
73613
73614         * config/srclist.txt (Copyright/*): new entries.
73615
73616 2006-02-28  Simon Josefsson  <jas@extundo.com>
73617
73618         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73619
73620 2006-02-27  Simon Josefsson  <jas@extundo.com>
73621
73622         * lib/base64.h: Indent #define's.  From Jim Meyering
73623         <jim@meyering.net>.
73624
73625 2006-02-27  Jim Meyering  <jim@meyering.net>
73626
73627         Revert the change of 2006-02-24, so these files can continue
73628         to be sync'd from gettext.
73629         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73630         of `config.h'.
73631
73632 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * modules/intprops: New file.
73635         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73636         Add intprops.
73637         * modules/getloadavg (Files): Remove lib/intprops.h.
73638         (Depends-on): Add intprops.
73639         * modules/human: Likewise.
73640         * modules/inttostr: Likewise.
73641         * modules/openat: Likewise.
73642         * modules/sig2str: Likewise.
73643         * modules/userspec: Likewise.
73644         * modules/utimecmp: Likewise.
73645         * modules/xnanosleep: Likewise.
73646         * modules/xstrtol: Likewise.
73647
73648 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73649
73650         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73651         * modules/lock-tests (TESTS): Use $(EXEEXT).
73652         * modules/tls-tests: Likewise.
73653         * modules/argp-tests: Likewise.
73654         (check_PROGRAMS): New var, replacing...
73655         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73656
73657 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73658
73659         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73660         `config.h'.
73661
73662 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73665
73666 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73667
73668         Sync from coreutils.
73669         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73670         gl_CHDIR_SAFER.
73671
73672 2006-02-22  Jim Meyering  <jim@meyering.net>
73673
73674         Sync from coreutils.
73675         * m4/chdir-safer.m4: New file.
73676
73677 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73678
73679         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73680         AT_FDCWD exceeds INT_MAX.
73681         * lib/openat.h (AT_FDCWD): Likewise.
73682
73683 2006-02-17  Eric Blake  <address@hidden>
73684
73685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73686
73687 2006-02-16  Simon Josefsson  <jas@extundo.com>
73688
73689         * modules/getaddrinfo (Depends-on): Add sys_socket.
73690
73691 2006-02-15  Simon Josefsson  <jas@extundo.com>
73692
73693         * build-aux/maint.mk: Add dsyntax-check rule.
73694
73695 2006-02-15  Eric Blake  <ebb9@byu.net>
73696
73697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73698         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73699         'present but cannot compile' warnings on cygwin.
73700         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73701         use ws2tcpip.h if sys/socket.h works.
73702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73703         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73704
73705 2006-02-14  Simon Josefsson  <jas@extundo.com>
73706
73707         * modules/maintainer-makefile (Files): Rename.
73708
73709         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73710         and (the local) Makefile.cfg to maint-cfg.mk.
73711
73712         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73713         to the latter.
73714
73715         * modules/maintainer-makefile: New module.
73716
73717         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73718         severaly stripped to make it possible to build it up from scratch
73719         with reliable tests.
73720
73721         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73722         fixes to permit overriding the default actions when configure and
73723         makefile are not available.
73724
73725 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73726
73727         Sync from coreutils.
73728         * modules/lstat (Depends-on): Don't depend on xalloc.
73729         (License): Change from GPL to LGPL, since this is now simply a
73730         replacement for a libc function.
73731
73732 2006-02-14  Jim Meyering  <jim@meyering.net>
73733
73734         Sync from coreutils.
73735
73736         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73737         failure on deficient systems, and simplify gnulib lgpl dependencies.
73738         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73739         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73740
73741         * lib/xalloc-die.c: Remove unused definition of N_.
73742
73743 2006-02-14  Jim Meyering  <jim@meyering.net>
73744
73745         Sync from coreutils.
73746         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73747         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73748         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73749         double-quote uses of that variable, to accommodate the rare case in
73750         which getmntent is available in none of the libraries checked.  This
73751         happens at least on FreeBSD 5.0.
73752
73753 2006-02-13  Simon Josefsson  <jas@extundo.com>
73754
73755         * gnulib-tool (Usage): Fix --import, from
73756         karl@freefriends.org (Karl Berry).
73757
73758 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73759
73760         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73761
73762 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73763
73764         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73765         "autoupdate" on 2005-12-12.
73766
73767 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * modules/closeout (Depends-on): Remove atexit.
73770
73771 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73774         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73775
73776 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73779         __EXTENSIONS__ if this causes compilation to fail.  Problem
73780         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73781         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73782
73783 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73786         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73788         All uses changed.
73789
73790 2006-01-26  Simon Josefsson  <jas@extundo.com>
73791
73792         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73793         prototype is visible on mingw32.
73794
73795         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73796         for mingw32.
73797
73798         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73799         mingw32).
73800
73801 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73804         attempt to open for write; this always fails, at least on POSIX
73805         hosts.  This reinstates the 2006-01-09 change, which was
73806         inadvertently removed.
73807
73808 2006-01-26  Bruno Haible  <bruno@clisp.org>
73809
73810         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73811         Reported by Paul Eggert.
73812
73813 2006-01-26  Bruno Haible  <bruno@clisp.org>
73814             Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         * lib/stdbool_.h (_Bool)
73817         [(! (defined __cplusplus || defined __BEOS__)
73818           && !defined __GNUC__
73819           && !(defined __HP_cc || defined __xlc__
73820                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73821                || defined __sgi))]:
73822         #define to signed char in these cases too; this simplifies
73823         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73824         etc., separately) and makes it more conservative.
73825
73826 2006-01-25  Simon Josefsson  <jas@extundo.com>
73827
73828         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73829         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73830         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73831
73832 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73833
73834         * lib/argp-namefrob.h: Bugfix. Remove stray #
73835
73836 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73839         so that we test the test.
73840         Check for yet another HP-UX cc bug involving *bool |= bool.
73841
73842 2006-01-25  Karl Berry  <karl@gnu.org>
73843
73844         * config/srclist.txt (vasnprintf.c): sync lost.
73845
73846 2006-01-25  Jim Meyering  <jim@meyering.net>
73847
73848         Sync from the stable (b5) branch of coreutils:
73849
73850         * lib/fts.c (fts_children): Don't let close() clobber errno from
73851         failed fchdir().
73852
73853         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73854         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73855         a dangling symlink.  That can also happen at least for ELOOP.
73856         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73857         FYI, this bug predates the inclusion of fts.c in coreutils.
73858
73859         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73860         in their own block, so pre-c99 compilers don't object.
73861
73862         Avoid the double-free (first in fts_read, second in fts_close) that
73863         would occur when an `active' directory is made inaccessible (e.g.,
73864         via chmod a-x) during a traversal.
73865         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73866         before returning.  Reproduce this failure by
73867         mkdir -p a/b; cd a; chmod a-x . b
73868         Reported by Stavros Passas.
73869
73870 2006-01-25  Jim Meyering  <jim@meyering.net>
73871
73872         * lib/fileblocks.c: Remove more useless parentheses.
73873         * lib/readutmp.h: Likewise.
73874
73875 2006-01-25  Bruno Haible  <bruno@clisp.org>
73876
73877         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73878         warnings.
73879         Reported by Paul Eggert.
73880
73881 2006-01-25  Bruno Haible  <bruno@clisp.org>
73882
73883         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73884         rid of a trap command. For Solaris sh.
73885         Reported by Mark D. Baushke <mdb@gnu.org>.
73886
73887 2006-01-24  Simon Josefsson  <jas@extundo.com>
73888
73889         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73890         Bruno.
73891
73892 2006-01-24  Karl Berry  <karl@gnu.org>
73893
73894         * config/srclist.txt (argp-namefrob.h): sync lost.
73895
73896 2006-01-24  Jim Meyering  <jim@meyering.net>
73897
73898         * modules/openat (Files): Add lib/intprops.h.
73899         From Mark D. Baushke.
73900
73901 2006-01-24  Jim Meyering  <jim@meyering.net>
73902
73903         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73904         Reported by Mark D. Baushke.
73905
73906 2006-01-24  Jim Meyering  <jim@meyering.net>
73907
73908         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73909
73910 2006-01-24  Bruno Haible  <bruno@clisp.org>
73911
73912         * modules/strnlen (Maintainer): Change from glibc to all.
73913
73914 2006-01-24  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73917         Patch by Paul Eggert.
73918
73919 2006-01-24  Bruno Haible  <bruno@clisp.org>
73920
73921         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73922         already has it.
73923         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73924         2005-11-26.
73925
73926         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73927         'signed char' to avoid problems with the built-in _Bool type.
73928         Reported by Paul Eggert on 2005-11-26.
73929
73930 2006-01-24  Bruno Haible  <bruno@clisp.org>
73931
73932         * gnulib-tool (func_import): Avoid constructing complicated sed
73933         expressions inside backquote.
73934         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73935
73936 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73937
73938         These changes imported from libc.
73939         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73940         test and two separate function calls.
73941         * lib/strndup.c (__strndup): Add libc_hidden_def.
73942
73943 2006-01-23  Simon Josefsson  <jas@extundo.com>
73944
73945         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73946         Remove the test_*_SOURCES variable: automake infers it by default.
73947         * modules/tls-tests: Likewise.
73948
73949 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         Work around porting bugs reported by Dieter in
73952         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73953         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73954         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73955         Include "getopt.h" first, to check interface.
73956         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73957         !HAVE_DECL_GETENV.
73958         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73959         (__strndup): Revert to K&R-style function dfns, the glibc style.
73960         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73961         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73962         Include strnlen.h first, to get prototype properly.
73963         (strnlen): Renamed from __strnlen.
73964         Remove weak alias.
73965
73966 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73969
73970 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * config/srclist.txt: Adjust to reflect glibc reorganization.
73973         This affects only comments.
73974
73975 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73976
73977          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73978          Reported by Bruce Korb <bkorb@gnu.org>.
73979
73980 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73983         to pacify gcc -Wswitch-default.
73984
73985 2006-01-22  Bruno Haible  <bruno@clisp.org>
73986
73987         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73988         temporary buffer for sprintf, take into account the precision also
73989         for 'd', 'i', 'u', 'o', 'x', 'X'.
73990
73991 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73992
73993         * modules/argp-tests: New module
73994         * tests/test-argp.c: New file
73995         * tests/test-argp-2.sh: New file
73996
73997 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73998
73999         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74000         (__argp_base_name): Removed
74001         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74002         typo.
74003         (__argp_base_name): Provide macro definition or extern declaration
74004         depending on the configuration
74005
74006 2006-01-20  Simon Josefsson  <jas@extundo.com>
74007
74008         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74009
74010 2006-01-20  Simon Josefsson  <jas@extundo.com>
74011
74012         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74013
74014 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74017         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74018         Suggested by Bruno Haible.
74019
74020 2006-01-20  Karl Berry  <karl@gnu.org>
74021
74022         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74023         until changes propagate, I guess.
74024
74025 2006-01-19  Simon Josefsson  <jas@extundo.com>
74026
74027         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74028
74029 2006-01-19  Simon Josefsson  <jas@extundo.com>
74030
74031         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74032
74033 2006-01-19  Simon Josefsson  <jas@extundo.com>
74034
74035         * gnulib-tool: Set check_PROGRAMS.
74036
74037         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74038         modules/des-tests, modules/gc-arcfour-tests,
74039         modules/gc-arctwo-tests, modules/gc-des-tests,
74040         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74041         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74042         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74043         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74044         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74045         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74046         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74047         test_*_SOURCES.
74048
74049 2006-01-18  Simon Josefsson  <jas@extundo.com>
74050
74051         * modules/socklen (Depends-on): Depend on sys_socket.
74052
74053 2006-01-18  Simon Josefsson  <jas@extundo.com>
74054
74055         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74056         modules/des-tests, modules/gc-arcfour-tests,
74057         modules/gc-arctwo-tests, modules/gc-des-tests,
74058         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74059         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74060         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74061         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74062         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74063         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74064         $(EXEEXT) to automake TESTS variable, for mingw32.
74065
74066 2006-01-17  Simon Josefsson  <jas@extundo.com>
74067
74068         * modules/socklen (Include): Need sys/socket.h.
74069
74070 2006-01-17  Bruno Haible  <bruno@clisp.org>
74071
74072         * modules/ssize_t (Include): Add <sys/types.h>.
74073
74074 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74077         it's not portable and it doesn't work with cross-compiles.
74078         Problem reported by Bruno Haible.  Fix missing-$ typo in
74079         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74080         -zignore from being used with Sun's C compiler.
74081
74082 2006-01-12  Simon Josefsson  <jas@extundo.com>
74083
74084         * lib/base64.c: Fix warning, reported by Bruno Haible
74085         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74086
74087 2006-01-12  Bruno Haible  <bruno@clisp.org>
74088
74089         * modules/ldd: New file.
74090         * build-aux/ldd.sh.in: New file.
74091         * MODULES.html.sh (Support for building libraries and executables): Add
74092         ldd.
74093
74094 2006-01-12  Bruno Haible  <bruno@clisp.org>
74095
74096         * m4/ldd.m4: New file.
74097
74098 2006-01-12  Bruno Haible  <bruno@clisp.org>
74099
74100         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74101         endless loop while replacing $auxdir with build-aux.
74102
74103 2006-01-11  Simon Josefsson  <jas@extundo.com>
74104
74105         * lib/stdint_.h (SIZE_MAX): Add missing (.
74106
74107 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         Sync from coreutils.
74110         * lib/md5.c: Fix commentary typos.
74111         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74112         * lib/md5.h (__attribute__): Remove; unused.
74113         * lib/sha1.c: Fix commentary to match md5 better.
74114         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74115         so that we don't need to worry about alignment.  All uses changed.
74116         This merges the 2005-10-28 md5 change into sha1.
74117
74118 2006-01-11  Jim Meyering  <jim@meyering.net>
74119
74120         Sync from coreutils.
74121         * lib/md5.c (OP): Fix spacing.
74122
74123 2006-01-11  Bruno Haible  <bruno@clisp.org>
74124
74125         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74126         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74127         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74128
74129 2006-01-11  Bruno Haible  <bruno@clisp.org>
74130
74131         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74132         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74133         the "early" section as well.
74134
74135 2006-01-11  Bruno Haible  <bruno@clisp.org>
74136
74137         Avoid "ar: no archive members specified" error on MacOS X.
74138         * gnulib-tool (func_modules_add_dummy): New function.
74139         (func_import, func_create_testdir): Invoke it.
74140
74141 2006-01-11  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74144         with $auxdir in AC_CONFIG_FILES statements.
74145
74146 2006-01-11  Bruno Haible  <bruno@clisp.org>
74147
74148         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74149         Initialize also noinst_HEADERS to empty.
74150
74151 2006-01-11  Bruno Haible  <bruno@clisp.org>
74152
74153         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74154         variables.
74155         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74156         autoreconf.
74157
74158 2006-01-11  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74161         overridable by the user.
74162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74163
74164 2006-01-10  Simon Josefsson  <jas@extundo.com>
74165
74166         * modules/sys_socket: New file.
74167
74168 2006-01-10  Simon Josefsson  <jas@extundo.com>
74169
74170         * m4/sys_socket_h.m4: New file.
74171
74172 2006-01-10  Simon Josefsson  <jas@extundo.com>
74173
74174         * lib/socket_.h: New file.
74175
74176 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         * modules/readutmp (Maintainer): Add myself.
74179
74180 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74183         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74184         People who are still concerned with buggy memcmp implementations
74185         can invoke gl_FUNC_MEMCMP themselves.
74186
74187 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * lib/regex_internal.h (BITSET_WORD_BITS):
74190         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74191         preprocessor mishandles large unsigned values as if they were signed.
74192         Problem reported by Claudio Fontana in
74193         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74194
74195 2006-01-10  Jim Meyering  <jim@meyering.net>
74196
74197         Avoid the double-free (first in fts_read, second in fts_close) that
74198         would occur when an `active' directory is made inaccessible (e.g.,
74199         via chmod a-x) during a traversal.
74200         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74201         before returning.  Reproduce this failure by
74202         mkdir -p a/b; cd a; chmod a-x . b
74203         Reported by Stavros Passas.
74204
74205         Sync from coreutils.
74206         * lib/sha1.c: Tweak grammar in a comment.
74207
74208 2006-01-10  Jim Meyering  <jim@meyering.net>
74209
74210         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74211         Patch by Joerg Sonnenberger.
74212
74213 2006-01-10  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/readutmp: Depend on module free.
74216         * modules/strtok_r: Depend on module restrict.
74217
74218 2006-01-10  Bruno Haible  <bruno@clisp.org>
74219
74220         * modules/gettext (configure.ac): Add an invocation of
74221         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74222
74223 2006-01-10  Bruno Haible  <bruno@clisp.org>
74224
74225         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74226         Reported by Werner Lemberg <wl@gnu.org>.
74227
74228 2006-01-10  Bruno Haible  <bruno@clisp.org>
74229
74230         * lib/localcharset.c: Update from GNU gettext.
74231
74232 2006-01-10  Bruno Haible  <bruno@clisp.org>
74233
74234         * lib/argp.h (__const): Remove macro. Use const instead.
74235         * lib/argp-fmtstream.h (__const): Likewise.
74236         * lib/glob_.h (__const): Remove macro.
74237         * lib/glob-libc.h: Use const instead of __const.
74238
74239 2006-01-10  Bruno Haible  <bruno@clisp.org>
74240
74241         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74242         variable.
74243         Needed to avoid an automake error regarding the 'gettext' module.
74244
74245 2006-01-09  Simon Josefsson  <jas@extundo.com>
74246
74247         * modules/inet_ntop (Depends-on): Add restrict.
74248
74249 2006-01-09  Simon Josefsson  <jas@extundo.com>
74250
74251         * modules/gc-rijndael-tests (License): Put under LGPL.
74252
74253         * modules/gc-des-tests (License): Likewise.
74254
74255         * modules/gc-arcfour-tests (License): Likewise.
74256
74257         * modules/gc-arctwo-tests (License): Likewise.
74258
74259         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74260
74261         * modules/gc-hmac-sha1-tests (Files): Likewise.
74262
74263         * modules/gc-hmac-md5-tests (License): Likewise.
74264
74265         * modules/gc-sha1-tests (License): Likewise.
74266
74267         * modules/gc-md5-tests (License): Likewise.
74268
74269         * modules/gc-md4-tests (License): Likewise.
74270
74271         * modules/gc-md2-tests (License): Likewise.
74272
74273         * modules/gc-tests (License): Likewise.
74274
74275         * modules/des-tests (License): Likewise.
74276
74277         * modules/md4-tests (License): Likewise.
74278
74279         * modules/md2-tests (License): Likewise.
74280
74281 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         Sync from coreutils:
74284
74285         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74286         * modules/lib-ignore: New file.
74287         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74288         chdir-safer.m4, lchmod.m4.
74289         * modules/openat: Add mkdirat.c, openat-priv.h.
74290
74291 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Sync from coreutils.
74294         * m4/lib-ignore.m4: New file.
74295         * m4/lchmod.m4: New file.
74296
74297 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         Sync from coreutils.
74300         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74301         for write access: POSIX says that must fail.
74302         * lib/fts.c (diropen): Likewise.
74303         * lib/save-cwd.c (save_cwd): Likewise.
74304         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74305         well, for minor improvements on hosts that lack O_DIRECTORY.
74306         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74307         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74308         Fall back on chown if open failed with EACCES.
74309
74310         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74311         Report an error at compile-time if only a 1-second nominal clock
74312         resolution is found.
74313
74314         * lib/lchmod.h: New file.
74315         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74316         (make_dir_parents): Use lchown rather than chown, and
74317         lchmod rather than chmod.
74318
74319         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74320         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74321         "proc" reported by n0dalus.
74322
74323         * lib/mountlist.c: Include <limits.h>.
74324         (dev_from_mount_options)
74325         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74326         New function.  It no longer assumes "dev=" has the System V meaning
74327         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74328         (read_file_system_list)
74329         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74330         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74331         dev= in that case.
74332
74333         * lib/posixtm.h (PDS_PRE_2000): New macro.
74334         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74335         allow_century.  All usages changed.  Reject dates outside the range
74336         1969-1999 if PDS_PRE_2000 is used.
74337
74338 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         Sync from coreutils.
74341         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74342         (Time of day items): Mention the possibility of leap seconds.
74343         Problem reported by Dr. David Alan Gilbert.
74344
74345 2006-01-09  Jim Meyering  <jim@meyering.net>
74346
74347         Sync from coreutils.
74348
74349         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74350
74351         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74352
74353         * lib/modechange.c (mode_compile): Reject an invalid mode string
74354         that starts with an octal digit.  From Andreas Gruenbacher.
74355
74356         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74357         and dup to open_safer and dup_safer, respectively.
74358         (openat_permissive): Fix typo in comment.
74359
74360         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74361         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74362         (_): Remove; no longer needed.
74363         (openat): Renamed from rpl_openat; no need for rpl_openat
74364         since openat.h renames openat for us.
74365         Replace most of the body with a call to openat_permissive,
74366         to avoid duplicate code.
74367         Port to (probably hypothetical) environments were mode_t is
74368         wider than int.
74369         (openat_permissive): Require mode arg, so that we can check
74370         types better.  Put it just after flags.  Change cwd failure
74371         indicator from pointer-to-bool to pointer-to-errno-value.
74372         All callers changed.
74373         Invoke openat_save_fail and/or openat_restore_fail if
74374         cwd_errno is null, so that openat can call us.
74375         (openat_permissive, fdopendir, fstatat, unlinkat):
74376         Simplify errno handling to avoid some duplicate code,
74377         as it's OK to set errno on success.
74378         * lib/openat.h: Revamp code so that function macros depend on
74379         __OPENAT_PREFIX only, not also on AT_FDCWD.
74380         (openat_ro): Remove.  Caller changed to use openat_permissive.
74381         (openat_permissive): Now a macro, if not a function.
74382         (openat_restore_fail, openat_save_fail): Now always functions,
74383         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74384
74385         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74386         and openat.c.
74387         * lib/mkdirat.c: Include openat-priv.h.
74388         Remove definitions of macros defined therein.
74389         * lib/openat.c: Likewise.
74390
74391         * lib/mkdirat.c (mkdirat): New file and function.
74392         * lib/openat.h (mkdirat): Declare.
74393
74394         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74395
74396         * lib/openat.h (openat_permissive): Declare.
74397         (openat_ro): Define.
74398
74399         * lib/openat.c (EXPECTED_ERRNO): New macro.
74400         (openat_permissive): New function -- used in remove.c rewrite.
74401         (all functions): Set errno just before returning, only if there
74402         was an actual failure.
74403         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74404
74405         Emulate openat-family functions using Linux's procfs, if possible.
74406         Idea and some code based on Ulrich Drepper's glibc changes.
74407
74408         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74409         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74410         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74411         before falling back on save_cwd and restore_cwd.
74412         (fdopendir, fstatat, unlinkat): Likewise.
74413
74414         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74415         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74416
74417         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74418         as second argument to va_arg.  Otherwise, some versions of gcc
74419         warn that `if this code is reached, the program will abort'.
74420
74421 2006-01-09  Jim Meyering  <jim@meyering.net>
74422
74423         Sync from coreutils.
74424         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74425         Require openat-priv.h.
74426
74427 2006-01-09  Bruno Haible  <bruno@clisp.org>
74428
74429         * modules/strnlen (Include): Use strnlen.h.
74430
74431 2006-01-09  Bruno Haible  <bruno@clisp.org>
74432
74433         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74434
74435 2006-01-09  Bruno Haible  <bruno@clisp.org>
74436
74437         * lib/sysexit_.h (EX_OK): New macro.
74438         Suggested by Martin Lambers <marlam@marlam.de>.
74439
74440 2006-01-09  Bruno Haible  <bruno@clisp.org>
74441
74442         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74443         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74444
74445 2006-01-09  Bruno Haible  <bruno@clisp.org>
74446
74447         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74448         numbers.
74449
74450 2006-01-09  Bruno Haible  <bruno@clisp.org>
74451
74452         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74453         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74454         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74455         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74456
74457 2006-01-09  Bruno Haible  <bruno@clisp.org>
74458
74459         * build-aux/javacomp.sh.in: New file, moved from lib/.
74460         * modules/javacomp-script (Files): Update.
74461         (configure.ac): Add AC_CONFIG_FILES invocation.
74462         (EXTRA_DIST): Remove variable.
74463
74464         * build-aux/javaexec.sh.in: New file, moved from lib/.
74465         * modules/javaexec (Files): Update.
74466         (configure.ac): Add AC_CONFIG_FILES invocation.
74467         (EXTRA_DIST): Remove javaexec.sh.in.
74468
74469         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74470         * modules/csharpcomp-script (Files): Update.
74471         (configure.ac): Add AC_CONFIG_FILES invocation.
74472         (EXTRA_DIST): Remove variable.
74473
74474         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74475         * modules/csharpexec (Files): Update.
74476         (configure.ac): Add AC_CONFIG_FILES invocation.
74477         (EXTRA_DIST): Remove csharpexec.sh.in.
74478
74479 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74480
74481         Sync from coreutils.
74482
74483         Add POSIX ACL support
74484         * lib/acl.h (copy_acl, set_acl): Add declarations.
74485         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74486         systems other than Linux.
74487         (chmod_or_fchmod): New function: use fchmod when possible,
74488         and chmod otherwise.
74489         (file_has_acl): Add a POSIX ACL implementation, with a
74490         Linux-specific subcase.
74491         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74492         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74493         acls are unsupported.
74494         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74495         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74496         are unsupported.
74497
74498 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74499
74500         Sync from coreutils.
74501         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74502
74503 2006-01-07  Bruno Haible  <bruno@clisp.org>
74504
74505         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74506         gl_EARLY.
74507
74508 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74509
74510         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74511         Problem reported for Mingw by Mark Junker.
74512
74513 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * README: Gnulib normally doesn't generate a tarball.
74516
74517 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74520         long int, not int, for nanosecond counts, so that people who are
74521         used to POSIX struct timespec won't be surprised.  Reported by Jim
74522         Meyering.
74523
74524 2005-12-28  Bruno Haible  <bruno@clisp.org>
74525
74526         * build-aux/config.rpath: Update from GNU gettext.
74527
74528 2005-12-16  Jim Meyering  <jim@meyering.net>
74529
74530         * modules/fprintftime: New module.
74531         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74532
74533 2005-12-16  Jim Meyering  <jim@meyering.net>
74534
74535         * m4/fprintftime.m4: New file.
74536
74537 2005-12-16  Jim Meyering  <jim@meyering.net>
74538
74539         * lib/fprintftime.c, lib/fprintftime.h: New files.
74540
74541 2005-12-15  Simon Josefsson  <jas@extundo.com>
74542
74543         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74544         new m4/socklen.m4.
74545
74546 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74547
74548         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74549         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74550
74551 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74552
74553         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74554         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74555         struct uparams is valid. Fall back to the default values if it is
74556         not.
74557
74558 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74559
74560         * modules/argp (Files): Add argp-pin.c
74561         (Depends-on): dirname
74562         (lib_SOURCES): Add argp-pin.c
74563
74564 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74565
74566         * m4/argp.m4:  Check if program_invocation_name and
74567         program_invocation_short_name are declared and define appropriate
74568         macros if they are not.
74569
74570 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74571
74572         * lib/argp-help.c (__argp_base_name): New function
74573         (__argp_short_program_name): Rewrite using __argp_base_name
74574         * lib/argp-namefrob.h: Define program_invocation_name and
74575         program_invocation_short_name if requested
74576         (__argp_base_name): Add prototype
74577         * lib/argp-parse.c (argp_def): Use gettext wrappers
74578         (argp_default_parser): Use __argp_base_name
74579         * lib/argp-pin.c: New file. Defines program_invocation_name and
74580         program_invocation_short_name on systems that lack them.
74581
74582 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74585         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74586         porting problem reported by Georg Schwarz in
74587         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74588
74589 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74592         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74593         porting problem reported by Georg Schwarz in
74594         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74595
74596 2005-12-05  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74599         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74600         Reported by Mark Junker <mjscod@gmx.de>.
74601
74602 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74605         Use implementation from Albert Chin, with some
74606         comments/corrections by Stepan Kasal and myself.
74607
74608 2005-12-02  Bruno Haible  <bruno@clisp.org>
74609
74610         * gnulib-tool (func_import): Accept GPLed build tool modules when
74611         --lgpl is given.
74612         * modules/csharpcomp-script: New file.
74613         * modules/csharpcomp: Depend on it.
74614         * modules/javacomp-script: New file.
74615         * modules/javacomp: Depend on it.
74616         Suggested by Simon Josefsson.
74617
74618 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74621         statement, to work around an HP-UX 10.20 compiler bug reported by
74622         Peter O'Gorman.
74623
74624 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * modules/savedir (Depends-on): Add openat.
74627
74628 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74631         (uintmax_t) [defined uintmax_t]: Do not declare.
74632         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74633         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74634         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74635         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74636         sake of portability to weird hosts that C allows (though we don't
74637         know of any practical examples).
74638
74639         * lib/savedir.h (fdsavedir): New decl.
74640         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74641         contains most of the former guts of savedir.
74642         (savedir): Use savedirstream.
74643         Include "openat.h".
74644
74645 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * modules/obstack (Files): Add m4/ulonglong.m4.
74648         Problem reported by Davide Angelocola.
74649
74650 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74653         coreutils no longer futzes with rounding modes.
74654
74655 2005-11-14  Jim Meyering  <jim@meyering.net>
74656
74657         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74658         replacement of mkstemp.
74659
74660 2005-11-10  Simon Josefsson  <jas@extundo.com>
74661
74662         * lib/readline.c: Remove EOL.
74663
74664 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * modules/gethrxtime (Depends-on): Add gettime.
74667
74668 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74671         or gettimeofday; no longer needed.
74672
74673 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74676         time business.
74677         (gethrxtime) [! (HAVE_NANOUPTIME
74678         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74679         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74680         our own approximation.
74681
74682 2005-11-08  Eric Blake  <ebb9@byu.net>
74683
74684         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74685
74686 2005-11-08  Eric Blake  <ebb9@byu.net>
74687
74688         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74689
74690 2005-11-04  Bruno Haible  <bruno@clisp.org>
74691
74692         * gnulib-tool: Implement --update mode.
74693
74694 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         Fix porting problem reported by Theodoros V. Kalamatianos.
74697         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74698         Don't assume that futimes failing means we must fail.
74699
74700 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74703         variables to suggest the intended function of the PATH_MAX check.
74704
74705 2005-10-30  Kean Johnston  <jkj@sco.com>
74706
74707         Trivial changes to support SCO systems.
74708         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74709         as PATH_MAX.
74710         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74711         where __ptr is null when no I/O is pending.
74712
74713 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74714
74715         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74716         leave errno alone.  Problem reported by Dmitry V. Levin.
74717
74718 2005-10-28  Simon Josefsson  <jas@extundo.com>
74719
74720         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74721         Test more.
74722
74723         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74724
74725         * modules/md2, modules/md2-tests: New files.
74726
74727 2005-10-28  Simon Josefsson  <jas@extundo.com>
74728
74729         * m4/inet_ntop.m4: More tests.
74730
74731         * m4/gc-md2.m4, md2.m4: New file.
74732
74733 2005-10-28  Simon Josefsson  <jas@extundo.com>
74734
74735         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74736         "restrict" keywords, as per POSIX.  Protect the function
74737         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74738         Don't use K&R prototypes.  Check the sprintf return values.
74739         Re-define EAFNOSUPPORT if not present.  Indent.
74740
74741         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74742         suggested by Bruno Haible <bruno@clisp.org>.
74743
74744         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74745
74746         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74747
74748         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74749         libgcrypt).
74750
74751         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74752
74753         * lib/md2.h, lib/md2.c: New files.
74754
74755 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74758         errno alone.  Problem reported by Frederic Jolliton.
74759
74760 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         * modules/verify (License): Change from GPL to LGPL.  This is a
74763         tiny module and there are apparently near-equivalents that are
74764         under the BSD license.
74765
74766 2005-10-24  Simon Josefsson  <jas@extundo.com>
74767
74768         * modules/sha1: Relicense to LGPL.
74769
74770 2005-10-24  Simon Josefsson  <jas@extundo.com>
74771
74772         * lib/md4.h: Shrink buffer size, now that we changed the type.
74773
74774 2005-10-23  Simon Josefsson  <jas@extundo.com>
74775
74776         * gnulib-tool (func_import): Fix --tests-base.
74777
74778 2005-10-22  Simon Josefsson  <jas@extundo.com>
74779
74780         * modules/arcfour (Depends-on): Need stdint.
74781
74782 2005-10-22  Simon Josefsson  <jas@extundo.com>
74783
74784         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74785         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74786
74787 2005-10-22  Simon Josefsson  <jas@extundo.com>
74788
74789         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74790         suggested by Bruno Haible <bruno@clisp.org>.
74791
74792 2005-10-22  Simon Josefsson  <jas@extundo.com>
74793
74794         * lib/crc.h: Include stddef.h, for size_t.
74795
74796 2005-10-22  Simon Josefsson  <jas@extundo.com>
74797
74798         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74799         arcfour_context struct (simplify test vector testing in GNU
74800         Shishi).
74801
74802 2005-10-21  Simon Josefsson  <jas@extundo.com>
74803
74804         * modules/des, modules/des-tests: New files.
74805
74806         * modules/gc-des, modules/gc-des-tests: New files.
74807
74808         * tests/test-des.c, tests/test-gc-des.c: New file.
74809
74810 2005-10-21  Simon Josefsson  <jas@extundo.com>
74811
74812         * modules/arctwo, modules/arctwo-tests: New files.
74813
74814         * tests/test-arctwo.c: New file.
74815
74816         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74817
74818         * tests/test-gc-arctwo.c: New file.
74819
74820 2005-10-21  Simon Josefsson  <jas@extundo.com>
74821
74822         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74823         Bruno Haible <bruno@clisp.org>.
74824
74825         * m4/gc-des.m4: New file.
74826
74827 2005-10-21  Simon Josefsson  <jas@extundo.com>
74828
74829         * m4/arctwo.m4: New file.
74830
74831         * m4/gc-arctwo.m4: New file.
74832
74833 2005-10-21  Simon Josefsson  <jas@extundo.com>
74834
74835         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74836         block.
74837
74838 2005-10-21  Simon Josefsson  <jas@extundo.com>
74839
74840         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74841         <bruno@clisp.org>.
74842
74843         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74844
74845         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74846         Bruno Haible <bruno@clisp.org>.
74847
74848         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74849         <bruno@clisp.org>.
74850
74851 2005-10-21  Simon Josefsson  <jas@extundo.com>
74852
74853         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74854
74855 2005-10-21  Simon Josefsson  <jas@extundo.com>
74856
74857         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74858
74859 2005-10-21  Simon Josefsson  <jas@extundo.com>
74860
74861         * lib/des.h, lib/des.c: New files.
74862
74863         * lib/gc-gnulib.c: Support DES.c
74864
74865 2005-10-21  Simon Josefsson  <jas@extundo.com>
74866
74867         * lib/arctwo.h, lib/arctwo.c: New files.
74868
74869         * lib/gc-gnulib.c: Support ARCTWO.
74870
74871 2005-10-21  Simon Josefsson  <jas@extundo.com>
74872
74873         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74874         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74875
74876 2005-10-21  Simon Josefsson  <jas@extundo.com>
74877
74878         * gnulib-tool (func_import, func_create_testdir): Define automake
74879         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74880         Makefile.am snippet),
74881         suggested by Bruno Haible <bruno@clisp.org>.
74882
74883         * modules/gc (Makefile.am): Use it.
74884
74885 2005-10-21  Bruno Haible  <bruno@clisp.org>
74886
74887         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74888         patch.
74889
74890 2005-10-19  Simon Josefsson  <jas@extundo.com>
74891
74892         * tests/test-gc-rijndael.c: New file.
74893
74894         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74895
74896 2005-10-19  Simon Josefsson  <jas@extundo.com>
74897
74898         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74899         interface too.
74900
74901 2005-10-19  Simon Josefsson  <jas@extundo.com>
74902
74903         * tests/test-gc-arcfour.c: New file.
74904
74905         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74906
74907 2005-10-19  Simon Josefsson  <jas@extundo.com>
74908
74909         * modules/gc-md4, modules/gc-md4-tests: New file.
74910
74911         * tests/test-gc-md4.c: New file.
74912
74913 2005-10-19  Simon Josefsson  <jas@extundo.com>
74914
74915         * m4/gc-md4.m4: New file.
74916
74917 2005-10-19  Simon Josefsson  <jas@extundo.com>
74918
74919         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74920         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74921         <kasal@ucw.cz>.
74922
74923 2005-10-19  Simon Josefsson  <jas@extundo.com>
74924
74925         * m4/gc-arcfour.m4: New file.
74926
74927         * m4/gc-rijndael.m4: New file.
74928
74929 2005-10-19  Simon Josefsson  <jas@extundo.com>
74930
74931         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74932
74933 2005-10-19  Simon Josefsson  <jas@extundo.com>
74934
74935         * lib/gc-gnulib.c: Support ARCFOUR.
74936
74937 2005-10-19  Simon Josefsson  <jas@extundo.com>
74938
74939         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74940         support.
74941
74942         * lib/gc.h: Add ECB enum type.
74943
74944         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74945
74946 2005-10-18  Simon Josefsson  <jas@extundo.com>
74947
74948         * tests/test-md5.c: New file.
74949
74950         * modules/md5-tests: New file.
74951
74952 2005-10-18  Simon Josefsson  <jas@extundo.com>
74953
74954         * tests/test-md4.c: New file.
74955
74956         * modules/md4, modules/md4-tests: New files.
74957
74958 2005-10-18  Simon Josefsson  <jas@extundo.com>
74959
74960         * m4/md4.m4: New file.
74961
74962 2005-10-18  Simon Josefsson  <jas@extundo.com>
74963
74964         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74965
74966 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74967
74968         * gnulib-tool (func_create_testdir): Omit the second check whether
74969         BUILT_SOURCES in nonempty.
74970
74971 2005-10-17  Simon Josefsson  <jas@extundo.com>
74972
74973         * tests/test-rijndael.c: New file.
74974
74975 2005-10-17  Simon Josefsson  <jas@extundo.com>
74976
74977         * modules/sha1: Depend on stdint instead of md5.
74978
74979         * modules/md5: Depend on stdint, remove uint32_t.
74980
74981 2005-10-17  Simon Josefsson  <jas@extundo.com>
74982
74983         * modules/gc-sha1-tests: New file.
74984
74985         * tests/test-gc-sha1.c: New file.
74986
74987 2005-10-17  Simon Josefsson  <jas@extundo.com>
74988
74989         * m4/md5.m4: Remove call to uint32_t.m4.
74990
74991 2005-10-17  Simon Josefsson  <jas@extundo.com>
74992
74993         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74994
74995         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74996         md5.h.
74997
74998         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74999
75000         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75001
75002 2005-10-17  Simon Josefsson  <jas@extundo.com>
75003
75004         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75005
75006 2005-10-17  Simon Josefsson  <jas@extundo.com>
75007
75008         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75009
75010 2005-10-17  Simon Josefsson  <jas@extundo.com>
75011
75012         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75013
75014         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75015
75016 2005-10-17  Bruno Haible  <bruno@clisp.org>
75017
75018         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75019         that it can also be used in a test.
75020
75021 2005-10-16  Bruno Haible  <bruno@clisp.org>
75022
75023         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75024         TESTS_ENVIRONMENT, so that individual tests can augment it.
75025
75026         * gnulib-tool (func_create_testdir): Use an intermediate target for
75027         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75028         macros, like $(ALLOCA_H), which cannot be passed through the command
75029         line.
75030
75031 2005-10-15  Simon Josefsson  <jas@extundo.com>
75032
75033         * modules/rijndael-tests: New file.
75034
75035         * modules/rijndael: New file.
75036
75037 2005-10-15  Simon Josefsson  <jas@extundo.com>
75038
75039         * m4/rijndael.m4: New file.
75040
75041 2005-10-15  Simon Josefsson  <jas@extundo.com>
75042
75043         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75044
75045         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75046
75047 2005-10-14  Simon Josefsson  <jas@extundo.com>
75048
75049         * tests/test-arcfour.c: New file.
75050
75051         * modules/arcfour, modules/arcfour-tests: New files.
75052
75053 2005-10-14  Simon Josefsson  <jas@extundo.com>
75054
75055         * m4/arcfour.m4: New file.
75056
75057 2005-10-14  Simon Josefsson  <jas@extundo.com>
75058
75059         * lib/arcfour.h, lib/arcfour.c: New files.
75060
75061 2005-10-14  Roland McGrath  <roland@redhat.com>
75062
75063         Import from libc.  [BZ #1331]
75064         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75065         macro argument.
75066         Reported by Matej Vela <vela@debian.org>.
75067
75068 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75071         include <wchar.h>; no longer needed.
75072
75073 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75076
75077 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75078         and  Ulrich Drepper  <drepper@redhat.com>
75079
75080         Import from libc.
75081         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75082         instead of inline stream orientation test and two separate
75083         function calls.  Pay no attention to USE_IN_LIBIO.
75084
75085 2005-10-13  Simon Josefsson  <jas@extundo.com>
75086
75087         * modules/gc-hmac-md5-tests: New file.
75088
75089         * tests/test-gc-hmac-sha1.c: New file.
75090
75091         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75092
75093         * modules/gc-hmac-md5-tests: New file.
75094
75095         * tests/test-gc-md5.c: New file.
75096
75097         * modules/gc-md5-tests: New file.
75098
75099 2005-10-13  Simon Josefsson  <jas@extundo.com>
75100
75101         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75102         Move memory allocation outside of loop.
75103
75104 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75107         intermediate directory is in a read-only file system.  Problem
75108         reported by Eric Blake.
75109
75110 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75111
75112         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75113
75114 2005-10-12  Simon Josefsson  <jas@extundo.com>
75115
75116         * tests/test-hmac-sha1.c: New file.
75117
75118         * modules/hmac-sha1-tests: New file.
75119
75120         * modules/hmac-sha1: New file.
75121
75122 2005-10-12  Simon Josefsson  <jas@extundo.com>
75123
75124         * modules/gc-sha1: New file.
75125
75126 2005-10-12  Simon Josefsson  <jas@extundo.com>
75127
75128         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75129
75130         * tests/test-gc-pbkdf2-sha1.c: New file.
75131
75132 2005-10-12  Simon Josefsson  <jas@extundo.com>
75133
75134         * modules/gc-md5, modules/gc-hmac-md5: New files.
75135
75136         * modules/gc (Files): Remove md5, memxor and hmac files.
75137
75138 2005-10-12  Simon Josefsson  <jas@extundo.com>
75139
75140         * m4/gc-pbkdf2-sha1.m4: New file.
75141
75142         * m4/gc-hmac-sha1.m4: New file.
75143
75144         * m4/gc-sha1: New file.
75145
75146         * m4/hmac-sha1.m4: New file.
75147
75148 2005-10-12  Simon Josefsson  <jas@extundo.com>
75149
75150         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75151
75152         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75153
75154 2005-10-12  Simon Josefsson  <jas@extundo.com>
75155
75156         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75157         suggested by Bruno Haible <bruno@clisp.org>.
75158
75159 2005-10-12  Simon Josefsson  <jas@extundo.com>
75160
75161         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75162
75163 2005-10-12  Simon Josefsson  <jas@extundo.com>
75164
75165         * lib/gc-pbkdf2-sha1.c: New file.
75166
75167         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75168
75169 2005-10-12  Simon Josefsson  <jas@extundo.com>
75170
75171         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75172
75173         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75174
75175 2005-10-12  Simon Josefsson  <jas@extundo.com>
75176
75177         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75178         GC_USE_HMAC_MD5, respectively.
75179
75180         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75181         (gc_md5): Fix typo.
75182
75183         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75184
75185         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75186
75187         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75188
75189 2005-10-12  Bruno Haible  <bruno@clisp.org>
75190
75191         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75192         Reported by Stepan Kasal <kasal@ucw.cz>.
75193
75194 2005-10-11  Simon Josefsson  <jas@extundo.com>
75195
75196         * tests/test-crc.c: New file.
75197
75198         * modules/crc, modules/crc-tests: New files.
75199
75200 2005-10-11  Simon Josefsson  <jas@extundo.com>
75201
75202         * m4/crc.m4: New file.
75203
75204 2005-10-11  Simon Josefsson  <jas@extundo.com>
75205
75206         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75207
75208         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75209
75210         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75211
75212 2005-10-11  Simon Josefsson  <jas@extundo.com>
75213
75214         * lib/crc.h, lib/crc.c: New files.
75215
75216         * lib/gc.h (gc_hash_buffer): Add doc.
75217
75218 2005-10-11  Bruno Haible  <bruno@clisp.org>
75219
75220         * modules/c-strcasestr: New file.
75221         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75222
75223 2005-10-11  Bruno Haible  <bruno@clisp.org>
75224
75225         * modules/c-strcase: New file.
75226         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75227
75228 2005-10-11  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/strcasecmp.c: Include limits.h.
75231         (strcasecmp): Avoid integer overflow on exotic platforms.
75232         * lib/strncasecmp.c: Include limits.h.
75233         (strncasecmp): Avoid integer overflow on exotic platforms.
75234         Reported by Paul Eggert.
75235
75236 2005-10-11  Bruno Haible  <bruno@clisp.org>
75237
75238         * lib/c-strcasestr.h: New file, from GNU gettext.
75239         * lib/c-strcasestr.c: New file, from GNU gettext.
75240
75241 2005-10-11  Bruno Haible  <bruno@clisp.org>
75242
75243         * lib/c-strcase.h: New file, from GNU gettext.
75244         * lib/c-strcasecmp.c: New file, from GNU gettext.
75245         * lib/c-strncasecmp.c: New file, from GNU gettext.
75246
75247 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * modules/mempcpy (License): GPL -> LGPL.
75250         * modules/strchrnul (License): Likewise.
75251         * modules/sysexits (License): Likewise.
75252
75253 2005-10-08  Simon Josefsson  <jas@extundo.com>
75254
75255         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75256
75257 2005-10-07  Simon Josefsson  <jas@extundo.com>
75258
75259         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75260
75261 2005-10-06  Simon Josefsson  <jas@extundo.com>
75262
75263         * tests/test-hmac-md5.c: New file.
75264
75265         * modules/hmac-md5-tests: New file.
75266
75267         * modules/hmac-md5: New file.
75268
75269 2005-10-06  Simon Josefsson  <jas@extundo.com>
75270
75271         * m4/hmac-md5.m4: New file.
75272
75273         * m4/memxor.m4: Require gl_C_RESTRICT.
75274
75275 2005-10-06  Simon Josefsson  <jas@extundo.com>
75276
75277         * lib/memxor.c (memxor): Avoid casts and warnings.
75278
75279 2005-10-06  Simon Josefsson  <jas@extundo.com>
75280
75281         * lib/hmac-md5.c: New file.
75282
75283         * lib/hmac.h: New file.
75284
75285 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75288         promotes to int, not unsigned int, to catch the AIX 5.3
75289         compiler bug.
75290
75291 2005-10-05  Simon Josefsson  <jas@extundo.com>
75292
75293         * modules/memxor: New file.
75294
75295         * modules/iconv (Files): Move config.rpath to havelib, it is used
75296         there.
75297
75298         * modules/havelib (Files): Add config.rpath.
75299
75300 2005-10-05  Simon Josefsson  <jas@extundo.com>
75301
75302         * m4/memxor.m4: New file.
75303
75304 2005-10-05  Simon Josefsson  <jas@extundo.com>
75305
75306         * lib/memxor.c (memxor): Fix compiler error.
75307
75308         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75309         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75310
75311         * lib/memxor.h, lib/memxor.c: New files.
75312
75313         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75314         we assume all systems have it, suggested by Jim Meyering
75315         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75316         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75317         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75318         same reasons.
75319
75320 2005-10-05  Simon Josefsson  <jas@extundo.com>
75321
75322         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75323
75324 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75327         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75328         needed, since the source code now assumes these .h files.
75329
75330 2005-10-05  Derek Price  <derek@ximbiot.com>
75331
75332         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75333
75334 2005-10-05  Bruno Haible  <bruno@clisp.org>
75335
75336         * modules/stdint (License): Change to LGPL.
75337
75338 2005-10-04  Simon Josefsson  <jas@extundo.com>
75339
75340         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75341         D. Baushke" <mdb@gnu.org>.
75342
75343 2005-10-04  Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/verify.h (verify_true): Provide alternative definition for C++.
75346
75347 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75350         (SSIZE_MAX): New macro, if not already defined.
75351         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75352         than 2 GiB.
75353
75354 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         Sync from coreutils.
75357         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75358         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75359         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75360         ULLONG_MAX doesn't work with 2.7.2.1.
75361
75362 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75365         From Ben Pfaff.
75366
75367         * modules/exclude (Depends-on): Depend on verify.
75368         * modules/strtoimax (Depends-on): Likewise.
75369         * modules/utimecmp (Depends-on): Likewise.
75370
75371 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * lib/exclude.c: Include verify.h.
75374         (verify): Remove.  All callers changed to use verify.h's version.
75375         * lib/strtoimax.c: Likewise.
75376         * lib/utimecmp.c: Likewis.e
75377
75378         Sync from coreutils.
75379         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75380         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75381         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75382         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75383         bother returning ENOSYS if settimeofday or stime fails; just let
75384         them return whatever errno they want to return.
75385         * lib/utimens.c: Include unistd.h, for dup2.
75386         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75387         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75388
75389 2005-10-02  Jim Meyering  <jim@meyering.net>
75390
75391         Sync from coreutils.
75392         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75393         from glibc-2.2.5 that fails for read-only files.
75394
75395 2005-10-02  Jim Meyering  <jim@meyering.net>
75396
75397         Sync from coreutils.
75398         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75399         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75400         `#if HAVE_CONFIG_H'.
75401         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75402         Remove AT_FDCWD test.
75403         Do not consume the fd unless successful.
75404         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75405         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75406         block, so that we don't even try to compile it if settimeofday is
75407         available.  This works around a compilation failure on OSF1 V5.1,
75408         due to stime requiring a `long int*' while tv_sec is `int'.
75409
75410 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75411
75412         Sync from coreutils.
75413         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75414         against `yes', rather than just testing for nonempty.
75415
75416 2005-10-01  Simon Josefsson  <jas@extundo.com>
75417
75418         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75419         and Darwin.
75420
75421         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75422         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75423         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75424         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75425         Check if struct addrinfo is declared.
75426
75427 2005-10-01  Simon Josefsson  <jas@extundo.com>
75428
75429         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75430         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75431         AI_* and EAI_* definitions.  Protect function declarations.
75432
75433 2005-10-01  Jim Meyering  <jim@meyering.net>
75434
75435         Sync from coreutils.
75436
75437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75438         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75439         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75441         in the inet and nsl libraries.  Required on Solaris 5.7.
75442
75443 2005-10-01  Jim Meyering  <jim@meyering.net>
75444
75445         Sync from coreutils.
75446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75447         in the inet and nsl libraries.  Required on Solaris 5.7.
75448
75449 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75450
75451         * lib/getdelim.c (getdelim): Remove unused variables.
75452
75453 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75456         so that the code works even with ancient cpp.  Portability problem
75457         with GCC 2.7.2.1 reported by Thomas M.Ott.
75458
75459 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * modules/regex (Depends-on): Add strcase.
75462
75463         * modules/gethostname (Licence): Change from GPL to LGPL, since
75464         gethostname.c is a trivial implementation of a standard library
75465         function.
75466         * modules/poll (License): Change from GPL to LGPL, since it's
75467         derived from LGPL code.
75468
75469 2005-09-27  Jim Meyering  <jim@meyering.net>
75470
75471         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75472         HAVE_CONFIG_H.
75473
75474         * lib/intprops.h (signed_type_or_expr__): Define.
75475         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75476         for unsigned types.
75477
75478 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * lib/verify.h (verify_expr): Remove, replacing with:
75481         (verify_true): New macro that returns true instead of void.
75482         (verify_type__): Remove.
75483         (verify): Use verify_true rather than verify_type__.
75484
75485 2005-09-26  Bruno Haible  <bruno@clisp.org>
75486
75487         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75488         is necessary.
75489         (lib_SOURCES): Remove mbchar.c.
75490         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75491         (Files): Add m4/mbrtowc.m4.
75492         * modules/mbiter: Likewise.
75493         * modules/mbuiter: Likewise.
75494
75495 2005-09-26  Bruno Haible  <bruno@clisp.org>
75496
75497         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75498         compile mbchar.c if they are not both present.
75499         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75500         * m4/mbiter.m4 (gl_MBITER): Likewise.
75501         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75502         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75503         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75504
75505 2005-09-25  Jim Meyering  <jim@meyering.net>
75506
75507         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75508         also uses socklen_t.
75509
75510 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75511
75512         * lib/utimens.c (ENOSYS): Define if not already defined.
75513         (futimens): Support having a null PATH if the file descriptor
75514         is nonnegative.
75515
75516         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75517         Remove.
75518         (__attribute): Define to empty unless GCC 3.1 or later.
75519         This works around a core dump on OpenBSD 3.4, which has GCC
75520         2.95.3, which dumps core when given __attribute__(()).  It also
75521         simplifies other tests, since we really don't want to bother with
75522         worrying about which ancient version of GCC supported what.
75523         Original problem reported by Yoann Vandoorselaere, with part of
75524         the fix suggested by Derek Price.
75525
75526 2005-09-24  Jim Meyering  <jim@meyering.net>
75527
75528         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75529         so we can once again use a positive bitfield width of 1 -- now we
75530         don't have to explain why we were using a bitfield width of 2.
75531
75532 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75535         and similarly for the other external symbols.  Problem reported
75536         by James Gallager.
75537
75538         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75539         bug reported by Jim Meyering.
75540
75541         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75543         not needed, since socklen is a prerequisite module.
75544
75545 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75546
75547         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75548         Problem reported by Eric Blake.
75549         (getaddrinfo): Initialize se so that it's not garbage.
75550         Redo internal storage allocation so that it doesn't make unportable
75551         assumptions about alignment.
75552         Fix a memory leak.
75553
75554         * lib/utimens.c (futimens): Use futimesat if available.
75555         Prefer it to futimes since it doesn't have the futimes bug.
75556
75557         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75558         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75559         Instead, declare a function that returns a pointer to an array,
75560         and use verify_type__ to declare the size of the array.
75561         Problem and germ of a solution reported by Bruno Haible.
75562         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75563         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75564
75565 2005-09-23  Jim Meyering  <jim@meyering.net>
75566
75567         Sync from coreutils.
75568         Correct build failure (socklen_t not defined) on at least
75569         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75571
75572 2005-09-23  Jim Meyering  <jim@meyering.net>
75573
75574         * modules/getaddrinfo (Depends-on): Add socklen.
75575
75576 2005-09-23  Bruno Haible  <bruno@clisp.org>
75577
75578         * tests/test-verify.c: New file.
75579
75580 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         Sync from coreutils.
75583
75584         * modules/argmatch (Depends-on): Add verify.
75585         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75586         unistd-safer.
75587         * modules/save-cwd (Depends-on): Likewise.
75588
75589         * modules/openat (Files): Add lib/openat-die.c.
75590         (Depends-on): Remove error, exitfail.
75591         Add dirname.
75592
75593         * modules/verify: New file.
75594         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75595         with "verify" module.
75596
75597 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         Sync from coreutils.
75600
75601         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75602         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75603         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75604         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75605         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75606         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75607         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75608         Don't bother checking for string.h, stdlib.h, unistd.h.
75609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75610         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75611         module's job.
75612         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75613         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75614
75615         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75616         (gl_GETDATE): Use it.
75617
75618         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75619
75620 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         Sync from coreutils.
75623
75624         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75625         stat-time.h.
75626         * lib/argmatch.h: Include verify.h
75627         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75628         (ARGMATCH_ASSERT): Remove; unused.
75629         * lib/canonicalize.c: Assume STDC_HEADERS.
75630         * lib/exclude.c: Include "strcase.h".
75631         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75632         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75633         and stdio-safer.h.
75634         (getusershell): Call fopen, not fopen_safer.
75635         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75636         Do not include unistd-safer.h.
75637         (save_cwd): Don't call fd_safer; no longer needed
75638         now that we include fcntl--.h.
75639
75640         * lib/getdate.y (relative_time): New type.
75641         (RELATIVE_TIME_0): New constant.
75642         (parser_control): Use relative_time instead of doing it ourselves.
75643         (%union): Add new relative_time rel member.
75644         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75645         Now typeless.
75646         (relunit, relunit_snumber): Now of type rel.
75647         (zone, rel, relunit, get_date): Adjust to above changes.
75648
75649         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75650         Do not include unistd-safer.h.
75651         (getloadavg): Don't call fd_safer; no longer needed
75652         now that we include fcntl--.h.
75653
75654         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75655         (make_dir_parents): Treat ENOSYS like EEXIST.
75656
75657         Improve quality of diagnostics on restore_cwd failure.
75658         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75659         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75660         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75661         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75662         each time through the loop.  Do not diagnose restore_cwd failure;
75663         that is the caller's job (and perhaps the caller does not care).
75664
75665         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75666         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75667         If the file already exists but is not a directory, don't bother
75668         to try to make its parents.
75669         Close potential file descriptor leak if we can't chdir("/") (!).
75670         Don't always return true if chdir($PWD) fails; return true only
75671         if the requested action was done successfully (except for the
75672         chdir($PWD)).
75673         Don't log final directory unless we actually made it.
75674         Refactor to avoid duplicate code to fix up permissions.
75675         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75676
75677         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75678         to make it a bit faster and (I hope) clearer.
75679         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75680         Fix bug in formats like %2N.
75681
75682         * lib/verify.h: New file.
75683
75684 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Sync from coreutils.
75687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75688
75689 2005-09-22  Jim Meyering  <jim@meyering.net>
75690
75691         Sync from coreutils.
75692
75693         * m4/lstat.m4 (gl_FUNC_LSTAT):
75694         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75695         Remove obsolete comment.
75696         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75697         * m4/xstrtod.m4: Likewise.
75698
75699         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75700
75701 2005-09-22  Jim Meyering  <jim@meyering.net>
75702
75703         Sync from coreutils.
75704
75705         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75706
75707         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75708         the .tm_year member, since otherwise gcc-4.0 would now warn about
75709         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75710
75711         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75712         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75713
75714         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75715         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75716         when run in a time zone for which daylight savings time is in effect
75717         for the starting date.
75718
75719         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75720         stop us from restricting permissions of just-created absolute-named
75721         directories.
75722         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75723         to restore initial working directory.
75724         * lib/mkdir-p.c (make_dir_parents): New parameter:
75725         different_working_dir, to tell caller if/when we change the working
75726         directory and are unable to return to the initial one.
75727         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75728         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75729         `return false'.  This fixes a bug introduced on 2004-07-30.
75730
75731         * lib/openat.c (fdopendir): Be sure to close the supplied
75732         file descriptor before returning.  This makes our replacement
75733         implementation a little closer to Solaris's, where fdopendir
75734         ties the file descriptor to the returned DIR* pointer.
75735         * lib/openat.c (unlinkat): New function.
75736         * lib/openat.h (unlinkat): Add prototype.
75737         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75738         (openat_restore_fail): Rename from openat_restore_die.
75739         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75740
75741         Provide an alternative to exiting immediately upon save_cwd or
75742         restore_cwd failure.  Now, an application can arrange e.g.,
75743         to perform a longjump in that case.
75744         * lib/openat.c: Include dirname.h.
75745         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75746         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75747         and openat_restore_die rather than calling error directly.
75748         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75749
75750         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75751         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75752         define.
75753
75754         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75755         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75756                             int utc, int nanoseconds);
75757         Background:
75758         date should not have to allocate a megabyte of virtual memory to
75759         handle a format argument like +%1048575T.  When implemented with
75760         strftime, it must allocate such a buffer, use strftime to fill it
75761         in, print it, then free it.
75762         With fprintftime, it simply prints everything and exits.
75763         With no need for memory allocation, that's one fewer way to fail.
75764         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75765         optional field width, not before, so we accept %9:z, not %:9z.
75766         (my_strftime): Be sure to use L_('x') for literals.
75767
75768         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75769         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75770         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75771         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75772         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75773         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75774         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75775         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75776         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75777         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75778         * lib/xgethostname.c, lib/xreadlink.c:
75779         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75780
75781         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75782         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75783         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75784         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75785         and don't include <sys/file.h>).
75786
75787 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75788
75789         Sync from coreutils.
75790
75791         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75792         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75793         [!LDAV_DONE]: Avoid unused variable warning.
75794
75795 2005-09-21  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/unicodeio.h (unicode_to_mb): New declaration.
75798
75799 2005-09-20  Derek Price  <derek@ximbiot.com>
75800
75801         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75802         getaddrinfo.h.
75803
75804 2005-09-20  Bruno Haible  <bruno@clisp.org>
75805
75806         * gnulib-tool: Remove trailing slashes from the values specified for
75807         --source-base, --m4-base, --tests-base, --aux-dir.
75808         Suggested by Simon Josefsson <jas@extundo.com>.
75809
75810 2005-09-20  Bruno Haible  <bruno@clisp.org>
75811
75812         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75813         func_modules_to_filelist, func_import, func_create_testdir): Make all
75814         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75815         change when gnulib-tool is invoked in a different locale.
75816
75817 2005-09-19  Simon Josefsson  <jas@extundo.com>
75818
75819         * m4/socklen.m4: Fix typo.
75820
75821 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75822
75823         Use a consistent style for including <config.h>.
75824         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75825         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75826         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75827         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75828         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75829         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75830         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75831         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75832         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75833         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75834         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75835         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75836         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75837         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75838         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75839         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75840         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75841         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75842         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75843         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75844         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75845         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75846         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75847         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75848         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75849         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75850         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75851         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75852         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75853         lib/xstrtoumax.c, lib/yesno.c:
75854         Standardize inclusion of config.h.
75855         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75856         lib/inttostr.h:  Removed inclusion of config.h from header files.
75857         * lib/inttostr.c:  Adjusted in-tree users.
75858         * lib/timespec.h: Remove superfluous warning to include config.h.
75859         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75860         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75861         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75862         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75863         config.h with HAVE_CONFIG_H.
75864
75865 2005-09-19  Jim Meyering  <jim@meyering.net>
75866
75867         * modules/pathmax (License): Change to LGPL.
75868
75869 2005-09-19  Derek Price  <derek@ximbiot.com>
75870
75871         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75872
75873 2005-09-19  Bruno Haible  <bruno@clisp.org>
75874
75875         * gnulib-tool (import): Provide default for --tests-base.
75876
75877 2005-09-19  Bruno Haible  <bruno@clisp.org>
75878
75879         * doc/quote.texi: New file, extracted from gnulib.texi.
75880         * doc/ctime.texi: New file, extracted from gnulib.texi.
75881         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75882         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75883         * doc/gnulib.texi: Include them.
75884
75885 2005-09-18  Bruno Haible  <bruno@clisp.org>
75886
75887         Portability fix.
75888         * gnulib-tool (func_readlink): New function.
75889         (func_ln_if_changed): Use it.
75890
75891 2005-09-18  Bruno Haible  <bruno@clisp.org>
75892
75893         * gnulib-tool: Support --with-tests also with --import.
75894         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75895         (func_import): Use variables $testsbase and $inctests. Emit a
75896         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75897         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75898         SUBDIRS += $testsdir.
75899         (func_create_testdir): Update.
75900
75901 2005-09-18  Bruno Haible  <bruno@clisp.org>
75902
75903         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75904         instead of $dry_run.
75905         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75906         (func_ln_if_changed): Don't handle dry-run here.
75907         (func_import): In dry-run mode, detect more precisely which actions
75908         would be performed, and don't use "...ing" verbs.
75909
75910 2005-09-18  Bruno Haible  <bruno@clisp.org>
75911
75912         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75913         (func_import): Use join on two temporary files instead of three nested
75914         loops, in order to determine which files are new or old.
75915
75916 2005-09-18  Bruno Haible  <bruno@clisp.org>
75917
75918         * gnulib-tool (func_import): Comment out code that spits out the
75919         new files with --dry-run.
75920
75921 2005-09-18  Bruno Haible  <bruno@clisp.org>
75922
75923         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75924
75925 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * lib/stat-time.h: New file.
75928         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75929         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75930         in a different way.
75931         (timespec_cmp): New function.
75932         * lib/utimecmp.c: Include stat-time.h.
75933         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75934         members exist, not on the obsolescent ST_MTIM_NSEC.
75935         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75936
75937 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75940
75941 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * MODULES.html.sh (File system functions): Add stat-time.
75944         * modules/stat-time: New file.
75945         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75946         is now done in a different way, by the stat-time module.
75947         * modules/utimecmp (Depends-on): Add stat-time.
75948
75949 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * m4/st_mtim.m4: Remove.  Superseded by...
75952         * m4/stat-time.m4: New file.
75953         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75954         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75955
75956 2005-09-15  Derek Price  <derek@ximbiot.com>
75957
75958         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75959
75960 2005-09-15  Derek Price  <derek@ximbiot.com>
75961
75962         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75963         * lib/regex_internal.c: Ditto, using this...
75964         (__GNUC_PREREQ): ...new macro.
75965         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75966         using...
75967         (__GNUC_PREREQ): ...this new macro.
75968
75969         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75970
75971 2005-09-15  Derek Price  <derek@ximbiot.com>
75972             Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75975         changes, consolidating in...
75976         * lib/regex_internal.h: ...this file.
75977
75978 2005-09-13  Jim Meyering  <jim@meyering.net>
75979
75980         * lib/canon-host.c: Filter through gnu indent and reword comments
75981         slightly.
75982         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75983
75984 2005-09-13  Derek Price  <derek@ximbiot.com>
75985
75986         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75987         failure.
75988         Reported by Jim Meyering  <jim@meyering.net>.
75989
75990 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75991
75992         * lib/base64.c: Typo.
75993         (base64_encode): Put b64str in initialized data section.
75994
75995 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         Merge glibc and coreutils changes into gnulib, plus a few
75998         extra fixes.
75999         * lib/md5.c: Use #error rather than a string.
76000         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76001         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76002         (__attribute__): Define to empty for non recent-GCC.
76003         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76004         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76005         Renamed from their non-__ counterparts, with new macros replacing
76006         them if not _LIBC.  Add __THROW attribute.
76007         (rol): Remove.
76008         (struct md5_ctx): Align buffer if using GCC.
76009         * lib/sha1.h (struct sha1_ctx): Likewise.
76010         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76011         The old name was backwards.
76012         (NOTSWAP): Remove; not used.
76013         (rol): New macro, moved here from md5.h.
76014         (sha1_process_block): Remove a FIXME that doesn't make sense.
76015
76016 2005-09-12  Derek Price  <derek@ximbiot.com>
76017
76018         Return usable errors from canon-host.
76019         * lib/canon-host.h: New file.
76020         * lib/canon-host.c (canon_host): Wrap...
76021         (canon_host_r): ...this new function, which now relies exclusively on
76022         getaddrinfo.
76023         (ch_strerror): New function.
76024         (last_cherror): New global.
76025         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76026         interface.
76027         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76028         void *.
76029         (freeaddrinfo): Free ai->ai_canonname when set.
76030
76031 2005-09-12  Derek Price  <derek@ximbiot.com>
76032
76033         Make canon-host require getaddrinfo.
76034         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76035         AC_LIBSOURCE canon-host.h.  Call...
76036         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76037         gl_GETADDRINFO.
76038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76039
76040 2005-09-12  Derek Price  <derek@ximbiot.com>
76041
76042         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76043         LGPL.
76044         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76045
76046 2005-09-12  Derek Price  <derek@ximbiot.com>
76047
76048         * lib/gai_strerror.c: Include config.h when available.  Include
76049         getaddrinfo.h before other headers to test interface.
76050         Reported by Larry Jones <lawrence.jones@ugs.com>.
76051
76052 2005-09-12  Derek Price  <derek@ximbiot.com>
76053             Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * modules/glob (Files): Add glob-libc.h.
76056
76057 2005-09-12  Derek Price  <derek@ximbiot.com>
76058             Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76061         glob_.h, glob-libc.h.
76062         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76063
76064 2005-09-12  Derek Price  <derek@ximbiot.com>
76065             Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76068         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76069         protecting things that should be done only in gnulib contexts.
76070         * lib/glob_.h: New file, containing only the glob things needed for
76071         gnulib.
76072         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76073         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76074         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76075         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76076         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76077         and to respect the namespace rules better.
76078
76079 2005-09-08  Simon Josefsson  <jas@extundo.com>
76080
76081         * modules/socklen: New file.
76082
76083 2005-09-08  Simon Josefsson  <jas@extundo.com>
76084
76085         * m4/socklen.m4: New file.
76086
76087 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * modules/utimens (Files): Add m4/utimbuf.m4, since
76090         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76091         Reported by Sergey Poznyakoff.
76092
76093 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76096         definitions, since that's the preferred style in glibc.
76097         Fix a minor spacing issue, and update copyright notice to match
76098         glibc's.
76099
76100 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76101
76102         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76103
76104 2005-09-06  Simon Josefsson  <jas@extundo.com>
76105
76106         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76107         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76108
76109 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76110
76111         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76112         warning.
76113
76114 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * config/srclist.txt: Add glibc bug 1302.
76117
76118 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         Change bitset word type from unsigned int to unsigned long int,
76121         as this has better performance on typical 64-bit hosts.
76122         Port bitset code to hosts with unusual word sizes.
76123         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76124         (build_collating_symbol):
76125         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76126         argument is a bitset.  This is merely a style issue, but it makes
76127         it clearer that an entire array is expected.
76128         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76129         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76130         Port to the case where bitset_word is not the same as unsigned int.
76131         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76132         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76133         Likewise.
76134         * lib/regexec.c (check_dst_limits_calc_pos_1,
76135         check_subexp_matching_top):
76136         (build_trtable, group_nodes_into_DFAstates):
76137         Likewise.
76138         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76139         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76140         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76141         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76142         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76143         * lib/regcomp.c (optimize_subexps, lower_subexp):
76144         Work even if bitset_word has holes in its bitwise representation.
76145         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76146         * lib/regexec.c (check_dst_limits_calc_pos_1,
76147         check_subexp_matching_top):
76148         Likewise.
76149         * lib/regex_internal.c (re_string_reconstruct):
76150         Don't assume UCHAR_MAX == 255.
76151         * lib/regex_internal.h (bitset_set_all): Likewise.
76152         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76153         All uses changed.
76154         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76155         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76156         All uses changed.
76157         (BITSET_WORD_MAX): New macro.
76158         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76159         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76160         (bitset_empty, bitset_copy):
76161         Prefer sizeof (bitset) to multiplying it out ourselves.
76162         (bitset_not_merge): Remove; unused.
76163         (bitset_contain): Return bool, not unsigned int with one bit on.
76164         All callers changed.
76165         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76166         alignment than re_node_set; do this by defining a new internal
76167         type struct dests_alloc and using it to allocate memory.
76168
76169 2005-09-05  Bruno Haible  <bruno@clisp.org>
76170
76171         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76172         links.
76173
76174 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76175
76176         * modules/size_max (Makefile.am): Add size_max.h
76177
76178 2005-09-04  Derek Price  <derek@ximbiot.com>
76179
76180         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76181
76182 2005-09-03  Simon Josefsson  <jas@extundo.com>
76183
76184         * gnulib-tool: Fix typo.
76185
76186 2005-09-03  Simon Josefsson  <jas@extundo.com>
76187
76188         * config/srclist.txt: Add glibc bug 1293.
76189
76190 2005-09-03  Derek Price  <derek@ximbiot.com>
76191
76192         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76193         From Larry Jones <lawrence.jones@ugs.com>.
76194
76195 2005-09-02  Simon Josefsson  <jas@extundo.com>
76196
76197         * modules/socklen: New file.
76198
76199 2005-09-02  Simon Josefsson  <jas@extundo.com>
76200
76201         * modules/havelib: New module.
76202
76203         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76204         Use havelib.
76205
76206 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         Check for arithmetic overflow when calculating sizes, to prevent
76209         some buffer-overflow issues.  These patches are conservative, in the
76210         sense that when I couldn't determine whether an overflow was possible,
76211         I inserted a run-time check.
76212         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76213         macros.
76214         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76215         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76216         (re_xnrealloc, re_x2nrealloc): New inline functions.
76217         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76218         parse_bracket_exp):
76219         (build_equiv_class, build_charclass): Check for arithmetic overflow
76220         in size expression calculations.
76221         * lib/regex_internal.c (re_string_realloc_buffers):
76222         (build_wcs_upper_buffer, re_node_set_add_intersect):
76223         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76224         (re_dfa_add_node, register_state): Likewise.
76225         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76226         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76227         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76228         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76229
76230 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76233         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76234
76235 2005-09-02  Bruno Haible  <bruno@clisp.org>
76236
76237         Support for lib vs. lib64 distinction on biarch platforms.
76238         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76239         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76241
76242 2005-09-02  Bruno Haible  <bruno@clisp.org>
76243
76244         * gnulib-tool (import): In the other first-use case, provide defaults
76245         as well.
76246
76247 2005-09-02  Bruno Haible  <bruno@clisp.org>
76248
76249         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76250         patches not yet found in the latest gettext release.
76251
76252 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76255         to avoid a collision with bits/local_lim.h in glibc.
76256         All uses changed.  Problem reported by Dmitry V. Levin in
76257         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76258
76259         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76260         bugs in int versus size_t comparisons.
76261         (re_string_context_at): Fix bug where the code assumed that
76262         Idx is signed.
76263
76264         Use bool where appropriate.
76265         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76266         All callers changed.
76267         (calc_eclosure_iter): Likewise, for ROOT arg.
76268         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76269         (build_charclass_op): Likewise, for NON_MATCH arg.
76270         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76271         (re_string_construct_common): Likewise, for ICASE arg.
76272         * lib/regexec.c (re_search_2_stub, re_search_stub):
76273         Likewise, for RET_LEN arg.
76274         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76275         (set_regs): Likewise, for FL_BACKTRACK arg.
76276         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76277         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76278         (calc_eclosure_iter, parse_bracket_exp):
76279         Use bool for internal variables that are booleans.
76280         * lib/regexec.c (re_search_internal, check_matching,
76281         proceed_next_node):
76282         (set_regs, build_sifted_states, sift_states_bkref):
76283         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76284         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76285         (find_collation_sequence_value):
76286         Likewise.
76287         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76288         (re_node_set_compare):
76289         Return bool, not int. All callers changed.
76290         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76291         (build_trtable, check_node_accept): Likewise.
76292         * lib/regex_internal.h: Include stdbool.h.
76293
76294         Fix bugs uncovered when converting to bool.
76295         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76296         failure instead of charging ahead blindly.
76297         * lib/regex_internal.c (register_state): Likewise.
76298         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76299         for freeing internal storage.
76300         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76301         bitset pieces used as boolean, to avoid undefined behavior
76302         on hosts that do int overflow checking.
76303
76304 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76305
76306         * config/srclist.txt: Add glibc bugs 1285-1287.
76307
76308 2005-09-01  Jim Meyering  <jim@meyering.net>
76309
76310         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76311         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76312         Require gl_STAT_MACROS, too.
76313
76314 2005-09-01  Bruno Haible  <bruno@clisp.org>
76315
76316         * gnulib-tool (import): In the first-use case, provide defaults.
76317
76318 2005-09-01  Bruno Haible  <bruno@clisp.org>
76319
76320         * gnulib-tool (func_import): Remove the .tmp files.
76321
76322 2005-09-01  Bruno Haible  <bruno@clisp.org>
76323
76324         * gnulib-tool (func_import): Fix handling of symbolic links.
76325
76326 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76329         old glibc regex code mishandles strings longer than 2**31 bytes.
76330         This patch fixes this when the regex code is used in gnulib
76331         (i.e., outside glibc).
76332
76333         This patch should not affect the use of the regex code inside
76334         glibc.  No doubt this problem also needs to be handled for glibc
76335         as well, but the result will be an incompatible change to the
76336         glibc ABI, and the old ABI will have to be supported too.  That
76337         can be the the subject for another patch.
76338
76339         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76340         governing whether the rest of this patch is active.  By default,
76341         the macro is disabled and the patch has no effect.
76342         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76343         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76344         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76345         (re_match_2, re_set_registers): Use the new types.
76346         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76347         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76348         New macros.
76349         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76350         (re_string_context_at, bin_tree_t, re_dfastate_t):
76351         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76352         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76353         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76354         (re_string_char_size_at, re_string_wchar_at):
76355         (re_string_elem_size_at):
76356         Use the new types and macros to port to 64-bit hosts.
76357         Use unsigned types for internal values, so that the code
76358         mostly works even for arrays larger than SSIZE_MAX.
76359         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76360         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76361         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76362         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76363         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76364         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76365         (calc_inveclosure, parse_dup_op, build_range_exp):
76366         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76367         (fetch_number, create_token_tree, mark_opt_subexp):
76368         Likewise.
76369         * lib/regex_internal.c (re_string_construct_common,
76370         create_ci_newstate):
76371         (create_cd_newstate, re_string_allocate, re_string_construct):
76372         (re_string_realloc_buffers, build_wcs_upper_buffer):
76373         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76374         (re_string_reconstruct, re_string_peek_byte_case):
76375         (re_string_fetch_byte_case, re_string_context_at):
76376         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76377         (re_node_set_init_copy, re_node_set_add_intersect):
76378         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76379         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76380         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76381         (re_acquire_state, re_acquire_state_context, register_state):
76382         Likewise.
76383         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76384         search_cur_bkref_entry):
76385         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76386         (re_search_internal, re_search_2_stub, re_search_stub)
76387         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76388         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76389         (update_cur_sifted_state, check_dst_limits):
76390         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76391         (check_subexp_limits, sift_states_bkref, merge_state_array):
76392         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76393         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76394         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76395         (expand_bkref_cache, check_node_accept_bytes):
76396         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76397         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76398         (acquire_init_state_context, check_halt_node_context):
76399         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76400         (sift_states_backward, clean_state_log_if_needed):
76401         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76402         (find_recover_state, transit_state_sb, transit_state_mb):
76403         (transit_state_bkref, build_trtable, match_ctx_clean):
76404         Likewise.
76405         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76406         to work around an assumption that REG_MISSING is negative.
76407
76408         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76409         (seek_collating_symbol_entry) [defined _LIBC]:
76410         (lookup_collation_sequence_value) [defined _LIBC]:
76411         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76412         Use prototypes rather than old-style function definitions.
76413         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76414         (transit_state_sb) [0]:
76415         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76416
76417         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76418         rm_eo.
76419
76420         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76421         (optimize_subexps, lower_subexp):
76422         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76423         since the signed shift might overflow.  Use 1u<<31 instead.
76424         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76425         Likewise.
76426         * lib/regexec.c (check_dst_limits_calc_pos_1,
76427         check_subexp_matching_top): Likewise.
76428
76429         * lib/regcomp.c (optimize_subexps, lower_subexp):
76430         Use CHAR_BIT rather than 8, for clarity.
76431         * lib/regexec.c (check_dst_limits_calc_pos_1):
76432         (check_subexp_matching_top): Likewise.
76433         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76434         have to worry about portability issues when shifting it left.
76435         Remove no-longer-needed test for table_size > 0.
76436         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76437         in a word, as the resulting behavior is undefined.
76438         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76439         in one case, a <= should have been an <, and in another case the
76440         whole test was missing.
76441         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76442         the standard name CHAR_BIT.
76443         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76444         this is not true on one's complement and signed-magnitude hosts.
76445
76446         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76447         next_last_offset.
76448         (struct re_dfa_t): Remove unused member states_alloc.
76449         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76450
76451 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76454         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76455         and large-file glibc and in 32-bit large-file Solaris.
76456
76457 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76460         lengths fit in regoff_t; this isn't true if regoff_t is the same
76461         width as size_t.
76462         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76463         (= START + RANGE) instead of RANGE.  This avoids overflow
76464         problems when regoff_t is the same width as size_t.
76465         All callers changed.
76466         (re_search_2_stub): Check for overflow when adding the
76467         sizes of the two strings.
76468         (re_search_stub): Check for overflow when adding START
76469         to RANGE; if it occurs, substitute the extreme value.
76470
76471 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76472
76473         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76474
76475 2005-08-31  Jim Meyering  <jim@meyering.net>
76476
76477         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76478         a pointer-to-const.
76479         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76480         (register_state): Likewise.
76481         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76482         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76483         (group_nodes_into_DFAstates): Likewise.
76484
76485 2005-08-31  Jim Meyering  <jim@meyering.net>
76486
76487         * check-module: Add a FIXME comment.
76488
76489 2005-08-31  Eric Blake  <ebb9@byu.net>
76490
76491         * modules/unistd-safer (Files): Add unistd--.h.
76492         * modules/stdio-safer (Files): Add stdio--.h.
76493
76494 2005-08-31  Derek Price  <derek@ximbiot.com>
76495
76496         * lib/getdelim.c (getdelim): Return EOF on EOF.
76497         Reported by Larry Jones <lawrence.jones@ugs.com>.
76498
76499 2005-08-31  Bruno Haible  <bruno@clisp.org>
76500
76501         Avoid unnecessary diffs in the generated lib/Makefile.am.
76502         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76503         the generated files.
76504         (func_import): Don't set cmd.
76505
76506 2005-08-31  Bruno Haible  <bruno@clisp.org>
76507
76508         * lib/strstr.c: Include <stddef.h>, for NULL.
76509         * lib/strcasestr.c: Likewise.
76510         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76511
76512 2005-08-31  Bruno Haible  <bruno@clisp.org>
76513
76514         * gnulib-tool: New option --macro-prefix.
76515         (func_import): Use macro_prefix.
76516         (import): Handle option --macro-prefix.
76517
76518 2005-08-31  Bruno Haible  <bruno@clisp.org>
76519
76520         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76521         Also use new variables cached_lgpl, cached_libtool.
76522
76523 2005-08-31  Bruno Haible  <bruno@clisp.org>
76524
76525         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76526         always instantiating them.
76527
76528 2005-08-31  Bruno Haible  <bruno@clisp.org>
76529
76530         * gnulib-tool (func_import): Read the previous cached settings
76531         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76532         earlier added by gnulib but are now dropped. Warn when a gnulib file
76533         overwrites a non-gnulib file.
76534
76535 2005-08-31  Bruno Haible  <bruno@clisp.org>
76536
76537         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76538         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76539         projects that don't keep autogenerated files in CVS. Put into
76540         actioncmd only the specified modules, not the transitive closure.
76541
76542 2005-08-31  Bruno Haible  <bruno@clisp.org>
76543
76544         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76545         Create directories that shall be filled.
76546         (import): Don't look for gl_* macros in configure.ac. Recurse across
76547         all directories containing a gnulib-cache.m4 files, if meaningful.
76548
76549 2005-08-31  Bruno Haible  <bruno@clisp.org>
76550
76551         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76552         (import): Set seen_libtool when we see gl_LIBTOOL.
76553
76554 2005-08-31  Bruno Haible  <bruno@clisp.org>
76555
76556         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76557         declaration macro definitions from generated gnulib.m4.
76558
76559 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76560
76561         * lib/iconvme.h: Add prototype for iconv_alloc.
76562
76563 2005-08-29  Simon Josefsson  <jas@extundo.com>
76564
76565         * lib/iconvme.c: Fix errno.
76566
76567 2005-08-29  Bruno Haible  <bruno@clisp.org>
76568
76569         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76570         that it works when the directory contains spaces.
76571
76572 2005-08-29  Bruno Haible  <bruno@clisp.org>
76573
76574         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76575
76576 2005-08-29  Bruno Haible  <bruno@clisp.org>
76577
76578         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76579         Emit more advice.
76580
76581 2005-08-29  Bruno Haible  <bruno@clisp.org>
76582         and Stepan Kasal  <kasal@ucw.cz>
76583
76584         * check-module: If more parameters are given, check each of them
76585         separately; add more exceptions, as noted by Jim Meyering.
76586         (check_module): New procedure.
76587         (%exempt_header): Now contains all exceptions.
76588
76589 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76590
76591         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76592
76593 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76594
76595         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76596
76597 2005-08-28  Bruno Haible  <bruno@clisp.org>
76598
76599         * m4/gnulib-tool.m4: New file.
76600
76601 2005-08-27  Jim Meyering  <jim@meyering.net>
76602
76603         * modules/unistd-safer (Files): Add pipe-safer.c.
76604         * modules/fcntl-safer (Files): Add creat-safer.c.
76605
76606 2005-08-27  Jim Meyering  <jim@meyering.net>
76607
76608         * m4/stdlib-safer.m4: New file.  From coreutils.
76609         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76611         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76612         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76613         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76614
76615 2005-08-27  Jim Meyering  <jim@meyering.net>
76616
76617         * lib/fopen-safer.c: Merge minor changes from coreutils.
76618         * lib/dup-safer.c: Likewise.
76619         * lib/fd-safer.c: Likewise.
76620
76621         Merge from coreutils.
76622         * lib/stdio--.h: New file.
76623         * lib/stdlib--.h: New file.
76624         * lib/mkstemp-safer.c: New file.
76625
76626         GNU tar needs these.
76627         * lib/pipe-safer.c: New file.
76628         * lib/creat-safer.c: New file.
76629         * lib/fcntl--.h (creat): Define to creat_safer.
76630         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76631         * lib/unistd--.h (pipe): Define to pipe_safer.
76632         * lib/unistd-safer.h: Declare pipe_safer.
76633
76634 2005-08-26  Simon Josefsson  <jas@extundo.com>
76635
76636         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76637         Haible <bruno@clisp.org>.
76638
76639 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * lib/regex_internal.h: Remove all references to
76642         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76643         or better.
76644         (bitset_not, bitset_merge, bitset_not_merge):
76645         (bitset_mask, re_string_allocate, re_string_construct):
76646         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76647         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76648         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76649         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76650         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76651         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76652         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76653         (re_acquire_state_context):
76654         Remove unnecessary forward decls.
76655         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76656         Put __attribute at function definition,
76657         now that the function decl has been removed.
76658         * lib/regex_internal.c (re_string_peek_byte_case):
76659         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76660         Likewise.
76661
76662 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76663
76664         * m4/regex.m4: Add AC_PREREQ(2.50).
76665         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76666
76667 2005-08-25  Simon Josefsson  <jas@extundo.com>
76668
76669         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76670         __fsetlocking.
76671
76672 2005-08-25  Simon Josefsson  <jas@extundo.com>
76673
76674         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76675         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76676         GLIBC specific code.
76677
76678 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         Make regex safe for g++.  This fixes one real bug (an "err"
76681         that should have been "*err").  g++ problem reported by
76682         Sam Steingold.
76683         * lib/regex_internal.h (re_calloc): New macro, consistent with
76684         re_malloc etc.  All callers of calloc changed to use re_calloc.
76685         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76686         not int.  All callers changed.
76687         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76688         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76689         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76690         (find_recover_state): Change "err" to "*err"; this fixes what
76691         appears to be a real bug.
76692         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76693         versus int.
76694
76695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * modules/regex (Depends-on): Add malloc, since the code
76698         assumes that !malloc(0) means failure.
76699
76700 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76703
76704         alloca modernization/simplification for regex.
76705         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76706         needs to be at the start of the file, and can be moved into
76707         regex_internal.h and simplified.
76708         * lib/regex_internal.h: Include <alloca.h>.
76709         (__libc_use_alloca) [!defined _LIBC]: New macro.
76710         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76711         now works outside glibc.
76712
76713 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76714
76715         * config/srclist.txt: Add glibc bugs 1241, 1245.
76716
76717 2005-08-25  Jim Meyering  <jim@meyering.net>
76718
76719         * lib/open-safer.c: Include <config.h>.
76720         Otherwise, we'd lose LARGEFILE support in any file using
76721         e.g. "fcntl--.h"
76722
76723 2005-08-25  Bruno Haible  <bruno@clisp.org>
76724
76725         * m4/minmax.m4: Require autoconf 2.52.
76726         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76727         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76728         alternatives of translit over the alphabet.
76729         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76730
76731 2005-08-24  Simon Josefsson  <jas@extundo.com>
76732
76733         * tests/test-getpass.c: New file.
76734
76735 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76738         for GNU regex features.
76739
76740 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76743         * lib/regex.h (regerror): Likewise.
76744
76745         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76746         requires this.  (The code never needed it.)
76747
76748         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76749         All uses of recently-renamed identifiers changed to use the new,
76750         POSIX-compliant names.  The code will build and run just fine
76751         without these changes, but it's better to eat our own dog food
76752         and use the standard-conforming names.
76753
76754         * lib/regex.h: Fix a multitude of POSIX name space violations.
76755         These changes have an effect only for programs that define
76756         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76757         do not change anything for programs compiled in the normal way.
76758         Also, there is no effect on the ABI.
76759
76760         (_REGEX_SOURCE): New macro.
76761         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76762         defined and _GNU_SOURCE is not; this fixes a name space violation.
76763
76764         Rename the following macros to obey POSIX requirements.
76765         The old names are still visible as macros if _REGEX_SOURCE is defined.
76766         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76767         RE_BACKSLASH_ESCAPE_IN_LISTS.
76768         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76769         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76770         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76771         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76772         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76773         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76774         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76775         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76776         (REG_INTERVALS): renamed from RE_INTERVALS.
76777         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76778         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76779         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76780         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76781         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76782         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76783         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76784         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76785         RE_UNMATCHED_RIGHT_PAREN_ORD.
76786         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76787         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76788         (REG_DEBUG): renamed from RE_DEBUG.
76789         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76790         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76791         unusual, since we can't clash with the POSIX REG_ICASE.
76792         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76793         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76794         (REG_NO_SUB): renamed from RE_NO_SUB.
76795         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76796         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76797         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76798         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76799         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76800         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76801         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76802         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76803         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76804         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76805         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76806         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76807         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76808         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76809         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76810         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76811         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76812         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76813         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76814         (REG_FIXED): Renamed from REGS_FIXED.
76815         (REG_NREGS): Renamed from RE_NREGS.
76816
76817         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76818         of other REG_* macros, since POSIX says the user is allowed to
76819         #undef these macros selectively.
76820
76821         (reg_errcode_t): Update comment stating what other tables need
76822         to be consistent.
76823
76824         Rename the following enum values to obey POSIX requirements.
76825         The old names are still visible as macros.
76826         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76827         is not defined, since GNU is supposed to be a superset of POSIX as
76828         much as possible, and since we want reg_errcode_t to be a signed
76829         type for implementation consistency.
76830         (_REG_NOERROR): Renamed from REG_NOERROR.
76831         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76832         (_REG_BADPAT): Renamed from REG_BADPAT.
76833         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76834         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76835         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76836         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76837         (_REG_EBRACK): Renamed from REG_EBRACK.
76838         (_REG_EPAREN): Renamed from REG_EPAREN.
76839         (_REG_EBRACE): Renamed from REG_EBRACE.
76840         (_REG_BADBR): Renamed from REG_BADBR.
76841         (_REG_ERANGE): Renamed from REG_ERANGE.
76842         (_REG_ESPACE): Renamed from REG_ESPACE.
76843         (_REG_BADRPT): Renamed from REG_BADRPT.
76844         (_REG_EEND): Renamed from REG_EEND.
76845         (_REG_ESIZE): Renamed from REG_ESIZE.
76846         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76847         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76848         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76849         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76850         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76851
76852         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76853         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76854         changed.  But support the old name if the new one is not defined
76855         and if _REGEX_SOURCE.
76856
76857         Change the following member names in struct re_pattern_buffer.
76858         The old names are still supported if !_REGEX_SOURCE.
76859         The new names are always supported, regardless of _REGEX_SOURCE.
76860         (re_buffer): Renamed from buffer.
76861         (re_allocated): Renamed from allocated.
76862         (re_used): Renamed from used.
76863         (re_syntax): Renamed from syntax.
76864         (re_fastmap): Renamed from fastmap.
76865         (re_translate): Renamed from translate.
76866         (re_can_be_null): Renamed from can_be_null.
76867         (re_regs_allocated): Renamed from regs_allocated.
76868         (re_fastmap_accurate): Renamed from fastmap_accurate.
76869         (re_no_sub): Renamed from no_sub.
76870         (re_not_bol): Renamed from not_bol.
76871         (re_not_eol): Renamed from not_eol.
76872         (re_newline_anchor): Renamed from newline_anchor.
76873
76874         Change the following member names in struct re_registers.
76875         The old names are still supported if !_REGEX_SOURCE.
76876         The new names are always supported, regardless of _REGEX_SOURCE.
76877         (rm_num_regs): Renamed from num_regs.
76878         (rm_start): Renamed from start.
76879         (rm_end): Renamed from end.
76880
76881         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76882         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76883         Prepend __ to parameter names.
76884
76885         Undo yesterday's changes.
76886
76887 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76890         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76891         lib/regex.c.
76892
76893 2005-08-24  Jim Meyering  <jim@meyering.net>
76894
76895         Sync from coreutils.
76896         * m4/fcntl-safer.m4: New file.
76897
76898         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76899         and object files for this module.
76900
76901 2005-08-24  Jim Meyering  <jim@meyering.net>
76902
76903         Sync from coreutils.
76904         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76905
76906 2005-08-24  Jim Meyering  <jim@meyering.net>
76907
76908         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76909         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76910
76911 2005-08-24  Jim Meyering  <jim@meyering.net>
76912
76913         * modules/fcntl-safer: New module.
76914         * modules/fts (Depends-on): Add fcntl-safer.
76915         * MODULES.html.sh (File descriptor based Input/Output):
76916         Add fcntl-safer.
76917
76918 2005-08-24  Bruno Haible  <bruno@clisp.org>
76919
76920         Support for unit test modules.
76921         * modules/README: Mention tests modules.
76922         * modules/TEMPLATE-TESTS: New file.
76923         * gnulib-tool: New options --extract-tests-module, --with-tests and
76924         --tests-base (unused for the moment).
76925         (testsbase, inctests): New variables.
76926         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76927         (func_verify_module): Exclude TEMPLATE-TESTS.
76928         (func_verify_nontests_module, func_verify_tests_module): New functions.
76929         (func_get_dependencies): Add implicit dependency for tests modules.
76930         (func_get_tests_module): New function.
76931         (func_modules_transitive_closure): When --with-tests was specified,
76932         include the unit tests as well, unless explicitly avoided.
76933         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76934         (func_emit_tests_Makefile_am): New function.
76935         (func_create_testdir): When --with-tests was specified, emit a
76936         tests/ directory.
76937         * MODULES.html.sh (Future developments): Update.
76938
76939 2005-08-24  Bruno Haible  <bruno@clisp.org>
76940
76941         * modules/tls-tests: New file.
76942         * tests/test-tls.c: New file, from GNU gettext.
76943
76944 2005-08-24  Bruno Haible  <bruno@clisp.org>
76945
76946         * modules/lock-tests: New file.
76947         * tests/test-lock.c: New file, from GNU gettext.
76948
76949 2005-08-24  Bruno Haible  <bruno@clisp.org>
76950
76951         * lib/lock.h: Add multiple inclusion guard.
76952         * lib/tls.h: Add multiple inclusion guard.
76953
76954 2005-08-24  Bruno Haible  <bruno@clisp.org>
76955
76956         * gnulib-tool: Add support for the --aux-dir option to
76957         --create-testdir, --create-megatestdir, --test, --megatest.
76958         (func_create_testdir, func_create_megatestdir): Optionally emit a
76959         AC_CONFIG_AUX_DIR directive.
76960         (create-testdir, create-megatestdir, test, megatest): Provide a
76961         default value for $auxdir.
76962
76963 2005-08-24  Bruno Haible  <bruno@clisp.org>
76964
76965         * gnulib-tool (import): Use compound statement instead of subshell
76966         where possible.
76967
76968 2005-08-24  Bruno Haible  <bruno@clisp.org>
76969
76970         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76971
76972 2005-08-24  Bruno Haible  <bruno@clisp.org>
76973
76974         * gnulib-tool (func_version): Update.
76975
76976 2005-08-24  Bruno Haible  <bruno@clisp.org>
76977
76978         * gnulib-tool (func_import, func_create_testdir,
76979         func_create_megatestdir): Quote all autoconf macro arguments.
76980
76981 2005-08-24  Bruno Haible  <bruno@clisp.org>
76982
76983         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76984         option --force, because --force causes the aclocal.m4 of each
76985         subdirectory to be newer than the corresponding config.h.in.
76986
76987 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76990         All contents moved to gl_REGEX.
76991         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76992         assume that it does.
76993
76994 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * lib/regex.h (REG_NOSYS)
76997         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76998         Define, since POSIX requires it as of 2001.
76999         (_REG_ENOSYS)
77000         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77001         New private symbol, used to keep the enum signed in all cases.
77002         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77003         Youngman in
77004         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77005
77006         * lib/regex_internal.c (re_string_skip_chars, register_state):
77007         (calc_state_hash):
77008         Remove forward decls; no longer needed now that we use prototypes.
77009         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77010         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77011         (clean_state_log_if_needed): Likewise.
77012
77013 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * config/srclist.txt: Add glibc bugs 1231-1233.
77016
77017 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         Fix problems reported by Sam Steingold in
77020         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77021         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77022         assumed that reg_errcode_t is a signed type, which is not
77023         necessarily true if _XOPEN_SOURCE is not defined.
77024         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77025         since some compilers warn about it otherwise.
77026
77027 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77030         (init_word_char, create_initial_state, duplicate_node_closure):
77031         (fetch_token, peek_token_bracket, build_range_exp):
77032         (build_collating_symbol): Remove forward decls; no longer needed
77033         now that we use prototypes.
77034
77035         * lib/regcomp.c:
77036         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77037         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77038         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77039         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77040         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77041         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77042         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77043         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77044         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77045         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77046         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77047         (build_charclass, build_charclass_op, fetch_number, create_tree):
77048         (create_token_tree, mark_opt_subexp, duplicate_tree):
77049         Use prototypes rather than old-style definitions.
77050
77051         * lib/regex_internal.c:
77052         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77053         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77054         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77055         (re_string_reconstruct, re_string_peek_byte_case):
77056         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77057         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77058         (re_node_set_init_copy, re_node_set_add_intersect):
77059         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77060         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77061         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77062         (re_acquire_state, re_acquire_state_context, register_state):
77063         (create_ci_newstate, create_cd_newstate, free_state):
77064         Likewise.
77065         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77066         re_search_2):
77067         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77068         (re_search_internal, prune_impossible_nodes):
77069         (acquire_init_state_context, check_matching, static):
77070         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77071         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77072         (update_regs, sift_states_backward, build_sifted_states):
77073         (clean_state_log_if_needed, merge_state_array):
77074         (update_cur_sifted_state, add_epsilon_src_nodes):
77075         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77076         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77077         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77078         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77079         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77080         (check_arrival, check_arrival_add_next_nodes):
77081         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77082         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77083         (check_node_accept_bytes, check_node_accept, extend_buffers):
77084         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77085         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77086         (sift_ctx_init):
77087         Likewise.
77088
77089         * lib/regex_internal.h:
77090         (re_string_allocate, re_string_construct, re_string_reconstruct):
77091         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77092         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77093         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77094         (re_string_context_at, re_string_peek_byte_case):
77095         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77096         is defined, since we now use prototypes always.
77097
77098         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77099         C89 or better.  All uses removed.
77100
77101 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * config/srclist.txt: Add glibc bugs 1220-1227.
77104
77105 2005-08-20  Jim Meyering  <jim@meyering.net>
77106
77107         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77108         of unused local, dfa.
77109
77110 2005-08-20  Bruno Haible  <bruno@clisp.org>
77111
77112         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77113
77114 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77117         (re_node_set_insert_last, re_dfa_add_node):
77118         Rename local variables to avoid GCC shadowing warnings.
77119
77120 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77123         [defined lint]: Suppress bogus uninitialized-variable warnings.
77124
77125         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77126         and let the caller return REG_ESPACE if out of space.  This
77127         removes an uninitialied-variable warning with GCC 4.0.1, and also
77128         avoids taking the address of a local variable.  All callers
77129         changed.
77130
77131 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77134         $LIBCSRC/posix/regexec.c.
77135         Add glibc bug 1217 for regcomp.c.
77136
77137 2005-08-19  Jim Meyering  <jim@meyering.net>
77138
77139         * lib/regexec.c (proceed_next_node): Redo local variables to
77140         avoid GCC shadowing warnings.
77141
77142 2005-08-18  Bruno Haible  <bruno@clisp.org>
77143
77144         * lib/strstr.c (strstr): Fix return value in multibyte case.
77145         * lib/strcasestr.c (strcasestr): Likewise.
77146
77147 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77150
77151 2005-08-17  Jim Meyering  <jim@meyering.net>
77152
77153         Make the %s format (seconds since the epoch) work for a negative
77154         number and when used with a zero-padded field width, e.g. %015s.
77155
77156         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77157         label so that it precedes the code to set `digits'.  Otherwise,
77158         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77159         print `00-22'.  Now, it prints `-0022', as it should.
77160
77161 2005-08-17  Bruno Haible  <bruno@clisp.org>
77162
77163         * modules/strstr (Files): Add m4/mbrtowc.m4.
77164         (Depends-on): Add mbuiter.
77165
77166 2005-08-17  Bruno Haible  <bruno@clisp.org>
77167
77168         * modules/strcasestr: New file.
77169         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77170         strcasestr.
77171
77172 2005-08-17  Bruno Haible  <bruno@clisp.org>
77173
77174         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77175
77176 2005-08-17  Bruno Haible  <bruno@clisp.org>
77177
77178         * modules/mbuiter: New file.
77179         * MODULES.html.sh (Extended multibyte and wide character utilities):
77180         Add mbuiter.
77181
77182 2005-08-17  Bruno Haible  <bruno@clisp.org>
77183
77184         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77185         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77186
77187 2005-08-17  Bruno Haible  <bruno@clisp.org>
77188
77189         * m4/strcasestr.m4: New file.
77190
77191 2005-08-17  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77194         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77195
77196 2005-08-17  Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/strcasestr.h: New file.
77199         * lib/strcasestr.c: New file.
77200
77201 2005-08-17  Bruno Haible  <bruno@clisp.org>
77202
77203         * lib/strcasecmp.c: Use mbuiter.h.
77204
77205 2005-08-17  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/mbuiter.h: New file.
77208
77209 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77212         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77213         and gl_GETOPT are both invoked via different paths (as happens
77214         with GNU tar CVS because it uses both argp and getopt), the former
77215         wins.
77216
77217 2005-08-16  Bruno Haible  <bruno@clisp.org>
77218
77219         * modules/tls: New file.
77220         * MODULES.html.sh (Multithreading): Add tls.
77221
77222 2005-08-16  Bruno Haible  <bruno@clisp.org>
77223
77224         * modules/strnlen1: New file.
77225         * MODULES.html.sh (String handling): Add strnlen1.
77226
77227 2005-08-16  Bruno Haible  <bruno@clisp.org>
77228
77229         * modules/strcase (Files): Add m4/mbrtowc.m4.
77230         (Depends-on): Add strnlen1, mbchar.
77231
77232 2005-08-16  Bruno Haible  <bruno@clisp.org>
77233
77234         * modules/mbiter: New file.
77235         * MODULES.html.sh (Extended multibyte and wide character utilities):
77236         Add mbiter.
77237
77238 2005-08-16  Bruno Haible  <bruno@clisp.org>
77239
77240         * modules/mbfile: New file.
77241         * MODULES.html.sh (Extended multibyte and wide character utilities):
77242         Add mbfile.
77243
77244 2005-08-16  Bruno Haible  <bruno@clisp.org>
77245
77246         * modules/mbchar: New file.
77247         * MODULES.html.sh (Extended multibyte and wide character utilities):
77248         New section.
77249
77250 2005-08-16  Bruno Haible  <bruno@clisp.org>
77251
77252         * m4/tls.m4: New file, from GNU gettext.
77253
77254 2005-08-16  Bruno Haible  <bruno@clisp.org>
77255
77256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77257         always.
77258         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77259
77260 2005-08-16  Bruno Haible  <bruno@clisp.org>
77261
77262         * m4/mbiter.m4: New file.
77263
77264 2005-08-16  Bruno Haible  <bruno@clisp.org>
77265
77266         * m4/mbfile.m4: New file.
77267
77268 2005-08-16  Bruno Haible  <bruno@clisp.org>
77269
77270         * m4/mbchar.m4: New file.
77271
77272 2005-08-16  Bruno Haible  <bruno@clisp.org>
77273
77274         * lib/tls.h: New file, from GNU gettext.
77275         * lib/tls.c: New file, from GNU gettext.
77276
77277 2005-08-16  Bruno Haible  <bruno@clisp.org>
77278
77279         * lib/strnlen1.h: New file.
77280         * lib/strnlen1.c: New file.
77281
77282 2005-08-16  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77285         (mbi_init): Update.
77286         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77287         NUL byte, not after it.
77288
77289 2005-08-16  Bruno Haible  <bruno@clisp.org>
77290
77291         * lib/strcase.h (strcasecmp): Add note in comments.
77292         * lib/strncasecmp.c: Use code from strcasecmp.c.
77293         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77294         (strcasecmp): Work correctly in multibyte locales.
77295
77296 2005-08-16  Bruno Haible  <bruno@clisp.org>
77297
77298         * lib/mbiter.h: New file.
77299
77300 2005-08-16  Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/mbfile.h: New file.
77303
77304 2005-08-16  Bruno Haible  <bruno@clisp.org>
77305
77306         * lib/mbchar.h: New file.
77307         * lib/mbchar.c: New file.
77308
77309 2005-08-16  Bruno Haible  <bruno@clisp.org>
77310
77311         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77312         the valid ones. Makes the comparison operations transitive:
77313         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77314         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77315
77316 2005-08-15  Simon Josefsson  <jas@extundo.com>
77317
77318         * modules/ssize_t (License): Change to 'unlimited'.
77319
77320         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77321
77322 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77323
77324         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77325         Add comments for each pending glibc patch.
77326
77327 2005-08-15  Bruno Haible  <bruno@clisp.org>
77328
77329         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77330         __cplusplus is defined.
77331
77332 2005-08-14  Jim Meyering  <jim@meyering.net>
77333
77334         Sync from coreutils.
77335
77336         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77337         Use the hash-table-based cycle-detection code not just when
77338         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77339         Reported by James Youngman in
77340         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77341         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77342         FTS_TIGHT_CYCLE_CHECK.
77343         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77344         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77345         once again.
77346         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77347         * lib/fts.c (fd_safer): Remove decl.
77348         Include fcntl--.h rather than unistd-safer.h
77349         (fts_safe_changedir): Don't call fd_safer; no longer needed
77350         now that we include fcntl--.h.
77351
77352 2005-08-12  Simon Josefsson  <jas@extundo.com>
77353
77354         * modules/getndelim2: Use ssize_t module.
77355         * modules/getnline: Likewise.
77356         * modules/safe-read: Likewise.
77357         * modules/xreadlink: Likewise.
77358
77359         * modules/ssize_t: New file.
77360
77361 2005-08-12  Simon Josefsson  <jas@extundo.com>
77362
77363         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77364
77365 2005-08-12  Simon Josefsson  <jas@extundo.com>
77366
77367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77368         ssize_t.
77369
77370 2005-08-12  Simon Josefsson  <jas@extundo.com>
77371
77372         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77373         readline, getdelim and check_version.
77374         (Support for systems lacking ISO C 99: Sizes of integer types):
77375         Add size_max.
77376
77377 2005-08-12  Bruno Haible  <bruno@clisp.org>
77378
77379         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77380
77381 2005-08-11  Simon Josefsson  <jas@extundo.com>
77382
77383         * modules/readline: New file.
77384
77385         * modules/strnlen (Files): Add strnlen.h.
77386
77387 2005-08-11  Simon Josefsson  <jas@extundo.com>
77388
77389         * m4/readline.m4: New file.
77390
77391 2005-08-11  Simon Josefsson  <jas@extundo.com>
77392
77393         * lib/readline.h, readline.c: New file.
77394
77395 2005-08-11  Simon Josefsson  <jas@extundo.com>
77396
77397         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77398         gl_AVOID.
77399
77400 2005-08-11  Bruno Haible  <bruno@clisp.org>
77401
77402         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77403
77404 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77405
77406         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77407
77408 2005-08-10  Simon Josefsson  <jas@extundo.com>
77409
77410         * tests/test-iconvme.c: New file.
77411
77412 2005-08-10  Simon Josefsson  <jas@extundo.com>
77413
77414         * m4/strnlen.m4: New file.
77415
77416         * m4/strndup.m4: Don't check for strnlen declaration, done in
77417         strnlen.m4.
77418
77419 2005-08-10  Simon Josefsson  <jas@extundo.com>
77420
77421         * lib/strndup.c: Use strnlen.h.
77422
77423         * lib/strnlen.h: New file.
77424
77425 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77426
77427         * README: Typos.
77428
77429 2005-08-02  Simon Josefsson  <jas@extundo.com>
77430
77431         * modules/readline: New file.
77432
77433 2005-08-02  Simon Josefsson  <jas@extundo.com>
77434
77435         * modules/getdelim: New file.
77436
77437         * modules/getline: Rewrite, don't use getndelim2.
77438
77439 2005-08-02  Simon Josefsson  <jas@extundo.com>
77440
77441         * m4/getline.m4: Separate out getdelim stuff into separate module.
77442
77443         * m4/getdelim.m4: New file.
77444
77445 2005-08-02  Simon Josefsson  <jas@extundo.com>
77446
77447         * lib/getline.h, getline.c: Rewrite.
77448
77449         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77450
77451 2005-07-31  Bruno Haible  <bruno@clisp.org>
77452
77453         * lib/lock.h (gl_lock_initializer): New macro.
77454         (gl_lock_define_initialized): Use it.
77455         (gl_rwlock_initializer): New macro.
77456         (gl_rwlock_define_initialized): Use it.
77457         (gl_recursive_lock_initializer): New macro.
77458         (gl_recursive_lock_define_initialized): Use it.
77459
77460 2005-07-30  Karl Berry  <karl@gnu.org>
77461
77462         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77463         Report from Ben Pfaff, regarding getopt.
77464
77465 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77468         normal way.
77469         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77470         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77471         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77472         (gl_GETOPT): Use the new macros.  Most of the implementation
77473         is moved to the new macros.  This is for programs like Emacs
77474         that don't want all the functionality of gl_GETOPT.
77475
77476 2005-07-26  Bruno Haible  <bruno@clisp.org>
77477
77478         * m4/lock.m4: Update from GNU gettext.
77479
77480 2005-07-26  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/lock.h: Update from GNU gettext.
77483         * lib/lock.c: Update from GNU gettext.
77484
77485 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77488         obsolescent AC_TRY_RUN.  Include the default includes files, for
77489         'exit'.
77490
77491 2005-07-24  Bruno Haible  <bruno@clisp.org>
77492
77493         * modules/visibility: New file.
77494         * MODULES.html.sh (Misc): Add visibility.
77495
77496 2005-07-24  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/visibility.m4: New file.
77499
77500 2005-07-24  Bruno Haible  <bruno@clisp.org>
77501
77502         * doc/visibility.texi: New file.
77503
77504 2005-07-22  Bruno Haible  <bruno@clisp.org>
77505
77506         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77507         $(ALLOCA_H), redundant through BUILT_SOURCES.
77508         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77509         redundant through BUILT_SOURCES.
77510         * modules/byteswap (Makefile.am): Remove explicit dependency on
77511         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77512         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77513         $(FNMATCH_H), redundant through BUILT_SOURCES.
77514         * modules/getopt (Makefile.am): Remove explicit dependency on
77515         $(GETOPT_H), redundant through BUILT_SOURCES.
77516         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77517         redundant through BUILT_SOURCES.
77518         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77519         redundant through BUILT_SOURCES.
77520         * modules/stdbool (Makefile.am): Remove explicit dependency on
77521         $(STDBOOL_H), redundant through BUILT_SOURCES.
77522         * modules/stdint (Makefile.am): Remove explicit dependency on
77523         $(STDINT_H), redundant through BUILT_SOURCES.
77524         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77525         Remove explicit dependency on $(SYSEXITS_H).
77526         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77527
77528 2005-07-18  Simon Josefsson  <jas@extundo.com>
77529
77530         * lib/check-version.c (check_version): Accept identical versions too.
77531
77532 2005-07-18  Bruno Haible  <bruno@clisp.org>
77533
77534         * modules/lock: New file.
77535         * MODULES.html.sh (Multithreading): New section.
77536
77537 2005-07-18  Bruno Haible  <bruno@clisp.org>
77538
77539         * m4/lock.m4: New file, from GNU gettext.
77540
77541 2005-07-18  Bruno Haible  <bruno@clisp.org>
77542
77543         * lib/lock.h: New file, from GNU gettext.
77544         * lib/lock.c: New file, from GNU gettext.
77545
77546 2005-07-18  Bruno Haible  <bruno@clisp.org>
77547
77548         * lib/lock.h (gl_once_t): New type.
77549         (gl_once_define, gl_once): New macros.
77550         * lib/lock.c (fresh_once): New variable.
77551         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77552         functions.
77553
77554 2005-07-16  Simon Josefsson  <jas@extundo.com>
77555
77556         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77557         workaround, suggested by Bruno.
77558
77559 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * modules/xalloc (Depends-on): Add xalloc-die.
77562         * modules/xvasprintf (Depends-on): Add xalloc-die.
77563
77564 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77567         with a minor change.
77568
77569 2005-07-15  Bruno Haible  <bruno@clisp.org>
77570
77571         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77572         When using lib/poll.c, define poll as rpl_poll.
77573
77574 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         * modules/argp (Depends-on): Remove unlocked-io.
77577
77578 2005-07-14  Derek Price  <derek@ximbiot.com>
77579
77580         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77581         for glob symlink bug.
77582
77583 2005-07-14  Bruno Haible  <bruno@clisp.org>
77584
77585         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77586         Instead, test for *_unlocked function declarations directly.
77587
77588 2005-07-11  Simon Josefsson  <jas@extundo.com>
77589
77590         * modules/size_max: New file.
77591
77592         * modules/xsize: Depend on size_max module for size_max.m4.
77593
77594 2005-07-11  Simon Josefsson  <jas@extundo.com>
77595
77596         * lib/size_max.h: New file.
77597
77598 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77601         copyright symbol and the year.
77602         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77603         (version_etc_va): Use parameterized copyright notice.
77604         Reword to conform to the current GNU coding standards.
77605
77606 2005-07-11  Karl Berry  <karl@gnu.org>
77607
77608         * doc/gnulib.texi (Quoting): new node.
77609         (Initial import): more info, from Patrice.
77610
77611 2005-07-11  Bruno Haible  <bruno@clisp.org>
77612
77613         * gnulib-tool (func_usage): Document option --avoid.
77614         (Command line options): Handle --avoid.
77615         (func_acceptable): New function.
77616         (func_modules_transitive_closure): Use it.
77617
77618 2005-07-11  Bruno Haible  <bruno@clisp.org>
77619
77620         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77621         Reported by Jim Meyering.
77622
77623 2005-07-10  Bruno Haible  <bruno@clisp.org>
77624
77625         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77626         Needed when size_t is smaller than 'unsigned int'.
77627         Reported by Paul Eggert.
77628
77629 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77630
77631         * modules/argp (Depends-on): Add unlocked-io
77632
77633 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77634
77635         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77636         block of defines.
77637
77638 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77641         fix now.
77642
77643 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77644         and Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77647         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77648
77649 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77650
77651         * modules/regex (Files): Add lib/regex_internal.c,
77652         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77653         (Depends-on): Add extensions.
77654         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77655
77656 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77659         pathconf.
77660         * m4/same.m4 (gl_SAME): Likewise.
77661         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77662
77663         * m4/regex.m4: Adjust to new libc regex implementation.
77664         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77665         all the .c and .h parts of (the new) regex.
77666         Quote the m4 stuff better.
77667         Check for RE_ICASE bug of old gnulib.
77668         Check for REG_STARTEND of recent libc.
77669         Rename local variables from jm_* to gl_*.
77670         Quote operand of "test -f".
77671         Say "recent enough" version of libc, not "version 2".
77672         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77673         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77674         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77675         Remove check for btowc, isascii.
77676         Require AM_LANGINFO_CODESET.
77677
77678 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * lib/regex.c, regex.h: Sync from libc.
77681         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77682         * lib/regexec.c:
77683         New files, synced from libc, except that regex_internal.h
77684         currently has a small porting fix.
77685
77686 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77689         regex_internal.c, regexec.c.
77690         Add regex_internal.h too, but as a comment, since the libc version
77691         is currently broken in gnulib mode.
77692
77693 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         Support programs like Emacs that use gnulib but not gettext.
77696         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77697         * modules/gettext-h: New file.
77698         * modules/gettext (Files): Remove lib/gettext.h.
77699         (Depends-on): Add gettext-h.
77700         (Makefile.am): Remove lib_SOURCES.
77701         * modules/argmatch, modules/c-stack, modules/closeout:
77702         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77703         * modules/execute, modules/file-type, modules/getaddrinfo:
77704         * modules/getopt, modules/human, modules/javacomp:
77705         * modules/javaexec, modules/mkdir-p, modules/obstack:
77706         * modules/openat, modules/pagealign_alloc, modules/pipe:
77707         * modules/quotearg, modules/regex, modules/rpmatch:
77708         * modules/unicodeio, modules/userspec, modules/version-etc:
77709         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77710         * modules/xsetenv:
77711         Depend on gettext-h, not gettext.
77712
77713 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * gnulib-tool (func_import): Add support for 'public domain' license.
77716         * modules/alloca, modules/atexit, modules/memmove:
77717         Now public domain, not GPL.
77718         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77719         * modules/realloc, modules/strerror, modules/strtod:
77720         Now LGPL, not GPL.
77721
77722 2005-07-05  Bruno Haible  <bruno@clisp.org>
77723
77724         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77725         autoconf CVS. Needed for mingw.
77726
77727 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77728
77729         Remove the dependency of the strftime module on the tzset module.
77730         * modules/strftime (Depends-on): Remove dependency on tzset.
77731
77732 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         Remove the dependency of the strftime module on the tzset module.
77735         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77736         gl_FUNC_TZSET_CLOBBER.
77737
77738 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         Remove the dependency of the strftime module on the tzset module.
77741         * lib/strftime.c (my_strftime)
77742         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77743         Copy the input structure, to work around some of the bug with
77744         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77745         Solaris releases, you should also use the tzset module, but we won't
77746         require it as a dependency any more since we don't want LGPLed code
77747         to depend on GPLed code.
77748
77749 2005-07-02  Jim Meyering  <jim@meyering.net>
77750
77751         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77752         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77753         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77754         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77755
77756 2005-07-02  Jim Meyering  <jim@meyering.net>
77757
77758         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77759
77760 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77761
77762         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77763         declares only 'struct timespec;' (!).
77764
77765 2005-07-01  Jim Meyering  <jim@meyering.net>
77766
77767         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77768         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77769         * lib/save-cwd.c, tempname.c:
77770         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77771         and don't include <sys/file.h>).
77772
77773 2005-06-29  Jim Meyering  <jim@meyering.net>
77774
77775         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77776         type name.  Use the variable name instead.
77777         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77778         Likewise.
77779
77780 2005-06-28  Simon Josefsson  <jas@extundo.com>
77781
77782         * modules/check-version (Files): Add check-version.m4.
77783
77784 2005-06-28  Simon Josefsson  <jas@extundo.com>
77785
77786         * m4/check-version.m4: New file, suggested by Jim Meyering
77787         <jim@meyering.net>.
77788
77789 2005-06-28  Simon Josefsson  <jas@extundo.com>
77790
77791         * lib/check-version.h, lib/check-version.c: New files.
77792
77793 2005-06-28  Simon Josefsson  <jas@extundo.com>
77794
77795         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77796         collision with global variable.  Better indentation.  Don't
77797         increment buffer pointer beyond buffer end.  Based on comments
77798         from Paul Eggert <eggert@cs.ucla.edu>.
77799
77800         * lib/base64.h: Indent.
77801
77802 2005-06-28  Simon Josefsson  <jas@extundo.com>
77803
77804         * doc/gnulib.texi (Library version handling): New section.
77805
77806 2005-06-28  Jim Meyering  <jim@meyering.net>
77807
77808         * check-module (find_included_lib_files): Hard-code another
77809         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77810         but modules/fts-lgpl (correctly) does not list those files.
77811
77812         * modules/canonicalize (Files): Add lib/pathmax.h.
77813
77814 2005-06-25  Simon Josefsson  <jas@extundo.com>
77815
77816         * modules/check-version: New file.
77817
77818 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77821         initializer of struct addrinfo, as an indication that we don't
77822         care how many members the structure has.
77823
77824 2005-06-24  Derek Price  <derek@ximbiot.com>
77825         and Bruno Haible  <bruno@clisp.org>
77826
77827         Remove stat module & update lstat.
77828         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77829         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77830         * m4/stat.m4: Remove this file.
77831
77832 2005-06-24  Derek Price  <derek@ximbiot.com>
77833         and Bruno Haible  <bruno@clisp.org>
77834
77835         Remove stat module & update lstat.
77836         * lib/stat.c: Remove this file...
77837         (slash_aware_lstat): ...moving this content and its support...
77838         * lib/lstat.c (rpl_lstat): ...into here.
77839         * lib/lstat.h: New file.
77840
77841 2005-06-24  Derek Price  <derek@ximbiot.com>
77842         and Bruno Haible  <bruno@clisp.org>
77843
77844         Remove stat module & update lstat.
77845         * config/srclist.txt (libc sources): Remove stat.
77846
77847 2005-06-24  Derek Price  <derek@ximbiot.com>
77848         and Bruno Haible  <bruno@clisp.org>
77849
77850         Remove stat module & update lstat.
77851         * MODULES.html.sh (stat): Remove.
77852         * MODULES.html: Regenerated.
77853         * modules/lstat (Description): Correct function name.
77854         (Files): Add "lstat.h".
77855         (Depends-on): Remove stat, add xalloc, stat-macros.
77856         * modules/stat: Remove this file.
77857         (Include): Add "lstat.h", remove <sys/stat.h>.
77858
77859 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77862         (ranged_convert): Don't save conversion in a temporary struct.
77863         This causes a warning with GCC 4.0.0, and anyway in the typical
77864         case it's not worth the extra 100 bytes or so of code.
77865         (ranged_convert, __mktime_internal): When calling a function via a
77866         pointer P, use P () rather than (*P) (), as we now assume C89 or
77867         better.
77868
77869 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77870
77871         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77872         "who -r" failed to give output.  Problem reported by Tim Waugh.
77873
77874         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77875         (xcalloc): Use it to avoid needless tests.
77876         Problem reported by Jim Meyering.
77877
77878 2005-06-20  Derek Price  <derek@ximbiot.com>
77879
77880         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77881         unnecessary for Autoconfs > 2.59c.
77882
77883 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77884
77885         * lib/argp.h (__option_is_short): Check upper limit of
77886         __key. Isprint() requires its argument to have the value
77887         of an unsigned char or EOF.
77888
77889 2005-06-16  Jim Meyering  <jim@meyering.net>
77890
77891         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77892         when either N or S is zero.
77893
77894 2005-06-16  Derek Price  <derek@ximbiot.com>
77895
77896         * m4/bison.m4: Declare YACC & YFLAGS precious.
77897
77898 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77899
77900         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77901         multibyte string or pattern, fall back on unibyte matching.
77902         Problem reported by James Youngman.
77903
77904 2005-06-08  Bruno Haible  <bruno@clisp.org>
77905
77906         * modules/csharpcomp: New file.
77907         * MODULES.html.sh (C#): Add csharpcomp.
77908
77909 2005-06-08  Bruno Haible  <bruno@clisp.org>
77910
77911         * m4/csharpcomp.m4: New file, from GNU gettext.
77912
77913 2005-06-08  Bruno Haible  <bruno@clisp.org>
77914
77915         * lib/csharpcomp.h: New file, from GNU gettext.
77916         * lib/csharpcomp.c: New file, from GNU gettext.
77917         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77918
77919 2005-06-08  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77922         warning on mingw.
77923
77924 2005-06-07  Derek Price  <derek@ximbiot.com>
77925
77926         Sync from CVS.
77927         * lib/glob_.h: Indent nested #ifdef.
77928
77929 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         Sync from coreutils.
77932         Use "file name" when talking about file names, instead of "filename"
77933         or "path", as per the GNU coding standards.
77934         * lib/mkdir-p.c: Renamed from makepath.c.
77935         (make_dir_parents): Renamed from make_path.  All callers changed.
77936         * lib/mkdir-p.h: Likewise.  All includers changed.
77937         * lib/filenamecat.c: Renamed from path-concat.c.
77938         (file_name_concat): Renamed from path_concat.  All callers changed.
77939         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77940         * lib/filenamecat.h: Likewise.  All includers changed.
77941         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77942         in comments or local variable names.
77943         * lib/basename.c: Likewise.
77944         * lib/canonicalize.c, canonicalize.h: Likewise.
77945         * lib/dirname.c, dirname.h: Likewise.
77946         * lib/euidaccess.c: Likewise.
77947         * lib/exclude.c: Likewise
77948         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77949         * lib/fsusage.c, fsuage.h: Likewise.
77950         * lib/fts.c, fts_.h: Likewise.
77951         * lib/getcwd.c: Likewise.
77952         * lib/getloadavg.c: Likewise.
77953         * lib/mkstemp.c: Likewise.
77954         * lib/mountlist.c, mountlist.h: Likewise.
77955         * lib/openat.c, openat.h: Likewise.
77956         * lib/readlink-stub.c: Likewise.
77957         * lib/readutmp.c, readutmp.h: Likewise.
77958         * lib/rename.c: Likewise.
77959         * lib/rmdir.c: Likewise.
77960         * lib/same.c: Likewise.
77961         * lib/savedir.c: Likewise.
77962         * lib/stripslash.c: Likewise.
77963         * lib/tempname.c: Likewise.
77964         * lib/xreadlink.c: Likewise.
77965         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77966         All uses changed.
77967         * lib/exclude.h: Likewise.
77968
77969         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77970         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77971         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77973         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77974         files have been getting away with it for years (MORE/BSD 4.3
77975         is extinct now).
77976         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77977         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77978
77979         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77980         Define to 256, not 255, as per modern POSIX.
77981
77982 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         Sync from coreutils.
77985         Use "file name" when talking about file names, instead of "filename"
77986         or "path", as per the GNU coding standards.
77987         * MODULES.html.sh: mkdir-p renamed from makepath.
77988         filenamecat renamed from path-concat.
77989         * modules/filenamecat: Renamed from modules/path-concat.
77990         (Files): filenamecat.h and filenamecat.c renamed from
77991         path-concat.h and path-concat.c.
77992         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77993         (Include): filenamecat.h, not path-concat.h.
77994         * modules/mkdir-p: Renamed from modules/makepath.
77995         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77996         makepath.c.
77997         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77998         (Include): mkdir-p.h, not makepath.h.
77999
78000 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         Sync from coreutils.
78003         * m4/mkdir-p.m4: Renamed from makepath.m4.
78004         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78005         Rename files from makepath.c to mkdir-p.c, and from
78006         makepath.h to mkdir-p.h.
78007         * m4/filenamecat.m4: Renamed from path-concat.m4.
78008         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78009         Rename files from path-concat.c to filenamecat.c,
78010         and from path-concat.h to filenamecat.h.
78011         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78012         "file name" in local variables or comments.
78013         * m4/rename.m4: Likewise.
78014
78015 2005-06-01  Bruno Haible  <bruno@clisp.org>
78016
78017         * modules/csharpexec: New file.
78018         * MODULES.html.sh (C#): New section.
78019
78020 2005-06-01  Bruno Haible  <bruno@clisp.org>
78021
78022         * m4/csharp.m4: New file, from GNU gettext.
78023         * m4/csharpexec.m4: New file, from GNU gettext.
78024
78025 2005-06-01  Bruno Haible  <bruno@clisp.org>
78026
78027         * lib/csharpexec.h: New file, from GNU gettext.
78028         * lib/csharpexec.c: New file, from GNU gettext.
78029         * lib/csharpexec.sh.in: New file, from GNU gettext.
78030
78031 2005-05-31  Derek Price  <derek@ximbiot.com>
78032             Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         Sync from cvs.
78035         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78036
78037 2005-05-31  Derek Price  <derek@ximbiot.com>
78038             Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Sync from cvs.
78041         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78042
78043 2005-05-29  Derek Price  <derek@ximbiot.com>
78044
78045         * config/srclist.txt (glob_.h, glob.c): Add these files.
78046
78047 2005-05-29  Derek Price  <derek@ximbiot.com>
78048
78049         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78050         * modules/glob: New file.
78051         * modules/getlogin_r: Add link to POSIX spec in description.
78052
78053 2005-05-29  Derek Price  <derek@ximbiot.com>
78054             Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * m4/glob.m4: New file.
78057
78058 2005-05-29  Derek Price  <derek@ximbiot.com>
78059             Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * lib/glob_.h, lib/glob.c: New files.
78062
78063 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78066         * modules/fts-lgpl (Depends-on): Remove gettext.
78067
78068 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78071         and don't require gt_INTTYPES_PRI.
78072
78073 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78076
78077         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78078         the configuration hassle isn't worth it.
78079         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78080         (LONGEST_MODIFIER, PRIuMAX): Remove.
78081
78082 2005-05-27  Bruno Haible  <bruno@clisp.org>
78083
78084         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78085
78086 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78089         _POSIX_PTHREAD_SEMANTICS for Solaris.
78090
78091 2005-05-25  Derek Price  <derek@ximbiot.com>
78092
78093         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78094
78095 2005-05-25  Derek Price  <derek@ximbiot.com>
78096             Paul Eggert  <eggert@cs.ucla.edu>
78097
78098         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78099         * lib/getlogin_r.c, getlogin_r.h: New files.
78100
78101 2005-05-25  Bruno Haible  <bruno@clisp.org>
78102             Derek Price  <derek@ximbiot.com>
78103
78104         * lib/getlogin_r.h: Simplify API documentation.
78105
78106 2005-05-23  Derek Price  <derek@ximbiot.com>
78107
78108         * modules/minmax (Files): Add m4/minmax.m4.
78109         (configure.ac): Add gl_MINMAX.
78110
78111 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78114         so that unistd-safer.h (GPL'ed code) need not be included.
78115
78116 2005-05-22  Bruno Haible  <bruno@clisp.org>
78117
78118         * m4/minmax.m4: New file.
78119         Based on a patch by Derek Price <derek@ximbiot.com>.
78120
78121 2005-05-22  Bruno Haible  <bruno@clisp.org>
78122
78123         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78124         (INT64_MIN): Fix definition.
78125         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78126
78127         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78128         NEED_SIGNED_INT_TYPES.
78129
78130         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78131         HAVE_SYSTEM_INTTYPES.
78132
78133 2005-05-22  Bruno Haible  <bruno@clisp.org>
78134
78135         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78136         Also include <sys/param.h> if it defines MIN, MAX.
78137         Based on a patch by Derek Price <derek@ximbiot.com>.
78138
78139 2005-05-21  Jim Meyering  <jim@meyering.net>
78140
78141         * modules/fts (Files): Add m4/inttypes-pri.m4.
78142         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78143
78144 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         New fts module.
78147         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78148         (setup_dir, free_dir): New functions.
78149         (enter_dir, leave_dir): Define trivial
78150         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78151         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78152         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78153         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78154         Move to fts-cycle.c.
78155         (fts_open): Use setup_dir.
78156         (fts_close): Use free_dir.
78157         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78158         This adds a label and some gotos, but the alternatives were messier.
78159         Check for memory allocation failure when entering a dir.
78160         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78161         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78162         (FTS): New member fts_cycle, that is a union that contains the
78163         old active_dir_ht and cycle_state.  All uses changed to mention
78164         fts_cycle.ht and fts_cycle.state.
78165         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78166         fts.c, with the following changes:
78167         (setup_dir, free_dir): New functions.
78168         (enter_dir): Now returns bool.  Return true if successful, false
78169         if memory exhausted.  All callers changed.
78170         Do not bother partly cleaning up on
78171         memory allocation failure; that is free_dir's job.
78172         However, free ad if hash_insert fails, to avoid memory leak.
78173         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78174         fts->fts_options to see which union member to use.
78175
78176 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78179         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78180
78181 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78184
78185 2005-05-20  Jim Meyering  <jim@meyering.net>
78186
78187         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78188         Now a macro, to pacify GCC.
78189
78190 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78191
78192         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78193         of -1.
78194
78195 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78196
78197         * lib/chown.c (rpl_chown): Return -1 on failure.
78198
78199 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78202         Don't check for stddef.h.
78203         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78204         don't use its results.
78205         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78206         since we include them unconditionally.  Don't require
78207         AM_STDBOOL_H, since stdbool is a prerequisite.
78208         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78209         since we assume C89 or better.
78210         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78211         as we don't use their results.
78212         Don't check for fchdir, memmove, memset, strrchr, as we use
78213         them unconditionally.
78214         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78215         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78216
78217 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78220         Include <stddef.h> unconditionally, since we assume C89 now.
78221         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78222         * lib/fts.c: Include fts_.h first, to check interface.
78223         Do not include intprops.h; no longer needed.
78224         Include cycle-check.h and hash.h, since fts_.h no longer does.
78225         Remove unnecessary casts of closedir to void.
78226         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78227         decide whether to decrement nlinks.
78228         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78229         (FTS): Use struct hash_table * instead of Hash_table, so that
78230         we no longer need to include hash.h here.
78231
78232 2005-05-18  Jim Meyering  <jim@meyering.net>
78233
78234         * modules/dirfd (License): Change to LGPL.  Most of the code
78235         is already in the public domain.
78236
78237 2005-05-18  Jim Meyering  <jim@meyering.net>
78238
78239         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78240         Reported by Yoann Vandoorselaere.
78241
78242 2005-05-17  Jim Meyering  <jim@meyering.net>
78243
78244         * m4/fts.m4: New file, from coreutils.
78245
78246 2005-05-17  Jim Meyering  <jim@meyering.net>
78247
78248         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78249
78250 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78251
78252         Sync from coreutils.
78253         * m4/unlinkdir.m4: New file.
78254
78255 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         Sync from coreutils.
78258         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78259         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78260         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78261         White space changes only.
78262         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78263         special.
78264         * lib/yesno.c: Include getline.h, not ctype.h.
78265         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78266         Use getline to remove arbitrary restriction on response length.
78267
78268 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         * config/srclist-update: Spell out "Street" in FSF postal
78271         mail address; this is the style the FSF seems to prefer.
78272
78273         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78274         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78275         this updates FSF postal mail address.
78276
78277         Sync from coreutils.
78278         * modules/unlinkdir: New file.
78279         * modules/yesno (Depends-on): Add getline.
78280         * MODULES.html.sh (File system functions): Add unlinkdir.
78281
78282 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78285         lib/strsep.h:
78286         Change the initial comment to refer to GPL, not LGPL.
78287         gnulib-tool will change it to LGPL as needed.
78288
78289         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78290         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78291         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78292         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78293         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78294         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78295         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78296         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78297         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78298         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78299         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78300         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78301         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78302         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78303         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78304         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78305         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78306         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78307         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78308         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78309         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78310         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78311         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78312         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78313         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78314         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78315         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78316         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78317         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78318         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78319         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78320         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78321         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78322         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78323         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78324         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78325         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78326         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78327         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78328         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78329         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78330         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78331         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78332         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78333         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78334         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78335         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78336         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78337         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78338         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78339         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78340         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78341         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78342         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78343         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78344         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78345         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78346         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78347         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78348         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78349         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78350         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78351         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78352         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78353         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78354         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78355         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78356         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78357         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78358         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78359         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78360         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78361         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78362         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78363         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78364         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78365         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78366         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78367         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78368         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78369         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78370         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78371         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78372         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78373         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78374         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78375         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78376         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78377         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78378         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78379         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78380         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78381         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78382         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78383         lib/yesno.c, lib/yesno.h:
78384         Update FSF postal mail address.
78385
78386 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78389         tests/test-memmem.c, tests/test-stpncpy.c:
78390         Update FSF postal mail address.
78391
78392 2005-05-13  Bruno Haible  <bruno@clisp.org>
78393
78394         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78395         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78396         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78397         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78398         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78399         Add support for 64-bit integers in the MSVC compiler.
78400
78401 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78402
78403         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78404
78405 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78406
78407         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78408
78409 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78410
78411         * doc/getdate.texi (General date syntax): Don't say that date
78412         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78413         Problem reported by Nic Ferrier.
78414
78415 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78416
78417         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78418         specified in ai_socktype. Fix invalid ai_protocol
78419         check. ai_protocol is usually set to 0 or depending on
78420         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78421         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78422         ai_socktype / ai_protocol in the returned addrinfo structure.
78423
78424 2005-05-10  Simon Josefsson  <jas@extundo.com>
78425
78426         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78427         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78428
78429 2005-05-10  Karl Berry  <karl@gnu.org>
78430
78431         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78432         (from http://www.gnu.org/licenses).
78433         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78434         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78435         fdl.texi suffices.
78436
78437 2005-05-10  Karl Berry  <karl@gnu.org>
78438
78439         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78440         (COPYING.DOC): remove.
78441
78442         * config/srclist-update: new FSF address.
78443
78444 2005-05-10  Derek Price  <derek@ximbiot.com>
78445
78446         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78447         possible.
78448
78449 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78450             Bruno Haible  <bruno@clisp.org>
78451
78452         * modules/inet_ntop: New file.
78453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78454         inet_ntop.
78455
78456 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78457             Bruno Haible  <bruno@clisp.org>
78458
78459         * m4/inet_ntop.m4: New file.
78460
78461 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78462             Bruno Haible  <bruno@clisp.org>
78463
78464         * lib/inet_ntop.h: New file.
78465         * lib/inet_ntop.c: New file, from glibc with modifications.
78466
78467 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * modules/time_r (License): Change to LGPL.
78470         * modules/extensions (License): Change to LGPL.  Actually,
78471         the license is more permissive than that, but currently gnulib-tool
78472         doesn't know how to handle more-permissive licenses.
78473
78474         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78475         Problem reported by Dave Love.
78476
78477 2005-05-08  Jim Meyering  <jim@meyering.net>
78478
78479         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78480         blank.
78481
78482 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         * modules/argmatch (Depends-on): Add stdbool.
78485         * modules/backupfile (Depends-on): Likewise.
78486         * modules/chdir-long (Depends-on): Likewise.
78487         * modules/closeout (Depends-on): Likewise.
78488         * modules/cycle-check (Depends-on): Likewise.
78489         * modules/dirname (Depends-on): Likewise.
78490         * modules/fnmatch (Depends-on): Likewise.
78491         * modules/fsusage (Depends-on): Likewise.
78492         * modules/fwriteerror (Depends-on): Likewise.
78493         * modules/getcwd (Depends-on): Likewise.
78494         * modules/getloadavg (Depends-on): Likewise.
78495         * modules/hard-locale (Depends-on): Likewise.
78496         * modules/makepath (Depends-on): Likewise.
78497         * modules/mountlist (Depends-on): Likewise.
78498         * modules/nanosleep (Depends-on): Likewise.
78499         * modules/posixtm (Depends-on): Likewise.
78500         * modules/quotearg (Depends-on): Likewise.
78501         * modules/readtokens (Depends-on): Likewise.
78502         * modules/readtokens0 (Depends-on): Likewise.
78503         * modules/readutmp (Depends-on): Likewise.
78504         * modules/save-cwd (Depends-on): Likewise.
78505         * modules/strftime (Depends-on): Likewise.
78506         * modules/userspec (Depends-on): Likewise.
78507         * modules/utimecmp (Depends-on): Likewise.
78508         * modules/xgetcwd (Depends-on): Likewise.
78509         * modules/xnanosleep (Depends-on): Likewise.
78510         * modules/xstrtod (Depends-on): Likewise.
78511         * modules/yesno (Depends-on): Likewise.
78512
78513 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78516         needless checks.
78517
78518 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         Merge from coreutils.  Among other things,
78521         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78522         * lib/fd-safer.c: New file.
78523         * lib/fcntl-safer.h, open-safer.c: Remove.
78524         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78525         * lib/dup-safer.c: Include unistd-safer.h first.
78526         Don't include errno.h.
78527         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78528         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78529         * lib/file-type.c: Rely on file-type.h change.
78530         * lib/getloadavg.c: Include unistd-safer.h.
78531         (getloadavg): Use safer open.
78532         * lib/getusershell.c: Include "stdio-safer.h".
78533         (getusershell): Use safer fopen.
78534         * lib/long-options.c (long_options): Use NULL rather than 0.
78535         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78536         'free'.
78537         * lib/modechange.c: Likewise.
78538         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78539         (MODE_DONE): New constant.
78540         (struct mode_change): Remove 'next' member.
78541         (make_node_op_equals): New function; like the old one of the
78542         same name, except it allocates an array.
78543         (mode_compile, mode_create_from_ref): Use it.
78544         (mode_compile): Allocate result as an array, not a linked list.
78545         Parse octal string ourself, so that we catch mistakes like "+0".
78546         (mode_adjust): Arg is an array, not a linked list.
78547         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78548         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78549         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78550         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78551         Remove.  This is now stat-macros.h's job.
78552         (talloc): Remove.  All callers replaced by xalloc, so that
78553         our invokers don't have to worry about reporting memory failures.
78554         (make_node_op_equals): Remove.
78555         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78556         New constants.
78557         (struct mode_change): Moved here from modechange.h.
78558         (mode_append_entry): Remove.
78559         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78560         apps to have incorrect behavior.  Use simpler algorithm for head
78561         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78562         Detect more invalid usages rather than having somewhat-random behavior.
78563         Don't insert an "a=" action, as that leads to incorrect behavior.
78564         (mode_compile, mode_create_from_ref): Return NULL on error instead
78565         of an enum, since now there's only one way to have an error.  All
78566         callers changed.
78567         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78568         at the correct time.  Simplify calculation of "+u" and its ilk.
78569         Don't mishandle "+X".
78570         (mode_free): Remove "register" and localize decls.
78571         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78572         (struct mode_change): Move to modechange.c; callers don't
78573         need to see this stuff.
78574         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78575         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78576         (mode_change, mode_adjust): Reflect the new signatures noted above.
78577         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78578         that might redefine system include files.
78579         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78580         (my_usleep): Use NULL rather than (void *) 0.
78581         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78582         Use siginterrupt to specify that system calls should be interrupted.
78583         (rpl_nanosleep): Move initialization of suspended closer to call of
78584         my_usleep.
78585         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78586         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78587         (desirable_utmp_entry): New function.
78588         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78589         using x2nrealloc, to simplify logic.
78590         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78591         size calculation.  Do not assume utmp file is a regular file.
78592         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78593         (READ_UTMP_CHECK_PIDS): New constant.
78594         * lib/save-cwd.c: Include unistd-safer.h.
78595         (save_cwd): Use fd_safer.
78596         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78597         [!_LIBC] Include "stat-macros.h" instead.
78598         * lib/unistd-safer.h (fd_safer): New decl.
78599
78600 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * modules/getloadavg (Depends-on): Add unistd-safer.
78603         * modules/getusershell (Depends-on): Add stdio-safer.
78604         * modules/lstat (Depends-on): Remove xalloc.
78605         * modules/mkstemp (Depends-on): Add stat-macros.
78606         * modules/modechange (Depends-on): Remove xstrtol.
78607         Add stat-macros, xalloc.
78608         * modules/save-cwd (Depends-on): Add unistd-safer.
78609         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78610         * modules/unistd-safer (Files): Add lib/fd-safer.c
78611         (Makefile.am): Remove lib_SOURCES.
78612
78613         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78614         Remove fcntl-safer; unistd-safer supersedes it.
78615
78616 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78619         AC_HEADER_STAT.
78620         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78621         (gl_PREREQ_CHOWN): Remove.
78622         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78623         it.  Don't require AC_HEADER_STAT.
78624         (gl_PREREQ_LSTAT): Remove.
78625         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78626         Don't require AC_HEADER_STAT.
78627         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78628         (gl_PREREQ_RMDIR): Remove.
78629         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78630         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78631         the stat-macros module a prerequisite.
78632         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78633         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78634         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78635         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78636         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78637         variable names.
78638         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78639         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78640         variable prefixes.
78641         * m4/fcntl-safer.m4: Remove.
78642         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78643         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78644         Invoke gl_PREREQ_FD_SAFER.
78645         (gl_PREREQ_FD_SAFER): New macro.
78646         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78647         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78648         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78649         Remove duplicate call to AC_LIBOBJ(readutmp).
78650         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78651
78652         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78653         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78654
78655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * MODULES.html.sh (Misc): Add byteswap.
78658
78659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78660
78661         * modules/getcwd (Depends-on): Add extensions.
78662         * modules/openat (Depends-on): Likewise.
78663
78664 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78665
78666         * modules/byteswap: New file.
78667
78668 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78669
78670         * m4/byteswap.m4: New file.
78671
78672 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78673
78674         * lib/byteswap_.h: New file.
78675
78676 2005-04-25  Karl Berry  <karl@gnu.org>
78677
78678         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78679
78680 2005-04-25  Albert Chin  <china@thewrittenword.com>
78681
78682         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78683         Toolkit C bug.
78684
78685 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78686
78687         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78688         (func_ln_if_changed): Remove forcibly for no error message
78689         in case file does not exist.
78690
78691 2005-04-19  Simon Josefsson  <jas@extundo.com>
78692
78693         * gnulib-tool (Options): Make --symlink mean --symbolic.
78694
78695 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78696
78697         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78698
78699 2005-04-16  Simon Josefsson  <jas@extundo.com>
78700
78701         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78702
78703 2005-04-15  Simon Josefsson  <jas@extundo.com>
78704
78705         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78706
78707 2005-04-15  Simon Josefsson  <jas@extundo.com>
78708
78709         * gnulib-tool: Rename --symlink to --symbolic.
78710
78711 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78712
78713         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78714         symbolic links to files instead of copying/moving.  Add --aux-dir,
78715         specifying directory relative --dir where auxiliary build tools
78716         are placed.
78717
78718 2005-04-14  Bruno Haible  <bruno@clisp.org>
78719
78720         * modules/allocsa (License): Change to LGPL.
78721         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78722
78723 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78726         that "UTC +1 second" continues to work.  Problem reported
78727         by Dmitry V. Levin.
78728         (relunit_snumber): New rule.
78729         (relunit): Use it.
78730
78731 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/getdate.y (universal_time_zone_table): New constant.
78734         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78735         universal_time_zone_table.
78736         (lookup_zone): Prefer universal_time_zone_table to
78737         local_time_zone_table, so that "GMT" time stamps are allowed in
78738         London during the summer.  Problem reported by Ian Abbott.
78739
78740 2005-04-12  Jim Meyering  <jim@meyering.net>
78741
78742         * lib/human.c (humblock): Set *options even when returning due to
78743         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78744         warning from gcc-4.
78745
78746 2005-04-09  Jim Meyering  <jim@meyering.net>
78747
78748         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78749         -Wuninitialized: initialize tm0.tm_year.
78750
78751 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78754         count, since there's no maximum.  All uses changed.
78755         Add member dsts_seen.
78756         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78757         not being INT_MAX.
78758         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78759         Use pc_rels_seen to decide whther a date is absolute.
78760
78761         * lib/getdate.y (number): Don't overwrite year.
78762         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78763         check.
78764
78765 2005-04-02  Simon Josefsson  <jas@extundo.com>
78766
78767         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78768         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78769
78770 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78771
78772         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78773         where no absolute path name can be longer than PATH_MAX.
78774
78775 2005-03-27  Jim Meyering  <jim@meyering.net>
78776
78777         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78778
78779 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78782         "one's complement" -> "ones' complement" in comment, as per Knuth.
78783         "value of type" -> "type or expression" in comment.
78784         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78785
78786 2005-03-26  Jim Meyering  <jim@meyering.net>
78787
78788         Comment nits.
78789         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78790         Correct typos: s/or/of/.
78791
78792 2005-03-26  Jim Meyering  <jim@meyering.net>
78793
78794         * modules/check-include-files: Move to ../ and rename to...
78795         * check-module: ...this.
78796
78797 2005-03-25  Jim Meyering  <jim@meyering.net>
78798
78799         * modules/xvasprintf (Files): Add xalloc.h.
78800
78801 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         * modules/gettext (Files): config/config.rpath ->
78804         build-aux/config.rpath
78805         * modules/iconv (Files): Likewise.
78806         Problem reported by Oskar Liljeblad.
78807
78808 2005-03-23  Jim Meyering  <jim@meyering.net>
78809
78810         * modules/check-include-files: New script to check for
78811         missing dependencies, multiple includes, etc.
78812
78813         * modules/c-strtold (Depends-on): Add xalloc.
78814         * modules/c-strtod (Depends-on): Add xalloc.
78815         * modules/hash (Depends-on): Add xalloc.
78816         (Files): Remove lib/xalloc.h.
78817
78818         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78819         * modules/userspec (Files): Add lib/inttostr.h.
78820
78821 2005-03-23  Jim Meyering  <jim@meyering.net>
78822
78823         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78824
78825 2005-03-22  Jim Meyering  <jim@meyering.net>
78826
78827         * modules/stat-macros: New module.
78828         * modules/canonicalize, modules/euidaccess, modules/file-type,
78829         * modules/filemode, modules/lchown, modules/makepath,
78830         * modules/rmdir, modules/stat: Depend on new stat-macros module
78831         rather than listing lib/stat-macros.h manually.
78832         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78833
78834 2005-03-22  Jim Meyering  <jim@meyering.net>
78835
78836         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78837
78838 2005-03-22  Bruno Haible  <bruno@clisp.org>
78839
78840         * config/srclist.txt: Replace target directory 'config' with
78841         'build-aux'.
78842         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78843         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78844         ../build-aux/.
78845
78846 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * modules/chdir-long (Depends-on): Add mempcpy.
78849
78850         * modules/acl, modules/backupfile, modules/c-strtod,
78851         modules/c-strtold, modules/canon-host, modules/canonicalize,
78852         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78853         modules/exclude, modules/exitfail, modules/file-type,
78854         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78855         modules/getdate, modules/getline, modules/getpagesize,
78856         modules/getpass, modules/getugroups, modules/group-member,
78857         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78858         modules/inttostr, modules/long-options, modules/makepath,
78859         modules/md5, modules/memcasecmp, modules/memcoll,
78860         modules/modechange, modules/mountlist, modules/path-concat,
78861         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78862         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78863         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78864         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78865         modules/strftime, modules/strndup, modules/strverscmp,
78866         modules/timespec, modules/unlocked-io, modules/userspec,
78867         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78868         modules/yesno:
78869         Remove lib_SOURCES line from Makefile.am section, as this is now
78870         done automatically by the corresponding Autoconf macro.
78871
78872 2005-03-21  Jim Meyering  <jim@meyering.net>
78873
78874         Changes imported from coreutils.
78875
78876         * lib/cycle-check.c: Don't include xalloc.h.
78877
78878         * lib/path-concat.c: Don't include assert.h.
78879         (path_concat): Remove assertion that would have triggered
78880         for ABASE starting with more than one slash.
78881         Reported by Andreas Schwab.
78882
78883         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78884         properly when ABASE is an absolute file name.
78885         Correct the description of this function.
78886         Include <assert.h>.
78887         Add an assertion and a test driver.
78888         This fixes a bug introduced on 2004-07-02.
78889         Andreas Schwab reported the resulting failure of cp --parents:
78890         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78891
78892 2005-03-21  Jim Meyering  <jim@meyering.net>
78893
78894         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78896
78897 2005-03-21  Jim Meyering  <jim@meyering.net>
78898         and  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78901         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78902         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78903         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78904         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78905         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78906         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78907         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78908         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78909         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78910         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78911         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78912         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78913         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78914         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78915         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78916         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78917         for these modules.
78918
78919 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78922         (which shouldn't happen), generate nothing instead of returning 0
78923         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78924
78925 2005-03-16  Bruno Haible  <bruno@clisp.org>
78926
78927         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78928         HAVE_LONGLONG_64BIT.
78929
78930 2005-03-16  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78933         HAVE_LONGLONG_64BIT.
78934
78935 2005-03-16  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78938         HAVE_LONGLONG_64BIT.
78939
78940 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78943         reliably distinguish strftime failure from empty output on POSIX
78944         hosts.
78945
78946 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78949         (iconv_string): Don't guess a size-zero buffer, as that might cause
78950         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78951         result would be 'too large', where 'too large' is (heuristically)
78952         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78953         overflow concerns.  This will prevent some unwanted malloc failures
78954         when the inputs are very large.
78955
78956 2005-03-15  Karl Berry  <karl@gnu.org>
78957
78958         * config/srclist.txt (config.rpath): from gettext.
78959         * config/config.rpath: update.
78960
78961 2005-03-15  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78964         to 'negate'.
78965
78966         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78967         variable.
78968
78969         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78970         results.
78971
78972 2005-03-14  Simon Josefsson  <jas@extundo.com>
78973
78974         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78975         <fx@gnu.org>.
78976
78977 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78978
78979         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78980         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78981         intprops.h.
78982         * lib/strtol.c: Likewise.
78983
78984 2005-03-14  Jim Meyering  <jim@meyering.net>
78985
78986         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78987         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78988         to be nonzero so that we (and caller) can detect the difference
78989         between a valid zero-length expansion and an error return, even
78990         when the underlying strftime fails before writing anything into
78991         that location.
78992
78993 2005-03-14  Bruno Haible  <bruno@clisp.org>
78994
78995         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78996         Update from GNU gettext 0.14.3.
78997
78998 2005-03-10  Jim Meyering  <jim@meyering.net>
78999
79000         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79001
79002 2005-03-10  Jim Meyering  <jim@meyering.net>
79003
79004         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79005         so that this module works on systems without fchdir.
79006
79007 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         Factor int-properties macros into a single file, except for
79010         glibc-related files.
79011         * lib/intprops.h: New file.
79012         * lib/getloadavg.c: Include it instead of limits.h.
79013         (INT_STRLEN_BOUND): Remove.
79014         * lib/human.c: Include intprops.h.
79015         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79016         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79017         302/1000.
79018         * lib/inttostr.h: Include intprops.h instead of limits.h.
79019         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79020         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79021         for consistency with intprops.h.
79022         (time_t_is_integer, twos_complement_arithmetic): Use them.
79023         * lib/sig2str.h: Include <signal.h>, intprops.h.
79024         (INT_STRLEN_BOUND): Remove.
79025         * lib/strftime.c (TYPE_SIGNED): Remove.
79026         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79027         * lib/strtol.c: Adjust comments to match intprops.h.
79028         * lib/userspec.c: Include intprops.h.
79029         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79030         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79031         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79032         instead of rolling our own expressions.
79033         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79034
79035         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79036         instead of int.
79037         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79038         the right thing even if adding 1900 would overflow.  Similarly
79039         for tm_mon + 1 and tm_yday + 1.
79040         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79041         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79042         (DO_SIGNED_NUMBER): New macro.
79043         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79044
79045 2005-03-07  Bruno Haible  <bruno@clisp.org>
79046
79047         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79048
79049 2005-03-07  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79052
79053 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79054
79055         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79056         (func_import): Only replace files via --import when they have actually
79057         changed.
79058
79059 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79060
79061         * m4/mmap-anon.m4: New file.
79062         * m4/pagealign_alloc.m4: New file.
79063
79064 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79065             Bruno Haible  <bruno@clisp.org>
79066
79067         * modules/pagealign_alloc: New file.
79068         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79069
79070 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79071             Bruno Haible  <bruno@clisp.org>
79072
79073         * lib/pagealign_alloc.h: New file.
79074         * lib/pagealign_alloc.c: New file.
79075
79076 2005-03-03  Bruno Haible  <bruno@clisp.org>
79077
79078         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79079         Use an all-permissive copyright notice, recommended by RMS.
79080
79081 2005-03-02  Bruno Haible  <bruno@clisp.org>
79082
79083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79084         of AIX, the replacement has to be done only after <string.h> is
79085         included, therefore not in config.h. stpncpy.h does the replacement,
79086         and stpncpy.c uses it.
79087
79088 2005-03-02  Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79091         stpncpy.c uses it.
79092
79093 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79094
79095         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79096         The workaround isn't strictly needed for POSIX conformance, and
79097         it's too much of a pain to configure and maintain.  We'll ask
79098         people to fix their kernels instead.
79099         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79100         (NANOSLEEP_BUG_WORKAROUND): Remove.
79101         (xnanosleep): Remove the workaround.
79102
79103 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79106         Reported by Derek Price.
79107         (Include): Add "timespec.h".
79108
79109         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79110
79111 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79114         to detect nanosleep bug.
79115
79116 2005-03-01  Bruno Haible  <bruno@clisp.org>
79117
79118         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79119
79120 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * modules/gethrxtime: New file.
79123         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79124         (Depends-on): Add gethrxtime.
79125         (configure.ac): Add gl_XNANOSLEEP.
79126         (Makefile.am): Remove lib_SOURCES line.
79127
79128 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79131         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79132
79133 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79136         * lib/timespec.h (gettime): Return void, since it always
79137         succeeds now.  All uses changed.
79138         * lib/gettime.c (gettime): Likewise.
79139         [HAVE_NANOTIME]: Prefer nanotime.
79140         Assume gettimeofday succeeds, as POSIX requires.
79141         Assime time () succeeds, since other code already does.
79142         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79143         (timespec_subtract): Remove.
79144         (NANOSLEEP_BUG_WORKAROUND): New constant.
79145         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79146         things considerably.  Use it only on GNU/Linux hosts, since the
79147         workaround shouldn't be needed elsewhere.
79148
79149 2005-02-24  Bruno Haible  <bruno@clisp.org>
79150
79151         * modules/gettext (Files): Add m4/glibc2.m4.
79152
79153 2005-02-24  Bruno Haible  <bruno@clisp.org>
79154
79155         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79156         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79157         * m4/progtest.m4:
79158         Update from GNU gettext 0.14.2.
79159         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79160
79161 2005-02-24  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79164         * lib/config.charset: Update from GNU gettext 0.14.2.
79165
79166 2005-02-24  Bruno Haible  <bruno@clisp.org>
79167
79168         * lib/gettext.h: Update from GNU gettext 0.14.2.
79169
79170 2005-02-23  Simon Josefsson  <jas@extundo.com>
79171
79172         * m4/iconvme.m4: New file.
79173
79174 2005-02-23  Jim Meyering  <jim@meyering.net>
79175
79176         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79177         change.
79178         Thanks to Bruno Haible for catching it.
79179
79180 2005-02-22  Simon Josefsson  <jas@extundo.com>
79181
79182         * modules/iconvme: New file.
79183
79184         * MODULES.html.sh: Add iconvme.
79185
79186 2005-02-22  Simon Josefsson  <jas@extundo.com>
79187
79188         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79189
79190 2005-02-22  Simon Josefsson  <jas@extundo.com>
79191
79192         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79193
79194 2005-02-22  Jim Meyering  <jim@meyering.net>
79195
79196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79197         s/ifndef/ifdef/.
79198
79199 2005-02-20  Neil Conway  <neilc@samurai.com>
79200
79201         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79202         returned by OSX/Darwin if the specified buffer is not large
79203         enough for the hostname.
79204
79205 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79206
79207         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79208         pass it to _help, otherwise the latter coredumps trying to
79209         dereference state.root_argp.
79210
79211 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         * modules/chdir-long (Depends-on): Add memrchr.
79214         * modules/memrchr (Files): Add lib/memrchr.h.
79215         (Include): "memrchr.h".
79216
79217 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79220
79221 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * lib/memrchr.h: New file.
79224         * lib/chdir-long.c: Include it.
79225         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79226         Don't bother including stddef.h.
79227
79228 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79231         inclusion.
79232         Include <sys/types.h>, for dev_t.
79233         (ME_DUMMY, ME_REMOTE): Move from here....
79234         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79235         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79236         Dmitry V. Levin.
79237         Include mountlist.h first, to test the interface.
79238
79239 2005-01-29  Bruno Haible  <bruno@clisp.org>
79240
79241         * lib/progname.c (program_name): Initialize.
79242         Needed when linking statically on MacOS X.
79243
79244 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         Sync from coreutils.
79247         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79248         (Depends-on): Add c-strtod.
79249         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79250
79251 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79252
79253         Sync from coreutils.
79254         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79255
79256         Remove files that are specific to coreutils.
79257         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79258
79259 2005-01-28  Bruno Haible  <bruno@clisp.org>
79260
79261         * modules/javacomp: New file.
79262         * MODULES.html.sh (Java): Add javacomp.
79263
79264 2005-01-28  Bruno Haible  <bruno@clisp.org>
79265
79266         * m4/javacomp.m4: New file, from GNU gettext.
79267
79268 2005-01-28  Bruno Haible  <bruno@clisp.org>
79269
79270         * lib/javacomp.sh.in: New file, from GNU gettext.
79271         * lib/javacomp.h: New file, from GNU gettext.
79272         * lib/javacomp.c: New file, from GNU gettext.
79273
79274 2005-01-26  Simon Josefsson  <jas@extundo.com>
79275
79276         * lib/gai_strerror.c: Use GPL in header.
79277
79278 2005-01-26  Bruno Haible  <bruno@clisp.org>
79279
79280         * modules/javaexec: New file.
79281         * MODULES.html.sh (Java): Add javaexec.
79282
79283 2005-01-26  Bruno Haible  <bruno@clisp.org>
79284
79285         * m4/javaexec.m4: New file, from GNU gettext.
79286
79287 2005-01-26  Bruno Haible  <bruno@clisp.org>
79288
79289         * lib/javaexec.sh.in: New file, from GNU gettext.
79290         * lib/javaexec.h: New file, from GNU gettext.
79291         * lib/javaexec.c: New file, from GNU gettext.
79292
79293 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79294
79295         * modules/lchown (Depends-on): Remove lchown.h
79296
79297 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79298
79299         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79300         must be defined if the header file was not found, in order
79301         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79302
79303 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79304
79305         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79306         initializers for struct pentry_state.
79307         (__argp_error): Check return value of __asprintf
79308         (__argp_failure): Translate error message
79309
79310         * lib/argp-parse.c: Removed braces around the expansion of N_()
79311
79312 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79315         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79316         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79317         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79318         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79319         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79320         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79321         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79322         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79323         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79324         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79325         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79326         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79327         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79328         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79329         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79330         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79331         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79332         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79333         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79334         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79335         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79336         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79337         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79338         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79339         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79340         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79341         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79342         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79343         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79344         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79345         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79346         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79347         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79348         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79349         Use an all-permissive copyright notice, recommended by RMS.
79350
79351 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         * modules/chdir-long (Depends-on): Remove mempcpy.
79354
79355 2005-01-21  Jim Meyering  <jim@meyering.net>
79356
79357         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79358         same value as for Solaris 9.
79359
79360         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79361         component length.  This included changing the parameter to be
79362         of type `char *' rather than `char const *'.
79363         * lib/chdir-long.h (chdir_long): Update prototype.
79364
79365         * lib/openat.c (fdopendir, fstatat): New functions.
79366         * lib/openat.h: Include headers required for use of DIR and struct
79367         stat.
79368         [AT_SYMLINK_NOFOLLOW]: Define.
79369         (fdopendir, fstatat): Add prototypes.
79370
79371 2005-01-21  Bruno Haible  <bruno@clisp.org>
79372
79373         * modules/classpath: New file.
79374         * MODULES.html.sh (Java): Add classpath.
79375
79376 2005-01-21  Bruno Haible  <bruno@clisp.org>
79377
79378         * lib/classpath.h: New file, from GNU gettext.
79379         * lib/classpath.c: New file, from GNU gettext.
79380
79381 2005-01-20  Simon Josefsson  <jas@extundo.com>
79382
79383         * modules/version-etc-fsf: New file.
79384
79385 2005-01-20  Simon Josefsson  <jas@extundo.com>
79386
79387         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79388         * lib/version-etc.c: Remove version_etc_copyright.
79389         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79390         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79391
79392 2005-01-20  Simon Josefsson  <jas@extundo.com>
79393
79394         * lib/base64.h (isbase64): Add.
79395
79396         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79397         using a unsigned prototype, don't inline.
79398         (base64_decode): Use it.
79399
79400 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79403         it.
79404
79405 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * lib/save-cwd.c (save_cwd): Remove code to support the case
79408         where fchdir is missing or flaky.
79409
79410 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79413
79414 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79417         AC_LIBSOURCES now does this.
79418         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79419         with new ullong_max module.
79420
79421 2005-01-19  Bruno Haible  <bruno@clisp.org>
79422
79423         * modules/sh-quote: New file.
79424         * MODULES.html.sh (Executing programs): Add sh-quote.
79425
79426 2005-01-19  Bruno Haible  <bruno@clisp.org>
79427
79428         * lib/sh-quote.h: New file, from GNU gettext.
79429         * lib/sh-quote.c: New file, from GNU gettext.
79430
79431 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         Merge from coreutils.
79434         * m4/ullong_max.m4: New file.
79435         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79436         (gl_MACROS): Assume localeconv exists.
79437
79438 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         Merge changes from coreutils, as described below in several
79441         changelogs dated today.
79442
79443         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79444         (O_DIRECTORY): Remove; not needed here, since "." must be
79445         a directory.  All uses removed.
79446         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79447         universal on Suns, and we also need to test for IRIX.
79448         Revamp code to use 'if' rather than '#if'.
79449         Avoid unnecessary comparison of cwd->desc to 0.
79450
79451         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79452         for known valid error numbers rather than observed invalid ones.
79453
79454 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * modules/ullong_max: New file.
79457
79458         * modules/chdir-long, modules/openat: New files.
79459         * modules/save-cwd (Depends-on): Depend on chdir-long.
79460         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79461
79462 2005-01-18  Jim Meyering  <jim@meyering.net>
79463
79464         Merge from coreutils.
79465         * m4/chdir-long.m4, m4/openat.m4: New files.
79466         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79467         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79468         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79469         is sane and DOES follow symlinks.  Besides, testing 20 different
79470         systems found no broken chown implementations.
79471         Prompted by a change in rsync's copy of this macro.
79472         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79473
79474         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79475
79476         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79477         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79478         NULL-means-set-to-current-time semantics.
79479         Remove temporary file immediately, rather than waiting
79480         for configure's at-exit trap code to do it.
79481
79482 2005-01-18  Jim Meyering  <jim@meyering.net>
79483
79484         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79485
79486         * lib/utimens.c (futimens): Account for the fact that futimes
79487         can also fail with errno == ENOSYS or errno == ENOENT.
79488         Patch from Dmitry V. Levin.
79489
79490         Change the name of the robust chdir function from chdir to chdir_long.
79491         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79492         (restore_cwd): Use chdir_long, not chdir.
79493         * lib/chdir-long.c: Renamed from chdir.c.
79494         * lib/chdir-long.h: Renamed from chdir.h.
79495         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79496         Hurd.
79497
79498 2005-01-18  Bruno Haible  <bruno@clisp.org>
79499
79500         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79501         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79502         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79503         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79504         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79505         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79506         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79507         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79508         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79509         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79510         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79511         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79512         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79513         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79514         Use an all-permissive copyright notice, recommended by RMS.
79515
79516 2005-01-18  Bob Proulx  <bob@proulx.com>
79517
79518         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79519         simplify offsetof() macro construct to avoid compile failure with
79520         native HP-UX 11.0 ANSI C compiler.
79521
79522 2005-01-17  Bruno Haible  <bruno@clisp.org>
79523
79524         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79525         redundant because stpncpy.m4 takes care of it.
79526
79527 2005-01-17  Bruno Haible  <bruno@clisp.org>
79528
79529         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79530
79531 2005-01-17  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79534         used.
79535
79536 2005-01-17  Bruno Haible  <bruno@clisp.org>
79537
79538         * lib/fwriteerror.h (fwriteerror): Change specification to include
79539         fclose.
79540         * lib/fwriteerror.c: Include <stdbool.h>.
79541         (fwriteerror): At the end, close the file stream. Record whether
79542         stdout was already closed.
79543
79544 2005-01-17  Bruno Haible  <bruno@clisp.org>
79545
79546         * lib/execute.c (environ): Declare if needed.
79547         * lib/pipe.c (environ): Likewise.
79548         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79549
79550 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79551
79552         * modules/argp: Depend on vsnprintf
79553
79554 2005-01-10  Jim Meyering  <jim@meyering.net>
79555
79556         * modules/closeout (Depends-on): Add atexit.
79557
79558 2005-01-06  Bruno Haible  <bruno@clisp.org>
79559
79560         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79561
79562 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79565         definitions to be after all include files, to avoid collisions.
79566         Problem reported by Bob Proulx.
79567
79568 2005-01-04  Jim Meyering  <jim@meyering.net>
79569
79570         Changes imported from coreutils.
79571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79572         as the mkstemp template, use a temporary directory and an
79573         8.3-friendly template to avoid trouble on systems like DJGPP.
79574         Reported by Juan M. Guerrero via Stepan Kasal.
79575         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79576         close. Remove the temporary directory right away, rather than waiting
79577         for configure's at-exit trap code to do it.
79578         Suggestion from Stepan Kasal.
79579
79580 2005-01-01  Simon Josefsson  <jas@extundo.com>
79581
79582         * gnulib-tool: Print #include directives when --import'ing.
79583
79584 2004-12-28  Simon Josefsson  <jas@extundo.com>
79585
79586         * tests/test-base64.c: Include required header files.  Remove
79587         unused variables.
79588
79589 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * modules/error (Depends-on): Remove gettext.
79592
79593 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79596         not needed.  This removes a dependency on the gettext module.
79597         [defined _LIBC]: Do not include <libintl.h>; not needed.
79598
79599 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79602         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79603
79604 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79607         HAVE_DECL_STRTOLD.
79608
79609 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         * modules/getdate (Depends-on): Remove alloca-opt.
79612
79613 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79616
79617 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         * lib/argp-parse.c: Include <stddef.h>.
79620         (alignof, alignto): New macros.
79621         (parser_init): Don't assume that void * is aligned sufficiently
79622         for struct option.
79623
79624         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79625         need to extend the stack.
79626         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79627         large.
79628
79629 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79630
79631         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79632
79633 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79636         (2004-10-24) change.  Apparently this was a false alarm.
79637
79638         * modules/getdate: Depend on alloca-opt, not alloca.
79639
79640 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79643         Remove now-obsolete comment about AIX.
79644         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79645         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79646         (YYMAXDEPTH): New macro.
79647
79648 2004-12-18  Simon Josefsson  <jas@extundo.com>
79649
79650         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79651
79652 2004-12-18  Bruno Haible  <bruno@clisp.org>
79653
79654         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79655
79656 2004-12-18  Bruno Haible  <bruno@clisp.org>
79657
79658         * lib/fatal-signal.c (fatal_signals): Make non-const.
79659         (init_fatal_signals): New function.
79660         (uninstall_handlers, install_handlers): Ignore signals that were set to
79661         SIG_IGN.
79662         (at_fatal_signal): Call init_fatal_signals.
79663         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79664         SIG_IGN.
79665         Reported by Paul Eggert.
79666
79667 2004-12-18  Bruno Haible  <bruno@clisp.org>
79668
79669         * doc/alloca.texi: New file.
79670         * doc/alloca-opt.texi: New file.
79671
79672 2004-12-17  Jim Meyering  <jim@meyering.net>
79673
79674         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79675         Otherwise, install-sh could exit with improper exit status when
79676         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79677
79678 2004-12-16  Simon Josefsson  <jas@extundo.com>
79679
79680         * tests/test-base64.c: Add license.
79681
79682 2004-12-15  Stepan Kasal  <address@hidden>
79683
79684         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79685
79686 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * modules/getcwd (Files): Add m4/d-ino.m4.
79689         Suggested by Mark D. Baushke.
79690
79691 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * lib/getdate.y (textint): New member "negative".
79694         (time_zone_hhmm): New function.
79695         Expect 14 shift-reduce conflicts, not 13.
79696         (o_colon_minutes): New rule.
79697         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79698         (yylex): Set the "negative" member of signed numbers.
79699
79700 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * doc/getdate.texi (Time of day items, Time zone items):
79703         Describe new formats +00:00, UTC+00:00.
79704
79705 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79708         spurious "-l"s.  Problem reported by Stepan Kasal.
79709
79710 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79713         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79714
79715 2004-12-04  Simon Josefsson  <jas@extundo.com>
79716
79717         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79718         Vandoorselaere <yoann@prelude-ids.org>.
79719
79720 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         Changes imported from coreutils.
79723         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79724         exist.
79725         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79726
79727 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79728
79729         Changes imported from coreutils.
79730         * lib/hard-locale.c: Assume <locale.h> exists.
79731         Include "strdup.h".
79732         (GLIBC_VERSION): New macro.
79733         (hard_locale): Assume setlocale exists.
79734         Rewrite to avoid #ifdef.
79735         Use strdup rather than malloc + strcpy.
79736         * lib/human.c: Assume <locale.h> exists.
79737         (human_readable): Assume localeconv exists.
79738
79739 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * modules/hard-locale (Depends-on): Add strdup.
79742
79743 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79744
79745         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79746         convert T2, not T.  (Imported from libc.)
79747
79748 2004-11-30  Simon Josefsson  <jas@extundo.com>
79749
79750         * modules/restrict (License): Change to LGPL.
79751
79752 2004-11-30  Simon Josefsson  <jas@extundo.com>
79753
79754         * m4/restrict.m4: Add copyright and copying conditions.
79755
79756 2004-11-30  Simon Josefsson  <jas@extundo.com>
79757
79758         * m4/base64.m4: New file.
79759
79760 2004-11-30  Simon Josefsson  <jas@extundo.com>
79761
79762         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79763         base64.
79764
79765         * tests/test-base64.c: New file.
79766
79767         * modules/base64: New file.
79768
79769 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79772         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79773
79774         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79775
79776 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79779         (__getcwd.c): Don't restore errno; glibc doesn't.
79780         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79781         first, falling back to our code only if its results look suspicious.
79782         Ensure that the resulting buffer is only as large as necessary.
79783
79784         * lib/readutmp.c: Include readutmp.h first.
79785         Include <errno.h>, since readutmp.h no longer does that.
79786         * lib/readutmp.h: Don't include <errno.h>,
79787         <sys/param.h>, <time.h>; not needed to establish interface.
79788         (errno): Remove decl.
79789         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79790         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79791         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79792
79793 2004-11-28  Simon Josefsson  <jas@extundo.com>
79794
79795         * lib/base64.h, base64.c: New file.
79796
79797 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79798
79799         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79800
79801 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79804         (Depends-on): Remove pathmax, same.  Add mempcpy.
79805         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79806         (Makefile.am): Append getcwd.h to lib_SOURCES.
79807         (Include): Add getcwd.h.
79808         (Maintainer): Change from Jim Meyering to "all, glibc",
79809         since getdate now uses intended-for-glibc code.
79810         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79811         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79812
79813 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79816         HP's ANSI C compiler.
79817         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79818         Declaring int functions causes warnings on some modern systems and
79819         shouldn't be needed to compile on ancient ones.
79820         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79821         defined.
79822
79823         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79824         with the following changes.
79825         (__set_errno): Parenthesize properly.
79826         Include <stdbool.h>.
79827         (MIN, MAX, MATCHING_INO): New macros.
79828         (__getcwd): Define with prototype, not K&R form.
79829         Use heuristics to allocate default buffer on stack if possible.
79830         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79831         behavior, and to avoid the PATH_MAX limit when computing
79832         ../../../../...
79833         Use MATCHING_INO to compare inode number to file.
79834         Check for arithmetic overflow in size calculations.
79835         Fix bug in reallocation of dot array that caused getcwd to fail
79836         on directories nested deeper than 75.
79837         Be more careful about saving errno on error.
79838         Do not use realloc; use only free+malloc, as this is a bit
79839         more flexible and avoids a needless copy operation.
79840         Do not inspect st_dev and st_ino for symbolic links; POSIX
79841         doesn't specify the latter.
79842         Check for closedir errors.
79843         Avoid needless casts.
79844         Use "#ifdef weak_alias" around weak_alias, to be like other
79845         glibc code.
79846         The following changes to getcwd.c have effect only when used in
79847         gnulib; they have no effect inside glibc proper.
79848         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79849         as alloca isn't used.
79850         (alloca, __alloca): Likewise.
79851         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79852         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79853         unconditionally, as gnulib assumes C89 or better.
79854         Do not include <sys/param.h>.
79855         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79856         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79857         better.
79858         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79859         Include <dirent.h> in a way that is compatible with modern Autoconf.
79860         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79861         New macros, if not already defined.
79862         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79863         Use "_LIBC", not "defined _LIBC", for consistency.
79864         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79865         a mempcpy module.
79866         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79867         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79868         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79869         credit only to Jim Meyering and adjust the copyright dates.
79870         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79871         <stdlib.h>, <unistd.h>, "pathmax.h".
79872         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79873         (INITIAL_BUFFER_SIZE): Remove.
79874         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79875
79876 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79879         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79880         Use the _ONCE methods, for efficiency.
79881         Check for fcntl.h.  In test program, include <errno.h>
79882         and <fcntl.h> if available.  Remove old K&R cruft from
79883         test program.  Check for common errors in GNU/Linux,
79884         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79885         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79886         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79887         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79888         name accordingly.
79889         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79890         accommodate new getcwd.c.
79891         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79892         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79893         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79894         that's all we need now.
79895
79896 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79897
79898         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79899         argp-parse.c depends on getopt internals, that means we should
79900         always use our getopt, to be on the safe side.
79901         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79902         order not to spoil the result of an eventual previous invocation
79903         of gl_GETOPT_SUBSTITUTE.
79904
79905 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79906
79907         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79908         redefinition warnings. To avoid them, include the defines
79909         in `#if !defined __need_getopt ... #endif'. The only place
79910         where __getopt_argv_const is used is in definitions
79911         of getopt_long and getopt_long_only below, which are as well
79912         protected by `#ifndef __need_getopt'.
79913         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79914         __need_getopt after including <stdio.h> and <unistd.h> These
79915         headers might have defined it.
79916
79917 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79920
79921 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79924         (futimens): New function, which uses futimes if available.
79925         (futimens, utimens): Support timespec==NULL, with same semantics
79926         as utime and utimens.
79927         * lib/utimens.h (futimens): New decl.
79928
79929 2004-11-23  Jim Meyering  <jim@meyering.net>
79930
79931         * lib/getopt_.h: Remove trailing blanks.
79932
79933 2004-11-23  Jim Meyering  <jim@meyering.net>
79934
79935         * lib/__fpending.c: Add comment.
79936
79937 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * modules/canonicalize (Depends-on): Add xreadlink.
79940         Problem reported by James Youngman.
79941
79942 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79945         New macros.
79946         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79947         optopt): Use them instead of invoking ## directly; otherwise, the
79948         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79949
79950 2004-11-19  Bruno Haible  <bruno@clisp.org>
79951
79952         * lib/strtok_r.c: Move comments from here...
79953         * lib/strtok_r.h: ... to here.
79954
79955 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79958         implementations that mishandle size_t overflow.
79959
79960 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79961
79962         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79963         might fail.  Problem reported by Yoann Vandoorselaere.
79964         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79965         implementations that mishandle size_t overflow.
79966
79967 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * modules/canon-host (Depends-on): Add strdup.
79970
79971 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79974
79975 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         * lib/canon-host.c: Include "strdup.h".
79978         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79979         Use strdup instead of malloc/strcpy to duplicate strings.
79980
79981         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79982         (human_space_before_unit): New constant.
79983         * lib/human.c (human_readable): Support it.
79984
79985         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79986         (xgetcwd): Set errno correctly when failing.
79987         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79988         the failure is actually due to a PATH_MAX problem.
79989
79990         Further getopt changes to make it more likely that glibc will
79991         buy the changes back.
79992         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79993         (getopt): Use it, so to preserve glibc semantic
79994         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79995         when compiling for libc.
79996         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79997         (getopt_long, getopt_long_only): Use it.
79998
79999         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80000         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80001         (getopt): Argv is now char * const *, as per standard.
80002         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80003         not char *__getopt_argv_const *.
80004         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80005         _getopt_long_only_r): Likewise.
80006         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80007         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80008         _getopt_long_r, _getopt_long_only_r): Likewise.
80009         * lib/getopt_.h (__getopt_argv_const): Remove.
80010         (getopt): Argv is now char * const *, as per standard.
80011
80012         * lib/getdate.y (tORDINAL): New token.
80013         (day, relunit): Allow it for relative times.
80014         (relative_time_table): Use tORDINAL for ordinals.
80015
80016 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80017
80018         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80019         Document that "second" isn't allowed as an ordinal number.
80020
80021 2004-11-16  Jim Meyering  <jim@meyering.net>
80022
80023         * modules/closeout (Depends-on): Add fpending.
80024
80025 2004-11-15  Jim Meyering  <jim@meyering.net>
80026
80027         * lib/closeout.c: Include "__fpending.h" once again.
80028         Include <stdbool.h>.
80029         (close_stdout): Don't fail just because stdout was closed initially,
80030         since some programs don't write to stdout in the normal course of
80031         operation (other than --version and --help), and we don't want this
80032         function to make e.g. `touch file >&-' fail.
80033         But do fail if it was closed and someone has tried to write to it.
80034         E.g., `printf foo >&-' must fail.
80035
80036 2004-11-13  Jim Meyering  <jim@meyering.net>
80037
80038         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80039
80040 2004-11-12  Simon Josefsson  <jas@extundo.com>
80041
80042         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80043         small doc fix is still pending.
80044
80045 2004-11-11  Simon Josefsson  <jas@extundo.com>
80046
80047         * modules/strtok_r: New file.
80048
80049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80050         strtok_r.
80051
80052 2004-11-11  Simon Josefsson  <jas@extundo.com>
80053
80054         * m4/strtok_r.m4: New file.
80055
80056         * m4/getopt.m4: Replace opterr.
80057
80058 2004-11-11  Simon Josefsson  <jas@extundo.com>
80059
80060         * lib/strtok_r.h, strtok_r.c: New file.
80061
80062 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80065         of replacing opterr, getopt, etc.  This should handle the
80066         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80067
80068 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80071         we can stop lying to compilers about the constness of argv when we
80072         are compiled outside glibc.
80073         (getopt, getopt_long, getopt_long_only): Use it.
80074         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80075         _getopt_internal, getopt): Likewise.
80076         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80077         _getopt_long_only_r): Likewise.
80078         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80079         _getopt_long_r, _getopt_long_only_r): Likewise.
80080
80081         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80082         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80083         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80084         the other external symbols.
80085         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80086         declaration, since the above renaming now works around collisions.
80087
80088 2004-11-11  Jim Meyering  <jim@meyering.net>
80089
80090         * lib/linebreak.c: Remove trailing blanks.
80091         * lib/alloca_.h: Likewise.
80092         * lib/acosl.c: Likewise.
80093         * lib/euidaccess.c: Likewise.
80094         * lib/allocsa.h: Likewise.
80095
80096 2004-11-10  Simon Josefsson  <jas@extundo.com>
80097
80098         * m4/getaddrinfo.m4: New file.
80099
80100 2004-11-10  Simon Josefsson  <jas@extundo.com>
80101
80102         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80103
80104 2004-11-10  Simon Josefsson  <jas@extundo.com>
80105
80106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80107         getaddrinfo.
80108
80109         * modules/getaddrinfo: New file.
80110
80111 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80114
80115 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/mktime.c (SHR): New macro, which is a portable
80118         substitute for >> that should work even on Crays.
80119         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80120         Problem reported by Mark D. Baushke in
80121         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80122         * lib/getdate.y (SHR): Likewise.
80123         (tm_diff): Use it.
80124         * lib/strftime.c (SHR): Likewise.
80125         (tm_diff): Use it.
80126         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80127         quote_these_too, so that right shifts are well defined.  All uses
80128         changed.
80129
80130 2004-11-10  Jim Meyering  <jim@meyering.net>
80131
80132         Ensure that no close failure goes unreported.
80133         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80134         return early when it seems there's nothing to flush.
80135         Don't include __fpending.h.
80136
80137 2004-11-10  Jim Meyering  <jim@meyering.net>
80138
80139         * modules/closeout (Depends-on): Remove fpending.
80140
80141 2004-11-10  Jim Meyering  <jim@meyering.net>
80142
80143         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80144
80145 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80148         gl_FUNC_STRFTIME.
80149         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80150         and AC_REQUIRE when possible, to avoid duplicate checks.
80151         Check for <wchar.h>.
80152
80153 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80154
80155         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80156
80157 2004-11-09  Bruno Haible  <bruno@clisp.org>
80158
80159         * m4/sockpfaf.m4: New file.
80160
80161 2004-11-05  Bruno Haible  <bruno@clisp.org>
80162
80163         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80164         Reported by Mark D. Baushke <mdb@cvshome.org>.
80165
80166 2004-11-04  Bruno Haible  <bruno@clisp.org>
80167
80168         2004-09-11  Bruno Haible  <bruno@clisp.org>
80169                 * allocsa.valgrind: New file.
80170         2004-02-06  Bruno Haible  <bruno@clisp.org>
80171                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80172                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80173                 Reported by Christopher Seip <chris.seip@hp.com>.
80174
80175 2004-11-04  Bruno Haible  <bruno@clisp.org>
80176
80177         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80178         (Makefile.am): Distribute it.
80179
80180 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80183         with errno == ERANGE if the buffer is too small.
80184         Problem reported by Mark D. Baushke.
80185
80186 2004-11-03  Albert Chin  <china@thewrittenword.com>
80187             Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80190         equivalent, substitute $ac_type for equivalent type rather than
80191         blindly using uint32_t *always* which won't work if uint32_t is not
80192         available.  Define _UINT32_T to work around typedef of uint32_t if
80193         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80194         2.5.1.
80195
80196 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * m4/jm-macros.m4: Sync from coreutils.
80199         (gl_MACROS): Check for mbrlen, for pathchk.
80200         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80201
80202 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * lib/xreadlink.c (MAXSIZE): New macro.
80205         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80206         size does not exceed MAXSIZE.  Avoid cast.
80207         As suggested by Mark D. Baushke in
80208         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80209         if readlink fails with buffer size just under MAXSIZE, try again
80210         with MAXSIZE.
80211
80212 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80215
80216 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80217         and  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80220         (get_date): Overparenthesize to avoid GCC warning.
80221
80222 2004-11-02  Bruno Haible  <bruno@clisp.org>
80223
80224         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80225         returns void.
80226
80227 2004-11-02  Bruno Haible  <bruno@clisp.org>
80228
80229         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80230         function returns void.
80231
80232 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80235         fflush_unlocked, flockfile, funlockfile, funlockfile,
80236         fputs_unlocked, putc_unlocked.
80237
80238 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80241         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80242         already declared.
80243
80244 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         * modules/getdate (Files): Add doc/getdate.texi.
80247         (Depends-on): Add setenv, xalloc.
80248
80249 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         * lib/getdate.y: Add support for TZ="foo" within a date string.
80252         Fix some bugs near time_t boundaries.  Reject dates with
80253         out-of-range components, e.g., "Sept 31".
80254         Include <stdlib.h>, "setenv.h", "xalloc.h".
80255         (ISDIGIT_LOCALE): Remove; unused.
80256         Note that the TZ and time functions used here are not reentrant.
80257         (mktime_ok, get_tz): New functions.
80258         (TZBUFSIZE): New constant.
80259         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80260         This requires that we sometimes generate our own TZ="XXX..." setting.
80261
80262 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         * doc/getdate.texi: New file, from coreutils with modifications for
80265         the new TZ parsing.
80266
80267 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80268
80269         * lib/mktime.c (not_equal_tm): Remove redundant check.
80270
80271 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * modules/regex (lib_SOURCES): Add regex.c.
80274         Reported by James Youngman in
80275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80276
80277 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * lib/getdate.y: Use Bison 1.875 features, and some minor
80280         code cleanups.  This change does not affect semantics.
80281         Don't include <stdlib.h>; no longer needed.
80282         Don't include unlocked-io.h; only the "#if TEST" code uses
80283         stdio, and performance isn't crucial there.
80284         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80285         Bison 1.875 features as described below.
80286         All uses of "PC." replaced by "pc->".
80287         (YYSTYPE): Add a forward declaration.
80288         (yylex, yyerror): Use full prototypes in forward decls.
80289         Use "%pure-parser" rather than obsolescent "%pure_parser".
80290         Use %parse-param and %lex-param instead of obsolescent
80291         YYPARSE_PARAM and YYLEX_PARAM.
80292         (meridian_table, month_and_day_table, time_units_table,
80293         relative_time_table, time_zone_table, military_table,
80294         lookup_zone, lookup_word, get_date):
80295         Use NULL instead of 0 where appropriate.
80296         (to_hour): Avoid abort (), to avoid a dependency on
80297         stdlib.h.
80298         (yyerror, yylex): Now accepts parser_control * arg.
80299         (main) [TEST]: Use '\0' rather than 0 for char.
80300
80301 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80304
80305 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80308         It's now the caller's responsibility to handle the case where
80309         !HAVE_GETPAGESIZE && !defined getpagesize.
80310
80311         * lib/mktime.c (leapyear): Arg is long int, not int.
80312
80313 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80314
80315         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80316
80317 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80320         missing.  Problem reported by James Youngman.
80321
80322 2004-10-16  Simon Josefsson  <jas@extundo.com>
80323
80324         * gnulib-tool: Fix comments.  Fix parse problem.
80325         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80326
80327 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80328
80329         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80330         implementation of getopt_long.  Problem reported by Alexander Taler in:
80331         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80332
80333 2004-10-15  Bruno Haible  <bruno@clisp.org>
80334
80335         * gnulib-tool: Untabify. Initialize supplied_libname.
80336         (func_usage): More homogenous output.
80337         (func_modules_transitive_closure, func_modules_to_filelist,
80338         func_emit_lib_Makefile_am): New functions.
80339         (func_import): New function, extracted from big case statement. Use
80340         func_get_license, func_modules_transitive_closure,
80341         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80342         opt_lgpl. Don't use test -a, as it's not portable.
80343         (func_create_testdir): Use func_modules_transitive_closure,
80344         func_modules_to_filelist, func_emit_lib_Makefile_am.
80345
80346 2004-10-15  Bruno Haible  <bruno@clisp.org>
80347
80348         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80349
80350 2004-10-15  Bruno Haible  <bruno@clisp.org>
80351
80352         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80353         the portions belonging to each module.
80354         Suggested by Derek Robert Price <derek@ximbiot.com>.
80355
80356 2004-10-12  Simon Josefsson  <jas@extundo.com>
80357
80358         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80359         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80360         to real functions.
80361
80362 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80363
80364         * modules/vsnprintf: New file.
80365
80366 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80367
80368         * m4/vsnprintf.m4: New file.
80369
80370 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80371
80372         * lib/vsnprintf.h: New file.
80373         * lib/vsnprintf.c: New file.
80374
80375 2004-10-11  Bruno Haible  <bruno@clisp.org>
80376
80377         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80378         vsnprintf.
80379
80380 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80383
80384 2004-10-07  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80387         fits into the provided buffer.
80388
80389 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80390
80391         * lib/diacrit.c, diacrit.h: Add GPL notice.
80392
80393         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80394         notice.
80395         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80396         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80397         This avoids a potential constant-folding bug.
80398
80399 2004-10-05  Bruno Haible  <bruno@clisp.org>
80400
80401         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80402         for the declaration of strsep.
80403
80404 2004-10-05  Bruno Haible  <bruno@clisp.org>
80405
80406         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80407
80408 2004-10-04  Simon Josefsson  <jas@extundo.com>
80409
80410         * modules/memmem: New file.
80411         * tests/test-memmem.c: New file.
80412         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80413
80414 2004-10-04  Simon Josefsson  <jas@extundo.com>
80415
80416         * m4/memmem.m4: New file.
80417
80418 2004-10-04  Simon Josefsson  <jas@extundo.com>
80419
80420         * lib/memmem.h: New file.
80421         * lib/memmem.c: New file, taken from glibc.
80422
80423 2004-10-04  Simon Josefsson  <jas@extundo.com>
80424
80425         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80426         '#ifdef USE_UNLOCKED_IO'.
80427
80428 2004-10-04  Simon Josefsson  <jas@extundo.com>
80429
80430         * config/srclist.txt: Add memmem from glibc.
80431
80432 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80435
80436         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80437         modules/exclude, modules/getdate, modules/getline,
80438         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80439         modules/getusershell, modules/linebuffer, modules/md5,
80440         modules/mountlist, modules/posixtm, modules/readtokens,
80441         modules/readutmp, modules/regex, modules/sha1,
80442         modules/version-etc, modules/yesno:
80443         Remove dependency on unlocked-io.
80444
80445 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80448
80449         * m4/unlocked-io.m4: Add copyright notice.
80450         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80451
80452 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80455         * lib/xmalloc.c (xmemdup): Likewise.
80456         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80457         XFREE): Remove these long-obsolescent macros.
80458         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80459         * lib/xstrdup.c: Remove.
80460
80461         * lib/regex.c (re_comp): Cast gettext return value to char *,
80462         Problem reported by Martin Neitzel via Mark D. Baushke.
80463
80464 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80467         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80468         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80469         regex.c, sha1.c, version-etc.c, yesno.c:
80470         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80471         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80472         the includer's responsibility.
80473
80474         Sync from coreutils.
80475
80476         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80477         points to the start of a string, as the C Standard says the
80478         resulting behavior is undefined.
80479
80480         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80481         simple -> simple_backups, numbered_existing ->
80482         numbered_existing_backups, numbered -> numbered_backups
80483         to avoid shadowing problems.  All uses changed.
80484         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80485         * lib/backupfile.c (check_extension, numbered_backup):
80486         Rename locals to avoid shadowing 'basename'.
80487         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80488         once.
80489
80490         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80491         * lib/.cvsignore: Add getopt.h.
80492
80493 2004-10-04  Bruno Haible  <bruno@clisp.org>
80494
80495         * modules/README: New file.
80496         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80497         not a module.
80498
80499 2004-10-02  Jim Meyering  <jim@meyering.net>
80500
80501         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80502
80503 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80504
80505         * modules/strsep: New file.
80506
80507 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80508
80509         * m4/strsep.m4: New file.
80510
80511 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80512
80513         * lib/strsep.h: New file.
80514         * lib/strsep.c: New file.
80515
80516 2004-10-01  Simon Josefsson  <jas@extundo.com>
80517
80518         * lib/snprintf.c (snprintf): Handle size==0.
80519
80520 2004-10-01  Simon Josefsson  <jas@extundo.com>
80521             Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80524         (snprintf): Declare 'args'.
80525
80526 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80527
80528         * lib/snprintf.c: Remove comments as to why each header is needed.
80529
80530 2004-10-01  Bruno Haible  <bruno@clisp.org>
80531
80532         * MODULES.html.sh: Add strsep.
80533
80534 2004-09-30  Simon Josefsson  <jas@extundo.com>
80535
80536         * modules/snprintf: New file.
80537
80538 2004-09-30  Simon Josefsson  <jas@extundo.com>
80539
80540         * m4/snprintf.m4: New file.
80541
80542 2004-09-30  Simon Josefsson  <jas@extundo.com>
80543
80544         * lib/snprintf.h, lib/snprintf.c: New files.
80545
80546 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80547
80548         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80549         (hol_entry_help): Never translate an empty string.
80550         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80551         * lib/argp.h (OPTION_NO_TRANS): New option.
80552
80553 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * modules/argp (Maintainer): Replace Simon Josefsson
80556         by Sergey Poznyakoff.
80557
80558 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80559
80560         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80561         changes merged back into glibc.
80562
80563 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80566
80567 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80568
80569         * lib/xvasprintf.c: Include xalloc.h.
80570         (xvasprintf): Use xalloc_die, not xmalloc_die.
80571
80572 2004-09-29  Bruno Haible  <bruno@clisp.org>
80573
80574         * modules/alloca-opt: New file, derived from modules/alloca.
80575         * modules/allocsa: Depend on alloca-opt instead of alloca.
80576         * modules/setenv: Likewise.
80577         * modules/vasnprintf: Likewise.
80578         * MODULES.html.sh: Add alloca-opt.
80579
80580 2004-09-28  Simon Josefsson  <jas@extundo.com>
80581
80582         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80583         LGPL, and to replace license template from GPL to LGPL.
80584
80585 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * modules/dummy: Change license to LGPL.
80588
80589 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80592
80593 2004-09-24  Simon Josefsson  <jas@extundo.com>
80594
80595         * modules/minmax (License): Change from GPL to LGPL.
80596
80597 2004-09-23  Simon Josefsson  <jas@extundo.com>
80598
80599         * gnulib-tool (--import): Typo.
80600
80601 2004-09-23  Simon Josefsson  <jas@extundo.com>
80602
80603         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80604
80605 2004-09-22  Bruno Haible  <bruno@clisp.org>
80606
80607         * modules/*: Add 'License' field.
80608         * gnulib-tool: Accept --extract-license option.
80609         (func_get_license): New function.
80610
80611 2004-09-21  Bruno Haible  <bruno@clisp.org>
80612
80613         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80614         Reported by Simon Josefsson.
80615
80616 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80619         gl_AC_TYPE_LONG_LONG.
80620
80621 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80624
80625 2004-09-18  Simon Josefsson  <jas@extundo.com>
80626         and  Paul Eggert  <eggert@cs.ucla.edu>
80627
80628         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80629         calls with autoreconf.  Define GL_LIB.
80630
80631 2004-09-14  Karl Berry  <karl@gnu.org>
80632
80633         * config/srclist.txt: unsync setenv.c, sigh.
80634
80635 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80638         Problem reported by Bruno Haible in:
80639         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80640
80641 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80642
80643         * config/srclist.txt: Comment out argp-pvh.c.
80644
80645 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80648         in case some system header has #define'd it.  Problem reported by
80649         Soeren D. Schulze in
80650         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80651
80652 2004-09-09  Karl Berry  <karl@gnu.org>
80653
80654         * regex.[ch]: delete from the root.  These were supposed to be
80655                 synced with emacs cvs, but this has not happened for about
80656                 a year, and anyway nothing else uses emacs regex.[ch].
80657                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80658                 lib/regex[.ch] is untouched.
80659
80660 2004-09-09  Bruno Haible  <bruno@clisp.org>
80661
80662         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80663
80664 2004-09-09  Bruno Haible  <bruno@clisp.org>
80665
80666         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80667         modifications.
80668         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80669
80670 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80671
80672         * modules/xvasprintf: New file.
80673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80674
80675 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80676
80677         * lib/xvasprintf.h: New file.
80678         * lib/xvasprintf.c: New file.
80679         * lib/xasprintf.c: New file.
80680
80681 2004-09-08  Bruno Haible  <bruno@clisp.org>
80682
80683         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80684
80685 2004-09-08  Bruno Haible  <bruno@clisp.org>
80686
80687         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80688         length is > INT_MAX.
80689         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80690         more.
80691
80692 2004-09-08  Bruno Haible  <bruno@clisp.org>
80693
80694         * lib/stdint_.h: New file, taken from GNU clisp.
80695
80696 2004-09-08  Bruno Haible  <bruno@clisp.org>
80697             Oskar Liljeblad  <oskar@osk.mine.nu>
80698
80699         * modules/stdint: New file.
80700         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80701
80702 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80703
80704         Import from coreutils.
80705         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80706         strings on unbounded length.  alloca's performance benefits aren't
80707         that important here.
80708         (V_STRDUP): Remove.
80709         (parse_with_separator): New function, with most of the internals
80710         of the old parse_user_spec.  Allow user to omit both user and group,
80711         for compatibility with FreeBSD.
80712         Clone only the user name, not the entire spec.
80713         Do not set *uid, *gid unless entirely successful.
80714         Avoid memory leak in some failing cases.
80715         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80716         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80717         (parse_user_spec): Rewrite to use parse_with_separator.
80718
80719 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         * modules/userspec: Don't depend on alloca.
80722
80723 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80726
80727 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80730         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80731         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80732
80733 2004-08-16  Simon Josefsson  <jas@extundo.com>
80734
80735         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80736         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80737         Add --dry-run for --import.
80738         Let user provided command line parameters override configure.ac
80739         settings.
80740
80741 2004-08-12  Simon Josefsson  <jas@extundo.com>
80742
80743         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80744         as discussed with Paul Eggert in threads rooted at
80745         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80746         and
80747         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80748         Before, the test was empty, and relied on ELIDE_CODE in source
80749         code.)
80750         (gl_PREREQ_GETOPT): New macro.
80751         (gl_GETOPT): Use them.
80752
80753 2004-08-12  Simon Josefsson  <jas@extundo.com>
80754
80755         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80756         * lib/getopt_.h: Renamed from getopt.h.
80757
80758 2004-08-12  Simon Josefsson  <jas@extundo.com>
80759
80760         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80761         Change default library name from libfoo to libgnu.
80762         Now, if you have a configure.ac that says:
80763                 gl_SOURCE_BASE(gl)
80764                 gl_M4_BASE(gl/m4)
80765                 gl_MODULES(error getopt etcetera)
80766                 gl_INIT
80767         you can import all you need by running:
80768                 ../gnulib/gnulib-tool --import
80769
80770         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80771         (Makefile.am): Rewrite, use logic from argz.
80772         (Include): Use <getopt.h> instead of "getopt.h".
80773
80774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         * modules/argp (Files): Add m4/unlocked-io.m4.
80777         (Depends-on): Add extensions.
80778
80779 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80782         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80783         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80784         Check for program_invocation_name, program_invocation_short_name,
80785         flockfile, funlockfile, features.h, _getopt_long_only_r.
80786
80787 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80788
80789         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80790         its complicated substitute.
80791         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80792         and program_invocation_name.
80793         (__argp_basename) [!_LIBC]: Remove; the only use was
80794         replaced by its body.
80795         (__argp_short_program_name): Change condition from
80796         !defined __argp_short_program_name to
80797         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80798         to match argp-namefrob.h.
80799         (__argp_failure): Don't assume strerror_r returns char *.
80800         * lib/argp-parse.c (N_): Define unconditionally.
80801         (argp_default_options): Fill out initializers with 0 to avoid
80802         gcc warnings.
80803
80804 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80805
80806         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80807         getopt1.c.
80808
80809 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80810
80811         Merge from coreutils.
80812
80813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80814
80815         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80816         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80817
80818 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         Merge from coreutils.
80821
80822         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80823         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80824         for Reliant Unix 5.43.
80825
80826         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80827         (union fooround): Use uintmax_t, not long int.
80828         The rest is a merge from libc:
80829         [defined _LIBC]: Include <shlib-compat.h>.
80830         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80831
80832         * lib/settime.c (settime): Recode to avoid warning with
80833         Sun Forte C 6U2.
80834
80835         * lib/strverscmp.c: Convert to UTF-8.
80836
80837 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80838
80839         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80840         m4/uintmax_t.m4.
80841
80842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         * modules/xalloc-die: New file.
80845         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80846
80847         * modules/md5 (Files): Add m4/uint32_t.m4.
80848         * modules/sha1: Renamed from modules/sha.
80849         (Files):
80850         Rename lib/sha.h to lib/sha1.h.
80851         Rename lib/sha.c to lib/sha1.c.
80852         Rename m4/sha.m4 to m4/sha1.m4.
80853         (lib_SOURCES): Likewise.
80854         (configure.ac): Rename gl_SHA to gl_SHA1.
80855         (Include): sha.h -> sha1.h.
80856
80857 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80860         * m4/sha1.m4: Renamed from sha.m4.
80861         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80862
80863 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * lib/obstack.h (obstack_empty_p):
80866         Don't assume that chunk->contents is suitably aligned.
80867         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80868         Likewise. Problem reported by Benno in
80869         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80870
80871         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80872         readable.  This could be improved further but it'd take some work.
80873
80874 2004-08-08  Simon Josefsson  <jas@extundo.com>
80875
80876         * modules/xgethostname (Depends-on): Remove exit and error (not
80877         used).
80878
80879         * modules/getpass-gnu: Add getpass.h.
80880         (Depends-on): Add stdbool.
80881         * modules/getpass: Add getpass.h.
80882
80883 2004-08-08  Simon Josefsson  <jas@extundo.com>
80884
80885         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80886         Check getpass declaration.
80887
80888 2004-08-08  Simon Josefsson  <jas@extundo.com>
80889
80890         * lib/xgethostname.c: Don't include error.h (not used).
80891
80892         * lib/getpass.h: Add.
80893         * lib/getpass.c: Include getpass.h first.
80894
80895 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/xalloc-die.c: New file.
80898         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80899         All uses removed.
80900         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80901         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80902         xalloc-die.c.
80903         (_, N_, xalloc_die): Move to xalloc-die.c.
80904         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80905         so that we needn't mess with xalloc_msg_memory_exhausted.
80906
80907         * lib/sha1.h: Renamed from sha.h.
80908         (SHA1_H): Renamed from _SHA_H.
80909         (sha1_ctx): Renamed from sha_ctx.
80910         (sha1_init_ctx): Renamed from sha_init_ctx.
80911         (sha1_process_block): Renamed from sha_process_block.
80912         (sha1_process_bytes): Renamed from sha_process_bytes.
80913         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80914         (sha1_read_ctx): Renamed from sha_read_ctx.
80915         (sha1_stream): Renamed from sha_stream.
80916         (sha1_buffer): Renamed from sha_buffer.
80917         * lib/sha1.c: Likewise; renamed from sha.c.
80918         Do not include <sys/types.h>.
80919         Include <stddef.h> rather than <stdlib.h>.
80920
80921 2004-08-08  Bruno Haible  <bruno@clisp.org>
80922
80923         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80924         FILESYSTEM_PREFIX_LEN.
80925         * lib/progreloc.c: Likewise.
80926         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80927
80928 2004-08-06  Simon Josefsson  <jas@extundo.com>
80929
80930         * modules/progname (Depends-on): Don't depend on stdbool.
80931
80932 2004-08-06  Simon Josefsson  <jas@extundo.com>
80933
80934         * modules/getsubopt: New file.
80935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80936         getsubopt.
80937
80938 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         More merge from coreutils.
80941
80942         * m4/utimens.m4, m4/utimecmp.m4: New files.
80943         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80944         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80945         prereq.m4, sha.m4: Import changes from coreutils.
80946
80947 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         More merge from coreutils.
80950         * modules/raise, modules/readtokens0, modules/utimens:
80951         * modules/utimecmp, module/xnanosleep: New files.
80952         * modules/strftime: Add lib/strftime.h.
80953         Change include from <time.h> to "strftime.h".
80954         * modules/yesno: Add lib/yesno.h.
80955         * modules/backupfile: Remove lib/addext.c.
80956         * modules/euidaccess: Add stat-macros.h.
80957         * modules/canonicalize, modules/euidaccess,
80958         modules/filemode, modules/lchown, modules/makepath,
80959         modules/rmdir, modules/stat: Likewise.
80960
80961 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         Merge from tar.
80964         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80965         SIZE_MAX is a valid preprocessor constant.
80966         (__argp_basename): Change from "#ifndef _LIBC"
80967         to "#ifndef __argp_short_program_name", so that
80968         we don't compile these functions for tar.
80969
80970         More merges from coreutils.
80971         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80972         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80973         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80974         * lib/addext.c: Remove; no longer needed.
80975         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80976         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80977         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80978         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80979         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80980         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80981         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80982         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80983         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80984         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80985         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80986         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80987         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80988         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80989         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80990         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80991         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80992         Import changes from coreutils.
80993
80994 2004-08-05  Simon Josefsson  <jas@extundo.com>
80995
80996         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80997
80998 2004-08-05  Simon Josefsson  <jas@extundo.com>
80999
81000         * m4/getsubopt.m4: New file.
81001
81002 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81003
81004         Merge from coreutils.
81005
81006         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81007         * m4/getcwd-path-max.m4: New files.
81008
81009         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81010         FILESYSTEM_PREFIX_LEN ->
81011         FILE_SYSTEM_PREFIX_LEN.
81012         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81013         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81014         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81015         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81016
81017         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81018         prerequisite modules now handle the DOS stuff.
81019         Don't check for unistd.h.
81020
81021 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81022
81023         Merge from coreutils.
81024
81025         * lib/.gdb-history: Remove; this doesn't belong here.
81026
81027         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81028         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81029         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81030         * lib/getcwd.c: New files.
81031
81032         * lib/dirname.h: Include <stdbool.h>.
81033         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81034         for consistency with POSIX terminology.  All uses changed.
81035         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81036         (strip_trailing_slashes): Use bool for booleans.
81037         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81038
81039         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81040         sometimes returns a positive errno value even when it succeeds.
81041         (print_errno_message) [!LIBC]: Fall back on strerror if
81042         __strerror_r fails.
81043
81044         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81045         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81046         (longest_relative_suffix): New function.
81047         (path_concat): Use it.  Assume first argument is not NULL.
81048         Port to DOS.  Omit redundant separators.
81049         Report an error instead of returning NULL.
81050         Use mempcpy instead of memcpy.
81051         (xpath_concat): Remove: not declared or used.
81052
81053         * lib/same.h: Include <stdbool.h>
81054         (same_name): Return bool, not int.
81055         * lib/same.c (same_name): Likewise.
81056         (errno): Don't declare; we assume C89 or better now.
81057
81058         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81059         if not already defined.
81060
81061         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81062         * lib/dup-safer.c (errno): Likewise.
81063
81064 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81065
81066         Merge from coreutils.
81067         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81068         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81069         * modules/path-concat: Don't depend on strdup.
81070
81071 2004-08-03  Simon Josefsson  <jas@extundo.com>
81072
81073         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81074         * lib/progname.h: Don't include stdbool.h.
81075
81076 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81077
81078         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81079         * MODULES.html.sh (func_all_modules): Remove fatal.
81080
81081 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81084
81085 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81088         working.
81089
81090 2004-08-02  Simon Josefsson  <jas@extundo.com>
81091
81092         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81093         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81094         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81095
81096 2004-08-01  Simon Josefsson  <jas@extundo.com>
81097
81098         * lib/xgetdomainname.c: Include stdlib.h, for free().
81099
81100 2004-07-19  Bruno Haible  <bruno@clisp.org>
81101
81102         * MODULES.html.sh (func_all_modules): Add dummy.
81103
81104 2004-07-16  Simon Josefsson  <jas@extundo.com>
81105
81106         * modules/dummy: New file.
81107
81108 2004-07-16  Simon Josefsson  <jas@extundo.com>
81109
81110         * lib/dummy.c: New file.
81111
81112 2004-07-16  Bruno Haible  <bruno@clisp.org>
81113
81114         * lib/backupfile.h: Add extern "C" for C++.
81115         * lib/closeout.h: Likewise.
81116         * lib/copy-file.h: Likewise.
81117         * lib/findprog.h: Likewise.
81118         * lib/full-write.h: Likewise.
81119         * lib/pathname.h: Likewise.
81120         * lib/progname.h: Likewise.
81121         * lib/stpcpy.h: Likewise.
81122         * lib/stpncpy.h: Likewise.
81123         * lib/strcase.h: Likewise.
81124         * lib/strstr.h: Likewise.
81125         * lib/xalloc.h: Likewise.
81126
81127         * lib/mbswidth.h: Add extern "C" for C++.
81128         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81129
81130 2004-07-13  Robert Millan  <robertmh@gnu.org>
81131
81132         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81133
81134 2004-07-09  Simon Josefsson  <jas@extundo.com>
81135
81136         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81137         failed without this.)
81138
81139 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * modules/chown (Files): Add lib/fchown-stub.c, since
81142         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81143
81144 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         * lib/fchown-stub.c: New file.
81147
81148 2004-06-24  Jim Meyering  <jim@meyering.net>
81149
81150         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81151
81152 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * modules/argz: Omit "#include".
81155
81156         * MODULES.html.sh (func_all_modules): Add calloc, to match
81157         2004-06-01 addition of calloc module.
81158
81159 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81160
81161         * m4/argz.m4: New file, which is autoupdated from libtool.
81162
81163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81166         libtool.
81167
81168 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * config/srclist-update: Don't insist on "USA." before the
81171         close-comment, as libtool omits the period and puts the */ on a
81172         separate line.
81173         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81174         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81175
81176 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81177
81178         * modules/argz: New file.
81179         * MODULES.html.sh (func_all_modules): Add argz.
81180
81181 2004-06-12  Jim Meyering  <jim@meyering.net>
81182         and  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         * modules/hash (Files): Add lib/xalloc.h.
81185         * modules/pipe (Depends-on): Add wait-process.
81186         * modules/stat (Depends-on): Add xalloc.
81187         * modules/userspec (Files): Add lib/userspec.h.
81188         * modules/xstrto
81189
81190         Upgrade from gettext-0.13.
81191         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81192         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81193         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81194
81195 2004-06-10  Jim Meyering  <jim@meyering.net>
81196
81197         * lib/calloc.c: New file.
81198
81199 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81200
81201         * lib/getdate.y (yylex): Allow space between sign and number.
81202         Problem reported by Dan Jacobson.
81203
81204 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         Merge from coreutils CVS.
81207
81208         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81209         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81210         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81211         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81212         xstrtol.m4: Fix copyright date and/or serial number.
81213
81214         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81215         See if we need an fchown replacement.
81216         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81217         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81218         and use the replacement function if we detect either defect.
81219
81220         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81221         gl_UTIMECMP.
81222
81223 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81224         and  Jim Meyering  <jim@meyering.net>
81225
81226         Merge from coreutils CVS.
81227
81228         * lib/stat-macros.h: New file, with contents from file-type.h
81229         and coreutils' system.h.
81230         * lib/file-type.c: Include "stat-macros.h".
81231         * lib/file-type.h (file_type): Move all macro definitions to new file,
81232         stat-macros.h.
81233
81234         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81235         Wrap old code with this conditional.
81236         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81237         function that does not dereference symlinks.
81238         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81239
81240         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81241         dependency problems.
81242         (xreadlink): Accept new arg SIZE, for efficiency.
81243         All decls and uses changed.
81244         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81245
81246         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81247         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81248
81249         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81250         sysexits.h.
81251
81252 2004-06-01  Jim Meyering  <jim@meyering.net>
81253
81254         * m4/calloc.m4: New file.
81255
81256 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81257
81258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81259         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81260         Also, fix a typo in a diagnostic.
81261
81262 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81263
81264         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81265         or AC_FUNC_REALLOC.
81266
81267 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81268
81269         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81270         macros to be defined.
81271         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81272         the allocator returns NULL because the requested size is zero.
81273
81274 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81275
81276         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81277         var.  Add comment explaining why libc still defines it.  This
81278         merges the following patch from glibc:
81279         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81280
81281 2004-05-20  Andreas Schwab  <schwab@suse.de>
81282
81283         * m4/free.m4: Replace free if it not known to work, not the other
81284         way round.
81285
81286 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81289         present in glibc since revision 1.1 of this file.
81290         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81291         obstack_alignment_mask, obstack_alloc, obstack_base,
81292         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81293         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81294         obstack_grow0, obstack_init, obstack_int_grow,
81295         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81296         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81297         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81298         nonexistent functions.
81299
81300 2004-05-18  Karl Berry  <karl@gnu.org>
81301
81302         * config/srclist.txt: break link for vasnprintf.c.
81303
81304 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81305
81306         Port obstack to the AS/400, where pointers are 16 bytes wide and
81307         you cannot cast an integer to a valid pointer.  This patch is
81308         currently waiting to be integrated into glibc; see
81309         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81310
81311         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81312         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81313         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81314         (struct obstack): temp member is now a union of a pointer and
81315         an integer, instead of an integer.  All integer uses changed.
81316         This does not affect the physical layout of struct obstack,
81317         except on hosts (like the AS/400) where the size or alignment of
81318         void * is greater than that of ptrdiff_t.
81319         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81320         __STDC__)]: Store temporary in pointer member of union, not
81321         integer member.
81322         * lib/obstack.c: Include <stddef.h>, for offsetof.
81323         (struct fooalign): Remove; it doesn't need a name.
81324         (union fooround): Change double to long double, and add void *.
81325         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81326         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81327         not a macro.  Hence the values are always int; so remove all
81328         casts-to-int in uses.
81329
81330 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81331
81332         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81333         we can get this patch merged into glibc.
81334
81335 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81336             Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * m4/argp: Depend on alloca.
81339
81340 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81341             Paul Eggert  <eggert@cs.ucla.edu>
81342
81343         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81344         freecoding.
81345
81346 2004-05-17  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81349         precision that consists of a '.' followed by an empty digit string.
81350         Patch by Tor Lillqvist <tml@iki.fi>.
81351
81352 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81355         for backward compatibility with older code.  We need our own
81356         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81357         it under some other name, and our alloca.h will define it.
81358
81359 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81360             Derek Price  <derek@ximbiot.com>
81361
81362         * lib/alloca.c: Include <alloca.h>, to get our interface.
81363         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81364         include <alloca.h> first.  Use C89 prototype for alloca; this
81365         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81366         Use #elif for simplicity, since we can assume C89 now.
81367         Don't try to source the system alloca.h since it will not be found
81368         and to prevent recursively including its replacement.
81369         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81370         * lib/regex.c: Likewise.
81371
81372 2004-05-16  Derek Price  <derek@ximbiot.com>
81373             Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         getline cleanup.  This changes the getndelim2 API: both order of
81376         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81377         no delimiter).
81378
81379         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81380         interface does that.
81381         (getline): Always use getdelim, so that we don't have two
81382         copies of this code.
81383         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81384         if available.
81385         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81386         (GETNDELIM2_MAXIMUM): New macro.
81387         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81388         instead of the old practice of delim2==0.  All callers changed.
81389         Return -1 on overflow, instead of returning junk.
81390         Do not set *linesize unless allocation succeeds.
81391         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81392         that we include sys/types.h.
81393         * lib/getnline.h: Likewise.
81394         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81395         (getndelim2): Reorder arguments.
81396         * lib/getnline.c (getnline, getndelim):
81397         Don't discard the NMAX argument.
81398         (getnline): Invoke getndelim, to avoid code duplication.
81399         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81400         of (size_t) -1 by callers of the getnline family.
81401
81402 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81403
81404         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81405         Check for gettimeofday.
81406         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81407         Check for settimeofday, stime.
81408
81409 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81410
81411         * lib/nanosleep.c (suspended): Change its type from int to
81412         sig_atomic_t volatile.
81413         (first_call): Make it private to rpl_nanosleep, and have it
81414         be zero initially as that's a bit faster.
81415         (my_usleep): Round up fractional times instead of truncating them,
81416         as this is the usual meaning for 'sleep'.
81417
81418         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81419         doesn't work.
81420         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81421         (ENOSYS): Define if not defined.
81422         (settime): Fall back on stime if it exists and settimeofday fails.
81423         But don't bother with fallbacks if a method fails with errno == EPERM.
81424
81425 2004-05-11  Jim Meyering  <jim@meyering.net>
81426
81427         Prior to this change, the save_cwd caller required read access to the
81428         current directory on most systems (ones with the fchdir function).
81429
81430         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81431         fails, try write-only, and finally, resort to using xgetcwd.
81432
81433 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81434
81435         * lib/obstack.c, obstack.h: Import changes from libc.
81436
81437 2004-04-28  Bruno Haible  <bruno@clisp.org>
81438
81439         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81440         also implicitly appends .exe to executables.
81441         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81442         accepts Windows pathnames.
81443         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81444         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81445         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81446         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81447         Reported by Derek Robert Price <derek@ximbiot.com>.
81448
81449 2004-04-21  Karl Berry  <karl@gnu.org>
81450
81451         * config/srclist.txt (localcharset.c): break sync.
81452
81453 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81454
81455         * m4/host-os.m4: Add a copyright notice.
81456
81457 2004-04-20  Jim Meyering  <jim@meyering.net>
81458
81459         Change UTILS_ to gl_ in AC_DEFINE'd names.
81460         Change utils_- and jm_-prefixed variables, too.
81461         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81462         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81464
81465         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81466         Don't emit trailing blanks.
81467         Also rename jm_-prefixed variables to have gl_ prefix.
81468
81469         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81470         Also rename jm_-prefixed variables to have gl_ prefix.
81471
81472         * m4/jm-macros.m4: Reflect the renamings.
81473         * m4/prereq.m4: Likewise.
81474
81475 2004-04-20  Jim Meyering  <jim@meyering.net>
81476
81477         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81478         memory.
81479
81480 2004-04-20  Jim Meyering  <jim@meyering.net>
81481             Bruno Haible  <bruno@clisp.org>
81482
81483         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81484         memory when realloc fails.
81485
81486 2004-04-19  Jim Meyering  <jim@meyering.net>
81487
81488         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81489         now that readutmp.c may call `free (0)'.
81490
81491 2004-04-19  Bruno Haible  <bruno@clisp.org>
81492
81493         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81494         * m4/inttypes_h.m4: Likewise.
81495         * m4/stdint_h.m4: Likewise.
81496         * m4/intmax_t.m4: Likewise.
81497         * m4/uintmax_t.m4: Likewise.
81498
81499 2004-04-18  Jim Meyering  <jim@meyering.net>
81500
81501         * m4/prereq.m4: Don't forbid jm_ prefix.
81502
81503         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81504         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81505         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81506         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81507         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81508         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81509         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81510         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81511         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81512         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81513         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81514         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81515         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81516         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81517         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81518         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81519         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81520         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81521         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81522
81523 2004-04-18  Jim Meyering  <jim@meyering.net>
81524
81525         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81526         failure, don't leak memory and do call END_UTMP_ENT.
81527
81528 2004-04-16  Jim Meyering  <jim@meyering.net>
81529
81530         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81531         coreutils' stat program.
81532         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81533
81534 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81535
81536         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81537         C89.
81538         (CHAR_BIT): Remove, since we assume C89.
81539         Include <stdint.h> if available, as per current Autoconf CVS advice.
81540
81541 2004-03-31  Jim Meyering  <jim@meyering.net>
81542
81543         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81544         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81545         * m4/xalloc.m4: Likewise.
81546
81547 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81548
81549         Merge from coreutils.
81550
81551         * m4/inttostr.m4: New file.
81552         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81553         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81554         Require gl_CLOCK_TIME.
81555         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81556
81557 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81558
81559         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81560         not bool, to be more consistent with Unix conventions.
81561         Suggested by Bruno Haible.
81562
81563         Merge from coreutils.
81564
81565         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81566         * lib/umaxtostr.c: New files.
81567
81568         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81569         the usual <time.h> dance.
81570         (get_date): Change signature to support fractional time stamps.
81571         All callers changed.
81572         * lib/getdate.y: Include "getdate.h" first, as we can now
81573         assume C89 and don't need to worry about 'const'.
81574         Similarly, include "unlocked-io.h" near start, not in middle.
81575         Include <limits.h>.
81576         (textint.value): Use long int rather than int.
81577         (textint.digits): Use size_t rather than int.
81578         (BILLION, LOG10_BILLION): New constants.
81579         (parser_control): New member rel_ns.  Members day_ordinal,
81580         time_zone, month, day, hour, minutes, rel_year, rel_month,
81581         rel_day, rel_hour, rel_minutes, rel_seconds
81582         are now long int, not int.  Member seconds is now struct timespec,
81583         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81584         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81585         not int.
81586         (%union.intval): Now long int, not int.
81587         New member timespec.
81588         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81589         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81590         (spec): Now is a timespec or an item list.
81591         (timespec, items): New nonterminals.
81592         (time, rel, relunit, number, get_date):
81593         Add support for fractional seconds.
81594         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81595         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81596         (to_hour): First arg is now long int, not int.
81597         (to_year): Returns long int, not int.
81598         Don't treat year -70 like 70.
81599         (tm_diff): Returns long int, not int.
81600         (lookup_word): Use bool instead of int when appropriate.
81601         (yylex): Use size_t for count, not int.
81602         Detect overflow when parsing large integer constants.
81603         Add support for fractions.
81604         (get_date): Make pointers 'const' if possible.
81605         Use more-portable code to detect integer overflow.
81606         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81607         Don't use ctime; it's not reliable if the year has >4 digits.
81608
81609         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81610         This is for compatibility with BSD.
81611
81612         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81613         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81614         From coreutils' system.h.
81615
81616         * lib/userspec.c: Don't include "posixver.h".
81617         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81618         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81619         compatible extension.  Simplify code by removing a boolean int
81620         that was always nonzero if a string was nonnull.
81621
81622 2004-03-30  Jim Meyering  <jim@meyering.net>
81623
81624         Merge from coreutils.
81625
81626         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81627         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81628         on some systems one must include <grp.h> before it.
81629         Reported by Christian Krackowizer.
81630
81631 2004-03-30  Jim Meyering  <jim@meyering.net>
81632
81633         Merge from coreutils.
81634
81635         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81636
81637         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81638         an empty input stream.
81639
81640         * lib/readtokens.c: Include <stdbool.h>.
81641         (readtoken): Use `size_t' rather than int/long.
81642         All callers adjusted.
81643         Use `bool' rather than `int' where appropriate.
81644         Use memset rather than an explicit loop.
81645         Use x2nrealloc rather than xrealloc.
81646         Allow the use of `\0' as a delimiter.
81647         (readtokens): Likewise.
81648         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81649
81650 2004-03-30  Jim Meyering  <jim@meyering.net>
81651
81652         * m4/realloc.m4: Remove file, since now it does no more than
81653         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81654         the `configure.ac' section of module/realloc.
81655         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81656
81657 2004-03-30  Bruno Haible  <bruno@clisp.org>
81658
81659         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81660         nonnull.
81661
81662 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81663
81664         Merge changes to getloadavg.c from coreutils and Emacs.
81665
81666         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81667         Define to an expression, not to the empty string.
81668         Include cloexec.h and xalloc.h.
81669         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81670         Use set_cloexec_flag rather than rolling our own.
81671         * lib/cloexec.c, lib/cloexec.h: New files.
81672
81673 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81674
81675         * m4/cloexec.m4: New file.
81676
81677 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81678
81679         * lib/getopt.h: Sync with libc CVS.
81680
81681 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81682             Bruno Haible  <bruno@clisp.org>
81683
81684         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81685         mbswidth.
81686
81687 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81688             Bruno Haible  <bruno@clisp.org>
81689
81690         * lib/mbswidth.h: Include <wchar.h> only if
81691         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81692         <wchar.h>.
81693         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81694
81695 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81696
81697         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81698         Sync with libc CVS.
81699         * lib/getopt_int.h: New file, also synced from libc.
81700
81701 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81702
81703         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81704         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81705         Bring back getopt.c, getopt.h, getopt1.c.
81706
81707 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81708
81709         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81710         All uses changed.  Check for sa_sigaction member; this fixes
81711         a bug first reported by Jason Andrade in
81712         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81713
81714 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81715
81716         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81717         '#if' expressions.  Unlike the code it replaces, it does not
81718         depend on (defined _SC_PAGESIZE).  However, it does depend on
81719         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81720         first reported by Jason Andrade in
81721         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81722
81723 2004-02-25  Simon Josefsson  <jas@extundo.com>
81724
81725         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81726
81727 2004-02-25  Simon Josefsson  <jas@extundo.com>
81728
81729         * lib/strdup.h: New file.
81730         * lib/strdup.c: Include it.
81731         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81732         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81733
81734 2004-02-23  Karl Berry  <karl@gnu.org>
81735
81736         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81737         (from fencepost.gnu.org:/gd/gnuorg).
81738
81739 2004-02-23  Karl Berry  <karl@gnu.org>
81740
81741         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81742         * config/srclist.txt: add maintain/standards documents.
81743
81744 2004-02-18  Bruno Haible  <bruno@clisp.org>
81745
81746         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81747         Reported by Derek Robert Price <derek@ximbiot.com>.
81748
81749 2004-02-16  Karl Berry  <karl@gnu.org>
81750
81751         * config/mkinstalldirs, install-sh: update from automake.
81752
81753 2004-02-06  Karl Berry  <karl@gnu.org>
81754
81755         * m4/po.m4: update from gettext 0.14.1.
81756
81757 2004-02-06  Karl Berry  <karl@gnu.org>
81758
81759         * lib/config.charset: update from gettext 0.14.1.
81760
81761 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81762
81763         Add comments and code, prompted by suggestions from Bruno Haible
81764         for sh-quote.
81765         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81766         describing the enum quoting_style values.
81767         * lib/quotearg.c (quotearg_alloc): New function.
81768         (quotearg_buffer_restyled): Treat lone { and } as special.
81769         Treat = as special.  Work around bug with older shells
81770         that "see" a '\' that is really the 2nd byte of a multibyte char.
81771         Quote empty string with shell_quoting_style.
81772
81773 2004-02-03  Bruno Haible  <bruno@clisp.org>
81774
81775         * m4/pipe.m4: New file, from GNU gettext.
81776
81777 2004-02-03  Bruno Haible  <bruno@clisp.org>
81778
81779         * lib/pipe.h: New file, from GNU gettext.
81780         * lib/pipe.c: New file, from GNU gettext.
81781
81782 2004-01-27  Bruno Haible  <bruno@clisp.org>
81783
81784         * m4/execute.m4: New file, from GNU gettext.
81785
81786 2004-01-27  Bruno Haible  <bruno@clisp.org>
81787
81788         * lib/execute.h: New file, from GNU gettext.
81789         * lib/execute.c: New file, from GNU gettext.
81790         * lib/w32spawn.h: New file, from GNU gettext.
81791
81792 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81793
81794         Merge from diffutils.
81795
81796         * lib/file-type.c (file_type): Add typed memory objects.
81797         * lib/file-type.h (S_TYPEISTMO): New macro.
81798
81799         * lib/c-stack.h (c_stack_action): Remove argv argument.
81800         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81801         (die): Don't calculate message unless segv_action returns.
81802         (get_stack_location, min_address_from_argv, max_address_from_argv,
81803         volatile stack_base, volatile_stack_size): Remove.
81804         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81805         that every segmentation violation is a stack overflow.  (Ouch!)
81806         See Debian bug 136249 (still outstanding) for more info about why
81807         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81808
81809 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81810
81811         Exit-status fix from coreutils.
81812
81813         Use exit_failure consistently in place of EXIT_FAILURE,
81814         so that program exit statuses are consistent on failure.
81815
81816         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81817         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81818         * lib/argmatch.h: Comment fix to match the above.
81819         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81820         Now a macro referring to exit_failure, instead of a separate
81821         variable.  Include "exitfail.h" to get it.
81822         * lib/xstrtol.h: Include "exitfail.h".
81823         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81824
81825         * lib/long-options.c (parse_long_options): Use prototype
81826         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81827         for clarity.
81828
81829 2004-01-21  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81832         so as not to conflict with a different-sized __mktime_internal
81833         function in GNU libc.
81834         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81835         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81836
81837 2004-01-20  Karl Berry  <karl@gnu.org>
81838
81839         * config/config.guess: update from config.
81840
81841         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81842
81843 2004-01-20  Bruno Haible  <bruno@clisp.org>
81844
81845         Safer stack allocation.
81846         * lib/setenv.c: Include allocsa.h.
81847         (alloca): Remove fallback definition.
81848         (freea): Remove macro.
81849         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81850         instead of freea.
81851
81852 2004-01-20  Bruno Haible  <bruno@clisp.org>
81853
81854         * m4/eealloc.m4: New file, from GNU gettext.
81855
81856 2004-01-20  Bruno Haible  <bruno@clisp.org>
81857
81858         * m4/allocsa.m4: New file, from GNU gettext.
81859
81860 2004-01-20  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/xallocsa.h: New file, from GNU gettext.
81863         * lib/xallocsa.c: New file, from GNU gettext.
81864
81865 2004-01-20  Bruno Haible  <bruno@clisp.org>
81866
81867         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81868
81869 2004-01-20  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81872         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81873         specially.
81874
81875 2004-01-20  Bruno Haible  <bruno@clisp.org>
81876
81877         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81878         patch.
81879
81880 2004-01-20  Bruno Haible  <bruno@clisp.org>
81881
81882         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81883
81884 2004-01-20  Bruno Haible  <bruno@clisp.org>
81885
81886         * lib/eealloc.h: New file.
81887
81888 2004-01-20  Bruno Haible  <bruno@clisp.org>
81889
81890         * lib/binary-io.h: Avoid warnings on Cygwin.
81891
81892 2004-01-20  Bruno Haible  <bruno@clisp.org>
81893
81894         * lib/allocsa.h: New file, from GNU gettext.
81895         * lib/allocsa.c: New file, from GNU gettext.
81896
81897 2004-01-18  Karl Berry  <karl@gnu.org>
81898
81899         * doc/gpl.texi, doc/lgpl.texi: new files.
81900
81901 2004-01-18  Karl Berry  <karl@gnu.org>
81902
81903         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81904         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81905
81906 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81907
81908         Merge from coreutils.
81909
81910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81911         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81912         (gl_DEFAULT_POSIX2_VERSION): Move
81913         the documentation from 'configure' into 'config.hin',
81914         so that 'configure --help' isn't burdened by it and
81915         we don't have to worry about its formatting there.
81916         Reword the documentation so that it's more succinct
81917         and can be run together into a single paragraph.
81918         * m4/same.m4 (gl_SAME): Check for pathconf.
81919
81920 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81921
81922         Merge from coreutils.
81923
81924         * lib/posixver.c: Include posixver.h.
81925
81926         * lib/same.c: Include <stdbool.h>, <limits.h>.
81927         (_POSIX_NAME_MAX): Define if not defined.
81928         (MIN): New macro.
81929         (same_name): If file names are silently truncated, report
81930         that the file names are the same if they are the same after
81931         the silent truncation.
81932
81933         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81934         conversion function.
81935         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81936         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81937         longer needed.
81938
81939 2004-01-15  Jim Meyering  <jim@meyering.net>
81940
81941         Merge from coreutils.
81942
81943         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81944         if no library is required.
81945         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81946         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81947         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81948         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81949         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81950         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81951         value, $ac_cv_search_crypt, if it's "none required".
81952         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81953         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81954         not gl_FUNC_GETLOADAVG.
81955         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81956         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81957
81958 2004-01-15  Jim Meyering  <jim@meyering.net>
81959
81960         Merge from coreutils.
81961
81962         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81963         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81964         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81965
81966         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81967         optional configure-time default.
81968
81969         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81970
81971         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81972
81973 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81974
81975         Merge from coreutils.
81976
81977         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81978         value, $ac_cv_search_nanosleep, if it's "none required".
81979
81980 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81981
81982         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81983         with like-named macro in fnmatch.c.
81984         (EXT): Use an internal constant instead.
81985
81986         Merge fnmatch patches from glibc.
81987         * lib/fnmatch.c (mbsinit): Remove define.
81988         Add libc_hidden_ver (__fnmatch, fnmatch).
81989         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81990         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81991
81992 2004-01-14  Karl Berry  <karl@gnu.org>
81993
81994         * config/install-sh: update from automake.
81995
81996 2004-01-13  Karl Berry  <karl@gnu.org>
81997
81998         * config/install-sh: update from automake.
81999
82000 2004-01-09  Karl Berry  <karl@gnu.org>
82001
82002         * config/install-sh: update from automake.
82003
82004 2004-01-05  Karl Berry  <karl@gnu.org>
82005
82006         * config/config.{sub,guess}: update from config.
82007
82008 2003-12-31  Karl Berry  <karl@gnu.org>
82009
82010         * config/depcomp: update from automake.
82011
82012 2003-12-14  Karl Berry  <karl@gnu.org>
82013
82014         * lib/config.charset: update from gettext-runtime.
82015
82016 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82017
82018         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82019         Bug reported by Alfred M. Szmidt.
82020
82021 2003-12-03  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/gettext.m4: Upgrade from gettext-0.13.
82024         * m4/po.m4: Upgrade from gettext-0.13.
82025         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82026         * m4/intmax.m4: New file, from gettext-0.13.
82027         * m4/printf-posix.m4: New file, from gettext-0.13.
82028
82029 2003-11-29  Karl Berry  <karl@gnu.org>
82030
82031         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82032
82033 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82034             Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/printf-parse.h: Don't include sys/types.h.
82037         (ARG_NONE): New macro.
82038         (char_directive): Change type of *arg_index fields to size_t.
82039         * lib/printf-parse.c: Don't include sys/types.h.
82040         (SSIZE_MAX): Remove macro.
82041         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82042         Remove unnecessary overflow check.
82043         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82044         fields.
82045
82046 2003-11-25  Bruno Haible  <bruno@clisp.org>
82047
82048         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82049
82050 2003-11-25  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82053         gt_TYPE_SSIZE_T.
82054
82055 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82056
82057         * modules/alloca: Remove dependency on xalloc.
82058
82059 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82060
82061         * lib/alloca.c: Remove dependency on xalloc module.
82062         (xalloc_die): Remove.
82063         (memory_full) [!defined emacs]: New macro.
82064         [!defined emacs]: Don't include xalloc.h.
82065         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82066         address arithmetic overflows.  Change datatypes a bit to avoid
82067         unnecessary casts.
82068
82069 2003-11-22  Jim Meyering  <jim@meyering.net>
82070
82071         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82072         s/size/size_t/.
82073
82074 2003-11-21  Karl Berry  <karl@gnu.org>
82075
82076         * config/config.{sub,guess}: update from config.
82077
82078 2003-11-18  Karl Berry  <karl@gnu.org>
82079
82080         * config/config.{sub,guess}: update from config.
82081
82082         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82083
82084 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82085
82086         * README: Mention that S+T cannot overflow if S is the size of
82087         an existing object and T is sufficiently small.
82088
82089 2003-11-17  Jim Meyering  <jim@meyering.net>
82090
82091         On systems without utime and without a utimes function capable of
82092         dealing with a NULL struct utimbuf* argument, this utime replacement
82093         could -- in unusual circumstances -- leak a file descriptor.
82094         * lib/utime.c: Include <unistd.h> and <errno.h>.
82095         (utime_null): Be sure to close `fd' and to preserve errno.
82096         Reported by Geoff Collyer via Arnold Robbins.
82097
82098 2003-11-17  Bruno Haible  <bruno@clisp.org>
82099
82100         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82101         (Depends-on): Add xsize.
82102
82103 2003-11-17  Bruno Haible  <bruno@clisp.org>
82104
82105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82106
82107 2003-11-17  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/vasnprintf.c (alloca): Remove fallback definition.
82110         (freea): Remove definition.
82111         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82112         Reported by Paul Eggert.
82113
82114 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82115             Bruno Haible  <bruno@clisp.org>
82116
82117         Protect against address arithmetic overflow.
82118         * lib/printf-args.h: Include stddef.h.
82119         (arguments): Change type of field 'count' to size_t.
82120         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82121         'unsigned int' where appropriate.
82122         * lib/printf-parse.h: Include sys/types.h.
82123         (char_directive): Change type of *arg_index fields to ssize_t.
82124         (char_directives): Change type of fields 'count', max_*_length to
82125         size_t.
82126         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82127         (SSIZE_MAX): Define fallback value.
82128         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82129         instead of 'int' where appropriate. Check a_allocated, d_allocated
82130         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82131         * lib/vasnprintf.c: Include xsize.h.
82132         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82133         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82134         overflow. Avoid wraparound when converting a width or precision from
82135         decimal to binary.
82136
82137 2003-11-16  Bruno Haible  <bruno@clisp.org>
82138
82139         Update from GNU gettext.
82140         * lib/printf-parse.c: Generalize to it can be compiled for wide
82141         strings.
82142         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82143         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82144         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82145         SNPRINTF): New macros.
82146         Don't include <alloca.h> if the file is used inside libintl.
82147         (local_wcslen): New function, for Solaris 2.5.1.
82148         (VASNPRINTF): Use it instead of wcslen.
82149
82150 2003-11-16  Bruno Haible  <bruno@clisp.org>
82151
82152         * lib/xsize.h (xmax): New function.
82153         (xsum, xsum3, xsum4): Declare as "pure" functions.
82154
82155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82156
82157         * modules/xalloc (Files): Undo latest change, since xalloc.h
82158         no longer needs SIZE_MAX or PTRDIFF_MAX.
82159
82160 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82161
82162         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82163         gl_PTRDIFF_MAX.
82164
82165 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82166
82167         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82168         "return", to pacify some unknown compiler.  Problem reported
82169         by Joerg Schilling.
82170
82171 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82172
82173         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82174         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82175         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82176         heuristic is just as accurate as far as we know, and it removes a
82177         dependency on size_max.m4 and ptrdiff_max.m4.
82178
82179 2003-11-11  Bruno Haible  <bruno@clisp.org>
82180
82181         * modules/xsize (Files): Add m4/size_max.m4.
82182         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82183
82184 2003-11-11  Bruno Haible  <bruno@clisp.org>
82185
82186         * m4/size_max.m4: New file.
82187         * m4/ptrdiff_max.m4: New file.
82188         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82189         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82190         (gl_XALLOC): Invoke it.
82191
82192 2003-11-11  Bruno Haible  <bruno@clisp.org>
82193
82194         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82195         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82196         defined.
82197
82198 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82199
82200         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82201         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82202         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82203         From Bruno Haible.
82204         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82205         not (size_t) -1, since it's defined here.
82206
82207 2003-11-09  Karl Berry  <karl@gnu.org>
82208
82209         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82210
82211 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82212
82213         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82214         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82215         Reject sizes of exactly SIZE_MAX bytes.
82216         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82217         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82218
82219 2003-11-05  Bruno Haible  <bruno@clisp.org>
82220
82221         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82222         SIZE_MAX defined in <limits.h> on Solaris.
82223
82224 2003-11-04  Jim Meyering  <jim@meyering.net>
82225
82226         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82227         variable names, rather than @VAR@.
82228         * modules/poll: Likewise.
82229
82230 2003-11-04  Bruno Haible  <bruno@clisp.org>
82231
82232         * modules/xsize: New file.
82233         * modules/linebreak: Depend on xsize.
82234         * MODULES.html.sh (func_all_modules): Add xsize.
82235
82236 2003-11-04  Bruno Haible  <bruno@clisp.org>
82237
82238         * m4/xsize.m4: New file.
82239
82240 2003-11-04  Bruno Haible  <bruno@clisp.org>
82241
82242         * lib/xsize.h: New file.
82243         * lib/linebreak.c: Include xsize.h.
82244         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82245         argument for overflow.
82246         Suggested by Paul Eggert.
82247
82248 2003-11-03  Karl Berry  <karl@gnu.org>
82249
82250         * config/config.{guess,sub}: update from config.
82251
82252 2003-11-03  Jim Meyering  <jim@meyering.net>
82253
82254         * modules/userspec (lib_SOURCES): Add userspec.h.
82255         (Include): Add "userspec.h".
82256         Improve description.
82257
82258 2003-11-03  Jim Meyering  <jim@meyering.net>
82259
82260         * lib/userspec.c: Include "userspec.h".
82261         * lib/userspec.h: New file.
82262
82263 2003-11-03  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82266
82267 2003-11-03  Bruno Haible  <bruno@clisp.org>
82268
82269         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82270         available, to avoid (extremely rare) race condition.
82271         Suggested by Paul Eggert.
82272
82273 2003-11-02  Karl Berry  <karl@gnu.org>
82274
82275         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82276
82277 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82278
82279         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82280         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82281         (read_filesystem_list): Set and use me_type_malloced.
82282         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82283         whatever the type happens to be), for brevity and consistency.
82284         Check for size calculation overflow on Alphas running OSF/1.
82285
82286 2003-10-31  Jim Meyering  <jim@meyering.net>
82287
82288         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82289
82290         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82291
82292 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82293             Bruno Haible  <bruno@clisp.org>
82294
82295         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82296         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82297
82298 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82299
82300         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82301         netbsd*-gnu*.  Suggested by Robert Millan.
82302
82303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82304
82305         * modules/group-member: Depend on stdbool.
82306
82307 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82308
82309         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82310
82311 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82312
82313         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82314         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82315         after the 'gnu' in these cases.  This fixes some bugs in the
82316         previous change, and is based on suggestions by Robert Millan.
82317
82318 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82319
82320         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82321         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82322         no longer needed.
82323         * lib/quotearg.c (quotearg_n_options): Use it.
82324         * lib/group-member.c: Include <stdbool.h>.
82325         (free_group_info): Arg is now const *; don't free arg.
82326         (get_group_info): Now returns bool and accepts struct group_info *,
82327         rather than returning a malloc'ed struct group_info *.
82328         All uses changed.  Check for overflow in internal size calculation.
82329
82330         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82331         rather than xmalloc/xrealloc.
82332         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82333         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82334         conformance bug: the old code used a pointer after freeing the
82335         storage that it addressed.
82336         * lib/hash.c (hash_initialize): Simplify the code by using
82337         xalloc_oversized rather than doing it by hand.
82338         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82339         the buffer preserved.  Use free and xmalloc instead.
82340         * lib/quotearg.c (quotearg_n_options): Likewise.
82341         Use a simpler test for size overflow.  Don't use xalloc_oversized
82342         because unsigned int might be wider than size_t (!); this suggests
82343         that we should switch from unsigned int to size_t for slot numbers.
82344
82345 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82346
82347         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82348         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82349         NetBSD kernels.  Requested by Richard Stallman.
82350
82351 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82352
82353         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82354         to allocate the returned structure.  Do not allocate a subarray,
82355         as x2nrealloc will do that.
82356         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82357         instead of xnrealloc.
82358         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82359
82360 2003-10-27  Bruno Haible  <bruno@clisp.org>
82361
82362         * lib/stdbool_.h: Better support for BeOS.
82363
82364 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82365
82366         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82367         now uses inline.
82368
82369 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82370
82371         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82372         callers that want to do their own size-overflow checking.  Include
82373         <stdbool.h>, since xalloc_oversized returns bool.
82374         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82375         to use xalloc_oversized.
82376
82377         Add two functions x2realloc, x2nrealloc, for programs that grow
82378         arrays dynamically by doubling their sizes.
82379         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82380         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82381         New functions.
82382
82383         Port to C99 semantics for 'inline' of external functions.
82384         Bug reported by Bruno Haible.
82385         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82386         with the old contents of xnmalloc.
82387         (xnmalloc, xmalloc): Use it.
82388         (xnrealloc_inline): New static inline function,
82389         with the old contents of xnrealloc.
82390         (xnrealloc, xrealloc): Use it.
82391
82392         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82393         that.
82394
82395 2003-10-26  Karl Berry  <karl@gnu.org>
82396
82397         * config/srclist.txt (COPYING.DOC): no longer available from
82398         /gd/gnuorg; don't know where the ultimate source is.
82399
82400 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82401
82402         Fix several address-calculation bugs in the hash modules,
82403         plus some minor code cleanup.
82404
82405         * lib/hash.h: Include <stdbool.h>, for bool.
82406         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82407         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82408         hash_get_n_entries, hash_get_max_bucket_length,
82409         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82410         hash_rehash): Use size_t rather than unsigned.
82411         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82412         hash_get_n_buckets_used, hash_get_n_entries,
82413         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82414         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82415         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82416         Likewise.
82417         (SIZE_MAX): Define if not defined.
82418         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82419         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82420         hash_print):
82421         Use const * when possible.
82422         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82423         (check_tuning): Fix bug: if tuning parameters were very close to
82424         0 or 1, rounding errors could have caused subscript violations.
82425         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82426         (hash_initialize): Add 'fail:' label
82427         to free table and return NULL, and use it to simplify code.
82428         Use calloc rather than clearing the storage ourself.
82429         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82430         buffer size calculations.
82431         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82432         Include <stddef.h>, for size_t.
82433         * lib/hash-pjw.c (hash_pjw): Likewise.
82434         Switch to method described by Bruno Haible.
82435         Include <limits.h>, for CHAR_BIT.
82436         (SIZE_BITS): New macro.
82437
82438 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82439
82440         * m4/getline.m4 (AM_FUNC_GETLINE):
82441         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82442         hosts.  Problem reported by Derek Robert Price in
82443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82444         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82445         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82446
82447 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82448
82449         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82450         ceiling the allocation at NMAX bytes rather than silently
82451         discarding input bytes before NMAX is reached.  This makes
82452         a difference only if NMAX exceeds SIZE_MAX / 2.
82453
82454         * lib/obstack.c: Merge from glibc.
82455         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82456         Add libc_hidden_def (_obstack_newchunk).
82457         (_obstack_free) [! defined _LIBC]: Remove.
82458         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82459         a clone of the function body.
82460         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82461         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82462
82463         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82464         glibc.
82465         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82466         arg to memcpy.
82467
82468         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82469         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82470         Don't use lvalue casts, as GCC plans to remove support for them
82471         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82472         was also present in the non-GCC version, indicating that this
82473         code had always been buggy and had never been widely used.
82474         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82475         Use the fast variant of each macro, rather than copying the
82476         definiens of the fast variant; that way, we'll be more likely to
82477         catch future bugs in the fast variants.
82478
82479 2003-10-20  Bruno Haible  <bruno@clisp.org>
82480
82481         * modules/wait-process: New file.
82482         * MODULES.html.sh (func_all_modules): Add wait-process.
82483
82484 2003-10-20  Bruno Haible  <bruno@clisp.org>
82485
82486         * m4/wait-process.m4: New file.
82487
82488 2003-10-20  Bruno Haible  <bruno@clisp.org>
82489
82490         * lib/wait-process.h: New file, from GNU gettext.
82491         * lib/wait-process.c: New file, from GNU gettext.
82492
82493 2003-10-19  Jim Meyering  <jim@meyering.net>
82494
82495         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82496         HPUX 10.20.
82497
82498 2003-10-18  Karl Berry  <karl@gnu.org>
82499
82500         * config/config.guess: update from config.
82501
82502 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82503
82504         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82505         (getgroups): First arg is int, not size_t.
82506         Don't let 'free' mangle errno.
82507
82508 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82509
82510         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82511
82512 2003-10-16  Karl Berry  <karl@gnu.org>
82513
82514         * config/config.{guess,sub}: update from config.
82515
82516 2003-10-16  Jim Meyering  <jim@meyering.net>
82517
82518         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82519         memcpy.
82520
82521 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82524         (SIZE_MAX): Remove.
82525         (new_exclude, add_exclude_file): Initial size no longer needs to
82526         be a power of 2.
82527         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82528         our own address arithmetic overflow checking.
82529
82530         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82531         (fnmatch): Do not alloca more than 2000 wide characters;
82532         instead, use malloc for large buffers.
82533         Check for address arithmetic overflow, and return -1
82534         with errno set to ENOMEM in that case.
82535         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82536         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82537         instead, return -1.  Check for address arithmetic overflow.
82538
82539 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82540
82541         Handle invalid suffixes and overflow independently, so that
82542         callers can treat them independently as needed.  Fix some bugs in
82543         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82544         suffix for a human-readable blocksize.  The major caller-visible
82545         change is the addition of a new
82546         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82547         that both overflow and suffix chars were found.
82548
82549         * lib/human.c (humblock): Don't check separately for invalid suffix
82550         char; that is xstrtoumax's job (now that its bug is fixed).
82551         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82552         INTMAX_MAX]: New macros.
82553         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82554         TYPE_MAXIMUM): New macros.
82555         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82556         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82557         if overflow occurs, as it's what __strtol does and it's more useful
82558         in practice.
82559         (__xstrtol): If __strtol reports some error other than ERANGE,
82560         reflect it to the caller as LONGINT_INVALID.  If it reports
82561         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82562         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82563         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82564         value.
82565         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82566         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82567         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82568         [defined UINTMAX_MAX]: New macros.
82569
82570 2003-10-14  Bruno Haible  <bruno@clisp.org>
82571
82572         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82573
82574 2003-10-14  Bruno Haible  <bruno@clisp.org>
82575
82576         * m4/sig_atomic_t: New file, from GNU gettext.
82577         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82578
82579 2003-10-14  Bruno Haible  <bruno@clisp.org>
82580
82581         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82582         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82583         Also use volatile where needed.
82584
82585 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82586
82587         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82588         Change maintainer from Bruno Haible to 'all'.
82589
82590 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82591
82592         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82593
82594 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82595
82596         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82597         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82598         and define in terms of the other primitives.
82599         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82600         (SIZE_MAX): Define if not already defined.
82601         (array_size_overflow): New function.
82602         (xalloc_die): Abort instead of exiting if 'error' returns.
82603         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82604         (xmalloc, xrealloc): Use them.
82605         (xcalloc): Check for address arithmetic overflow.
82606         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82607         a bit faster than strcpy.
82608
82609 2003-10-10  Simon Josefsson  <jas@extundo.com>
82610
82611         * modules/argp (Depends-on): Add restrict and strcase.
82612
82613 2003-10-10  Simon Josefsson  <jas@extundo.com>
82614
82615         * m4/argp.m4: Add AC_C_INLINE.
82616
82617 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82618
82619         Merge getpass from libc, plus a few fixes.
82620
82621         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82622         Include <stdbool.h>.
82623         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82624         __fsetlocking to empty.
82625         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82626         do include <bits/libc-lock.h>.
82627         Do not include <fcntl.h>; not needed.
82628         [_LIBC]: Include <wchar.h>.
82629         (NOTCANCEL_MODE): New macro.
82630         (flockfile, funlockfile) [_LIBC]: New macros.
82631         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82632         [!_LIBC]: New macros.
82633         (call_fclose): New function.
82634         (getpass): Use it.  Save tty stream separately; this simplifies the
82635         code and makes it more reliable if stdin happens to equal stdout.
82636         Invoke __fsetlocking on tty.
82637         Handle thread cancellation if needed.
82638         Namespace cleanup (use __tcgetattr, __getline).
82639         Use bool for Booleans.
82640         [USE_IN_LIBIO]: Handle wide streams.
82641         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82642         stream might go where.
82643
82644         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82645         doesn't have to include <stdio.h> before us.
82646         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82647         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82648         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82649         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82650         if not declared, so that we can use getpass.c code from libc without
82651         rewriting it.
82652         (flockfile, ftrylockfile, funlockfile): New macros.
82653
82654 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82655
82656         * modules/getpass: Depend on stdbool.
82657
82658 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82659
82660         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82661
82662 2003-10-07  Karl Berry  <karl@gnu.org>
82663
82664         * config/config.{guess,sub}: update from config.
82665
82666 2003-10-06  Jim Meyering  <jim@meyering.net>
82667             Bruno Haible  <bruno@clisp.org>
82668
82669         This lets translators provide better translations for the
82670         "Written by ..." part of --version output.
82671         * lib/version-etc.h: Include stdarg.h.
82672         (version_etc_copyright): Declare as readonly.
82673         (version_etc): Make this function variadic with a NULL-terminated list
82674         of author name strings.
82675         (version_etc_va): New declaration.
82676         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82677         (version_etc_copyright): Declare as readonly.
82678         (version_etc_va): New function. Provide a different translatable string
82679         for each possible number of authors < 10. Abbreviate when there are 10
82680         authors or more.
82681         (version_etc): Make this function variadic. Call version_etc_va.
82682         Suggestion from Gary V. Vaughan.
82683
82684         * lib/long-options.h (parse_long_options): Change prototype: the
82685         authors string is moved to the end and becomes variadic.
82686         * lib/long-options.c: Include stdarg.h.
82687         (parse_long_options): Make this function variadic, too.
82688         Call version_etc_va, not version_etc.
82689
82690 2003-10-06  Bruno Haible  <bruno@clisp.org>
82691
82692         * modules/version-etc-2: Remove file.
82693         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82694
82695 2003-10-06  Bruno Haible  <bruno@clisp.org>
82696
82697         * modules/fatal-signal: New file.
82698         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82699
82700 2003-10-06  Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/fatal-signal.m4: New file.
82703         * m4/signalblocking.m4: New file, from GNU gettext.
82704
82705 2003-10-06  Bruno Haible  <bruno@clisp.org>
82706
82707         * lib/version-etc-2.h: Remove file.
82708         * lib/version-etc-2.c: Remove file.
82709
82710 2003-10-06  Bruno Haible  <bruno@clisp.org>
82711
82712         * lib/fatal-signal.h: New file, from GNU gettext.
82713         * lib/fatal-signal.c: New file, from GNU gettext.
82714
82715 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82716
82717         * README: Rework advice for preventing empty .o files.
82718         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82719         not <sys/types.h>.
82720
82721 2003-10-04  Karl Berry  <karl@gnu.org>
82722
82723         * lib/argp*: update from libc.
82724
82725 2003-10-04  Karl Berry  <karl@gnu.org>
82726
82727         * config/config.{guess,sub}: update from config.
82728
82729 2003-10-02  Bruno Haible  <bruno@clisp.org>
82730
82731         * modules/lchown (Include): Add lchown.h.
82732         * modules/time_r (Include): Use "..." syntax.
82733         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82734
82735 2003-10-01  Simon Josefsson  <jas@extundo.com>
82736
82737         * MODULES.html.sh (func_all_modules): Move gethostname from section
82738         'based on' to section 'lacking' POSIX:2001.
82739
82740 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82741
82742         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82743         to output mode on the same stream.
82744
82745 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82746
82747         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82748         Fix arg typo in previous patch.
82749
82750 2003-09-28  Jim Meyering  <jim@meyering.net>
82751
82752         * lib/error.c: Correct cpp indentation.
82753
82754 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82755
82756         * modules/free: New file.
82757
82758 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82759
82760         * m4/free.m4: New file.
82761
82762 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82763
82764         * lib/minmax.h (MIN, MAX)
82765         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82766         Omit the special code that used __typeof__, since we worry that
82767         it could be more trouble than it's worth.  See:
82768         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82769         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82770
82771         * lib/free.c: New file.
82772
82773 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82774
82775         Trivial fixes to Makefile.am parts of module listings.
82776         * modules/strstr: Append strstr.h to lib_SOURCES.
82777         * modules/strcase: Likewise, for strcase.h.
82778
82779 2003-09-27  Karl Berry  <karl@gnu.org>
82780
82781         * config/mkinstalldirs: update from automake.
82782
82783 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82784
82785         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82786         (error_tail): Do not loop, reallocating temporary buffer, since
82787         the output cannot contain more wide characters than the input
82788         contains bytes, the size must be big enough already.  This avoids
82789         one potential size overflow calculation.  Check for size overflow
82790         when calculating temporary buffer size.  Free temporary buffer
82791         when done, if it was allocated with malloc; this plugs a memory
82792         leak.  Remove casts from void * to pointers, that are no longer
82793         needed now that we're assuming C89 or better.
82794
82795         Merge error changes from glibc.
82796
82797         * lib/error.c, error.h: Update copyright notice header to match glibc.
82798         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82799         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82800         Disable cancellation while printing error.
82801         * lib/error.h: Prepend __ to parameter names.
82802
82803 2003-09-26  Jim Meyering  <jim@meyering.net>
82804
82805         * lib/error.c (error_tail): Move some declarations
82806         into inner scope where the local variables are used.
82807
82808 2003-09-26  Bruno Haible  <bruno@clisp.org>
82809
82810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82811         stpncpy().
82812         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82813
82814 2003-09-26  Bruno Haible  <bruno@clisp.org>
82815
82816         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82817         (stpncpy): Define as alias for gnu_stpncpy.
82818         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82819
82820 2003-09-25  Simon Josefsson  <jas@extundo.com>
82821
82822         * lib/xgetdomainname.h: New file.
82823         * lib/xgetdomainname.c: New file.
82824
82825 2003-09-25  Simon Josefsson  <jas@extundo.com>
82826             Bruno Haible  <bruno@clisp.org>
82827
82828         * modules/getdomainname: New file.
82829         * modules/xgetdomainname: New file.
82830         * MODULES.html.sh (func_all_modules): Add getdomainname,
82831         xgetdomainname.
82832
82833 2003-09-25  Simon Josefsson  <jas@extundo.com>
82834             Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/getdomainname.m4: New file.
82837
82838 2003-09-25  Simon Josefsson  <jas@extundo.com>
82839             Bruno Haible  <bruno@clisp.org>
82840
82841         * lib/getdomainname.h: New file.
82842         * lib/getdomainname.c: New file.
82843
82844 2003-09-25  Karl Berry  <karl@gnu.org>
82845
82846         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82847
82848 2003-09-25  Karl Berry  <karl@gnu.org>
82849
82850         * config/install-sh: update from automake.
82851
82852 2003-09-25  Bruno Haible  <bruno@clisp.org>
82853
82854         * modules/version-etc-2: New file, from modules/version-etc with
82855         modifications.
82856         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82857
82858 2003-09-25  Bruno Haible  <bruno@clisp.org>
82859
82860         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82861         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82862
82863 2003-09-24  Simon Josefsson  <jas@extundo.com>
82864
82865         * modules/xgethostname: Add xgethostname.h.
82866
82867 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82868
82869         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82870         the buffer associated with the argument.  Bug reported by
82871         Simon Josefsson.
82872
82873 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82874
82875         * README: Document assumptions that 'int' is at least 32 bits
82876         wide, that integer arithmetic is 2's complement without overflow,
82877         that there are no holes in integer values, that adding sizes of
82878         two nonoverlapping objects can't overflow, and that all-bits-zero
82879         yields scalar zero.  Fix spelling and capitalization typos.
82880
82881 2003-09-19  Karl Berry  <karl@gnu.org>
82882
82883         * lib/argp.h: update from libc.
82884
82885 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82886
82887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82888         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82889         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82890
82891 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82892
82893         * gnulib-tool: Use "test -h", not "test -L", for portability
82894         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82895         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82896         (sed_extract_prog): Issue s commands one-by-one, rather than
82897         using \| in one s command.
82898
82899 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82900
82901         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82902         input error, instead of returning NULL the next time we are called
82903         (and therefore losing track of errno).
82904
82905 2003-09-16  Bruno Haible  <bruno@clisp.org>
82906
82907         * gnulib-tool (func_create_testdir): Warn about duplicated
82908         dependencies.
82909
82910 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82911
82912         * modules/argmatch, modules/fatal, modules/obstack,
82913         modules/xalloc, modules/xgethostname: Sort dependencies by
82914         importance, not alphabetically.
82915
82916 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82917
82918         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82919         fails, so that the caller gets the proper errno.
82920
82921         * lib/readutmp.c (read_utmp): Likewise.
82922         Check for fstat error.  Close stream and free storage
82923         when failing.
82924
82925 2003-09-14  Karl Berry  <karl@gnu.org>
82926
82927         * config/srclist.txt (strdup.c): disable for c89 changes.
82928
82929 2003-09-14  Jim Meyering  <jim@meyering.net>
82930
82931         * lib/getloadavg.c: Correct cpp indentation.
82932         * lib/strdup.c: Likewise.
82933         * lib/vasnprintf.c: Likewise.
82934
82935 2003-09-14  Bruno Haible  <bruno@clisp.org>
82936
82937         * modules/fwriteerror: New file.
82938         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82939
82940 2003-09-14  Bruno Haible  <bruno@clisp.org>
82941
82942         * lib/fwriteerror.h: New file.
82943         * lib/fwriteerror.c: New file.
82944
82945 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82946
82947         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82948         modules/xgethostname, modules/xalloc: Depend on exit.
82949
82950 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82951
82952         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82953
82954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82955         and AC_MINIX, too, so that their extensions are available.
82956
82957         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82958         This macro has been superseded by gl_BACKUPFILE.
82959
82960         More patches to assume C89 or better.
82961
82962         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82963
82964         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82965         unconditionally.
82966         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82967         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82968         Include <string.h>, <stdlib.h> unconditionally.
82969         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82970         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82971         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82972         headers or for string.h.
82973         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82974         or strtoul.
82975
82976         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82977         headers.
82978         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82979         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82980         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82981         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82982         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82983         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82984         memcpy, memset.
82985         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82986         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82987         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82988         strtol.
82989         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82990         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82991         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82992         strtoul.
82993
82994 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82995
82996         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82997         * lib/obstack.c [!defined _LIBC]: Likewise.
82998         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82999         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83000         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83001
83002         More changes to assume C89 or better.
83003
83004         * lib/error.c (error_tail): Assume vprintf.
83005
83006         * lib/argmatch.c (getenv): Remove decl.
83007         * lib/progreloc.c (get_full_program_name): Define via prototype.
83008         * lib/setenv.c (clearenv): Likewise.
83009         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83010         needed.
83011         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83012         (malloc, memcpy): Remove decls.
83013         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83014         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83015         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83016         (memcpy): Remove macro.
83017         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83018         (__P): Remove.  All uses removed.
83019         (PTR): Remove.  All uses changed to void *.
83020         (CHAR_BIT, NULL): Remove.
83021         (spaces, zeros, memset_space, memset_zero)
83022         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83023         Remove.
83024         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83025         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83026         Define with prototype.
83027         Remove now-unnecessary prototype decl.
83028         (extra_args_spec): Assume ANSI C.  All uses changed.
83029         (extra_args_spec_iso): Remove.
83030         (my_strftime, emacs_strftimeu): Define via prototype.
83031         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83032         unconditionally.
83033         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83034         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83035         (strtoul, strtol): Remove decls.
83036         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83037         LONG_MAX): Remove.
83038         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83039         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83040         (LOCALE_PARAM_PROTO): New macro.
83041         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83042         (INTERNAL (strtol), strtol): Define with a prototype.
83043         (PARAMS): Remove.  All uses removed.
83044         * lib/tempname.c: Include <string.h> unconditionally.
83045         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83046         * lib/xgethostname.c (main): Define with a prototype.
83047         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83048         Include <stdlib.h> unconditionally.
83049         (calloc, malloc, realloc, free): Remove decls.
83050         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83051         Include <stdlib.h> unconditionally.  Sort include file names.
83052         (strtod): Remove.
83053         (xstrtod): Define with a prototype.
83054         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83055         (strtol, strtoul): Remove decls.
83056
83057 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83058
83059         More patches to assume C89 or better.
83060         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83061         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83062         string.h, memchr, STDC_HEADERS.
83063
83064 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83065
83066         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83067         Include <stdlib.h>, <string.h> unconditionally.
83068         Remove now-unnecessary cast to char *.
83069         * lib/strnlen.c: Include <string.h> unconditionally.
83070         * lib/yesno.c (yesno): Define with a prototype.
83071
83072 2003-09-11  Bruno Haible  <bruno@clisp.org>
83073
83074         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83075
83076 2003-09-10  Jim Meyering  <jim@meyering.net>
83077
83078         * lib/error.c: Correct indentation of cpp directives.
83079
83080 2003-09-10  Bruno Haible  <bruno@clisp.org>
83081
83082         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83083         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83084         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83085         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83086         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83087         <stdlib.h> and <string.h> checks.
83088         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83089         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83090
83091 2003-09-10  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/strcspn.c: Include <string.h> unconditionally.
83094         * lib/strpbrk.c: Include <string.h> unconditionally.
83095         * lib/strstr.c: Include <string.h> unconditionally.
83096         * lib/unicodeio.c: Include <string.h> unconditionally.
83097         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83098         * lib/unsetenv.c: Likewise.
83099         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83100         * lib/yesno.c: Include <stdlib.h> unconditionally.
83101         (rpmatch): Add prototype.
83102
83103 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83104
83105         More patches to assume C89 or better.
83106         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83107         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83108         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83109         or for string.h.
83110         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83111         stdlib.h.
83112         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83113         C headers.
83114         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83115         string.h.
83116         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83117         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83118         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83119         or for string.h.
83120         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83121         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83122         C headers.
83123         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83124         memcpy.
83125         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83126         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83127         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83128         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83129         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83130         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83131         string.h, free.
83132         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83133         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83134         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83135         C headers, or for string.h.
83136         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83137         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83138         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83139         headers, memory.h, stdlib.h, string.h, strings.h.
83140         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83141         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83142         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83143         strchr.
83144         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83145         headers, memory.h, string.h.
83146         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83147         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83148         free.
83149         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83150         headers.
83151         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83152         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83153         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83154         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83155         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83156
83157 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83158
83159         More K&R removal.
83160
83161         * lib/acosl.c (main): Use a prototype.
83162         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83163         tanl.c: Likewise.
83164
83165         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83166
83167         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83168         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83169         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83170         with a prototype.
83171         * lib/getopt.c (const): Remove macro.
83172         Include <string.h> unconditionally.
83173         (my_index): Remove; all uses changed to strchr.
83174         (strlen): Remove decl.
83175         (exchange): Remove forward decl; no longer needed.
83176         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83177         Define with prototype.
83178         * lib/getopt1.c (const): Remove macro.
83179         (getopt_long, getopt_long_only, main): Define with prototype.
83180
83181         * lib/getugroups.c: Include <string.h> unconditionally.
83182
83183         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83184         (getusershell, setusershell, endusershell, readname, main):
83185         Define with prototypes.
83186
83187         * lib/group-member.c: Include group-member.h first.
83188         Include <stdlib.h> unconditionally.
83189
83190         * lib/hard-locale.c: Include hard-locale.h first.
83191         Include <stdlib.h>, <string.h> unconditionally.
83192
83193         * lib/hash.c (free, malloc): Remove decls.
83194         Include <stdlib.h> unconditionally.
83195
83196         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83197         (getenv): Do not declare.
83198
83199         * lib/idcache.c: Include <string.h> unconditionally.
83200
83201         * lib/long-options.c: Include long-options.h first, to test interface.
83202         Include <stdlib.h> unconditionally.
83203
83204         * lib/makepath.c: Include makepath.h first, to test interface.
83205         Include <stdlib.h> and <string.h> unconditionally.
83206
83207         * lib/linebuffer.c: Include <stdlib.h>.
83208         (free): Remove decl.
83209
83210         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83211         stddef.h. rpl_malloc returns void *, not char *.
83212         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83213         prototype.
83214
83215         * lib/md5.h: Include <limits.h> unconditionally.
83216         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83217         (__P): Remove; all uses removed.
83218         * lib/md5.c: Include "md5.h" first.
83219         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83220         md5_buffer, md5_process_bytes, md5_process_block):
83221         Define with prototypes.
83222         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83223         * lib/sha.c: Include "sha.h" first.
83224         Include <stdlib.h>, <string.h> unconditionally.
83225
83226         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83227         * lib/memcmp.c (__ptr_t): Likewise.
83228         * lib/memrchr.c (__ptr_t): Likewise.
83229         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83230         Include <string.h> unconditionally.
83231         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83232         * lib/memchr.c: Include <stdlib.h> unconditionally.
83233         * lib/memchr.c (LONG_MAX): Remove.
83234         * lib/memrchr.c (LONG_MAX): Likewise.
83235         * lib/memchr.c (__memchr): Define via a prototype.
83236         * lib/memrchr.c (__memrchr): Likewise.
83237         * lib/memcmp.c (__P): Remove, and remove all uses.
83238         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83239         Remove forward decls; no longer needed.
83240         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83241         Use types required by C89 in prototype.
83242
83243         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83244         * lib/savedir.c: Likewise.
83245         * lib/mkdir.c (free): Remove decl.
83246         * lib/rmdir.c (rmdir): Define with a prototype.
83247         * lib/savedir.c: Include savedir.h first, to test interface.
83248
83249         * lib/mktime.c (STDC_HEADERS): Remove.
83250         Include <stdlib.h>, <string.h> unconditionally.
83251
83252         * lib/modechange.c: Include <stdlib.h> unconditionally.
83253         (malloc): Remove decl.
83254
83255         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83256         (free): Remove decl.
83257
83258         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83259         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83260         (This type really should be intptr_t, but that's a C99ism.)
83261         (_obstack_memcpy): Remove: all uses changed to memcpy.
83262         Include <string.h> unconditionally.
83263         (struct obstack): Assume __STDC__ for types of members
83264         chunkfun, freefun, extra_arg.
83265         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83266         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83267         obstack_begin, obstack_specify_allocation,
83268         obstack_specify_allocation_with_arg, obstack_chunkfun,
83269         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83270         Remove unprototyped decls and the macros that use them.
83271         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83272         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83273         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83274         (defined __STDC__ && __STDC__)]:
83275         Remove nonprototyped code.
83276         Include <stdlib.h> unconditionally.
83277         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83278         _obstack_allocated_p, _obstack_free, obstack_free,
83279         _obstack_memory_used, print_and_abort):
83280         Define using prototypes.
83281         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83282         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83283         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83284         obstack_next_free, obstack_object_size, obstack_room) [0]:
83285         Remove unused, unprototyped code.
83286
83287         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83288
83289         * lib/physmem.c (physmem_total, physmem_available, main): Define
83290         with prototypes.
83291
83292         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83293         (main): Define with a prototype.
83294
83295         * lib/posixver.c (getenv): Remove decl.
83296
83297         * lib/putenv.c (malloc): Returns void *, not char *.
83298         Include <string.h> unconditionally.
83299         (strchr, memcpy, NULL): Do not define.
83300
83301         * lib/readtokens.c: Include readtokens.h first, to test interface.
83302         Include <stdlib.h>, <string.h> unconditionally.
83303         (init_tokenbuffer): Define with a prototype.
83304
83305         * lib/regex.c (PARAMS): Remove.  All uses removed.
83306         All uses of _RE_ARGS removed, too.
83307         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83308         unconditionally.
83309         (bzero): Assume memset exists.
83310         (memcmp, memcpy, NULL): Remove.
83311         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83312         char, or assignments to local vars of type signed char.
83313         (init_syntax_once, PREFIX(extract_number_and_incr),
83314         PREFIX(print_partial_compiled_pattern),
83315         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83316         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83317         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83318         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83319         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83320         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83321         wcs_compile_range, byte_compile_range, truncate_wchar,
83322         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83323         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83324         count_mbs_length, wcs_re_match_2_internal,
83325         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83326         PREFIX(alt_match_null_string_p),
83327         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83328         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83329         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83330         now-unnecessary declaration, if any.
83331         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83332         regcomp, regexec):
83333         Remove now-unnecessary casts among pointer types.
83334         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83335
83336         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83337         (free): Remove decl.
83338
83339         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83340
83341         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83342         (free): Remove decl.
83343
83344         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83345         * lib/xgetcwd.c: Likewise.
83346
83347         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83348         (free): Remove decl.
83349
83350         * lib/strchrnul.c (strchrnul): Define with a prototype.
83351         Fix bug: c_in was not converted to char before searching.
83352
83353         The following changes are not K&R related:
83354
83355         * lib/group-member.h: Include <sys/types.h>, so that this file is
83356         self-contained.
83357         * lib/makepath.h: Likewise.
83358
83359         * lib/getusershell.c (readname, default_index, line_size, readname):
83360         Use size_t, not int, for sizes.
83361         (readname): If the size overflows, report an error instead of
83362         looping forever.
83363
83364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83365
83366         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83367         libc.
83368
83369 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83370
83371         * README: New section: portability guidelines.
83372
83373 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83374
83375         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83376         C89 spec.
83377
83378 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83379
83380         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83381
83382 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83383
83384         Assume C89 or better; remove K&R cruft.
83385         A few of these changes were first proposed by Derek Robert Price
83386         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83387
83388         * lib/addext.c: Include <string.h> unconditionally.
83389         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83390         Don't declare getenv or malloc.
83391
83392         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83393         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83394         (NULL): Remove.
83395         (find_stack_direction, alloca): Use prototypes.
83396
83397         * lib/atexit.c (atexit): Define using a prototype.
83398
83399         * lib/basename.c, dirname.c, stripslash.c:
83400         Include <string.h> unconditionally.
83401
83402         * lib/bcopy.c: Include <stddef.h>.
83403         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83404
83405         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83406
83407         * lib/error.h (error, error_at_line, error_print_progname)
83408         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83409         * lib/error.c: Include error.h first, to check interface.
83410         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83411         (VA_START): Remove; all uses changeed to va_start.
83412         (exit, strerror): Remove decls.
83413         (error_print_progname): Prototype uncondionally.
83414         Don't include <errno.h>; no longer needed.
83415         (private_strerror): Remove.
83416         (error_tail): Always define.
83417         (error, error_at_line): Assume C89 or better; always use prototypes.
83418         * lib/fatal.c: Include "fatal.h" first, to test interface.
83419         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83420         (VA_START): Remove; all uses changed to va_start.
83421         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83422         this case.
83423         (exit): Remove decl.
83424         (fatal): Prototype unconditionally.  Assume va_start works.
83425         Abort at end, to pacify gcc.
83426
83427         * lib/euidaccess.c (main): Define with a prototype.
83428
83429         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83430
83431         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83432
83433         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83434         prototypes.
83435         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83436         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83437         (getenv): Remove decl.
83438         (fnmatch): Define using a prototype.
83439         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83440         (FCT): Define using a prototype.
83441
83442         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83443
83444         * lib/gethostname.c: Include <stddef.h>.
83445         (gethostname): Define with prototype.  Length is size_t, not int.
83446
83447 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83448
83449         Assume C89 or better; remove K&R cruft.
83450         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83451         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83452         string.h, getenv, malloc.
83453         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83454         headers.
83455         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83456         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83457         do not check for strerror.
83458         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83459         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83460         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83461         do not check for doprnt or vprintf.
83462         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83463         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83464
83465 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83466
83467         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83468         getversion.c should have been removed then, but was accidentally
83469         preserved.
83470
83471         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83472         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83473
83474 2003-09-08  Karl Berry  <karl@gnu.org>
83475
83476         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83477                 config, forget about prep.
83478
83479         * config/depcomp, missing: update from automake.
83480
83481 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83482
83483         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83484         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83485
83486 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83487
83488         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83489         copy_tm_result.  Bug reported by Simon Josefsson in
83490         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83491
83492 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83493
83494         * m4/time_r.m4: New file.
83495         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83496         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83497         is. Check for timegm declaration.
83498         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83499         Do not check for gmtime_r.
83500         Replace mktime if __mktime_internal does not exist and if mktime
83501         hasn't been replaced already.
83502
83503 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83504
83505         * lib/time_r.c, lib/time_r.h: New files.
83506
83507         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83508         __localtime_r.
83509         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83510         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83511
83512         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83513         __gmtime_r.
83514         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83515         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83516         Include <time_r.h>.
83517
83518         * lib/timegm.c: Switch to glibc implementation, with the following
83519         changes:
83520         [defined HAVE_CONFIG_H]: Include <config.h>.
83521         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83522         (__mktime_internal) [!defined _LIBC]: New decl.
83523         (__gmtime_r) [!defined _LIBC]: New macro and function.
83524         (timegm): Use a prototype, since gnulib assumes C89.
83525         Do not bother declaring tmp to be const, as it's not really usefu.
83526         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83527         (timegm): Declare only if HAVE_DECL_TIMEGM.
83528
83529 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83530
83531         * MODULES.html.sh (func_all_modules): Add time_r.
83532         * modules/time_r: New file.
83533         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83534         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83535
83536 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83537
83538         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83539         Bug reported by Lute Kamstra in
83540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83541
83542         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83543         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83544         course with correspondingly smaller numbers for tomorrow and
83545         yesterday.  From Tadayoshi Funaba.  Originally installed into
83546         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83547         coreutils merge?).
83548
83549 2003-08-31  Simon Josefsson  <jas@extundo.com>
83550
83551         * modules/timegm: New file.
83552         * MODULES.html.sh (func_all_modules): Add timegm.
83553
83554 2003-08-31  Simon Josefsson  <jas@extundo.com>
83555
83556         * m4/timegm.m4: New file.
83557
83558 2003-08-31  Simon Josefsson  <jas@extundo.com>
83559
83560         * lib/timegm.h: New file.
83561         * lib/timegm.c: New file.  Based on
83562         wget-1.8.2/src/http.c:mktime_from_utc.
83563
83564 2003-08-31  Karl Berry  <karl@gnu.org>
83565
83566         * lib/argp.h: update from libc.
83567
83568 2003-08-28  Bruno Haible  <bruno@clisp.org>
83569
83570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83571         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83572         followed by '#define fnmatch fnmatch_posix' gives an error.
83573
83574 2003-08-28  Bruno Haible  <bruno@clisp.org>
83575
83576         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83577         warning on QNX, which defines O_BINARY to 000000.
83578
83579 2003-08-27  Jim Meyering  <jim@meyering.net>
83580
83581         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83582         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83583         would fail after 32.  Reported by Danny Levinson.  Details here:
83584         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83585
83586 2003-08-24  Bruno Haible  <bruno@clisp.org>
83587
83588         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83589         MSVC7 <stdio.h> is included later.
83590
83591 2003-08-22  Simon Josefsson  <jas@extundo.com>
83592
83593         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83594
83595 2003-08-20  Karl Berry  <karl@gnu.org>
83596
83597         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83598
83599 2003-08-20  Bruno Haible  <bruno@clisp.org>
83600
83601         * modules/progname: New file.
83602         * MODULES.html.sh (func_all_modules): Add progname.
83603
83604 2003-08-20  Bruno Haible  <bruno@clisp.org>
83605
83606         * lib/progname.h: New file, from GNU gettext.
83607         * lib/progname.c: New file, from GNU gettext.
83608         * lib/progreloc.c: New file, from GNU gettext.
83609
83610 2003-08-19  Jim Meyering  <jim@meyering.net>
83611
83612         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83613         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83614
83615 2003-08-19  Bruno Haible  <bruno@clisp.org>
83616
83617         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83618         more.
83619
83620 2003-08-19  Bruno Haible  <bruno@clisp.org>
83621
83622         * lib/xstrdup.c: Assume <string.h> exists.
83623
83624 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83625
83626         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83627         in makefile rules.
83628
83629 2003-08-18  Jim Meyering  <jim@meyering.net>
83630
83631         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83632         * m4/lib-ld.m4: Likewise.
83633
83634 2003-08-18  Jim Meyering  <jim@meyering.net>
83635
83636         * lib/setenv.h: Indent nested cpp directive.
83637         * lib/vasnprintf.c: Remove trailing blanks.
83638
83639 2003-08-17  Simon Josefsson  <jas@extundo.com>
83640
83641         * modules/xstrndup: New file.
83642         * MODULES.html.sh (func_all_modules): Add xstrndup.
83643
83644 2003-08-17  Simon Josefsson  <jas@extundo.com>
83645
83646         * modules/argp: Fix autoconf macro name. Add more dependencies.
83647
83648 2003-08-17  Simon Josefsson  <jas@extundo.com>
83649
83650         * m4/xstrndup.m4: New file.
83651
83652 2003-08-17  Simon Josefsson  <jas@extundo.com>
83653
83654         * m4/argp.m4: New file.
83655
83656 2003-08-17  Simon Josefsson  <jas@extundo.com>
83657             Bruno Haible  <bruno@clisp.org>
83658
83659         * lib/xstrndup.h: New file.
83660         * lib/xstrndup.c: New file.
83661
83662 2003-08-17  Bruno Haible  <bruno@clisp.org>
83663
83664         * modules/strndup (Files, Include): Add lib/strndup.h.
83665
83666 2003-08-17  Bruno Haible  <bruno@clisp.org>
83667
83668         * modules/euidaccess (Files): Add lib/euidaccess.h.
83669
83670 2003-08-17  Bruno Haible  <bruno@clisp.org>
83671
83672         * lib/strndup.h: New file.
83673
83674 2003-08-17  Bruno Haible  <bruno@clisp.org>
83675
83676         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83677         like AC_GNU_SOURCE.
83678         * modules/extensions (configure.ac): Comment out the invocation of
83679         gl_USE_SYSTEM_EXTENSIONS.
83680
83681 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83682
83683         Merges from coreutils, etc.
83684         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83685         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83686         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83687         fixing a typo.
83688         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83689         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83690
83691 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83692
83693         Document merge from coreutils.
83694         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83695         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83696         * modules/utime: Add m4/utimes-null.m4.
83697
83698 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83699
83700         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83701         space, undoing this 2003-08-12 change:
83702         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83703
83704 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83705
83706         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83707         strtoul.c from libc, undoing this 2003-08-12 change:
83708         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83709
83710 2003-08-16  Jim Meyering  <jim@meyering.net>
83711
83712         Merges from coreutils.
83713         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83714         prefix.  Adjust cache variables similarly.  Create 500 rather than
83715         just 300 files, to exercise bug on Darwin6.5, too.
83716         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83717         $missing_dir.
83718         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83719         AM_SYS_POSIX_TERMIOS.
83720         Reported by mkc@mathdogs.com.
83721         Also change use of $am_cv_sys_posix_termios
83722         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83723         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83724         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83725         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83726         in /proc/mounts until it finds one with matching device number.  This
83727         is unnecessary when the FILE argument *is* a mount point.  No stat call
83728         is necessary in that case.  So, disable the statvfs-testing code on
83729         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83730         as RedHat bug# 84846.
83731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83732         to 1MB, so as not to render systems with no stack size limit (e.g.,
83733         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83734         Include <unistd.h>.  On some systems,
83735         it is required for the definition of _SC_PAGESIZE.
83736
83737 2003-08-16  Jim Meyering  <jim@meyering.net>
83738
83739         Merge from coreutils.
83740         * lib/xstrtoimax.c: #else #if -> #elif.
83741         * lib/xstrtoumax.c: Likewise.
83742
83743 2003-08-16  Jim Meyering  <jim@meyering.net>
83744
83745         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83746         * m4/utimes.m4: Removed.
83747         * m4/utimes-null.m4: Renamed from utimes.m4.
83748
83749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83750         to 1MB, so as not to render systems with no stack size limit (e.g.,
83751         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83752         Include <unistd.h>.  On some systems,
83753         it is required for the definition of _SC_PAGESIZE.
83754
83755 2003-08-16  Jim Meyering  <jim@meyering.net>
83756         and Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         Merges from coreutils, etc.
83759
83760         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83761         using the latest version from cvs.  This avoids problems with #line
83762         directives using a vendor (Sun) compiler.
83763         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83764         Don't set GETGROUPS_LIB here; now it's
83765         done via getgroups.m4's wrapper function.
83766         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83767         rather than just in sh-util/configure.in, so that the
83768         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83769         same.
83770         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83771         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83772         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83773         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83774         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83775         Remove code that is now done by the newly-required macros.
83776         Append $(EXEEXT) to DF_PROG.
83777         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83778         Do not invoke or require the following here,
83779         since prereq.m4 or some gnulib .m4 now does this for us:
83780         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83781         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83782         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83783         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83784         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83785         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83786         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83787         AC_FUNC_OBSTACK.
83788         Do not replace the following functions, as this is now the job
83789         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83790         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83791         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83792         atexit getpass, strdup, getpagesize.
83793         Replace 'raise'.
83794         Do not check for the following functions, as this is now the job
83795         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83796         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83797         setregid.
83798         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83799         Check for sys/sysctl.h.
83800         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83801         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83802         of checking for ssize_t ourselves.
83803
83804         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83805         Require every macro that gnulib/modules/* suggests for us.
83806         (jm_PREREQ_ADDEXT): New macro.
83807         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83808         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83809
83810         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83811         (gl_PHYSMEM): Use it.
83812         Also check for `table' function.
83813         Check for new headers and functions.
83814         Add check for sys/sysmp.h.
83815         With suggestions from Kaveh Ghazi.
83816         Ignore headers that are present but cannot be compiled.  This
83817         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83818         C 5.4.
83819
83820 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83821
83822         Document merge from coreutils.
83823         * modules/userspec: Depend on posixver.
83824         * modules/strftime: Depend on tzset.
83825
83826 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83827
83828         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83829         rather than tab, after '#' in shell-script copyright notices.
83830         Suggested by Bruno Haible.
83831
83832 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83833
83834         * config/srclist-update: Use three spaces, rather than tab, after '#'
83835         in shell-script copyright notices.  Suggested by Bruno Haible.
83836         Remove unnecessary parenthesization in regular expression.
83837
83838 2003-08-15  Jim Meyering  <jim@meyering.net>
83839
83840         Merge from coreutils.
83841         * lib/xgethostname.c: Include <stdlib.h>.
83842         (xghostname): Don't exit for anything other than memory-related
83843         failure; just return NULL.
83844         * lib/userspec.c: Include "posixver.h".
83845         (parse_user_spec): Accept `.' as a separator only
83846         in pre-POSIX-200112 mode.
83847         * lib/strtoimax.c: Use #elif rather than #else #if.
83848         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83849         Remove function, now that we can rely on a working tzset function.
83850         [!_LIBC]: Ensure that the required autoconf test has been run.
83851         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83852         Use underlying_strftime for %r.
83853         * lib/sha.c: Merge in some clean-up and optimization changes from
83854         glibc.
83855         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83856         Ensure that it is a multiple of 64.
83857         Rearrange loop exit tests so as to avoid performing an
83858         additional fread after encountering an error or EOF.
83859         * lib/realloc.c: Update copyright date.
83860
83861 2003-08-15  Jim Meyering  <jim@meyering.net>
83862         and Paul Eggert  <eggert@twinsun.com>
83863
83864         Merge from coreutils.
83865         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83866         member but strut utmpx does not.  Needed for AIX 4.3.3.
83867         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83868
83869 2003-08-15  Jim Meyering  <jim@meyering.net>
83870         and Paul Eggert  <eggert@cs.ucla.edu>
83871
83872         Merges from coreutils, etc.
83873         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83874         Require gl_FUNC_TZSET_CLOBBER.
83875         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83876         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83877         members.
83878
83879 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83880
83881         Help the merge from coreutils.
83882         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83883         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83884         * m4/tzset.m4: Use it too.
83885
83886 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83887
83888         * modules/tzset: New file.
83889
83890 2003-08-14  Jim Meyering  <jim@meyering.net>
83891
83892         Merges from coreutils.
83893         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83894         variable names, rather than @FNMATCH_H@.
83895         * modules/alloca: Likewise for $(ALLOCA_H).
83896
83897         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83898         the three copies of the literal target, `fnmatch.h'.
83899         * modules/alloca (alloca.h): Likewise.
83900
83901 2003-08-14  Jim Meyering  <jim@meyering.net>
83902
83903         Merge from coreutils.
83904         * m4/tzset.m4: New file.
83905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83906         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83907         otherwise, AIX 5.1 systems would end up using the latter.
83908         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83909         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83910         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83911         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83912
83913 2003-08-14  Jim Meyering  <jim@meyering.net>
83914
83915         Merge from coreutils.
83916         * lib/obstack.h: Whitespace changes.
83917         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83918         and xcalloc return values.
83919         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83920         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83921         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83922         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83923         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83924         error from mntctl.
83925         Use mntctl's return value to drive the entry-processing loop, since
83926         we can't rely on the value of the vmt_length member in the last
83927         entry.  On some systems doing so could result in exhausting
83928         virtual memory.  Based in part on a patch from Mike Jetzer.
83929
83930 2003-08-14  Jim Meyering  <jim@meyering.net>
83931         and Paul Eggert  <eggert@twinsun.com>
83932
83933         Merges from coreutils, plus other fixes.
83934         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83935         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83936         for credits and details.  Thanks to Kaveh Ghazi for helping
83937         to keep these files in sync.
83938         (ARRAY_SIZE): Define it.
83939         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83940         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83941         (memcasecmp): Don't assume size_t fits in unsigned int.
83942         Remove casts and duplicate code.
83943         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83944         (memcpy): Remove definition.
83945         Merge in some clean-up and optimization changes from glibc.
83946         [BLOCKSIZE]: Move definition to top of file.
83947         Ensure that it is a multiple of 64.
83948         Rearrange loop exit tests so as to avoid performing an
83949         additional fread after encountering an error or EOF.
83950         * lib/md5.h (md5_uintptr): Define.
83951         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83952         return to the initial working directory.  Preserve errno
83953         for caller.
83954         * lib/idcache.c: Include "xalloc.h".
83955         (xmalloc, xrealloc): Remove decls.
83956         (getuser): Remove casts no longer required in C89.
83957         * lib/human.c: Include stdio.h, for sprintf.
83958         * lib/group-member.c: Include "xalloc.h".
83959         (xmalloc, xrealloc): Remove decls.
83960         (get_group_info): Remove casts no longer required in C89.
83961         * lib/getusershell.c (readname): Remove casts no longer required in
83962         C89.
83963         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83964         * lib/getline.c: Whitespace fix, from coreutils.
83965
83966 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83967
83968         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83969         Check for isascii.
83970
83971         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83972         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83973         Undo previous (whitespace-only) change.
83974
83975 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83976
83977         * lib/exclude.c: Include <ctype.h>
83978         (IN_CTYPE_DOMAIN): New macro.
83979         (is_space): New fn.
83980         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83981         and empty lines.
83982
83983         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83984         Undo previous (whitespace-only) change.
83985
83986 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83987
83988         * config/srclist-update: Change update back to the old behavior,
83989         leaving whitespace alone.  Use one 'sed' command rather than a
83990         pipeline.
83991         (fixlicense): Now a variable, not a function.
83992         (remove_trailing_blanks): Remove.
83993         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83994         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83995         Undo previous (whitespace-only) change.
83996
83997 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83998
83999         Merge from coreutils.
84000         * modules/euidaccess: Add lib_SOURCES, include for new
84001         file euidaccess.h
84002
84003 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84004
84005         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84006         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84007         Normalize leading white space and remove trailing white space.
84008
84009         Merge from coreutils
84010         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84011
84012         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84013         0.12.1.  These files are now being upgraded automatically by
84014         ../config/srclist-update.
84015
84016 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84017
84018         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84019         Normalize leading white space and remove trailing white space.
84020         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84021         notice, as per ../config/srclist-update.
84022
84023         Merge from coreutils.
84024         * lib/euidaccess.h: New file.
84025         * lib/euidaccess.c: Include it.
84026         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84027         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84028         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84029
84030 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84031
84032         * config/srclist-update: Add copyright notice.
84033         (remove_id_lines, remove_trailing_blanks): New constants.
84034         (fixfile): Use them to normalize spacing a bit in copied files.
84035         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84036         Normalize leading white space and remove trailing white space.
84037
84038         * config/texinfo.tex: Sync with texinfo.
84039
84040         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84041         strtoul.c from libc, to merge coreutils whitespace changes.
84042
84043         * config/srclist.txt: Get the following m4 files from gettext:
84044         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84045         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84046         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84047         wint_t.m4.
84048
84049 2003-08-12  Karl Berry  <karl@gnu.org>
84050
84051         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84052         been made.
84053
84054 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84055
84056         * modules/gnu-source, m4/gnu-source.m4:
84057         Remove; we're assuming Autoconf 2.54 or later now.
84058         Suggested by Bruno Haible.
84059         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84060
84061 2003-08-11  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84064
84065 2003-08-11  Bruno Haible  <bruno@clisp.org>
84066
84067         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84068         (vasnprintf): Use it instead of wcslen.
84069
84070 2003-08-11  Bruno Haible  <bruno@clisp.org>
84071
84072         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84073         value to ensure that _Bool promotes to int. Use #define for _Bool when
84074         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84075
84076 2003-08-10  Karl Berry  <karl@gnu.org>
84077
84078         * lib/regex.h: update from libc (whitespace fix).
84079
84080 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84081
84082         Merge some files from coreutils.  These changes were
84083         originally made by Jim Meyering.
84084         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84085         many older Unixes require this.
84086         * lib/alloca.c (alloca): Remove cast to argument of free;
84087         no longer needed in C89.
84088         * lib/alloca_.h, regex.h: Fix white space to match
84089         what GNU indent does.
84090
84091 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84092
84093         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84094         apparently Emacs's Unicode mode got confused before my 2003-08-05
84095         checkin.
84096
84097 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84098
84099         * m4/extensions.m4: New file.
84100         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84101         Require gl_USE_SYSTEM_EXTENSIONS.
84102         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84103         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84104
84105 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84106
84107         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84108         * modules/extensions, modules/gnu-source: New files.
84109         * modules/timespec, modules/unlocked-io: Depend on extensions.
84110
84111 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84112
84113         * modules/restrict: New file.
84114         * MODULES.html.sh (func_all_modules): Add restrict.
84115         * modules/regex: Depend on restrict.
84116
84117 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84118
84119         * m4/restrict.m4: New file.
84120         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84121
84122 2003-08-07  Bruno Haible  <bruno@clisp.org>
84123
84124         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84125         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84126
84127 2003-08-07  Bruno Haible  <bruno@clisp.org>
84128
84129         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84130         makes the module 'getndelim2' compatible with the module 'getline'.
84131
84132 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84133
84134         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84135         byte with "\201" to avoid glitches when editing that source file
84136         with multi-gnome-terminal.
84137
84138 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84139
84140         * lib/bumpalloc.h: Remove.
84141
84142 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84143
84144         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84145         * modules/bumpalloc: Remove.
84146
84147 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84148
84149         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84150         GNU coding style.
84151
84152         Merge from coreutils.
84153         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84154         1. From glibc.
84155         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84156         from Karl Berry, implemented by Jim Meyering.
84157         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84158         from Dmitry V. Levin.
84159         Remove anachronistic cast of xrealloc.
84160         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84161         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84162         type. Otherwise, it wouldn't compile with at least /bin/cc on
84163         ymp-cray-unicos9.0.2.X.
84164         Combine two mostly-identical uses of alloca into one.
84165         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84166
84167 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84168
84169         [From Emacs.]
84170
84171         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84172         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84173         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84174         obsolete NLIST_NAME_UNION.
84175         [__GNU__]: Undef BSD and FSCALE.
84176         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84177
84178 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84179
84180         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84181         an enum type, so that it's guaranteed to promote to int.  See:
84182         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84183
84184 2003-08-03  Karl Berry  <karl@gnu.org>
84185
84186         * config/depcomp: update from automake.
84187
84188 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84191         (strerror): Don't assume that a printable int fits in 14 bytes.
84192
84193 2003-07-31  Bruno Haible  <bruno@clisp.org>
84194
84195         * modules/getpass-gnu: New file.
84196         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84197
84198 2003-07-31  Bruno Haible  <bruno@clisp.org>
84199
84200         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84201
84202 2003-07-24  Karl Berry  <karl@gnu.org>
84203
84204         * config/missing: update from automake.
84205
84206 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84207             Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84210         * lib/getline.c (getline, getdelim): Likewise.
84211         Remove _GNU_SOURCE define; now it's defined in config.h through
84212         m4/getline.m4.
84213
84214 2003-07-23  Karl Berry  <karl@gnu.org>
84215
84216         * config/config.sub: update from prep.
84217
84218 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84219
84220         * modules/xalloc (Depends-on): Add exitfail.
84221         * modules/xmemcoll: Likewise.
84222
84223 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84224
84225         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84226         over-parenthesization in macros.
84227
84228         Sync with coreutils.
84229
84230         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84231         required by C99.
84232
84233         Use `exit_failure' for xalloc and xmemcoll instead of their own
84234         private exit-failure variables.
84235         * lib/xalloc.h (xalloc_exit_failure): Remove.
84236         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84237         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84238         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84239         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84240         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84241
84242 2003-07-20  Jim Meyering  <jim@meyering.net>
84243
84244         * modules/closeout (Depends-on): Add exitfail.
84245         Suggestion from Bruno Haible.
84246
84247 2003-07-19  Karl Berry  <karl@gnu.org>
84248
84249         * config/config.sub: update from prep.
84250
84251 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84252
84253         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84254         Remove.
84255         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84256         to test that it can stand by itself.  Include "exitfail.h".
84257         Clients should set exit_failure instead.
84258         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84259
84260 2003-07-18  Bruno Haible  <bruno@clisp.org>
84261
84262         * modules/getndelim2: New file.
84263         * modules/getline: Share files with module getndelim2.
84264         * modules/getnline: Depend on getndelim2 instead of sharing files with
84265         it. Add getnline.c to lib_SOURCES.
84266         * MODULES.html.sh (func_all_modules): Add getndelim2.
84267
84268 2003-07-18  Bruno Haible  <bruno@clisp.org>
84269
84270         * m4/getndelim2.m4: New file.
84271         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84272         invoke gl_PREREQ_GETNDELIM2.
84273         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84274         gl_PREREQ_GETNDELIM2.
84275         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84276         gl_GETNDELIM2.
84277
84278 2003-07-18  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/getndelim2.h: New file.
84281         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84282         getndelim2.h.
84283         (getndelim2): Make non-static. Change return type to ssize_t.
84284         * lib/getline.h: Change argument names.
84285         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84286         * lib/getnline.c: Include getndelim2.h.
84287
84288 2003-07-18  Andreas Schwab  <schwab@suse.de>
84289
84290         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84291
84292 2003-07-17  Karl Berry  <karl@gnu.org>
84293
84294         * config/config.sub: update from prep.
84295
84296 2003-07-17  Bruno Haible  <bruno@clisp.org>
84297
84298         * modules/getnline: New file.
84299         * modules/getline: Add lib/getndelim2.c to source file list.
84300         * MODULES.html.sh (func_all_modules): Add getnline.
84301
84302 2003-07-17  Bruno Haible  <bruno@clisp.org>
84303
84304         * m4/getnline.m4: New file.
84305
84306 2003-07-17  Bruno Haible  <bruno@clisp.org>
84307
84308         * m4/Makefile.am.in: Remove file.
84309         * m4/Makefile.am: Remove file.
84310         * m4/Makefile.in: Remove file.
84311
84312 2003-07-17  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/getnline.h: New file.
84315         * lib/getnline.c: New file.
84316         * lib/getndelim2.c: New file, extracted from getline.c.
84317         (getndelim2): Renamed from getdelim2, with added nmax argument.
84318         * lib/getline.c: Include getndelim2.c.
84319         (getdelim2): Moved out to getndelim2.c.
84320         (getline, getdelim): Update.
84321
84322 2003-07-17  Bruno Haible  <bruno@clisp.org>
84323
84324         * lib/Makefile.am: Remove file.
84325         * lib/Makefile.in: Remove file.
84326
84327 2003-07-17  Bruno Haible  <bruno@clisp.org>
84328
84329         * configure.in: Remove file.
84330         * Makefile.in: Remove file.
84331
84332 2003-07-17  Bruno Haible  <bruno@clisp.org>
84333
84334         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84335
84336 2003-07-16  Karl Berry  <karl@gnu.org>
84337
84338         * config/srclist-update: was running fixlicense twice, which caused
84339                 texinfo.tex to be nullified for some reason.  Simplify,
84340                 $gplsrc is no longer needed as far as I can see?
84341
84342 2003-07-16  Jim Meyering  <jim@meyering.net>
84343
84344         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84345
84346 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84347
84348         * config/srclist.txt: Get the following files from gettext-runtime/intl
84349         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84350         ref-del.sin.  From Bruno Haible.
84351         * config/srclist-update (fixfile): Change grep pattern again, since the
84352         previous fix didn't work (there was another trailing $).  Use
84353         '[$]' to escape the $s.
84354
84355 2003-07-15  Karl Berry  <karl@gnu.org>
84356
84357         * lib/vasnprintf.c: update from gettext.
84358
84359 2003-07-15  Karl Berry  <karl@gnu.org>
84360
84361         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84362         gets expanded when surrounded by '$'.
84363
84364 2003-07-15  Jim Meyering  <jim@meyering.net>
84365
84366         * modules/save-cwd: Don't depend on error.  From Derek Price.
84367
84368 2003-07-15  Jim Meyering  <jim@meyering.net>
84369
84370         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84371
84372 2003-07-14  Simon Josefsson  <jas@extundo.com>
84373
84374         * modules/mempcpy: New file.
84375         * MODULES.html.sh (func_all_modules): Add mempcpy.
84376
84377 2003-07-14  Simon Josefsson  <jas@extundo.com>
84378
84379         * m4/mempcpy.m4: New file.
84380
84381 2003-07-14  Simon Josefsson  <jas@extundo.com>
84382
84383         * lib/mempcpy.h: New file.
84384         * lib/mempcpy.c: New file.
84385
84386 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84387
84388         * modules/getdate, modules/posixtm: Depend on mktime.
84389
84390 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84391
84392         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84393         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84394         unicodeio.c, unicodeio.h, unlocked-io.h:
84395         Switch from LGPL to GPL.
84396
84397 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84398
84399         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84400         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84401         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84402         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84403         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84404         updated automatically by ../config/srclist-update.  This changes
84405         their license from LPGL to GPL.
84406
84407 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84408
84409         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84410         assumed to refer to the root of the most recent stable gettext version.
84411         * config/srclistvars.sh: Add defaults for eggert.
84412         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84413         Match "This program" as well as "The program".  This is needed
84414         for gettext.
84415
84416 2003-07-14  Jim Meyering  <jim@meyering.net>
84417
84418         Don't emit diagnostics.  Let callers do that.
84419         * lib/save-cwd.c: Don't include "error.h".
84420         (save_cwd): Don't call error.  Ensure that errno is valid
84421         when returning nonzero.
84422
84423         * lib/save-cwd.h (restore_cwd): Update prototype.
84424         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84425         Simplify.  Don't call error upon failure.  Let callers do that.
84426         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84427         when auditing is enabled.  But don't bother updating the #if.
84428
84429 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84430
84431         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84432         it breaks C++ compilation.
84433         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84434
84435 2003-07-10  Simon Josefsson  <jas@extundo.com>
84436
84437         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84438
84439 2003-07-10  Jim Meyering  <jim@meyering.net>
84440
84441         * m4/clock_time.m4: Remove trailing blank.
84442         * m4/intmax_t.m4: Likewise.
84443
84444 2003-07-10  Jim Meyering  <jim@meyering.net>
84445
84446         * lib/vasnprintf.c: Remove trailing blanks.
84447         Make cpp indentation consistent.
84448
84449 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84450
84451         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84452         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84453         Switch from LGPL to GPL.
84454
84455 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84456
84457         * config/srclist.txt: Sort sublists.  Add
84458         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84459         that differ from gnulib for one reason or another; we'd like this list
84460         to be smaller but for now let's document what we have.
84461
84462 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84463
84464         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84465         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84466         and sweeter "eval x=$x".
84467         * config/srclist.txt: Get lib/argp* from glibc.
84468
84469 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84470
84471         * lib/mktime.c: Fix some boundary cases and remove need for floating
84472         point.
84473
84474         Issue a compile-time diagnostic if time_t is floating point, or if
84475         two's complement arithmetic is not in effect, or if arithmetic
84476         right shift does not propagate the sign.  These assumptions were
84477         all in the original code but they weren't checked.
84478
84479         (TIME_T_MIDPOINT, verify): New macros.
84480         (__isleap): Remove; it has integer overflow problems.
84481         (leapyear): New function, without those problems.
84482         (ydhms_tm_diff): Remove; splitting into two parts.
84483         (ydhms_diff): New function, containing the arithmetic part of
84484         the old ydhms_tm_diff function.  Issue a compile-time
84485         diagnostic if we are not using C99 integer division.
84486         Avoid casts when possible.
84487         (guess_time_tm): New function, containing the checking part of
84488         the old ydhms_tm_diff function.  Return the new value, rather than
84489         the difference between it and the old.  Accept a new argument T
84490         so that *T specifies the old value.  Check for overflow in the result.
84491
84492         (__mktime_internal): Use a time_t offset, not a long int offset.
84493         This undoes the 2003-06-04 change, which is no longer needed now
84494         that we have better overflow checking.
84495         (localtime_offset): Likewise.
84496
84497         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84498         and long are 64-bit but int is only 32-bit.
84499         (ydhms_diff): Use long int to store year1 and yday1.
84500         Issue a compile-time diagnostic if long int is not wide enough.
84501
84502         (__mktime_internal): Use long int to store adjusted year and yday.
84503         Use plain C rather than preprocessor commands, if that doesn't
84504         affect efficiency.
84505         Check for overflow (and try to repair) after each probe
84506         rather than checking only at the very end.  This avoids some bugs
84507         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84508         does not equal GMT offset at maximum time).
84509         Use integer to check for overflow rather than floating point; this
84510         is more portable to non-IEEE hosts, and is a tad faster.
84511         When we detect that we are oscillating between two values,
84512         don't check whether tm_isdst has the requested value, since
84513         we already know the answer.  When tm_isdst has the wrong value,
84514         use a different heuristic to find the right one, based on the
84515         extreme values actually observed in practice in tz2003a,
84516         rather than the (overly optimistic) "previous 3 calendar quarters".
84517
84518         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84519         "T const" to accommodate glibc style.
84520         (check_result): Use less-confusing report format.  "long" -> "long int.
84521         (main): Likewise.
84522         Don't loop if the iteration overflows time_t.
84523         Allow a negative step in the iteration.
84524
84525 2003-07-06  Karl Berry  <karl@gnu.org>
84526
84527         * config/depcomp: update from automake.
84528         * config/config.sub: update from prep.
84529
84530 2003-07-03  Karl Berry  <karl@gnu.org>
84531
84532         * config/config.guess: update from prep.
84533
84534 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84535
84536         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84537         xreadlink.c now includes it unconditionally.
84538
84539 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84540
84541         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84542         having it depend on HAVE_SYS_TYPES_H.
84543
84544 2003-07-01  Bruno Haible  <bruno@clisp.org>
84545
84546         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84547         <sys/types.h> should be sufficient.
84548         Reported by Paul Eggert.
84549
84550 2003-06-26  Karl Berry  <karl@gnu.org>
84551
84552         * config/depcomp: update from automake.
84553
84554 2003-06-26  Bruno Haible  <bruno@clisp.org>
84555
84556         * modules/human: Depend on module stdbool.
84557
84558 2003-06-25  Bruno Haible  <bruno@clisp.org>
84559
84560         * modules/readlink: New file.
84561         * modules/xreadlink: Depend on it.
84562         * MODULES.html.sh (func_all_modules): Add readlink.
84563
84564 2003-06-25  Bruno Haible  <bruno@clisp.org>
84565
84566         * m4/readlink.m4: New file.
84567
84568 2003-06-25  Bruno Haible  <bruno@clisp.org>
84569
84570         * lib/readlink.c: New file.
84571
84572 2003-06-22  Karl Berry  <karl@gnu.org>
84573
84574         * config/srclist.txt: update mkinstalldirs from automake.
84575         * config/mkinstalldirs: update.
84576
84577 2003-06-22  Bruno Haible  <bruno@clisp.org>
84578
84579         Portability to mingw32.
84580         * m4/ssize_t.m4: New file, from GNU gettext.
84581         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84582         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84583
84584 2003-06-22  Bruno Haible  <bruno@clisp.org>
84585
84586         * modules/safe-read: Add m4/ssize_t.m4.
84587         * modules/xreadlink: Add m4/ssize_t.m4.
84588
84589 2003-06-20  Bruno Haible  <bruno@clisp.org>
84590
84591         Assume C89, so PARAMS isn't needed.
84592         * lib/unicodeio.h (PARAMS): Remove.
84593         * lib/unicodeio.c: Don't use PARAMS.
84594
84595 2003-06-18  Karl Berry  <karl@gnu.org>
84596
84597         * config/config.{guess,sub}: update from prep.
84598
84599 2003-06-18  Jim Meyering  <jim@meyering.net>
84600
84601         Merge changes from coreutils.
84602         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84603         Remove explicit declarations of xmalloc and realloc.
84604         Include xalloc.h.
84605         (read_utmp): Remove anachronistic cast of xmalloc.
84606
84607 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84608
84609         Assume C89, so PARAMS isn't needed.
84610         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84611         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84612         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84613         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84614         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84615         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84616         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84617         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84618         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84619         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84620         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84621         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84622         no longer needed. Anyway, config.h should always be included before any
84623         other file.
84624
84625 2003-06-11  Simon Josefsson  <jas@extundo.com>
84626
84627         * modules/sysexits: New file.
84628         * MODULES.html.sh (func_all_modules): Add sysexits.
84629
84630 2003-06-11  Simon Josefsson  <jas@extundo.com>
84631
84632         * lib/sysexit_.h: New file.
84633
84634 2003-06-11  Derek Price  <derek@ximbiot.com>
84635
84636         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84637         necessary.
84638
84639 2003-06-11  Bruno Haible  <bruno@clisp.org>
84640
84641         * m4/sysexits.m4: New file.
84642
84643 2003-06-10  Simon Josefsson  <jas@extundo.com>
84644
84645         * lib/argp.h: New file, from glibc.
84646         * lib/argp-ba.c: New file, from glibc.
84647         * lib/argp-eexst.c: New file, from glibc.
84648         * lib/argp-fmtstream.c: New file, from glibc.
84649         * lib/argp-fmtstream.h: New file, from glibc.
84650         * lib/argp-fs-xinl.c: New file, from glibc.
84651         * lib/argp-help.c: New file, from glibc.
84652         * lib/argp-namefrob.h: New file, from glibc.
84653         * lib/argp-parse.c: New file, from glibc.
84654         * lib/argp-pv.c: New file, from glibc.
84655         * lib/argp-pvh.c: New file, from glibc.
84656         * lib/argp-xinl.c: New file, from glibc.
84657
84658 2003-06-10  Simon Josefsson  <jas@extundo.com>
84659
84660         * modules/strchrnul: New file.
84661
84662 2003-06-10  Simon Josefsson  <jas@extundo.com>
84663
84664         * modules/argp: New file.
84665
84666 2003-06-10  Simon Josefsson  <jas@extundo.com>
84667
84668         * m4/strchrnul.m4: New file.
84669
84670 2003-06-10  Simon Josefsson  <jas@extundo.com>
84671
84672         * lib/strchrnul.h: New file.
84673         * lib/strchrnul.c: New file.
84674
84675 2003-06-10  Bruno Haible  <bruno@clisp.org>
84676
84677         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84678
84679 2003-06-07  Karl Berry  <karl@gnu.org>
84680
84681         * config/config.{guess,sub}: update from prep.
84682
84683 2003-06-07  Jim Meyering  <jim@meyering.net>
84684
84685         * modules/strtod: Use $(...) notation, not @...@ for
84686         AC_REPLACE'd variables.
84687         * modules/localcharset: Likewise.
84688
84689 2003-06-07  Jim Meyering  <jim@meyering.net>
84690
84691         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84692         in place of my name in the copyright comment.
84693         Remove definition and uses of __P.
84694
84695         From coreutils.
84696         * lib/stat.c: Don't declare xmalloc explicitly.
84697         Instead, include "xalloc.h".
84698         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84699         xrealloc, and xcalloc return values.
84700         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84701         Improve comment.
84702         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84703
84704 2003-06-07  Bruno Haible  <bruno@clisp.org>
84705
84706         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84707         avoid AC_CONFIG_LINKS.
84708         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84709         fnmatch.h, to avoid AC_CONFIG_LINKS.
84710         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84711
84712 2003-06-07  Bruno Haible  <bruno@clisp.org>
84713
84714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84715         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84716         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84717         directory.
84718         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84719         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84720         directory.
84721
84722 2003-06-06  Jim Meyering  <jim@meyering.net>
84723
84724         Merge from coreutils.
84725         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84726         Consolidate declarations and initializations of *_base* locals.
84727
84728         Merge from coreutils.
84729         This avoids a core dump on systems without GNU putenv,
84730         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84731         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84732         (unsetenv): New static function, from GNU libc.
84733         (rpl_putenv): Use it.
84734
84735         * lib/modechange.c: Remove trailing blanks.
84736
84737         Merge from coreutils.
84738         * lib/fsusage.c: Remove declaration of statfs.
84739         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84740
84741         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84742
84743 2003-06-06  Jim Meyering  <jim@meyering.net>
84744
84745         * lib/stdbool_.h: Renamed from stdbool.h.in.
84746
84747 2003-06-06  Jim Meyering  <jim@meyering.net>
84748             Bruno Haible  <bruno@clisp.org>
84749
84750         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84751         Adjust Makefile.am snippet not to redirect directly to target.
84752         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84753
84754 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84755
84756         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84757         mismatch, look in future quarters as well as past.  This fixes a
84758         bug when processing fall-backwards gaps immediately after a long
84759         period of daylight-saving time.
84760
84761         * lib/mktime.c: Assume freestanding C89 or better.
84762         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84763         (__P): Remove; not used.
84764         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84765         (mktime, not_equal_tm, print_tm, check_result,
84766         main): Use prototypes.  Use const * where appropriate.
84767         (main): Fix typo in testing code that uncovered by above changes.
84768         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84769
84770 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84771
84772         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84773         locale.h, localeconv.  This merges changes from coreutils.
84774
84775         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84776         It can be removed after the next Autoconf is released.
84777         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84778         needed.
84779
84780 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84781
84782         * lib/mktime.c: Fix Debian bug 177940
84783         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84784         (localtime_offset): Now long int, not time_t, because we want it
84785         to be guaranteed to be signed.  All uses changed.
84786         (__mktime_internal): If overflow would occur when adding offset,
84787         don't add it.
84788
84789         Merge 'human' changes from coreutils.  Rewrite to support
84790         locale-specific notations like thousands separators.
84791         * lib/human.c: Simplify authorship notice.
84792         Include human.h immediately after config.h.
84793         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84794         <limits.h>: Do not include, since human.h does.
84795         (SIZE_MAX, UINTMAX_MAX): New macros.
84796         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84797         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84798         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84799         (power_letter): Renamed from suffixes.
84800         (generate_suffix_backwards): Remove.
84801         (adjust_value): Now takes int style (because of human.h changes)
84802         and long double value (for greater precision on some platforms).
84803         (group_number): New function.
84804         (human_readable): Use it.  Use integer options, not enum.
84805         Put the options before the sizes in the arg list.
84806         Support all the new options.
84807         The old human_readable function has been removed;
84808         use inttostr.h instead.
84809         (human_readable, default_block_size, humblock):
84810         Use uintmax_t, not int, for block sizes.
84811         (human_readable_inexact, block_size_types): Remove.
84812         (block_size_opts): New constant.
84813         (human_options): Renamed from human_block_size, with new signature
84814         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84815         * lib/human.h: Add copyright and authorship notice.
84816         Include <limits.h> and <stdbool.h> unconditionally.
84817         (PARAMS): Remove.  All uses removed.
84818         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84819         (enum human_inexact_style): Remove tag; now a nameless enum.
84820         (human_floor, human_ceiling, human_round_to_even): Now have
84821         values 2, 0, 1 rather than -1, 1, 0.
84822         (human_group_digits, human_suppress_point_zero, human_autoscale,
84823         human_base_1024, human_SI, human_B): New constants.
84824         (human_readable_inexact, human_block_size): Remove.
84825         (human_readable): Size args are now uintmax_t, not int.
84826         (human_options): New decl.
84827
84828         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84829         unnecessary now that we assume C89 or better.  This change
84830         imported from coreutils.
84831
84832         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84833         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84834         in the 2003-05-30 sync from glibc.
84835
84836         .h files should stand alone, but we shouldn't include <sys/types.h>
84837         if we can get away with just <stddef.h>.
84838
84839         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84840         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84841         rather than <sys/types.h>, as we merely need size_t.
84842         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84843         to get size_t.
84844         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84845         Include <stdio.h>, to get FILE.
84846         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84847         memcasecmp.h has included <stddef.h> and all we need is size_t.
84848         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84849         our interface, instead of including <sys/types.h>
84850
84851 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84852
84853         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84854         now, as glibc mktime is buggy on non-glibc systems.
84855
84856 2003-06-03  Karl Berry  <karl@gnu.org>
84857
84858         * config/config.sub: update from prep.
84859
84860 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84861
84862         [from coreutils]
84863         Fix some minor time-related bugs with POSIX time arguments.
84864         Some valid time stamps were being rejected (notably -1, and
84865         time stamps before 1900 on 64-bit hosts).  And some invalid
84866         time stamps were being accepted, e.g. September 31.
84867
84868         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84869         that we can return (time_t) -1 successfully.
84870         * lib/posixtm.c: Likewise.
84871         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84872         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84873         (t): Remove static var.
84874         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84875         of static var.  All uses changed.
84876         (year): Do not reject years before 1900; they can occur with
84877         64-bit time_t.
84878         (posix_time_parse): Do not check for out-of-range components;
84879         that is now the caller's responsibility, since our checks were
84880         only approximations.
84881         (posixtime): Use mktime to check for out-of-range components,
84882         since it knows them exactly.
84883         If mktime returns (time_t) -1, check whether an error actually occurred
84884         by invoking localtime on -1.
84885         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84886         posixtime failures better.
84887         Improve the test data (in comments only).
84888
84889 2003-06-02  Karl Berry  <karl@gnu.org>
84890
84891         * config/mkinstalldirs (version): new variable.
84892         (--version): new option.
84893         (usage): improve message.
84894
84895 2003-05-30  Karl Berry  <karl@gnu.org>
84896
84897         * lib/mktime.c: update from libc.
84898
84899 2003-05-30  Bruno Haible  <bruno@clisp.org>
84900
84901         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84902         * config/config.rpath: Upgrade to gettext-0.12.1.
84903
84904 2003-05-30  Bruno Haible  <bruno@clisp.org>
84905
84906         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84907         * m4/nls.m4: New file, from gettext-0.12.1.
84908         * m4/po.m4: New file, from gettext-0.12.1.
84909         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84910
84911 2003-05-30  Bruno Haible  <bruno@clisp.org>
84912
84913         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84914         * lib/localcharset.h: Likewise.
84915         * lib/localcharset.c: Likewise.
84916
84917 2003-05-29  Karl Berry  <karl@gnu.org>
84918
84919         * config/config.rpath: update from gettext.
84920
84921 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84922
84923         Assume the headers required for C89 freestanding compilers.
84924         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84925         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84926         * m4/human.m4 (gl_HUMAN): Likewise.
84927         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84928         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84929         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84930         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84931         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84932         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84933
84934 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84935
84936         Assume the headers required for C89 freestanding compilers.
84937         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84938         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84939         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84940         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84941         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84942         define, since <limits.h> is guaranteed to do that.
84943         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84944         * lib/exclude.c: Include <stdbool.h> unconditionally.
84945         * lib/tempname.c: Include <stddef.h> unconditionally.
84946         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84947         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84948         <stddef.h> does that.
84949         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84950         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84951         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84952         needed.
84953         * lib/xstrtol.c: Likewise.
84954         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84955         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84956
84957         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84958         warnings on some platforms.
84959
84960         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84961         arbitrarily.
84962
84963 2003-05-26  Jim Meyering  <jim@meyering.net>
84964
84965         Merge in a change from coreutils:
84966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84967         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84968         that condition, rather than `-1' which is slightly misleading.
84969         Change the name of the cache variable to have the gl_ prefix.
84970         Prompted by a patch from Richard Dawe for DJGPP.
84971
84972 2003-05-24  Karl Berry  <karl@gnu.org>
84973
84974         * config/config.guess: update from prep.
84975
84976 2003-05-22  Karl Berry  <karl@gnu.org>
84977
84978         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84979
84980 2003-05-20  Karl Berry  <karl@gnu.org>
84981
84982         * config/config.guess: update from prep.
84983
84984 2003-05-18  Karl Berry  <karl@gnu.org>
84985
84986         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84987         might actually be set by the user.
84988
84989         * config/depcomp, install-sh, mdate-sh: update from automake.
84990
84991 2003-05-17  Bruno Haible  <bruno@clisp.org>
84992
84993         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84994         invalid expansion for AC_EGREP_CPP.
84995         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84996         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84997         Suggested by Akim Demaille <akim@epita.fr> in
84998         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84999
85000 2003-05-12  Jim Meyering  <jim@meyering.net>
85001
85002         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85003         the space-padded-by-default conversion specifiers, %e, %k, %l.
85004
85005 2003-05-12  Bruno Haible  <bruno@clisp.org>
85006
85007         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85008         the string is longer than 4 KB.
85009
85010 2003-05-11  Karl Berry  <karl@gnu.org>
85011
85012         * config/config.{guess,sub}: update from prep.
85013
85014 2003-05-09  Bruno Haible  <bruno@clisp.org>
85015
85016         * modules/error: Add m4/strerror_r.m4 to file list.
85017
85018 2003-05-03  Bruno Haible  <bruno@clisp.org>
85019
85020         Upgrade to Unicode-4.0.
85021         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85022         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85023         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85024         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85025         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85026         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85027         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85028         Change width of U+E0100..U+E01EF from 1 to 0.
85029
85030 2003-04-25  Jim Meyering  <jim@meyering.net>
85031
85032         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85033         of type size_t, not int.
85034
85035 2003-04-25  Bruno Haible  <bruno@clisp.org>
85036
85037         * lib/copy-file.c: Include <stddef.h>, for size_t.
85038
85039 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85040
85041         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85042         code which expansion is under static control.  Patch imported from
85043         Akim Demaille's patch to Bison; see
85044         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85045
85046 2003-04-14  Bruno Haible  <bruno@clisp.org>
85047
85048         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85049
85050 2003-04-11  Jim Meyering  <jim@meyering.net>
85051
85052         Merge changes from Coreutils.
85053
85054         2003-03-22  Jim Meyering  <jim@meyering.net>
85055
85056         * lib/strftime.c (widen): Cast alloca return value to proper type.
85057
85058         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85059
85060         From GNU libc.
85061         * lib/strftime.c (my_strftime): Handle very large width
85062         specifications for numeric values correctly.  Improve checks for
85063         overflow.
85064
85065         2003-01-19  Jim Meyering  <jim@meyering.net>
85066
85067         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85068         definitions.
85069         (nl_get_alt_digit) [! defined my_strftime]: Define.
85070         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85071         _nl_get_alt_digit and _nl_get_walt_digit.
85072
85073         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85074         libc. These changes have no effect outside of _LIBC.
85075
85076 2003-04-10  Bruno Haible  <bruno@clisp.org>
85077
85078         * modules/findprog: New file.
85079         * MODULES.html.sh (func_all_modules): Add it.
85080
85081 2003-04-10  Bruno Haible  <bruno@clisp.org>
85082
85083         * m4/findprog.m4: New file.
85084         * m4/eaccess.m4: New file.
85085
85086 2003-04-10  Bruno Haible  <bruno@clisp.org>
85087
85088         * lib/findprog.h: New file, from GNU gettext.
85089         * lib/findprog.c: New file, from GNU gettext.
85090
85091 2003-04-05  Jim Meyering  <jim@meyering.net>
85092
85093         Merge changes from Coreutils.
85094
85095         * lib/exclude.h (PARAMS): Remove definition and uses.
85096         * lib/exclude.c: Remove uses of `PARAMS'.
85097
85098         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85099         Add test-cases for DOS filenames. Declare program_name.
85100         (main): Set up program_name.  Patch by Rich Dawe.
85101
85102         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85103         error from mntctl.
85104         Use mntctl's return value to drive the entry-processing loop, since
85105         we can't rely on the value of the vmt_length member in the last
85106         entry.  On some systems doing so could result in exhausting
85107         virtual memory.  Based in part on a patch from Mike Jetzer.
85108
85109 2003-04-04  Bruno Haible  <bruno@clisp.org>
85110
85111         * modules/linebreak: New file.
85112         * MODULES.html.sh (func_all_modules): Add it.
85113
85114 2003-04-04  Bruno Haible  <bruno@clisp.org>
85115
85116         * m4/linebreak.m4: New file.
85117
85118 2003-04-04  Bruno Haible  <bruno@clisp.org>
85119
85120         * lib/linebreak.h: New file, from GNU gettext.
85121         * lib/linebreak.c: New file, from GNU gettext with slight
85122         modifications.
85123         * lib/lbrkprop.h: New file, from GNU gettext.
85124
85125 2003-04-03  Bruno Haible  <bruno@clisp.org>
85126
85127         * modules/utf8-ucs4: New file.
85128         * modules/utf16-ucs4: New file.
85129         * modules/ucs4-utf8: New file.
85130         * modules/ucs4-utf16: New file.
85131         * MODULES.html.sh (func_all_modules): Add them.
85132
85133 2003-04-03  Bruno Haible  <bruno@clisp.org>
85134
85135         * m4/utf-ucs4.m4: New file.
85136         * m4/ucs4-utf.m4: New file.
85137
85138 2003-04-03  Bruno Haible  <bruno@clisp.org>
85139
85140         * lib/utf8-ucs4.h: New file, from GNU gettext.
85141         * lib/utf16-ucs4.h: New file, from GNU gettext.
85142         * lib/ucs4-utf8.h: New file, from GNU gettext.
85143         * lib/ucs4-utf16.h: New file, from GNU gettext.
85144
85145 2003-04-02  Bruno Haible  <bruno@clisp.org>
85146
85147         * modules/binary-io: New file.
85148         * MODULES.html.sh (func_all_modules): Add it.
85149
85150 2003-04-02  Bruno Haible  <bruno@clisp.org>
85151
85152         * lib/binary-io.h: New file, from GNU gettext.
85153
85154 2003-04-01  Bruno Haible  <bruno@clisp.org>
85155
85156         * modules/pathname: New file.
85157         * MODULES.html.sh (func_all_modules): Add it.
85158
85159 2003-04-01  Bruno Haible  <bruno@clisp.org>
85160
85161         * lib/pathname.h: New file, from GNU gettext.
85162         * lib/concatpath.c: New file, from GNU gettext.
85163
85164 2003-03-30  Bruno Haible  <bruno@clisp.org>
85165
85166         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85167
85168 2003-03-30  Bruno Haible  <bruno@clisp.org>
85169
85170         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85171         function chown() doesn't exist.
85172
85173 2003-03-28  Bruno Haible  <bruno@clisp.org>
85174
85175         * modules/copy-file: New file.
85176         * MODULES.html.sh (func_all_modules): Add it.
85177
85178 2003-03-28  Bruno Haible  <bruno@clisp.org>
85179
85180         * m4/copy-file.m4: New file.
85181
85182 2003-03-28  Bruno Haible  <bruno@clisp.org>
85183
85184         * lib/copy-file.h: New file, from GNU gettext.
85185         * lib/copy-file.c: New file, from GNU gettext.
85186
85187 2003-03-18  Jim Meyering  <jim@meyering.net>
85188
85189         * lib/quote.c (quote_n): Fix typo in comment.
85190
85191 2003-03-18  Bruno Haible  <bruno@clisp.org>
85192
85193         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85194         checking.
85195         * m4/onceonly_2_57.m4: Likewise.
85196
85197 2003-03-17  Bruno Haible  <bruno@clisp.org>
85198
85199         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85200         (m4_quote): Remove macro.
85201         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85202
85203 2003-03-14  Jim Meyering  <jim@meyering.net>
85204
85205         Merge changes from Coreutils.
85206         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85207         to be const, in order to avoid warnings.
85208         (obstack_room): Likewise.
85209         (obstack_empty_p): Likewise.
85210
85211 2003-03-14  Bruno Haible  <bruno@clisp.org>
85212
85213         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85214         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85215
85216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85217
85218         Merge changes from Bison.
85219         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85220         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85221         when compiling Bison 1.875's `bitset bset = obstack_alloc
85222         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85223         * lib/hash.c: Include <stdbool.h> unconditionally.
85224
85225 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85226
85227         * m4/onceonly.m4 (m4_quote): New macro.
85228         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85229         Quote AC_FOREACH variable-expansions properly.
85230
85231 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85232
85233         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85234
85235 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85236
85237         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85238         Reported by Bruce Becker; see:
85239         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85240
85241 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85242             Bruno Haible  <bruno@clisp.org>
85243
85244         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85245         Reported by John Hughes, see
85246         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85247
85248 2003-02-20  Bruno Haible  <bruno@clisp.org>
85249
85250         * MODULES.html.sh (func_all_modules): Add poll.
85251
85252 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85253
85254         * modules/poll: New file.
85255
85256 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85257
85258         * lib/poll_.h: New file.
85259         * lib/poll.c: New file.
85260
85261 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85262
85263         * m4/poll.m4: New file.
85264
85265 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85266
85267         * modules/mathl: New file.
85268
85269 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85270
85271         * lib/mathl.h: New file.
85272         * lib/acosl.c: New file.
85273         * lib/asinl.c: New file.
85274         * lib/atanl.c: New file.
85275         * lib/ceill.c: New file.
85276         * lib/cosl.c: New file.
85277         * lib/expl.c: New file.
85278         * lib/floorl.c: New file.
85279         * lib/frexpl.c: New file.
85280         * lib/ldexpl.c: New file.
85281         * lib/logl.c: New file.
85282         * lib/sincosl.c: New file.
85283         * lib/sinl.c: New file.
85284         * lib/sqrtl.c: New file.
85285         * lib/tanl.c: New file.
85286         * lib/trigl.c: New file.
85287         * lib/trigl.h: New file.
85288
85289 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85290
85291         * m4/mathl.m4: New file.
85292
85293 2003-02-18  Bruno Haible  <bruno@clisp.org>
85294
85295         * MODULES.html.sh (func_all_modules): Add mathl.
85296
85297 2003-02-17  Bruno Haible  <bruno@clisp.org>
85298
85299         * modules/mkdtemp: New module.
85300         * MODULES.html.sh (func_all_modules): Add it.
85301
85302 2003-02-17  Bruno Haible  <bruno@clisp.org>
85303
85304         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85305
85306 2003-02-17  Bruno Haible  <bruno@clisp.org>
85307
85308         * lib/mkdtemp.h: New file, from GNU gettext.
85309         * lib/mkdtemp.c: New file, from GNU gettext.
85310
85311 2003-02-02  Jim Meyering  <jim@meyering.net>
85312
85313         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85314         e.g. glibc-2.2.93.
85315
85316 2003-01-31  Bruno Haible  <bruno@clisp.org>
85317
85318         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85319         'rpl_rename'.
85320         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85321         'rpl_strnlen'.
85322         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85323         'rpl_strtod'.
85324         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85325         'rpl_utime'.
85326
85327 2003-01-31  Bruno Haible  <bruno@clisp.org>
85328
85329         * lib/rename.c: #undef rename before defining rpl_rename.
85330         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85331
85332 2003-01-30  Bruno Haible  <bruno@clisp.org>
85333
85334         * modules/vasnprintf, modules/vasprintf: New modules.
85335         * MODULES.html.sh (func_all_modules): Add them.
85336
85337 2003-01-30  Bruno Haible  <bruno@clisp.org>
85338
85339         * m4/signed.m4: New file, from GNU gettext.
85340         * m4/longdouble.m4: New file, from GNU gettext.
85341         * m4/wchar_t.m4: New file, from GNU gettext.
85342         * m4/wint_t.m4: New file, from GNU gettext.
85343         * m4/vasnprintf.m4: New file.
85344         * m4/vasprintf.m4: New file.
85345
85346 2003-01-30  Bruno Haible  <bruno@clisp.org>
85347
85348         * lib/printf-args.h: New file, from GNU gettext.
85349         * lib/printf-args.c: New file, from GNU gettext.
85350         * lib/printf-parse.h: New file, from GNU gettext.
85351         * lib/printf-parse.c: New file, from GNU gettext.
85352         * lib/vasnprintf.h: New file, from GNU gettext.
85353         * lib/vasnprintf.c: New file, from GNU gettext.
85354         * lib/asnprintf.c: New file, from GNU gettext.
85355         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85356         * lib/vasprintf.c: New file, from GNU gettext.
85357         * lib/asprintf.c: New file, from GNU gettext.
85358
85359 2003-01-29  Bruno Haible  <bruno@clisp.org>
85360
85361         * modules/stpncpy: New module.
85362         * MODULES.html.sh (func_all_modules): Add it.
85363
85364 2003-01-29  Bruno Haible  <bruno@clisp.org>
85365
85366         * m4/stpncpy.m4: New file.
85367
85368 2003-01-29  Bruno Haible  <bruno@clisp.org>
85369
85370         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85371         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85372
85373 2003-01-28  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/c-ctype: New module.
85376         * MODULES.html.sh (func_all_modules): Add it.
85377
85378 2003-01-28  Bruno Haible  <bruno@clisp.org>
85379
85380         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85381         Paul Eggert.
85382         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85383         Paul Eggert.
85384
85385 2003-01-27  Bruno Haible  <bruno@clisp.org>
85386
85387         * modules/xsetenv: New module.
85388         * MODULES.html.sh (func_all_modules): Add it.
85389
85390 2003-01-27  Bruno Haible  <bruno@clisp.org>
85391
85392         * lib/xsetenv.h: New file, from GNU gettext.
85393         * lib/xsetenv.c: New file, from GNU gettext.
85394
85395 2003-01-23  Jim Meyering  <jim@meyering.net>
85396
85397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85398         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85399
85400 2003-01-23  Bruno Haible  <bruno@clisp.org>
85401
85402         * modules/minmax: New module.
85403         * MODULES.html.sh (func_all_modules): Add it.
85404
85405 2003-01-23  Bruno Haible  <bruno@clisp.org>
85406
85407         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85408         Eggert.
85409
85410 2003-01-22  Bruno Haible  <bruno@clisp.org>
85411
85412         * modules/exit: New module.
85413         * MODULES.html.sh (func_all_modules): Add it.
85414
85415 2003-01-22  Bruno Haible  <bruno@clisp.org>
85416
85417         * lib/exit.h: New file, from GNU gettext.
85418
85419 2003-01-19  Bruno Haible  <bruno@clisp.org>
85420
85421         * gnulib-tool: Recognize option --extract-maintainer.
85422         (func_get_maintainer): New function.
85423         * modules/*: Add Maintainer entry.
85424
85425 2003-01-16  Jim Meyering  <jim@meyering.net>
85426
85427         * m4/regex.m4: The `regex' struct is both input and output.
85428         Initialize it before each use.  Patch by Tim Waugh.
85429
85430 2003-01-16  Bruno Haible  <bruno@clisp.org>
85431
85432         * MODULES.html.sh: Add a table of contents. Add the module name as
85433         leftmost column. Add hyperlinks.
85434
85435 2003-01-15  Bruno Haible  <bruno@clisp.org>
85436
85437         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85438
85439 2003-01-15  Bruno Haible  <bruno@clisp.org>
85440
85441         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85442         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85443         suffix.
85444
85445 2003-01-15  Bruno Haible  <bruno@clisp.org>
85446
85447         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85448
85449 2003-01-15  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85452         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85453
85454 2003-01-14  Jim Meyering  <jim@meyering.net>
85455
85456         * lib/same.c (same_name): Tweak a comment.
85457
85458 2003-01-14  Bruno Haible  <bruno@clisp.org>
85459
85460         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85461         when a string comparison is sufficient.
85462
85463 2003-01-14  Bruno Haible  <bruno@clisp.org>
85464
85465         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85466         'unsigned int'.
85467
85468 2003-01-14  Bruno Haible  <bruno@clisp.org>
85469
85470         * lib/hash-pjw.c: Add comment about low quality of this function.
85471
85472 2003-01-13  Bruno Haible  <bruno@clisp.org>
85473
85474         * modules/stpcpy: Distribute lib/stpcpy.h.
85475         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85476
85477 2003-01-13  Bruno Haible  <bruno@clisp.org>
85478
85479         * modules/*: Add a description.
85480         * modules/strpbrk: Fix Makefile.am snippet.
85481         * modules/strtoimax: Fix dependencies.
85482         * modules/strtoumax: Likewise.
85483
85484 2003-01-13  Bruno Haible  <bruno@clisp.org>
85485
85486         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85487         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85488         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85489
85490 2003-01-13  Bruno Haible  <bruno@clisp.org>
85491
85492         * gnulib-tool (func_create_testdir): Store config/* files in the main
85493         directory.
85494         * config.rpath: Move to ...
85495         * config/config.rpath: ... here.
85496         * modules/gettext: Contains config/config.rpath, not config.rpath.
85497         * modules/iconv: Likewise.
85498
85499 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85500
85501         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85502         to avoid collisions with libcurses and libreadline.
85503
85504         * m4/getstr.m4: Remove.
85505         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85506
85507 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85508
85509         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85510         to avoid collisions with libcurses and libreadline.
85511
85512         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85513         * lib/getstr.h, getstr.c: Remove.
85514         * lib/getline.c: Include "getline.h", to check interface.
85515         Move body of old getstr.c here: this defines MIN_CHUNK and
85516         declares getdelim2, which is renamed from getstr.
85517         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85518
85519         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85520         All uses changed.
85521         * lib/linebuffer.h: Likewise.
85522         (readline): Remove backward-compatibility macro.
85523
85524 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85525
85526         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85527         to avoid collisions with libcurses and libreadline.
85528         * getstr: Remove.
85529         * MODULES.html.sh: Remove getstr.
85530         * modules/getline: Depend on unlocked-io, not getstr.
85531
85532 2003-01-12  Jim Meyering  <jim@meyering.net>
85533
85534         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85535
85536 2003-01-10  Bruno Haible  <bruno@clisp.org>
85537
85538         * modules/alloca: Change Makefile.am requirements. Simplify Include
85539         requirements. Add lib/alloca_.h to file list.
85540
85541 2003-01-10  Bruno Haible  <bruno@clisp.org>
85542
85543         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85544
85545 2003-01-10  Bruno Haible  <bruno@clisp.org>
85546
85547         * lib/alloca_.h: New file.
85548         * lib/getdate.y: Unconditionally include alloca.h.
85549         * lib/makepath.c: Likewise.
85550         * lib/setenv.c: Likewise.
85551         * lib/userspec.c: Likewise.
85552
85553 2003-01-09  Karl Berry  <karl@gnu.org>
85554
85555         * MODULES.html.sh: include `dirname $0` in PATH, to find
85556         gnulib-tool.
85557
85558 2003-01-09  Bruno Haible  <bruno@clisp.org>
85559
85560         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85561         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85562
85563 2003-01-09  Bruno Haible  <bruno@clisp.org>
85564
85565         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85566
85567 2003-01-09  Bruno Haible  <bruno@clisp.org>
85568
85569         * lib/stdbool.h.in: New file.
85570
85571 2003-01-09  Bruno Haible  <bruno@clisp.org>
85572
85573         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85574         * MODULES.html.sh: Likewise.
85575
85576 2003-01-08  Jim Meyering  <jim@meyering.net>
85577
85578         * lib/full-write.c: Undefine and define-away `const' after inclusion
85579         of errno.h, not before.  Suggestion from Bruno Haible.
85580
85581 2003-01-08  Bruno Haible  <bruno@clisp.org>
85582
85583         * modules/full-read: Depend on full-write.
85584
85585 2003-01-08  Bruno Haible  <bruno@clisp.org>
85586
85587         * lib/safe-read.c: Include specification header first, to ensure its
85588         selfcontainedness.
85589         * lib/full-write.c: Likewise.
85590
85591 2003-01-07  Jim Meyering  <jim@meyering.net>
85592
85593         * lib/full-write.c: Rework so that it may serve to define full_read,
85594         too.
85595         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85596
85597 2003-01-07  Bruno Haible  <bruno@clisp.org>
85598
85599         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85600         <inttypes.h>.
85601         * lib/xstrtol.h: Likewise.
85602         * lib/xstrtoimax.c: Likewise.
85603         * lib/xstrtoumax.c: Likewise.
85604         * lib/human.h: Likewise.
85605
85606         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85607         on systems that have <inttypes.h> but not <stdint.h>.
85608
85609 2003-01-07  Bruno Haible  <bruno@clisp.org>
85610
85611         * MODULES.html.sh: Add copyright notice.
85612         (missed_files): Omit CVS directory entries.
85613         (func_module): Make it work with sed-3.02.
85614         * MODULES.txt: Remove file.
85615
85616 2003-01-06  Jim Meyering  <jim@meyering.net>
85617
85618         * lib/version-etc.c: Update year in translatable copyright string.
85619
85620 2003-01-03  Karl Berry  <karl@gnu.org>
85621
85622         * config/config.{guess,sub}: update from prep.
85623
85624 2003-01-02  Karl Berry  <karl@gnu.org>
85625
85626         * doc/COPYING.DOC: belatedly updated to 1.2.
85627
85628 2003-01-01  Karl Berry  <karl@gnu.org>
85629
85630         * gnulib-tool (func_verify_module): report module name $module in
85631         error message, not $1.
85632         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85633         be created, only if it doesn't exist.
85634         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85635
85636 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85637
85638         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85639
85640 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85641
85642         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85643         memcmp if strcoll doesn't work.
85644
85645 2002-12-31  Bruno Haible  <bruno@clisp.org>
85646
85647         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85648         nonempty.
85649
85650 2002-12-31  Bruno Haible  <bruno@clisp.org>
85651
85652         * lib/memcoll.c (STRCOLL): New macro.
85653         (memcoll): Use it.
85654
85655 2002-12-31  Bruno Haible  <bruno@clisp.org>
85656
85657         * lib/localcharset.h: New file.
85658         * lib/localcharset.c: Include it.
85659         * lib/unicodeio.c: Likewise.
85660
85661 2002-12-31  Bruno Haible  <bruno@clisp.org>
85662
85663         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85664         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85665
85666 2002-12-31  Bruno Haible  <bruno@clisp.org>
85667
85668         * lib/getline.h: Include <stddef.h>, for size_t.
85669
85670         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85671         * lib/unicodeio.c: Don't include <stddef.h>.
85672
85673 2002-12-31  Bruno Haible  <bruno@clisp.org>
85674
85675         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85676         HAVE_TM_ZONE.
85677
85678 2002-12-24  Karl Berry  <karl@gnu.org>
85679
85680         * config/config.guess: update from prep.
85681
85682 2002-12-24  Bruno Haible  <bruno@clisp.org>
85683
85684         General infrasructure.
85685         * m4/README: Rewritten.
85686         * m4/onceonly.m4: New file.
85687         * m4/onceonly_2_57.m4: New file.
85688
85689         Module atexit.
85690         * m4/atexit.m4: New file.
85691
85692         Module strtod.
85693         * m4/strtod.m4: New file.
85694
85695         Module strtol.
85696         * m4/strtol.m4: New file.
85697
85698         Module strtoul.
85699         * m4/strtoul.m4: New file.
85700
85701         Module memchr.
85702         * m4/memchr.m4: New file.
85703
85704         Module memcmp.
85705         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85706         (jm_FUNC_MEMCMP): Invoke it.
85707
85708         Module memcpy.
85709         * m4/memcpy.m4: New file.
85710
85711         Module memmove.
85712         * m4/memmove.m4: New file.
85713
85714         Module memset.
85715         * m4/memset.m4: New file.
85716
85717         Module strcspn.
85718         * m4/strcspn.m4: New file.
85719
85720         Module strpbrk.
85721         * m4/strpbrk.m4: New file.
85722
85723         Module strstr.
85724         * m4/strstr.m4: New file.
85725
85726         Module strerror.
85727         * m4/strerror.m4: New file.
85728
85729         Module mktime.
85730         * m4/mktime.m4: Renamed from jm-mktime.m4.
85731         (gl_PREREQ_MKTIME): New macro.
85732         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85733
85734         Module malloc.
85735         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85736         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85737         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85738
85739         Module realloc.
85740         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85741         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85742         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85743
85744         Module strftime.
85745         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85747         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85748         gl_TM_GMTOFF.
85749         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85750
85751         Module xalloc.
85752         * m4/xalloc.m4: New file.
85753
85754         Module alloca.
85755         * m4/alloca.m4: New file.
85756
85757         Module putenv.
85758         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85759         (jm_FUNC_PUTENV): Invoke it.
85760
85761         Module setenv.
85762         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85763         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85764         when invoked twice.
85765         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85766         gt_FUNC_SETENV.
85767
85768         Module memrchr.
85769         * m4/memrchr.m4: New file.
85770
85771         Module stpcpy.
85772         * m4/stpcpy.m4: New file.
85773
85774         Module strcase.
85775         * m4/strcase.m4: New file.
85776
85777         Module strdup.
85778         * m4/strdup.m4: New file.
85779
85780         Module strnlen.
85781         * m4/strnlen.m4: New file.
85782
85783         Module strndup.
85784         * m4/strndup.m4: New file.
85785
85786         Module xstrtod.
85787         * m4/xstrtod.m4: New file.
85788
85789         Module xstrtol.
85790         * m4/xstrtol.m4: New file.
85791
85792         Module getdate.
85793         * m4/getdate.m4: New file.
85794
85795         Module unlocked-io.
85796         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85797         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85798         * m4/jm-glibc-io.m4n: Remove file.
85799
85800         Module long-options.
85801         * m4/long-options.m4: New file.
85802
85803         Module md5.
85804         * m4/md5.m4: New file.
85805
85806         Module sha.
85807         * m4/sha.m4: New file.
85808
85809         Module getstr.
85810         * m4/getstr.m4: New file.
85811
85812         Module getline.
85813         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85814         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85815         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85816         simply getline. Infoke gl_PREREQ_GETLINE.
85817
85818         Module obstack.
85819         * m4/obstack.m4: New file.
85820
85821         Module hash.
85822         * m4/hash.m4: New file.
85823
85824         Module readtokens.
85825         * m4/readtokens.m4: New file.
85826
85827         Module strverscmp.
85828         * m4/strverscmp.m4: New file.
85829
85830         Module stdbool.
85831         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85832         OSF/1.
85833
85834         Module strtoll.
85835         * m4/strtoll.m4: New file.
85836
85837         Module strtoull.
85838         * m4/strtoull.m4: New file.
85839
85840         Module strtoimax.
85841         * m4/strtoimax.m4: New file.
85842
85843         Module strtoumax.
85844         * m4/strtoumax.m4: New file.
85845
85846         Module xstrtoimax.
85847         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85848         jm_AC_PREREQ_XSTRTOIMAX.
85849         Moved the strtol prerequisites to strtol.m4.
85850         Moved the strtoll prerequisites to strtoll.m4.
85851         Moved the strtoimax prerequisites to strtoimax.m4.
85852
85853         Module xstrtoumax.
85854         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85855         jm_AC_PREREQ_XSTRTOUMAX.
85856         Moved the strtoul prerequisites to strtoul.m4.
85857         Moved the strtoull prerequisites to strtoull.m4.
85858         Moved the strtoumax prerequisites to strtoumax.m4.
85859
85860         Module chown.
85861         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85862         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85863
85864         Module dup2.
85865         * m4/dup2.m4: New file.
85866
85867         Module ftruncate.
85868         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85869         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85870
85871         Module getgroups.
85872         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85873         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85874
85875         Module gettimeofday.
85876         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85877         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85878         gl_PREREQ_GETTIMEOFDAY.
85879
85880         Module mkdir.
85881         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85882         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85883
85884         Module mkstemp.
85885         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85886         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85887         jm_AC_TYPE_UINTMAX_T.
85888         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85889
85890         Module stat.
85891         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85892         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85893
85894         Module lstat.
85895         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85896         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85897
85898         Module timespec.
85899         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85900         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85901         * m4/st_mtim.m4: Indentation.
85902
85903         Module nanosleep.
85904         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85905         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85906         gl_PREREQ_NANOSLEEP.
85907
85908         Module regex.
85909         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85910         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85911         (gl_REGEX): New macro.
85912
85913         Module rename.
85914         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85915         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85916
85917         Module rmdir.
85918         * m4/rmdir.m4: New file.
85919
85920         Module utime.
85921         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85922         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85923         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85924
85925         Module dirname.
85926         * m4/dirname.m4: New file.
85927
85928         Module getopt.
85929         * m4/getopt.m4: New file.
85930
85931         Module unistd-safer.
85932         * m4/unistd-safer.m4: New file.
85933
85934         Module fnmatch.
85935         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85936         declaration.
85937         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85938         (gl_FUNC_FNMATCH_POSIX): New macro.
85939         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85940         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85941         simply fnmatch.
85942
85943         Module exclude.
85944         * m4/exclude.m4: New file.
85945
85946         Module human.
85947         * m4/human.m4: New file.
85948
85949         Module acl.
85950         * m4/acl.m4: Nop.
85951
85952         Module backupfile.
85953         * m4/backupfile.m4: New file.
85954         * m4/d-ino.m4: Indentation.
85955
85956         Module fsusage.
85957         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85958         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85959         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85960
85961         Module dirfd.
85962         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85963         requirements.
85964
85965         Module euidaccess.
85966         * m4/euidaccess.m4: New file.
85967
85968         Module file-type.
85969         * m4/file-type.m4: New file.
85970
85971         Module fileblocks.
85972         * m4/fileblocks.m4: New file.
85973
85974         Module filemode.
85975         * m4/filemode.m4: New file.
85976
85977         Module isdir.
85978         * m4/isdir.m4: New file.
85979
85980         Module lchown.
85981         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85982         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85983
85984         Module makepath.
85985         * m4/makepath.m4: New file.
85986
85987         Module modechange.
85988         * m4/modechange.m4: New file.
85989
85990         Module mountlist.
85991         * m4/mountlist.m4: New file.
85992         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85993         Indentation.
85994
85995         Module path-concat.
85996         * m4/path-concat.m4: New file.
85997
85998         Module pathmax.
85999         * m4/pathmax.m4: New file.
86000
86001         Module same.
86002         * m4/same.m4: New file.
86003
86004         Module save-cwd.
86005         * m4/save-cwd.m4: New file.
86006
86007         Module savedir.
86008         * m4/savedir.m4: New file.
86009
86010         Module xgetcwd.
86011         * m4/xgetcwd.m4: New file.
86012         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86013
86014         Module xreadlink.
86015         * m4/xreadlink.m4: New file.
86016
86017         Module safe-read.
86018         * m4/safe-read.m4: New file.
86019
86020         Module safe-write.
86021         * m4/safe-write.m4: New file.
86022
86023         Module closeout.
86024         * m4/closeout.m4: New file.
86025
86026         Module stdio-safer.
86027         * m4/stdio-safer.m4: New file.
86028
86029         Module getpass.
86030         * m4/getpass.m4: New file.
86031
86032         Module getugroups.
86033         * m4/getugroups.m4: New file.
86034
86035         Module group-member.
86036         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86037         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86038
86039         Module idcache.
86040         * m4/idcache.m4: New file.
86041
86042         Module userspec.
86043         * m4/userspec.m4: New file.
86044
86045         Module gettime.
86046         * m4/clock_time.m4: New file.
86047         * m4/gettime.m4: New file.
86048
86049         Module settime.
86050         * m4/settime.m4: New file.
86051
86052         Module posixtm.
86053         * m4/posixtm.m4: New file.
86054
86055         Module gethostname.
86056         * m4/gethostname.m4: New file.
86057
86058         Module canon-host.
86059         * m4/canon-host.m4: New file.
86060
86061         Module gettext.
86062         * m4/codeset.m4: New file, from gettext-0.11.5.
86063         * m4/gettext.m4: New file, from gettext-0.11.5.
86064         * m4/glibc21.m4: New file, from gettext-0.11.5.
86065         * m4/iconv.m4: New file, from gettext-0.11.5.
86066         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86067         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86068         * m4/inttypes.m4: New file, from gettext-0.11.5.
86069         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86070         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86071         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86072         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86073         * m4/lib-link.m4: New file, from gettext-0.11.5.
86074         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86075         * m4/progtest.m4: New file, from gettext-0.11.5.
86076         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86077         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86078         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86079
86080         Module localcharset.
86081         * m4/localcharset.m4: New file.
86082
86083         Module hard-locale.
86084         * m4/hard-locale.m4: New file.
86085
86086         Module mbswidth.
86087         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86088         onceonly macros.
86089         * m4/mbrtowc.m4: Add comment.
86090
86091         Module memcasecmp.
86092         * m4/memcasecmp.m4: New file.
86093
86094         Module memcoll.
86095         * m4/memcoll.m4: New file.
86096
86097         Module unicodeio.
86098         * m4/unicodeio.m4: New file.
86099
86100         Module rpmatch.
86101         * m4/rpmatch.m4: New file.
86102
86103         Module yesno.
86104         * m4/yesno.m4: New file.
86105
86106         Module exitfail.
86107         * m4/exitfail.m4: New file.
86108
86109         Module c-stack.
86110         * m4/c-stack.m4 (gl_C_STACK): New macro.
86111         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86112
86113         Module error.
86114         * m4/error.m4 (gl_ERROR): New macro.
86115         (jm_PREREQ_ERROR): Use onceonly macros.
86116
86117         Module fatal.
86118         * m4/fatal.m4: New file.
86119
86120         Module getloadavg.
86121         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86122         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86123
86124         Module getpagesize.
86125         * m4/getpagesize.m4: New file.
86126
86127         Module getusershell.
86128         * m4/getusershell.m4: New file.
86129
86130         Module physmem.
86131         * m4/physmem.m4: New file.
86132
86133         Module posixver.
86134         * m4/posixver.m4: New file.
86135
86136         Module quotearg.
86137         * m4/quotearg.m4: New file.
86138
86139         Module quote.
86140         * m4/quote.m4: New file.
86141
86142         Module readutmp.
86143         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86144
86145         Module sig2str.
86146         * m4/sig2str.m4: New file.
86147
86148         Other.
86149         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86150         ulonglong.m4.
86151         * m4/intmax_t.m4: New file.
86152         * m4/d-type.m4: Indentation.
86153         * m4/jm-macros.m4: Update.
86154         * m4/prereq.m4 (jm_PREREQ): Update.
86155         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86156         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86157         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86158         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86159         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86160         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86161         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86162         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86163         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86164         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86165         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86166         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86167         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86168         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86169         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86170         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86171         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86172         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86173         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86174
86175 2002-12-24  Bruno Haible  <bruno@clisp.org>
86176
86177         * MODULES.txt: Update according to m4/ changes.
86178
86179         Module gettext.
86180         * config.rpath: New file, from gettext-0.11.5.
86181
86182         * modules/*: New module descriptions.
86183         * gnulib-tool: New file.
86184         * MODULES.html.sh: New file.
86185
86186 2002-12-21  Karl Berry  <karl@gnu.org>
86187
86188         * doc/fdl.texi: update to version 1.2.
86189
86190 2002-12-19  Karl Berry  <karl@gnu.org>
86191
86192         * config/config.guess: update from prep.
86193
86194 2002-12-18  Bruno Haible  <bruno@clisp.org>
86195
86196         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86197         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86198
86199 2002-12-17  Bruno Haible  <bruno@clisp.org>
86200
86201         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86202         stdlib.h, string.h.
86203
86204 2002-12-17  Bruno Haible  <bruno@clisp.org>
86205
86206         * lib/canon-host.c (strdup): Remove unused declaration.
86207
86208         * lib/fsusage.c: Include full_read.h.
86209         (get_fs_usage): Use full_read instead of safe_read.
86210
86211         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86212
86213 2002-12-12  Karl Berry  <karl@gnu.org>
86214
86215         * config/config.guess: update from prep.
86216
86217 2002-12-11  Bruno Haible  <bruno@clisp.org>
86218
86219         * m4/setenv.m4: New file, from gettext-0.11.5.
86220
86221 2002-12-11  Bruno Haible  <bruno@clisp.org>
86222
86223         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86224         not unsetenv().
86225         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86226         modifications:
86227
86228         2002-12-11  Bruno Haible  <bruno@clisp.org>
86229
86230                 * setenv.c (alloca): Fall back to malloc.
86231                 (freea): New macro.
86232                 (setenv): Use freea() to free memory allocated with alloca().
86233
86234         2002-11-13  Bruno Haible  <bruno@clisp.org>
86235
86236                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86237                 function declarations.
86238                 * unsetenv.c (unsetenv): Likewise.
86239
86240         2002-03-04  Bruno Haible  <bruno@clisp.org>
86241
86242                 Portability to AIX 4.3.3.
86243                 * unsetenv.c: New file, extracted from setenv.c.
86244                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86245
86246         2001-12-20  Bruno Haible  <bruno@clisp.org>
86247
86248                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86249                 use malloc instead. For SunOS 4.
86250
86251         2001-12-11  Bruno Haible  <bruno@clisp.org>
86252
86253                 * setenv.c: Declare alloca.
86254                 (compar_fn_t): New typedef.
86255                 (KNOWN_VALUE, STORE_VALUE): Use it.
86256
86257         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86258         setenv.h.
86259
86260 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86261
86262         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86263         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86264         Choose values that are less likely to collide with system fnmatch
86265         options.
86266         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86267         defined (e.g., a pure POSIX system).
86268         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86269         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86270
86271 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86272
86273         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86274         a pain in practice to deal with generated m4 files.  This change
86275         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86276
86277         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86278         and jm-glibc-io.m4, as they are no longer a special case.
86279         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86280         kludge and the auto-generation stuff.  Check only whether the
86281         functions are declared, not whether they exist, since older hosts
86282         that don't declare the functions can't use the optimization anyway.
86283
86284 2002-12-06  Jim Meyering  <jim@meyering.net>
86285
86286         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86287
86288         Merge in changes from libc's misc/error.c, in preparation
86289         for the merge of gnulib's changes back into libc.
86290
86291         * lib/error.c (_): Define only if not already defined.
86292         Move definition to follow all #include directives.
86293         Include unlocked-io.h only if !_LIBC.
86294         [_LIBC]: Include <libio/libioP.h>.
86295         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86296         (fflush): Tweak definition to use INTUSE.
86297         (putc): Define.
86298
86299 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86300
86301         * lib/alloca.c [defined emacs]: Include "lisp.h".
86302         (xalloc_die) [defined emacs]: New macro.
86303         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86304         [! defined emacs]: Include <xalloc.h>.
86305         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86306         (pointer): Typedef to POINTER_TYPE *.
86307         (malloc): Remove decl; we now always use xmalloc.
86308         (alloca): Use old-style definition, since Emacs needs this.
86309         Check for arithmetic overflow when computing combined size.
86310
86311 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86312
86313         Do not generate unlocked-io.h automatically, since it's easier to
86314         maintain it by hand.
86315
86316         * lib/unlocked-io.h: New file, from GNU diffutils,
86317         but with proper copyright notice and attribution.
86318         * lib/gen-uio: Remove.
86319         * lib/Makefile.am: Add copyright notice.
86320         (libfetish_a_SOURCES): Add unlocked-io.h.
86321         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86322         (DISTCLEANFILES, io_functions): Remove macros.
86323         (EXTRA_DIST): Remove gen_uio.
86324         (unlocked-io.h): Remove rule.
86325
86326 2002-12-04  Jim Meyering  <jim@meyering.net>
86327
86328         Reflect the fact that stat.c and lstat.c are no longer generated.
86329         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86330         (DISTCLEANFILES): Likewise.
86331         (EXTRA_DIST): Likewise.
86332         (all_local): Don't depend on stat.c or lstat.c.
86333         (stat.c, lstat.c): Remove rules.
86334         (EXTRA_DIST): Remove xstat.in.
86335
86336         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86337         * lib/stat.c: New file.  Contents mostly from xstat.in.
86338         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86339         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86340
86341         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86342         too.
86343         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86344
86345 2002-12-03  Jim Meyering  <jim@meyering.net>
86346
86347         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86348         but not semantics, to minimize the differences between these two files.
86349         (safe_read): Change comment to mention SAFE_READ_ERROR.
86350
86351         * lib/safe-read.c (IS_EINTR): Define.
86352         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86353
86354 2002-12-02  Jim Meyering  <jim@meyering.net>
86355
86356         * lib/safe-read.c (EINTR): Define.
86357         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86358         (INT_MAX): Provide fallback.
86359         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86360
86361         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86362
86363 2002-12-02  Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86366         Define, taken from safe-read.c.
86367         (INT_MAX): Provide fallback.
86368         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86369         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86370
86371         * lib/safe-read.c (EINTR): Remove definition.
86372         (safe_read): Don't use EINTR if it is absent.
86373
86374 2002-12-01  Jim Meyering  <jim@meyering.net>
86375
86376         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86377         zero.
86378         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86379
86380 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86381
86382         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86383         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86384         with `if (! (value < limit)) abort ();', for readability.
86385
86386 2002-11-26  Karl Berry  <karl@gnu.org>
86387
86388         * lib/strdup.c: copy from libc again, with jim's ok.
86389         * lib/.cppi-disable: re-add strdup.c
86390
86391 2002-11-25  Karl Berry  <karl@gnu.org>
86392
86393         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86394         instead of "strtol.c".
86395
86396 2002-11-25  Karl Berry  <karl@gnu.org>
86397
86398         * config/install-sh: update from automake for variable quoting, $0 in
86399         error msgs, etc.
86400
86401         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86402         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86403         entry.
86404
86405 2002-11-25  Jim Meyering  <jim@meyering.net>
86406
86407         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86408
86409 2002-11-24  Karl Berry  <karl@gnu.org>
86410
86411         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86412         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86413
86414 2002-11-24  Jim Meyering  <jim@meyering.net>
86415
86416         Update from coreutils:
86417
86418         * lib/mktime.c: Merge in changes from libc.
86419
86420         Avoid a link-time failure on some Linux systems.
86421         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86422         (otherwise).
86423         (__mon_yday): Declare with the STATIC attribute.
86424         (__mktime_internal): Likewise.
86425         Based on a report from Greg Schafer.
86426
86427 2002-11-23  Jim Meyering  <jim@meyering.net>
86428
86429         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86430         Use `unsigned', not `int', as type of index.
86431
86432         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86433
86434         * lib/fsusage.c: Remove unneeded parentheses around operands of
86435         `defined'.
86436
86437 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86438
86439         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86440         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86441         so that we can be included first.
86442         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86443         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86444         No need to include stddef.h or sys/types.h any more.
86445         Surround local include files with "", not "<>".
86446         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86447         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86448         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86449         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86450         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86451         (ISPRINT): Remove; no longer needed now that we assume C89.
86452
86453         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86454         Preserve errno.
86455
86456         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86457         quotearg_char): Use SIZE_MAX rather than
86458         (size_t) -1 when we are talking about "infinity".
86459
86460         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86461
86462 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86463
86464         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86465         hint that one should use `if (! x) abort ();' rather than `assert
86466         (x);', and anyway it's one less thing to worry about configuring.
86467         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86468         hash_rehash, hash_insert): Use abort rather than assert.
86469
86470 2002-11-22  Bruno Haible  <bruno@clisp.org>
86471
86472         * lib/safe-read.h: Assume C89. Add comments.
86473         (safe_read): Change return type to size_t.
86474         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86475         byte counts > SSIZE_MAX correctly.
86476         * lib/safe-write.h: New file.
86477         * lib/safe-write.c: New file.
86478         * lib/full-read.h: New file.
86479         * lib/full-read.c: New file.
86480         * lib/full-write.h: Assume C89. Add comments.
86481         * lib/full-write.c: Include safe-write.h.
86482         (full_write): Rewritten to use safe_write.
86483         Suggested by Jim Meyering and Paul Eggert.
86484
86485 2002-11-21  Jim Meyering  <jim@meyering.net>
86486
86487         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86488
86489         Merge in changes from the coreutils.
86490
86491         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86492         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86493         <stdint.h>.
86494         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86495         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86496         int.  Work more efficiently if X is the same width as uintmax_t.
86497         Do not compare X to -1, to avoid bogus compiler warning.
86498         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86499         Don't assume that f_frsize and f_bsize are the same type.
86500
86501         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86502         warning on FreeBSD.
86503
86504         * lib/makepath.c (make_path): Restore umask *before* creating the final
86505         component.
86506         (make_path): Minor reformatting.
86507
86508         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86509         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86510         HAVE_MALLOC/HAVE_REALLOC.
86511
86512         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86513         dummy ones.  At least on GNU/Linux systems, `auto' means something
86514         else.
86515         From Michael Stone.
86516
86517 2002-11-21  Bruno Haible  <bruno@clisp.org>
86518
86519         Remove case insensitive option matching.
86520         * lib/argmatch.h (argcasematch): Remove declaration.
86521         (ARGCASEMATCH): Remove macro.
86522         (__xargmatch_internal): Remove case_sensitive argument.
86523         (XARGMATCH): Update.
86524         (XARGCASEMATCH): Remove macro.
86525         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86526         case_sensitive argument.
86527         (argcasematch): Remove function.
86528         (__xargmatch_internal): Remove case_sensitive argument.
86529         (main): Use XARGMATCH instead of XARGCASEMATCH.
86530
86531         * lib/xmalloc.c: Change compile-time error message. Add comment about
86532         required autoconf version.
86533
86534 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86535
86536         Merge argmatch cleanups from Bison.  Assume C89.
86537
86538         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86539         Include stdlib.h, for EXIT_FAILURE.
86540         Always include <string.h>, since we assume C89.
86541         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86542         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86543         Include <stddef.h> instead, since it's all we need for size_t.
86544         (PARAMS): Remove.  All uses removed.
86545         (ARRAY_CARDINALITY): Do not bother to #undef.
86546         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86547         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86548         Remove unnecessary parentheses.
86549         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86550         Insert necessary parentheses.
86551         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86552         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86553
86554 2002-11-19  Bruno Haible  <bruno@clisp.org>
86555
86556         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86557         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86558
86559         * lib/mbswidth.h (PARAMS): Remove macro.
86560         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86561         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86562
86563         * lib/gcd.h (PARAMS): Remove macro.
86564         (gcd): Use ANSI C function declarations.
86565         * lib/gcd.c (gcd): Likewise.
86566
86567 2002-11-15  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/strcspn.c: Include <stddef.h>.
86570         (strcspn): Use ANSI C function declaration. Change return type to
86571         size_t. Use NULL.
86572         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86573         (strpbrk): Use NULL.
86574         * lib/strpbrk.h (PARAMS): Remove macro.
86575         (strpbrk): Use ANSI C function declaration.
86576         * lib/strstr.c: Don't include <sys/types.h>.
86577         * lib/strstr.h (PARAMS): Remove macro.
86578         (strstr): Use ANSI C function declarations.
86579
86580 2002-11-14  Karl Berry  <karl@gnu.org>
86581
86582         * config/mkinstalldirs: `do' on separate line, instead of
86583         `for var; do'.
86584
86585 2002-11-06  Bruno Haible  <bruno@clisp.org>
86586
86587         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86588         * lib/gcd.c (gcd): Likewise.
86589
86590 2002-11-05  Bruno Haible  <bruno@clisp.org>
86591
86592         * lib/gcd.h: New file, from gettext-0.11.5.
86593         * lib/gcd.c: New file, from gettext-0.11.5.
86594
86595 2002-11-05  Bruno Haible  <bruno@clisp.org>
86596
86597         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86598         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86599         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86600         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86601
86602         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86603         <libintl.h>.
86604         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86605         <libintl.h>.
86606
86607         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86608         * lib/human.c: Include gettext.h instead of <libintl.h>.
86609         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86610         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86611         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86612         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86613         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86614         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86615         (textdomain): Remove definition.
86616         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86617
86618         * lib/long-options.c: Remove include of <libintl.h> and definition of
86619         _.
86620         * lib/same.c: Remove include of <libintl.h> and definition of _.
86621
86622 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86623
86624         * lib/config.charset: A few additions for Solaris.
86625
86626 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86627
86628         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86629         * lib/localcharset.c (locale_charset): Declare as extern "C".
86630
86631 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86632
86633         * lib/config.charset: msdos in uk_UA uses CP1125.
86634
86635 2002-11-04  Bruno Haible  <bruno@clisp.org>
86636
86637         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86638         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86639         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86640         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86641         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86642
86643 2002-11-04  Bruno Haible  <bruno@clisp.org>
86644
86645         * lib/localcharset.c (locale_charset): Don't return an empty string.
86646
86647 2002-11-04  Bruno Haible  <bruno@clisp.org>
86648
86649         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86650         aliases.
86651
86652 2002-11-04  Bruno Haible  <bruno@clisp.org>
86653
86654         * lib/config.charset: Update for newest glibc. Add canonical names
86655         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86656
86657 2002-11-04  Bruno Haible  <bruno@clisp.org>
86658
86659         * lib/config.charset: Add support for NetBSD.
86660
86661 2002-11-04  Bruno Haible  <bruno@clisp.org>
86662
86663         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86664
86665 2002-11-01  Bruno Haible  <bruno@clisp.org>
86666
86667         * configure.in: Add AC_CONFIG_AUX_DIR call.
86668         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86669         test/Makefile.
86670         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86671
86672 2002-09-28  Karl Berry  <karl@gnu.org>
86673
86674         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86675         installed automake until the next release, since changes have been
86676         made.
86677
86678 2002-09-25  Karl Berry  <karl@gnu.org>
86679
86680         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86681         * lib/getopt*: copy from libc/posix.
86682         * lib/gettext.h: copy from gettext.
86683         * lib/.cppi-disable: add strdup.c, gettext.h.
86684
86685 2002-09-25  Karl Berry  <karl@gnu.org>
86686
86687         * config/srclist.txt: enable gettext.h check.
86688         * config/config.{guess,sub}: update from prep.
86689         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86690                 from automake 1.6.3.
86691         See srclist*.
86692
86693 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86694
86695         * regex.c (PATFETCH): Remove the translating fetch.
86696         (PATFETCH_RAW): Rename to PATFETCH.
86697         (set_image_of_range): New fun.
86698         (SET_RANGE_TABLE_WORK_AREA): Use it.
86699         (regex_compile): Don't translate the pattern chars so eagerly.
86700         Only do it when inserting an `exactn' bytecode or when handling
86701         a char-range.
86702         (mutually_exclusive_p): Avoid empty statement.
86703
86704 2002-07-06  Jim Meyering  <meyering@lucent.com>
86705
86706         * m4/README: Don't mention Makefile.am.in.
86707         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86708
86709 2002-07-01  Jim Meyering  <meyering@lucent.com>
86710
86711         * lib/c-stack.c: Include sys/time.h.
86712         From Volker Borchert.
86713
86714 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86715
86716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86717
86718 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86719
86720         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86721         New macro.  Use it uniformly instead of
86722         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86723         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86724         reported by Vin Shelton.
86725
86726 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86727
86728         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86729         Do not assume SA_SIGINFO behavior.
86730         Bug reported by Jim Meyering on NetBSD 1.5.2.
86731
86732 2002-06-22  Jim Meyering  <meyering@lucent.com>
86733
86734         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86735         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86736
86737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86738         now that configure.ac uses AC_GNU_SOURCE.
86739         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86740         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86741
86742         Update to latest tools.  Suggestions from Paul Eggert.
86743         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86744         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86745         * m4/fnmatch.m4: Likewise.
86746         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86747         to AC_HEADER_STDBOOL
86748
86749 2002-06-22  Jim Meyering  <meyering@lucent.com>
86750
86751         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86752         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86753
86754 2002-06-22  Jim Meyering  <meyering@lucent.com>
86755
86756         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86757
86758         * lib/exitfail.c, exitfail.h: Likewise.
86759         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86760
86761         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86762         of fnmatch.h.
86763         (EXTRA_DIST): Add fnmatch_loop.c.
86764         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86765
86766         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86767         * lib/fnmatch.c: Update from diffutils-2.8.2.
86768         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86769         * lib/fnmatch.h: Remove file.
86770
86771 2002-06-21  Jim Meyering  <meyering@lucent.com>
86772
86773         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86774         * m4/mbrtowc.m4: Likewise.
86775
86776         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86777         * m4/mbswidth.m4: Reflect name change:
86778         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86779         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86780
86781         * m4/lib-link.m4: Update from gettext-0.11.2.
86782         * m4/gettext.m4: Likewise.
86783
86784         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86785         From Alfred M. Szmidt.
86786
86787 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86788
86789         * lib/file-type.h: Report an error if neither S_ISREG nor
86790         S_IFREG is defined, instead of using a test specific to glibc
86791         2.2.  This should be safe, since POSIX requires S_ISREG and
86792         Unix Version 7 had S_IFREG.  We don't need to check for
86793         <sys/types.h> since we don't use any symbols that it defines.
86794
86795 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86796
86797         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86798         $@-t, so that each temporary file name is unique and valid in the first
86799         8 characters, for operation under DOS.
86800
86801 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86802
86803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86804
86805 2002-06-15  Jim Meyering  <meyering@lucent.com>
86806
86807         Work even with DJGPP 2.03, which lacks support for symlinks.
86808         From Richard Dawe.
86809         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86810         is defined.
86811         * lib/lchown.c (S_ISLNK): Likewise.
86812
86813 2002-06-15  Jim Meyering  <meyering@lucent.com>
86814
86815         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86816         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86817         have been included before this file.
86818
86819 2002-06-14  Jim Meyering  <meyering@lucent.com>
86820
86821         * lib/file-type.h: Use the version from diffutils-2.8.2.
86822         * lib/file-type.c: Likewise.
86823
86824 2002-06-07  Jim Meyering  <meyering@lucent.com>
86825
86826         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86827         They're needed at least for NetBSD 1.5.2.
86828         ($statxfs_includes): Include those same headers.
86829         ($statxfs_includes): Include sys/vfs.h if available.
86830         ($statxfs_includes): Likewise for sys/statvfs.h.
86831         Check for the following members in both structs statfs and statvfs:
86832         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86833
86834 2002-06-01  Jim Meyering  <meyering@lucent.com>
86835
86836         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86837         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86838
86839 2002-05-28  Jim Meyering  <meyering@lucent.com>
86840
86841         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86842         Reported by Volker Borchert.
86843
86844 2002-05-27  Jim Meyering  <meyering@lucent.com>
86845
86846         Fix a problem seen only on nonconforming systems whereby ls.c's
86847         use of localtime, and then of gettimeofday would cause trouble:
86848         the localtime call used to initialize rpl_gettimeofday's save
86849         mechanism would clobber ls's current local time information so
86850         that in any long listing the first file would always be listed
86851         with date 1970-01-01.  Analysis by Volker Borchert.
86852
86853         * lib/gettimeofday.c (localtime): Undefine.
86854         (rpl_localtime): New function.
86855
86856 2002-05-27  Jim Meyering  <meyering@lucent.com>
86857
86858         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86859         localtime.
86860
86861         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86862         use the replacement function; it wouldn't resolve at link time.
86863         Reported by Volker Borchert.
86864
86865 2002-05-22  Jim Meyering  <meyering@lucent.com>
86866
86867         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86868         file-type.h.
86869         * lib/file-type.h: New file.
86870         * lib/file-type.c (file_type): New file/function.  Extracted from
86871         diffutils.
86872
86873 2002-04-30  Jim Meyering  <meyering@lucent.com>
86874
86875         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86876
86877 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86878
86879         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86880
86881 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86882
86883         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86884         Do not check for alloca.h (no longer used) or stdbool.h (was never
86885         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86886
86887 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86888
86889         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86890
86891 2002-04-29  Jim Meyering  <meyering@lucent.com>
86892
86893         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86894         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86895         Use AC_FUNC_STRNLEN here instead.
86896
86897         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86898         With autoconf-2.53a, it's part of AC_PROG_CC.
86899
86900 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86901
86902         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86903         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86904
86905 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86906
86907         * lib/sig2str.h, lib/sig2str.c: New files.
86908         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86909
86910 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86913         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86914         of 127, since 64 is the largest conceivable number for ancient
86915         nonstandard hosts.
86916         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86917
86918 2002-04-28  Jim Meyering  <meyering@lucent.com>
86919
86920         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86921
86922 2002-04-24  Jim Meyering  <meyering@lucent.com>
86923
86924         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86925         (jm_PREREQ): Use it.
86926
86927         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86928         mach/mach.h fcntl.h.
86929         Check for this function: setlocale.
86930
86931 2002-04-24  Jim Meyering  <meyering@lucent.com>
86932
86933         * lib/gettext.h: New file, from Gettext.
86934         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86935         (libfetish_a_SOURCES): Add gettext.h.
86936
86937 2002-04-16  Jim Meyering  <meyering@lucent.com>
86938
86939         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86940         ut_pid, ut_id, ut_exit.
86941
86942 2002-04-16  Jim Meyering  <meyering@lucent.com>
86943
86944         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86945         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86946         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86947
86948 2002-04-12  Jim Meyering  <meyering@lucent.com>
86949
86950         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86951         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86952         existence of the getmntinfo function.  Needed for Darwin 5.3.
86953
86954         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86955         This is necessary at least on Darwin 5.3.
86956
86957         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86958         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86959         strnlen.o in the library, and that makes some versions of ranlib
86960         object.
86961
86962 2002-04-12  Jim Meyering  <meyering@lucent.com>
86963
86964         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86965
86966 2002-04-09  Jim Meyering  <meyering@lucent.com>
86967
86968         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86969         to be more precise.  Rather than saying we're checking whether the
86970         function `works', say what we're testing.
86971         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86972         Reported by Bruno Haible.
86973
86974 2002-03-10  Jim Meyering  <meyering@lucent.com>
86975
86976         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86977         Suggestion from Santiago Vila.
86978
86979 2002-03-08  Jim Meyering  <meyering@lucent.com>
86980
86981         * lib/rename.c: Mention that this wrapper is needed also on
86982         mips-dec-ultrix4.4 systems.
86983
86984 2002-03-02  Jim Meyering  <meyering@lucent.com>
86985
86986         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86987         not HAVE_CLOCK_SETTIME.
86988
86989 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86990
86991         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86992         Check for clock_settime.
86993
86994 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86995
86996         * lib/nanosleep.h: Rename to....
86997         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86998
86999         * lib/gettime.c: New file.
87000         * lib/settime.c: New file.
87001         * lib/stime.c: Remove.
87002
87003         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87004         timespec.h.  Remove nanosleep.h.
87005
87006 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87007
87008         * m4/acl.m4: New file.
87009         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87010         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87011
87012 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87013
87014         * lib/acl.c, lib/acl.h: New files.
87015         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87016
87017 2002-02-24  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87020         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87021         cause trouble.  Reported by Nelson Beebe.
87022
87023 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87024
87025         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87026         compilers that don't know that xalloc_die never returns.
87027
87028 2002-02-20  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/getdate.c: Regenerate using bison-1.33.
87031
87032 2002-02-17  Jim Meyering  <meyering@lucent.com>
87033
87034         * config/config.guess (main): Don't use `head -1'; it's no longer
87035         portable. Use `sed 1q' instead.
87036
87037 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87038
87039         * m4/codeset.m4: Upgrade to gettext-0.11.
87040         * m4/gettext.m4: Upgrade to gettext-0.11.
87041         * m4/glibc21.m4: Upgrade to gettext-0.11.
87042         * m4/iconv.m4: Upgrade to gettext-0.11.
87043         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87044         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87045         * m4/lib-ld.m4: New file, from gettext-0.11.
87046         * m4/lib-link.m4: New file, from gettext-0.11.
87047         * m4/lib-prefix.m4: New file, from gettext-0.11.
87048         * m4/progtest.m4: Upgrade to gettext-0.11.
87049
87050 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87051
87052         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87053         (jm_PREREQ): Use it.
87054
87055 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87056
87057         * lib/posixver.c, lib/posixver.h: New files.
87058         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87059
87060 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87061             Bruno Haible  <bruno@clisp.org>
87062
87063         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87064         (fwrite_success_callback): New declaration.
87065         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87066         print_unicode_char. Call failure callback instead of error.
87067         (fwrite_success_callback): New function.
87068         (exit_failure_callback): New function.
87069         (fallback_failure_callback): New function.
87070         (print_unicode_char): Call unicode_to_mb.
87071
87072 2002-01-26  Jim Meyering  <meyering@lucent.com>
87073
87074         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87075         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87076
87077 2002-01-26  Jim Meyering  <meyering@lucent.com>
87078
87079         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87080
87081 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87082
87083         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87084
87085 2002-01-22  Jim Meyering  <meyering@lucent.com>
87086
87087         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87088         Otherwise, some versions of automake would omit the rule that makes
87089         Makefile from Makefile.in.
87090
87091 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87092
87093         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87094         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87095         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87096         (memcoll): Set errno to zero if there is no error.
87097
87098         * lib/quotearg.c (quotearg_buffer_restyled):
87099         Fix bug with quoting buffers containing NUL when backslashing escapes.
87100         This bug was exposed by the other changes in this patch.
87101         (quotearg_n_options): New arg ARGSIZE.
87102         All callers changed.
87103         (quoting_options_from_style): New function.
87104         (quotearg_n_style): Use it.
87105         (quotearg_n_style_mem): New function.
87106
87107         * lib/quotearg.h (quotearg_n_style_mem): New function.
87108
87109 2002-01-19  Jim Meyering  <meyering@lucent.com>
87110
87111         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87112         Remove useless quotes: DF_PROG="df".
87113         * m4/strnlen.m4: New file.
87114
87115 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87116
87117         * lib/backupfile.c (ISDIGIT): Comment fix.
87118         * lib/getdate.y (ISDIGIT): Likewise.
87119         * lib/posixtm.c (ISDIGIT, year): Likewise.
87120         * lib/strverscmp.c (ISDIGIT): Likewise.
87121         * lib/userspec.c (ISDIGIT): Likewise.
87122
87123 2002-01-16  Jim Meyering  <meyering@lucent.com>
87124
87125         * lib/getdate.y: Add three semicolons, each just before a closing
87126         brace. Bison (as of version 1.31) no longer papers over that mistake.
87127
87128 2002-01-05  Jim Meyering  <meyering@lucent.com>
87129
87130         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87131
87132 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87133
87134         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87135         not silently exit merely because the output buffer happens to
87136         have nothing pending.
87137
87138 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87139
87140         See the big note in ../ChangeLog.
87141         * lib/human.c (suffixes): Prefer K to k for 1024.
87142         (generate_suffix_backwards): New function.
87143         (human_readable_inexact): Use it.
87144         * lib/xstrtol.c (__xstrtol): If there is no number but there
87145         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87146         Accept 'K' as well as 'k'.
87147
87148 2001-12-15  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/regex.h (__restrict_arr): Update from libc.
87151
87152         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87153         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87154         (STREQ): Define.
87155
87156 2001-12-14  Jim Meyering  <meyering@lucent.com>
87157
87158         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87159         Suggestion from Bruno Haible.
87160
87161 2001-12-10  Jim Meyering  <meyering@lucent.com>
87162
87163         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87164         xrealloc, Instead, include "xalloc.h".
87165         (initbuffer): Don't cast xmalloc return value to char*.
87166         (readline): Reword comment.
87167         Don't cast xrealloc return value to char*
87168         Return NULL, not 0.
87169
87170 2001-12-09  Jim Meyering  <meyering@lucent.com>
87171
87172         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87173         about `signed and unsigned type in conditional expression'.
87174         * lib/posixtm.c (posix_time_parse): Likewise.
87175
87176         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87177
87178         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87179         to avoid a pedantic warning.
87180
87181         * lib/getstr.c: Don't include assert.h.
87182         (getstr): Remove warning-evoking assertions.
87183         Return -1 if offset parameter is out of bounds.
87184         Change the type of a local from int to size_t.
87185
87186         * lib/strftime.c (my_strftime_localtime_r): Include this function
87187         definition in the `#if ! HAVE_TM_GMTOFF' block.
87188
87189         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87190         Include xalloc.h instead.
87191
87192 2001-12-02  Jim Meyering  <meyering@lucent.com>
87193
87194         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87195         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87196         included.
87197
87198         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87199         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87200
87201 2001-11-30  Akim Demaille  <akim@epita.fr>
87202
87203         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87204         before being defined.
87205
87206 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87207
87208         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87209         First arg is int, not unsigned.
87210         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87211         (SIZE_MAX, UINT_MAX): New macros.
87212         (quotearg_n_options): Abort if N is negative.
87213         Avoid overflow check on hosts where size_t is 64 bits and int
87214         is 32 bits, as overflow is impossible there.
87215         Fix off-by-one typo that caused unnecessary reallocation.
87216
87217 2001-11-27  Jim Meyering  <meyering@lucent.com>
87218
87219         * lib/tempname.c: Merge with version from libc.
87220         * lib/regex.c: Likewise.
87221
87222         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87223         systems for which STDC_HEADERS is 0, it was not included, resulting in
87224         a warning about an integer-to-pointer conversion problem with getenv.
87225         Reported by Volker Borchert.
87226
87227 2001-11-26  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/gtod.h: Remove file.
87230         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87231         * lib/gettimeofday.c: Don't include gtod.h.
87232         (GTOD_init): Remove function.
87233         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87234         Suggestion from Volker Borchert.
87235
87236 2001-11-23  Jim Meyering  <meyering@lucent.com>
87237
87238         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87239         it.
87240         * lib/hash.c (struct hash_table): Define it here instead.
87241
87242 2001-11-22  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87245
87246 2001-11-20  Jim Meyering  <meyering@lucent.com>
87247
87248         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87249         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87250
87251 2001-11-19  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87254         directory.  Use "conftestXXXXXX" as the template.
87255         Suggestion from Paul Eggert.
87256
87257         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87258         immediately, so the test doesn't mistakenly hit the max-open-files
87259         limit.
87260
87261 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87262
87263         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87264         (TEMPORARIES): New macro.
87265         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87266         removes an artificial limitation (e.g. HP-UX 10.20, where
87267         TMP_MAX is 17576).
87268
87269 2001-11-18  Jim Meyering  <meyering@lucent.com>
87270
87271         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87272
87273 2001-11-18  Jim Meyering  <meyering@lucent.com>
87274
87275         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87276         on SunOS 4.
87277
87278         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87279         files will be created before anything else.
87280
87281 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87282
87283         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87284         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87285
87286 2001-11-17  Jim Meyering  <meyering@lucent.com>
87287
87288         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87289         Prompted by a report from Bob Proulx.
87290
87291         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87292         Instead, require UTILS_FUNC_MKSTEMP.
87293
87294 2001-11-17  Jim Meyering  <meyering@lucent.com>
87295
87296         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87297         Now, that's done as part of AC_FUNC_STRTOD.
87298
87299 2001-11-17  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87302         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87303         rather than group writable.  Patch by Juan F. Codagnone.
87304
87305         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87306         xrealloc, Instead, include "xalloc.h".
87307
87308         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87309         Remove explicit declarations of xmalloc, xrealloc,
87310         and xstrdup.  Instead, include "xalloc.h".
87311
87312         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87313         unlocked-io.h.
87314         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87315         Likewise.
87316         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87317
87318         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87319         Reported by Padraig Brady.
87320
87321         * lib/mkstemp.c: #undef mkstemp.
87322         Include config.h.
87323         (rpl_mkstemp): Rename from mkstemp.
87324         Protoize.
87325
87326 2001-11-16  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87329         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87330         determine the amount of total physical memory, use pstat_getstatic.
87331         HPUX-11 doesn't define _SC_PHYS_PAGES.
87332         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87333         If sysconf couldn't be used to determine the amount of available
87334         physical memory, use both pstat_getstatic and pstat_getdynamic.
87335         Based on a patch from Bob Proulx.
87336
87337 2001-11-10  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87340         (jm_PREREQ): Use it.
87341
87342 2001-11-09  Jim Meyering  <meyering@lucent.com>
87343
87344         * m4/jm-macros.m4: Require autoconf-2.52f.
87345         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87346         Use these AC_-prefixed names, not the AM_-prefixed ones.
87347
87348         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87349
87350 2001-11-05  Jim Meyering  <meyering@lucent.com>
87351
87352         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87353
87354 2001-11-04  Jim Meyering  <meyering@lucent.com>
87355
87356         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87357         $DEFS.
87358
87359 2001-11-03  Jim Meyering  <meyering@lucent.com>
87360
87361         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87362         of AC_DEFUN.
87363
87364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87365         know the name of the variable in the macro definition.
87366
87367 2001-11-03  Jim Meyering  <meyering@lucent.com>
87368
87369         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87370         in argmatch_to_argument call.
87371
87372         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87373         argument.
87374
87375         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87376         e.g., a fault due to an attempt to free a NULL pointer.
87377
87378 2001-11-01  Jim Meyering  <meyering@lucent.com>
87379
87380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87381         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87382
87383 2001-11-01  Jim Meyering  <meyering@lucent.com>
87384
87385         * lib/dirfd.c, lib/dirfd.h: New files.
87386         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87387
87388         * lib/hash.c (hash_print) [TESTING]: Clean up.
87389
87390 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87391
87392         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87393         to avoid a warning if -Wall.
87394
87395 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87396
87397         * README: New file
87398         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87399         (per RMS's instructions, this is now the canonical source)
87400         * lgpl/, gpl/: New directories.
87401
87402 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87403
87404         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87405
87406 2001-10-21  Jim Meyering  <meyering@lucent.com>
87407
87408         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87409         this code would end up calling gettext even in packages built
87410         with --disable-nls.
87411         * lib/getopt.c (_): Likewise.
87412         * lib/regex.c (_): Likewise.
87413
87414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87415
87416         * m4/error.m4 (jm_PREREQ_ERROR):
87417         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87418         AC_FUNC_STRERROR_R does that.
87419         Check for strerror declaration.
87420
87421         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87422         are supposed to have them these days.
87423         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87424         Merge changes from latest Autoconf CVS.
87425         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87426         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87427         POSIX decided to standardize on the int flavor of strerror_r.
87428
87429 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87430
87431         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87432         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87433         Use strerror_r that is only a macro, even if it is not a function.
87434         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87435         (private_strerror): Use prototypes, not old-style function definition.
87436         (print_errno_message): New function.
87437         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87438         char*-flavored one.
87439         (error_tail, error, error_at_line): Use it.
87440
87441 2001-10-11  Jim Meyering  <meyering@lucent.com>
87442
87443         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87444         and quote_n (1, ... to avoid clobbering a buffer.
87445
87446 2001-10-05  Jim Meyering  <meyering@lucent.com>
87447
87448         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87449         hash-pjw.h.
87450         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87451         * lib/hash-pjw.h: New file.
87452
87453 2001-09-30  Jim Meyering  <meyering@lucent.com>
87454
87455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87456         `struct fsstat' has the `f_fstypename' member.
87457         Use that to define FS_TYPE, which is now used to make
87458         the getfsstat link test tighter.
87459
87460 2001-09-30  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87463         Include <sys/ucred.h>, for Apple Darwin.
87464         Include sys/mount.h and sys/fs_types.h only if available.
87465         (FS_TYPE): Define.
87466         (read_filesystem_list): Use FS_TYPE.
87467
87468 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87469
87470         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87471         a boolean context.
87472
87473 2001-09-29  Jim Meyering  <meyering@lucent.com>
87474
87475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87476         [one-argument getmntent function]): Include stdio.h before mntent.h.
87477         SunOS 4.1.x needs it for the declaration of `FILE'.
87478         Patch by Volker Borchert.
87479
87480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87481         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87482         sys/fs_types.h, and make the link-test for getfsstat guard #include
87483         directives with appropriate #if HAVE_*_H tests so that we can
87484         detect getfsstat on Apple Darwin1.3.7 systems.
87485         Reported by Nelson Beebe.
87486         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87487
87488 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87489
87490         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87491         #defines strtoimax.  Also treat the other strto* functions
87492         like strtoimax.
87493
87494         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87495         Check for strtoul and strtoumax,
87496         as those declarations are made even in the signed case.
87497         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87498         Likewise, for strtol and strtoimax.
87499
87500 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87501
87502         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87503         #defines strtoimax.  Also treat the other strto* functions
87504         like strtoimax.
87505
87506         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87507         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87508         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87509
87510 2001-09-26  Jim Meyering  <meyering@lucent.com>
87511
87512         Most macros in unlocked-io.h had the wrong number of arguments.
87513         * lib/gen-uio: New script.
87514         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87515         * lib/unlocked-io.hin: Remove file.
87516         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87517         rather than trying to embed it here.
87518         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87519         Reported by Padraig Brady.
87520
87521 2001-09-25  Volker Borchert  <bt@teknon.de>
87522
87523         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87524         `result'.
87525
87526 2001-09-24  Jim Meyering  <meyering@lucent.com>
87527
87528         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87529
87530 2001-09-23  Jim Meyering  <meyering@lucent.com>
87531
87532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87533         instead of the mere test for existence of mntent.h.  The latter
87534         would get a false-positive on AIX 3.4 systems.
87535         In the outer getmntent if-block, don't die if neither of the getmntent
87536         tests succeeds.  Instead, just fall through and continue with the
87537         remaining tests.
87538
87539 2001-09-23  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/mountlist.c: Remove useless parentheses in #if directives.
87542         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87543         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87544
87545 2001-09-22  Jim Meyering  <meyering@lucent.com>
87546
87547         * m4/gettext.m4: New file.  From gettext.
87548         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87549         * m4/progtest.m4: Likewise
87550         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87551         * m4/glibc21.m4: Likewise.
87552
87553         * m4/libintl.m4: Remove.  No longer used.
87554
87555 2001-09-22  Jim Meyering  <meyering@lucent.com>
87556
87557         * lib/localcharset.c: Update from latest gettext.
87558         * lib/config.charset: Likewise.
87559
87560 2001-09-20  Jim Meyering  <meyering@lucent.com>
87561
87562         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87563         strtoimax.
87564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87565         strtoumax.
87566
87567 2001-09-20  Jim Meyering  <meyering@lucent.com>
87568
87569         * lib/xstrtol.c (strtoimax): Guard declaration with
87570         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87571         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87572         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87573         (strtoumax): Likewise, for completeness (it wasn't necessary).
87574
87575 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87576
87577         * lib/strtoimax.c (HAVE_LONG_LONG):
87578         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87579         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87580         to work around bug in IBM C compiler.
87581
87582 2001-09-17  Jim Meyering  <meyering@lucent.com>
87583
87584         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87585         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87586         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87587         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87588         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87589         whenever the right hand side need not be expanded by the shell.
87590
87591 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87592
87593         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87594         library.  It's not correct, as some older glibcs are buggy.
87595         fnmatch wasn't fixed until glibc 2.2.
87596
87597         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87598         special shell magic here.
87599
87600 2001-09-16  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87603         * m4/jm-macros.m4: Require it.
87604
87605 2001-09-16  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/mkdir.c: New file.
87608
87609 2001-09-15  Jim Meyering  <meyering@lucent.com>
87610
87611         * m4/jm-macros.m4: Check for help2man.
87612
87613 2001-09-11  Jim Meyering  <meyering@lucent.com>
87614
87615         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87616         The body, by Paul Eggert, was moved here from configure.in.
87617         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87618
87619 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87620
87621         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87622         (jm_PREREQ): Use it.
87623
87624 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87625
87626         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87627         Use ssize_t, not int, to store result of readlink.
87628         Check for ssize_t overflow as well as size_t overflow,
87629         as POSIX says the result of readlink is implementation-defined
87630         when ssize_t overflows.
87631         Remove unnecessary cast to char*.
87632         Use free+malloc instead of realloc, as the storage doesn't need
87633         to be preserved and it's clearer and can be more efficient that way.
87634         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87635         * lib/xreadlink.h (xreadlink): Update prototype.
87636
87637 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87638
87639         * lib/xgetcwd.c: Revert some of the previous change; intead,
87640         fix the HAVE_GETCWD_NULL code to behave more like the
87641         !HAVE_GETCWD_NULL code used to.
87642
87643         Include "xalloc.h".
87644         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87645         invoke xalloc_die.
87646
87647 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87648
87649         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87650         sys/param.h, as pathmax.h includes them.
87651
87652 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87653
87654         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87655         (jm_PREREQ_XGETCWD): New macro.
87656
87657         * m4/getcwd.m4: New file.
87658
87659 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87660
87661         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87662         like the HAVE_GETCWD_NULL code.
87663         Include pathmax.h if not HAVE_GETCWD.
87664         Do not include xalloc.h.
87665         (INITIAL_BUFFER_SIZE): New symbol.
87666         Do not use xmalloc / xrealloc, since the caller is responsible for
87667         handling errors.  Preserve errno around `free' during failure.
87668         Do not overrun buffer when using getwd.
87669
87670 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87671
87672         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87673         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87674         getcwd (NULL, 0).
87675
87676 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87677
87678         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87679         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87680         spotted by Jim Meyering.
87681
87682 2001-09-03  Jim Meyering  <meyering@lucent.com>
87683
87684         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87685         failure.
87686
87687 2001-09-02  Jim Meyering  <meyering@lucent.com>
87688
87689         * lib/error.c: Update from GNU libc.
87690
87691 2001-09-01  Jim Meyering  <meyering@lucent.com>
87692
87693         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87694         Used by df.
87695
87696 2001-09-01  Jim Meyering  <meyering@lucent.com>
87697
87698         * lib/xreadlink.c: New file.
87699         * lib/xreadlink.h: New file.
87700         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87701         xreadlink.h.
87702
87703         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87704         doesn't conflict with sparc Solaris 7's definition in
87705         /usr/include/sys/int_types.h.
87706
87707         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87708         files.
87709         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87710         and strncasecmp as r-values.  Unixware didn't have declarations.
87711
87712 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87713
87714         * lib/xstrtol.h: Add copyright notice.
87715         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87716         LONGINT_INVALID_SUFFIX_CHAR.
87717
87718 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87719
87720         * lib/xstrtol.c (strtoimax): New decl.
87721
87722 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87723
87724         * lib/xgetcwd.c: Don't include pathmax.h.
87725         Include stdlib.h and unistd.h if available.
87726         Include xalloc.h.
87727         (xmalloc, xstrdup, free): Remove decls.
87728         (xgetcwd): Don't assume sizes fit in unsigned.
87729         Check for overflow when computing sizes.
87730         Simplify reallocation code.
87731
87732 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87733
87734         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87735         a directory's st_size can have an arbitrary value, so the old
87736         usage could waste an arbitrary amount of memory.  All uses
87737         changed.
87738         * lib/savedir.h: Update prototype.
87739
87740 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87741
87742         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87743
87744         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87745         old strtoimax.c.
87746
87747         Also, make the following further changes to make this file's
87748         configuration more similar to that of strtol.c:
87749         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87750         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87751         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87752         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87753         changed to signed values.
87754
87755         And make the following changes as well:
87756         Fix copyright notice, as 1999 was missing.
87757         (verify): New macro.
87758         (strtoimax): Check sizes at compile-time, not run-time.
87759         Prefer strtol to strtoll if both work.
87760         (main): Remove; it was not that useful and was a pain to maintain.
87761
87762         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87763
87764 2001-08-31  Jim Meyering  <meyering@lucent.com>
87765
87766         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87767         Use an initial, malloc'd, buffer of length 128 rather than
87768         a statically allocated one of length 1024.
87769
87770 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87771
87772         Simplify code, partly by assuming autoconf 2.52 semantics.
87773
87774         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87775
87776         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87777         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87778         All uses removed.
87779         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87780         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87781         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87782         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87783         jm_AC_HEADER_INTTYPES_H.
87784         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87785
87786         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87787
87788         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87789         Quote first arg of AC_DEFUN.
87790         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87791         since they are needed to parse the include file even if we need
87792         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87793         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87794         but with opposite signedness.
87795
87796 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87797
87798         Merge 'exclude' changes from tar 1.13.22.
87799         This fixes one or two unlikely storage allocation overflow bugs,
87800         but doesn't change user-visible behavior otherwise.
87801
87802 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87803
87804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87805         (jm_PREREQ_EXCLUDE): New macro.
87806
87807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87808
87809         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87810         tm to be declared.
87811
87812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87813
87814         * lib/hash.c: Remove '2001' from copyright notice.
87815
87816 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87817
87818         * lib/full-write.h: New file.
87819         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87820         * lib/full-write.c: Correct credits, as cccp.c no longer
87821         exists and anyway it was so heavily changed from the old cccp
87822         code as to be unrecognizable.  Include full-write.h.
87823         (full_write): Return size_t, with short writes meaning failure.
87824         All callers changed.  This fixes a bug with large buffers
87825         on 64-bit hosts.
87826         * lib/utime.c: Include full-write.h.
87827
87828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87829
87830         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87831         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87832         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87833         Include if available.
87834         (<xalloc.h>): Include
87835         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87836         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87837         collide with FNM macros.
87838         (struct patopts): New struct.
87839         (struct exclude): Use it, as exclude patterns now come with options.
87840         (new_exclude): Support above changes.
87841         (new_exclude, add_exclude_file):
87842         Initial size must now be a power of two to simplify overflow checking.
87843         (free_exclude, fnmatch_no_wildcards): New function.
87844         (excluded_filename): No longer requires options arg, as the options
87845         are determined by add_exclude.  Now returns bool, not int.
87846         (excluded_filename, add_exclude):
87847         Add support for the fancy new exclusion options.
87848         (add_exclude, add_exclude_file): Now takes int options arg.
87849         Check for arithmetic overflow when computing sizes.
87850         (add_exclude_file): xrealloc might modify errno, so don't
87851         realloc until after errno might be used.
87852
87853         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87854         New macros.
87855         (free_exclude): New decl.
87856         (add_exclude, add_exclude_file): Now takes int options arg.
87857         (excluded_filename): No longer requires options arg, as the options
87858         are determined by add_exclude.  Now returns bool, not int.
87859
87860 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87861
87862         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87863
87864 2001-08-27  Jim Meyering  <meyering@lucent.com>
87865
87866         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87867
87868         * lib/version-etc.c (N_): Remove definition.
87869         Revert most of last change.
87870         Instead, simply don't mark the `Copyright...' string for translation.
87871         Based on advice from Paul Eggert.
87872
87873         * lib/strtoxmax.c: Tweak comment.
87874
87875 2001-08-26  Jim Meyering  <meyering@lucent.com>
87876
87877         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87878
87879         * m4/xstrtoimax.m4: New file.
87880         * m4/xstrtoumax.m4: Add comments explaining why we
87881         AC_REPLACE_FUNCS(strtol).
87882
87883 2001-08-26  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87886         of copyright with `%s' so translators don't get an untranslated
87887         message in 2002.
87888         (COPYRIGHT_YEAR): Define.
87889         (version_etc): Use fprintf rather than fputs.
87890         Suggestion from Ulrich Drepper.
87891
87892         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87893
87894         * lib/strtoll.c: New file, from GNU libc.
87895         * lib/xstrtoimax.c: New file.
87896
87897         * lib/xstrtol.h: Add xstrtoimax.
87898         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87899         * lib/strtoimax.c: New file.  Likewise, but first define
87900         STRTOUXMAX_SIGNED.
87901
87902         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87903         ...
87904         * lib/strtoxmax.c: ... then renamed to this.
87905
87906 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87907
87908         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87909         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87910         (jm_AC_TYPE_INTMAX_T): New macro.
87911         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87912
87913         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87914
87915         * m4/longlong.m4: Renamed from ulonglong.m4.
87916         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87917         * m4/uintmax_t.m4: Removed.
87918
87919 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87920
87921         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87922         Port to Solaris 8, where 'sed' requires a space after the 'r'
87923         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87924         Redirect output to $tmp just once.
87925
87926 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87927
87928         * lib/addext.c (<errno.h>): Include.
87929         (errno): Declare if not defined.
87930         (addext): Work correctly when pathconf returns -1 and leaves
87931         errno alone because there is no limit.  Also, work even if
87932         pathconf returns a value greater than SIZE_MAX.
87933
87934 2001-08-12  Jim Meyering  <meyering@lucent.com>
87935
87936         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87937         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87938         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87939         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87940         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87941         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87942         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87943         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87944         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87945         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87946         utime.m4, utimes.m4, xstrtoumax.m4:
87947         Quote the first argument in each use of AC_DEFUN.
87948
87949 2001-08-12  Jim Meyering  <meyering@lucent.com>
87950
87951         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87952         Simply `return getcwd (NULL, 0);'.
87953         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87954         Use 1300 as initial value for length, not PATH_MAX.
87955
87956         * lib/pathmax.h: Clean up cpp syntax.
87957
87958 2001-08-12  Jim Meyering  <meyering@lucent.com>
87959
87960         * lib/gettimeofday.c: New file.
87961         * lib/gtod.h: New file.
87962         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87963
87964 2001-08-05  Jim Meyering  <meyering@lucent.com>
87965
87966         * m4/jm-macros.m4: Require autoconf-2.52.
87967
87968 2001-08-04  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87971         stmt, to get in sync with glibc.
87972
87973 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87974
87975         The following changes are from gettext 0.10.39 as maintained by
87976         Bruno Haible.
87977
87978         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87979         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87980         with inverted sense.  All uses changed.
87981
87982         * lib/mbswidth.c: Don't include <limits.h>.
87983         Include <stdlib.h> and <string.h> unconditionally.
87984         (iswcntrl, mbsinit, ISCNTRL): New macros.
87985         (mbsnwidth): Use K&R style function declarations.
87986         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87987         can optimize it when MB_CUR_MAX == 1.
87988         The width of control characters is zero, not 1.
87989
87990 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87991
87992         The following changes are from gettext 0.10.39 as maintained by
87993         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87994
87995         * m4/codeset.m4: Upgrade to serial AM1.
87996         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87997         all uses changed.  Quote first arg of AC_DEFUN.
87998         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87999
88000         * m4/iconv.m4: Upgrade to serial AM2.
88001         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88002         Add --with-libconv-prefix.
88003         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88004         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88005         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88006         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88007         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88008
88009         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88010         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88011         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88012         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88013         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88014         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88015         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88016         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88017         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88018
88019         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88020         string.h any more.
88021
88022         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88023         not the default value.
88024
88025         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88026         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88027         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88028         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88029         Also check for iswcntrl, used for wcwidth fallback.
88030         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88031         to Autoconf 2.13.
88032
88033 2001-08-03  Jim Meyering  <meyering@lucent.com>
88034
88035         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88036         as it was in the original.  Reported by Paul Eggert.
88037
88038 2001-07-16  Jim Meyering  <meyering@lucent.com>
88039
88040         * m4/gettimeofday.m4: New file.
88041         Prompted by a report from Bernhard Baehr.
88042
88043 2001-07-15  Jim Meyering  <meyering@lucent.com>
88044
88045         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88046         stuff. Now it's in ../Makefile.cfg.
88047
88048 2001-07-15  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88051         (BUILT_SOURCES): Add unlocked-io.h.
88052         (io_functions): Define.
88053         (unlocked-io.h): New rule.
88054         (DISTCLEANFILES): Add unlocked-io.h.
88055         (all-local): Depend on unlocked-io.h, to ensure it is created.
88056
88057         * lib/unlocked-io.hin: New file
88058
88059         * lib/regex.c: Update from glibc.
88060
88061 2001-07-05  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88064         recommendation.
88065         (libfetish_a_SOURCES): Put all .h files here instead.
88066         Remove a thus-exposed (better checks in automake) duplicate and
88067         two unnecessary .h files.
88068
88069 2001-07-04  Jim Meyering  <meyering@lucent.com>
88070
88071         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88072         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88073         distcheck failure.
88074
88075 2001-07-02  Jim Meyering  <meyering@lucent.com>
88076
88077         The following changes were prompted by suggestions from Bruno Haible.
88078
88079         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88080         is now generated.
88081         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88082         definition of EXTRA_DIST.
88083         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88084         ensure that the generated file is created/updated whenever the list
88085         of $(unlocked_functions) is changed.
88086         (jm-glibc-io.m4): New rule.
88087         (unlocked-io.h): New rule -- currently unused.
88088
88089 2001-06-24  Jim Meyering  <meyering@lucent.com>
88090
88091         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88092         unmatched right bracket, rather than kludging it with an extra,
88093         falsely-matching quote in a comment.  Patch by Akim Demaille.
88094
88095 2001-06-11  Jim Meyering  <meyering@lucent.com>
88096
88097         * lib/regex.c: Update from GNU libc.
88098
88099 2001-05-27  Jim Meyering  <meyering@lucent.com>
88100
88101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88102         Check for ut_type in struct utmp.
88103
88104 2001-05-27  Jim Meyering  <meyering@lucent.com>
88105
88106         * lib/readutmp.h (UT_TYPE): Define.
88107
88108 2001-05-24  Jim Meyering  <meyering@lucent.com>
88109
88110         * lib/argmatch.c: Include "quote.h".
88111         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88112         quote function.  Reported by Göran Uddeborg.
88113
88114 2001-05-22  Jim Meyering  <meyering@lucent.com>
88115
88116         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88117         now that we use the package-supplied version unconditionally.
88118         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88119
88120 2001-05-21  Jim Meyering  <meyering@lucent.com>
88121
88122         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88123         shell syntax errors.
88124
88125 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88126
88127         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88128
88129 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88130
88131         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88132         Don't bother to check library strftime, since
88133         we'll be using our own my_strftime function anyway.
88134         Define my_strftime instead of strftime.
88135
88136 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88137
88138         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88139         which is not yet declared.
88140
88141 2001-05-15  Jim Meyering  <meyering@lucent.com>
88142
88143         * m4/regex.m4: Use proper quoting so brackets appear in the test
88144         program.
88145         Reported by, and with help from, Bruno Haible.
88146
88147 2001-05-13  Jim Meyering  <meyering@lucent.com>
88148
88149         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88150         undefined.
88151
88152 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88153
88154         dirname code cleanup.  base_name now behaves more compatibly
88155         with POSIX basename when given file names that have trailing
88156         slashes, and similarly for dir_name.  Add new primitives
88157         base_len and dir_len.  Put the directory-name-related decls
88158         into dirname.h.
88159
88160         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88161         * lib/backupfile.c (base_name): Likewise.
88162         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88163         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88164         * lib/makepath.c (strip_trailing_slashes): Likewise.
88165         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88166         ISSLASH): Likewise.
88167         * lib/rename.c (strip_trailing_slashes): Likewise.
88168         * lib/same.c (base_name): Likewise.
88169         * lib/stripslash.c (ISSLASH): Likewise.
88170
88171         * lib/addext.c: Include <dirname.h> after size_t is defined.
88172         * lib/backupfile.c: Likewise.
88173
88174         * lib/addext.c (addext): Use base_len to trim redundant
88175         trailing slashes instead of doing it ourselves.
88176         But do not trim the last slash if it is not redundant.
88177
88178         * lib/backupfile.c (find_backup_file_name,
88179         max_backup_version): Use base_len instead of rolling it ourselves.
88180         Handle the case of "" and (on DOS) "C:" correctly.
88181
88182         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88183         needed. Include <string.h>, <dirname.h>.
88184         (base_name): Allow file names ending in slashes, other than names
88185         that are all slashes.  In this case, return the basename followed
88186         by the slashes.  This is more general, and can be used in places
88187         where the original base_name purposely had an assertion failure.
88188         (base_len): New function.
88189
88190         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88191         Do not include <assert.h>; no longer needed.
88192         Include xalloc.h.
88193         (memrchr): Remove decl.
88194         (dir_name_r): Remove.
88195         (dir_len): Renamed from dirlen.  All callers changed.
88196         Rewrite in terms of base_name, for simplicity and consistency.
88197         (dir_name): Never return NULL.  All callers changed.
88198         Do not include <stdlib.h> in test program; no longer needed.
88199         return 0; is fine for test program.
88200
88201         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88202         New macros.
88203         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88204
88205         * lib/path-concat.c (path_concat): Use base_len to compute
88206         base length, not strlen; this means we cannot rely on memcpy
88207         to null-terminate.
88208
88209         * lib/same.c (STREQ): Remove.
88210         (same_name): Handle the case where the basename ends in trailing '/'.
88211
88212         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88213         a slash was stripped.  Do not strip the last slash after a
88214         file system prefix.
88215
88216 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88217
88218         * lib/Makefile.am (libfetish_a_SOURCES):
88219         Add strftime.c, since we now compile it on all hosts.
88220
88221         * lib/strftime.c (my_strftime):
88222         Define to nstrftime if emacs, but only if my_strftime is not defined.
88223         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88224         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88225         Add one more extra argument: a nanoseconds value.
88226         All uses changed.
88227         (ns): New macro.
88228         (my_strftime function): Add %N format.
88229         (emacs_strftimeu): Renamed from emacs_strftime,
88230         with extra ut argument.
88231
88232 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88233
88234         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88235
88236 2001-04-21  Jim Meyering  <meyering@lucent.com>
88237
88238         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88239         doesn't interfere.
88240
88241 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88242
88243         * m4/ftruncate.m4: Check for chsize.
88244         Link with ftruncate.o unconditionally if ftruncate is missing.
88245         This was required when cross-compiling to i586-mingw32msvc.
88246
88247 2001-04-08  Jim Meyering  <meyering@lucent.com>
88248
88249         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88250         recomputed; that's necessary when the offset spans a DST transition.
88251         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88252
88253 2001-04-02  Jim Meyering  <meyering@lucent.com>
88254
88255         * lib/regex.h, regex.c: Update from GNU libc.
88256
88257 2001-03-24  Jim Meyering  <meyering@lucent.com>
88258
88259         * m4/jm-macros.m4: Require autoconf-2.49d.
88260
88261 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88262
88263         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88264
88265 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88268
88269 2001-03-17  Jim Meyering  <meyering@lucent.com>
88270
88271         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88272         now that the version in autoconf is equivalent.
88273         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88274
88275         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88276         Suggestion from Akim Demaille.
88277
88278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88279         (jm_PREREQ_TEMPNAME): New function.
88280
88281 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88282
88283         * lib/tempname.c (uint64_t): Define to uintmax_t if
88284         not defined, and if UINT64_MAX is not defined.
88285         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88286         Reported by John David Anglin.
88287
88288 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88289
88290         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88291         resolve alias if codeset is empty.
88292         * lib/config.charset (BeOS): Use wildcard syntax.
88293
88294 2001-03-13  Jim Meyering  <meyering@lucent.com>
88295
88296         * lib/path-concat.c (path_concat)
88297         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88298         concatenating e.g., `C:' and `foo'.
88299         From Bruno Haible.
88300
88301 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88302
88303         * lib/localcharset.c (locale_charset): Don't use
88304         setlocale(LC_CTYPE,NULL). Don't return NULL.
88305         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88306
88307 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88308
88309         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88310         support for DOS/DJGPP.
88311
88312 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88313
88314         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88315         lacks mkstemp.  Compile our own tempname.c if we compile our own
88316         mkstemp.c, as mkstemp relies on tempname.
88317
88318 2001-03-01  Jim Meyering  <meyering@lucent.com>
88319
88320         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88321         AH_VERBATIM really does output its argument verbatim.
88322
88323 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88324
88325         * lib/Makefile.am (libfetish_a_SOURCES):
88326         Add dup-safer.c, fopen-safer.c.
88327         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88328
88329         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88330         * lib/unistd-safer.h: New files.
88331
88332 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88333
88334         The mkstemp replacement is taken from glibc 2.2.2, with some
88335         portability fixes for use outside glibc, as follows:
88336
88337         * lib/tempname.c (struct_stat64): New macro.
88338         (direxists, __gen_tempname): Use it.
88339         This avoids a portability problem with Solaris 8.
88340
88341         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88342         (<stddef.h>, <stdint.h>, <string.h>):
88343         Include only if STDC_HEADERS || _LIBC.
88344         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88345         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88346         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88347         (__set_errno): Define this macro if <errno.h> doesn't.
88348         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88349         Define these macros if <stdio.h> doesn't.
88350         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88351         Define these macros if <sys/stat.h>
88352         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88353         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88354         __xstat64): Define if not _LIBC.
88355         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88356         (__gen_tempname): Invoke gettimeofday only if
88357         HAVE_GETTIMEOFDAY || _LIBC;
88358         otherwise, fall back on plain "time".
88359         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88360
88361         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88362
88363         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88364
88365 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88366
88367         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88368
88369 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88370
88371         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88372         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88373         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88375
88376 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88377
88378         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88379         Remove workaround macros for hosts that have mbrtowc but not
88380         mbstate_t, as we now insist on proper declarations for both
88381         before using mbrtowc.
88382
88383 2001-02-17  Jim Meyering  <meyering@lucent.com>
88384
88385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88386         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88387         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88388         UnixWare 7.1.1.
88389
88390         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88391         rather than AC_CACHE_VAL.
88392
88393 2001-02-17  Jim Meyering  <meyering@lucent.com>
88394
88395         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88396         around included file name.
88397
88398         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88399
88400         * lib/strftime.c: Update from GNU libc (the only changes were to
88401         comments).
88402
88403 2001-02-17  Jim Meyering  <meyering@lucent.com>
88404
88405         * lib/regex.c: Update from libc.
88406
88407 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88408
88409         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88410         clash.
88411
88412 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88413
88414         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88415         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88416         Reported by Mark Hounschell via Paul Eggert.
88417
88418 2001-02-07  Jim Meyering  <meyering@lucent.com>
88419
88420         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88421
88422 2001-02-05  Jim Meyering  <meyering@lucent.com>
88423
88424         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88425         it includes the patch required for `large file' support with at least
88426         HP-UX's 10.20 /bin/cc.
88427
88428 2001-02-03  Jim Meyering  <meyering@lucent.com>
88429
88430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88431         AS_IF, now that it works once again (mysteriously).
88432         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88433
88434 2001-01-30  Jim Meyering  <meyering@lucent.com>
88435
88436         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88437         * m4/chown.m4: Rename conftestchown to conftest.chown.
88438         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88439         s/conftestdir2/conftest.d2/.
88440         * m4/utimes.m4: s/conftestdata/conftest.data/
88441         Inspired by Pavel Roskin's change in autoconf.
88442
88443 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88444
88445         * lib/config.charset: Update for FreeBSD 4.2.
88446
88447 2001-01-27  Jim Meyering  <meyering@lucent.com>
88448
88449         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88450         a use of AS_IF.
88451         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88452
88453 2001-01-26  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88456         quotearg.c includes it.
88457
88458 2001-01-26  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/quotearg.c: Include stddef.h.
88461         * lib/quote.c: Include stddef.h.
88462         Reported by Axel Kittenberger.
88463
88464         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88465         line in double quotes so that it evokes a better diagnostic.
88466         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88467         Reported by Axel Kittenberger.
88468
88469 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88470
88471         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88472         as if it was a `charset'.
88473
88474 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88475
88476         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88477         has const.
88478
88479 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88480
88481         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88482         to avoid a warning.  Add back 'const' to inptr.
88483
88484 2001-01-20  Jim Meyering  <meyering@lucent.com>
88485
88486         Be sure that headers are checked before used in code compiled
88487         for the type checks.
88488         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88489         In place of that, invoke jm_CHECK_ALL_TYPES.
88490         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88491         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88492         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88493         The check for ssize_t was mistakenly run before the test for unistd.h.
88494
88495         The configure-time check for stdbool.h was missing.
88496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88497         (jm_PREREQ_HASH): New function.
88498
88499 2001-01-17  Jim Meyering  <meyering@lucent.com>
88500
88501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88502         for autoconf-2.49c.
88503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88504
88505 2001-01-16  Jim Meyering  <meyering@lucent.com>
88506
88507         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88508         From Bruno Haible.
88509
88510 2001-01-14  Jim Meyering  <meyering@lucent.com>
88511
88512         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88513         foo and bar.  Create conftestdir/ in the script, not in the C code.
88514         Remove directories in the script, not in the C code.
88515         Remove conftestdir{,2} before trying to create the directory.
88516         Make the entire configure script fail if the mkdir fails.
88517
88518 2001-01-14  Jim Meyering  <meyering@lucent.com>
88519
88520         * lib/rename.c: New file.  From Volker Borchert.
88521         Include stdlib.h, string.h or strings.h, and xalloc.h.
88522         Use strip_trailing_slashes rather than open-coding it.
88523
88524 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88525
88526         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88527
88528 2001-01-03  Jim Meyering  <meyering@lucent.com>
88529
88530         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88531         of local `inptr' to avoid warning with some system declarations of
88532         iconv.
88533
88534 2001-01-02  Volker Borchert  <bt@teknon.de>
88535
88536         * m4/rename.m4: New file.
88537         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88538
88539 2001-01-01  Jim Meyering  <meyering@lucent.com>
88540
88541         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88542         even on systems with utmpx.h.  It's necessary for the declaration of
88543         utmp's ut_user member.  Reported by Andreas Jaeger.
88544
88545         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88546         available. They are required for the declarations of getgrgid and
88547         getpwuid resp.
88548         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88549         Reported by Andreas Jaeger.
88550
88551 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88552
88553         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88554         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88555         so `make install' also works in VPATH builds.
88556
88557 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88558
88559         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88560         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88561         can be used in subdirectories.
88562
88563 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88564
88565         * lib/modechange.c: Do not assume that mode_t uses the
88566         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88567         the other-execute bit of FOO even if S_IXOTH != 1.
88568
88569         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88570         WOTH, XOTH, ALLM): New macros.
88571         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88572          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88573         Use them.
88574         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88575         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88576         (mode_compile):
88577         No need to use uintmax_t; unsigned long is long enough.
88578         Don't bother to get suffix since we don't use it.
88579
88580 2000-12-26  Jim Meyering  <meyering@lucent.com>
88581
88582         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88583         better with autoheader.
88584
88585 2000-12-24  Jim Meyering  <meyering@lucent.com>
88586
88587         * lib/hash.c (is_prime): Return explicit boolean values.
88588         (hash_get_first): Return NULL to appease Irix5.6's 89.
88589         Reported by Nelson Beebe.
88590
88591 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88592
88593         * lib/localcharset.c (locale_charset): Add support for Win32.
88594
88595 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88596
88597         * lib/physmem.h, lib/physmem.c: New files.
88598
88599         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88600         (noinst_HEADERS): Add physmem.h.
88601
88602         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88603         't' for compatibility with Solaris 8 sort.
88604
88605 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88606
88607         * lib/config.charset: Add support for BeOS.
88608
88609 2000-12-17  Jim Meyering  <meyering@lucent.com>
88610
88611         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88612         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88613
88614 2000-12-16  Jim Meyering  <meyering@lucent.com>
88615
88616         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88617         N and M) would have treated it like `chown N:N FILE'.
88618
88619         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88620
88621 2000-12-16  Jim Meyering  <meyering@lucent.com>
88622
88623         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88624         SHELLS_FILE to a file name that's useful on djgpp systems.
88625         Include stdlib.h.
88626         (ADDITIONAL_DEFAULT_SHELLS): Define.
88627         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88628         Based mostly on a patch from Prashant TR.
88629
88630 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88631
88632         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88633         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88634         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88635
88636 2000-12-08  Andreas Schwab  <schwab@suse.de>
88637
88638         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88639         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88640
88641 2000-12-07  Jim Meyering  <meyering@lucent.com>
88642
88643         * lib/stripslash.c (ISSLASH): Define.
88644         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88645         `/'.
88646         From Prashant TR.
88647
88648         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88649         (dir_name_r): Declare this function as static.
88650         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88651         manifest itself on a name containing a mix of slashes and
88652         backslashes.
88653         Make this function work with names starting with a DOS-style
88654         drive letter and colon prefix.
88655         (dir_name): Append `.' if necessary.
88656         Based mostly on patches from Prashant TR and Eli Zaretskii.
88657
88658         * lib/dirname.h (dir_name_r): Remove prototype.
88659
88660 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88661
88662         * m4/off_t-format.m4: Remove this file.
88663         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88664
88665 2000-12-06  Jim Meyering  <meyering@lucent.com>
88666
88667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88668         replacement strtoull, we may well need the replacement strtoul, too.
88669         Check for declarations of strtoul and strtoull.
88670         Check for strtol.  Mainly as a cue to cause automake to include
88671         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88672         Check for limits.h -- strtol.c needs it.
88673
88674 2000-12-05  Jim Meyering  <meyering@lucent.com>
88675
88676         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88677
88678 2000-12-04  Jim Meyering  <meyering@lucent.com>
88679
88680         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88681         Also include memory.h, stdlib.h, unistd.h if appropriate.
88682         Reported by Andreas Jaeger (conflicting declaration of malloc).
88683
88684 2000-12-02  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88687         * m4/jm-macros.m4 (jm_MACROS): require it.
88688
88689 2000-12-02  Jim Meyering  <meyering@lucent.com>
88690
88691         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88692
88693 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88694
88695         * lib/memrchr.c: Include <config.h> before any system include file.
88696
88697 2000-11-30  Jim Meyering  <meyering@lucent.com>
88698
88699         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88700
88701 2000-11-30  Jim Meyering  <meyering@lucent.com>
88702
88703         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88704
88705 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88706
88707         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88708
88709 2000-11-26  Jim Meyering  <meyering@lucent.com>
88710
88711         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88712
88713 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88714
88715         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88716         size of (size_t) -1; it's not portable.
88717
88718 2000-11-17  Jim Meyering  <meyering@lucent.com>
88719
88720         * lib/strstr.c: Update from GNU libc.
88721
88722 2000-11-17  Akim Demaille  <akim@epita.fr>
88723
88724         * lib/obstack.h: Formatting changes.
88725         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88726         prevent type checking.
88727         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88728         cast the value to (void *): assigning a `foo *' to a `void *'
88729         variable is valid.
88730         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88731
88732 2000-11-16  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88735
88736 2000-11-11  Jim Meyering  <meyering@lucent.com>
88737
88738         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88739
88740 2000-11-10  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/obstack.h: Update from GNU libc.
88743         * lib/obstack.c: Likewise.
88744
88745 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88746
88747         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88748
88749 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88750
88751         * lib/getusershell.c (setusershell): Use rewind rather than
88752         fseek/fseeko, to avoid configuration hassles with fseeko.
88753         Don't bother opening SHELLS_FILE if shellstream is NULL;
88754         it's not necessary.
88755
88756 2000-11-05  Jim Meyering  <meyering@lucent.com>
88757
88758         * lib/makepath.h (make_dir): Declare.
88759         * lib/makepath.c (make_dir): Remove `static' attribute.
88760         Tweak a comment.
88761
88762 2000-11-04  Jim Meyering  <meyering@lucent.com>
88763
88764         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88765
88766 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88767
88768         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88769         last one in a bucket, advance to the next bucket.
88770
88771 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88772
88773         * lib/fnmatch.c: Do not comment out all the code if we are using
88774         the GNU C library, because in some cases we are replacing buggy
88775         code in the GNU C library itself.
88776
88777 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88778
88779         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88780         (regex_compile): Catch bogus \(\1\).
88781
88782 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88783
88784         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88785         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88786         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88787
88788 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88789
88790         * lib/error.h, getline.h, modechange.h:
88791         Remove "2000" from Copyright line, as the file hasn't been
88792         changed this year other than in the copyright notice.
88793
88794         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88795         was changed this year.
88796
88797 2000-10-29  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88800         renaming.
88801         * m4/ls-mntd-fs.m4: Likewise
88802
88803 2000-10-29  Jim Meyering  <meyering@lucent.com>
88804
88805         * lib/xstat.in: Fix grammar in comment.
88806
88807 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88808
88809         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88810         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88811         doesn't define __restrict_arr.
88812
88813 2000-10-28  Jim Meyering  <meyering@lucent.com>
88814
88815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88816         (jm_PREREQ_MEMCHR): New function.
88817
88818 2000-10-28  Jim Meyering  <meyering@lucent.com>
88819
88820         * lib/memchr.c: Update from libc.
88821         Adjust for portability:
88822         [HAVE_STDLIB_H]: Include stdlib.h.
88823         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88824         Undef __memchr, too.
88825         [!weak_alias]: Define __memchr to memchr.
88826
88827         * lib/regex.c: Update from libc.
88828         * lib/regex.h: Likewise.
88829         * lib/getopt1.c: Likewise.
88830         * lib/memcmp.c: Likewise.
88831
88832         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88833         Avoid using fseek, when possible -- it's broken by design.
88834         Patch by Ulrich Drepper.
88835
88836 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88837
88838         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88839         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88840         Giving in to popular pressure to shut up the compiler with casts.
88841
88842 2000-10-26  Jim Meyering  <meyering@lucent.com>
88843
88844         * lib/strftime.c: Update from libc.
88845
88846 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88847
88848         * regex.c: More `unsigned char' -> `re_char' changes.
88849         Also change several `int' into `re_wchar_t'.
88850         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88851         (PUSH_FAILURE_POINTER): Don't cast any more.
88852         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88853         We want GCC to complain, since this piece of code makes
88854         re_match non-reentrant, which *should* be fixed.
88855         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88856         (EXTEND_BUFFER): Use RETALLOC.
88857         (SET_LIST_BIT): Don't cast.
88858         (re_wchar_t): New type.
88859         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88860         that those two functions will always properly return.
88861         (IMMEDIATE_QUIT_CHECK): Cast to void.
88862         (analyse_first): Use recursion rather than an explicit stack.
88863         (re_compile_fastmap): Can't fail anymore.
88864         (re_search_2): Don't check re_compile_fastmap for failure.
88865         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88866         Now also sets the new value (passed in a new argument).
88867         (re_match_2_internal): Use it.
88868         Also, use a new var `reg' of type size_t when looping through regs
88869         rather than reuse the inappropriate `mcnt'.
88870
88871 2000-10-25  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/obstack.c: Update from libc.
88874
88875 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88876
88877         * regex.c (regex_compile): Change the way of handling a range from
88878         a char less than 256 to a char not less than 256.
88879
88880 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88881
88882         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88883         NT-Emacs only.
88884         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88885         so that re_search functions only quit when callers expect them to.
88886
88887 2000-10-23  Jim Meyering  <meyering@lucent.com>
88888
88889         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88890         wrong.  That set_locale call must not have any side effects.
88891         From Paul Eggert.
88892
88893 2000-10-22  Jim Meyering  <meyering@lucent.com>
88894
88895         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88896         [CYCLIC]: Remove now-unused definition.
88897
88898         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88899         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88900         Suggestion from Ulrich Drepper.
88901
88902 2000-10-21  Jim Meyering  <meyering@lucent.com>
88903
88904         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88905         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88907
88908 2000-10-21  Jim Meyering  <meyering@lucent.com>
88909
88910         * lib/dirname.c (memrchr): Declare if necessary.
88911         (dir_name): Remove the restriction that there be no
88912         trailing slashes.  Now, this code skips past them, effectively
88913         ignoring them.
88914         [TEST_DIRNAME] (main): New unit tests.
88915
88916         * lib/memrchr.c: New file from GNU libc.
88917         Undef __memrchr, too.
88918         [!weak_alias]: Define __memrchr to memrchr.
88919         Guard weak_alias use with `#ifdef weak_alias'.
88920
88921 2000-10-21  Jim Meyering  <meyering@lucent.com>
88922
88923         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88924         (dir_name): Use dir_name_r.
88925         * lib/dirname.h (dir_name_r): Declare it.
88926
88927 2000-10-17  Jim Meyering  <meyering@lucent.com>
88928
88929         * lib/quote.h (PARAMS): Define and use.
88930         Reported by Akim Demaille.
88931
88932         * lib/getopt.c: Update from libc.
88933
88934 2000-10-16  Jim Meyering  <meyering@lucent.com>
88935
88936         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88937         setlocale.
88938         From Jan Fedak.
88939
88940 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88941
88942         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88943
88944 2000-09-25  Jim Meyering  <meyering@lucent.com>
88945
88946         * lib/md5.h (rol): Define (from GnuPG).
88947
88948         * lib/sha.c: Give credit (GnuPG) where due.
88949         (M): Use rol rather than open-coding it.
88950         Add a FIXME comment.
88951
88952 2000-09-21  Jim Meyering  <meyering@lucent.com>
88953
88954         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88955         Reported by Michael Stone.
88956
88957 2000-09-20  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88960         (noinst_HEADERS): Add sha.h.
88961         Based on code from Scott G. Miller and from GnuPG.
88962
88963 2000-09-18  Jim Meyering  <meyering@lucent.com>
88964
88965         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88966         LIBS. Otherwise, everyone ends up linking with -lelf for some
88967         configurations.
88968         Reported by Mike Stone.
88969
88970 2000-09-15  Jim Meyering  <meyering@lucent.com>
88971
88972         * lib/regex.c: Update from libc.
88973
88974 2000-09-10  Jim Meyering  <meyering@lucent.com>
88975
88976         * lib/getopt.c (_getopt_internal): Update from glibc.
88977
88978 2000-09-09  Jim Meyering  <meyering@lucent.com>
88979
88980         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88981         think it should be used as a general replacement for isascii.
88982         * lib/fnmatch.c: Likewise.
88983         * lib/mbswidth.c: Likewise
88984         * lib/regex.c: Likewise.
88985
88986         Don't use atoi.
88987         * lib/userspec.c: Include sys/param.h and limits.h.
88988         Include xstrtol.h.
88989         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88990         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88991         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88992         UID, GID.  Check range.
88993
88994 2000-09-06  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/getopt.c (_getopt_internal): Update from glibc.
88997
88998 2000-08-30  Jim Meyering  <meyering@lucent.com>
88999
89000         * lib/strftime.c: Merge in changes from GNU libc.
89001
89002 2000-08-26  Jim Meyering  <meyering@lucent.com>
89003
89004         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89005         * m4/fpending.m4: New file.
89006
89007 2000-08-26  Jim Meyering  <meyering@lucent.com>
89008
89009         * lib/closeout.c: Include "__fpending.h".
89010         (close_stdout_status): Return right away if there's nothing to flush.
89011
89012         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89013         * lib/__fpending.c: New file.
89014         * lib/__fpending.h: New file.
89015
89016 2000-08-20  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89019         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89020         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89021
89022 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89023
89024         Improve fileutils installation on systems where running
89025         programs (like install) can't be unlinked.
89026         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89027         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89028
89029 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89030
89031         Standardize on "memory exhausted" instead of "Memory exhausted"
89032         or "virtual memory exhausted".
89033         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89034         "virtual memory exhausted".
89035         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89036         our own message.
89037         * lib/userspec.c (parse_user_spec): Likewise.
89038         * lib/bumpalloc.h: comment fix
89039         * lib/same.c, userspec.c: Include xalloc.h.
89040
89041         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89042         not char *const and pointing to a constant array.
89043         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89044         (xrealloc): Comment fix.
89045
89046         * lib/userspec.c (parse_user_spec):
89047         Don't translate a message until just before returning,
89048         to avoid unnecessary translation.
89049
89050 2000-08-07  Jim Meyering  <meyering@lucent.com>
89051
89052         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89053         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89054         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89055         getgroups.c, gethostname.c, getopt.h, group-member.c,
89056         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89057         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89058         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89059         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89060         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89061         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89062         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89063         yesno.c: Back out Copyright date changes for each file with no change
89064         this year.  This eases coordination with other programs using the same
89065         source code modules.  From Paul Eggert.
89066
89067 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89068
89069         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89070         not char, for compatibility with glibc 2.1.3 strftime.c.
89071
89072 2000-08-03  Greg McGary  <greg@mcgary.org>
89073
89074         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89075         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89076         (EXTEND_BUFFER): Use them.
89077
89078 2000-08-01  Jim Meyering  <meyering@lucent.com>
89079
89080         * lib/dirname.c (ISSLASH): Define.
89081         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89082         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89083         both `\' and `/' may be use as path separators.
89084         Based on a patch from Prashant TR.
89085
89086 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89087
89088         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89089         slot vector a constant, since it might get modified.
89090
89091 2000-07-31  Jim Meyering  <meyering@lucent.com>
89092
89093         * lib/xmalloc.c: Use `virtual memory exhausted', not
89094         `Memory exhausted'.
89095         * lib/obstack.c (print_and_abort): Likewise.
89096
89097 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89098
89099         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89100         buffer, so that the caller can always quote one small
89101         component of a "memory exhausted" message in slot 0.
89102         From a suggestion by Jim Meyering.
89103
89104 2000-07-30  Jim Meyering  <meyering@lucent.com>
89105
89106         * lib/makepath.c (make_path): Quote the other instance, too.
89107
89108         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89109         (STATIC_BUF_SIZE): Define.
89110         (quotearg_n_options): Use only statically allocated storage when
89111         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89112         than STATIC_BUF_SIZE.
89113
89114 2000-07-29  Jim Meyering  <meyering@lucent.com>
89115
89116         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89117         * lib/dirname.c (dir_name): Likewise.
89118
89119         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89120         `/'.
89121
89122         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89123         (dir_name): Assert that there are no trailing slashes.
89124
89125 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89126
89127         * lib/mbswidth.h (mbswidth): Add a flags argument.
89128         (mbswidth): New declaration.
89129         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89130         * lib/mbswidth.c (mbswidth): Add a flags argument.
89131         (mbsnwidth): New function.
89132
89133 2000-07-24  Jim Meyering  <meyering@lucent.com>
89134
89135         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89136
89137 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89138
89139         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89140
89141 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89142
89143         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89144         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89145         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89146         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89147         invoke multibyte primitives.
89148
89149 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89150
89151         * lib/quotearg.c:
89152         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89153         so that mbstate_t is always defined.
89154
89155         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89156         be 1 in at least one GCC installation, and this configuration
89157         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89158         performance on hosts that have mbrtowc but have only unibyte
89159         locales, but I assume these hosts are rare.
89160
89161 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89162
89163         * lib/mbswidth.c (_XOPEN_SOURCE):
89164         Don't define; this causes problems on Solaris 7.
89165         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89166
89167 2000-07-23  Jim Meyering  <meyering@lucent.com>
89168
89169         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89170         too: getgrgid, getpwuid, getuid.
89171
89172 2000-07-23  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/basename.c (base_name): Add an assertion.
89175
89176 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89177
89178         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89179         shadow its mbsinit function.
89180
89181 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89182
89183         * lib/mbswidth.h: New file.
89184         * lib/mbswidth.c: New file.
89185         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89186         (noinst_HEADERS): Add mbswidth.h.
89187
89188 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89189
89190         * lib/config.charset: Add support for FreeBSD. Improve support for
89191         HP-UX and IRIX 6.
89192
89193 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89194
89195         * m4/mbswidth.m4: New file.
89196         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89197
89198 2000-07-15  Jim Meyering  <meyering@lucent.com>
89199
89200         * lib/makepath.c: Include quote.h.
89201         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89202         corresponding argument in a `quote (...)' call.
89203         Give better diagnostics.
89204
89205         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89206         (noinst_HEADERS): Add quote.h.
89207
89208         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89209         from tar's src/misc.c.
89210         * lib/quote.h: New file.  Prototypes for same.
89211
89212 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89213
89214         From a suggestion by Bruno Haible.
89215         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89216         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89217         to decide whether to define the BeOS workaround macro;
89218         this adjusts to the change to AC_MBSTATE_T.
89219
89220 2000-07-14  Jim Meyering  <meyering@lucent.com>
89221
89222         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89223         jm_AC_TYPE_UINTMAX_T.
89224
89225 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89226
89227         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89228
89229         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89230         quotearg_buffer_restyled): Add support for
89231         clocale_quoting_style.  Undo previous change to
89232         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89233         and "{RIGHT QUOTATION MARK}" msgids.
89234
89235 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89236
89237         From a suggestion by Bruno Haible.
89238         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89239         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89240         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89241         and mbstate_t, to a single-part test that simply defines mbstate_t.
89242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89243         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89244
89245 2000-07-10  Jim Meyering  <meyering@lucent.com>
89246
89247         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89248
89249         * m4/gnu-source.m4: Output to confdefs.h directly.
89250         Suggestion from Akim Demaille.
89251
89252 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89253
89254         The old behavior of quoting `like this' doesn't look good with
89255         newer, ISO-style fonts.  See:
89256         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89257
89258         Instead, quote "like this" by default.  Let the translator
89259         tailor the locale-specific quoting behavior by providing
89260         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89261
89262         * lib/quotearg.c (N_): New macro.
89263         (gettext_default): New function.
89264         (quotearg_buffer_restyled): Use
89265         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89266         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89267
89268 2000-07-09  Jim Meyering  <meyering@lucent.com>
89269
89270         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89271         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89272
89273         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89275
89276 2000-07-09  Jim Meyering  <meyering@lucent.com>
89277
89278         * lib/Most files: Update copyright dates to include 2000.
89279
89280 2000-07-08  Jim Meyering  <meyering@lucent.com>
89281
89282         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89283         if not defined.
89284         (xgethostname): Remove now-unnecessary #ifdef.
89285         Move declaration of `err' into loop where it's used.
89286
89287 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89288         and Bruno Haible  <haible@clisp.cons.org>
89289
89290         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89291         only if the test for an object-type mbstate_t fails.  This
89292         prevents us from mistakenly reporting that mbstate_t is a
89293         system object type after we "#define mbstate_t int" to work
89294         around its lack.
89295
89296 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89297         and Bruno Haible  <haible@clisp.cons.org>
89298
89299         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89300
89301 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89302
89303         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89304         to strerror_r.
89305         Include <ctype.h> for use of isalpha.
89306
89307 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89308
89309         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89310         by allocating a larger buffer. Test the gethostname return value for
89311         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89312         returns an error and ENAMETOOLONG isn't defined.
89313
89314 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89315
89316         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89317         dimension.
89318
89319 2000-07-04  Jim Meyering  <meyering@lucent.com>
89320
89321         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89322         of the deprecated AC_CHECKING.
89323
89324 2000-07-04  Jim Meyering  <meyering@lucent.com>
89325
89326         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89327         Reported by Bruno Haible.
89328
89329 2000-07-04  Jim Meyering  <meyering@lucent.com>
89330
89331         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89332         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89333         lacks mbrtowc.
89334
89335 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89336
89337         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89338         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89339
89340 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89341         and Bruno Haible  <haible@clisp.cons.org>
89342
89343         * lib/quotearg.c (mbrtowc):
89344         Assign to *pwc, and return 1 only if result is nonzero.
89345         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89346
89347 2000-07-03  Jim Meyering  <meyering@lucent.com>
89348
89349         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89350
89351 2000-07-03  Jim Meyering  <meyering@lucent.com>
89352
89353         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89354         This is necessary to get a definition of e.g., UTMP_FILE on
89355         HP-UX 10.20.
89356         From Bob Proulx.
89357
89358 2000-07-02  Jim Meyering  <meyering@lucent.com>
89359
89360         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89361
89362         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89363         AC_LIBOBJ(function_name).
89364         * m4/chown.m4: Likewise.
89365         * m4/fnmatch.m4: Likewise.
89366         * m4/ftruncate.m4: Likewise.
89367         * m4/getgroups.m4: Likewise.
89368         * m4/getline.m4: Likewise.
89369         * m4/group-member.m4: Likewise.
89370         * m4/jm-macros.m4: Likewise.
89371         * m4/lstat.m4: Likewise.
89372         * m4/malloc.m4: Likewise.
89373         * m4/memcmp.m4: Likewise.
89374         * m4/nanosleep.m4: Likewise.
89375         * m4/putenv.m4: Likewise.
89376         * m4/realloc.m4: Likewise.
89377         * m4/regex.m4: Likewise.
89378         * m4/stat.m4: Likewise.
89379         * m4/strftime.m4: Likewise.
89380
89381 2000-07-02  Jim Meyering  <meyering@lucent.com>
89382
89383         * lib/quotearg.c (mbstate_t): Don't define here.
89384
89385 2000-07-02  Jim Meyering  <meyering@lucent.com>
89386
89387         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89388
89389 2000-07-01  Jim Meyering  <meyering@lucent.com>
89390
89391         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89392
89393 2000-07-01  Jim Meyering  <meyering@lucent.com>
89394
89395         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89396         problem.
89397
89398 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89399
89400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89401         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89402
89403 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89404
89405         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89406         per change in ../m4/ls-mntd-fs.m4.
89407         (read_filesystem_list): Ignore symbolic links.
89408
89409 2000-06-29  Jim Meyering  <meyering@lucent.com>
89410
89411         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89412         for declaration of strcmp.
89413
89414         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89415
89416         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89417         Avoid warning by casting result to `char *' to remove `const'.
89418
89419 2000-06-28  Jim Meyering  <meyering@lucent.com>
89420
89421         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89422         included by quotearg.c, for which we perform this test.  From
89423         Bruno Haible.
89424
89425 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89426
89427         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89428         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89429         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89430
89431 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89432
89433         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89434
89435 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89436
89437         savedir now sets errno on failure and invokes xmalloc to get memory.
89438         Fix a couple of other minor bugs while we're at it.
89439
89440         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89441         (NAMLEN): Remove macro.
89442         (malloc, realloc): Remove decls.
89443         (stpcpy): Likewise.
89444         ("xalloc.h"): Include.
89445         (NAME_SIZE_DEFAULT): New macro.
89446         (savedir): Use xmalloc / xrealloc to allocate memory.
89447         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89448         Skip "" directory entries.
89449         Use strlen to calculate directory entry length, since the old method
89450         is rarely used these days and isn't worth supporting.
89451         Don't use a pointer after freeing it.
89452         Check for integer overflow when calculating allocation size.
89453         Use memcpy to copy entries, instead of stpcpy.
89454         Set errno properly when returning NULL.
89455         Check for readdir error.
89456
89457 2000-06-26  Jim Meyering  <meyering@lucent.com>
89458
89459         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89460
89461 2000-06-25  Jim Meyering  <meyering@lucent.com>
89462
89463         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89464         Linux header bug when _XOPEN_SOURCE is defined to 500.
89465
89466 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89467
89468         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89469         deficiency.
89470
89471 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89472
89473         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89474         Include xalloc.h.
89475         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89476
89477 2000-06-24  Jim Meyering  <meyering@lucent.com>
89478
89479         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89480         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89481         for which strerror does return char*, but which lacks a conveniently
89482         accessible declaration of the function.  If the compile-test says
89483         strerror_r doesn't work, then resort to a `run'-test that works on
89484         BeOS and segfaults on DEC Unix.
89485
89486 2000-06-24  Jim Meyering  <meyering@lucent.com>
89487
89488         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89489
89490 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89491
89492         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89494
89495 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89496
89497         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89498         (mbrtowc, mbstate_t): Define substitutes if
89499         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89500         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89501         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89502
89503 2000-06-23  Jim Meyering  <meyering@lucent.com>
89504
89505         * m4/afs.m4: Add missing AC_MSG_RESULT.
89506         Reported by Bruno Haible.
89507
89508         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89509         Suggestion from Bruno Haible.
89510
89511 2000-06-23  Jim Meyering  <meyering@lucent.com>
89512
89513         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89514
89515 2000-06-21  Jim Meyering  <meyering@lucent.com>
89516
89517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89518
89519 2000-06-21  Jim Meyering  <meyering@lucent.com>
89520
89521         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89522         (noinst_HEADERS): Add getstr.h.
89523
89524         * lib/getline.c (getstr): Move into a separate file.
89525         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89526         the following changes: new parameter, delim2; both delim[12]
89527         parameters have type `int', not `char'.  The latter would lose
89528         with 8-bit delimiters.
89529         * lib/getstr.h: New file.
89530
89531 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89532
89533         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89534         than 1024, return a memory chunk of least possible size, instead
89535         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89536         Use free/xmalloc instead of xrealloc to avoid copying for very long
89537         paths.
89538
89539 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89540
89541         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89542         the empty string.
89543
89544 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89545
89546         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89547         address, not strdup.  Include <stdlib.h> and don't declare free().
89548
89549 2000-06-19  Jim Meyering  <meyering@lucent.com>
89550
89551         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89552
89553 2000-06-18  Jim Meyering  <meyering@lucent.com>
89554
89555         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89556
89557         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89558         `checking whether...' message to be consistent with that of the
89559         lstat test.
89560
89561 2000-06-18  Jim Meyering  <meyering@lucent.com>
89562
89563         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89564         Besides, these days every porting target provides a mkdir function.
89565
89566         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89567         needed. (this snippet comes from src/system.h).
89568
89569 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89570
89571         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89572
89573 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89574
89575         * lib/human.c (adjust_value): New function.
89576         (human_readable_inexact): Apply rounding style even when
89577         printing approximate values.
89578
89579 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89580
89581         * lib/human.c (human_readable_inexact): Allow an input block
89582         size that is not a multiple of the output block size, and vice versa.
89583         Reported by Piergiorgio Sartor.
89584
89585 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89586
89587         * lib/getdate.y (get_date): Apply relative times after time
89588         zone indicator, not before.  Reported by Todd A. Jacobs.
89589
89590 2000-06-13  Jim Meyering  <meyering@lucent.com>
89591
89592         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89593
89594         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89595
89596 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89597
89598         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89599
89600 2000-06-12  Jim Meyering  <meyering@lucent.com>
89601
89602         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89603         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89604         optional argument.
89605         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89606         the optional argument, `lib'.
89607
89608 2000-06-08  Jim Meyering  <meyering@lucent.com>
89609
89610         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89611
89612 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89613
89614         Rewrite largefile configuration so that we don't need to run
89615         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89616         AC_CANONICAL_HOST in configure.in -- jmm]
89617
89618         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89619         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89620         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89621         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89622         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89623         All uses changed.
89624         Instead of inspecting the output of getconf, try to compile the
89625         test program without and with the macro definition.
89626         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89627         for getconf.  Instead, check for the needed flags by compiling
89628         test programs.
89629
89630 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89631
89632         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89633
89634 2000-06-04  Jim Meyering  <meyering@lucent.com>
89635
89636         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89637         SunOS 4.1.4 for which gid_t is an unsigned type.
89638
89639 2000-06-03  Jim Meyering  <meyering@lucent.com>
89640
89641         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89642         now that autoconf requires that.
89643
89644         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89645         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89646         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89647
89648 2000-06-03  Jim Meyering  <meyering@lucent.com>
89649
89650         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89651
89652 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89653
89654         * m4/glibc21.m4: New file.
89655         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89656
89657 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89658
89659         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89660         newer, don't install charset.alias.
89661         * lib/config.charset: Change the Linux/glibc rules so they become empty
89662         on glibc-2.1 or newer.
89663
89664 2000-06-02  Jim Meyering  <meyering@lucent.com>
89665
89666         * lib/mountlist.c: Back out last change.  Instead, do this...
89667         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89668         me_dummy member using the same `ignore'-testing code.
89669         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89670         fs_type strings.
89671         From Mark D. Roth.
89672
89673 2000-05-29  Jim Meyering  <meyering@lucent.com>
89674
89675         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89676         mounts with the `ignore' attribute.  Based on a patch from
89677         Mark D. Roth.
89678
89679 2000-05-28  Jim Meyering  <meyering@lucent.com>
89680
89681         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89682         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89683         * m4/stat.m4: Likewise.
89684         * m4/lstat.m4: Likewise.
89685         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89686
89687         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89688         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89689
89690 2000-05-26  Jim Meyering  <meyering@lucent.com>
89691
89692         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89693
89694 2000-05-24  Jim Meyering  <meyering@lucent.com>
89695
89696         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89697         autoconf requires that.
89698         * m4/lib-check.m4: Likewise.
89699         * m4/jm-macros.m4: Likewise.
89700         * m4/strftime.m4: Likewise.
89701
89702         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89703         AC_CHECK_DECLS, now that autoconf requires that.
89704
89705 2000-05-22  Jim Meyering  <meyering@lucent.com>
89706
89707         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89708         * m4/lstat.m4: Likewise.
89709
89710 2000-05-22  Jim Meyering  <meyering@lucent.com>
89711
89712         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89713
89714 2000-05-20  Jim Meyering  <meyering@lucent.com>
89715
89716         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89717         (jm_PREREQ): Use it.
89718
89719 2000-05-18  Jim Meyering  <meyering@lucent.com>
89720
89721         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89722         back, too, since it may have been modified by allocate_entry.
89723         (hash_delete): Rewrite to use neither the assignment operator
89724         nor the comma operator in an if-expression.
89725
89726 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89727
89728         * lib/closeout.c:
89729         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89730         Remove; no longer needed.
89731         "quotearg.h": Add include.
89732         (file_name): Do not bother to explicitly initialize to NULL; it's less
89733         efficient on some hosts.
89734         (close_stdout_status): Remove test as to whether stdout was already
89735         closed; it breaks for the case "echo x | sort >&-".
89736         Quote file name colons.
89737         Do not assume that _("write error") lacks format strings.
89738
89739 2000-05-15  Jim Meyering  <meyering@lucent.com>
89740
89741         * lib/version-etc.c (version_etc_copyright): Update the copyright
89742         string used in all --version output.
89743
89744 2000-05-14  Jim Meyering  <meyering@lucent.com>
89745
89746         * lib/closeout.c (close_stdout_set_file_name): New function.
89747         (close_stdout_status): Use new file-scoped global.
89748         Return right away if fstat says the stdout file descriptor is invalid.
89749         * lib/closeout.h (close_stdout_set_file_name): Declare.
89750
89751 2000-05-10  Jim Meyering  <meyering@lucent.com>
89752
89753         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89754         (close_stdout_set_status): New function.
89755         * lib/closeout.h (close_stdout_set_status): Declare.
89756
89757 2000-05-09  Jim Meyering  <meyering@lucent.com>
89758
89759         * m4/gettext.m4: Rename this...
89760         * m4/libintl.m4: ...to this.
89761
89762 2000-05-08  Jim Meyering  <meyering@lucent.com>
89763
89764         * lib/long-options.c: Don't include closeout.h.
89765         (parse_long_options): Don't call close_stdout for --version.
89766
89767 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89768
89769         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89770         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89771         2.1.3 bug.  This avoids a clash when files like regex.c define
89772         _GNU_SOURCE.
89773
89774 2000-05-06  Jim Meyering  <meyering@lucent.com>
89775
89776         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89777         (AC_REPLACE_FUNCS): Add strnlen.
89778
89779         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89780         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89781
89782         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89783         AC_SEARCH_LIBS call for nanosleep.
89784         (LIB_NANOSLEEP): Set and AC_SUBST.
89785
89786 2000-05-06  Jim Meyering  <meyering@lucent.com>
89787
89788         * lib/strnlen.c: Undefine __strnlen and strnlen.
89789         [!weak_alias]: Define __strnlen to strnlen.
89790
89791         * lib/atexit.c: New file, from libiberty.
89792
89793 2000-05-06  Jim Meyering  <meyering@lucent.com>
89794
89795         * lib/closeout.c (close_stdout_status): Also check for errors on the
89796         stderr stream.
89797
89798 2000-05-05  Jim Meyering  <meyering@lucent.com>
89799
89800         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89801         AC_SEARCH_LIBS call for clock_gettime.
89802         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89803
89804         * m4/search-libs.m4: Update from autoconf.
89805
89806         su doesn't work on Solaris 2.6.
89807         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89808         <shadow.h>.  Reported by Dragos Harabor.
89809
89810 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89811
89812         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89813         memcpy instead of xmalloc, xrealloc, path_concat.
89814         (locale_charset): Treat empty environment variables as absent.
89815         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89816
89817 2000-05-04  Jim Meyering  <meyering@lucent.com>
89818
89819         * lib/getopt.c: Update from glibc.
89820         * lib/obstack.c: Likewise.
89821         * lib/obstack.h: Likewise.
89822         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89823         file
89824
89825         * lib/regex.h: Likewise.
89826         * lib/strndup.c: Likewise.
89827         * lib/strnlen.c: New file, from glibc.
89828
89829 2000-05-03  Jim Meyering  <meyering@lucent.com>
89830
89831         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89832
89833 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89834
89835         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89836         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89837         compile-time test, rather than inspecting host and OS, to
89838         decide whether to define _LARGEFILE_SOURCE.
89839
89840 2000-05-01  Jim Meyering  <meyering@lucent.com>
89841
89842         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89843
89844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89845         Based on a patch from Bruno Haible.
89846
89847 2000-05-01  Jim Meyering  <meyering@lucent.com>
89848
89849         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89850
89851 2000-04-29  Jim Meyering  <meyering@lucent.com>
89852
89853         * lib/path-concat.c: Declare strdup only if it's not defined.
89854         * lib/canon-host.c: Likewise.
89855
89856 2000-04-28  Jim Meyering  <meyering@lucent.com>
89857
89858         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89859         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89860         is included first, then limits.h is included by locale.h by libintl.h.
89861         From John David Anglin.
89862
89863 2000-04-25  Jim Meyering  <meyering@lucent.com>
89864
89865         * lib/makepath.c (S_IRWXUGO): Define.
89866         (make_path): Always perform explicit chmod if MODE specifies any
89867         of the `special' permission bits.  Prompted by a bug report against
89868         install from Mate Wierdl and Joost van Baal.
89869
89870 2000-04-18  Jim Meyering  <meyering@lucent.com>
89871
89872         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89873         (jm_PREREQ): Use it.
89874
89875 2000-04-18  Jim Meyering  <meyering@lucent.com>
89876
89877         * lib/README: New file.
89878
89879         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89880         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89881
89882 2000-04-17  Jim Meyering  <meyering@lucent.com>
89883
89884         Get it right :-)
89885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89886         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89887         Suggestion from Akim Demaille.
89888
89889 2000-04-17  Jim Meyering  <meyering@lucent.com>
89890
89891         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89892         the definition of it to rpl_strftime also defined-away the system's
89893         declaration.
89894
89895 2000-04-15  Jim Meyering  <meyering@lucent.com>
89896
89897         Use `C' to denote so-called `contiguous' files, the same way
89898         that tar does.
89899         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89900         (ftypelet): Use S_ISCTG.
89901         From Michael Deutschmann.
89902
89903 2000-04-14  Jim Meyering  <meyering@lucent.com>
89904
89905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89906         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89907         clobbered.
89908
89909 2000-04-14  Jim Meyering  <meyering@lucent.com>
89910
89911         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89912
89913 2000-04-13  Jim Meyering  <meyering@lucent.com>
89914
89915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89916         AH_VERBATIM to insert required #ifndef into config.h.in.
89917         Suggestion from Akim Demaille.
89918
89919 2000-04-12  Jim Meyering  <meyering@lucent.com>
89920
89921         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89922         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89923         Christian Krackowizer.
89924
89925         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89926         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89927         (AC_SYS_LARGEFILE): Require.
89928         (AM_C_PROTOTYPES): Require.
89929
89930 2000-04-08  Jim Meyering  <meyering@lucent.com>
89931
89932         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89933         names don't conflict.  Reported by Eli Zaretskii.
89934
89935 2000-04-07  Jim Meyering  <meyering@lucent.com>
89936
89937         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89938         sys/types.h, to work around system header problems on AIX 3.2.5.
89939         From Bruno Haible.
89940
89941 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89942
89943         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89944         bug.  Deal with the different error behavior of Irix iconv.
89945
89946 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89947
89948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89949         IRIX if the installer said otherwise.
89950
89951 2000-04-05  Jim Meyering  <meyering@lucent.com>
89952
89953         Portability tweaks required for ultrix4.3.
89954         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89955         (jm_CHECK_DECLS): Add getutent to the list of functions.
89956         (_jm_DECL_HEADERS): Add utmpx.h.
89957         From John David Anglin.
89958
89959         * m4/strftime.m4: Back out the 2000-04-02 change.
89960         Instead of that change, simply undefine putenv in the test program.
89961
89962 2000-04-05  Jim Meyering  <meyering@lucent.com>
89963
89964         Portability tweaks required for ultrix4.3.
89965         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89966         getutent.
89967         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89968         * lib/canon-host.c: Declare strdup.
89969         * lib/path-concat.c: Likewise.
89970         From John David Anglin.
89971
89972 2000-04-04  Jim Meyering  <meyering@lucent.com>
89973
89974         Be more DOS 8.3-friendly.
89975         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89976         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89977         * lib/Makefile.am: Reflect renaming.
89978         Reported by Eli Zaretskii.
89979
89980         Use a temporary file name that won't clash with `charset.alias'
89981         in the DOS 8.3 name space.
89982         * lib/Makefile.am (charset_tmp): Define.
89983         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89984         (uninstall-local): Likewise.
89985         Reported by Eli Zaretskii.
89986
89987 2000-04-03  Jim Meyering  <meyering@lucent.com>
89988
89989         * m4/gettext.m4: Fix typo in comment.
89990
89991         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89992         textutils/configure.in).  Suggestion from Paul Eggert.
89993         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89994
89995 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89996
89997         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89998         variable in the shell rather than using putenv, which isn't
89999         portable.  This avoids the configure-time inter-test dependency
90000         on the potentially-renamed putenv function.
90001
90002 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90003
90004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90005         before checking struct stat.st_blksize, so that
90006         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90007
90008 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90009
90010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90011         since strftime.c uses HAVE_STRFTIME to decide whether to use
90012         the underlying strftime.
90013
90014 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90015
90016         * lib/time/strftime.c (my_strftime): Make sure we call the system
90017         strftime, not ourselves, when invoking the underlying strftime.
90018
90019 2000-03-24  Jim Meyering  <meyering@lucent.com>
90020
90021         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90022         (charset_alias): Define.
90023         (install-exec-local): Factor out common code.
90024         (uninstall-local): Split lines longer than 80.
90025         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90026         (SUFFIXES): Define.
90027         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90028         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90029
90030 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90031
90032         * lib/config.charset: Output a line containing "Packages using this
90033         file".
90034         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90035         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90036         ref-del.sed): New rules.
90037
90038 2000-03-17  Jim Meyering  <meyering@lucent.com>
90039
90040         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90041         Otherwise, include <strings.h>
90042
90043 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90044
90045         * lib/unicodeio.c (utf8_wctomb): New function.
90046         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90047         format instead of in UCS-4 with platform dependent endianness.
90048
90049 2000-03-10  Jim Meyering  <meyering@lucent.com>
90050
90051         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90052         From Marco Franzen.
90053
90054 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90055
90056         * lib/savedir.c (savedir): Work even if directory size is
90057         negative; this can happen with some screwy NFS configurations.
90058
90059 2000-03-06  Jim Meyering  <meyering@lucent.com>
90060
90061         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90062         if it's NULL (because we ran out of memory).  From Bruno Haible.
90063
90064 2000-03-05  Jim Meyering  <meyering@lucent.com>
90065
90066         * lib/localcharset.c ("path-concat.h"): Include.
90067         (get_charset_aliases): Use path_concat instead of ANSI string
90068         concatenation.
90069
90070         * lib/unicodeio.h (PARAMS): Define.
90071         Use it to guard prototype.
90072
90073 2000-03-04  Jim Meyering  <meyering@lucent.com>
90074
90075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90076         for lib/localcharset.c.
90077
90078 2000-03-04  Jim Meyering  <meyering@lucent.com>
90079
90080         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90081         installing into it.
90082         (uninstall-local): Uncomment this rule so `make distcheck' works
90083         once again.
90084
90085         * lib/unicodeio.c (<errno.h>): Include it.
90086         (errno): Declare if not defined.
90087
90088         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90089
90090         * lib/config.charset: New version, incorporating remarks from a linux
90091         i18n mailing list.  From Bruno Haible.
90092
90093 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90094
90095         * m4/codeset.m4: New file.
90096         * m4/iconv.m4: New file.
90097         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90098
90099 2000-03-03  Jim Meyering  <meyering@lucent.com>
90100
90101         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90102
90103 2000-03-02  Jim Meyering  <meyering@lucent.com>
90104
90105         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90106         the messages come out on separate lines.
90107
90108         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90109         rather than jm_CHECK_DECLARATIONS.
90110         * m4/decl.m4: Remove now-unused file.
90111
90112         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90113         geteuid.
90114
90115 2000-03-02  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90118
90119 2000-03-01  Jim Meyering  <meyering@lucent.com>
90120
90121         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90122         * lib/unicodeio.c: Likewise.
90123
90124 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90125
90126         * lib/config.charset: New file.
90127         * lib/localcharset.c: New file.
90128         * lib/unicodeio.h, lib/unicodeio.c: New files.
90129         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90130         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90131         (noinst_HEADERS): Add unicodeio.h.
90132         (all-local, install-exec-local, charset.alias): New targets.
90133
90134 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90135
90136         * lib/quotearg.c (ALERT_CHAR): New macro.
90137         (quotearg_buffer_restyled): Use it.
90138
90139 2000-02-27  Jim Meyering  <meyering@lucent.com>
90140
90141         * m4/check-decl.m4: Add getenv to the list.
90142
90143 2000-02-27  Jim Meyering  <meyering@lucent.com>
90144
90145         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90146         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90147
90148         * lib/backupfile.c: Guard inclusion of stdlib.h with
90149         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90150         Declare malloc if needed.
90151
90152         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90153         `#ifndef HAVE_DECL..'
90154         now that autoconf always defines the HAVE_DECL_ symbols.
90155         * lib/human.c: Likewise.
90156         * lib/same.c: Likewise.
90157         * lib/strtoumax.c: Likewise.
90158
90159         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90160         declaration check was not run.
90161         * lib/hash.c: Likewise.
90162         * lib/human.c: Likewise.
90163         * lib/same.c: Likewise.
90164         * lib/strtoumax.c: Likewise.
90165
90166         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90167         `.', then first look up the entire `.'-containing string as a login
90168         name.
90169
90170 2000-02-23  Jim Meyering  <meyering@lucent.com>
90171
90172         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90173         in place of my hack.
90174
90175 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90176
90177         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90178         (textint): New typedef.
90179         (parser_control): Member year changed from int to textint.
90180         All uses changed.
90181         (YYSTYPE): Removed; replaced by %union with int and textint members.
90182         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90183         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90184         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90185         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90186         (date, number, to_year): Use width of number in digits, not its value,
90187         to determine whether it's a 2-digit year, or a 2-digit time.
90188         (yylex): Store number of digits of numeric tokens.
90189         Reported by John Kendall.
90190
90191         (parser_control): Changed from struct parser_control to typedef (for
90192         consistency).  All uses changed.
90193
90194         (tID): Removed; not used.
90195         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90196
90197 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90198
90199         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90200         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90201
90202 2000-02-12  Jim Meyering  <meyering@lucent.com>
90203
90204         * lib/userspec.c (ISDIGIT): Define it.
90205         (isdigit): Remove definition.
90206         (is_number): Use ISDIGIT, not isdigit.
90207         <libintl.h>: Include.
90208         (_ and N_): Define.
90209         (parse_user_spec): Mark translatable strings.
90210
90211 2000-02-10  Jim Meyering  <meyering@lucent.com>
90212
90213         With these changes, nanosleep.[ch] are finally enough like the other
90214         lib/* replacement files to compile on a few more losing systems.
90215
90216         * lib/nanosleep.h: Don't include config.h.
90217         Remove prototype from declaration of nanosleep.
90218         (PARAMS): Remove now-unneeded definition.
90219         * lib/nanosleep.c: #undef nanosleep.
90220         (rpl_nanosleep): Rename from nanosleep.
90221
90222 2000-02-10  Jim Meyering  <meyering@lucent.com>
90223
90224         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90225         gnu_nanosleep to rpl_nanosleep.
90226
90227 2000-02-09  Jim Meyering  <meyering@lucent.com>
90228
90229         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90230         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90231
90232 2000-02-08  Akim Demaille  <akim@epita.fr>
90233
90234         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90235         `[' and `]' and remove uses of `changequote'.
90236         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90237         (AC_SYS_LARGEFILE): Likewise.
90238         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90239         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90240         of changequote.
90241         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90242         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90243         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90244         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90245
90246 2000-02-05  Jim Meyering  <meyering@lucent.com>
90247
90248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90249         Remove explicit use of AC_HEADER_TIME.  It is required by
90250         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90251         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90252         in autoconf whereby the expansion of the latter ended up preceding
90253         the expansion of its prerequisite, AC_HEADER_TIME.
90254         Reported by Volker Borchert.
90255
90256 2000-02-03  Jim Meyering  <meyering@lucent.com>
90257
90258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90259
90260 2000-02-03  Jim Meyering  <meyering@lucent.com>
90261
90262         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90263         rather than with `#if HAVE_UTMPNAME'.
90264
90265 2000-02-02  Jim Meyering  <meyering@lucent.com>
90266
90267         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90268         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90269         Reported by Eli Zaretskii.
90270
90271 2000-02-01  Jim Meyering  <meyering@lucent.com>
90272
90273         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90274
90275 2000-01-31  Jim Meyering  <meyering@lucent.com>
90276
90277         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90278         functions.  Add the time.h and sys/time.h headers along with the
90279         AC_REQUIRE'ment of AC_HEADER_TIME.
90280
90281 2000-01-31  Jim Meyering  <meyering@lucent.com>
90282
90283         * lib/nanosleep.h (nanosleep): Guard declaration with
90284         `#if ! HAVE_DECL_NANOSLEEP'.
90285         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90286         the declaration in that vendor's sys/timers.h.
90287         Reported by Christian Krackowizer.
90288
90289         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90290         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90291         (ISPRINT): Likewise.
90292         Reported by Tom Tromey.
90293
90294 2000-01-30  Jim Meyering  <meyering@lucent.com>
90295
90296         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90297
90298         * m4/prereq.m4 (utmp_includes): Define.
90299         Check for ut_user and ut_name members in both struct utmpx
90300         and struct utmp.
90301
90302 2000-01-30  Jim Meyering  <meyering@lucent.com>
90303
90304         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90305         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90306         header files where only utmpx.ut_user is declared.
90307
90308         * lib/readutmp.h (UT_USER): Define.
90309
90310 2000-01-29  Jim Meyering  <meyering@lucent.com>
90311
90312         * m4/lib-check.m4: New file containing library-related checks from
90313         fileutils and sh-utils (textutils had none).
90314
90315 2000-01-28  Jim Meyering  <meyering@lucent.com>
90316
90317         * m4/perl.m4: Change format of warning message to look more like that
90318         from the missing script.  Suggestion from François Pinard.
90319
90320 2000-01-25  Jim Meyering  <meyering@lucent.com>
90321
90322         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90323         well as time.h in the compile check.
90324         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90325         Fix typo in cross-compiling case: s/yes/no/.
90326
90327 2000-01-23  Jim Meyering  <meyering@lucent.com>
90328
90329         * m4/jm-macros.m4: Move df-related tests here from
90330         fileutils/configure.in
90331
90332         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90333         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90334
90335         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90336         s/space/ac_fsusage_space/.
90337         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90338
90339         * m4/ftruncate.m4: New file (derived from part of
90340         fileutils/configure.in).
90341         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90342         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90343
90344         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90345         AC_SUBST these here, rather than just in sh-util/configure.in, so
90346         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90347         all the same.
90348         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90349         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90350         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90351         (AC_SUBST(POW_LIBM)): Likewise.
90352         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90353
90354 2000-01-23  Jim Meyering  <meyering@lucent.com>
90355
90356         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90357         obstack.c.
90358
90359 2000-01-22  Jim Meyering  <meyering@lucent.com>
90360
90361         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90362
90363         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90364
90365         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90366         configure.in
90367         (AC_CHECK_HEADERS): Likewise for sh-utils.
90368         (AC_CHECK_HEADERS): Likewise for textutils.
90369         Merge the three lists of headers.
90370
90371         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90372         from fileutils' configure.in.
90373
90374         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90375         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90376         check-decl.m4.
90377
90378         * m4/check-decl.m4: Use #if rather than #ifdef.
90379         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90380         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90381         (_jm_DECL_HEADERS): Define new function.
90382         (jm_CHECK_DECLARATIONS): Require it.
90383
90384 2000-01-22  Jim Meyering  <meyering@lucent.com>
90385
90386         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90387         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90388         Required for some AIX systems.  Reported by Christian Krackowizer.
90389         [TESTING] (main): New function.
90390
90391         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90392         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90393         letters.
90394
90395         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90396         iswprint.
90397
90398         * lib/strverscmp.c (ISDIGIT): Define.
90399         (strverscmp): Use ISDIGIT, not isdigit.
90400
90401 2000-01-19  Jim Meyering  <meyering@lucent.com>
90402
90403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90404         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90405         defines `struct timespec' in <sys/time.h>
90406
90407         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90408         Thanks to Akim for explaining.
90409
90410 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90411
90412         * lib/nanosleep.c (nanosleep):
90413         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90414         POSIX.1 doesn't require SA_INTERRUPT and some systems
90415         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90416         it's been part of POSIX.1 since day 1 (in 1988).
90417
90418 2000-01-17  Jim Meyering  <meyering@lucent.com>
90419
90420         * lib/interlock: Remove unused file.  Reported by François Pinard.
90421
90422 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90423
90424         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90425         alert, backslash, formfeed, and vertical tab unnecessarily in
90426         shell quoting style.
90427
90428 2000-01-16  Jim Meyering  <meyering@lucent.com>
90429
90430         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90431         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90432         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90433         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90434
90435 2000-01-16  Jim Meyering  <meyering@lucent.com>
90436
90437         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90438         because the latter didn't work.
90439
90440 2000-01-15  Jim Meyering  <meyering@lucent.com>
90441
90442         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90443         (AC_REPLACE_FUNCS): Add memcpy and memset.
90444         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90445         Add strpbrk.
90446         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90447
90448 2000-01-12  Jim Meyering  <meyering@lucent.com>
90449
90450         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90451         (jm_PREREQ): Use it.
90452         (jm_PREREQ_READUTMP): New macro.
90453         (jm_PREREQ): Use it.
90454
90455 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90456
90457         Quote multibyte characters correctly.
90458         * m4/c-bs-a.m4: New file.
90459         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90460         (jm_PREREQ): Use it.
90461
90462 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90463
90464         * m4/uintmax_t.m4: Port to autoconf 2.13.
90465
90466 2000-01-08  Jim Meyering  <meyering@ascend.com>
90467
90468         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90469         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90470
90471 2000-01-04  Jim Meyering  <meyering@ascend.com>
90472
90473         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90474         jm_STRUCT_DIRENT_D_TYPE.
90475         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90476         jm_STRUCT_DIRENT_D_INO.
90477         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90478         jm_STRUCT_UTIMBUF.
90479         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90480         renamings.
90481         * m4/utime.m4: Likewise.
90482
90483         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90484         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90485
90486 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90487
90488         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90489         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90490
90491 2000-01-02  Jim Meyering  <meyering@ascend.com>
90492
90493         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90494         remember if this is necessary.
90495
90496 1999-12-26  Jim Meyering  <meyering@ascend.com>
90497
90498         * m4/jm-macros.m4: Use it here.
90499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90500
90501 1999-12-23  Jim Meyering  <meyering@ascend.com>
90502
90503         * m4/jm-macros.m4: Check for clock_gettime (moved from
90504         fileutils/configure.in)
90505         Check for gettimeofday.
90506
90507 1999-12-20  Jim Meyering  <meyering@ascend.com>
90508
90509         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90510         autoconf-2.14a-1999-12-20.
90511
90512 1999-12-19  Jim Meyering  <meyering@ascend.com>
90513
90514         * m4/lstat-slash.m4: New file.
90515         * m4/jm-macros.m4: Use the new macro:
90516         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90517
90518 1999-12-07  Jim Meyering  <meyering@ascend.com>
90519
90520         * m4/perl.m4: Require that File::Compare be available, too.
90521         Too many systems seem to lack it.
90522
90523         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90524         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90525
90526 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90527
90528         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90529         problem with the QNX 4.25 shell, which doesn't propagate exit
90530         status of failed commands inside shell assignments.
90531
90532 1999-11-17  Jim Meyering  <meyering@ascend.com>
90533
90534         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90535
90536 1999-11-07  Jim Meyering  <meyering@ascend.com>
90537
90538         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90539
90540 1999-11-06  Jim Meyering  <meyering@ascend.com>
90541
90542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90543         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90544
90545 1999-11-05  Jim Meyering  <meyering@ascend.com>
90546
90547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90548         configure.in of textutils, fileutils, and sh-utils into this one
90549         (shared between those packages) file.
90550         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90551         AC_STRUCT_ST_BLKSIZE.
90552
90553 1999-11-03  Jim Meyering  <meyering@ascend.com>
90554
90555         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90556         of AC_CHECK_TYPE checks includes unistd.h.
90557         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90558         Suggestion from Akim Demaille.
90559
90560 1999-10-30  Jim Meyering  <meyering@ascend.com>
90561
90562         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90563         m4-quoted string.
90564         * m4/ls-mntd-fs.m4: Likewise.
90565         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90566         * m4/jm-winsz1.m4: Likewise.
90567
90568         * m4/const.m4: Remove file, since the fix made it into the experimental
90569         version of autoconf.
90570         * m4/mktime.m4: Likewise.
90571
90572         * m4/check-type.m4: Remove file, now that the latest version of
90573         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90574
90575         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90576         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90577         AC_CHECK_TYPE.
90578
90579 1999-10-04  Jim Meyering  <meyering@ascend.com>
90580
90581         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90582
90583 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90584
90585         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90586         2.95.1 bug with HP-UX 10.20.
90587
90588 1999-09-17  Jim Meyering  <meyering@ascend.com>
90589
90590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90591         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90592         due to missing strdup (against sh-utils-2.0).
90593
90594 1999-08-29  Jim Meyering  <meyering@ascend.com>
90595
90596         * m4/jm-macros.m4: Require jm_BISON.
90597         * m4/bison.m4: New file.
90598
90599 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90600
90601         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90602         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90603
90604 1999-08-05  Jim Meyering  <meyering@ascend.com>
90605
90606         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90607         to avoid conflicts with `conftest' on 8+3 filesystems.
90608         Suggestion from Eli Zaretskii.
90609
90610 1999-08-04  Jim Meyering  <meyering@ascend.com>
90611
90612         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90613         fileutils and sh-utils (textutils's getline test was inadequate).
90614         (AM_FUNC_GETLINE): Run this test.
90615         (AC_CHECK_FUNCS): Check for getdelim.
90616         Reported by Bob Proulx.
90617
90618 1999-08-02  Jim Meyering  <meyering@ascend.com>
90619
90620         * m4/jm-macros.m4: Add a comment.
90621
90622 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90623
90624         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90625         <inttypes.h> defines strtoumax as a macro (and not as a
90626         function).
90627
90628 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90629
90630         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90631         that we can shift, multiply and divide unsigned long long
90632         values; Ultrix cc can't do it.
90633
90634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90635
90636         * m4/mktime.m4: New file, which is a preview of what should appear
90637         in the next public autoconf release.
90638
90639 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90640
90641         * m4/lfs.m4: Remove this file.
90642         * m4/largefile.m4: New file.  It contains the old contents of
90643         lfs.m4, except that all names with prefix AC_LFS have been
90644         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90645         compatible with future autoconf versions.  Also, some minor m4
90646         quoting problems have been fixed.
90647
90648 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90649
90650         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90651         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90652         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90653         and simplify the shell code.
90654
90655 1999-08-01  Jim Meyering  <meyering@ascend.com>
90656
90657         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90658         m4.
90659
90660 1999-07-20  Jim Meyering  <meyering@ascend.com>
90661
90662         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90663
90664 1999-07-15  Jim Meyering  <meyering@ascend.com>
90665
90666         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90667
90668 1999-05-22  Jim Meyering  <meyering@ascend.com>
90669
90670         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90671
90672 1999-05-20  Jim Meyering  <meyering@ascend.com>
90673
90674         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90675         Add a colon after each `then' in case $4 is empty.
90676
90677 1999-05-16  Jim Meyering  <meyering@ascend.com>
90678
90679         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90680
90681 1999-05-10  Jim Meyering  <meyering@ascend.com>
90682
90683         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90684
90685         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90686         AC_FUNC_MKTIME.
90687
90688 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90689
90690         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90691
90692 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90693
90694         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90695         not CPPFLAGS, so that linking works correctly in IRIX.
90696
90697 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90698
90699         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90700
90701 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90702
90703         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90704         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90705         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90706         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90707         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90708
90709         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90710
90711 1999-04-20  Jim Meyering  <meyering@ascend.com>
90712
90713         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90714         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90715         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90716
90717 1999-04-18  Jim Meyering  <meyering@ascend.com>
90718
90719         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90720         * m4/jm-macros.m4: Use it.
90721
90722 1999-04-06  Jim Meyering  <meyering@ascend.com>
90723
90724         * m4/strftime.m4: Remove test for %f.
90725
90726 1999-03-29  Jim Meyering  <meyering@ascend.com>
90727
90728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90729         superset of the AC_TYPE_* checks in the textutils, fileutils,
90730         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90731         AC_TYPE_PID_T.
90732
90733 1999-03-28  Jim Meyering  <meyering@ascend.com>
90734
90735         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90736         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90737         replaced e.g., in the *.sh files of the sh-utils.
90738
90739 1999-03-20  Jim Meyering  <meyering@ascend.com>
90740
90741         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90742         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90743         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90744
90745 1999-03-19  Jim Meyering  <meyering@ascend.com>
90746
90747         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90748
90749 1999-03-12  Jim Meyering  <meyering@ascend.com>
90750
90751         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90752
90753 1999-03-07  Jim Meyering  <meyering@ascend.com>
90754
90755         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90756         declared.
90757
90758 1999-02-17  Jim Meyering  <meyering@ascend.com>
90759
90760         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90761         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90762
90763 1999-02-07  Jim Meyering  <meyering@ascend.com>
90764
90765         * m4/group-member.m4: New file -- extracted from sh-utils'
90766         configure.in.
90767
90768         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90769         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90770
90771 1999-02-06  Jim Meyering  <meyering@ascend.com>
90772
90773         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90774         * m4/fnmatch.m4: Likewise.
90775         * m4/getgroups.m4: Likewise.
90776         * m4/lstat.m4: Likewise.
90777         * m4/malloc.m4: Likewise.
90778         * m4/putenv.m4: Likewise.
90779         * m4/realloc.m4: Likewise.
90780         * m4/regex.m4: Likewise.
90781         * m4/stat.m4: Likewise.
90782         * m4/strftime.m4: Likewise.
90783         Suggestion from Alain Magloire.
90784
90785         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90786         * m4/fnmatch.m4: Likewise.
90787         * m4/getgroups.m4: Likewise.
90788         * m4/getline.m4: Likewise.
90789         * m4/lstat.m4: Likewise.
90790         * m4/malloc.m4: Likewise.
90791         * m4/memcmp.m4: Likewise.
90792         * m4/putenv.m4: Likewise.
90793         * m4/realloc.m4: Likewise.
90794         * m4/regex.m4: Likewise.
90795         * m4/stat.m4: Likewise.
90796         * m4/strftime.m4: Likewise.
90797         Suggestion from Alain Magloire.
90798
90799         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90800         an argument.
90801
90802         * m4/regex.m4: Add a run-time Test for proper operation of
90803         re_compile_pattern.
90804
90805 1999-01-31  Jim Meyering  <meyering@ascend.com>
90806
90807         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90808
90809 1999-01-30  Jim Meyering  <meyering@ascend.com>
90810
90811         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90812
90813         * m4/jm-mktime.m4: Make this a wrapper around the official
90814         AM_FUNC_MKTIME rather than my private copy, now that the official one
90815         is up to date.
90816         * m4/mktime.m4: Remove file.
90817
90818         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90819         * m4/uptime.m4: Likewise.
90820         * m4/uintmax_t.m4: Likewise.
90821
90822 1999-01-28  Jim Meyering  <meyering@ascend.com>
90823
90824         * m4/jm-macros.m4: Use jm_AFS.
90825         * m4/afs.m4: New file (from fileutils' configure.in).
90826
90827         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90828         * m4/chown.m4: Likewise.
90829         * m4/d-ino.m4: Likewise.
90830         * m4/d-type.m4: Likewise.
90831         * m4/fnmatch.m4: Likewise.
90832         * m4/getgroups.m4: Likewise.
90833         * m4/gettext.m4: Likewise.
90834         * m4/jm-mktime.m4: Likewise.
90835         * m4/jm-winsz2.m4: Likewise.
90836         * m4/lcmessage.m4: Likewise.
90837         * m4/ls-mntd-fs.m4: Likewise.
90838         * m4/malloc.m4: Likewise.
90839         * m4/memcmp.m4: Likewise.
90840         * m4/putenv.m4: Likewise.
90841         * m4/realloc.m4: Likewise.
90842         * m4/st_mtim.m4: Likewise.
90843         * m4/strftime.m4: Likewise.
90844
90845 1999-01-16  Jim Meyering  <meyering@ascend.com>
90846
90847         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90848         (ARGMATCH_DIE_DECL): Define.
90849
90850 1999-01-12  Jim Meyering  <meyering@ascend.com>
90851
90852         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90853         Reported by Lars Hecking.
90854
90855 1999-01-10  Jim Meyering  <meyering@ascend.com>
90856
90857         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90858         gross kludge.
90859         * m4/inttypes_h.m4: Likewise.
90860         * m4/lstat.m4: Likewise.
90861         * m4/malloc.m4: Likewise.
90862         * m4/readdir.m4: Likewise.
90863         * m4/realloc.m4: Likewise.
90864         * m4/st_dm_mode.m4: Likewise.
90865         * m4/stat.m4: Likewise.
90866         * m4/utimbuf.m4: Likewise.
90867         * m4/utimes.m4: Likewise.
90868
90869         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90870         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90871         comments in config.h.in are meaningful.
90872
90873         * m4/jm-macros.m4: Require autoconf-2.13 here.
90874
90875         * m4/regex.m4: By default, don't use the included regex.c on systems
90876         with glibc 2.  Suggestion from Uli Drepper.
90877
90878 1999-01-02  Jim Meyering  <meyering@ascend.com>
90879
90880         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90881
90882 1998-12-18  Jim Meyering  <meyering@ascend.com>
90883
90884         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90885         Based on a suggestion from Lars Hecking.
90886
90887 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90888
90889         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90890
90891 1998-11-16  Jim Meyering  <meyering@ascend.com>
90892
90893         * m4/lfs.m4: Double-quote the `uname...` expression.
90894
90895 1998-11-14  Jim Meyering  <meyering@ascend.com>
90896
90897         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90898         * m4/stat.m4: Likewise.
90899
90900 1998-11-03  Jim Meyering  <meyering@ascend.com>
90901
90902         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90903         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90904
90905 1998-10-18  Jim Meyering  <meyering@ascend.com>
90906
90907         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90908
90909 1998-10-17  Jim Meyering  <meyering@ascend.com>
90910
90911         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90912         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90913         calls for those previously hard-coded headers.  Instead, take a new
90914         parameter.
90915         (jm_CHECK_DECLARATIONS): Reflect interface change.
90916         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90917         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90918
90919         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90920
90921 1998-10-14  Jim Meyering  <meyering@ascend.com>
90922
90923         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90924         instead of "TZ=America/Vancouver".  From Paul Eggert.
90925
90926 1998-10-11  Jim Meyering  <meyering@ascend.com>
90927
90928         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90929         This adds a test for a recently added compatibility fix for mktime.c.
90930         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90931
90932 1998-09-27  Jim Meyering  <meyering@ascend.com>
90933
90934         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90935
90936         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90937         ../configure.in, including a change from Gordon Matzigkeit to allow
90938         cross-compiling for the Hurd.
90939
90940         * m4/glibc.m4: New file/macro to test for the GNU C Library
90941         versions 1 and 2.  From Gordon Matzigkeit.
90942         Indent.
90943
90944 1998-09-21  Jim Meyering  <meyering@ascend.com>
90945
90946         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90947
90948 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90949
90950         Port nanosecond-resolution times to UnixWare 2.1.2 and
90951         pedantic Solaris 2.6.
90952
90953         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90954         AC_STRUCT_ST_MTIM.
90955         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90956         Generate name of ns member, instead of just 1 or undef.
90957         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90958
90959 1998-08-15  Jim Meyering  <meyering@ascend.com>
90960
90961         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90962         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90963         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90964         instead of jm_TYPE_SSIZE_T.
90965
90966 1998-08-12  Jim Meyering  <meyering@ascend.com>
90967
90968         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90969
90970 1998-08-02  Jim Meyering  <meyering@ascend.com>
90971
90972         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90973         in acconfig.h manually.
90974
90975 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90976
90977         * m4/st_mtim.m4: New file.
90978
90979 1998-07-28  Jim Meyering  <meyering@ascend.com>
90980
90981         * m4/utimes.m4: Undef stat.
90982
90983 1998-07-25  Jim Meyering  <meyering@ascend.com>
90984
90985         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90986         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90987
90988 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90989
90990         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90991         uid and gid actually remain unchanged.
90992
90993 1998-07-07  Jim Meyering  <meyering@ascend.com>
90994
90995         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90996
90997 1998-07-04  Jim Meyering  <meyering@ascend.com>
90998
90999         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91000         to prove that this macro can be used in packages without regex.c.
91001
91002 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91003
91004         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91005         is to be used.
91006
91007 1998-07-03  Jim Meyering  <meyering@ascend.com>
91008
91009         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91010
91011         * m4/gettext.m4: New file -- from gettext-0.10.35.
91012         * m4/lcmessage.m4: Likewise.
91013         * m4/progtest.m4: Likewise.
91014
91015         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91016         * m4/jm-macros.m4: Require the new macro.
91017
91018 1998-06-29  Jim Meyering  <meyering@ascend.com>
91019
91020         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91021         for the definition of NGROUPS (used in a system header included
91022         by sys/mount.h).
91023
91024 1998-06-28  Jim Meyering  <meyering@ascend.com>
91025
91026         * m4/ls-mntd-fs.m4: New file.
91027         * m4/fstypename.m4: New file.
91028
91029         * m4/jm-macros.m4: Require the new macro.
91030         * m4/jm-glibc-io.m4: New file.
91031
91032 1998-05-19  Jim Meyering  <meyering@ascend.com>
91033
91034         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91035         * m4/lchown.m4: New file.
91036
91037         * m4/Makefile.am.in: New file.
91038         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91039
91040 1998-05-14  Jim Meyering  <meyering@ascend.com>
91041
91042         * m4/Makefile.am (EXTRA_DIST): Add them.
91043         * m4/jm-macros.m4: New file.
91044         * m4/utimbuf.m4: New file.
91045
91046 1998-05-12  Jim Meyering  <meyering@ascend.com>
91047
91048         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91049
91050 1998-05-11  Jim Meyering  <meyering@ascend.com>
91051
91052         * m4/isc-posix.m4: New file.
91053
91054 1998-05-10  Jim Meyering  <meyering@ascend.com>
91055
91056         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91057
91058 1998-05-09  Jim Meyering  <meyering@ascend.com>
91059
91060         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91061         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91062         with automake.
91063
91064         * m4/ssize_t.m4: New file.
91065         * m4/mktime.m4: Remove file -- the new automake has this now.
91066
91067 1998-04-26  Jim Meyering  <meyering@ascend.com>
91068
91069         * m4/assert.m4: New file.
91070         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91071
91072 1998-04-05  Jim Meyering  <meyering@ascend.com>
91073
91074         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91075         (jm_PREREQ): Use it here.
91076
91077 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91078
91079         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91080         in acconfig.h.
91081
91082 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91083
91084         * m4/prereq.m4: New file.
91085         * m4/error.m4: New file.
91086         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91087
91088 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91089
91090         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91091         cache-check for the same variable -- that defeated the purpose of
91092         the test; the test program was never run.  This was a problem only
91093         on systems with losing getline functions -- HP-UX 10.20 is one.
91094         Reported by Bjorn Helgaas.
91095
91096 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91097
91098         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91099
91100 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91101
91102         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91103
91104         * m4/const.m4: New file.  Use an initializer in this declaration
91105         typedef int charset[2]; const charset x;
91106         Reported by Bob Glickstein.
91107
91108 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91109
91110         * m4/chown.m4: Fix reversed types on -1 args to chown.
91111         From Kaveh Ghazi.
91112
91113 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91114
91115         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91116         Add lseek and memchr.
91117
91118         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91119         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91120         have a 20-character limit on names.
91121
91122 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91123
91124         * m4/inttypes_h.m4: New file.
91125         * m4/uintmax_t.m4: New file.
91126         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91127
91128
91129         -----
91130
91131         Local Variables:
91132         coding: utf-8
91133         End:
91134
91135         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91136
91137         Copying and distribution of this file, with or without
91138         modification, are permitted provided the copyright notice
91139         and this notice are preserved.